/* Wiser case study. Shared pieces: case-study.css, case-contact.css.
   The mono labels ask for JetBrains Mono and fall back to the system mono. */

:root {
  --accent: #1f6bff;
  --ws-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', menlo, consolas, monospace;
  --cs-ink: #0b1b33;
  --cs-muted: #4a5560;
  --cs-faint: #7b858f;
  --cs-line: rgb(11 27 51 / 12%);
  --cs-bg: #f7f9fc;
  --cs-dark: #0b1b33;
  --cs-dot-radius: 2px;
  --cs-dot-dark: #7db0ff;
  --cf-dots: rgb(11 27 51 / 9%);
  --cf-glow: rgb(31 107 255 / 16%);
  --cf-btn: #0b1b33;
  --cf-btn-icon: #7db0ff;
  --cf-btn-icon-fg: #0b1b33;
  --cf-sent: #0b1b33;
  --cf-sent-fg: #7db0ff;
}

a:hover { color: var(--accent); }
.ws-lead { line-height: 1.7; }
.ws-white { background: var(--white); }
.ws-blue { background: #eaf2ff; }
.ws-blue .cs-lead { color: #3a4651; }
.ws-multiply { width: 100%; mix-blend-mode: multiply; }
.ws-mono { font-family: var(--ws-mono); font-size: 13px; color: var(--accent); }
.cs-head .ws-mono { margin-bottom: 16px; }
.ws-mono--light { margin-bottom: 16px; color: #7db0ff; }

/* ---------- hero ---------- */

.ws-hero { overflow: clip; padding-block: 88px 104px; }

.ws-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(11 27 51 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(11 27 51 / 5%) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.ws-hero__grid { row-gap: 56px; }
.ws-hero__copy { display: flex; flex-direction: column; gap: 26px; }
.ws-hero__logo { width: 150px; height: 44px; }
.ws-hero__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.ws-hero__title { font-weight: 600; font-size: clamp(42px, 5.4vw, 96px); line-height: .96; letter-spacing: -.045em; text-wrap: balance; }
.ws-hero__lead { max-width: 580px; font-size: clamp(16px, 1.2vw, 19px); }
.ws-hero__meta { gap: 18px 44px; }
.ws-hero figure { margin: 0; }

/* ---------- ticker ---------- */

.ws-ticker { padding: 18px 0; background: var(--cs-dark); color: var(--white); }
.ws-ticker__track { --marq-gap: 24px; font-family: var(--ws-mono); font-size: 14px; white-space: nowrap; animation-duration: 46s; }
.ws-ticker__track li { display: flex; align-items: center; gap: 10px; }
.ws-ticker__track li::after { content: '/'; margin-left: 14px; color: rgb(255 255 255 / 20%); }
.ws-tick__sku { color: rgb(255 255 255 / 55%); }
.ws-tick__price { font-weight: 600; }
.ws-tick__delta--up { color: #ff6b57; }
.ws-tick__delta--down { color: #5b9bff; }

/* ---------- about ---------- */

.ws-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 8px 0 0; overflow: hidden; border-radius: 20px; background: rgb(11 27 51 / 10%); }
.ws-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 22px; background: var(--cs-bg); }
.ws-stats dd { margin: 0; font-weight: 700; font-size: clamp(28px, 2.4vw, 40px); letter-spacing: -.03em; }
.ws-stats dt { margin-top: 4px; font-size: 14px; color: var(--cs-muted); }

/* ---------- brief principles ---------- */

.ws-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.ws-principle { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 2.4vw, 36px); border-radius: 28px; background: #13233f; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%); }
.ws-principle h3 { font-weight: 600; font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -.4px; }
.ws-principle > p { font-size: 15.5px; line-height: 1.65; color: rgb(255 255 255 / 68%); }
.ws-viz { position: relative; height: 220px; margin-bottom: 14px; overflow: hidden; padding: 22px; border-radius: 18px; background: var(--cs-dark); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%); }
.ws-viz--center { display: flex; align-items: center; justify-content: center; }
.ws-rows { display: flex; flex-direction: column; gap: 9px; }
.ws-row { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: 10px; align-items: center; opacity: .28; transition: opacity .6s ease; }
.ws-row span { height: 10px; border-radius: 3px; transition: all .6s ease; }
.ws-row span:nth-child(1) { background: rgb(255 255 255 / 25%); }
.ws-row span:nth-child(2) { width: var(--pct); background: rgb(255 255 255 / 22%); }
.ws-row span:nth-child(3) { background: rgb(255 255 255 / 12%); }
.ws-row.is-on { opacity: 1; }
.ws-row.is-on span:nth-child(2) { background: var(--accent); }
.ws-row.is-on span:nth-child(3) { background: #ff6b57; }
.ws-why { position: relative; }
.ws-why__price { padding: 10px 18px; border-radius: 14px; background: rgb(31 107 255 / 14%); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 12%); font-family: var(--ws-mono); font-weight: 600; font-size: 40px; letter-spacing: -.02em; transition: box-shadow .5s ease; }

.ws-why__tip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--white);
  color: var(--cs-ink);
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / 60%);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .5s ease, transform .6s var(--ease);
}
.ws-why__tip p { color: var(--cs-muted); }
.ws-why__tip .ws-why__q { font-weight: 600; color: var(--cs-ink); }
.ws-why.is-on .ws-why__price { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ws-why.is-on .ws-why__tip { opacity: 1; transform: translate(-50%, 0); }
.ws-comps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; gap: 10px; height: 100%; }
.ws-comps li { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 12px; background: rgb(255 255 255 / 6%); color: rgb(255 255 255 / 70%); font-weight: 500; font-size: 13px; transition: all .5s var(--ease); }
.ws-comps li.is-on { background: var(--accent); color: var(--white); transform: scale(1.06); }

