/* PairIQ site styles.
   Shared by every page (home, legal pages, the library). Colours are the app's own tokens: the dark
   canvas, warm white ink, the copper > mauve > indigo ring, and pine for "absorbs more".
   Homepage-only sections are namespaced (hp-, lab-, math-, how-, sci-, goal-, price-) so the
   library pages can use generic names like .card or .grid without collisions. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --canvas: #0B0E0C;
  --raise: #141815;
  --raise-2: #1B201C;
  --line: rgba(245, 243, 238, 0.12);
  --line-strong: rgba(245, 243, 238, 0.22);
  --ink: #F5F3EE;
  --ink-2: rgba(245, 243, 238, 0.74);
  --ink-3: rgba(245, 243, 238, 0.58);
  --copper: #F0A15E;
  --mauve: #C77AA0;
  --indigo: #7C83FF;
  --indigo-soft: #AEB2FF;
  --pine: #4FA97A;
  --rose: #F27A8A;
  --gold: #E8B84A;
  --up: var(--pine);
  --down: var(--rose);
  --flat: rgba(245, 243, 238, 0.6);
  --ring: linear-gradient(120deg, #F0A15E 0%, #C77AA0 52%, #7C83FF 100%);

  --wrap: 1180px;
  --gutter: 24px;
  --measure: 66ch;
  --head-h: 64px;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 1.25rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.75rem, 1.9rem + 5.4vw, 6rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Schibsted Grotesk", -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
svg use { pointer-events: none; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: var(--ink); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--copper); }

:focus-visible { outline: 2px solid var(--indigo-soft); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: 999px; z-index: 60; text-decoration: none; font-weight: 600; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-weight: 720; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 0.96; letter-spacing: -0.045em; font-weight: 780; }
h2 { font-size: var(--step-3); line-height: 1.04; letter-spacing: -0.035em; font-weight: 760; }
h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); line-height: 1.5; color: var(--ink-3); }
/* Schibsted's tabular figures carry a slab-footed 1 and wide commas, so display numbers use the
   proportional set; only odometer cells hold a fixed width while they roll. */
.num { font-variant-numeric: proportional-nums; }
.ink { color: var(--ink); }
.grad { font-style: normal; background: var(--ring); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ring); box-shadow: 0 0 14px rgba(240, 161, 94, 0.55); flex: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .cta-row .btn { width: 100%; } }

/* ── Buttons ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-weight: 680; font-size: 1rem; text-decoration: none; letter-spacing: -0.01em; border: 0; cursor: pointer; text-align: center; transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.btn:hover { background: #FFFFFF; transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-ico { width: 18px; height: 18px; flex: none; }
.btn-ico-end { width: 16px; height: 16px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn-wide { width: 100%; }
.btn-primary { position: relative; overflow: hidden; background: var(--ring); color: var(--canvas); box-shadow: 0 14px 34px -14px rgba(199, 122, 160, 0.65); isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); z-index: -1; }
.btn-primary:hover { background: var(--ring); box-shadow: 0 18px 40px -14px rgba(199, 122, 160, 0.85); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(245, 243, 238, 0.06); border-color: rgba(245, 243, 238, 0.45); }

/* ── Header and navigation ──────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(11, 14, 12, 0.84); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }
/* The wordmark follows the app's splash spec: the system face, Light, tracked 0.14em, real text.
   The ::after pulls the trailing tracking back so the mark stays optically aligned at its end. */
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif; font-weight: 300; font-size: 1.25rem; letter-spacing: 0.14em; line-height: 1; -webkit-font-smoothing: auto; }
.brand::after { content: ""; margin-left: -0.14em; }
.brand img { width: 26px; height: 26px; filter: invert(1) brightness(1.15); }
@media (max-width: 360px) { .brand { font-size: 1.125rem; gap: 9px; } .head-cta, .head-row .btn-sm { padding: 0 13px; } }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; font-weight: 540; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--ink); background: rgba(245, 243, 238, 0.06); }
.nav .nav-cta, .nav .nav-note { display: none; }
.push-right { margin-left: auto; }
.nav-toggle { display: none; appearance: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.nav-toggle-bars { position: relative; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: background 0.2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-head.menu-open .nav-toggle-bars { background: transparent; }
.site-head.menu-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.site-head.menu-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .head-row { gap: 10px; }
  .head-cta, .head-row .btn-sm { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom)); min-height: calc(100vh - var(--head-h)); max-height: calc(100vh - var(--head-h)); overflow-y: auto; background: var(--canvas); border-top: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s; }
  .site-head.menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { min-height: 58px; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.375rem; font-weight: 640; color: var(--ink); letter-spacing: -0.02em; }
  .nav a:hover { background: transparent; }
  .nav .nav-cta { display: inline-flex; margin-top: 22px; border: 0; border-radius: 999px; min-height: 56px; font-size: 1.0625rem; color: var(--canvas); }
  .nav .nav-note { display: block; margin: 12px 0 0; }
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 128px) 0; border-top: 1px solid var(--line); position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 5vw, 60px); }
.section-head p { margin: 0; color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; max-width: 46ch; text-wrap: pretty; }
.section-head h2 { max-width: 18ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; align-items: start; gap: 16px; } }

