/* 3am website. Colours come only from the tokens below. */
:root {
  --yellow: #FFD60A;
  --yellow-deep: #F5C400;
  --ink: #0A0A0A;
  --surface-1: #141414;
  --surface-2: #1E1E1E;
  --line: #2A2A2A;
  --text: #F5F5F0;
  --text-muted: #9A9A93;

  /* Verdicts: product visuals only, always with an icon and a label. */
  --v-consistent: #3DDC97;
  --v-suspicious: #FF8A00;
  --v-forged: #FF4D4D;

  --glow: rgba(255, 214, 10, 0.12);
  --scan: rgba(255, 214, 10, 0.16);
  --spot-fill: rgba(255, 214, 10, 0.14);
  --ink-veil: rgba(10, 10, 10, 0.72);

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-doc: Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section: clamp(88px, 11vw, 152px);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible, .drawer :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: translateY(76px); outline-color: var(--ink); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 850;
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  max-width: 17ch;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 800;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.12rem, 1.6vw, 1.35rem); line-height: 1.45; color: var(--text-muted); max-width: 46ch; margin-top: 24px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover, .btn--yellow:active { background: var(--yellow-deep); }
.btn--outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--ink { background: var(--ink); color: var(--yellow); }
.btn--ink:hover { background: var(--surface-2); }
.btn--outline-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline-ink:hover { background: var(--yellow-deep); }

.textlink {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px;
  color: var(--yellow); font-weight: 600; text-decoration: none;
  background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 0 2px no-repeat;
  transition: background-size 250ms var(--ease-out);
}
.textlink:hover { background-size: 100% 2px; }