/* ---------- challenge ---------- */

.ws-challenge { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 96px; align-items: start; }
.ws-challenge__intro { position: sticky; top: 120px; }
.ws-challenge__intro img { width: 100%; }
.ws-issues { display: flex; flex-direction: column; gap: 20px; }
.ws-issues li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px; border-radius: 24px; background: var(--white); box-shadow: 0 0 0 1px rgb(11 27 51 / 6%); }
.ws-issues img { aspect-ratio: 1; width: 100%; object-fit: contain; border-radius: 16px; }
.ws-issues li > div { display: flex; flex-direction: column; gap: 8px; }
.ws-issues h3 { font-weight: 600; font-size: 20px; letter-spacing: -.3px; }
.ws-issues p { font-size: 15.5px; line-height: 1.65; color: var(--cs-muted); }

/* ---------- products ---------- */

.ws-pi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ws-pi li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 2px solid var(--cs-ink); }
.ws-pi h3 { font-weight: 600; font-size: 19px; letter-spacing: -.3px; }
.ws-pi p { font-size: 15.5px; line-height: 1.65; color: #3a4651; }
.ws-rule { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px rgb(11 27 51 / 6%); }
.ws-rule__label { font-size: 12px; letter-spacing: 1px; color: var(--cs-faint); }
.ws-rule__sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.ws-rule__sentence button { padding: 8px 14px; border: 1.5px solid rgb(11 27 51 / 15%); border-radius: 999px; background: var(--white); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .25s ease; }
.ws-rule__sentence button[aria-pressed='true'] { border-color: var(--cs-ink); background: var(--cs-ink); color: var(--white); }
.ws-rule__result { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgb(11 27 51 / 8%); font-size: 14px; color: var(--cs-muted); }
.ws-rule__price { font-family: var(--ws-mono); font-weight: 600; font-size: 26px; color: var(--cs-ink); }
.ws-ump { overflow: clip; }
.ws-ump::before { content: ''; position: absolute; top: -20%; right: -10%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgb(125 176 255 / 18%), transparent); pointer-events: none; }
.ws-ump__head { max-width: 820px; }
.ws-ump__title { margin-bottom: 18px; }
.ws-ump__head .cs-lead { max-width: 640px; }
.ws-ump__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ws-ump__shots figure { margin: 0; overflow: hidden; border-radius: 20px; }
.ws-ump__shots img { width: 100%; }
.ws-ump__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.ws-ump__tags li { padding: 10px 18px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 999px; font-size: 14px; color: rgb(255 255 255 / 85%); }

/* ---------- outcomes + tools ---------- */

.ws-outcomes { background: #ebf2ff; }
.ws-outcomes__copy { gap: 24px; }
.ws-outcomes .cs-kicker { --cs-dot: var(--cs-ink); color: #3a4651; }
.ws-outcomes .cs-points,
.ws-outcomes .cs-points li { border-color: rgb(11 27 51 / 15%); }
.ws-outcomes .cs-points li::before { background: var(--accent); }
.ws-outcomes__art { justify-self: center; width: 100%; max-width: 720px; margin: 0; }

@media (max-width: 1000px) {
  .ws-challenge { grid-template-columns: 1fr; }
  .ws-challenge__intro { position: static; }
  .ws-ump__shots { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .ws-hero { padding-block: 64px 72px; }
  .ws-issues li { grid-template-columns: 1fr; }
  .ws-issues img { width: 120px; }
}