/* Scroll reveals. Hidden only once JS is running; otherwise content is simply there. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.85s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Hero ───────────────────────────────────────────────── */
.hp-hero { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 96px) 0 clamp(44px, 6vw, 80px); text-align: center; }
.hp-hero-bloom { position: absolute; width: 72vmax; height: 72vmax; border-radius: 50%; pointer-events: none; opacity: 0.6; background: radial-gradient(closest-side, rgba(240, 161, 94, 0.34), rgba(199, 122, 160, 0.16) 46%, transparent 72%); }
.hp-hero-bloom-a { top: -34vmax; left: -24vmax; animation: bloomA 24s ease-in-out infinite alternate; }
.hp-hero-bloom-b { bottom: -38vmax; right: -28vmax; background: radial-gradient(closest-side, rgba(124, 131, 255, 0.3), rgba(199, 122, 160, 0.12) 50%, transparent 72%); animation: bloomB 28s ease-in-out infinite alternate; }
@keyframes bloomA { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vmax, 6vmax) scale(1.12); } }
@keyframes bloomB { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-9vmax, -5vmax) scale(0.95); } }
.hp-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hp-hero h1 { max-width: 12ch; }
.hp-hero h1 .grad { padding-right: 0.04em; }
.hp-hero-lede { margin: 22px auto 0; max-width: 42ch; font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.3125rem); }
.hp-hero-cta { margin-top: 30px; width: 100%; max-width: 640px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hp-hero-cta .btn { flex: 1 1 240px; }
.hp-hero-cta .btn-primary { flex-basis: 310px; }
.hp-hero-note { width: 100%; max-width: 46ch; margin: 2px auto 0; }

/* The equation card: four verified pairings, one at a time, as the hook into the Lab */
.hp-eq { position: relative; display: block; width: 100%; max-width: 540px; margin-top: 40px; padding: 18px 20px 14px; border-radius: 24px; background: rgba(20, 24, 21, 0.72); border: 1px solid var(--line); text-align: left; text-decoration: none; color: inherit; overflow: hidden; transition: border-color 0.2s, transform 0.3s var(--ease); }
.hp-eq:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.hp-eq::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(240, 161, 94, 0.08), transparent 45%, rgba(124, 131, 255, 0.08)); pointer-events: none; }
.hp-eq-cap { display: block; padding-right: 64px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.hp-eq-stage { position: relative; display: grid; min-height: 176px; margin-top: 12px; }
.hp-eq-item { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(14px); visibility: hidden; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s 0.5s; }
.hp-eq-item.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.hp-eq-item.is-out { opacity: 0; transform: translateY(-12px); }
.hp-eq-foods { display: flex; align-items: center; gap: 4px 14px; font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; }
.hp-eq-food { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hp-eq-img { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); padding: 7px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); }
.hp-eq-op { color: var(--ink-3); font-weight: 400; font-size: 1.5rem; margin-bottom: 22px; }
.hp-eq-res { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.hp-eq-ico { width: 24px; height: 24px; flex: none; }
.hp-eq-stat { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: proportional-nums; }
.hp-eq-res.is-up { color: var(--up); }
.hp-eq-res.is-down { color: var(--down); }
.hp-eq-what { color: var(--ink-2); font-size: 1rem; font-weight: 500; }
.hp-eq-src { font-size: 0.8125rem; color: var(--ink-3); }
.hp-eq-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 32px; font-weight: 680; font-size: 0.9375rem; color: var(--ink); }
.hp-eq-dots { display: flex; gap: 6px; position: absolute; right: 20px; top: 20px; }
.hp-eq-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background 0.3s, transform 0.3s; }
.hp-eq-dot.is-on { background: var(--ink); transform: scale(1.3); }

