/* ==========================================================================
   ConstatVault — design system
   Offline-first: system font stack, no external dependencies (on brand).
   ========================================================================== */

:root {
  /* Light "secure vault" theme — paper white surfaces, deep navy ink, trust green */
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --surface-3: #E8EEF6;
  --line: #E3E9F0;
  --line-2: #CBD5E1;
  --text: #0D1B2A;
  --muted: #4C5B6E;
  --faint: #7C8898;

  --green: #0E9F6E;
  --green-2: #0B7C57;
  --green-glow: rgba(14, 159, 110, 0.12);
  --blue: #1D6FD1;
  --gold: #A9761A;
  --red: #D23B4C;
  --purple: #6D4AE0;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 40px);

  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px -34px rgba(13, 27, 42, 0.28);
  --ease: cubic-bezier(0.4, 0, 0.15, 1);
}


/* Scoped to the legacy static-page content so it can't zero out the React
   shell's Tailwind padding (Tailwind utilities live in a cascade layer, which
   an unlayered `*` reset would otherwise beat regardless of specificity). */
:where(.cv-legacy), :where(.cv-legacy) * { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(14, 159, 110, 0.10), transparent 62%),
    radial-gradient(820px 520px at 6% 2%, rgba(29, 111, 209, 0.08), transparent 58%),
    linear-gradient(180deg, #FFFFFF, #F6F9FC 70%, #FFFFFF);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(14,159,110,.18); color: var(--text); }

/* ---- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green);
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 100px;
  background: var(--green-glow);
}
.eyebrow.muted { color: var(--muted); background: var(--surface-2); }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; font-weight: 640; }
h2 { font-size: clamp(28px, 4.4vw, 46px); margin-top: 18px; }
h3 { font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.mono { font-family: var(--font-mono); }
.accent { color: var(--green); }
.blue { color: var(--blue); }
.gold { color: var(--gold); }
.red { color: var(--red); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-weight: 560; font-size: 15.5px; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.22s var(--ease); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--green); color: #FFFFFF; box-shadow: 0 10px 28px -12px rgba(14,159,110,.55); }
.btn-primary:hover { background: #0B8A5F; transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(14,159,110,.6); }
.btn-ghost { background: #FFFFFF; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--faint); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }

/* ---- Nav ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 620; font-size: 18px; letter-spacing: -0.02em; }
.brand .mark { width: 34px; height: 34px; color: var(--text); }
.brand b { font-weight: 620; }
.brand .v { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---- Hero ----------------------------------------------------------------- */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 74px); font-weight: 680; }
.hero h1 .fade { color: var(--muted); }
.hero .lead { margin-top: 24px; font-size: clamp(17px, 2vw, 21px); }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); font-family: var(--font-mono); letter-spacing: -0.01em;
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface);
}
.pill svg { width: 15px; height: 15px; color: var(--green); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Hero visual — the seal card */
.seal-card {
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.seal-card .big-mark { width: 128px; height: 128px; margin: 6px auto 20px; color: var(--text); }
.seal-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.seal-stat:first-of-type { border-top: 0; }
.seal-stat .k { color: var(--muted); font-size: 14px; }
.seal-stat .val { font-family: var(--font-mono); font-weight: 600; font-size: 16px; }
.count-badge {
  position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: 12px;
  color: var(--gold); border: 1px solid rgba(169,118,26,.28); background: rgba(169,118,26,.08);
  padding: 5px 10px; border-radius: 100px;
}

/* ---- Generic cards / grids ------------------------------------------------ */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; box-shadow: 0 1px 2px rgba(13,27,42,.04);
  padding: 24px; transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); background: #FFFFFF; box-shadow: 0 18px 40px -26px rgba(13,27,42,.35); }
.card .ic { width: 30px; height: 30px; color: var(--green); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* ---- Comparison table ----------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 15px 18px; font-size: 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 560; font-family: var(--font-mono); }
tbody tr:last-child td { border-bottom: 0; }
/* On phones a 640px table would overflow and clip; stack each row into a card. */
@media (max-width: 620px) {
  .table-wrap { overflow-x: visible; border: 0; background: transparent; border-radius: 0; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; }
  td { border-bottom: 0; padding: 6px 16px; }
  td:first-child { font-weight: 620; color: var(--text); padding-top: 14px; }
  td:last-child { color: var(--muted); padding-bottom: 14px; }
}
td .who { font-weight: 560; color: var(--text); }
td .sub { color: var(--muted); font-size: 13.5px; }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; }
.verdict.no { color: var(--red); }
.verdict.yes { color: var(--green); }

