/* ==========================================================================
   home.css: the landing page only. Loaded after base.css.
   Part 1: landing-page rules. Part 2: LOOKS (page decoration, option B).
   Part 3: FIT (desktop sizes that follow the window's height, so a section
   fits one screen). Part 4: MOTION (one-time movement as things scroll in).
   ========================================================================== */
/* ==========================================================================
   Hero chart: reported vs measured ROAS
   --u is the height of 1x ROAS, --bw the bar width, --max the top of the axis
   ========================================================================== */
.chart { --u: 40px; --bw: 46px; --ygut: 50px; margin: 12px 0 0; }
.chart__head { padding: 16px clamp(14px, 2.4vw, 28px) 14px; }
.chart__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; font-size: 15px; line-height: 1.3; font-weight: 600; }
.chart__legend li { display: inline-flex; align-items: center; gap: 8px; }
.chart[data-mode="reported"] .key--rep { width: 16px; height: 16px; border-radius: 2px; }
.chart[data-mode="reported"] .chart__legend li:not(:first-child) { opacity: 0.35; }

.chart__plot { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background-color: var(--white); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; }
.grp { --max: 9; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.grp--under { padding-right: var(--ygut); border-left: 1px solid var(--line-tint); }
.grp__title { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px 20px; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.2; font-weight: 700; }
.grp--over .grp__title { padding-left: var(--ygut); }
.grp__title svg { flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grp__body { display: flex; }
.yax { position: relative; flex: none; width: var(--ygut); height: calc(var(--max) * var(--u)); }
.yax span { position: absolute; right: 10px; bottom: calc(var(--t) * var(--u)); transform: translateY(50%); font-size: 13.5px; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.yax .yax__name { top: -6px; bottom: auto; transform: none; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }
.grp--under .yax { display: none; }
.cols { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.col { --cur: var(--m); appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: center; cursor: pointer; display: flex; flex-direction: column; min-width: 0; }
.chart[data-mode="reported"] .col { --cur: var(--r); }
.col[aria-pressed="true"] { background: var(--pen-wash); }
.col:focus-visible { outline-offset: -3px; }
.col__plot { position: relative; display: block; height: calc(var(--max) * var(--u)); border-bottom: 1.5px solid var(--ink); background-image: linear-gradient(to top, var(--line) 1px, transparent 1px); background-size: 100% calc(2 * var(--u)); background-position: left bottom; }
.col__gap, .col__bar { position: absolute; left: 50%; bottom: 0; width: var(--bw); margin-left: calc(var(--bw) / -2); border-radius: 3px 3px 0 0; }
.col__gap { height: calc(var(--r) * var(--u)); background: repeating-linear-gradient(135deg, rgba(230, 92, 10, 0.7) 0 1.5px, rgba(230, 92, 10, 0.14) 1.5px 7px); transition: opacity 0.5s ease 0.25s; }
.col__bar { height: calc(var(--cur) * var(--u)); background: var(--pen); transition: height 0.9s var(--ease), background-color 0.5s ease; }
.col__mark { position: absolute; left: 50%; bottom: calc(var(--r) * var(--u) - 2px); width: calc(var(--bw) + 18px); height: 4px; margin-left: calc((var(--bw) + 18px) / -2); background: var(--rep); box-shadow: 0 0 0 1.5px var(--white); transition: opacity 0.4s ease 0.3s; }
.col__val { position: absolute; left: 0; right: 0; font-family: var(--cond); font-weight: 800; font-size: 21px; line-height: 1; pointer-events: none; transition: opacity 0.4s ease; }
.col__val--rep { bottom: calc(var(--r) * var(--u) + 9px); color: var(--rep-text); }
.col__val--mea { bottom: calc(var(--m) * var(--u) - 27px); color: var(--white); transition-delay: 0.45s; }
.col__val--side { left: calc(50% + var(--bw) / 2 + 15px); right: auto; bottom: calc(var(--r) * var(--u) - 9px); font-size: 17px; font-weight: 700; color: var(--rep-text); transition-delay: 0.45s; }
.chart[data-mode="measured"] .col--under .col__val--rep { opacity: 0; }
.chart[data-mode="reported"] .col__bar { background: var(--rep); }
.chart[data-mode="reported"] .col__gap,
.chart[data-mode="reported"] .col__mark,
.chart[data-mode="reported"] .col__val--mea,
.chart[data-mode="reported"] .col__val--side { opacity: 0; transition-delay: 0s; }
.col__label { display: block; min-height: 66px; padding: 12px 6px 14px; font-size: clamp(14px, 1.25vw, 16.5px); line-height: 1.2; font-weight: 600; }
.col:hover .col__name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.chart.is-static * { transition: none !important; }

.chart__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 16px clamp(14px, 2.4vw, 28px); }
.seg { flex: none; display: inline-flex; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.seg button { min-height: 44px; margin: 0; padding: 0 16px; border: 0; border-radius: 0; background: var(--white); color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.seg button:focus-visible { outline-offset: -4px; }
.seg button[data-mode="reported"][aria-pressed="true"] { background: var(--rep-text); color: var(--white); }
.seg button[data-mode="measured"][aria-pressed="true"] { background: var(--pen); color: var(--white); }
.chart__hint { flex: 1 1 280px; min-width: 0; }
.chart__detail { border-top: 1px solid var(--line); padding: clamp(18px, 2.4vw, 28px) clamp(14px, 2.4vw, 28px) clamp(22px, 2.8vw, 32px); }
.detail { display: flex; flex-direction: column; gap: 16px; }
.detail__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.detail__nums { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.detail__nums .rep { color: var(--rep-text); }
.detail__nums .mea { color: var(--pen); }
.detail__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px 40px; }
.detail__cols div { display: flex; flex-direction: column; gap: 4px; }
.detail__cols p:last-child { font-size: 16px; line-height: 1.5; }
/* The box keeps one height whichever channel is selected: the six explanations share one grid
   cell, so the panel is as tall as the longest, and the ones not selected stay in place, invisible.
   The !important outranks the [hidden] rule in base.css, for these six only. */
.chart__detail { display: grid; }
.chart__detail > .detail { grid-area: 1 / 1; }
.chart__detail > .detail[hidden] { display: flex !important; visibility: hidden; }

@media (max-width: 700px) {
  .chart { --u: 28px; --bw: 34px; --ygut: 38px; }
  .chart__legend { justify-content: flex-start; flex-direction: column; gap: 6px; }
  .chart__plot { flex-direction: column; }
  .grp { padding-right: 8px; }
  .grp--under { --max: 3; padding-right: 8px; border-left: 0; border-top: 1px solid var(--line-tint); }
  .grp--under .yax { display: block; }
  .grp--under .yax span:nth-child(n+3) { display: none; }
  .grp--under .grp__title { padding-left: var(--ygut); }
  .grp__title { padding-bottom: 16px; }
  .col__val { font-size: 18px; }
  .col__val--mea { bottom: calc(var(--m) * var(--u) - 23px); }
  .col__val--side { left: calc(50% + var(--bw) / 2 + 12px); font-size: 14.5px; bottom: calc(var(--r) * var(--u) - 8px); }
  .col__label { min-height: 60px; padding: 10px 3px 12px; font-size: 13.5px; }
  .yax span { right: 7px; font-size: 12.5px; }
  .yax .yax__name { font-size: 11px; letter-spacing: 0; }
}

/* ==========================================================================
   The measurement gap: three figures, then where the report goes wrong
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 48px clamp(32px, 4vw, 64px); margin-top: clamp(44px, 5.5vw, 72px); }
.stat { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.stat__num { font-family: var(--cond); font-weight: 800; font-size: clamp(72px, 8.8vw, 120px); line-height: 0.82; letter-spacing: -0.02em; color: var(--pen); }
.stat__num small { font-size: 0.62em; letter-spacing: 0; }
.stat .hand { margin-top: 4px; }
.stat .h3 { align-self: end; }
.wrong { margin-top: clamp(64px, 8vw, 104px); }
.wrong__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px clamp(32px, 4vw, 64px); margin-top: clamp(28px, 3.4vw, 44px); }
.wrong__item { display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   I don't manage ads
   ========================================================================== */
.indep__top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px clamp(40px, 6vw, 96px); }
.indep__top .h2 { flex: 1 1 320px; }
.indep__bio { flex: 999 1 440px; min-width: 0; max-width: 620px; display: flex; flex-direction: column; gap: 16px; }
.indep__bio .lede { font-size: clamp(17px, 1.35vw, 19px); }
.indep__bio .person { margin-top: 12px; }
.nos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px clamp(32px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); }
.nos > div { display: flex; flex-direction: column; gap: 8px; }
.nos .h4 { color: var(--pen-on-dark); }

/* ==========================================================================
   Six questions, every service, grading
   ========================================================================== */
.qgroup { margin-top: clamp(36px, 4.5vw, 56px); }
.qgroup + .qgroup { margin-top: clamp(32px, 4vw, 48px); }
.qgroup__title { color: var(--pen); }
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 18px; }
.qcard { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 4px; }
.qcard p { font-size: 16px; line-height: 1.5; }

.svc { margin-top: clamp(56px, 7vw, 88px); }
.svc__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.svc__key { display: inline-flex; align-items: center; gap: 10px; }
.svc__key i { flex: none; width: 18px; height: 13px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); }
.svc__keys { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.svc__key--q i { border-width: 1.5px; background: var(--pen-soft); }
.svc__rows { margin-top: 16px; border-top: 1.5px solid var(--ink); }
.svc__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 10px 40px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc__name { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; }
.svc__desc { margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { display: flex; }
.chip { appearance: none; display: inline-flex; align-items: center; min-height: 32px; margin: 0; padding: 2px 10px; border: 1px solid var(--line-tint); border-radius: 3px; background: var(--white); color: var(--ink); font-family: inherit; font-size: 15px; line-height: 1.25; font-weight: 500; text-align: left; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease; }
.chip:hover, .chip[aria-expanded="true"] { border-color: var(--ink); box-shadow: 2px 2px 0 var(--pen-soft); transform: translate(-1px, -1px); }
.chip:active { transform: none; box-shadow: none; }
.chip--q { background: var(--pen-soft); }
@media (hover: none) { .chip:hover:not([aria-expanded="true"]) { transform: none; box-shadow: none; border-color: var(--line-tint); } }
.svc__fit { margin-top: 10px; }
@media (max-width: 820px) { .svc__row { grid-template-columns: minmax(0, 1fr); } }

.ongoing { margin-top: 28px; padding: clamp(22px, 2.8vw, 32px); border-radius: 4px; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 40px; }
.ongoing .h4 { color: var(--pen-on-dark); }
.ongoing__lead { display: flex; flex-direction: column; gap: 8px; }
.ongoing__lead p:last-child { font-size: 16px; line-height: 1.5; color: var(--on-dark-2); }
.cadence { margin: 0; }
.cadence div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 2px 20px; padding: 8px 0; border-top: 1px solid rgba(184, 196, 240, 0.28); }
.cadence div:first-child { border-top: 0; padding-top: 0; }
.cadence dt { font-weight: 700; color: var(--pen-on-dark); }
.cadence dd { margin: 0; }
@media (max-width: 820px) { .ongoing { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cadence div { grid-template-columns: minmax(0, 1fr); } }

.grade-strip { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.grade-strip__lead { flex: 1 1 460px; min-width: 0; max-width: 680px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.grade-strip__lead strong { font-weight: 700; }

/* Example-output popover for the analysis chips */
.ex-pop { position: absolute; z-index: 30; width: min(350px, calc(100vw - 32px)); padding: 12px 16px 16px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--pen-soft); display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 32px); overflow-y: auto; }
.ex-pop > * { flex-shrink: 0; }
.ex-pop__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ex-pop__close, .modal__close { appearance: none; flex: none; width: 40px; height: 40px; margin: -6px -10px -6px 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-family: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.ex-pop__close:hover, .modal__close:hover { background: var(--pen-tint); }
.ex-pop__title { font-family: var(--cond); font-weight: 700; font-size: 23px; line-height: 1.12; }
.ex-pop__cap { font-family: var(--hand); font-size: 16px; line-height: 1.35; color: var(--pen); }
.ex-pop .label { line-height: 1.35; }

/* "How findings are graded" dialog (was a full section in Landing Page Blue) */
.modal { width: min(1120px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--pen-tint); color: var(--ink); box-shadow: 8px 8px 0 rgba(17, 27, 61, 0.35); }
.modal::backdrop { background: rgba(17, 27, 61, 0.6); }
html:has(dialog[open]) { overflow: hidden; }
.modal__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(18px, 3vw, 40px); background: var(--pen-tint); border-bottom: 1px solid var(--line-tint); }
.modal__close { margin: 0 -8px 0 0; }
.modal__body { padding: clamp(24px, 3.4vw, 44px) clamp(18px, 3vw, 40px) clamp(28px, 4vw, 52px); }
.modal__body .h2 { font-size: clamp(30px, 3.6vw, 46px); }
.gmore { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px clamp(36px, 5vw, 80px); margin-top: clamp(44px, 5.5vw, 72px); }
.gmore__text { flex: 999 1 400px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 32px; }
.gmore__text > div { display: flex; flex-direction: column; gap: 10px; }
.gmore__text ul { margin: 6px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.gmore__ex { flex: 1 1 360px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 22px; }

/* ==========================================================================
   Shopper experiments
   ========================================================================== */
.exp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 5.5vw, 80px); align-items: stretch; }
.exp__copy { display: flex; flex-direction: column; justify-content: flex-start; gap: 28px; }
.exp__top { display: flex; flex-direction: column; gap: clamp(18px, 2.2vw, 26px); }
.exp .h2 { font-size: clamp(32px, 3.7vw, 50px); }
.studies { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.studies div { padding: 14px 0 16px; border-top: 1.5px solid var(--ink); }
.studies dt { font-weight: 700; line-height: 1.3; }
.studies dd { margin: 4px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.serp { margin: 0; padding: clamp(16px, 2vw, 24px); display: flex; flex-direction: column; gap: 14px; }
.serp__search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 4px; font-size: 16px; }
.serp__search svg { flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.serp__grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.item { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: 4px; }
.item--you { border: 2px solid var(--pen); padding: 9px 11px 9px 9px; background: var(--white); }
.item__img { align-self: stretch; min-height: 92px; display: flex; align-items: center; justify-content: center; background: var(--pen-tint); border-radius: 3px; }
.item__img svg { display: block; max-width: calc(100% - 8px); }
.item__flag { position: absolute; top: -11px; left: 10px; display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 3px; background: var(--pen); color: var(--white); font-size: 13px; font-weight: 700; }
.item__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.item__name { font-size: 14px; line-height: 1.3; font-weight: 600; }
.item__rating { font-size: 13.5px; line-height: 1.3; color: var(--ink-2); }
.item__price { font-family: var(--cond); font-weight: 800; font-size: 23px; line-height: 1.05; }
.item__img svg[hidden] { display: none; }
/* Predicted share of clicks: one bar split four ways. Your listing is royal blue; each competitor takes its bottle's colour */
.share { display: flex; flex-direction: column; gap: 6px; }
.serp__top { display: flex; align-items: center; gap: 10px; }
.serp__top .serp__search { flex: 1 1 auto; min-width: 0; }
.serp__top .tag { flex: none; align-self: center; min-height: 24px; padding: 1px 8px; font-size: 13px; }
.share__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; }
.share__title { font-size: 15px; line-height: 1.25; font-weight: 700; }
.share__bar { display: flex; gap: 2px; height: 14px; }
.share__bar i { flex: 1 1 0; min-width: 3px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(17, 27, 61, 0.22); transition: flex-grow 0.35s var(--ease); }
.share__key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.share__key li { display: inline-flex; align-items: center; gap: 6px; }
.share__key i { flex: none; width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(17, 27, 61, 0.22); }
.share__key b { color: var(--ink); font-variant-numeric: tabular-nums; }
[data-seg="Y"], [data-key="Y"] i { background: var(--pen); }
[data-seg="A"], [data-key="A"] i { background: #B9C4E0; }
[data-seg="B"], [data-key="B"] i { background: #E3D9C6; }
[data-seg="C"], [data-key="C"] i { background: #C9CDD8; }
/* The controls: price and review count side by side, the main image below */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.sim__field { display: flex; flex-direction: column; min-width: 0; }
.sim__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sim__top label, .sim__name { font-size: 14px; font-weight: 700; }
.sim__top output { font-family: var(--cond); font-weight: 800; font-size: 19px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sim input[type="range"] { width: 100%; height: 26px; margin: 0; accent-color: var(--pen); cursor: pointer; }
/* Marks under the review slider, at 10, 100, 250 and 1,000 (the slider steps run 1 to 5,000 on a rough log scale) */
.sim__ticks { position: relative; height: 15px; font-size: 12px; line-height: 1; color: var(--ink-2); }
.sim__ticks span { position: absolute; top: 4px; left: calc(var(--at) * (100% - 16px) + 8px); transform: translateX(-50%); }
.sim__ticks span::before { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 4px; background: var(--ink-2); }
.sim__img { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.sim__img .seg button { min-height: 34px; padding: 0 12px; font-size: 14.5px; }
.sim__img .seg button + button { border-left: 1.5px solid var(--ink); }
.sim__img .seg button[aria-pressed="true"] { background: var(--pen); color: var(--white); }
.sim__read { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.sim__read b { color: var(--ink); }
@media (max-width: 940px) { .exp { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .studies, .serp__grid, .sim { grid-template-columns: minmax(0, 1fr); } .serp__top { flex-wrap: wrap; } }
@media (max-width: 380px) { .col__val--side { left: calc(50% + var(--bw) / 2 + 11px); font-size: 13px; } }
@media (max-width: 359px) { .sim__img .seg button { padding: 0 7px; font-size: 13.5px; } }

/* ==========================================================================
   Who brings me in
   ========================================================================== */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 4.5vw, 56px); }
.wcard { display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.wcard__art { display: flex; align-items: center; justify-content: center; height: 148px; padding: 14px; background: var(--pen-tint); border-bottom: 1.5px solid var(--ink); }
.wcard__art svg { display: block; height: 100%; width: auto; max-width: 100%; }
.wcard__art text { font-family: var(--sans); }
.wcard__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 20px; }
.wcard__body .h3 { display: flex; align-items: flex-end; min-height: 2.2em; }
.wcard__q { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.wcard__q p:last-child { font-family: var(--hand); font-size: 18px; line-height: 1.35; color: var(--pen); }
.wcard__foot { padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-height: 96px; }
.wcard__foot p { font-weight: 700; line-height: 1.4; }
@media (max-width: 940px) { .who { grid-template-columns: minmax(0, 1fr); } .wcard__foot, .wcard__body .h3 { min-height: 0; } }

/* ==========================================================================
   Alternatives
   ========================================================================== */
.compare { width: 100%; margin-top: clamp(32px, 4vw, 52px); border-collapse: separate; border-spacing: 0; }
.compare th, .compare td { text-align: left; vertical-align: top; font-size: 16.5px; line-height: 1.45; font-weight: 400; }
.compare thead th { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.compare strong { display: block; font-family: var(--cond); font-weight: 700; font-size: clamp(22px, 2.1vw, 26px); line-height: 1.12; }
.compare small { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (min-width: 800px) {
  .compare th, .compare td { padding: 18px 18px; border-bottom: 1px solid var(--line); }
  .compare thead th { padding: 0 18px 12px; border-bottom: 1.5px solid var(--ink); }
  .compare tbody th { width: 36%; }
  .compare tbody tr:nth-last-child(2) > * { border-bottom-color: transparent; }
  .compare .is-us { box-shadow: 8px 8px 0 var(--pen-soft); border-radius: 4px; }
  .compare .is-us > * { background: var(--pen-tint); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
  .compare .is-us > :first-child { border-left: 1.5px solid var(--ink); border-radius: 4px 0 0 4px; }
  .compare .is-us > :last-child { border-right: 1.5px solid var(--ink); border-radius: 0 4px 4px 0; }
}
@media (max-width: 799px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tbody tr { margin-bottom: 12px; padding: 18px; background: var(--white); border: 1px solid var(--line-tint); border-radius: 4px; }
  .compare tbody tr.is-us { background: var(--pen-tint); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--pen-soft); }
  .compare td { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .compare td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
}

/* ==========================================================================
   Is your account big enough to bother? (unchanged from Landing Page Blue)
   ========================================================================== */
.worth { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px clamp(40px, 6vw, 88px); margin-top: clamp(36px, 4.5vw, 60px); }
.worth__main { flex: 999 1 520px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.calc { display: flex; flex-wrap: wrap; }
.calc__in, .calc__out { flex: 1 1 300px; min-width: 0; padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; }
.calc__in { gap: 24px; }
.calc__out { gap: 10px; background: var(--pen-wash); }
.calc__field { display: flex; flex-direction: column; gap: 4px; }
.calc__field label, .calc__title { font-size: 16px; font-weight: 700; }
.calc__big { font-family: var(--cond); font-weight: 800; font-size: clamp(40px, 4.4vw, 56px); line-height: 1.05; }
.calc__field input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--pen); cursor: pointer; }
.calc__ends { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.calc__rates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.calc__rates button { min-width: 72px; min-height: 44px; margin: 0; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--white); color: var(--ink); font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.calc__rates button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.calc__verdict { margin-top: 10px; padding-top: 18px; border-top: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.calc__verdict p { font-size: 16px; line-height: 1.5; }
/* The three verdicts share one grid cell, so the box keeps the height of the longest one at every width.
   The ones not showing keep their space with visibility: hidden (display: flex !important outranks the
   [hidden] rule in base.css). home.js still switches them with the hidden attribute. */
.calc__verdicts { display: grid; }
.calc__verdicts > .calc__verdict { grid-area: 1 / 1; }
.calc__verdicts > .calc__verdict[hidden] { display: flex !important; visibility: hidden; }
.worth__not { flex: 1 1 320px; min-width: 0; max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.worth__not ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================================
   Free audit: a short pitch, a drawing of the audit and three steps.
   The request form lives on audit.html
   ========================================================================== */
.audit { display: flex; flex-wrap: wrap; align-items: center; gap: 48px clamp(40px, 6vw, 96px); }
.audit__copy { flex: 999 1 440px; min-width: 0; max-width: 620px; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(22px, 2.6vw, 30px); }
.audit__intro { display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 32px); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; align-items: baseline; gap: 14px; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; transform: translateY(-1px); background: var(--white); }
.audit__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.audit__cta a:not(.btn) { color: var(--white); font-weight: 700; }
.audit__cta a:not(.btn):hover { color: var(--pen-soft); }
.audit .small { color: var(--pen-tint); }
.audit__art { flex: 1 1 340px; min-width: 0; max-width: 470px; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.audit__art svg { display: block; width: 100%; height: auto; }
.audit__art text { font-family: var(--sans); font-size: 12px; font-weight: 700; }
.audit__art .num { font-family: var(--cond); font-weight: 800; font-size: 24px; }
.steps { flex: 1 1 100%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px clamp(28px, 4vw, 56px); }
.steps li { display: flex; align-items: baseline; gap: 16px; padding-top: 16px; border-top: 1.5px solid var(--white); }
.steps b { flex: none; min-width: 20px; font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1; }

/* ==========================================================================
   LOOKS: page decoration (option B from the design options file)

   How it works
   - data-look="b" on the <html> tag turns it on. Keep it: every rule below
     depends on it, and without it the decoration markup shows unstyled.
   - Gridlines and a fitted curve behind the hero, a reported-vs-measured plot
     beside "The measurement gap", a ruler divider in "The measurement gap",
     and the measured bars in the closing band. The strokes draw in once as they scroll into view.
   - The hero is centred on phones (759px and narrower). The footer keeps its
     own left-aligned layout, and the hero's stacked points keep their bullets.
   - Every rule here is scoped to html[data-look...]. For a plain page, delete
     the markup inside the LOOKS comments rather than the attribute.
   - Markup added for the looks is wrapped in  LOOKS ▸ ...  /LOOKS  comments
     in src/index.njk.
   - Two scripts run the one-time drawing motion: /js/early.js adds the lk-js
     flag before the page is drawn, and the draw-in block at the end of
     /js/home.js plays it. Delete both parts for a static page.
   ========================================================================== */

/* ---- Shared scaffolding -------------------------------------------------- */
html[data-look] .hero, html[data-look] .sec, html[data-look] .close, html[data-look] .site-foot { position: relative; isolation: isolate; }
/* Decoration layer: fills its section, sits above the section background and below the content */
html[data-look] .lk-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Same box as .wrap, for decoration that should line up with the content column */
html[data-look] .lk-in { position: absolute; top: 0; bottom: 0; left: var(--gutter-l); right: var(--gutter-r); max-width: 1144px; margin: 0 auto; }
html[data-look] .lk-deco svg { overflow: visible; }

/* One-time draw-in. Strokes carry pathLength="1"; a container gets .is-in once it scrolls into view.
   Hidden states only apply when the script is running (html.lk-js), so nothing is lost without it. */
html.lk-js[data-look] .lk-draw { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
html.lk-js[data-look] .is-in .lk-draw { stroke-dashoffset: 0; opacity: var(--o, 1); transition: stroke-dashoffset var(--t, 0.9s) cubic-bezier(0.5, 0.1, 0.2, 1) var(--d, 0s), opacity 0.01s linear var(--d, 0s); }
html.lk-js[data-look] .lk-fade { opacity: 0; }
html.lk-js[data-look] .is-in .lk-fade { opacity: var(--o, 1); transition: opacity 0.6s ease var(--d, 0s); }
html.lk-js[data-look] .lk-wipe { clip-path: inset(-20px 100% -20px -20px); }
html.lk-js[data-look] .is-in .lk-wipe { clip-path: inset(-20px -20px -20px -20px); transition: clip-path var(--t, 1.1s) cubic-bezier(0.5, 0.1, 0.2, 1) var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  html.lk-js[data-look] .lk-draw { stroke-dashoffset: 0; opacity: var(--o, 1); }
  html.lk-js[data-look] .lk-fade { opacity: var(--o, 1); }
  html.lk-js[data-look] .lk-wipe { clip-path: none; }
}

/* ==========================================================================
   PLOTTING SHEET
   The hero chart's graph paper continues behind the hero, fading in and out.
   Dividers are axis rules with ticks. Plots sit in otherwise empty corners.
   Grid: 26px cells, heavier line every 104px, centred so the content column's
   edges land on grid lines at full width.
   ========================================================================== */
html[data-look] { --lk-g1: rgba(33, 70, 208, 0.065); --lk-g2: rgba(33, 70, 208, 0.12); --lk-ax: var(--ink); --lk-tk: rgba(17, 27, 61, 0.55); }

html[data-look] .lk-grid { position: absolute; inset: 0;
  background-image: linear-gradient(var(--lk-g2) 1px, transparent 1px), linear-gradient(90deg, var(--lk-g2) 1px, transparent 1px), linear-gradient(var(--lk-g1) 1px, transparent 1px), linear-gradient(90deg, var(--lk-g1) 1px, transparent 1px);
  background-size: 104px 104px, 104px 104px, 26px 26px, 26px 26px;
  background-position: 0 25px, calc(50% + 104px) 0, 0 25px, calc(50% + 13px) 0; }

/* Hero: paper in the flanks, clear behind the copy, gone before the chart. A fitted curve through points on wide screens. */
html[data-look] .hero .lk-grid { bottom: auto; height: 780px;
  -webkit-mask-image: radial-gradient(ellipse 50% 54% at 50% 38%, transparent 62%, #000 100%), linear-gradient(#000 52%, transparent 96%); -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 50% 54% at 50% 38%, transparent 62%, #000 100%), linear-gradient(#000 52%, transparent 96%); mask-composite: intersect; }
html[data-look] .lk-herowrap { position: absolute; left: 0; right: 0; top: 50px; height: 560px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 13%, transparent 20.5%, transparent 79.5%, #000 87%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 13%, transparent 20.5%, transparent 79.5%, #000 87%, #000 100%); }
html[data-look] .lk-heroplot { display: block; width: 100%; height: 100%; --t: 1.7s; --d: 0.25s; }
html[data-look] .lk-fit { fill: none; stroke: var(--pen); stroke-width: 1.5; opacity: 0.5; vector-effect: non-scaling-stroke; }
html[data-look] .lk-pts { fill: none; stroke: var(--pen); stroke-width: 5.5; stroke-linecap: round; opacity: 0.36; vector-effect: non-scaling-stroke; }
@media (max-width: 1099px) { html[data-look] .lk-herowrap { display: none; } }
/* Phones: the paper sits in both top corners, either side of the centred headline */
@media (max-width: 759px) { html[data-look] .hero .lk-grid { height: 420px; -webkit-mask-image: radial-gradient(ellipse 48% 100% at 0 0, #000 6%, transparent 70%), radial-gradient(ellipse 48% 100% at 100% 0, #000 6%, transparent 70%); -webkit-mask-composite: source-over; mask-image: radial-gradient(ellipse 48% 100% at 0 0, #000 6%, transparent 70%), radial-gradient(ellipse 48% 100% at 100% 0, #000 6%, transparent 70%); mask-composite: add; } }

/* The measurement gap: reported and measured pulling apart, top right of the heading (wide screens) */
html[data-look] .lk-gapplot { position: absolute; right: 0; top: calc(var(--sec) - 26px); width: min(440px, 32vw); height: auto; }
html[data-look] .lk-axis { fill: none; stroke: var(--ink); stroke-width: 1.5; }
html[data-look] .lk-wedge { opacity: 0.5; --o: 0.5; }
html[data-look] .lk-rep { fill: none; stroke: var(--rep); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
html[data-look] .lk-mea { fill: none; stroke: var(--pen); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
html[data-look] .lk-dot { fill: var(--pen); stroke: var(--pen-tint); stroke-width: 2; }
@media (max-width: 1159px) { html[data-look] .lk-gapplot { display: none; } }

/* Closing band: the six measured bars from the hero chart, each with its range, standing on the footer */
html[data-look] .lk-bars { position: absolute; right: 0; bottom: 0; }
html[data-look] .lk-bar { fill: var(--pen); opacity: 0.17; transform-box: fill-box; transform-origin: 50% 100%; }
html.lk-js[data-look] .lk-bar { transform: scaleY(0); }
html.lk-js[data-look] .is-in .lk-bar { transform: none; transition: transform 0.7s var(--ease) var(--d, 0s); }
html[data-look] .lk-cap { fill: none; stroke: var(--pen); stroke-width: 2; opacity: 0.55; --o: 0.55; }
html[data-look] .lk-whisk { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0.55; --o: 0.55; }
@media (prefers-reduced-motion: reduce) { html.lk-js[data-look] .lk-bar { transform: none; } }
@media (max-width: 1279px) { html[data-look] .lk-bars { right: -150px; } }
@media (max-width: 1159px) {
  html[data-look] .close { padding-bottom: 136px; }
  html[data-look] .lk-bars { right: 0; width: 218px; height: auto; }
}

/* Dividers. The ruler is an axis rule with ticks every 26px and a taller one every 104px; it draws in once. */
html[data-look] .lk-rule { margin-top: clamp(44px, 5.5vw, 68px); }
html[data-look] .lk-tick { display: block; height: 12px;
  background: linear-gradient(var(--lk-ax), var(--lk-ax)) 0 0 / 100% 1.5px no-repeat, repeating-linear-gradient(90deg, var(--lk-ax) 0 1px, transparent 1px 104px) 0 0 / 100% 12px no-repeat, repeating-linear-gradient(90deg, var(--lk-tk) 0 1px, transparent 1px 26px) 0 0 / 100% 6px no-repeat; }
html.lk-js[data-look] .lk-tick { clip-path: inset(0 100% 0 0); }
html.lk-js[data-look] .lk-rule.is-in .lk-tick { clip-path: inset(0 -1px 0 0); transition: clip-path 1.1s cubic-bezier(0.5, 0.1, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { html.lk-js[data-look] .lk-tick { clip-path: none; } }
html[data-look] .lk-rule + .wrong { margin-top: clamp(36px, 4.4vw, 52px); }

/* ==========================================================================
   HERO CENTRED ON PHONES
   Applies at 759px and narrower; wider screens keep the page's own layout.
   Centred: the hero's headline, intro, buttons, proof points, badges and
   handwritten note.
   Left as they are: the sticky header bar, the contents of the hero chart,
   and the footer.
   ========================================================================== */
@media (max-width: 759px) {
  html[data-look] .hero__copy { align-items: center; text-align: center; }
  html[data-look] .hero__cta, html[data-look] .proof, html[data-look] .hero .badges { justify-content: center; }
  html[data-look] .hero__note { justify-content: center; }
  html[data-look] .hero__note .hand p { text-align: center; }

  /* Short centred paragraphs wrap into lines of even length */
  html[data-look] .hero__sub, html[data-look] .hero__note .hand p { text-wrap: balance; }
}
@media (max-width: 520px) {
  /* The three hero proof points stack as one centred list; their square bullets stay lined up on the left */
  html[data-look] .proof { text-align: left; }
}

/* ==========================================================================
   FIT: one section, one screen (desktop only)

   How it works
   - Applies at 941px and wider. Phones and tablets keep the layout above.
   - On desktop, spacing and display type in the sections listed below follow
     the height of the window as well as its width, so each section's content
     fits between the header and the bottom of the screen. Every size has a
     floor and a ceiling: clamp(smallest, a share of the window height,
     largest). The largest values are the original sizes, reached on a window
     about 940px tall or more (a 1080p screen); the smallest around 650px
     (a 1366 x 768 laptop).
   - What follows the window: the hero chart box, The measurement gap, I don't
     manage ads, Six questions (the heading and question cards only), Test
     decisions, Who brings me in, How this compares, Is your account big
     enough, Free audit. The rest of the hero, Six questions from "Every
     service" down, the FAQ and the closing band keep their original sizes.
   - The tokens at the top set the rhythm. The rules under them are in page
     order, one group per section, each scoped to its section's id.
   - To make everything roomier or tighter, change the tokens. To change one
     section, change its group. Delete this whole block to go back to the
     original desktop sizes (the .sec__head wrapper then does nothing).
   ========================================================================== */
@media (min-width: 941px) {
  :root {
    /* Space above and below a section's content (the original is 72px to 128px, by width alone) */
    --fit-sec: clamp(44px, min(9vw, 11vh), 128px);
    /* Gaps, smallest to largest. Roughly 7, 10, 15, 23, 34px on a 730px-tall window and 9, 13, 20, 30, 43px on a 940px one */
    --fit-xs: clamp(6px, 1vh, 10px);
    --fit-s: clamp(8px, 1.4vh, 14px);
    --fit-m: clamp(12px, 2.1vh, 22px);
    --fit-l: clamp(16px, 3.2vh, 34px);
    --fit-xl: clamp(22px, 4.6vh, 52px);
    /* Space above and below the ruler divider in The measurement gap */
    --fit-rule-a: clamp(24px, 5.6vh, 68px);
    --fit-rule-b: clamp(20px, 4.3vh, 52px);
    /* Running text in cards and columns: 15px on the shortest windows, about 16px at 730px tall, 17px from about 900px. --fit-p2 is the smaller size (15px to 16px) */
    --fit-p: clamp(15px, calc(11.2px + 0.645vh), 17px);
    --fit-p2: clamp(15px, 1.75vh, 16px);
    /* Where a header link lands: this much space between the header and the section's heading */
    --fit-lead: clamp(12px, calc(6vh - 26px), 40px);
  }

  /* ---- Shared: section padding, header-link landing, type ------------------ */
  #gap, #independent, #experiments, #who, #compare, #worth, #request { --sec: var(--fit-sec); }
  /* Six questions: only the space above follows the window; the space below "Every service" and the grading line stays as it was */
  #measure { padding-top: var(--fit-sec); }
  /* Header links land with the heading just under the header, so the whole section is in view.
     The 19px is the 88px scroll-padding-top in base.css less the 69px header. */
  #gap, #independent, #measure, #experiments, #who, #compare, #worth, #request { scroll-margin-top: calc(var(--fit-lead) - 19px - var(--fit-sec)); }
  :is(#gap, #measure, #who, #compare, #worth, #request) .h2 { font-size: clamp(36px, min(4.4vw, 6.2vh), 58px); }
  #independent .h2--xl { font-size: clamp(48px, min(6.6vw, 9.8vh), 92px); }
  /* About: the navy section is at least as tall as the window below the header, with its content in the middle,
     and the About link lands on its top edge. So the link shows the whole section and nothing of the next one.
     (This overrides the shared landing rule above for this section only.) */
  #independent { min-height: calc(100vh - 69px); display: flex; flex-direction: column; justify-content: center; scroll-margin-top: -19px; }
  #independent > .wrap { width: 100%; }
  :is(#gap, #who, #worth) .h3 { font-size: clamp(22px, min(2.3vw, 3.2vh), 30px); }
  :is(#gap, #measure .qgroup) .h3--lg { font-size: clamp(24px, min(2.6vw, 3.6vh), 34px); }
  :is(#gap, #independent, #measure .qgroup, #worth) .h4 { font-size: clamp(20px, min(2.1vw, 2.9vh), 27px); }
  :is(#gap, #measure, #experiments, #who, #worth, #request) .lede { font-size: clamp(17px, min(1.55vw, 2.45vh), 21px); }
  :is(#gap, #measure, #who) .sec__intro { margin-top: clamp(12px, 2.4vh, 32px); }
  /* Heading on the left, its intro on the right, when both fit on one row (Is your account big enough) */
  .sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: clamp(12px, 2.4vh, 32px) clamp(40px, 6vw, 96px); }
  .sec__head .h2 { flex: none; max-width: 100%; }
  .sec__head .sec__intro { flex: 1 1 500px; max-width: 620px; margin-top: 0; padding-bottom: 0.12em; }

  /* ---- Hero chart ------------------------------------------------------------
     Only the chart box follows the window; the rest of the hero keeps its sizes. On shorter
     windows the y axis (the height of 1x ROAS, --u) and the spacing inside the box shrink so
     the whole box fits under the header. Smallest from about 703px tall (a 1536 x 864 laptop),
     original sizes from about 945px tall (1080p). --u stops at 27px: any lower and the 1.6x
     and 1.4x labels run into the orange reported line. */
  .chart { --u: clamp(27px, calc(5.37vh - 10.8px), 40px); }
  /* Room above the 8x line for the 8.0x label: one step of the axis, never less than 34px */
  .chart .yax, .chart .col__plot { height: calc(8 * var(--u) + max(var(--u), 34px)); }
  .chart__head { padding-top: clamp(8px, calc(3.3vh - 15.2px), 16px); padding-bottom: clamp(8px, calc(2.5vh - 9.4px), 14px); }
  .grp__title { padding-top: clamp(6px, calc(3.3vh - 17.2px), 14px); padding-bottom: clamp(6px, calc(5.8vh - 34.7px), 20px); }
  .col__label { min-height: clamp(52px, calc(5.8vh + 11.3px), 66px); padding-top: clamp(6px, calc(2.5vh - 11.4px), 12px); padding-bottom: clamp(7px, calc(2.9vh - 13.3px), 14px); }
  .chart__ctrl { padding-top: clamp(8px, calc(3.3vh - 15.2px), 16px); padding-bottom: clamp(8px, calc(3.3vh - 15.2px), 16px); }
  .chart__ctrl .seg button { min-height: clamp(36px, calc(3.3vh + 12.8px), 44px); }
  .chart__detail { padding-top: clamp(12px, calc(6.6vh - 34.5px), 28px); padding-bottom: clamp(14px, calc(7.4vh - 38.3px), 32px); }
  .detail { gap: clamp(8px, calc(3.3vh - 15.2px), 16px); }
  .detail__cols { column-gap: clamp(28px, calc(4.96vh - 6.9px), 40px); }
  .detail__cols p:last-child { font-size: clamp(15px, calc(0.41vh + 12.1px), 16px); line-height: clamp(21.75px, calc(0.93vh + 15.2px), 24px); }

  /* ---- The measurement gap ------------------------------------------------- */
  html[data-look] #gap .lk-gapplot { width: min(440px, 32vw, 46vh); }
  #gap .stats { margin-top: var(--fit-xl); }
  #gap .stat { row-gap: var(--fit-s); padding-top: var(--fit-m); }
  #gap .stat__num { font-size: clamp(72px, min(8.8vw, 12.6vh), 120px); }
  #gap .stat > p:not(.stat__num), #gap .wrong__item p { font-size: var(--fit-p); line-height: 1.55; }
  html[data-look] #gap .lk-rule { margin-top: var(--fit-rule-a); }
  html[data-look] #gap .lk-rule + .wrong { margin-top: var(--fit-rule-b); }
  #gap .wrong__grid { margin-top: var(--fit-l); }
  #gap .wrong__item { gap: var(--fit-s); }

  /* ---- I don't manage ads -------------------------------------------------- */
  #independent .indep__bio { gap: clamp(10px, 1.7vh, 16px); }
  #independent .indep__bio .lede { font-size: clamp(16.5px, min(1.35vw, 2vh), 19px); }
  #independent .indep__bio .person { margin-top: clamp(2px, 1.2vh, 12px); }
  #independent .person img { width: clamp(60px, 8.2vh, 77px); height: clamp(60px, 8.2vh, 77px); }
  #independent .nos { margin-top: clamp(32px, 7vh, 96px); }
  #independent .nos > div { gap: clamp(4px, 0.85vh, 8px); }
  #independent .nos p { font-size: var(--fit-p); line-height: 1.55; }

  /* ---- Six questions: the heading and question cards ------------------------
     The intro stays under the heading, on one line where the window is wide enough. Spacing
     tightens a little more than elsewhere on short windows to make room for it.
     Every service and below keep their sizes. */
  #measure .sec__intro, #who .sec__intro { max-width: none; margin-top: clamp(10px, calc(7vh - 34px), 32px); text-wrap: balance; }
  #measure .qgroup { margin-top: clamp(20px, calc(7vh - 22px), 52px); }
  #measure .qgroup + .qgroup { margin-top: clamp(16px, calc(4.5vh - 12px), 34px); }
  #measure .qgrid { gap: 16px; margin-top: var(--fit-s); }
  #measure .qcard { gap: clamp(7px, 1.2vh, 12px); padding: clamp(12px, calc(3vh - 7px), 22px) clamp(16px, 2.3vh, 22px) clamp(12px, calc(3.5vh - 10px), 24px); }
  #measure .qcard p { font-size: var(--fit-p2); }
  #measure .qcard .tag { min-height: 26px; }

  /* ---- Test decisions ------------------------------------------------------ */
  #experiments .exp__copy { gap: var(--fit-l); }
  #experiments .exp__top { gap: clamp(12px, 2.2vh, 26px); }
  #experiments .h2 { font-size: clamp(32px, min(3.7vw, 5.4vh), 50px); }
  #experiments .studies div { padding: var(--fit-s) 0 calc(var(--fit-s) + 2px); }
  #experiments .studies dd { margin-top: 3px; font-size: 15px; line-height: 1.42; }
  #experiments .serp { padding: clamp(14px, 2.2vh, 24px); gap: var(--fit-s); }
  #experiments .serp__search { min-height: clamp(36px, 5vh, 44px); }
  #experiments .serp__grid { gap: 8px; }
  #experiments .item { padding: 8px 10px 8px 8px; }
  #experiments .item--you { padding: 7px 9px 7px 7px; }
  #experiments .item__img { min-height: clamp(64px, 9.4vh, 92px); }
  #experiments .item__img svg { height: clamp(52px, 7.6vh, 70px); width: auto; }
  #experiments .item__text { gap: 2px; }
  #experiments .item__name { font-size: 13.5px; line-height: 1.28; }
  #experiments .item__rating { font-size: 13px; }
  #experiments .item__price { font-size: clamp(20px, 2.6vh, 23px); }
  #experiments .sim { padding-top: var(--fit-s); row-gap: clamp(4px, 1.1vh, 8px); }
  #experiments .sim input[type="range"] { height: clamp(22px, 3.8vh, 26px); }
  #experiments .sim__img .seg button { min-height: clamp(30px, 4.6vh, 34px); }

  /* ---- Who brings me in ----------------------------------------------------
     The intro stays under the heading (its size and spacing are set with Six questions above).
     The three cards share one set of rows, so pictures, titles, text, questions and links
     line up across them. */
  #who .who { gap: 0 16px; margin-top: clamp(20px, calc(7vh - 22px), 52px); }
  #who .wcard { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  #who .wcard__art { height: clamp(100px, calc(20vh - 22px), 148px); padding: clamp(9px, 1.4vh, 14px); }
  #who .wcard__body { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--fit-s); padding: var(--fit-m) clamp(16px, 2.3vh, 22px) clamp(14px, 2vh, 20px); }
  #who .wcard__body .h3 { display: block; min-height: 0; align-self: end; }
  #who .wcard__body > p { font-size: var(--fit-p); line-height: 1.5; }
  #who .wcard__q { margin-top: 0; padding-top: 0; align-self: end; gap: 3px; }
  #who .wcard__q p:last-child { font-size: clamp(17px, 2.1vh, 18px); }
  #who .wcard__foot { min-height: 0; padding-top: var(--fit-s); gap: 3px; }
  #who .wcard__foot p, #who .wcard__foot .link { font-size: var(--fit-p); }

  /* ---- How this compares --------------------------------------------------- */
  #compare .compare { margin-top: var(--fit-xl); }
  #compare .compare th, #compare .compare td { padding: clamp(7px, calc(2.6vh - 8.2px), 18px) 18px; font-size: clamp(15.5px, 1.85vh, 16.5px); }
  #compare .compare thead th { padding: 0 18px clamp(8px, 1.2vh, 12px); font-size: 15px; }
  #compare .compare tbody th { width: 40%; }
  #compare .compare strong { font-size: clamp(20px, min(2.1vw, 2.8vh), 26px); }
  #compare .compare small { margin-top: 2px; font-size: 14.5px; line-height: 1.4; }

  /* ---- Is your account big enough to bother? ------------------------------- */
  #worth .worth { margin-top: var(--fit-xl); }
  #worth .worth__main { gap: var(--fit-m); }
  #worth .calc__in, #worth .calc__out { padding: clamp(18px, 3vh, 32px); }
  #worth .calc__in { gap: clamp(14px, 2.4vh, 24px); }
  #worth .calc__out { gap: var(--fit-xs); }
  #worth .calc__big { font-size: clamp(38px, min(4.4vw, 5.6vh), 56px); }
  #worth .calc__field input[type="range"] { height: clamp(32px, 4.6vh, 44px); }
  #worth .calc__rates button { min-height: clamp(38px, 4.8vh, 44px); }
  #worth .calc__verdict { margin-top: var(--fit-xs); padding-top: var(--fit-m); }
  #worth .worth__not { gap: var(--fit-s); }
  #worth .worth__not ul { gap: var(--fit-xs); font-size: var(--fit-p); line-height: 1.5; }

  /* ---- Free audit ---------------------------------------------------------- */
  #request .audit { gap: var(--fit-xl) clamp(40px, 6vw, 96px); }
  #request .audit__copy { gap: clamp(14px, 2.5vh, 30px); }
  #request .audit__intro { gap: clamp(12px, 2.4vh, 32px); }
  #request .ticks { gap: var(--fit-xs); font-size: var(--fit-p); }
  #request .audit .btn { min-height: clamp(46px, 5.8vh, 54px); }
  #request .audit__art { max-width: clamp(360px, 50vh, 470px); gap: var(--fit-s); }
  #request .steps li { padding-top: var(--fit-s); font-size: var(--fit-p); }
  #request .steps b { font-size: clamp(24px, 3.2vh, 30px); }
}

/* ==========================================================================
   MOTION: things settle in once, as they scroll into view

   How it works
   - Each happens once and then stays still.
   - Markup: data-reveal="..." on an element in src/index.njk.
       items   its children fade up, one after another
               (the four "No..." points in I don't manage ads, the six question cards)
       rows    its table rows fade in; the Thoughtful Profit row lifts last (How this compares)
       up      the element fades up (the drawing in Free audit)
     And data-count on a figure in The measurement gap: it counts up from zero
     while it fades up, as on the earlier site.
   - Script: the MOTION blocks at the end of /js/home.js add .is-in to each
     piece the first time it scrolls into view, and run the count. The hidden
     starting states below only apply while that script is running (html.lk-js,
     set by /js/early.js), on a screen, and when the visitor has not asked their
     device for reduced motion. In every other case everything simply shows.
   - To switch it all off, delete this block and the two script blocks. The
     data-reveal and data-count attributes can stay: they do nothing on their own.
   ========================================================================== */
@media screen and (prefers-reduced-motion: no-preference) {
  /* ---- Order within a group: each piece starts a beat after the one before -- */
  [data-reveal] > :nth-child(2), [data-reveal] tr:nth-child(2) { --rv-i: 1; }
  [data-reveal] > :nth-child(3), [data-reveal] tr:nth-child(3) { --rv-i: 2; }
  [data-reveal] > :nth-child(4), [data-reveal] tr:nth-child(4) { --rv-i: 3; }
  [data-reveal] > :nth-child(5), [data-reveal] tr:nth-child(5) { --rv-i: 4; }
  [data-reveal] > *, [data-reveal] tr { --rv-d: calc(var(--rv-i, 0) * 70ms); }

  /* ---- Set down: fade up a short way ---------------------------------------- */
  html.lk-js [data-reveal="up"], html.lk-js [data-reveal="items"] > * { transition: opacity 0.5s ease var(--rv-d, 0s), transform 0.6s var(--ease) var(--rv-d, 0s); }
  html.lk-js [data-reveal="up"]:not(.is-in), html.lk-js [data-reveal="items"] > :not(.is-in) { opacity: 0; transform: translateY(12px); }

  /* ---- Table rows: fade in from the top, then the Thoughtful Profit row lifts -
     The fade is on the cells, which every browser handles; the shadow belongs to the row. */
  html.lk-js [data-reveal="rows"] tbody tr > * { transition: opacity 0.5s ease var(--rv-d, 0s); }
  html.lk-js [data-reveal="rows"] tbody tr:not(.is-in) > * { opacity: 0; }
  html.lk-js [data-reveal="rows"] tbody tr.is-us { transition: box-shadow 0.6s var(--ease) calc(var(--rv-d, 0s) + 0.35s); }
  html.lk-js [data-reveal="rows"] tbody tr.is-us:not(.is-in) { box-shadow: 0 0 0 var(--pen-soft); }
  /* On phones each row is a card of its own, so the whole card fades in, frame and all */
  @media (max-width: 799px) {
    html.lk-js [data-reveal="rows"] tbody tr, html.lk-js [data-reveal="rows"] tbody tr.is-us { transition: opacity 0.5s ease, box-shadow 0.6s var(--ease) 0.35s; }
    html.lk-js [data-reveal="rows"] tbody tr:not(.is-in) { opacity: 0; }
  }

  /* ---- The measurement gap: each figure counts up from zero as it fades up ---- */
  html.lk-js .stat__num[data-count] { transition: opacity 0.8s ease, transform 0.8s var(--ease); }
  html.lk-js .stat__num[data-count]:not(.is-in) { opacity: 0; transform: translateY(20px); }
}
