/* Stair Design — scroll case study pages */
.case-page {
  --ink: #19191c;
  --muted: #6b727e;
  --gray: #f4f5f7;
  --night: #0f1110;
  --accent: #35d07f;
  --green: #1e7e34;
  background: #fff;
  color: var(--ink);
  transition: background-color .6s ease, color .6s ease;
}
.case-page.is-night { background: var(--night); color: #f2f3f5; }

/* Header floats over the dark hero */
.case-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  max-width: none; padding: 28px 40px; color: #fff;
}
.case-header .nav-right { color: rgba(255,255,255,.7); }

.wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow.warn { color: #c2410c; }
.dark .eyebrow, .is-night .c-next .eyebrow { color: rgba(255,255,255,.55); }

.c-sec { padding: 160px 0; background: #fff; }
html:has(.case-page) { scroll-behavior: auto; }
.c-sec.tight { padding: 40px 0 160px; }
.c-sec.gray { background: var(--gray); }
.dark { background: var(--night); color: #f2f3f5; }

.c-sec h2, .c-loop h2 {
  font-size: clamp(32px, 4.2vw, 56px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em;
}
.c-sec h3 { font-size: 22px; font-weight: 600; margin-top: 36px; }
.c-sec p, .c-loop p { font-size: 19px; line-height: 1.7; margin-top: 20px; color: inherit; }
.split-copy p, .two-col p, .lead { color: var(--muted); }
.dark .two-col p, .is-night .c-next p { color: rgba(255,255,255,.7); }
.lead { max-width: 720px; }

/* Hero */
.c-hero {
  position: relative; height: 100vh; min-height: 640px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.c-hero-media { position: absolute; inset: 0; }
.c-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  opacity: .75; transform-origin: 60% 50%;
}
.c-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,17,16,.92) 0%, rgba(15,17,16,.55) 45%, rgba(15,17,16,.1) 100%);
}
.c-hero-copy { position: relative; z-index: 2; max-width: 1152px; width: 100%; margin: 0 auto; padding: 0 24px 14vh; }
.c-hero h1 {
  font-size: clamp(56px, 10vw, 148px); font-weight: 600; line-height: .98; letter-spacing: -.04em;
}
.c-hero h1 span { display: block; }
.c-hero-sub { margin-top: 28px; font-size: clamp(18px, 1.8vw, 24px); color: rgba(255,255,255,.75); }
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.scroll-cue::after {
  content: ""; display: block; width: 1px; height: 40px; margin: 10px auto 0;
  background: rgba(255,255,255,.6); animation: cue 1.8s ease-in-out infinite; transform-origin: top;
}
@keyframes cue { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(0);transform-origin:bottom} }

/* Double diamond */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; }
.phase h3 { margin-top: 0; font-size: 22px; }
.phase p { font-size: 14px; line-height: 1.5; margin-top: 6px; color: var(--muted); min-height: 42px; }
.big { display: block; margin-top: 14px; font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; color: var(--green); letter-spacing: -.02em; line-height: 1.1; }
.diamond { margin-top: 72px; }
.diamond img { width: 100%; height: auto; display: block; }

