/* ============================================================================
   landing.css · the "/" page. Tokens and components live in site.css; this
   file only lays out the landing sections and builds the hero motion graphic.
   No raw colors here, tokens only.
   ========================================================================== */

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(36px, 5.5vw, 84px) clamp(48px, 6vw, 96px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.hero__copy { position: relative; z-index: 1; }
.hero__eyebrow .eyebrow__num { text-transform: none; letter-spacing: 0.02em; }
.hero__title { margin-top: 22px; font-size: clamp(38px, 4.9vw, 68px); max-width: 15ch; }
.hero__title .ink-underline .ink-arrow { bottom: -0.16em; height: 0.36em; }
.hero__lead { margin-top: 26px; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.hero__price { margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.hero__price b { color: var(--ink); font-weight: 600; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin: 36px 0 0; padding: 22px 0 0; list-style: none;
  border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--ink-2);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; }
.hero__trust svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero__visual { position: relative; }
.hero__caption { margin-top: 12px; text-align: center; }

/* ── hero motion graphic: records sliding through a scanner ───────────── */
.scan {
  --slot: 100px;
  --card-h: 78px;
  --card-w: min(330px, 76%);
  position: relative; height: 440px; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-raise);
  contain: layout paint;
}
.scan__grid {
  position: absolute; inset: 0; opacity: 0.7;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse at center, currentColor 40%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, currentColor 40%, transparent 100%);
}
.scan__line { position: absolute; inset-inline: 0; top: 50%; height: 1px; background: var(--accent); opacity: 0.85; }
.scan__line::before {
  content: ""; position: absolute; inset-inline: 0; top: -26px; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--accent-wash), transparent);
}
.scan__tag {
  position: absolute; inset-inline-start: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--rule);
  font: 600 11px / 1 var(--font-sans); letter-spacing: 0.1em; color: var(--accent);
}
.scan__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s var(--ease-in-out) infinite; }
.scan__cards {
  position: absolute; inset: 0; margin: 0; padding: 0; list-style: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, currentColor 16%, currentColor 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, currentColor 16%, currentColor 84%, transparent 100%);
}
.rec {
  position: absolute; left: 50%; top: 50%;
  width: var(--card-w); height: var(--card-h);
  translate: -50% -50%;
  perspective: 900px;
  direction: ltr; text-align: left;
  animation: rec-step 12s var(--ease-in-out) infinite;
  animation-delay: calc(var(--k) * -2.4s);
  will-change: transform, opacity;
}
.rec::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-md);
  border: 1.5px solid var(--accent); opacity: 0; pointer-events: none;
  animation: rec-hi 12s var(--ease-in-out) infinite;
  animation-delay: calc(var(--k) * -2.4s);
}
.rec__flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.rec--hit .rec__flip { animation: rec-flip 12s var(--ease-in-out) infinite; animation-delay: calc(var(--k) * -2.4s); will-change: transform; }
.rec__face {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; column-gap: 12px; row-gap: 3px;
  padding: 0 16px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow-press);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.3; color: var(--ink-2);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.rec__face--masked { transform: rotateX(180deg); border-color: var(--accent); color: var(--ink); }
