/* ============================================================
   design-compare-mcp — landing site
   Visual language adapted from the editorial aesthetic of
   reasonal.co (Archivo + Gabarito, white/cream, soft pastel
   32px cards, huge display type). All copy is original.
   ============================================================ */

:root {
  --paper: #ffffff;
  --cream: #eae4dc;
  --ink: #181d1f;
  --ink-soft: #424647;
  --ink-mute: #6b6f70;
  --black: #000000;
  --line: #e7e2da;

  /* pastel card fills */
  --peach: #fddbce;
  --coral: #fd956d;
  --lav: #d7cef0;
  --blue: #dbe5f0;
  --mint: #d5e2da;
  --pink: #f4e1e1;
  --sand: #f6e7cf;
  --green: #e4eed2;

  --radius-card: 32px;
  --radius-sm: 12px;
  --maxw: 1200px;

  --font-display: "Archivo", -apple-system, system-ui, sans-serif;
  --font-ui: "Gabarito", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lenis smooth scroll (studio-freight/lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(24, 29, 31, 0.06);
  padding: 0.12em 0.38em;
  border-radius: 6px;
}
mark { background: transparent; color: var(--coral); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 24px;
  border-radius: 8px; font-family: var(--font-ui); font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  padding: 10px 20px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: 0 8px 22px rgba(24,29,31,0.22); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn-lg { font-size: 16px; padding: 14px 26px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 24px;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 24px;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-word { font-family: var(--font-ui); font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 5px;
}
.brand-mark span { width: 6px; height: 100%; border-radius: 2px; display: block; }
.brand-mark span:first-child { background: var(--coral); }
.brand-mark span:last-child { background: var(--lav); }

.nav-links { margin-left: auto; display: flex; gap: 4px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  color: var(--ink); padding: 8px 16px; border-radius: 999px;
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: rgba(24,29,31,0.07); }
.nav-cta { margin-left: 8px; }
.nav-cta svg { display: block; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { gap: 12px; }
  .nav-links { margin-left: auto; }
  .nav-cta { margin-left: auto; }
}

/* ---------- layout primitives ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) 24px;
}
.eyebrow {
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 22px;
}
.statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem); line-height: 1.12;
  letter-spacing: -0.02em; margin: 0 0 28px; max-width: 20ch;
}
.statement mark { color: var(--coral); }
.statement em { font-style: italic; color: var(--ink); }
.idea-note {
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.5; color: var(--ink-soft); max-width: 62ch; margin: 0 0 8px;
}
.idea-note + .idea-note { margin-top: 18px; }

/* ---------- hero ---------- */
.hero { padding: 16px 16px 0; }
@media (max-width: 600px) { .hero { padding: 12px 12px 0; } }
.hero-panel {
  max-width: var(--maxw); margin: 0 auto;
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(253,149,109,0.28), transparent 55%),
    radial-gradient(120% 120% at 0% 0%, rgba(215,206,240,0.45), transparent 52%),
    linear-gradient(158deg, #e7eef6 0%, #eae4dc 48%, #f7e8d5 100%);
  border-radius: var(--radius-card);
  padding: clamp(52px, 8vw, 108px) clamp(28px, 6vw, 92px) clamp(56px, 8vw, 108px);
  text-align: left;
}
.hero .eyebrow { text-align: left; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.7rem, 8.8vw, 7.4rem);
  line-height: 1.0; letter-spacing: -0.035em;
  margin: 0 0 30px; max-width: 15ch;
}
.lens-line { display: block; position: relative; }
.lens-base { color: var(--ink); }
/* the "reveal lens": a heatmap-filled copy of the text, revealed inside a
   sweeping band (mask) — like a diff scanner passing over the headline. */
.lens-fill {
  position: absolute; inset: 0; color: transparent;
  background: linear-gradient(100deg, #2878dc 0%, #35b6a8 28%, #e8c341 56%, #fd956d 78%, #dc3c3c 100%);
  -webkit-background-clip: text; background-clip: text;
  --band: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.15) 30%, #000 45%, #000 55%, rgba(0,0,0,.15) 70%, transparent 100%);
  -webkit-mask-image: var(--band); mask-image: var(--band);
  -webkit-mask-size: 320% 100%; mask-size: 320% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 150% 0; mask-position: 150% 0;
  animation: lensSweep 5.2s var(--ease) infinite;
}
.lens-line:nth-child(2) .lens-fill { animation-delay: .18s; }
.lens-line:nth-child(3) .lens-fill { animation-delay: .36s; }
@keyframes lensSweep {
  0%   { -webkit-mask-position: 155% 0; mask-position: 155% 0; }
  100% { -webkit-mask-position: -55% 0; mask-position: -55% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lens-fill { animation: none; -webkit-mask-position: 42% 0; mask-position: 42% 0; }
}
.hero-sub {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.45;
  color: var(--ink-soft); max-width: 56ch; margin: 0 0 34px;
}
.hero-sub em { font-style: italic; color: var(--ink); }
.hero-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }

/* hero visual */
.hero-visual {
  margin: 16px auto 0; max-width: var(--maxw);
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: stretch;
  text-align: left; padding: 0;
}
.hv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hv-card {
  margin: 0; background: var(--cream); border-radius: 22px; padding: 16px;
  border: 1px solid var(--line);
}
.hv-label {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute);
  margin-bottom: 12px; letter-spacing: .02em;
}
.hv-img {
  border-radius: 12px; overflow: hidden; height: 190px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.hv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the candidate's colors "drift" — the exact thing the color dimension catches */
.hv-shift img { filter: hue-rotate(-58deg) saturate(1.28) brightness(1.02); }
.hv-score {
  background: var(--ink); color: #fff; border-radius: 22px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.hv-score-ring {
  --pct: 82; width: 118px; height: 118px; border-radius: 50%; margin: 0 auto;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--coral) calc(var(--pct) * 1%), rgba(255,255,255,0.14) 0);
}
.hv-score-ring::after {
  content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--ink);
}
.hv-score-num { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 30px; }
.hv-score-cap { position: relative; font-family: var(--font-mono); font-size: 11px; color: #b9bdbe; text-align: center; }
.hv-subs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hv-subs li { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; color: #c7cbcc; }
.hv-subs li b { color: #fff; }
.hv-subs li.warn b { color: var(--coral); }

@media (max-width: 780px) {
  .hero-visual { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hv-pair { grid-template-columns: 1fr; }
}

/* ---------- feature cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.card {
  border-radius: var(--radius-card); padding: 34px 30px 36px;
  min-height: 260px; display: flex; flex-direction: column;
}
.card-peach { background: var(--peach); }
.card-lav { background: var(--lav); }
.card-mint { background: var(--mint); }
.card-blue { background: var(--blue); }
.card-sand { background: var(--sand); }
.card-pink { background: var(--pink); }
.card-tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  text-transform: lowercase; color: var(--ink); opacity: .55; margin-bottom: auto;
}
.card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.12; letter-spacing: -0.02em;
  margin: 26px 0 12px;
}
.card p { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.45; color: var(--ink-soft); margin: 0; }
.card code { background: rgba(24,29,31,0.1); }
@media (max-width: 940px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- idea flow ---------- */
.idea-flow {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 40px 0 44px;
}
.flow-node {
  background: var(--cream); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  text-align: center; line-height: 1.3;
}
.flow-node small { display: block; font-weight: 400; color: var(--ink-mute); font-size: 12px; margin-top: 4px; }
.flow-engine { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow-engine small { color: #b9bdbe; }
.flow-arrow { font-size: 26px; color: var(--ink-mute); }
.flow-out { display: flex; flex-direction: column; gap: 10px; }
.flow-score { background: var(--coral); border-color: var(--coral); }
.flow-list { background: var(--lav); border-color: var(--lav); }
@media (max-width: 640px) { .flow-arrow { transform: rotate(90deg); } .idea-flow { flex-direction: column; align-items: stretch; } .flow-out { flex-direction: row; } }

/* ---------- built for the loop ---------- */
.loop-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; margin-top: 40px; }
.loop-wrap .code-block code { color: #eef0f0; }
.loop-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 18px; align-content: start; }
.loop-points li { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.5; color: var(--ink-soft); padding-left: 22px; position: relative; }
.loop-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 3px; background: var(--coral); }
.loop-points li b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .loop-wrap { grid-template-columns: 1fr; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; margin: 26px 0 52px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }
.pill {
  flex: none; background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-family: var(--font-ui); font-weight: 500; font-size: 15px;
  color: var(--ink); white-space: nowrap;
}

/* ---------- dimension grid ---------- */
.dim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dim {
  border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px;
  background: #fff; display: flex; flex-direction: column;
}
.dim-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.dim-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: 0; letter-spacing: -0.01em; }
.dim-weight { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.dim-what { font-family: var(--font-display); font-size: 1rem; line-height: 1.45; color: var(--ink-soft); margin: 0 0 16px; }
.dim-weak { font-size: 13.5px; color: var(--ink-mute); margin: auto 0 0; line-height: 1.4; }
.dim-weak span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--coral); display: block; margin-bottom: 3px; }
.dim-agg { background: var(--ink); color: #fff; border-color: var(--ink); }
.dim-agg .dim-what { color: #d4d7d8; }
.dim-agg .dim-weight { color: #b9bdbe; }
.dim-agg code { background: rgba(255,255,255,0.14); color: #fff; }
.dim-formula { font-family: var(--font-mono); font-size: 12.5px; margin: auto 0 0; color: #fff; }
@media (max-width: 900px) { .dim-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dim-grid { grid-template-columns: 1fr; } }

/* ---------- section variants ---------- */
.section-cream { max-width: none; background: var(--cream); }
.section-cream > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-dark { max-width: none; background: var(--ink); color: #fff; }
.section-dark > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-dark .eyebrow { color: #b9bdbe; }
.section-dark .idea-note { color: #c7cbcc; }
.section-dark .idea-note strong { color: #fff; }
.section-dark code { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- interactive demos ---------- */
.demos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 44px; align-items: start; }
@media (max-width: 900px) { .demos { grid-template-columns: 1fr; } }
.demo { background: #fff; border-radius: 24px; padding: 28px; border: 1px solid var(--line); }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.demo-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 0; letter-spacing: -0.01em; }
.demo-desc { font-family: var(--font-display); font-size: 0.98rem; color: var(--ink-soft); line-height: 1.45; margin: 0 0 22px; }
.demo-presets { display: flex; gap: 6px; }
.chip-btn {
  font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.sliders { display: grid; gap: 16px; margin-bottom: 26px; }
.slider-row { display: grid; grid-template-columns: 92px 1fr 46px; align-items: center; gap: 14px; }
.slider-row label { font-family: var(--font-ui); font-weight: 600; font-size: 14px; }
.slider-row .wt { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); display: block; font-weight: 400; }
.slider-row output { font-family: var(--font-mono); font-size: 14px; text-align: right; }
.slider-row.dim-off { opacity: .38; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: var(--line); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; cursor: pointer;
}

.demo-out { display: flex; align-items: center; gap: 22px; border-top: 1px solid var(--line); padding-top: 22px; flex-wrap: wrap; }
.agg-result { text-align: left; }
.agg-big { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; letter-spacing: -0.03em; }
.agg-cap { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); margin-top: 4px; }
.agg-compare { margin-left: auto; text-align: right; }
.agg-vs { font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); }
.agg-vs b { color: var(--ink); font-size: 18px; margin-left: 8px; }
.agg-note { font-size: 12.5px; color: var(--coral); margin-top: 6px; max-width: 26ch; margin-left: auto; }

/* color demo */
.color-pick { display: flex; gap: 26px; margin-bottom: 22px; }
.color-pick label { font-family: var(--font-ui); font-weight: 600; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.color-pick input[type="color"] { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; padding: 3px; }
.color-pick code { align-self: flex-start; }
.color-read { border-top: 1px solid var(--line); padding-top: 20px; }
.color-swatches { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.sw { width: 64px; height: 64px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); display: block; }
.sw-arrow { color: var(--ink-mute); font-size: 22px; }
.color-metrics { display: flex; gap: 34px; margin-bottom: 18px; }
.color-metrics span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); display: block; text-transform: uppercase; letter-spacing: .06em; }
.color-metrics b { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; }
.finding {
  background: #fff6f2; border: 1px solid #f6d6c8; border-left: 4px solid var(--coral);
  border-radius: 10px; padding: 14px 16px; font-family: var(--font-mono); font-size: 12.5px;
  line-height: 1.5; color: var(--ink-soft);
}
.finding .f-type { color: var(--coral); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; display: block; margin-bottom: 4px; }
.finding.ok { background: #f2f8f3; border-color: #cfe6d3; border-left-color: #35a35a; }
.finding.ok .f-type { color: #35a35a; }

/* ---------- install ---------- */
.install-steps { display: grid; gap: 16px; margin: 40px 0 28px; }
.code-block { background: var(--ink); border-radius: 16px; overflow: hidden; }
.code-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.code-cap { font-family: var(--font-mono); font-size: 12px; color: #b9bdbe; letter-spacing: .02em; }
.copy-btn {
  font-family: var(--font-mono); font-size: 11px; color: #d4d7d8; background: rgba(255,255,255,0.1);
  border: none; border-radius: 6px; padding: 5px 12px; cursor: pointer; transition: background .15s, color .15s;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }
.copy-btn.copied { background: var(--coral); color: var(--ink); }
.code-block pre { margin: 0; padding: 18px 16px; overflow-x: auto; }
.code-block code { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #eef0f0; background: none; padding: 0; white-space: pre; }

/* ---------- calibration: centered header + stat cards ---------- */
#calibration .eyebrow { text-align: center; }
#calibration .statement { max-width: 30ch; margin-left: auto; margin-right: auto; text-align: center; }
#calibration > .idea-note { max-width: 66ch; margin-left: auto; margin-right: auto; text-align: center; }
.stat { text-align: center; }
.stat b { margin-left: auto; margin-right: auto; }

/* ---------- calibration stats ---------- */
/* margin: 40px auto (not 40px 0) so the grid stays centered in the full-bleed
   dark section on wide screens — 0 left/right would override the centering. */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px auto; }
.stat { border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 26px 24px; }
.stat b { font-family: var(--font-display); font-weight: 700; font-size: 3rem; letter-spacing: -0.03em; display: block; line-height: 1; margin-bottom: 12px; }
.stat span { font-size: 14px; color: #b9bdbe; line-height: 1.45; }
.stat-good { background: rgba(253,149,109,0.14); border-color: rgba(253,149,109,0.4); }
.stat-good b { color: var(--coral); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

.perdim { border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 28px; margin-bottom: 16px; }
.perdim h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 20px; }
.perdim-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.perdim-list li { display: grid; grid-template-columns: 96px 1fr 56px; align-items: center; gap: 14px; }
.perdim-list li span { font-family: var(--font-mono); font-size: 13px; color: #d4d7d8; }
.perdim-list li b { font-family: var(--font-mono); font-size: 14px; text-align: right; color: var(--coral); }
.perdim-list li.neg b { color: #8fb0d6; }
.bar { height: 8px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--v) * 1.4%); background: var(--coral); border-radius: 999px; }
.perdim-list li.neg .bar i { background: #6f93bd; }
.perdim-read { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.5; color: #c7cbcc; margin: 0; }
.perdim-read strong { color: #fff; }

.limits { margin-top: 8px; }
.limits h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 18px; }
.limit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.limit { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 18px 20px; font-size: 14.5px; line-height: 1.5; color: #c7cbcc; }
.limit b { color: #fff; }
@media (max-width: 640px) { .limit-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 46px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-plus::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); }
.faq-body { padding: 0 0 24px; max-width: 68ch; }
.faq-body p { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.faq-body a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- final CTA ---------- */
.cta { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 10vw, 132px) 24px; text-align: center; }
.cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; }
.cta p { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink-soft); margin: 0 0 32px; }
.cta .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--cream); padding: 64px 24px 28px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand p { font-family: var(--font-display); font-size: 1rem; color: var(--ink-soft); line-height: 1.5; max-width: 40ch; margin: 16px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-family: var(--font-ui); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin: 0 0 14px; }
.footer-cols a { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); padding: 5px 0; transition: color .15s; }
.footer-cols a:hover { color: var(--coral); }
.footer-bar { max-width: var(--maxw); margin: 48px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-mute); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- still mode (?still=1): freeze everything for capture ---------- */
.still .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.still .marquee-track { animation: none !important; }
.still .lens-fill { animation: none !important; -webkit-mask-position: 42% 0 !important; mask-position: 42% 0 !important; }
.still * { scroll-behavior: auto !important; }
