/* Card Scanner website. Hand-written, no framework. Colours are tokens; the dark theme follows the system. */

@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable-latin.woff2?v=36643ba4fe") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  /* light */
  --bg: #f6f5f1;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #efede6;
  --line: rgba(17, 24, 39, 0.12);
  --text: #111827;
  --muted: #4b5563;
  --brand: #1a4dcc;
  --brand-soft: rgba(26, 77, 204, 0.1);
  --accent: #f59e0b;
  --accent-text: #a24a04;
  --hl-end: #c2570a;
  --accent-ink: #111827;
  --ok: #0f8a4f;
  --warn: #b97a00;
  --bad: #c2410c;
  --glow-a: rgba(26, 77, 204, 0.22);
  --glow-b: rgba(245, 158, 11, 0.2);
  --grid-dot: rgba(17, 24, 39, 0.16);
  --phone: #0b0f1a;
  --phone-edge: #2a3142;
  --shadow: 0 30px 60px -20px rgba(17, 24, 39, 0.35), 0 12px 24px -12px rgba(17, 24, 39, 0.25);
  /* the join band is navy in both themes, like the printed card */
  --navy: #111827;
  --navy-text: #f3f4f6;
  --navy-muted: #a3acb9;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060a14;
    --bg-2: #0a1020;
    --surface: #0e1629;
    --surface-2: #131d35;
    --line: rgba(163, 172, 185, 0.18);
    --text: #eef2fa;
    --muted: #a3acb9;
    --brand: #7aa2ff;
    --brand-soft: rgba(122, 162, 255, 0.14);
    --accent: #f59e0b;
    --accent-text: #fbb53c;
    --hl-end: #fbb53c;
    --ok: #34d399;
    --warn: #fbbf24;
    --bad: #fb923c;
    --glow-a: rgba(46, 104, 255, 0.4);
    --glow-b: rgba(245, 158, 11, 0.16);
    --grid-dot: rgba(163, 172, 185, 0.2);
    --phone: #05070c;
    --phone-edge: #333c52;
    --shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --navy: #0e1629;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss03", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-variation-settings: "opsz" 32; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- small parts */