.rec__mark { grid-row: 1 / span 2; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--paper-3); }
.rec__mark--hit { background: var(--accent); }
.rec__id { grid-column: 2; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec__face--masked .rec__id { letter-spacing: 0.02em; }
.rec__meta { grid-column: 2; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec__meta i { font-style: normal; margin: 0 6px; opacity: 0.6; }
.rec__year { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 12px; color: var(--ink-3); }
.rec__pill {
  grid-column: 3; grid-row: 1 / span 2; align-self: center;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: var(--accent-wash); color: var(--accent);
  font: 600 11.5px / 1.2 var(--font-sans); white-space: nowrap;
}
@keyframes rec-step {
  0%        { transform: translateY(calc(var(--slot) * 2)); opacity: 0; }
  8%, 20%   { transform: translateY(var(--slot)); opacity: 1; }
  28%, 40%  { transform: translateY(0); opacity: 1; }
  48%, 60%  { transform: translateY(calc(var(--slot) * -1)); opacity: 1; }
  68%, 80%  { transform: translateY(calc(var(--slot) * -2)); opacity: 1; }
  88%, 100% { transform: translateY(calc(var(--slot) * -3)); opacity: 0; }
}
@keyframes rec-hi {
  0%, 27%   { opacity: 0; }
  31%, 42%  { opacity: 1; }
  48%, 100% { opacity: 0; }
}
@keyframes rec-flip {
  0%, 31%   { transform: rotateX(0); }
  36%, 94%  { transform: rotateX(180deg); }
  100%      { transform: rotateX(360deg); }
}
.scan.is-paused .rec, .scan.is-paused .rec::after, .scan.is-paused .rec__flip, .scan.is-paused .scan__dot { animation-play-state: paused; }

/* Reduced motion: freeze on the resolved state, hit card flipped on the line. */
@media (prefers-reduced-motion: reduce) {
  .rec { animation: none; opacity: 1; transform: translateY(calc((2 - var(--k)) * var(--slot))); }
  .rec--edge { opacity: 0; }
  .rec::after { animation: none; opacity: 0; }
  .rec--hit::after { opacity: 1; }
  .rec--hit .rec__flip { animation: none; transform: rotateX(180deg); }
  .scan__dot { animation: none; }
}

/* ── how it works ─────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.step { position: relative; padding: 30px clamp(18px, 2.6vw, 36px) 6px; border-inline-start: 1px solid var(--rule); }
.step:first-child { border-inline-start: 0; padding-inline-start: 0; }
.step:last-child { padding-inline-end: 0; }
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.step__num { font: 500 13px / 1 var(--font-mono); letter-spacing: 0.06em; color: var(--accent); }
.step__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--paper-2); color: var(--ink); }
.step__icon svg, .checks__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step__title { font-size: 19px; }
.step__text { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; max-width: 36ch; }

/* ── numbers ──────────────────────────────────────────────────────────── */
.numbers { border-block: 1px solid var(--rule); background: var(--paper-2); }
.numbers__head { display: grid; gap: 12px; max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.numbers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.numbers__grid .stat { padding-block: 8px; padding-inline: 0 clamp(16px, 2.4vw, 32px); border: 0; }
/* Dividers only between cards that are actually shown, so a hidden sibling never leaves a stray rule. */
.numbers__grid .stat:not([hidden]) ~ .stat:not([hidden]) { padding-inline-start: clamp(16px, 2.4vw, 32px); border-inline-start: 1px solid var(--rule); }
/* The number is an LTR box so the "+" suffix trails the digits; its end edge is the right edge,
   the same edge the RTL label sits on. */
.numbers__grid .stat__num { min-height: 1em; direction: ltr; unicode-bidi: isolate; text-align: end; position: relative; }
.numbers__grid .stat__num.is-empty::before {
  content: ""; position: absolute; inset-inline-end: 0; top: 0.16em;
  width: 62%; height: 0.68em; border-radius: 6px;
  background: var(--paper-3);
}
/* API unreachable: keep the box at its full height so the grid holds its shape. */
.numbers__grid .stat__num.is-unavailable { display: flex; align-items: center; justify-content: flex-end; }
.stat__unavailable { direction: rtl; unicode-bidi: isolate; font: 500 15px / 1.2 var(--font-sans); letter-spacing: 0; color: var(--ink-3); }
.numbers__grid .stat__label { font-size: 14.5px; }
/* Every card is live; without JS there is nothing to show here. */
html.js-off .numbers { display: none; }

/* ── what we check ────────────────────────────────────────────────────── */
.checks__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.checks__card { display: grid; gap: 14px; align-content: start; }
.checks__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--rule); color: var(--ink); }
.checks__title { font-size: 21px; }
.checks__text { color: var(--ink-2); font-size: 15.5px; max-width: 48ch; }
.match { display: grid; gap: 0; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.match__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--rule); }
.match__val { margin: 0; font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.match__tag { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.match__tag--ok { color: var(--ok); }
.checks__result { margin-top: clamp(28px, 3.5vw, 44px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 24px; }
.checks__result-title { font-size: 19px; }
.checks__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.checks__list li { display: grid; gap: 10px; }
.checks__list p { color: var(--ink-2); font-size: 15px; }
.checks__n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule-strong); font: 600 13px / 1 var(--font-mono); color: var(--ink); }

/* ── privacy (inverse band) ───────────────────────────────────────────── */
.privacy__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.privacy .section-head { margin-bottom: 0; }
.section--inverse .eyebrow { color: var(--inv-ink-3); }
.section--inverse .eyebrow__num { color: var(--inv-ink); }
.section--inverse .eyebrow__dot { background: var(--inv-rule); }
.vows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--inv-rule); }
.vow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--inv-rule); }
.vow__num { font: 500 clamp(22px, 2.2vw, 28px) / 1.1 var(--font-display); color: var(--inv-ink-3); letter-spacing: -0.01em; padding-top: 2px; }
.vow__title { font-size: 20px; color: var(--inv-ink); }
.vow__text { margin-top: 8px; color: var(--inv-ink-3); font-size: 15.5px; max-width: 46ch; }
/* Inline link on the inverse band: the base underline token is ink on ink here, so use the inverse rule. */
.vow__text a { color: var(--inv-ink); text-decoration-color: var(--inv-rule); }
.vow__text a:hover { text-decoration-color: currentColor; }