.wordmark {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: 1.6rem; letter-spacing: -0.04em; line-height: 1;
  color: var(--yellow); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.wordmark--ink { color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 250ms var(--ease-out), border-color 250ms var(--ease-out);
}
.nav.is-scrolled {
  background: var(--ink-veil);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.nav__links { display: flex; margin-left: auto; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px;
  color: var(--text-muted); text-decoration: none; font-size: 0.94rem; font-weight: 500; white-space: nowrap;
  transition: color 160ms var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 10px;
  background: transparent; border: 1.5px solid var(--line); cursor: pointer; position: relative;
}
.nav__toggle-bars, .nav__toggle-bars::before {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px;
}
.nav__toggle-bars { top: 19px; }
.nav__toggle-bars::before { content: ""; left: 0; right: 0; top: 8px; }

.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--yellow); color: var(--ink);
  display: flex; flex-direction: column; gap: 24px; padding-bottom: 32px; overflow-y: auto;
  opacity: 0; transform: translateY(-12px);
  transition: opacity 250ms var(--ease-out), transform 300ms var(--ease-out);
}
.drawer.is-open { opacity: 1; transform: none; }
.drawer[hidden] { display: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.drawer__close {
  width: 48px; height: 48px; border-radius: 10px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer;
}
.drawer__links { display: flex; flex-direction: column; flex: 1; }
.drawer__links a {
  font-family: var(--font-display); font-stretch: 112%; font-weight: 850;
  font-size: clamp(1.8rem, 8vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1;
  text-decoration: none; padding: 10px 0; border-bottom: 1.5px solid var(--ink);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(112px, 14vw, 160px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero__glow {
  position: absolute; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  transition: opacity 400ms var(--ease-out);
  will-change: transform;
}
.hero.is-glowing .hero__glow { opacity: 1; }
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero__sub { margin-top: 28px; font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 20px; color: var(--text-muted); font-size: 0.95rem; }

.hero__visual { position: relative; padding-bottom: 56px; }
.doc { width: 100%; max-width: 440px; margin-left: auto; }
.doc__svg { width: 100%; height: auto; overflow: visible; }

/* Shared document drawing styles (hero and sample report) */
.doc__paper { fill: var(--surface-1); stroke: var(--line); stroke-width: 1.5; }
.doc__frame { fill: none; stroke: var(--text-muted); stroke-width: 1.2; opacity: 0.55; }
.doc__frame--thin { stroke-width: 0.6; opacity: 0.35; }
.doc__kicker { fill: var(--text-muted); font-family: var(--font-body); font-size: 11px; letter-spacing: 0.06em; }
.doc__band { fill: none; stroke: var(--text); stroke-width: 1.4; }
.doc__title { fill: var(--text); font-family: var(--font-display); font-stretch: 112%; font-weight: 850; font-size: 17px; }
.doc__title--sm { font-size: 14px; }
.doc__label { fill: var(--text-muted); font-family: var(--font-body); font-size: 12px; }
.doc__label--sm { font-size: 10.5px; }
.doc__value { fill: var(--text); font-family: var(--font-mono); font-size: 13px; }
.doc__value.is-edited { fill: var(--ink); }
.doc__rule { stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 2 3; }
.doc__rule--solid { stroke-dasharray: none; opacity: 0.8; }
.doc__ink { stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; opacity: 0.75; }
.doc__sign { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; opacity: 0.8; }
.doc__seal circle { fill: none; stroke: var(--text-muted); stroke-width: 1.4; }
.doc__seal .doc__seal-inner { stroke-dasharray: 3 3; }
.doc__seal path { fill: none; stroke: var(--text-muted); stroke-width: 1.2; stroke-linejoin: round; }
.doc__edit { fill: var(--yellow); opacity: 0; transform-box: fill-box; transform-origin: left center; }
.doc__scan { opacity: 0; }
.doc__scan-line { stroke: var(--yellow); stroke-width: 1.5; }
.doc__scan-glow { fill: var(--scan); }
.doc__stamp { opacity: 0; transform-box: fill-box; transform-origin: center; }
.doc__stamp rect { fill: none; stroke: var(--v-suspicious); stroke-width: 3.5; }
.doc__stamp .doc__stamp-inner { stroke-width: 1.5; }
.doc__stamp text { fill: var(--v-suspicious); font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 30px; letter-spacing: 0.02em; }

.result {
  position: absolute; left: 0; bottom: 0; width: min(290px, 78%);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 18px 16px; display: grid; gap: 12px;
  box-shadow: 0 24px 48px -24px var(--ink);
  opacity: 0;
}
.result__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.result__label { color: var(--text-muted); font-size: 0.85rem; }
.result__score { font-family: var(--font-mono); font-weight: 500; font-size: 1.9rem; line-height: 1; }
.result__score small { font-size: 0.8rem; color: var(--text-muted); margin-left: 2px; }
.result__findings { display: grid; gap: 6px; font-size: 0.86rem; line-height: 1.4; color: var(--text-muted); }
.result__findings li { padding-left: 14px; position: relative; }
.result__findings li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 1px; background: var(--v-suspicious); }

/* Verdict pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px; width: max-content;
  padding: 4px 10px 4px 8px; border-radius: 999px; border: 1px solid currentColor;
  font-size: 0.82rem; font-weight: 600; line-height: 1.2;
}
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pill--forged { color: var(--v-forged); }
.pill--suspicious { color: var(--v-suspicious); }
.pill--consistent { color: var(--v-consistent); }

/* ---------- Sections, grids, cards ---------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative; background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 30px); overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out);
}
.card:hover::before { transform: scaleX(1); }
.benefit, .tile { display: grid; gap: 10px; align-content: start; }
.benefit p, .tile p { color: var(--text-muted); font-size: 0.98rem; }
.benefit .h3::before {
  content: ""; display: block; width: 28px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: var(--yellow);
}

/* Reveal: fade and rise 12px, staggered by --i */
.js .reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Stepper ---------- */
.stepper { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.stepper__track { position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: var(--line); overflow: hidden; }
.stepper__fill { position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.stepper__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { display: grid; gap: 12px; align-content: start; }
.step p { color: var(--text-muted); max-width: 30ch; }
.step .h3 { margin-top: 12px; color: var(--text-muted); transition: color 250ms var(--ease-out); }
.step__n {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--line);
  font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem; color: var(--text-muted);
  transition: border-color 250ms var(--ease-out), color 250ms var(--ease-out), background-color 250ms var(--ease-out);
}
.step.is-on .h3 { color: var(--text); }
.step.is-on .step__n { border-color: var(--yellow); color: var(--yellow); }
.step:last-child.is-on .step__n { background: var(--yellow); color: var(--ink); }

/* ---------- What 3am catches ---------- */
.flag { display: grid; gap: 18px; align-content: start; }
.flag__art { height: 132px; border-radius: var(--r-md); background: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.flag__art svg { width: 100%; max-width: 280px; height: auto; overflow: visible; }
.a-label, .a-small { fill: var(--text-muted); font-family: var(--font-body); font-size: 11px; }
.a-small--hit { fill: var(--yellow); }
.a-mono { fill: var(--text); font-family: var(--font-mono); font-size: 14px; }
.a-mono--sm { font-size: 12px; fill: var(--text-muted); }
.a-mono--hit { fill: var(--yellow); }
.a-serif { fill: var(--text); font-family: var(--font-doc); font-size: 26px; }
.a-serif--sm { font-size: 16px; }
.a-sans { fill: var(--yellow); font-family: var(--font-body); font-weight: 600; font-size: 25px; }
.a-rule { stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 2 3; }
.a-rule--solid { stroke-dasharray: none; stroke-width: 1.5; }
.a-hl { fill: var(--yellow); opacity: 0.22; transform-box: fill-box; transform-origin: left center; }
.a-caret { fill: var(--yellow); opacity: 0; }
.a-dot { fill: var(--surface-2); stroke: var(--text-muted); stroke-width: 1.5; }
.a-dot--hit { fill: var(--yellow); stroke: var(--yellow); }
.a-ring { fill: none; stroke: var(--yellow); stroke-width: 1.5; opacity: 0.6; transform-box: fill-box; transform-origin: center; }
.a-box { fill: none; stroke: var(--yellow); stroke-width: 1.5; stroke-dasharray: 3 3; }
.a-seal circle { fill: none; stroke: var(--text-muted); stroke-width: 1.4; }
.a-seal .a-seal-in { stroke-dasharray: 3 3; }
.a-seal path { fill: none; stroke: var(--text-muted); stroke-width: 1.2; stroke-linejoin: round; }
.a-link { stroke: var(--yellow); stroke-width: 2; stroke-dasharray: 4 4; transform-box: fill-box; transform-origin: left center; }
.a-strike { stroke: var(--yellow); stroke-width: 2.5; stroke-linecap: round; transform-box: fill-box; transform-origin: left center; }
.a-card { fill: var(--surface-1); stroke: var(--line); stroke-width: 1.2; }

/* Each loop starts from a hidden state; the resting state (no animation) is the final one. */
[data-play].is-playing .a-hl--grow { animation: grow 4s var(--ease-out) infinite; }
[data-play].is-playing .a-mono--swap { animation: retype 4s steps(1) infinite; }
[data-play].is-playing .a-caret { animation: caret 4s steps(1) infinite; }
[data-play].is-playing .a-ring { animation: ring 2.4s var(--ease-out) infinite; }
[data-play].is-playing .a-box { animation: blinkbox 2.4s ease-in-out infinite alternate; }
[data-play].is-playing .a-link--grow { animation: grow 3.2s var(--ease-out) infinite; }
[data-play].is-playing .a-strike--grow { animation: grow 4s var(--ease-out) infinite; }
[data-play].is-playing .a-fade { animation: fadein 4s var(--ease-out) infinite; }
[data-play].is-playing .a-link--pulse { animation: blinkbox 1.6s ease-in-out infinite alternate; }
@keyframes grow { 0%, 15% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes retype { 0% { opacity: 1; } 10% { opacity: 0; } 25% { opacity: 1; } }
@keyframes caret { 0%, 8% { opacity: 0; } 10%, 30% { opacity: 1; } 20% { opacity: 0; } 32%, 100% { opacity: 0; } }
@keyframes ring { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes blinkbox { from { opacity: 0.25; } to { opacity: 1; } }
@keyframes fadein { 0%, 40% { opacity: 0; } 55%, 100% { opacity: 1; } }

/* ---------- Sample report ---------- */
.report {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(24px, 4vw, 56px); row-gap: 28px;
  align-items: center; margin-top: clamp(40px, 5vw, 64px);
}
.report__doc { max-width: 400px; width: 100%; justify-self: center; }
.mini { width: 100%; height: auto; }
.spot { opacity: 0.35; transition: opacity 250ms var(--ease-out); }
.spot rect, .spot > circle { fill: none; stroke: var(--yellow); stroke-width: 1.5; stroke-dasharray: 4 3; }
.spot g circle { fill: var(--surface-2); stroke: var(--yellow); stroke-width: 1.5; }
.spot g text { fill: var(--yellow); font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.spot.is-active { opacity: 1; }
.spot.is-active rect, .spot.is-active > circle { fill: var(--spot-fill); stroke-dasharray: none; }
.spot.is-active g circle { fill: var(--yellow); }
.spot.is-active g text { fill: var(--ink); }

.report__card {
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 20px; min-width: 0;
}
.report__top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.meter { position: relative; width: 180px; flex-shrink: 0; }
.meter svg { width: 100%; height: auto; }
.meter__track { fill: none; stroke: var(--line); stroke-width: 14; stroke-linecap: round; }
.meter__fill { fill: none; stroke: var(--v-forged); stroke-width: 14; transform-box: view-box; transform-origin: 100px 100px; transform: rotate(var(--angle, 154.8deg)); }
.meter__value {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.meter__value small { font-family: var(--font-mono); font-stretch: 100%; font-weight: 400; font-size: 0.85rem; letter-spacing: 0; color: var(--text-muted); margin-left: 2px; }
.report__verdict { display: grid; gap: 8px; justify-items: start; }
.report__label { color: var(--text-muted); font-size: 0.9rem; }
.report__summary { font-size: 1.08rem; line-height: 1.45; max-width: 44ch; }
.findings { display: grid; gap: 8px; }
.finding {
  width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; cursor: pointer;
  padding: 14px 16px; min-height: 44px; border-radius: var(--r-md);
  background: var(--ink); border: 1px solid var(--line);
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.finding:hover { border-color: var(--text-muted); }
.finding[aria-pressed="true"] { border-color: var(--yellow); background: var(--surface-2); }
.finding__n {
  flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  border: 1.5px solid var(--yellow); color: var(--yellow); font-family: var(--font-mono); font-size: 0.75rem;
}
.finding[aria-pressed="true"] .finding__n { background: var(--yellow); color: var(--ink); }
.finding__text { display: grid; gap: 2px; }
.finding__text strong { font-weight: 600; }
.finding__text span { color: var(--text-muted); font-size: 0.92rem; line-height: 1.45; }
.report__caption { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.92rem; text-align: center; }

/* ---------- Developers ---------- */
.dev__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.code { min-width: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.code__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 8px; border-bottom: 1px solid var(--line); background: var(--surface-2); min-height: 56px; }
.code__title { padding: 0 8px; font-family: var(--font-mono); font-size: 0.84rem; color: var(--text-muted); overflow-wrap: anywhere; }
.code__method { color: var(--yellow); margin-right: 6px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tab {
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500; white-space: nowrap;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--yellow); }
.copy {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--text-muted); cursor: pointer;
  font-size: 0.86rem; transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.copy:hover { color: var(--text); border-color: var(--text-muted); }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.copy.is-done { color: var(--yellow); border-color: var(--yellow); }
.code__body { overflow-x: auto; overscroll-behavior-x: contain; }
.code__pre { margin: 0; padding: 20px 22px 24px; display: grid; font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.75; color: var(--text); tab-size: 2; }
.code__pre > code { grid-area: 1 / 1; white-space: pre; }
.code__ghost { visibility: hidden; }
.code__foot { border-top: 1px solid var(--line); padding: 18px 22px 20px; display: grid; gap: 8px; }
.code__reply { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); overflow-wrap: anywhere; }
.code__reply code { font-family: inherit; }
.code__status { display: inline-block; padding: 1px 7px; margin-right: 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--yellow); }
.code__hint { font-size: 0.9rem; color: var(--text-muted); max-width: 52ch; }
.t-str, .t-num { color: var(--yellow); }
.t-key { color: var(--text); }
.t-kw, .t-flag, .t-pun { color: var(--text-muted); }
.t-com { color: var(--text-muted); font-style: italic; }
.caret { display: inline-block; width: 0.55em; height: 1.1em; vertical-align: -0.2em; background: var(--yellow); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.json-line { display: block; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); transition-delay: calc(var(--l, 0) * 60ms); }
.js [data-json]:not(.is-shown) .json-line { opacity: 0; transform: translateX(-6px); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-1); font-size: 0.95rem;
}
.chip svg { width: 18px; height: 18px; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Coverage ---------- */
.coverage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.coverage__copy { display: grid; justify-items: start; }
.coverage__next { margin: 36px 0 32px; }
.coverage__next .h3 { font-size: 1.05rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; font-stretch: 100%; letter-spacing: 0; }
.ticks { display: grid; gap: 10px; margin-top: 14px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px;
  border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(-45deg);
}
.map { display: grid; gap: 18px; justify-items: center; }
.map__svg { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.map .st { fill: var(--surface-1); stroke: var(--line); stroke-width: 1.2; }
.map .st--live { fill: var(--yellow); stroke: var(--yellow); }
.map .st-label { fill: var(--ink); font-family: var(--font-mono); font-size: 10px; font-weight: 500; }
.map .st-ring { fill: none; stroke: var(--yellow); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map .pin rect { fill: var(--surface-2); stroke: var(--yellow); stroke-width: 1.2; }
.map .pin path { fill: var(--surface-2); stroke: var(--yellow); stroke-width: 1.2; }
.map .pin text { fill: var(--text); font-family: var(--font-body); font-size: 12px; font-weight: 600; }
[data-play].is-playing .st-ring { animation: ring 2.4s var(--ease-out) infinite; }
.map__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; color: var(--text-muted); font-size: 0.92rem; }
.legend { display: inline-flex; align-items: center; gap: 8px; }
.legend::before { content: ""; width: 14px; height: 14px; border-radius: 3px; }
.legend--live::before { background: var(--yellow); }
.legend--soon::before { background: var(--surface-1); border: 1.2px solid var(--text-muted); }

/* ---------- Security ---------- */
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 5vw, 64px); }
.point { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line); }
.point svg { width: 32px; height: 32px; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.point p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.price { display: grid; gap: 4px; padding: clamp(28px, 3vw, 40px); }
.price__amount { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: clamp(4rem, 9vw, 6.2rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--yellow); }
.price__unit { color: var(--text-muted); }
.price__list { margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.price__small { margin: 16px 0 24px; color: var(--text-muted); font-size: 0.9rem; }
.price__volume { margin-top: 16px; text-align: center; color: var(--text-muted); font-size: 0.94rem; }
.price__volume a { color: var(--text); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.price__volume a:hover { color: var(--yellow); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.accordion { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q { font: inherit; }
.qa__q button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 16px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-stretch: 106%; font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.25;
  transition: color 160ms var(--ease-out);
}
.qa__q button:hover { color: var(--yellow); }
.qa__icon { position: relative; flex-shrink: 0; width: 28px; height: 28px; border: 1.5px solid var(--line); border-radius: 50%; }
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -0.75px 0 0 -5.5px;
  background: currentColor; transition: transform 250ms var(--ease-out);
}
.qa__icon::after { transform: rotate(90deg); }
.qa__q button[aria-expanded="true"] .qa__icon { border-color: var(--yellow); color: var(--yellow); }
.qa__q button[aria-expanded="true"] .qa__icon::after { transform: rotate(0deg); }
.qa__a { padding: 0 48px 24px 0; color: var(--text-muted); max-width: 62ch; }
.qa__a a { color: var(--yellow); }
.qa__a:not([hidden]) { animation: open 280ms var(--ease-out); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Final CTA ---------- */
.band { background: var(--yellow); color: var(--ink); padding-block: clamp(80px, 11vw, 152px); }
.band__title {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 6.4rem); line-height: 0.92; letter-spacing: -0.045em;
  max-width: 13ch; text-wrap: balance;
}
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.cta__stamp { width: clamp(150px, 18vw, 230px); height: auto; overflow: visible; }
.cta__stamp circle { fill: none; stroke: var(--ink); stroke-width: 5; }
.cta__stamp .thin { stroke-width: 1.5; }
.cta__stamp text { fill: var(--ink); font-family: var(--font-display); font-stretch: 108%; font-weight: 900; font-size: 27px; letter-spacing: 0.01em; }
.cta__stamp .tick { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.js .cta__stamp { opacity: 0; transform: scale(1.5) rotate(8deg); }
.js .cta__stamp.is-stamped { animation: stampIn 650ms var(--ease-spring) forwards; }
@keyframes stampIn {
  0% { opacity: 0; transform: scale(1.5) rotate(8deg); }
  60% { opacity: 1; transform: scale(0.94) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: auto 1fr; gap: 32px 40px; align-items: start; }
.footer__tag { color: var(--text-muted); margin-top: 4px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 22px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer__links a:hover { color: var(--yellow); }
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.88rem; }
.footer__legal p:first-child { max-width: 60ch; }
.footer__legal a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal a:hover { color: var(--yellow); }
.footer__legal p:last-child { display: flex; align-items: center; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid--4, .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__title { font-size: clamp(2.3rem, 9.6vw, 4.4rem); }
  .hero__visual { max-width: 420px; width: 100%; }
  .doc { margin-left: 0; max-width: 360px; }
  .result { left: auto; right: 0; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report, .coverage, .pricing, .faq { grid-template-columns: minmax(0, 1fr); }
  .report__doc { max-width: 340px; }
  .stepper__track { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .stepper__fill { transform: scaleY(0); transform-origin: top; }
  .stepper__list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; row-gap: 6px; }
  .step .step__n { grid-row: 1 / span 2; }
  .step .h3 { margin-top: 12px; }
}
@media (max-width: 640px) {
  .grid--4, .grid--3, .points { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta__stamp { order: -1; width: 128px; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__links { justify-content: flex-start; }
  .qa__a { padding-right: 0; }
  .result { width: min(280px, 86%); }
  .meter { width: 150px; }
}
@media (max-width: 380px) {
  .code__pre { font-size: 0.78rem; padding: 16px; }
  .tab { padding: 0 9px; }
  .copy span { display: none; }
  .copy { padding: 0; }
}

/* ---------- Reduced motion: final states, no loops ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__glow, .caret { display: none; }
  .js .cta__stamp { opacity: 1; transform: none; }
}