/* ── Ticker: the catalogue, in motion ───────────────────── */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 52s linear infinite; }
.ticker-list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-list li { display: flex; align-items: center; gap: 9px; padding: 0 26px; white-space: nowrap; color: var(--ink-2); font-size: 0.9375rem; }
.ticker-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ring); flex: none; }
.ticker-list li strong { color: var(--ink); font-weight: 760; font-variant-numeric: proportional-nums; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── The Pairing Lab ────────────────────────────────────── */
.hp-lab { scroll-margin-top: var(--head-h); }
.lab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.lab-controls { min-width: 0; }
.lab-label { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 680; font-size: 1rem; letter-spacing: -0.01em; }
.lab-step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ring); color: var(--canvas); font-size: 0.8125rem; font-weight: 780; flex: none; }
.lab-bases-scroll { margin: 0 calc(-1 * var(--gutter)) 22px; padding: 4px var(--gutter); min-width: 0; max-width: calc(100% + 2 * var(--gutter)); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lab-bases-scroll::-webkit-scrollbar { display: none; }
.lab-bases { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; width: max-content; }
.lab-base { appearance: none; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; width: 100px; min-height: 118px; padding: 12px 6px 11px; border-radius: 20px; background: var(--raise); border: 1.5px solid var(--line); color: var(--ink-2); cursor: pointer; scroll-snap-align: start; font-size: 0.9375rem; font-weight: 660; letter-spacing: -0.01em; transition: transform 0.3s var(--ease), border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.3s; }
.lab-base:hover { border-color: var(--line-strong); color: var(--ink); }
.lab-base:hover .lab-base-img { transform: translateY(-3px) scale(1.04); }
.lab-base[aria-checked="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 30px -16px rgba(245, 243, 238, 0.45); }
.lab-base-img { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.45)); transition: transform 0.4s var(--ease); }
.lab-base[aria-checked="true"] .lab-base-img { filter: drop-shadow(0 6px 7px rgba(0, 0, 0, 0.3)); }
.lab-partners { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.lab-chip { appearance: none; font: inherit; display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 18px 0 8px; border-radius: 999px; background: transparent; border: 1.5px solid var(--line-strong); color: var(--ink-2); font-size: 1rem; font-weight: 620; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.2s var(--ease); }
.lab-chip:hover { color: var(--ink); border-color: rgba(245, 243, 238, 0.45); }
.lab-chip:active { transform: scale(0.97); }
.lab-chip[aria-checked="true"] { color: var(--canvas); background: var(--ink); border-color: var(--ink); }
.lab-chip-img, .lab-chip-none { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ink); padding: 3px; object-fit: contain; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35); }
.lab-chip-none { background: transparent; border: 1.5px dashed var(--line-strong); box-shadow: none; }
.lab-chip[aria-checked="true"] .lab-chip-img { background: var(--canvas); }
.lab-chip[aria-checked="true"] .lab-chip-none { border-color: rgba(11, 14, 12, 0.45); }
.lab-chip.is-seen::after { content: ""; width: 7px; height: 7px; margin-left: -2px; border-radius: 50%; background: var(--flat); flex: none; }
.lab-chip.is-seen.is-up::after { background: var(--up); }
.lab-chip.is-seen.is-down::after { background: var(--down); }
.lab-chip.is-seen[aria-checked="true"]::after { background: var(--canvas); }
.lab-progress { display: flex; flex-direction: column; gap: 10px; }
.lab-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.lab-dot { width: 18px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: background 0.3s, transform 0.3s var(--ease); }
.lab-dot.is-on { background: var(--ring); }
.lab-dot.is-new { animation: dotPop 0.5s var(--ease); }
@keyframes dotPop { 0% { transform: scaleY(2.2); } 100% { transform: none; } }
.lab-progress-text { margin: 0; }

.lab-stage { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(18px, 3vw, 32px); background: var(--raise); border: 1px solid var(--line); --stage-glow: var(--indigo); }
.lab-stage::before { content: ""; position: absolute; left: 50%; top: 0; width: 120%; height: 60%; transform: translate(-50%, -45%); background: radial-gradient(closest-side, var(--stage-glow), transparent 72%); opacity: 0.26; pointer-events: none; transition: opacity 0.6s; }
.lab-stage.is-up { --stage-glow: var(--up); }
.lab-stage.is-down { --stage-glow: var(--down); }
.lab-stage.is-flat { --stage-glow: var(--flat); }
.lab-stage.is-alone { --stage-glow: var(--indigo); }
/* The plate scene: the base food sits on a white plate; a partner flies in from the chips, overshoots
   and settles beside it while its shadow tightens, like the app's Plate Lab. */
