/* QuantaWatch by Dyber — site styles
   Layout concept: a night-sky editorial canvas. Oversized light headlines sit
   left-aligned over a field of lattice particles; product screenshots sit in
   slim window frames; the informative sections drop onto bright "paper" bands.
   One committed look (dark ground + paper bands), so colors are set explicitly. */

:root {
  color-scheme: dark;

  /* Color */
  --ink: #07080e;          /* page ground: near-black, biased toward indigo */
  --ink-raised: #0f111b;   /* raised surfaces on the ink ground */
  --ink-line: #22253a;     /* hairlines on ink */
  --fg: #eceefb;           /* primary text on ink */
  --fg-muted: #9a9fbd;     /* secondary text on ink */
  --accent: #a3a9ff;       /* periwinkle, from the logo's indigo shield */
  --accent-strong: #6366f1;
  --paper: #f1f1f6;        /* light band ground */
  --paper-raised: #ffffff;
  --paper-ink: #0c0d17;    /* text on paper */
  --paper-muted: #555a75;
  --paper-line: #d9dae6;

  /* QuantaWatch's own PQC status scale (the same four states the product uses) */
  --s-pqc: #3ddc97;
  --s-hybrid: #6aa8ff;
  --s-classical: #f5b041;
  --s-weak: #ff5d73;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  --step-5: clamp(2.6rem, 1.4rem + 4.6vw, 5.25rem);

  --wrap: 1180px;
  --radius: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paint the phone's top inset in the header's color. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ink);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 64px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-5); font-weight: 300; }