/* ---- Regulatory / forcing list ------------------------------------------- */
.reg-row { display: grid; grid-template-columns: 190px 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.reg-row:first-child { border-top: 0; }
.reg-row .name { font-weight: 580; }
.reg-row .obl { color: var(--muted); font-size: 14.5px; }
.reg-row .pen { font-family: var(--font-mono); font-size: 13px; color: var(--gold); white-space: nowrap; }
@media (max-width: 720px) { .reg-row { grid-template-columns: 1fr; gap: 5px; } .reg-row .pen { justify-self: start; } }

/* ---- How it works: pipeline ---------------------------------------------- */
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.stage { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.stage .eng { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.stage h3 { margin: 8px 0 10px; font-size: 20px; }
.stage ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.stage li { color: var(--muted); font-size: 14px; padding-left: 20px; position: relative; }
.stage li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--green); opacity: 0.8; }
.arrow { align-self: center; color: var(--faint); display: flex; align-items: center; }
.arrow svg { width: 26px; height: 26px; }
.loop-note { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--muted); }
.loop-note b { color: var(--text); font-weight: 560; }
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---- Verify Yourself panels ----------------------------------------------- */
.verify { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); overflow: hidden; }
.verify-head { padding: 26px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.verify-head .status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 13.5px; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line-2); }
.verify-head .status.pass { color: var(--green); border-color: rgba(14,159,110,.35); background: var(--green-glow); }
.verify-head .status.fail { color: var(--red); border-color: rgba(210,59,76,.35); background: rgba(210,59,76,.07); }
.verify-head .status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.verify-head .status.pass .dot { animation: pulse 2s infinite; }

.tabs { display: flex; gap: 4px; padding: 12px 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 11px 16px; cursor: pointer; border-radius: 10px 10px 0 0; position: relative; display: inline-flex; align-items: center; gap: 8px; }
.tab svg { width: 16px; height: 16px; }
.tab.active { color: var(--text); background: var(--surface-2); }
.tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--green); border-radius: 2px; }
.tab .n { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

.panel { padding: 26px 28px; display: none; }
.panel.active { display: block; animation: fade 0.4s var(--ease); }
.panel-intro { color: var(--muted); font-size: 15px; margin-bottom: 20px; max-width: 70ch; }
.panel-intro code { font-family: var(--font-mono); font-size: 13px; color: var(--green); background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }

.recon-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13.5px; }
.recon-table th { color: var(--faint); font-weight: 500; text-transform: none; letter-spacing: 0; padding: 8px 10px; font-family: var(--font-mono); border-bottom: 1px solid var(--line); }
.recon-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.recon-table .tid { color: var(--muted); }
.recon-table .ok { color: var(--green); }
.recon-table tr.total td { border-top: 1px solid var(--line-2); border-bottom: 0; font-weight: 600; color: var(--text); padding-top: 14px; }
.tick { display: inline-block; opacity: 0; transform: scale(0.5); transition: all 0.3s var(--ease); }
.tick.show { opacity: 1; transform: scale(1); }