.lab-scene { display: grid; gap: 8px; justify-items: center; }
.lab-plate { position: relative; width: min(76vw, 300px); aspect-ratio: 1; margin: 0 auto; }
.lab-plate-img { width: 100%; height: 100%; filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.6)); }
.lab-food { position: absolute; left: 23%; top: 23%; width: 54%; height: 54%; transition: transform 0.6s var(--ease), opacity 0.35s ease, visibility 0s linear 0.5s; }
.lab-food img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 9px 10px rgba(0, 0, 0, 0.42)); }
.lab-plate.has-partner .lab-food.is-base { transform: translate(-30%, 7%) scale(0.92); }
.lab-food.is-partner { transform: translate(31%, -9%) scale(0.88); }
.lab-plate.has-partner .lab-food.is-partner { transition-delay: 0s; }
.lab-plate:not(.has-partner) .lab-food.is-partner { opacity: 0; visibility: hidden; transform: translate(44%, -48%) scale(0.6); }
.lab-food.is-land { animation: labLand 0.95s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.lab-food.is-land img { animation: labShadow 0.95s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
@keyframes labLand {
  0% { transform: translate(90%, -118%) scale(0.42) rotate(-20deg); opacity: 0; }
  18% { opacity: 1; }
  60% { transform: translate(31%, -3%) scale(1.02) rotate(4deg); }
  80% { transform: translate(31%, -12%) scale(0.86) rotate(-1deg); }
  100% { transform: translate(31%, -9%) scale(0.88) rotate(0); }
}
@keyframes labShadow {
  0% { filter: drop-shadow(0 56px 36px rgba(0, 0, 0, 0)); }
  55% { filter: drop-shadow(0 30px 26px rgba(0, 0, 0, 0.26)); }
  100% { filter: drop-shadow(0 9px 10px rgba(0, 0, 0, 0.42)); }
}
.lab-food.is-place { animation: labPlace 0.65s var(--ease) backwards; }
.lab-food.is-place img { animation: labPlaceShadow 0.65s var(--ease) backwards; }
@keyframes labPlace { 0% { transform: translateY(-40%) scale(0.6); opacity: 0; } 70% { transform: translateY(3%) scale(1.02); opacity: 1; } 100% { transform: none; } }
@keyframes labPlaceShadow { 0% { filter: drop-shadow(0 40px 30px rgba(0, 0, 0, 0)); } 100% { filter: drop-shadow(0 9px 10px rgba(0, 0, 0, 0.42)); } }
.lab-ripple { position: absolute; left: 50%; top: 50%; width: 40%; height: 40%; margin: -20% 0 0 -20%; border-radius: 50%; border: 3px solid var(--stage-glow); opacity: 0; transform: translate(31%, -9%) scale(0.5); pointer-events: none; }
.lab-ripple.is-go { animation: ripple 0.8s var(--ease) 0.52s forwards; }
@keyframes ripple { 0% { opacity: 0.75; transform: translate(31%, -9%) scale(0.5); } 100% { opacity: 0; transform: translate(31%, -9%) scale(1.8); } }

.lab-gauge { position: relative; width: min(100%, 272px); margin: 0 auto; padding-bottom: 34px; }
.lab-gauge-svg { width: 100%; height: auto; overflow: visible; }
.lab-gauge-track { stroke: rgba(245, 243, 238, 0.1); }
.lab-gauge-fill { transition: stroke-dashoffset 1.1s var(--ease), stroke 0.4s; }
.lab-stage.is-up .lab-gauge-fill { stroke: var(--up); }
.lab-stage.is-down .lab-gauge-fill { stroke: var(--down); }
.lab-stage.is-flat .lab-gauge-fill { stroke: var(--flat); }
.lab-gauge-tick { fill: var(--ink); }
.lab-gauge-tick-label { fill: var(--ink-3); font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.lab-stat-wrap { position: absolute; left: 0; right: 0; top: 42%; text-align: center; padding: 0 26px; }
.lab-stat { margin: 0; font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: proportional-nums; transition: color 0.3s; }
.lab-stat .lab-num { display: inline-block; text-align: center; }
.lab-stat.is-pop { animation: statPop 0.6s var(--ease); }
@keyframes statPop { 0% { transform: scale(0.85); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
.lab-stat-label { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.3; color: var(--ink-2); }

.lab-result { margin-top: 14px; }
.lab-result.is-swap > * { animation: labSwap 0.55s var(--ease) both; }
.lab-result.is-swap > :nth-child(3) { animation-delay: 0.05s; }
.lab-result.is-swap > :nth-child(4) { animation-delay: 0.1s; }
.lab-result.is-swap > :nth-child(5) { animation-delay: 0.15s; }
.lab-result.is-swap > :nth-child(6) { animation-delay: 0.2s; }
.lab-result.is-swap > :nth-child(7) { animation-delay: 0.25s; }
@media (min-width: 700px) {
  .lab-scene { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; }
  .lab-plate { width: 300px; }
  .lab-gauge { width: 100%; max-width: 300px; }
  .lab-stat { font-size: clamp(1.75rem, 1.1rem + 1.4vw, 2.25rem); white-space: nowrap; }
  .lab-stat-wrap { padding: 0 14px; }
  .lab-result { margin-top: 22px; }
}
@keyframes labSwap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lab-dir { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 0.9375rem; font-weight: 700; color: var(--ink-2); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.lab-dir-ico { width: 18px; height: 18px; flex: none; }
.lab-stage.is-up .lab-dir { color: var(--up); border-color: rgba(79, 169, 122, 0.5); background: rgba(79, 169, 122, 0.1); }
.lab-stage.is-down .lab-dir { color: var(--down); border-color: rgba(242, 122, 138, 0.5); background: rgba(242, 122, 138, 0.1); }
.lab-stage.is-flat .lab-dir { color: var(--ink); }
.lab-headline { font-size: clamp(1.375rem, 1.15rem + 1.1vw, 1.75rem); font-weight: 760; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 10px; }
.lab-body { color: var(--ink-2); margin: 0 0 14px; max-width: 54ch; }
.lab-tip { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(245, 243, 238, 0.05); border: 1px solid var(--line); color: var(--ink); font-weight: 560; }
.lab-tip-k, .lab-src-k { flex: none; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 740; color: var(--copper); padding-top: 3px; }
.lab-src { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: 0.875rem; color: var(--ink-3); }
.lab-src a { color: var(--ink-2); padding: 10px 0; margin: -10px 0; min-height: 44px; }
.lab-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.lab-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 680; text-decoration: none; color: var(--ink); }
.lab-link:hover { color: var(--copper); }
.lab-link.is-quiet { color: var(--ink-2); font-weight: 540; text-decoration: underline; }

.lab-cta { margin-top: clamp(30px, 5vw, 56px); padding: clamp(22px, 3vw, 32px); border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(240, 161, 94, 0.1), rgba(124, 131, 255, 0.1)); display: grid; gap: 18px; }
.lab-cta-text { margin: 0; font-size: var(--step-1); line-height: 1.4; max-width: 44ch; text-wrap: pretty; }
.lab-cta-text strong { font-weight: 780; }

@media (min-width: 960px) {
  .lab { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  .lab-controls { position: sticky; top: calc(var(--head-h) + 20px); }
  .lab-bases-scroll { margin: 0 0 24px; padding: 4px 0; overflow: visible; }
  .lab-bases { width: auto; }
  .lab-base { flex: 1 1 0; width: auto; min-width: 84px; }
  .lab-cta { grid-template-columns: 1fr auto; align-items: center; }
  .lab-plate { width: 290px; }
}

/* ── The math ───────────────────────────────────────────── */
.hp-math { background: linear-gradient(180deg, transparent, rgba(124, 131, 255, 0.05) 55%, transparent); }
.math-ladder { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: none; }
.math-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.math-n { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.5rem); font-weight: 780; letter-spacing: -0.03em; line-height: 1; }
.math-k { color: var(--ink-2); font-size: 1rem; }
.math-big { position: relative; overflow: hidden; margin-top: clamp(32px, 5vw, 56px); padding: clamp(28px, 4vw, 52px) clamp(16px, 3vw, 32px); border-radius: 28px; border: 1px solid var(--line); background: var(--raise); text-align: center; display: flex; flex-direction: column; align-items: center; }
.math-big::before { content: ""; position: absolute; left: 50%; top: 0; width: 90%; height: 70%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(124, 131, 255, 0.28), transparent 72%); pointer-events: none; }
.math-big > * { position: relative; }
.math-big-k { margin: 0 0 14px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.math-big-n { margin: 0; font-size: clamp(1.9rem, 0.9rem + 4.8vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.math-big-sub { margin: 18px auto 0; max-width: 48ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; text-wrap: pretty; }
.math-big .cta-row { margin-top: 24px; justify-content: center; }

/* Odometer digits: each column is a stack of 0 to 9 that rolls into place */
.odo { display: inline-flex; flex-wrap: wrap; justify-content: center; column-gap: 0.1em; row-gap: 0.08em; line-height: 1; vertical-align: bottom; max-width: 100%; overflow-wrap: anywhere; }
.math-row .odo { justify-content: flex-start; }
.odo-g { display: inline-flex; }
/* Each cell is as wide as its final digit in proportional figures (site.js measures the font), so the
   settled number is identical to plain text; while rolling, wider digits may bleed 0.1em sideways. */
.odo-d { display: inline-block; height: 1.1em; width: 0.5em; clip-path: inset(0 -0.1em); line-height: 1.1; text-align: center; font-variant-numeric: proportional-nums; }
.odo-col { display: flex; flex-direction: column; transition: transform 1.4s cubic-bezier(0.2, 0.9, 0.2, 1); }
.odo-col span { display: block; height: 1.1em; line-height: 1.1; }
.odo-sep { display: inline-block; line-height: 1.1; font-variant-numeric: proportional-nums; }

/* ── How it works ───────────────────────────────────────── */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.how-step { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--raise); border: 1px solid var(--line); }
.how-visual { display: flex; align-items: center; justify-content: center; min-height: 212px; padding: 22px 18px; background: linear-gradient(180deg, rgba(245, 243, 238, 0.035), transparent); border-bottom: 1px solid var(--line); }
.how-text { padding: 20px 22px 24px; }
.how-n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: var(--ring); color: var(--canvas); font-weight: 780; font-size: 0.875rem; }
.how-text h3 { font-size: 1.25rem; font-weight: 740; letter-spacing: -0.025em; margin: 0 0 8px; }
.how-text p { color: var(--ink-2); margin: 0; text-wrap: pretty; }
.how-note { margin: 14px 0 0; }

.how-plate { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; max-width: 300px; }
.how-pill img { width: 24px; height: 24px; margin-left: -6px; border-radius: 50%; background: var(--ink); padding: 2px; object-fit: contain; }
.how-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--raise-2); border: 1px solid var(--line-strong); font-weight: 640; font-size: 0.9375rem; letter-spacing: -0.01em; transition: transform 0.6s var(--ease), opacity 0.4s ease; }
.how-pill.is-warn { border-color: rgba(242, 122, 138, 0.6); color: var(--down); }
.how-pill.is-add { border-style: dashed; color: var(--ink-3); background: transparent; }
.how-pill.is-add svg { width: 16px; height: 16px; }
html.js .how-step:not(.is-in) .how-pill { opacity: 0; transform: scale(0.6) translateY(10px); }
.how-pill[data-n="2"] { transition-delay: 0.12s; }
.how-pill[data-n="3"] { transition-delay: 0.24s; }
.how-pill[data-n="4"] { transition-delay: 0.36s; }
.how-pill[data-n="5"] { transition-delay: 0.48s; }
.how-pill[data-n="6"] { transition-delay: 0.62s; }

.how-card { width: 100%; max-width: 330px; padding: 16px; border-radius: 18px; background: var(--raise-2); border: 1px solid var(--line); }
.how-score-head { display: flex; align-items: center; gap: 16px; }
.how-grade { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.how-grade-letter { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ring); color: var(--canvas); font-size: 1.75rem; font-weight: 800; transition: transform 0.7s var(--ease) 0.9s, opacity 0.4s ease 0.9s; }
html.js .how-step:not(.is-in) .how-grade-letter { transform: scale(0.5) rotate(-8deg); opacity: 0; }
.how-grade-k { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 700; }
.how-bars { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.how-bar { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: center; font-size: 0.8125rem; font-weight: 620; color: var(--ink-2); }
.how-bar-track { display: block; height: 8px; border-radius: 4px; background: rgba(245, 243, 238, 0.1); overflow: hidden; }
.how-bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--ring); transform-origin: left center; transition: transform 1s var(--ease) 0.2s; }
.how-bar-fill.is-iron { transform: scaleX(0.38); }
.how-bar-fill.is-fat { transform: scaleX(0.82); transition-delay: 0.35s; }
.how-bar-fill.is-meal { transform: scaleX(0.6); transition-delay: 0.5s; }
html.js .how-step:not(.is-in) .how-bar-fill { transform: scaleX(0); }
.how-reasons { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; }
.how-reasons li { display: flex; align-items: center; gap: 8px; transition: opacity 0.5s ease, transform 0.5s var(--ease); }
.how-reasons li > span:nth-child(2) { flex: 1; min-width: 0; }
.how-reasons li:nth-child(1) { transition-delay: 1.1s; }
.how-reasons li:nth-child(2) { transition-delay: 1.25s; }
.how-reasons li:nth-child(3) { transition-delay: 1.4s; }
html.js .how-step:not(.is-in) .how-reasons li { opacity: 0; transform: translateX(-8px); }
.how-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; }
.how-dot svg { width: 14px; height: 14px; }
.how-dot.is-up { background: rgba(79, 169, 122, 0.18); color: var(--up); }
.how-dot.is-down { background: rgba(242, 122, 138, 0.18); color: var(--down); }
.how-src { flex: none; font-size: 0.6875rem; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-3); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.15em; }