h2 { font-size: var(--step-4); font-weight: 300; }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.lede { font-size: var(--step-1); color: var(--fg-muted); max-width: 60ch; }
.muted { color: var(--fg-muted); }
.mono { font-family: var(--font-mono); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--ink-line); }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand-by { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--fg-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink-line);
  color: var(--fg);
  border-radius: 999px;
  padding: 8px 14px;
  font: 500 0.875rem var(--font-body);
  cursor: pointer;
}
@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav .btn-gh-label { display: none; }
  .nav-links {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    padding: 8px var(--gutter-r) 16px var(--gutter-l);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.0625rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font: 600 0.9375rem var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-light { background: var(--fg); color: var(--ink); }
.btn-light:hover { background: #ffffff; }
.btn-ghost { background: var(--ink-raised); color: var(--fg); border-color: var(--ink-line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-dark { background: var(--paper-ink); color: var(--paper); }
.btn-outline-dark { background: transparent; color: var(--paper-ink); border-color: var(--paper-line); }
.btn-outline-dark:hover { border-color: var(--paper-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-inner {
  position: relative;
  padding-block: clamp(64px, 10vw, 132px) clamp(56px, 8vw, 104px);
  display: grid;
  gap: 28px;
  pointer-events: none;
}
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: #c3c7e0; }
.hero-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 5vw, 56px); display: grid; gap: 22px; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head h2 { font-size: var(--step-4); }

.band-paper { background: var(--paper); color: var(--paper-ink); }
.band-paper .eyebrow, .band-paper .muted, .band-paper .lede { color: var(--paper-muted); }
.band-raised { background: var(--ink-raised); border-block: 1px solid var(--ink-line); }

/* Status legend chips (the product's own four-state scale) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  color: var(--fg);
  background: var(--ink-raised);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip.pqc i { background: var(--s-pqc); }
.chip.hybrid i { background: var(--s-hybrid); }
.chip.classical i { background: var(--s-classical); }
.chip.weak i { background: var(--s-weak); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Window frame for screenshots ---------- */
.frame {
  border-radius: var(--radius);
  border: 1px solid var(--ink-line);
  background: #0b0c14;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(99, 102, 241, .35), 0 0 0 1px rgba(255,255,255,.02);
  max-width: 100%;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-line);
  background: #11131e;
}
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2c2f45; }
.frame-bar .url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  width: auto; height: auto; border-radius: 6px;
  background: #0b0c14;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
/* Crop the dashboard's docked terminal panel: show the top 1600x765 of each capture. */
.frame img { width: 100%; height: auto; aspect-ratio: 1600 / 765; object-fit: cover; object-position: top left; }
.band-paper .frame { box-shadow: 0 30px 60px -30px rgba(12, 13, 23, .45); border-color: #1d2033; }

/* ---------- Home: two halves ---------- */
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.half {
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, var(--ink-raised), var(--ink));
  display: grid;
  gap: 14px;
  align-content: start;
}
.half ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.half li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: #c9cce3; }
.half li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.core-strip {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px dashed #34385a;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.core-strip b { color: var(--fg); font-weight: 500; }
@media (max-width: 760px) { .halves { grid-template-columns: 1fr; } }

/* ---------- Home: timeline facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--ink); padding: 28px 26px; display: grid; gap: 10px; align-content: start; }
.fact .num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; }
.fact .src { font-size: 0.75rem; color: var(--fg-muted); font-family: var(--font-mono); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Home: four-step switcher ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.step-list { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-left: 2px solid var(--ink-line);
  color: var(--fg-muted);
  padding: 16px 0 16px 22px;
  cursor: pointer;
  font: inherit;
  display: grid;
  gap: 6px;
  transition: border-color .2s, color .2s;
}
.step-btn .step-title { font-family: var(--font-display); font-size: var(--step-2); color: inherit; letter-spacing: -0.015em; display: flex; gap: 14px; align-items: baseline; }
.step-btn .step-title small { font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-muted); letter-spacing: 0.06em; }
.step-btn .step-body { font-size: 0.9375rem; line-height: 1.55; display: none; color: #c3c7e0; }
.step-btn[aria-selected="true"] { border-left-color: var(--accent); color: var(--fg); }
.step-btn[aria-selected="true"] .step-body { display: block; }
.step-btn:hover { color: var(--fg); }
.step-shot { position: relative; }
.step-shot .frame img { transition: opacity .25s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Mosca calculator ---------- */
.mosca { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.mosca-controls { display: grid; gap: 26px; }
.slider { display: grid; gap: 8px; }
.slider label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.slider label output { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider .hint { font-size: 0.875rem; color: var(--paper-muted); }
.slider input[type="range"] { width: 100%; accent-color: var(--paper-ink); height: 28px; }
.mosca-card {
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 22px;
}
.mosca-verdict { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.02em; }
.mosca-verdict b { font-weight: 500; }
.mosca-verdict.bad b { color: #d9344d; }
.mosca-verdict.ok b { color: #11905d; }
.track { display: grid; gap: 10px; }
.track-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 0.8125rem; color: var(--paper-muted); }
.track-bar { position: relative; height: 26px; background: #ececf3; border-radius: 6px; overflow: hidden; }
.track-bar > span { position: absolute; top: 0; bottom: 0; border-radius: 6px; transition: left .25s, width .25s; display: flex; align-items: center; padding-left: 8px; font-family: var(--font-mono); font-size: 0.7rem; color: #fff; white-space: nowrap; overflow: hidden; }
.seg-migrate { background: var(--paper-ink); }
.seg-shelf { background: #6366f1; }
.seg-q { background: repeating-linear-gradient(135deg, #d9344d 0 6px, #e8566c 6px 12px); }
.track-axis { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
.track-axis div { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; color: var(--paper-muted); font-variant-numeric: tabular-nums; }
.mosca-foot { font-size: 0.8125rem; color: var(--paper-muted); }
@media (max-width: 900px) { .mosca { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .track-row, .track-axis { grid-template-columns: 84px minmax(0, 1fr); } }

/* ---------- Terminal ---------- */
.term {
  background: #05060b;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  min-width: 0;
}
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--ink-line); color: var(--fg-muted); font-size: 0.75rem; }
.term-bar button { background: none; border: 1px solid var(--ink-line); color: var(--fg-muted); border-radius: 999px; padding: 4px 12px; font: inherit; cursor: pointer; }
.term-bar button:hover { color: var(--fg); border-color: var(--accent); }
.term pre { margin: 0; padding: 18px 20px; overflow-x: auto; line-height: 1.65; color: #cfd3ee; white-space: pre; min-height: 17.5em; }
.term .p { color: var(--accent); }
.term .ok { color: var(--s-pqc); }
.term .warn { color: var(--s-classical); }
.term .dim { color: #6b7091; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Open-source promise ---------- */
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promise > div { border-top: 1px solid var(--paper-ink); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.promise h3 { font-size: var(--step-2); }
.promise p { color: var(--paper-muted); }
@media (max-width: 800px) { .promise { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { text-align: left; display: grid; gap: 26px; padding-block: clamp(72px, 10vw, 128px); }
.cta h2 { max-width: 18ch; }

/* ---------- Platform: gallery tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  color: var(--fg-muted);
  padding: 8px 15px;
  border-radius: 999px;
  font: 500 0.875rem var(--font-body);
  cursor: pointer;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.gallery-caption { margin-top: 16px; color: var(--fg-muted); max-width: 70ch; min-height: 3.2em; }

/* ---------- Platform: feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink-line); }
.feature:first-child { border-top: 0; }
.feature.flip > :first-child { order: 2; }
.feature-copy { display: grid; gap: 16px; align-content: start; }
.feature-copy h3 { font-size: var(--step-3); font-weight: 300; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: #c9cce3; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.band-paper .ticks li { color: var(--paper-muted); }
.band-paper .ticks li::before { border-color: var(--paper-ink); }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }

.providers { display: flex; flex-wrap: wrap; gap: 8px; }
.providers span { font-family: var(--font-mono); font-size: 0.75rem; padding: 5px 11px; border-radius: 6px; background: var(--ink-raised); border: 1px solid var(--ink-line); color: #c9cce3; }

/* ---------- Tables / code ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--ink-line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--ink-line); vertical-align: top; }
th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td code, p code, li code { font-family: var(--font-mono); font-size: 0.85em; background: var(--ink-raised); border: 1px solid var(--ink-line); padding: 1px 6px; border-radius: 5px; }
.band-paper td code, .band-paper p code, .band-paper li code { background: #e4e4ee; border-color: #d2d3e0; }

.code {
  position: relative;
  background: #05060b;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  min-width: 0;
}
.code pre { margin: 0; padding: 18px 20px; padding-right: 84px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.7; color: #d6d9f2; }
.code .c { color: #6b7091; }
.copy {
  position: absolute; top: 10px; right: 10px;
  background: var(--ink-raised); color: var(--fg-muted);
  border: 1px solid var(--ink-line); border-radius: 999px;
  padding: 4px 12px; font: 500 0.75rem var(--font-body); cursor: pointer;
}
.copy:hover { color: var(--fg); border-color: var(--accent); }

/* ---------- Get started ---------- */
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.path { border: 1px solid var(--ink-line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); display: grid; gap: 14px; align-content: start; background: var(--ink-raised); min-width: 0; }
.path h3 { font-size: var(--step-2); }
.path .eyebrow { color: var(--accent); }
@media (max-width: 860px) { .path-grid { grid-template-columns: 1fr; } }

.numbered { display: grid; gap: 28px; counter-reset: n; }
.numbered > li { list-style: none; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
.numbered > li::before {
  counter-increment: n; content: counter(n);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--ink-line);
  display: grid; place-items: center;
  font-family: var(--font-mono); color: var(--accent);
}
.numbered .body { display: grid; gap: 12px; min-width: 0; }
.numbered h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; padding-top: 7px; }
ol.numbered { padding: 0; margin: 0; }

/* ---------- Trust ---------- */
.status-list { display: grid; gap: 0; border: 1px solid var(--paper-line); border-radius: var(--radius); overflow: hidden; background: var(--paper-raised); }
.status-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 18px 22px; border-top: 1px solid var(--paper-line); }
.status-item:first-child { border-top: 0; }
.status-item .tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; align-self: start; padding: 4px 8px; border-radius: 6px; text-align: center; }
.tag.done { background: #dcf7ea; color: #0b6b45; }
.tag.partial { background: #fff0d6; color: #8a5300; }
.tag.next { background: #e6e7ff; color: #3b3fc4; }
.status-item h4 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0; margin-bottom: 4px; }
.status-item p { color: var(--paper-muted); font-size: 0.9375rem; }
@media (max-width: 560px) { .status-item { grid-template-columns: 1fr; gap: 8px; } .status-item .tag { justify-self: start; } }

.verify-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.verify-grid > div { display: grid; gap: 12px; align-content: start; min-width: 0; }
.verify-grid h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
@media (max-width: 860px) { .verify-grid { grid-template-columns: 1fr; } }

/* ---------- Open source page ---------- */
.repo-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.repo-map a { background: var(--ink); padding: 20px 22px; text-decoration: none; display: grid; gap: 6px; transition: background .15s; }
.repo-map a:hover { background: var(--ink-raised); }
.repo-map b { font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; color: var(--accent); }
.repo-map span { font-size: 0.875rem; color: var(--fg-muted); }
@media (max-width: 860px) { .repo-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .repo-map { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.faq details { border-bottom: 1px solid var(--paper-line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-family: var(--font-display); font-size: var(--step-1); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--paper-muted); max-width: 68ch; }

.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.help-card { border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; background: var(--ink-raised); text-decoration: none; transition: border-color .15s, transform .15s; }
a.help-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.help-card h3 { font-size: var(--step-1); }
.help-card p { color: var(--fg-muted); font-size: 0.9375rem; }
.help-card .go { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
@media (max-width: 860px) { .help-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink-line); padding-block: 56px 40px; font-size: 0.875rem; color: var(--fg-muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); font-weight: 500; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: #c3c7e0; }
.footer-grid a:hover { color: var(--fg); }
.footer-base { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Utilities ---------- */
.stack-sm { display: grid; gap: 12px; }
.stack { display: grid; gap: 20px; }
.mt-lg { margin-top: clamp(40px, 6vw, 72px); }
.center-sm { text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Small phones: stack "by Dyber" under the wordmark so the header stays on one line. */
@media (max-width: 480px) {
  .brand > span { display: grid; line-height: 1.15; }
}
@media (max-width: 640px) {
  .code pre { padding-top: 46px; padding-right: 20px; }
}