/* Splits */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr 1fr; }
.split-media { margin: 0; }
.split-media img { width: 100%; height: auto; display: block; border-radius: 16px; }
.screen img { box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); border-radius: 12px; }
.tilt img { box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.book { max-width: 380px; justify-self: center; }
.book img { border-radius: 4px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }

/* Quote */
.c-quote { min-height: 100vh; display: flex; align-items: center; padding: 120px 0; }
.c-quote blockquote {
  font-size: clamp(32px, 4.6vw, 68px); font-weight: 300; line-height: 1.22; letter-spacing: -.02em;
}
.c-quote .w { opacity: .14; transition: opacity .2s linear; }
.c-quote .quote-foot { margin-top: 48px; font-size: 22px; color: var(--accent); }

/* Weekly loop */
.c-loop { padding: 160px 0; background: #fff; }
.loop-steps { list-style: none; margin-top: 44px; counter-reset: s; }
.loop-steps li {
  display: grid; grid-template-columns: 48px 1fr; align-items: baseline;
  padding: 18px 0; border-top: 1px solid #e5e7eb; font-size: 19px; line-height: 1.5;
  color: #b4b8bf; transition: color .35s ease;
}
.loop-steps li:last-child { border-bottom: 1px solid #e5e7eb; }
.loop-steps li span { font-size: 14px; font-weight: 700; color: inherit; }
.loop-steps li.on { color: var(--ink); }
.loop-steps li.on span { color: var(--green); }

.two-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-notes > div { background: var(--gray); border-radius: 24px; padding: 40px 44px; }
.two-notes .eyebrow { margin-bottom: 8px; }
.two-notes p { margin-top: 0; color: var(--muted); }
.note-big { font-size: 28px !important; font-weight: 600; line-height: 1.3 !important; color: var(--ink) !important; }

/* Gibson + counts */
.gibson { font-size: clamp(28px, 3.6vw, 48px); font-weight: 300; line-height: 1.25; letter-spacing: -.02em; max-width: 960px; }
.gibson cite { display: block; margin-top: 18px; font-size: 15px; font-style: normal; color: var(--muted); letter-spacing: 0; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 80px; }
.counts > div { background: #fff; border-radius: 24px; padding: 40px 44px; }
.counts .big { margin-top: 0; font-size: clamp(56px, 6vw, 88px); }
.counts p { margin-top: 10px; font-size: 17px; color: var(--muted); }

/* Project 3 */
.ten-sec { margin-top: 48px; }
.huge { display: block; font-size: clamp(72px, 11vw, 168px); font-weight: 700; color: var(--accent); letter-spacing: -.04em; line-height: 1; }
.ten-sec p { margin-top: 10px; color: rgba(255,255,255,.7); }
.wide-media { margin: 72px 0 0; }
.wide-media img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }

/* Stacking cards */
.stack { margin-top: 72px; }
.stack-card {
  position: sticky; top: 14vh;
  background: var(--bg); color: #fff; border-radius: 28px;
  padding: 56px 64px; min-height: 340px; margin-bottom: 40px;
  transform-origin: 50% 0;
  box-shadow: 0 -20px 60px -30px rgba(0,0,0,.35);
}
.stack-card:nth-child(2) { top: calc(14vh + 28px); }
.stack-card:nth-child(3) { top: calc(14vh + 56px); }
.stack-card .eyebrow { color: rgba(255,255,255,.6); }
.stack-card h3 { margin-top: 0; font-size: clamp(36px, 4vw, 56px); letter-spacing: -.02em; }
.stack-card p:not(.eyebrow) { color: rgba(255,255,255,.8); max-width: 640px; }

/* What's next */
.c-next { padding-bottom: 200px; background: transparent; }
.closing { font-size: 24px !important; line-height: 1.5 !important; color: inherit !important; font-weight: 500; margin-top: 40px !important; }

/* Next / back */
.case-next {
  max-width: 1152px; margin: 0 auto; padding: 60px 24px 20px;
  display: flex; justify-content: space-between; font-weight: 600; font-size: 17px;
}
.case-next a:hover { text-decoration: underline; text-underline-offset: 5px; }
.is-night footer { color: rgba(255,255,255,.45); }

/* Responsive */
@media (max-width: 900px) {
  .c-sec, .c-loop { padding: 100px 0; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-media { order: 2; }
  .phases { grid-template-columns: 1fr 1fr; }
  .counts, .two-col, .two-notes { grid-template-columns: 1fr; }
  .stack-card { padding: 40px 32px; min-height: 280px; }
  .case-header { padding: 20px; }
}
@media (max-width: 480px) {
  .case-header { padding: 18px 16px; }
  .case-header .logo { font-size: 16px; }
  .case-header .nav-right { font-size: 13px; }
  .phases { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; }
  .c-quote .w { opacity: 1; }
  .loop-steps li { color: var(--ink); }
}

/* ===================== Shared additions ===================== */
.w { opacity: .14; transition: opacity .2s linear; }
.no-fx .w { opacity: 1; }
.case-header.light { color: var(--ink); }
.case-header.light .nav-right { color: var(--muted); }
.narrow { max-width: 900px; }
.footnote { font-size: 13px !important; color: var(--muted) !important; margin-top: 40px !important; line-height: 1.6 !important; }
.c-sec.navy { background: #23324d; color: #fff; }
.c-sec.navy .eyebrow { color: rgba(255,255,255,.55); }
.c-sec.navy p { color: rgba(255,255,255,.75); }
.c-sec.dark p { color: rgba(255,255,255,.7); }
.c-sec.gray2 { background: #f5f4f7; }
.stat-line { font-size: 19px; }
.stat-line .big { display: inline; margin: 0 6px 0 0; font-size: 44px; vertical-align: -6px; }

/* ===================== Payments ===================== */
.pay-page { --gray: #f5f4f7; --red: #c8302e; --grn: #2f8f46; }
.p-hero { background: #f1f6f7; padding: 150px 0 0; overflow: hidden; min-height: 100vh; display: flex; align-items: flex-end; }
.p-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; width: 100%; }
.p-hero-copy { padding-bottom: 14vh; }
.p-hero h1 { font-size: clamp(52px, 7.4vw, 112px); font-weight: 300; line-height: 1.02; letter-spacing: -.035em; }
.p-hero h1 span { display: block; }
.p-hero-sub { margin-top: 32px; max-width: 520px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.p-hero-phone { margin: 0; justify-self: center; max-width: 470px; }
.p-hero-phone img { width: 100%; display: block; mix-blend-mode: multiply; }

/* Venn */
.venn { position: relative; height: 560px; margin-top: 56px; display: flex; justify-content: center; align-items: center; }
.v-circle { width: 500px; height: 500px; border-radius: 50%; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 0 56px; position: relative; mix-blend-mode: multiply; }
.v-pay { background: #4a86c8; margin-right: -70px; align-items: flex-start; }
.v-inv { background: #8f6e52; margin-left: -70px; align-items: flex-end; text-align: right; }
.v-circle h3 { margin: 0 0 18px; font-size: 22px; }
.v-circle ul { list-style: none; font-size: 15px; line-height: 1.5; }
.v-circle li { margin: 6px 0; padding: 2px 8px; border-radius: 6px; }
.v-pay ul { padding-right: 120px; }
.v-inv ul { padding-left: 120px; }
.v-acat { font-weight: 600; }
.v-overlap { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: #fff; font-weight: 700; text-align: center; font-size: 15px; z-index: 2; margin: 0 !important; color: #fff !important; line-height: 1.4 !important; }
.v-note { position: absolute; font-size: 15px !important; font-weight: 500; color: var(--ink); max-width: 200px; margin: 0 !important; }
.v-note-own { top: 10px; right: 4%; }
.v-note-today { bottom: -6px; right: 6%; }
.v-note-own::before, .v-note-today::before { content: "\2199  "; color: var(--muted); }

/* Record */
.record { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.rec { background: #fff; border-radius: 22px; padding: 32px; }
.rec.hl { box-shadow: 0 0 0 2px #23324d; }
.rec h3 { margin: 0; font-size: 16px; }
.rec .big { font-size: clamp(36px, 3.4vw, 48px); }
.rec-date { font-size: 13px !important; color: var(--muted) !important; margin-top: 6px !important; }
.rec ul { margin-top: 16px; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ACAT */
.cat { max-width: 420px; justify-self: center; }
.cat img { border-radius: 0; }
.aside { font-size: 26px !important; color: var(--ink) !important; font-weight: 500; }

/* Impact */
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.impact h3 { margin: 0; font-size: 22px; color: #fff; }
.impact .rec-date { color: rgba(255,255,255,.55) !important; }
.impact .huge { color: #6ee7a0; font-size: clamp(64px, 7vw, 108px); margin-top: 16px; }
.impact .delta { margin-top: 8px; font-weight: 600; color: #6ee7a0 !important; }

/* Funnel */
.funnel { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; margin-top: 56px; align-items: start; }
.f-col { position: relative; transition: opacity .4s ease; }
.f-col.dim { opacity: .3; }
.f-card { background: #fff; border-radius: 10px; padding: 12px 12px 14px; border-top: 4px solid #1f4e9b; box-shadow: 0 6px 20px -12px rgba(0,0,0,.25); min-height: 120px; }
.gray .f-card { background: #fff; }
.c-sec:not(.gray) .f-card { background: var(--gray); box-shadow: none; }
.f-card span { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; min-height: 32px; }
.f-card i { display: block; height: 6px; border-radius: 3px; background: #dfe3ea; margin-top: 8px; }
.f-card i:nth-of-type(2) { width: 80%; } .f-card i:nth-of-type(3) { width: 60%; }
.f-col.hi .f-card { border-top-color: var(--red); box-shadow: 0 0 0 2px var(--red), 0 12px 30px -12px rgba(200,48,46,.4); }
.f-bar { height: 160px; margin: 18px auto 0; width: 60%; background: var(--grn); position: relative; border-radius: 4px; overflow: hidden; }
.f-drop { position: absolute; left: 0; right: 0; bottom: 0; background: var(--red); }
.f-val { text-align: center; margin-top: 10px !important; font-size: 26px !important; font-weight: 700; color: var(--ink) !important; line-height: 1.1 !important; }
.f-val small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.f-col.hi .f-val { color: var(--red) !important; }
.f-label { margin-top: 32px !important; font-size: 16px !important; }
.f-label strong { display: block; font-size: 22px; color: var(--ink); }
.f-label small { color: var(--muted); }
.f-morph-sec { min-height: 100vh; display: flex; align-items: center; }
.f-morph-sec > .wrap { width: 100%; }
.f-morph-sec.is-after .f-label strong { color: var(--grn); }

/* Dashboard */
.wait-callout { font-size: 22px !important; color: #ff6b6b !important; font-weight: 600; }
.timer { font-size: clamp(64px, 8vw, 120px) !important; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff !important; letter-spacing: -.03em; margin-top: 12px !important; }
.dash-card { background: #16181d; border: 1px solid #2a2e36; border-radius: 14px; padding: 28px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.dash-title { margin: 0 !important; font-size: 20px !important; color: #fff !important; font-weight: 700; font-family: "Poppins", sans-serif; }
.dash-sub { font-size: 12px !important; margin-top: 4px !important; color: #8a919c !important; }
.dash-tabs { display: flex; gap: 6px; margin: 18px 0; }
.dash-tabs span { font-size: 11px; padding: 5px 10px; border-radius: 6px; background: #22262e; color: #9aa1ab; }
.dash-tabs span.on { background: #e7e9ee; color: #111; }
.dash-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #262a32; font-size: 12.5px; }
.dash-card dt { color: #b7bcc5; }
.dash-card dd { color: #fff; font-weight: 600; white-space: nowrap; }
.dash-card .alert dd { color: #ff6b6b; border: 1px solid #ff6b6b; padding: 2px 8px; border-radius: 6px; }

/* Design challenge */
.c-challenge { position: relative; overflow: hidden; background: #fff; min-height: 90vh; display: flex; align-items: center; }
.c-challenge .wrap { position: relative; z-index: 1; width: 100%; }
.challenge-q { font-size: clamp(44px, 6vw, 88px) !important; font-weight: 300 !important; line-height: 1.08 !important; max-width: 900px; letter-spacing: -.03em; }
.c-challenge .eyebrow { font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; }
.spinner { position: absolute; right: -20vw; top: 50%; width: 90vh; height: 90vh; margin-top: -45vh; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(31,78,155,.0), rgba(31,78,155,.05) 40%, rgba(31,78,155,.22) 75%, rgba(31,78,155,.0) 76%); }
.spinner::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: #fff; }

/* Concepts */
.concepts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.concept { background: var(--gray); border-radius: 22px; padding: 28px 24px; }
.concept-sec .concept { background: #f5f4f7; }
.concept img { width: 100%; height: 330px; object-fit: contain; display: block; margin: 0 auto 20px; }
.concept h3 { margin: 0 0 8px; font-size: 18px; }
.concept p { margin-top: 4px !important; font-size: 14px !important; line-height: 1.5 !important; color: var(--muted); }

/* Loader */
.confidence { margin: 32px 0 0; max-width: 440px; }
.confidence img { width: 100%; display: block; border-radius: 12px; mix-blend-mode: multiply; }
.phone { max-width: 380px; justify-self: center; }
.phone img { border-radius: 40px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }

/* Compare bars */
.cmp-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: end; margin-top: 56px; }
.screen-shot { margin: 0; }
.screen-shot img { width: 100%; display: block; border-radius: 10px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.35); }
.compare { display: flex; gap: 48px; justify-content: center; align-items: flex-end; }
.cmp-col { text-align: center; width: 130px; }
.cmp-lbl { font-size: 22px !important; font-weight: 600; color: var(--ink) !important; margin: 0 !important; }
.cmp-val { margin: 4px 0 14px !important; font-size: 30px !important; font-weight: 700; color: var(--ink) !important; line-height: 1.1 !important; }
.cmp-val small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.cmp-bar { background: var(--grn); position: relative; border-radius: 4px; overflow: hidden; width: 100%; }
.cmp-drop { position: absolute; left: 0; right: 0; bottom: 0; background: var(--red); }

/* Swap (positions scrollytelling) */
.swap-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.swap-step { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; }
.swap-step h2 { font-size: clamp(30px, 3.2vw, 44px) !important; }
.swap-step h3 { margin-top: 28px; font-size: 19px; }
.swap-step ul { margin-top: 12px; padding-left: 20px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.swap-step img.inline { display: none; }
.swap-media { position: relative; }
.swap-frame { position: sticky; top: 12vh; height: 76vh; }
.swap-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.96); transition: opacity .6s ease, transform .6s ease; }
.swap-frame img.on { opacity: 1; transform: scale(1); }
.swap-dots { position: sticky; top: calc(88vh + 8px); display: flex; gap: 8px; justify-content: center; }
.swap-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d0d4da; transition: background .3s; }
.swap-dots i.on { background: var(--ink); }

/* Summary */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.summary > div { background: var(--gray); border-radius: 22px; padding: 36px; }
.summary h3 { margin-top: 14px; }
.summary p { color: var(--muted); font-size: 17px !important; }
.check { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--grn); color: #fff; align-items: center; justify-content: center; font-weight: 700; }

/* Conversion */
.conv { display: flex; align-items: baseline; gap: 18px; margin-top: 28px; }
.conv .big { margin: 0; }
.muted-big { color: #b4b8bf !important; }
.conv .arrow { font-size: 32px; color: var(--muted); }
.chart img { mix-blend-mode: multiply; border-radius: 0; }

.c-next-q { min-height: 80vh; display: flex; align-items: center; background: #fff; }
.c-next-q .wrap { width: 100%; }
.whats-next { font-size: clamp(64px, 10vw, 160px); font-weight: 300; letter-spacing: -.04em; }

.phones img { border-radius: 0; }
.money { margin-top: 12px !important; }
.money span { display: block; font-size: clamp(72px, 9vw, 140px); font-weight: 700; color: #6ee7a0; letter-spacing: -.04em; line-height: 1; }
.money small { font-size: 20px; color: rgba(255,255,255,.75); }

.learned { padding: 200px 0; }
.learned-q { font-size: clamp(36px, 5vw, 72px) !important; font-weight: 300; line-height: 1.15 !important; letter-spacing: -.03em; color: var(--ink) !important; max-width: 1000px; }

@media (max-width: 900px) {
  .p-hero { min-height: auto; padding-top: 110px; }
  .p-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .p-hero-copy { padding-bottom: 0; }
  .p-hero-phone { max-width: 320px; }
  .venn { height: auto; flex-direction: column; gap: 0; padding-bottom: 80px; }
  .v-circle { width: 300px; height: 300px; padding: 0 44px; margin: 0 !important; mix-blend-mode: normal; }
  .v-inv { align-items: flex-start; text-align: left; }
  .v-pay { order: 1; } .v-overlap { order: 2; } .v-inv { order: 3; } .v-note { order: 4; }
  .v-overlap { position: static; transform: none !important; background: #2b3a42; border-radius: 999px; padding: 8px 18px; margin: -18px 0 !important; font-size: 13px; }
  .v-overlap br { display: none; }
  .v-pay ul, .v-inv ul { padding: 0; }
  .v-circle h3 { font-size: 18px; } .v-circle ul { font-size: 13px; }
  .v-note { position: static; margin-top: 12px !important; max-width: none; }
  .record, .concepts { grid-template-columns: 1fr 1fr; }
  .impact, .summary { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .cmp-grid { grid-template-columns: 1fr; }
  .swap-grid { grid-template-columns: 1fr; }
  .swap-media { display: none; }
  .swap-step { min-height: 0; padding: 40px 0; }
  .swap-step img.inline { display: block; width: 100%; margin-top: 28px; border-radius: 10px; }
  .spinner { width: 70vw; height: 70vw; margin-top: -35vw; right: -35vw; }
}
@media (max-width: 520px) {
  .record, .concepts { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: repeat(2, 1fr); }
}

.c-sec.dark .split-copy h2 { font-size: clamp(30px, 3vw, 42px); }
.concept-sec { background: #fff !important; }

/* Conversion chart (SVG, drawn on scroll) */
.conv-sec { min-height: 100vh; display: flex; align-items: center; }
.conv-sec > .wrap { width: 100%; }
.conv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.conv-live { margin: 0 !important; text-align: right; }
.conv-live-num { display: block; font-size: clamp(56px, 7vw, 104px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: #9aa0a8; font-variant-numeric: tabular-nums; transition: color .4s; }
.conv-live.post .conv-live-num { color: var(--grn); }
.conv-live small { font-size: 14px; color: var(--muted); }
.conv-chart { margin: 40px 0 0; }
.conv-chart svg { width: 100%; height: auto; display: block; overflow: visible; font-family: "Poppins", sans-serif; }
.conv-chart .axis line { stroke: #9aa0a8; stroke-width: 2; }
.conv-chart .axis text { font-size: 14px; fill: #9aa0a8; }
.conv-chart .base line { stroke-width: 2; }
.conv-chart .q1 line { stroke: #c9ccd2; }
.conv-chart .q1 text { fill: #9aa0a8; font-size: 18px; font-weight: 600; }
.conv-chart .q3 line { stroke: var(--grn); stroke-dasharray: 10 8; }
.conv-chart .q3 text { fill: var(--grn); font-size: 18px; font-weight: 600; }
.conv-chart .loader-evt line { stroke: #1e7e34; stroke-width: 3; }
.conv-chart .loader-evt rect { fill: #1e7e34; }
.conv-chart .loader-evt text { fill: #fff; font-size: 14px; font-weight: 600; }
.conv-chart .ln { fill: none; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.conv-chart .ln.pre { stroke: #b4b8bf; }
.conv-chart .ln.post { stroke: var(--grn); }
.conv-chart .head { fill: #fff; stroke: var(--ink); stroke-width: 3; }

/* Deltas */
.compare { position: relative; flex-wrap: wrap; }
.cmp-delta { position: absolute; top: -48px; right: 0; margin: 0 !important; background: var(--grn); color: #fff !important; font-weight: 700; font-size: 15px !important; padding: 6px 14px; border-radius: 999px; }
.f-col { overflow: visible; }
.f-delta { display: block; width: max-content; margin: 8px auto 0; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; opacity: 0; }
.f-delta.down { background: #e3f4e7; color: var(--grn); }
.f-delta.up { background: #fbe6e5; color: var(--red); }
.no-fx .f-delta { opacity: 1; }
@media (max-width: 900px) {
  .conv-sec { min-height: auto; }
  .conv-head { flex-direction: column; align-items: flex-start; }
  .conv-live { text-align: left; }
  .cmp-delta { position: static; margin: 20px auto 0 !important; }
}

/* ===== Revisions ===== */
.p-hero h1 { font-size: clamp(40px, 4.4vw, 72px); line-height: 1.06; }
.p-hero-grid { grid-template-columns: 1.2fr .8fr; }

/* Venn: note sits beside the ACAT line */
.v-acat { position: relative; }
.v-note-today { position: absolute !important; left: calc(100% + 84px); top: 50%; transform: translateY(-50%); bottom: auto !important; right: auto !important; width: 190px; text-align: left; color: var(--ink) !important; font-weight: 600 !important; }
.v-note-today::before { content: "\2190  " !important; color: var(--ink) !important; }

/* Before/after bars: red base, green success rises from the bottom */
.cmp-bar { background: var(--red); }
.cmp-fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--grn); }
.cmp-delta, .cmp-drop { display: none; }

/* Positions: old vs new */
.pos-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 48px; align-items: start; }
.pos-shot { margin: 0; text-align: center; }
.pos-shot figcaption { font-size: 28px; font-weight: 600; margin-bottom: 14px; }
.pos-frame { position: relative; display: inline-block; }
.pos-frame img { display: block; max-height: 60vh; width: auto; max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.35); }
.pos-box { position: absolute; border-radius: 8px; pointer-events: none; }
.old .pos-box { border: 3px solid var(--red); background: rgba(200,48,46,.08); }
.new .pos-box { border: 3px solid var(--grn); background: rgba(47,143,70,.08); }
.pos-note { margin: 18px auto 0 !important; max-width: 380px; font-size: 16px !important; font-weight: 600; line-height: 1.5 !important; }
.old .pos-note { color: var(--red) !important; }
.new .pos-note { color: var(--grn) !important; }
.pos-arrow { display: inline-block; margin-right: 6px; }
.pos-points { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 72px; }
.pos-points h3 { margin-top: 0 !important; }
.pos-points ul { margin-top: 12px; padding-left: 20px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.pos-points li { margin-bottom: 6px; }
.pos-points strong { color: var(--ink); }

@media (max-width: 900px) {
  .v-acat { position: static; }
  .v-note-today { position: static !important; transform: none; display: block; width: auto; margin-top: 8px; color: #fff !important; }
  .v-note-today::before { content: "\2190  " !important; color: #fff !important; }
  .pos-compare, .pos-points { grid-template-columns: 1fr; }
  .pos-frame img { max-height: none; }
}
.p-hero { align-items: center; }
.p-hero-grid { align-items: center; }
.p-hero-copy { padding-bottom: 0; }
.p-hero-phone { background: #f1f6f7; }
.p-hero-phone img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; }
/* Reserve image space before load (no layout jumps) */
.phone { width: min(380px, 100%); }
.cat { width: min(420px, 100%); }
.book { width: min(380px, 100%); }
.p-hero-phone img { height: min(78vh, 760px); max-height: none; width: auto; }
.pos-frame img { height: min(60vh, 540px); max-height: none; width: auto; max-width: 100%; }
@media (max-width: 900px) {
  .p-hero-phone img { height: auto; width: 100%; }
  .pos-frame img { height: auto; width: 100%; }
}
.p-hero-phone img { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%); }
/* Hero phone is now a transparent cut-out anchored to the bottom of the hero */
.p-hero { padding-bottom: 0; align-items: stretch; }
.p-hero-grid { align-items: end; min-height: calc(100vh - 150px); }
.p-hero-copy { align-self: center; }
.p-hero-phone { background: none; align-self: end; }
.p-hero-phone img { mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; display: block; }
@media (max-width: 900px) { .p-hero-grid { min-height: 0; } }
@media (max-width: 900px) {
  .p-hero { padding-top: 110px; }
  .p-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .p-hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .p-hero-phone { justify-self: center; width: min(320px, 80%); }
  .p-hero-phone img { width: 100%; height: auto; }
}