.how-change { display: flex; flex-direction: column; gap: 10px; }
.how-change-k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper); font-weight: 740; }
.how-change-text { margin: 0; font-weight: 660; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; }
.how-change-grades { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.how-change-grades .how-grade-letter { width: 48px; height: 48px; font-size: 1.5rem; border-radius: 14px; transition-delay: 0.3s; }
.how-change-grades .is-from { background: rgba(245, 243, 238, 0.12); color: var(--ink-2); }
.how-change-grades .is-to { transition-delay: 1s; }
.how-change-arrow { width: 26px; height: 26px; color: var(--ink-3); transition: opacity 0.4s ease 0.7s; }
html.js .how-step:not(.is-in) .how-change-arrow { opacity: 0; }

.how-more-title { margin: clamp(32px, 5vw, 56px) 0 10px; font-size: 1.0625rem; font-weight: 640; color: var(--ink-2); letter-spacing: 0; }
.how-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.how-more li { display: flex; flex-direction: column; gap: 3px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.how-more strong { font-weight: 700; letter-spacing: -0.01em; }
.how-more span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }

@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .how-visual { min-height: 248px; }
}

/* ── The evidence ───────────────────────────────────────── */
.sci-counts { list-style: none; margin: 0 0 clamp(32px, 5vw, 56px); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sci-counts li { display: flex; flex-direction: column; gap: 5px; padding: 18px 16px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); }
.sci-count { display: inline-block; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: var(--ring); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sci-count-k { font-size: 0.875rem; line-height: 1.3; color: var(--ink-2); }
.sci-wall-title { margin: 0 0 14px; font-size: 1.0625rem; font-weight: 640; color: var(--ink-2); letter-spacing: 0; }
.sci-wall { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sci-item { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 6px 14px; align-items: start; padding: 16px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); }
.sci-stat { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: proportional-nums; }
.sci-stat.is-up { color: var(--up); }
.sci-stat.is-down { color: var(--down); }
.sci-stat.is-flat { color: var(--ink-2); }
.sci-ico { width: 20px; height: 20px; }
.sci-text { margin: 0; color: var(--ink); font-size: 0.9688rem; line-height: 1.45; text-wrap: pretty; }
.sci-src { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 -12px; padding: 8px 0; justify-self: start; font-size: 0.8125rem; color: var(--ink-3); text-decoration-color: var(--line-strong); }
.sci-item.is-myth { grid-template-columns: 1fr; background: linear-gradient(var(--raise-2), var(--raise-2)) padding-box, var(--ring) border-box; border: 1.5px solid transparent; }
.sci-item.is-myth .sci-stat { grid-row: auto; }
.sci-stat.is-myth { color: var(--ink); font-size: 1.75rem; gap: 8px; }
.sci-myth-tag { display: inline-block; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 780; color: var(--canvas); background: var(--copper); padding: 4px 9px; border-radius: 999px; }
.sci-strike { position: relative; display: inline-block; line-height: 1.2; padding: 0 0.04em; }
.sci-strike::after { content: ""; position: absolute; left: 0; right: 0; top: 54%; height: 3px; border-radius: 2px; background: var(--down); transform: translateY(-50%) scaleX(1); transform-origin: left center; transition: transform 0.6s var(--ease) 0.5s; }
html.js .sci-item:not(.is-in) .sci-strike::after { transform: translateY(-50%) scaleX(0); }
.sci-foot { display: grid; gap: 16px; align-items: center; margin-top: clamp(28px, 4vw, 44px); }
.sci-foot p { margin: 0; color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; max-width: 56ch; text-wrap: pretty; }
@media (min-width: 720px) {
  .sci-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .sci-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sci-item.is-myth { grid-column: 1 / -1; grid-template-columns: minmax(150px, auto) 1fr; }
  .sci-item.is-myth .sci-stat { grid-row: 1 / 3; }
}
@media (min-width: 860px) { .sci-foot { grid-template-columns: 1fr auto; } }
@media (min-width: 1100px) {
  .sci-counts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sci-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Built for your goal ────────────────────────────────── */
.goals-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.goal-card { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 44px 16px 16px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform 0.3s var(--ease), border-color 0.2s, background 0.2s; }
.goal-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--raise-2); }
.goal-k { font-weight: 740; letter-spacing: -0.02em; font-size: 1.0625rem; }
.goal-d { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; }
.goal-go { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; color: var(--ink-3); transition: color 0.2s, transform 0.3s var(--ease); }
.goal-go svg { width: 100%; height: 100%; }
.goal-card:hover .goal-go { color: var(--copper); transform: translateX(3px); }
.goals-more { margin: 22px 0 0; color: var(--ink-2); line-height: 2; }
.goals-more a { display: inline-block; padding: 8px 8px; margin: 0 -6px; min-height: 44px; }
@media (min-width: 480px) { .goals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .goals-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }

/* ── Pricing ────────────────────────────────────────────── */
.price-grid { display: grid; gap: 18px; max-width: 920px; }
.price-card { position: relative; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--raise); border: 1px solid var(--line); }
.price-card.is-best { background: linear-gradient(var(--raise-2), var(--raise-2)) padding-box, var(--ring) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 80px -44px rgba(199, 122, 160, 0.6); }
.price-card h3 { font-size: 1rem; font-weight: 640; letter-spacing: 0; color: var(--ink-2); }
.price-badge { position: absolute; top: -13px; left: 22px; padding: 5px 12px; border-radius: 999px; background: var(--copper); color: var(--canvas); font-weight: 740; font-size: 0.8125rem; }
.price-amt { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 8px; }
.price-big { font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.price-per { color: var(--ink-2); font-size: 1.0625rem; }
.price-term { font-weight: 660; margin: 0 0 4px; }
.price-note { color: var(--ink-2); margin: 0 0 18px; }
.price-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-check { width: 18px; height: 18px; flex: none; color: var(--up); margin-top: 2px; }
.price-fine { margin-top: 22px; max-width: 72ch; }
@media (min-width: 720px) { .price-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }

/* ── FAQ (generic: library pages may reuse .faq) ────────── */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; display: flex; align-items: center; min-height: 64px; padding: 18px 48px 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.125rem; font-weight: 660; letter-spacing: -0.015em; line-height: 1.35; margin: 0; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-75%) rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq details[open] .answer { animation: faqIn 0.35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ── Closing band ───────────────────────────────────────── */
.hp-close { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); text-align: center; }
.hp-close-bloom { position: absolute; left: 50%; top: 50%; width: 92vmax; height: 62vmax; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(199, 122, 160, 0.22), rgba(124, 131, 255, 0.1) 46%, transparent 72%); pointer-events: none; animation: closeBloom 14s ease-in-out infinite alternate; }
@keyframes closeBloom { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.12); } }
.hp-close-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hp-close h2 { font-size: clamp(2.25rem, 1.5rem + 3.8vw, 4.5rem); font-weight: 780; letter-spacing: -0.045em; line-height: 0.98; max-width: 14ch; }
.hp-close .lede { margin: 18px auto 0; text-align: center; }
.hp-close .cta-row { margin-top: 28px; justify-content: center; }
.hp-close-note { margin: 14px auto 0; max-width: 50ch; }