/* ── pricing ──────────────────────────────────────────────────────────── */
.pricing__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pricing .section-head { margin-bottom: 0; }
.price { display: grid; gap: 26px; padding: clamp(26px, 3vw, 38px); background: var(--paper); }
.price__top { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.price__wrap { position: relative; display: inline-block; padding: 0 0.12em; line-height: 1; }
.price__num { font: 600 clamp(52px, 5.5vw, 68px) / 1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.price__ink { position: absolute; top: -18px; inset-inline-start: -46px; width: calc(100% + 92px); max-width: none; height: calc(100% + 36px); }
.price__per { font-size: 16px; color: var(--ink-3); }
.price__list { display: grid; gap: 12px; margin: 0; padding: 22px 0; list-style: none; border-block: 1px solid var(--rule); font-size: 15.5px; color: var(--ink-2); }
.price__list li { display: flex; align-items: flex-start; gap: 12px; }
.price__list svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.price__note { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }

/* ── faq ──────────────────────────────────────────────────────────────── */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__list { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--ink);
  transition: color var(--t-micro) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker, .faq__q::marker { display: none; content: ""; }
@media (hover: hover) { .faq__q:hover { color: var(--accent); } }
.faq__q:focus-visible { outline-offset: -2px; }
.faq__icon { position: relative; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule-strong); color: var(--ink); transition: border-color var(--t-ui) var(--ease-out), background-color var(--t-ui) var(--ease-out); }
.faq__icon i { position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform var(--t-ui) var(--ease-out); }
.faq__icon i:last-child { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.faq__item.is-open .faq__icon i:last-child { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-ui) var(--ease-out); }
.faq__a-in { overflow: hidden; min-height: 0; }
.faq__a p { padding: 0 0 22px; max-width: 58ch; color: var(--ink-2); font-size: 15.5px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
html.js-off .faq__a { grid-template-rows: 1fr; }

/* ── final band ───────────────────────────────────────────────────────── */
.final__inner { display: grid; justify-items: center; text-align: center; gap: 18px; }
.final__title { font-size: clamp(34px, 5vw, 64px); max-width: 14ch; }
.final__sub { font-size: var(--fs-lead); color: var(--inv-ink-3); max-width: 40ch; }
.final__sub b { color: var(--inv-ink); font-weight: 600; }
.final__actions { margin-top: 10px; }

/* ── laptop ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .checks__result { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
}

/* ── mobile and small tablets ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { padding-block: 22px 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__title { margin-top: 16px; font-size: clamp(34px, 9vw, 44px); max-width: none; }
  .hero__lead { margin-top: 18px; font-size: 17px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__actions .btn--ghost { display: none; }
  .hero__price { margin-top: 14px; text-align: center; }
  .hero__trust { margin-top: 26px; padding-top: 18px; gap: 8px 18px; font-size: 13.5px; }
  .hero__caption { text-align: start; }

  .scan { --slot: 62px; --card-h: 50px; --card-w: min(300px, 84%); height: 240px; border-radius: var(--r-lg); }
  .scan__grid { background-size: 36px 36px; }
  .scan__tag { display: none; }
  .scan__cards {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, currentColor 14%, currentColor 82%, transparent 96%);
    mask-image: linear-gradient(to bottom, transparent 0, currentColor 14%, currentColor 82%, transparent 96%);
  }
  .rec__face { padding: 0 12px; column-gap: 10px; row-gap: 1px; font-size: 11.5px; }
  .rec__meta { font-size: 10.5px; }
  .rec__year { display: none; }
  .rec__pill { font-size: 10.5px; padding: 3px 7px; }

  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step:first-child, .step:last-child { padding: 0 0 30px; padding-inline-start: 58px; border-inline-start: 0; }
  .step:last-child { padding-bottom: 0; }
  .step::before { content: ""; position: absolute; inset-inline-start: 21px; top: 46px; bottom: 6px; width: 1px; background: var(--rule); }
  .step:last-child::before { display: none; }
  .step__top { display: contents; }
  .step__num { position: absolute; inset-inline-start: 0; top: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); font-size: 12.5px; }
  .step__icon { display: none; }
  .step__title { padding-top: 8px; }
  .step__text { max-width: none; }

  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .numbers__grid .stat, .numbers__grid .stat:not([hidden]) ~ .stat:not([hidden]) { padding: 0; border: 0; }
  /* The records figure is wider than half the screen; give it the first row on its own. */
  .numbers__grid .stat:first-child { grid-column: 1 / -1; }
  .numbers__grid .stat__num { font-size: clamp(30px, 9vw, 40px); }

  .checks__grid { grid-template-columns: 1fr; }
  .checks__list { grid-template-columns: 1fr; gap: 16px; }
  .checks__list li { grid-template-columns: 30px minmax(0, 1fr); align-items: start; }

  .privacy__grid, .pricing__grid, .faq__grid { grid-template-columns: 1fr; gap: 30px; }
  .faq .section-head { position: static; }
  .vow { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 22px 0; }
  .vow__title { font-size: 18px; }
  .price { padding: 24px 20px; }
  .price__top { padding-inline-start: 8px; }
  .price__ink { top: -12px; inset-inline-start: -24px; width: calc(100% + 48px); height: calc(100% + 24px); }
  .faq__q { min-height: 56px; padding: 14px 0; font-size: 16px; }
}

@media (max-width: 400px) {
  .numbers__grid { gap: 22px 16px; }
  /* Masked face: the pill takes the third column, so the city no longer fits beside the phone. */
  .rec__face--masked .rec__meta i, .rec__face--masked .rec__meta bdi { display: none; }
}

/* ── tablets: single column, but give the scanner more room than a phone ── */
@media (min-width: 600px) and (max-width: 860px) {
  .scan { height: 300px; --slot: 76px; --card-h: 60px; --card-w: min(420px, 70%); }
  .rec__face { font-size: 12.5px; }
  .rec__meta { font-size: 11.5px; }
}

/* FAQ: keep the page from jumping while answers open */
.faq { overflow-anchor: none; }
@media (min-width: 861px) { .faq__list { min-height: 720px; } }