.pill { display: inline-flex; align-items: center; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.22em 0.7em; border-radius: 99px; vertical-align: middle; }
.pill--beta { background: var(--accent); color: var(--accent-ink); }
.dot { display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; background: currentColor; flex: none; }
.dot--ok { background: var(--ok); }
.dot--warn { background: var(--warn); }
.dot--bad { background: var(--bad); }
.dot--brand { background: var(--brand); }
/* the scanner's numbered badge, as on the app's scan results */
.badge { display: inline-grid; place-items: center; flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 700; font-size: 0.8em; line-height: 1; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; }
.badge--big { font-size: 0.95rem; width: 2em; height: 2em; }
@media (prefers-color-scheme: dark) { .badge { color: #04130c; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); } }

.btn { display: inline-flex; align-items: center; gap: 0.6em; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border-radius: 99px; padding: 0.95em 1.5em; line-height: 1.1; position: relative; isolation: isolate; overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%); transform: translateX(-120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(245, 158, 11, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }
.btn:active { transform: translateY(0); }
.btn--small { padding: 0.62em 1.1em; font-size: 0.9375rem; }
.btn--big { font-size: 1.0625rem; padding: 1em 1.45em; }
@media (min-width: 480px) { .btn--big { font-size: 1.125rem; padding: 1.05em 1.7em; } }
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.link-more { font-weight: 600; text-underline-offset: 0.25em; text-decoration-thickness: 2px; text-decoration-color: var(--line); padding: 0.6em 0.2em; }
.link-more:hover { text-decoration-color: var(--brand); }

.kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.kicker--amber { color: var(--accent); }
.sec-head { text-align: center; max-width: 44rem; margin-inline: auto; }
.sec-head--left { text-align: left; margin-inline: 0; }
.sec-head h2 { font-size: clamp(2.1rem, 6.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin-top: 0.35em; }
.sec-lead { color: var(--muted); font-size: clamp(1.0625rem, 2.2vw, 1.25rem); margin-top: 1em; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; margin-right: auto; }
.brand__icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.4); }
.nav__links { display: none; gap: 1.6rem; font-size: 0.9375rem; font-weight: 500; }
.nav__links a { white-space: nowrap; text-decoration: none; color: var(--muted); transition: color 0.2s; padding: 0.4em 0; }
.nav__links a:hover { color: var(--text); }
@media (min-width: 880px) { .nav__links { display: flex; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; overflow: clip; padding-block: clamp(28px, 6vw, 72px) clamp(48px, 8vw, 96px); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.glow--a { width: min(720px, 110vw); aspect-ratio: 1; right: -12%; top: -18%; background: radial-gradient(closest-side, var(--glow-a), transparent); animation: drift 16s ease-in-out infinite alternate; }
.glow--b { width: min(560px, 90vw); aspect-ratio: 1; left: -18%; bottom: -30%; background: radial-gradient(closest-side, var(--glow-b), transparent); animation: drift 20s ease-in-out infinite alternate-reverse; }
.grid { position: absolute; inset: 0; background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%); }
@keyframes drift { to { transform: translate3d(4%, 6%, 0) scale(1.08); } }

.hero__in { position: relative; display: grid; gap: clamp(44px, 7vw, 64px); align-items: center; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.6em; font-weight: 600; font-size: 0.9375rem; }
.eyebrow__for { color: var(--muted); font-weight: 500; }
.hero__title { font-size: clamp(3.1rem, 13.5vw, 6.6rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; margin-top: 0.3em; }
.hl { background: linear-gradient(100deg, var(--brand) 0%, var(--brand) 28%, var(--hl-end) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; display: inline-block; }
.hero__lead { font-size: clamp(1.0625rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 34rem; margin-top: 1.1em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin-top: 1.6rem; }
.hero__note { margin-top: 0.9rem; font-size: 0.875rem; color: var(--muted); }

.hero__stage { display: grid; place-items: center; perspective: 1400px; }
.finder { position: relative; width: min(62vw, 330px); padding: 0; transform-style: preserve-3d; transition: transform 0.4s var(--ease); will-change: transform; }
.finder__c { position: absolute; width: 44px; height: 44px; border: 3px solid var(--accent); opacity: 0.95; animation: lock 1.1s var(--ease) 0.25s both; }
.finder__c--tl { left: -22px; top: -22px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; --from: translate(-18px, -18px); }
.finder__c--tr { right: -22px; top: -22px; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; --from: translate(18px, -18px); }
.finder__c--bl { left: -22px; bottom: -22px; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; --from: translate(-18px, 18px); }
.finder__c--br { right: -22px; bottom: -22px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; --from: translate(18px, 18px); }
@keyframes lock { from { opacity: 0; transform: var(--from); } }

/* the phone: a plain rounded frame around a real screenshot */
.phone { position: relative; width: 100%; aspect-ratio: 1206 / 2622; background: var(--phone); border-radius: 15.5% / 7.2%; padding: 2.6%; box-shadow: var(--shadow), inset 0 0 0 1.5px var(--phone-edge); }
.phone::before { content: ""; position: absolute; z-index: 3; left: 50%; top: 2.6%; width: 27%; height: 3.3%; transform: translateX(-50%); background: #000; border-radius: 99px; }
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 13.6% / 6.3%; background: var(--surface-2); }
.phone__screen picture, .phone__screen img { display: block; width: 100%; height: 100%; }
.phone__screen img { object-fit: cover; object-position: top; }
.phone--hero { animation: rise 1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(0.97); } }

/* The scan: over the photo part of the scan screenshot (15.1% to 42.1% of its height) a veil greys the picture,
   and a beam sweeps down and lifts it, so the outlines and numbers appear as the beam passes. */
.beam { position: absolute; left: 0; right: 0; top: 15.1%; height: 27%; pointer-events: none; overflow: hidden; }
.beam::before { content: ""; position: absolute; inset: 0; -webkit-backdrop-filter: grayscale(1) brightness(0.5) blur(1.5px); backdrop-filter: grayscale(1) brightness(0.5) blur(1.5px); clip-path: inset(100% 0 0 0); animation: veil 7s linear 0.9s infinite both; }
.beam::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 62%, rgba(245, 158, 11, 0.06) 80%, rgba(245, 158, 11, 0.42)); border-bottom: 2px solid #ffc14d; box-shadow: 0 0 18px 3px rgba(245, 158, 11, 0.75); opacity: 0; transform: translateY(-100%); animation: sweep 7s linear 0.9s infinite both; }
@keyframes veil { 0% { clip-path: inset(0 0 0 0); opacity: 0; } 5%, 12% { clip-path: inset(0 0 0 0); opacity: 1; } 42% { clip-path: inset(100% 0 0 0); opacity: 1; } 100% { clip-path: inset(100% 0 0 0); opacity: 1; } }
@keyframes sweep { 0%, 10% { transform: translateY(-100%); opacity: 0; } 12% { transform: translateY(-100%); opacity: 1; } 42% { transform: translateY(0); opacity: 1; } 46%, 100% { transform: translateY(0); opacity: 0; } }

.tags { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap; background: var(--surface); background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); color: var(--text); font-size: clamp(0.75rem, 2.6vw, 0.875rem); font-weight: 600; padding: 0.55em 0.9em; border-radius: 99px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45); animation: pop 0.6s var(--ease) both, bob 6s ease-in-out infinite; }
.tag--1 { left: -19%; top: 13%; animation-delay: 2.6s, 3.2s; }
.tag--2 { right: -21%; top: 33%; animation-delay: 3.2s, 4s; }
.tag--3 { left: -14%; bottom: 17%; animation-delay: 3.8s, 4.6s; }
@keyframes pop { from { opacity: 0; transform: scale(0.7) translateY(8px); } }
@keyframes bob { 50% { translate: 0 -7px; } }

@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .finder { width: 330px; }
  .tag--1 { left: -34%; }
  .tag--2 { right: -30%; }
  .tag--3 { left: -27%; }
}

/* ---------------------------------------------------------------- numbers */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 0.3rem; padding: clamp(22px, 4vw, 40px) clamp(8px, 2vw, 24px); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.stat strong { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variation-settings: "opsz" 32; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.9375rem; line-height: 1.35; max-width: 15rem; }
@media (min-width: 900px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { border-bottom: 0 !important; border-right: 1px solid var(--line); padding-inline: 28px; }
  .stat:last-child { border-right: 0; }
  .stat:first-child { padding-left: 0; }
}

/* ---------------------------------------------------------------- story */
.story { padding-block: clamp(72px, 11vw, 140px) clamp(40px, 6vw, 80px); }
.story__grid { margin-top: clamp(40px, 7vw, 72px); }
.steps { display: grid; gap: clamp(64px, 10vw, 96px); }
.step { display: grid; gap: 32px; align-items: center; }
.step__num { display: flex; align-items: center; gap: 0.7em; font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em; color: var(--muted); }
.step h3 { font-size: clamp(1.75rem, 5vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin-top: 0.5em; }
.step__text > p:not(.step__num) { margin-top: 1em; color: var(--muted); font-size: 1.125rem; max-width: 32rem; }
.step__text > .step__fine { font-size: 1rem; }
.verdicts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.verdicts li { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.875rem; font-weight: 600; padding: 0.45em 0.9em; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.step__fig { width: min(70vw, 300px); margin-inline: auto; }
.stage { display: none; }

@media (min-width: 900px) {
  .story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 48px; }
  .step { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  /* with JavaScript: one sticky phone on the right, the steps scroll past it */
  .js .steps { gap: 0; }
  .js .step { grid-template-columns: minmax(0, 1fr); min-height: 66vh; align-content: center; opacity: 0.35; transition: opacity 0.5s var(--ease); }
  .js .step.is-active { opacity: 1; }
  .js .step__fig { display: none; }
  .js .stage { display: block; position: sticky; top: calc(50vh - min(36vh, 326px) + 20px); height: min(72vh, 652px); align-self: start; margin-top: 6vh; }
  .js .phone--stage { height: 100%; width: auto; margin-inline: auto; }
  .js .phone--stage picture { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease); }
  .js .phone--stage picture.is-on { opacity: 1; transform: none; }
  html:not(.js) .story__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- bands */
/* Two rows of names. As written they wrap, centred; with JavaScript (which adds the second copy a seamless loop
   needs) and motion allowed, they become two marquees running in opposite directions. */
.bands { padding-block: clamp(28px, 5vw, 56px); overflow: hidden; display: grid; gap: 14px; }
.band { display: flex; }
.band__track { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; padding-inline: var(--gutter); flex: 1 1 auto; }
.band__track li { flex: none; white-space: nowrap; font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.45rem); letter-spacing: -0.02em; font-variation-settings: "opsz" 32; padding: 0.55em 1.1em; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.band--rev .band__track li { background: transparent; color: var(--muted); }
.band__track[aria-hidden="true"] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .band { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
  .js .band__track, .js .band__track[aria-hidden="true"] { display: flex; flex: none; flex-wrap: nowrap; justify-content: flex-start; gap: 14px; padding-inline: 0 14px; min-width: 100%; animation: slide 48s linear infinite; }
  .js .band--rev .band__track { animation-direction: reverse; animation-duration: 56s; }
  .js .band:hover .band__track { animation-play-state: paused; }
}
@keyframes slide { to { transform: translateX(-100%); } }

/* ---------------------------------------------------------------- features */
.features { padding-block: clamp(56px, 9vw, 120px); }
.bento { display: grid; gap: 14px; margin-top: clamp(36px, 6vw, 64px); grid-template-columns: minmax(0, 1fr); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); overflow: hidden; isolation: isolate; transition: transform 0.35s var(--ease), border-color 0.35s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), var(--brand-soft), transparent 65%); opacity: 0; transition: opacity 0.35s; }
.card:hover { transform: translateY(-3px); border-color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card:hover::before { opacity: 1; }
.card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.9rem; align-items: center; }
.card p { grid-column: 1 / -1; }
.card h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; }
.card p { color: var(--muted); margin-top: 0.75em; font-size: 1rem; line-height: 1.55; }
.ico { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico__fill { fill: currentColor; stroke: none; }
@media (min-width: 620px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card--wide { grid-column: span 2; } .card { display: block; } .card h3 { margin-top: 1.1rem; } }
@media (min-width: 980px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* more screens: a row of small phones; it scrolls sideways where it doesn't fit */
.gallery { display: flex; gap: clamp(18px, 3vw, 36px); margin-top: clamp(40px, 6vw, 72px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 28px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shot { flex: none; width: min(58vw, 230px); scroll-snap-align: center; }
.shot figcaption { text-align: center; margin-top: 1rem; font-weight: 600; font-size: 0.9375rem; color: var(--muted); }
.shot .phone { transition: transform 0.4s var(--ease); }
.shot:hover .phone { transform: translateY(-6px) rotate(-1deg); }
.shot:nth-child(even):hover .phone { transform: translateY(-6px) rotate(1deg); }
@media (min-width: 1100px) { .gallery { justify-content: center; overflow: visible; } }

/* ---------------------------------------------------------------- private */
.private { padding-block: clamp(56px, 9vw, 120px); background: var(--bg-2); border-top: 1px solid var(--line); }
.private__in { display: grid; gap: clamp(32px, 6vw, 72px); }
.proofs { display: grid; gap: 14px; }
.proof { display: flex; gap: 1.1rem; align-items: flex-start; padding: clamp(18px, 3vw, 26px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.proof .badge { margin-top: 0.15em; }
.tick { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.proof h3 { font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.25; }
.proof p { color: var(--muted); margin-top: 0.35em; font-size: 1rem; }
@media (min-width: 900px) { .private__in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: start; } .private .sec-head { position: sticky; top: 110px; } }

/* ---------------------------------------------------------------- join */
.join { position: relative; background: var(--navy); color: var(--navy-text); overflow: hidden; }
.join__bar { height: 8px; background: var(--accent); }
.join::after { content: ""; position: absolute; width: 640px; aspect-ratio: 1; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 104, 255, 0.4), transparent); pointer-events: none; }
.join__in { position: relative; z-index: 1; display: grid; gap: 40px; padding-block: clamp(56px, 9vw, 112px); align-items: center; }
.join h2 { font-size: clamp(2.3rem, 7.5vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; font-weight: 800; margin-top: 0.35em; }
.join__steps { display: grid; gap: 0.85rem; margin-block: 1.8rem 2.2rem; font-size: 1.125rem; }
.join__steps li { display: flex; align-items: center; gap: 0.8em; }
.join__steps .badge { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.join__note { margin-top: 1.4rem; color: var(--navy-muted); font-size: 0.9375rem; }
.join__note a { color: var(--navy-text); text-underline-offset: 0.2em; display: inline-block; padding-block: 0.2em; }
.join__qr { display: none; text-align: center; color: var(--navy-muted); font-size: 0.9375rem; }
.join__qr img { background: #fff; border-radius: 20px; padding: 14px; margin-inline: auto; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.join__qr p { margin-top: 1rem; max-width: 14rem; margin-inline: auto; }
@media (min-width: 900px) { .join__in { grid-template-columns: minmax(0, 1fr) auto; } .join__qr { display: block; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--navy); color: var(--navy-muted); border-top: 1px solid rgba(163, 172, 185, 0.18); font-size: 0.875rem; }
.foot__in { display: grid; gap: 28px; padding-block: 40px 56px; }
.foot__brand { display: flex; align-items: center; gap: 0.8rem; line-height: 1.35; }
.foot__brand strong { color: var(--navy-text); font-size: 1rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.foot__links a { color: var(--navy-text); font-weight: 600; text-underline-offset: 0.2em; display: inline-block; padding: 0.35em 0; }
.foot__legal { display: grid; gap: 0.7em; max-width: 60rem; font-size: 0.8125rem; line-height: 1.55; }
@media (min-width: 900px) { .foot__in { grid-template-columns: 1fr auto; } .foot__legal { grid-column: 1 / -1; } .foot__links { align-items: center; } }

/* ---------------------------------------------------------------- legal pages (terms, privacy): long text to read */
/* the page you are on is marked without changing a link's width, so the menu sits the same on every page */
.nav__links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.doc { position: relative; overflow: hidden; overflow: clip; padding-block: clamp(36px, 7vw, 84px) clamp(64px, 9vw, 120px); }
/* the hero's blue glow and dotted grid, still and faint, behind the title */
.doc::before { content: ""; position: absolute; width: min(760px, 120vw); aspect-ratio: 1; right: -14%; top: -340px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-a), transparent); filter: blur(70px); pointer-events: none; }
.doc::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 20%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 78% 20%, #000 0%, transparent 75%); pointer-events: none; }
.doc__in { position: relative; z-index: 1; display: grid; gap: clamp(28px, 5vw, 44px); max-width: calc(46rem + 2 * var(--gutter)); }
.doc__head h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; margin-top: 0.3em; }
.doc__lead { color: var(--muted); font-size: clamp(1.125rem, 2.4vw, 1.3125rem); line-height: 1.5; margin-top: 1em; max-width: 40rem; }
.doc__meta { color: var(--muted); font-size: 0.9375rem; margin-top: 1.4em; }

.doc__short { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 30px); box-shadow: 0 18px 40px -28px rgba(17, 24, 39, 0.35); }
.doc__short h2 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.doc__short ul { display: grid; gap: 0.85em; margin-top: 1.1em; }
.doc__short li { display: flex; gap: 0.85rem; align-items: flex-start; line-height: 1.5; }
.doc__short .badge { margin-top: 0.1em; }

/* the support page's "Write to us" box */
.doc__contact p { margin-top: 0.9em; line-height: 1.55; max-width: 38rem; }
.doc__contact .btn { margin-top: 0.35em; max-width: 100%; }
.doc__contact .btn span { overflow-wrap: anywhere; }
.btn__icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doc__publisher { color: var(--muted); font-size: 0.9375rem; }

.doc__toc { border-left: 2px solid var(--line); padding-left: 1.1rem; font-size: 0.9375rem; }
.doc__toc-title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.doc__toc ol { counter-reset: toc; display: grid; margin-top: 0.6em; }
.doc__toc li { counter-increment: toc; }
.doc__toc a { display: flex; gap: 0.7em; padding: 0.42em 0; text-decoration: none; color: var(--muted); line-height: 1.35; }
.doc__toc a::before { content: counter(toc); flex: none; min-width: 1.3em; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand); }
.doc__toc a:hover { color: var(--text); }

.prose { counter-reset: section; font-size: 1.0625rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { counter-increment: section; display: flex; gap: 0.75rem; align-items: flex-start; font-size: clamp(1.45rem, 3.6vw, 1.75rem); line-height: 1.2; letter-spacing: -0.025em; font-weight: 800; margin-top: 2.6em; padding-top: 1.1em; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
/* the scanner's numbered badge, as on the scan results, counts the sections */
.prose h2::before { content: counter(section); display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; margin-top: 0.12em; border-radius: 50%; background: var(--ok); color: #fff; font-size: 0.875rem; font-weight: 700; letter-spacing: 0; line-height: 1; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .prose h2::before { color: #04130c; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); } }
.prose h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; margin-top: 2em; scroll-margin-top: 84px; }
.prose p, .prose ul, .prose ol, .prose dl { margin-top: 1em; }
.prose h2 + p, .prose h3 + p, .prose h3 + dl, .prose h3 + ul { margin-top: 0.7em; }
.prose a { color: var(--brand); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { display: grid; gap: 0.5em; padding-left: 1.5rem; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.15rem; top: 0.68em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--brand); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--brand); font-weight: 700; }
.prose li > ul { margin-top: 0.5em; }
/* rows of facts: what, why, how long */
.prose dl { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0.35em clamp(16px, 3vw, 22px); }
.prose dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.95em; }
.prose dd { padding-bottom: 0.95em; margin-top: 0.15em; }
.prose dd + dt { border-top: 1px solid var(--line); }
@media (min-width: 620px) {
  .prose dl { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 1.25rem; }
  .prose dt { padding-block: 1.05em; line-height: 1.9; }
  .prose dd { padding-block: 0.95em; margin-top: 0; }
  .prose dd + dt, .prose dd + dt + dd { border-top: 1px solid var(--line); }
}
/* something only the publisher can fill in: can't go live (scripts/check.py) */
.todo { background: rgba(245, 158, 11, 0.2); color: inherit; border: 1px dashed var(--accent-text); border-radius: 7px; padding: 0.08em 0.45em; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.todo::before { content: "To fill in: "; font-weight: 700; color: var(--accent-text); }

@media (min-width: 1040px) {
  .doc__in { max-width: calc(var(--wrap) + 2 * var(--gutter)); grid-template-columns: 250px minmax(0, 46rem); column-gap: clamp(48px, 6vw, 88px); align-items: start; }
  .doc__in > * { grid-column: 2; }
  .doc__toc { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 96px; margin-top: 0.5rem; max-height: calc(100vh - 120px); overflow-y: auto; }
}

/* ---------------------------------------------------------------- reveal on scroll (only with JavaScript) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- reduced motion: everything still, nothing hidden */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .beam { display: none; }
  .js .step { opacity: 1; }
}

@media print {
  .nav, .hero__bg, .bands, .tags, .beam, .finder__c { display: none !important; }
  .doc__toc, .doc::before, .doc::after, .foot__links { display: none !important; }
  .doc { padding-block: 0; }
  .prose a { color: inherit; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- 404 */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
.lost__in { text-align: center; padding-block: 64px; }
.lost__badge { display: inline-flex; align-items: center; gap: 0.7em; font-weight: 700; color: var(--muted); }
.lost .badge { background: var(--bad); }
.lost h1 { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin-top: 0.6em; }
.lost p { color: var(--muted); margin-top: 1em; }
.lost .btn { margin-top: 1em; }