/* ── Footer ─────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 calc(56px + env(safe-area-inset-bottom)); font-size: 0.9375rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 0; }
.foot-grid a:not(.btn):not(.brand) { display: inline-block; padding: 10px 8px; margin-left: -8px; min-height: 44px; line-height: 24px; color: var(--ink-2); text-decoration: none; }
.foot-grid a:not(.btn):not(.brand):hover { color: var(--ink); }
.foot-grid h2 { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; font-weight: 700; }
.foot-blurb { margin: 14px 0 16px; max-width: 32ch; }
.foot-legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--step--1); max-width: 92ch; }
.foot-legal p { margin: 0 0 8px; }
.foot-legal a { color: var(--ink-2); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px 24px; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 380px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── Sticky phone CTA ───────────────────────────────────── */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 14, 12, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s 0.45s; }
.sticky-cta.is-on { transform: none; visibility: visible; transition-delay: 0s; }
body.menu-open .sticky-cta { visibility: hidden; transform: translateY(110%); }
.sticky-cta-row { display: flex; align-items: center; gap: 12px; max-width: var(--wrap); margin: 0 auto; }
.sticky-cta-text { display: flex; flex-direction: column; flex: 1; min-width: 0; margin: 0; font-size: 0.8125rem; line-height: 1.3; color: var(--ink-2); }
.sticky-cta-text strong { color: var(--ink); font-size: 0.9375rem; font-weight: 700; }
.sticky-cta .btn { flex: none; min-height: 48px; padding: 0 18px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
@media (max-width: 360px) { .sticky-cta-text strong { font-size: 0.875rem; } .sticky-cta-text { font-size: 0.75rem; } .sticky-cta .btn { padding: 0 14px; } }

/* ── Legal pages ────────────────────────────────────────── */
.doc-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.doc-head h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem); max-width: none; }
.doc-head p { color: var(--ink-2); margin: 16px 0 0; max-width: 60ch; }
.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-bottom: 96px; border-top: 1px solid var(--line); padding-top: 40px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 0.9375rem; }
.toc h2 { font-size: 0.9375rem; letter-spacing: 0; margin-bottom: 12px; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; display: grid; grid-template-columns: 1.75rem 1fr; }
.toc li::before { content: counter(toc); color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 10px; }
.toc a { display: inline-block; padding: 10px 0; min-height: 44px; line-height: 24px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.legal { max-width: var(--measure); counter-reset: sec; }
.legal section { counter-increment: sec; padding-bottom: 12px; scroll-margin-top: 92px; }
.legal h2 { font-size: var(--step-2); letter-spacing: -0.02em; margin: 40px 0 14px; display: grid; grid-template-columns: 2.25rem 1fr; }
.legal section:first-child h2 { margin-top: 0; }
.legal h2::before { content: counter(sec); color: var(--copper); font-variant-numeric: tabular-nums; }
.legal h3 { font-size: 1.0625rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal .callout { border-left: 2px solid var(--copper); padding: 4px 0 4px 18px; margin: 0 0 1.2em; }
.legal .callout p { color: var(--ink); }
.legal .caps { text-transform: none; }
.tbl { width: 100%; border-collapse: collapse; margin: 6px 0 1.4em; font-size: 0.9688rem; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); }
.tbl th { color: var(--ink); font-weight: 600; }
.tbl td { color: var(--ink-2); }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
}