.hashline { font-family: var(--font-mono); font-size: 13px; word-break: break-all; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); margin: 10px 0; }
.hashline .label { color: var(--faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.hashline.match { border-color: rgba(14,159,110,.4); }
.hashline.mismatch { border-color: rgba(210,59,76,.4); }
.hashline b { color: var(--green); }
.hashline.mismatch b { color: var(--red); }
.hchar.diff { color: var(--red); background: rgba(210,59,76,.12); border-radius: 2px; }

.tamper-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 18px; }
.tamper-controls label { font-size: 13.5px; color: var(--muted); }
.tamper-controls input[type=text] { font-family: var(--font-mono); font-size: 13px; background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; min-width: 260px; flex: 1; }
.tamper-controls input:focus { outline: none; border-color: var(--green); }

.codeblock { position: relative; font-family: var(--font-mono); font-size: 13.5px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 68px 18px 18px; overflow-x: auto; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.codeblock span { white-space: inherit; }
.codeblock .c { color: var(--faint); }
.codeblock .g { color: var(--green); }
.copy-btn { position: absolute; top: 10px; right: 10px; font: inherit; font-size: 12px; font-family: var(--font-mono); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 5px 10px; cursor: pointer; }
.copy-btn:hover { color: var(--text); border-color: var(--faint); }

.terminal { font-family: var(--font-mono); font-size: 13px; line-height: 1.65; background: #0D1B2A; border: 1px solid #0D1B2A; border-radius: var(--radius-sm); padding: 16px 18px; max-height: 440px; overflow-y: auto; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.terminal { color: #D7E2EE; }
.term-line.cmd { color: #FFFFFF; }
.term-line.ok { color: #43D9A3; }
.term-line.fail { color: #FF7C89; }
.term-line.dim { color: #8496A8; }
.term-cursor { display: inline-block; width: 8px; height: 15px; background: #43D9A3; vertical-align: text-bottom; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.artifact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.artifact-grid .kv { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.artifact-grid .kv .k { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.artifact-grid .kv .v { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); word-break: break-all; }
@media (max-width: 620px) { .artifact-grid { grid-template-columns: 1fr; } }

.note { font-size: 13.5px; color: var(--faint); padding: 12px 16px; border-left: 2px solid var(--line-2); background: var(--surface); border-radius: 0 8px 8px 0; margin-top: 16px; }
.note b { color: var(--muted); }

/* ---- Stat wall ------------------------------------------------------------ */
.stat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.stat .num { font-size: clamp(28px, 4vw, 40px); font-weight: 680; letter-spacing: -0.03em; font-family: var(--font-mono); }
.stat .num.g { color: var(--green); }
.stat .lab { color: var(--muted); font-size: 14px; margin-top: 6px; }

.honesty { border: 1px solid rgba(169,118,26,.28); background: rgba(169,118,26,.06); border-radius: var(--radius); padding: 24px 26px; margin-top: 22px; }
.honesty .eyebrow { color: var(--gold); background: rgba(169,118,26,.08); border-color: rgba(169,118,26,.25); }
.honesty p { color: var(--muted); margin-top: 12px; font-size: 15.5px; }
.honesty b { color: var(--text); font-weight: 560; }

/* ---- Cert classes --------------------------------------------------------- */
.cert { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.cert .ic { width: 26px; height: 26px; }
.cert.free .ic { color: var(--green); } .cert.gated .ic { color: var(--gold); } .cert.legal .ic { color: var(--blue); }
.cert h3 { font-size: 17px; }
.cert p { color: var(--muted); font-size: 14px; }
.cert .badge { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--muted); }
.cert.free .badge { color: var(--green); border-color: rgba(14,159,110,.3); }

/* ---- Do-not-prove --------------------------------------------------------- */
.floor { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px 22px; }
.floor h3 { font-size: 16.5px; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.floor h3 svg { width: 18px; height: 18px; color: var(--muted); }
.floor p { color: var(--muted); font-size: 14.5px; }

/* ---- CTA band ------------------------------------------------------------- */
.cta {
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: radial-gradient(600px 300px at 50% 0%, rgba(14,159,110,.10), transparent 70%), var(--surface);
  padding: clamp(40px, 6vw, 64px); text-align: center;
}
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta .lead { margin: 16px auto 0; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.founder { margin-top: 30px; font-size: 14px; color: var(--faint); }
.founder b { color: var(--muted); font-weight: 560; }

/* ---- Footer --------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding-block: 48px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot-grid h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 14px; font-family: var(--font-mono); font-weight: 500; }
.foot-grid a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-verifiers code { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--green); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; margin-bottom: 7px; overflow-x: auto; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---- Reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Animations ----------------------------------------------------------- */
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--green-glow); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.25) rotate(-6deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.big-mark { animation: stamp 0.9s var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Countdown */
.countdown { display: inline-flex; gap: 10px; margin-top: 4px; }
.cd-unit { text-align: center; }
.cd-unit .n { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--text); }
.cd-unit .l { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---- Prose / content pages ------------------------------------------------ */
.prose { max-width: 760px; margin: 0 auto; padding-block: clamp(48px, 7vw, 88px); }
.prose h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 10px; }
.prose .updated { color: var(--faint); font-family: var(--font-mono); font-size: 13px; margin-bottom: 36px; }
.prose h2 { font-size: 22px; margin: 34px 0 12px; }
.prose h3 { font-size: 17px; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 22px; display: flex; flex-direction: column; gap: 7px; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--text); font-weight: 560; }
.prose .lead { color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.back-link:hover { color: var(--text); }
.teaser-cta { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); padding: 24px 26px; margin-top: 28px; }

/* Skip link (a11y) */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green); color: #FFFFFF; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; font-weight: 560; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* Turnstile widget spacing */
.cf-turnstile { margin: 4px 0; }
.form-msg { font-size: 14px; margin-top: 10px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }

/* Utility */
.center { text-align: center; }
.mt { margin-top: 22px; }
.mt-lg { margin-top: 40px; }
.hidden { display: none !important; }
/* NOTE: a bare `.flex` utility (align-items:center) was removed here — it collided
   with Tailwind's atomic `.flex` and broke every React flex layout on the static
   pages that load this stylesheet. It was only used by the (unrouted) index.html. */
.spacer { flex: 1; }

/* ============ Motion: scroll reveal + icon animation ============ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  [data-reveal].is-in { opacity: 1; transform: none; }

  /* Icons */
  svg.ic, .pill svg, .btn svg, .tab svg, .verdict svg {
    transition: transform .35s cubic-bezier(.22,.61,.36,1), color .3s ease, filter .3s ease;
  }
  .card:hover svg.ic, .cert:hover svg.ic { transform: translateY(-3px) scale(1.12) rotate(-3deg); filter: drop-shadow(0 6px 14px color-mix(in oklab, var(--green) 35%, transparent)); }
  .pill:hover svg { transform: scale(1.18); }
  .btn:hover svg { transform: translateX(3px); }
  .tab:hover svg { transform: scale(1.12); }

  [data-reveal].is-in svg.ic { animation: icon-pop .6s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--reveal-delay, 0ms) + 120ms); }
  @keyframes icon-pop {
    0%   { opacity: 0; transform: scale(.6) rotate(-12deg); }
    60%  { opacity: 1; transform: scale(1.12) rotate(3deg); }
    100% { opacity: 1; transform: none; }
  }

  .big-mark, .brand .mark { animation: mark-float 6s ease-in-out infinite; transform-origin: 50% 50%; }
  @keyframes mark-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }

  /* Draw-in for the checkmark strokes inside the logo marks */
  .big-mark path, .brand .mark path { stroke-dasharray: 240; stroke-dashoffset: 0; }
  .big-mark path { animation: draw 2.2s ease-out both; }
  @keyframes draw { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }

  .arrow svg { animation: arrow-nudge 2.4s ease-in-out infinite; }
  @keyframes arrow-nudge {
    0%, 100% { transform: translateX(0); opacity: .7; }
    50%      { transform: translateX(6px); opacity: 1; }
  }
}
