/* V4 · built from Harish's Figma (Bfq5SwmLcE3GsHziKndpHv, node 29-2) */

@font-face { font-family: "Denton"; src: url(fonts/DentonCondensedTest-Regular.woff2) format("woff2"), url(fonts/DentonCondensedTest-Regular.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Denton"; src: url(fonts/DentonCondensedTest-Bold.woff2) format("woff2"), url(fonts/DentonCondensedTest-Bold.otf) format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Denton"; src: url(fonts/DentonCondensedTest-ExtraBold.woff2) format("woff2"), url(fonts/DentonCondensedTest-ExtraBold.otf) format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(fonts/InterDisplay-Regular.woff2) format("woff2"), url(fonts/InterDisplay-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(fonts/InterDisplay-Medium.woff2) format("woff2"), url(fonts/InterDisplay-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(fonts/InterDisplay-SemiBold.woff2) format("woff2"), url(fonts/InterDisplay-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --cream: #FAF9F5;
  --white: #FFFFFF;
  --mint: #F5FAF8;
  --ink: #181818;
  --ink-2: #363636;
  --muted: #5A5A5A;
  --line: #E6E6E6;
  --green: #1F7A4D;
  --green-pill: #008E48;
  --brown: #60412D;
  --lilac: #A797FF;
  --red: #E13C3C;
  --amber: #DD8400;
  --myth: #8E0000;
  --myth-bg: #FEF2F1;
  --blue: #1D48D7;
  --blue-bg: #F5F6FA;
  --dark: #141316;
  --dcard: #212126;
  --dline: #3E366A;

  --serif: "Denton", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --content: 1088px;
  --pad: 56px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 20px; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
p, h1, h2, h3, figure, ul, ol, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: calc(var(--content) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.rule { border: 0; height: 1px; background: var(--line); margin: 0; width: 100%; }

/* Progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); }

/* Type */
.h-hero { font: 700 40px/normal var(--serif); color: var(--ink); letter-spacing: 0; display: grid; gap: 0; }
.h-hero .ln { display: block; }
.h-32 { font: 700 32px/normal var(--serif); color: var(--ink-2); letter-spacing: 0; text-wrap: pretty; }
.h-48 { font: 700 48px/normal var(--serif); color: var(--ink); letter-spacing: 0; }
.on-dark { color: #E2E2E2; }
.body-14 { font-size: 14px; line-height: 20px; color: #000; }
.red { color: var(--red); }
.amber { color: var(--amber); }
.w688 { max-width: 688px; }
.w682 { max-width: 682px; }

/* Pills, tags, chips */
.pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 16px; border-radius: 100px;
  font: 500 12px/16px var(--sans); color: var(--cream); letter-spacing: -0.01em; white-space: nowrap;
}
.pill.brown { background: var(--brown); }
.pill.lilac { background: var(--lilac); }
.pill.green { background: var(--green-pill); }
.tags, .chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 16px; border-radius: 100px;
  background: #fff; border: 1px solid var(--line); font: 500 12px/16px var(--sans); color: #272727; white-space: nowrap;
}
.chip {
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 100px; background: #fff;
  border: 1px solid var(--line); font: 400 14px/18px var(--sans); color: var(--muted); white-space: nowrap;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.chip:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }

/* Sections */
.sec { position: relative; padding: var(--pad) 0; }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
.sec-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-right: 0; margin-bottom: 40px; gap: 24px; }
.sec-head.row > div { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; flex: 1 1 auto; min-width: 0; }
.sec-head.row .chips { flex: none; flex-wrap: nowrap; }

/* Top bar */
.topbar { background: #fff; height: 56px; display: flex; align-items: center; position: relative; z-index: 5; }
/* Back to home: a small tertiary link above each case-study H1 (16px gap = 8px margin + the hero column's 8px gap) */
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; text-decoration: none; font-size: 15px; line-height: 20px; color: var(--muted); transition: color .2s ease; }
.back img { opacity: .7; }
.back:hover { color: #000; }
.back:hover img { opacity: 1; }
.back:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
.back img { transition: transform .3s var(--ease); }
.back:hover img { transform: translateX(-3px); }

/* Hero */
.hero { padding-bottom: 0; }
.hero-head { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 32px; }
.hero-copy { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hero-sub { max-width: 558px; }
.hero .tags { width: 240px; flex: none; }
.meta { display: flex; justify-content: space-between; gap: 24px; padding: 32px 0; font-size: 14px; }
.meta dt { color: var(--muted); line-height: 18px; margin-bottom: 6px; }
.meta dd { color: #000; line-height: 24px; font-weight: 600; }
.meta .team dd span { color: var(--muted); }
.stats { display: flex; justify-content: space-between; gap: 24px; padding: 32px 0 0; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-n { font: 700 48px/64px var(--serif); height: 64px; color: var(--green); letter-spacing: 0; white-space: nowrap; }
.stat-n.muted-n { color: #9A9A9A; }
.stat-l { display: flex; align-items: center; gap: 8px; font: 400 14px/20px var(--sans); color: #000; white-space: nowrap; }

.hero-media {
  position: relative; height: 355px; margin-top: 56px; border-radius: 16px; overflow: hidden; background: #2b4a37;
}
.hero-img { position: absolute; left: 0; top: -42.57%; width: 100%; height: 205.61%; object-fit: cover; }
.hero-media .gl, .cta .gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.hero-media.gl-on .gl, .cta.gl-on .gl { opacity: 1; }
.hero-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 231px; height: auto; z-index: 2; }
.problem { margin-top: 56px; padding-bottom: 56px; margin-bottom: 0; }
.problem .h-32 { max-width: 688px; }

/* Info + popover (design from v1) */
.info {
  position: relative; display: inline-flex; width: 18px; height: 18px; padding: 0; border: 0; background: none;
  cursor: help; flex: none; border-radius: 50%; transition: transform .25s var(--ease);
}
.info > img { width: 18px; height: 18px; transition: opacity .2s; }
.info:hover > img, .info[aria-expanded="true"] > img { opacity: .6; }
.pop {
  --dx: 0px;
  position: absolute; z-index: 40; width: min(320px, calc(100vw - 32px)); left: 50%; top: calc(100% + 12px);
  transform: translate(calc(-50% + var(--dx)), -6px); opacity: 0; pointer-events: none;
  background: #1A1A1A; color: #F4F1EA; border-radius: 14px; padding: 14px 16px;
  font: 400 13px/1.55 var(--sans); letter-spacing: 0; text-align: left; white-space: normal;
  box-shadow: 0 2px 4px rgba(26,26,26,.04), 0 24px 60px -24px rgba(26,26,26,.32);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.pop::after {
  content: ""; position: absolute; left: calc(50% - var(--dx)); bottom: 100%; transform: translateX(-50%);
  border: 7px solid transparent; border-bottom-color: #1A1A1A;
}
.pop.up { top: auto; bottom: calc(100% + 12px); transform: translate(calc(-50% + var(--dx)), 6px); }
.pop.up::after { bottom: auto; top: 100%; border-bottom-color: transparent; border-top-color: #1A1A1A; }
.stat, .dec-copy, .stat-l { position: relative; }
.stat:hover, .stat:focus-within, .dec-copy:hover, .dec-copy:focus-within { z-index: 30; }
.pop b { color: #fff; font-weight: 600; }
.pop.wide { width: min(380px, calc(100vw - 32px)); }
.pop .pk { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9FD9B7; font-weight: 600; margin-top: 12px; }
.pop .pk:first-child { margin-top: 0; }
.pop .pv { display: block; margin-top: 3px; }
.pop { display: none; opacity: 1; pointer-events: auto; transform: translateX(calc(-50% + var(--dx))); transition: none; }
.pop.up { transform: translateX(calc(-50% + var(--dx))); }
.info[aria-expanded="true"] .pop { display: block; animation: popIn .22s var(--ease); }
@keyframes popIn { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

/* Dark sections */
.dark { background: var(--dark); color: #fff; padding: 108px 0; overflow: hidden; }
.dark-tex { position: absolute; left: 50%; top: -11px; width: 1200px; max-width: none; height: calc(100% + 22px); object-fit: cover; object-position: top; opacity: .32; transform: translateX(-50%); pointer-events: none; }
.dark .wrap { position: relative; z-index: 1; }
.notch { position: absolute; left: 50%; width: min(var(--content), calc(100% - var(--pad) * 2)); height: 52px; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.notch.top { top: 0; }
.notch.bottom { bottom: 0; transform: translateX(-50%) rotate(180deg); }
.dcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.dcards + .dcards { margin-top: 32px; }
.dcards.two { grid-template-columns: repeat(2, 1fr); }
.dcard {
  background: var(--dcard); border: 1px solid var(--dline); border-radius: 16px; padding: 32px 24px;
  display: flex; flex-direction: column; gap: 32px; min-height: 208px;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.dcard:hover { border-color: #6B5FB3; background: #25252B; }
.dcards.refl { grid-auto-rows: 1fr; }
.dcards.refl > :nth-child(3) { grid-column: 1; }
.dcard p { font-size: 16px; line-height: 26px; letter-spacing: -0.01em; color: #fff; }
.dcard .dk { color: rgba(255,255,255,.61); }
.ic-row { display: flex; }
.ic-row.gap8 { gap: 8px; }
.ic-row img { width: 32px; height: 32px; }

/* Reveal cards (success + trade-offs) */
.rcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.rcard {
  position: relative; height: 350px; border-radius: 16px; padding: 24px; background: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; outline: none;
  transition: background .5s var(--ease);
}
.rcards.white .rcard { background: #fff; }
.rc-ic { width: 32px; height: 32px; transition: transform .6s var(--ease); }
.rc-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rc-title { font: 700 32px/normal var(--serif); color: var(--green); letter-spacing: 0; }
.rc-arrow { width: 53px; height: 53px; flex: none; transition: transform .5s var(--ease), opacity .4s var(--ease); }
.rc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.rc-in { min-height: 0; overflow: hidden; }
.rc-more ul, .rc-more .rc-note { opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.rc-more ul { padding: 16px 0 0 21px; font-size: 14px; line-height: 22px; color: #000; display: grid; gap: 6px; list-style: disc; }
.rc-more .rc-note { font-size: 13px; line-height: 19px; color: var(--muted); margin-top: 10px; }
.rcard:hover, .rcard:focus-visible, .rcard.open { background: var(--mint); }
.rcards.white .rcard:hover, .rcards.white .rcard:focus-visible, .rcards.white .rcard.open { background: var(--mint); }
.rcard:hover .rc-more, .rcard:focus-visible .rc-more, .rcard.open .rc-more { grid-template-rows: 1fr; }
.rcard:hover .rc-more ul, .rcard:hover .rc-note, .rcard:focus-visible .rc-more ul, .rcard:focus-visible .rc-note, .rcard.open .rc-more ul, .rcard.open .rc-note { opacity: 1; transform: none; transition-delay: .12s; }
.rcard:hover .rc-arrow, .rcard:focus-visible .rc-arrow, .rcard.open .rc-arrow { opacity: 0; transform: rotate(45deg) scale(.6); }
.rcard:hover .rc-ic, .rcard.open .rc-ic { transform: translateY(-2px) scale(1.06); }

/* Research */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.tile { height: 194px; border-radius: 16px; overflow: hidden; position: relative; background: #eee; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile.ga { background: #FDF2CF; }
.tile.ga img { position: absolute; left: 50%; top: 50%; width: 177.78px; height: 100px; object-fit: cover; transform: translate(-50%, -50%); }
.tile.ga:hover img { transform: translate(-50%, -50%) scale(1.06); }
.myths { position: relative; height: 189px; border-radius: 16px; background: var(--myth-bg); margin-top: 32px; overflow: hidden; }
.myth {
  position: absolute; left: var(--x); top: var(--y); display: inline-flex; align-items: center; padding: 10px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 100px; white-space: nowrap;
  font: 400 18px/normal var(--serif); color: var(--myth); letter-spacing: 0; will-change: transform;
  transition: box-shadow .3s var(--ease);
}
.myth:hover { box-shadow: 0 8px 18px -10px rgba(142,0,0,.35); }
.insight { position: relative; height: 550px; border-radius: 16px; overflow: hidden; margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 0 40px; }
.insight-bg { position: absolute; inset: 0; }
.insight-bg img { width: 100%; height: 100%; object-fit: cover; }
.insight-copy { position: relative; width: 780px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.insight-copy .h-48 { text-wrap: nowrap; }
.insight-copy .h-48 .ln { display: block; }
.insight-copy em { font-style: normal; color: var(--green); }
.insight-sub { width: 484px; max-width: 100%; margin-top: -8px; }

/* Decisions */
.decisions { padding: 108px 0; }
.decisions .rule { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); margin: 40px 0; }
.dec { display: grid; grid-template-columns: 403px 1fr; gap: 40px; align-items: start; }
.dec-copy { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.dec-n { font-size: 14px; line-height: 24px; color: var(--muted); }
.dec-t { font: 500 24px/normal var(--sans); color: #000; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; margin-top: -8px; }
.dec-t .info { transform: translateY(1px); }
.dec-t .pop { font-size: 13px; }
.dec-d { font-size: 14px; line-height: 24px; color: var(--muted); margin-top: -8px; }
.dec-media { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.dec-media > div:first-child:not(.panel):not(.review) { display: flex; flex-direction: column; gap: 4px; margin-bottom: -16px; }
.live {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-radius: 16px;
  background: var(--blue-bg); text-decoration: none; transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.live-l { display: inline-flex; align-items: center; gap: 8px; font: 500 16px/normal var(--sans); color: var(--blue); }
.live-arr { transition: transform .35s var(--ease); }
.live:hover { background: #EBEEF8; box-shadow: inset 0 0 0 1px #D5DCF3; }
.live:hover .live-arr { transform: translateX(4px); }
.fnote { font-size: 14px; line-height: 24px; color: var(--muted); }
.panel { background: var(--cream); border-radius: 16px; overflow: hidden; position: relative; }
.panel.center { height: 350px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; }
.placement { width: 365px; height: auto; filter: drop-shadow(0 18px 30px rgba(24,24,24,.08)); transition: transform .5s var(--ease); }
.placement:hover { transform: translateY(-4px) rotate(-.4deg); }

/* Compare slider (from v1, re-skinned) */
.cmp-panel { padding: 24px; height: 538px; display: flex; flex-direction: column; gap: 12px; }
.compare {
  --pos: 50%; position: relative; flex: 1; border-radius: 12px; overflow: hidden; background: #F1EEE8;
  cursor: ew-resize; user-select: none; touch-action: pan-y;
}
.cmp-layer { position: absolute; inset: 0; padding: 20px 20px 0; }
.cmp-after { clip-path: inset(0 0 0 var(--pos)); background: #EAF3EE; }
.cmp-pages { display: flex; gap: 14px; justify-content: center; height: 100%; }
.cmp-pages figure { flex: 0 0 auto; width: 36%; height: 100%; overflow: hidden; border-radius: 10px 10px 0 0; background: #fff; position: relative; box-shadow: 0 8px 24px -12px rgba(26,26,26,.18); }
.cmp-pages.one figure { width: 48%; }
.cmp-pages img { width: 100%; height: auto; }
.cmp-pages figcaption { position: absolute; left: 10px; top: 10px; font-size: 12px; line-height: 1; background: rgba(26,26,26,.78); color: #fff; padding: 5px 8px; border-radius: 999px; }
.ctag { position: absolute; bottom: 14px; font: 500 12px/1 var(--sans); padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.cmp-before .ctag { left: 14px; }
.cmp-after .ctag { right: 14px; }
.ctag.green { background: var(--green); color: #fff; border-color: var(--green); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--ink); transform: translateX(-1px); }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.cmp-handle span::before, .cmp-handle span::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border: solid #fff; border-width: 0 0 1.5px 1.5px; }
.cmp-handle span::before { left: 12px; transform: translateY(-50%) rotate(45deg); }
.cmp-handle span::after { right: 12px; transform: translateY(-50%) rotate(-135deg); }
.cmp-hint { font-size: 13px; color: var(--muted); text-align: center; }

/* Videos */
.vids-panel { height: 350px; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; cursor: grab; scroll-snap-type: x proximity; }
.vids-panel::-webkit-scrollbar { display: none; }
.vids-panel.dragging { cursor: grabbing; scroll-snap-type: none; }
.vids { display: flex; gap: 24px; padding: 0 86px; }
.vid { scroll-snap-align: center; }
.vid { flex: 0 0 284px; }
.vid-box { width: 284px; height: 156px; border-radius: 8px; overflow: hidden; background: #000; }
.vid-box video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vid figcaption { padding-top: 12px; display: grid; gap: 6px; }
.vid figcaption b { font: 600 14px/1.2 "Inter", var(--sans); color: #334155; }
.vid figcaption span { font: 400 12px/1.55 "Inter", var(--sans); color: #475569; max-width: 270px; }

/* Form flow (from v1, re-skinned to the Figma screenshot) */
.flow { width: 476px; max-width: 100%; display: grid; gap: 16px; }
.flow-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 12px; }
.flow-lbl { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 10px; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; font-size: 12px; line-height: 1; padding: 10px 10px; border-radius: 6px; background: var(--cream); border: 1px solid var(--line); color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps li::before { content: counter(s) ". "; color: var(--muted); }
.steps li.hot { background: #F8E7DD; border-color: #EBC7B4; }
.steps li.cool { background: #E3F1E8; border-color: #BFDCC9; }
.lane { position: relative; height: 22px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.lane i { position: absolute; top: 50%; left: 8px; width: 5px; height: 5px; border-radius: 50%; background: #1A1A1A; margin-top: -2.5px; }
.lane i.lost { background: #B4532A; }
.drop-lbl { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 12px/1 var(--sans); background: var(--cream); padding-left: 4px; z-index: 1; }
.old .drop-lbl { color: #B4532A; }
.new .drop-lbl { color: var(--green); }
.flow-cap { font-size: 12px; line-height: 1.5; color: #333; }

/* Review switchers (for picking options; remove before publishing) */
.review {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; margin-bottom: 16px;
  border: 1px dashed #B9B2A6; border-radius: 12px; background: rgba(255,255,255,.7); font: 500 12px/1 var(--sans);
}
.review > span { color: var(--muted); padding: 0 6px; letter-spacing: .02em; }
.review button { border: 0; background: transparent; font: inherit; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s; }
.review button:hover { background: #EFEDE7; }
.review button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dec-media .review { align-self: flex-start; margin-bottom: -24px; display: inline-flex; flex-direction: row; }

/* OTP animation versions */
.otp-panel { align-content: center; gap: 14px; }
.otp-panel .flow-cap { width: 476px; max-width: 100%; }
.wf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.wf-count { font: 500 12px/1.3 var(--sans); color: #B4532A; text-align: right; }
.wf-count.good { color: var(--green); }
.wf-count b { font-weight: 700; font-variant-numeric: tabular-nums; }
.waffle { display: grid; grid-template-columns: repeat(25, 1fr); gap: 5px; }
.waffle i { aspect-ratio: 1; border-radius: 50%; background: #1A1A1A; opacity: .14; }
.waffle i.in { opacity: 1; }
.waffle i.out { background: #B4532A; }
.walk .steps { margin: 0 0 10px; }
.walk .steps li { position: relative; overflow: visible; transition: background .3s, border-color .3s; }
.walk .steps li em { font-style: normal; font-weight: 600; margin-left: 6px; color: #B4532A; opacity: 0; transition: opacity .3s; }
.walk .steps li em.ok { color: var(--green); }
.walk .steps li.lit { background: #fff; border-color: #1A1A1A; }
.walk .steps li.lit em { opacity: 1; }
.walk-bar { height: 4px; border-radius: 4px; background: var(--cream); overflow: hidden; }
.walk-bar i { display: block; height: 100%; width: 0; background: #1A1A1A; border-radius: 4px; }
.walk.new .walk-bar i { background: var(--green); }
.crowd { position: relative; height: 54px; border-radius: 10px; background: var(--cream); overflow: hidden; }
.crowd .gate { position: absolute; top: 16px; bottom: 4px; width: 2px; margin-left: -1px; background: #B4532A; border-radius: 2px; }
.new .crowd .gate { background: var(--green); }
.crowd .gate-lbl { position: absolute; top: 3px; transform: translateX(-50%); font: 500 12px/1 var(--sans); color: #B4532A; white-space: nowrap; }
.new .crowd .gate-lbl { color: var(--green); }
.crowd .man { position: absolute; left: 0; bottom: 6px; width: 14px; height: 22px; }
.crowd .man svg { width: 100%; height: 100%; display: block; }
.crowd .man.lost svg path { fill: #B4532A; }

/* Live page, auto-scrolling (Figma 38:2216) */
.site-panel { position: relative; height: 538px; padding: 0; background: #fff; border: 1px solid var(--line); }
.site-track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.site-track img { width: 100%; height: auto; display: block; }
.site-tag { position: absolute; right: 12px; bottom: 12px; font: 500 12px/1 var(--sans); color: #fff; background: rgba(24,24,24,.78); padding: 7px 10px; border-radius: 999px; pointer-events: none; }
.site-panel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 48px; background: linear-gradient(transparent, rgba(255,255,255,.9)); pointer-events: none; }

/* Placement card pair (Figma 36:1921), exported as images */
.pc-img { width: 240px; height: auto; display: block; border-radius: 16px; transition: transform .4s var(--ease); }
.pc-img:hover { transform: translateY(-3px); }
.pc-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: end; align-content: center; padding: 24px 32px; min-height: 350px; }
.pc-col { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.pc-slot { display: flex; align-items: flex-end; justify-content: center; }
.pc-col figcaption { font: 500 14px/24px var(--sans); color: #000; text-align: center; }

/* OTP · 10 people, with step context */
.otp-d { display: grid; }
.crowd { display: grid; grid-template-columns: repeat(3, 1fr); height: 64px; }
.crowd .seg { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: 4px; padding-top: 6px; font: 500 12px/1.2 var(--sans); color: var(--muted); white-space: nowrap; }
.crowd .seg + .seg { border-left: 1px dashed #DAD5CB; }
.crowd .seg b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #E9E5DC; color: #1A1A1A; font-size: 12px; font-weight: 600; }
.crowd .seg.drop { color: #B4532A; }
.crowd .seg.drop b { background: #B4532A; color: #fff; }
.new .crowd .seg.drop { color: var(--green); }
.new .crowd .seg.drop b { background: var(--green); }
.crowd .gate { top: 22px; }

/* Results */
.timeline { padding-top: 0; position: relative; }
.figjam { position: relative; height: 522px; border-radius: 16px; background: var(--cream); overflow: hidden; margin-top: 32px; }
.figjam iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .8s var(--ease); }
.figjam.loaded iframe { opacity: 1; }
.figjam-load { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; gap: 10px; align-items: center; font: 500 16px/24px var(--sans); color: var(--muted); }
.figjam-load .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.figjam-shield {
  position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px;
}
.figjam-shield span {
  font: 500 13px/1 var(--sans); color: #fff; background: rgba(24,24,24,.82); padding: 10px 14px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.figjam.loaded:hover .figjam-shield span { opacity: 1; transform: none; }
.figjam.live .figjam-shield { display: none; }
.figjam-open { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); transition: color .25s, border-color .25s; }
.figjam-open:hover { color: var(--green); border-color: var(--green); }

/* Collaboration */
.collab .sec-head { margin-bottom: 0; }

/* CTA */
.cta { position: relative; height: 529px; overflow: hidden; display: flex; align-items: center; background: #6f6ad8; }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-veil { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; background: linear-gradient(90deg, rgba(235,140,192,.28), rgba(235,140,192,0)); backdrop-filter: blur(17px); -webkit-backdrop-filter: blur(17px); mask-image: linear-gradient(90deg, #000 70%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); }
.cta-t { position: relative; z-index: 2; margin-left: max(var(--pad), calc((100% - var(--content)) / 2)); text-decoration: none; color: #fff; font: 800 96px/100px var(--serif); letter-spacing: 0; display: flex; flex-direction: column; }
.cta-t .ln { display: block; transition: transform .6s var(--ease); }
.cta-t:hover .ln:last-child { transform: translateX(10px); }

/* Version switcher */
.vswitch {
  position: fixed; z-index: 90; right: 16px; bottom: 16px; display: flex; gap: 4px; padding: 4px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 24px -12px rgba(26,26,26,.2);
  font: 500 13px/1 var(--sans);
}
.vswitch a { padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); transition: background .2s, color .2s; }
.vswitch a:hover { color: var(--ink); }
.vswitch a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .sec-head { padding-right: 0; }
  .dec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .stat-n { font-size: 42px; }
  .stat-l { white-space: normal; }
  .stat-l { font-size: 15px; }
  .h-48 { font-size: 42px; }
  .cta-t { font-size: 80px; line-height: 84px; }
}
@media (max-width: 900px) {
  :root { --pad: 32px; }
  .hero-head { flex-direction: column; align-items: flex-start; }
  .hero .tags { width: auto; justify-content: flex-start; gap: 10px; }
  .meta { flex-wrap: wrap; }
  .meta > div { flex: 1 1 40%; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .stat-l { flex-wrap: wrap; }
  .dcards, .rcards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .dcards.refl > :nth-child(3) { grid-column: auto; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 16px; }
  .dec { grid-template-columns: 1fr; gap: 24px; }
  .dec-copy { position: static; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
  .chips, .sec-head.row .chips { justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
  .myths { height: auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
  .myth { position: relative; left: auto; top: auto; }
}
/* Cards show their details by default on touch screens and small widths */
@media (max-width: 900px), (hover: none) {
  .rcard { height: auto; min-height: 0; gap: 40px; justify-content: flex-start; background: var(--mint); border: 1px solid #D1D1D1; }
  .rcards.white .rcard { background: var(--mint); }
  .rcard .rc-more { grid-template-rows: 1fr; }
  .rcard .rc-more ul, .rcard .rc-note { opacity: 1; transform: none; }
  .rcard .rc-arrow { display: none; }
  .rcard .rc-more ul { padding-top: 8px; line-height: 28px; gap: 0; }
}

/* ---------- Mobile (Figma node 33-1389, 360 wide) ---------- */
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .sec { padding: 24px 0; }
  .sec-head, .sec-head.row { margin-bottom: 24px; gap: 16px; }
  .h-hero { font-size: 32px; line-height: 46px; gap: 0; }
  .h-32 { font-size: 32px; line-height: normal; }
  .h-48 { font-size: 32px; line-height: normal; }
  .insight-copy .h-48 { text-wrap: wrap; }
  .insight-copy .h-48 .ln { display: inline; }

  /* Top bar folds into the hero */
  .topbar { display: none; }
  .hero { padding-top: 24px; }
  .hero-head { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 24px; }
  .hero-copy { gap: 8px; }
  .hero .tags { width: auto; justify-content: flex-start; gap: 16px; }
  .hero .rule { width: calc(100% - 32px); margin: 0 auto; }
  .meta { flex-direction: column; gap: 16px; padding: 24px 0; }
  .meta > div { flex: none; }
  .stats { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
  .stat { gap: 4px; }
  .stat-n { font-size: 40px; line-height: 53px; height: 53px; }
  .stat-l { display: block; white-space: normal; font-size: 14px; line-height: 20px; }
  .stat-l .info { vertical-align: -3px; margin-left: 6px; }
  .hero-media { height: 355px; margin-top: 48px; }
  .hero-img { width: 1088px; max-width: none; left: 0; }
  .hero-logo { width: 173px; }
  .problem { margin-top: 48px; padding-bottom: 24px; }

  /* Dark bands: straight edges on mobile */
  .dark { padding: 24px 0; }
  .notch { display: none; }
  .dark-tex { width: 100%; left: 0; transform: none; }
  .dcards, .dcards.two, .dcards.refl { grid-template-columns: 1fr; gap: 24px; grid-auto-rows: auto; }
  .dcards.refl > :nth-child(3) { grid-column: auto; }
  .dcard { min-height: 0; padding: 32px 24px; }

  .rcards { grid-template-columns: 1fr; gap: 24px; }
  .rc-title { font-size: 24px; }
  .rc-title br { display: none; }

  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .myths { height: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
  .myth { position: relative; left: auto; top: auto; width: 100%; justify-content: center; min-height: 46px; white-space: normal; text-align: center; }
  .insight { height: 422px; padding: 0 16px; }
  .insight-sub { margin-top: 0; }

  .decisions { padding: 24px 0; }
  .decisions .rule { width: 100%; left: 0; transform: none; margin: 24px 0; }
  .dec { grid-template-columns: 1fr; gap: 24px; }
  .dec-copy { position: static; }
  .dec-media { gap: 24px; }
  .dec-media > div:first-child:not(.panel):not(.review) { margin-bottom: 0; }
  .dec-media .review { margin-bottom: 0; }
  .site-panel { height: 538px; }
  .cmp-pages figure { width: 44%; }
  .cmp-pages.one figure { width: 66%; }
  .panel.center { height: auto; min-height: 0; padding: 24px 16px; }
  .pc-panel { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px; min-height: 0; }
  /* OTP crowd on phones: number above the step name so every label fits its step, and a taller lane so the walkers stay clear of the labels */
  .crowd { height: 100px; }
  .crowd .seg { flex-direction: column; justify-content: flex-start; align-items: center; gap: 4px; padding: 8px 4px 0; white-space: normal; text-align: center; line-height: 1.25; }
  .crowd .gate { top: 62px; }
  .placement { width: 296px; max-width: 100%; }
  .vids-panel { height: auto; padding: 24px 0; }
  .vids { padding: 0 24px; }
  .flow { width: 100%; }
  .otp-panel .flow-cap { width: 100%; }
  .waffle { grid-template-columns: repeat(20, 1fr); gap: 4px; }
  .wf-head { flex-direction: column; align-items: flex-start; gap: 6px; }

  .sec-head.row { flex-direction: column; align-items: flex-start; }
  .chips, .sec-head.row .chips { justify-content: flex-start; gap: 16px; flex-wrap: wrap; }

  .stats.timeline { padding-top: 0; }
  .figjam { height: 522px; }

  .cta { height: 529px; justify-content: center; }
  .cta-veil { width: 100%; height: 360px; bottom: auto; background: linear-gradient(180deg, rgba(235,140,192,.28), rgba(235,140,192,0)); mask-image: linear-gradient(180deg, #000 55%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); }
  .cta-t { margin: 0 auto; width: 328px; max-width: calc(100% - 32px); text-align: center; align-items: center; font-size: 48px; line-height: normal; }

  .vswitch { left: 16px; right: 16px; justify-content: center; }
  .vswitch a { padding: 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media (max-width: 640px) { .d-only { display: none; } }