/* 404 */
.lost { padding: 18vh 0 22vh; }
.lost h1 { max-width: 14ch; }
.lost p { margin-top: 20px; color: var(--ink-2); }

@media (max-width: 420px) {
  :root { --gutter: 16px; }
}

/* ── Reduced motion: every animated state has its static equivalent ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .hp-hero-bloom, .hp-close-bloom { animation: none; }
  .ticker-track { animation: none; width: auto; flex-wrap: wrap; }
  .ticker-list { flex-wrap: wrap; row-gap: 6px; }
  .ticker-list[aria-hidden] { display: none; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .hp-eq-item { transition: none; }
  .lab-food, .lab-base-img { transition: none; }
  .lab-food.is-land, .lab-food.is-land img, .lab-food.is-place, .lab-food.is-place img { animation: none; }
  .lab-gauge-fill { transition: none; }
  .lab-ripple.is-go { animation: none; opacity: 0; }
  .lab-stat.is-pop { animation: none; }
  .lab-result.is-swap > * { animation: none; }
  .odo-col { transition: none; }
  html.js .how-step:not(.is-in) .how-pill, html.js .how-step:not(.is-in) .how-grade-letter, html.js .how-step:not(.is-in) .how-reasons li, html.js .how-step:not(.is-in) .how-change-arrow { opacity: 1; transform: none; }
  html.js .how-step:not(.is-in) .how-bar-fill.is-iron { transform: scaleX(0.38); }
  html.js .how-step:not(.is-in) .how-bar-fill.is-fat { transform: scaleX(0.82); }
  html.js .how-step:not(.is-in) .how-bar-fill.is-meal { transform: scaleX(0.6); }
  html.js .sci-item:not(.is-in) .sci-strike::after { transform: translateY(-50%) scaleX(1); }
  .btn-primary::after { display: none; }
}
