/* Veyras — shared styles. Plain CSS, no build step. */

/* ---------- Font ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap does not shift layout. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 99%;
  ascent-override: 93%;
  descent-override: 27%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --paper: #eef2f0;
  --paper-2: #e2e9e6;
  --surface: #f8faf9;
  --ink: #17222b;
  --muted: #46555f;
  --rule: #b5c1bb;
  --accent: #2945c7;
  --on-accent: #ffffff;
  --conflict: #a8300f;
  --ok: #16684a;
  --hl-ok: #c9e6d7;
  --hl-conflict: #f6cdbf;
  --hl-miss: #e7e1bf;

  --cta-bg: #2945c7;
  --cta-fg: #ffffff;
  --band-bg: #17222b;
  --band-fg: #eef2f0;
  --band-muted: #b3c0c8;
  --band-accent: #aab9ff;
  --band-rule: #3b4953;

  --font: "Bricolage Grotesque", "Bricolage Fallback", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 2rem);
  --wrap: 72rem;
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --header-h: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1519;
    --paper-2: #131c21;
    --surface: #182229;
    --ink: #e4eae7;
    --muted: #a3b1b9;
    --rule: #2c3a44;
    --accent: #8fa3ff;
    --on-accent: #0e1519;
    --conflict: #ff9172;
    --ok: #6fd6a2;
    --hl-ok: #1d3d30;
    --hl-conflict: #4d2419;
    --hl-miss: #3b3820;

    --cta-bg: #8fa3ff;
    --cta-fg: #0e1519;
    --band-bg: #e4eae7;
    --band-fg: #0e1519;
    --band-muted: #3a4851;
    --band-accent: #2945c7;
    --band-rule: #b1bdb7;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
a:not([class]) { text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:not([class]):hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }

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

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.wrap-narrow { width: min(46rem, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: .75rem; }

/* Display type: high optical size, condensed, heavy, tight. */
.display, h1, h2 {
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -.025em;
  line-height: 1;
}
h2 {
  font-size: clamp(2.25rem, 5.4vw, 4rem);
  text-wrap: balance;
}
h3 {
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.lede { font-size: clamp(1.1875rem, 2vw, 1.4375rem); line-height: 1.5; }
.muted { color: var(--muted); }

.section { padding-block: var(--section-y); }
.tint { background: var(--paper-2); }

/* ---------- Buttons, pill ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px var(--ink); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 2.5rem; padding: .45rem 1.1rem; font-size: .9375rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .2rem .7rem .2rem .55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--conflict);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -.02em;
  text-decoration: none;
  line-height: 1;
}
.brand img { width: 1.5rem; height: 1.5rem; border-radius: 6px; }
.bar .pill { margin-right: auto; }

.menu-btn {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block;
  width: 1.375rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, background .2s ease;
}
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { width: 100%; padding-bottom: .75rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: .75rem; }
.site-nav li a {
  display: inline-block;
  padding: .35rem 0;
  font-weight: 550;
  text-decoration: none;
}
.site-nav li a:hover { text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 49.9375em) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .js .site-nav[hidden] { display: none; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li a {
    display: block;
    padding: .8rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.125rem;
  }
}
@media (min-width: 50em) {
  .bar { flex-wrap: nowrap; gap: 1rem; }
  .bar .pill { margin-right: 0; order: 3; }
  .site-nav {
    display: flex !important;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    width: auto;
    padding: 0;
    order: 2;
    margin-left: 1rem;
  }
  .site-nav ul { margin: 0; gap: 0 1.75rem; }
  .site-nav .btn { margin-left: 1rem; }
  .bar .pill { order: 4; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.5rem, 5vw, 3.5rem); }
.hero h1 { container-type: inline-size; }
.wordmark {
  display: block;
  font-size: 46cqi;
  line-height: .8;
  letter-spacing: -.02em;
  white-space: nowrap;
  margin-bottom: .1em;
}
.headline {
  display: block;
  max-width: 20ch;
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hl {
  background-image: linear-gradient(var(--hl-ok), var(--hl-ok));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% .42em;
  padding-inline: .04em;
}
.hero-grid { display: grid; gap: 1.75rem; margin-top: clamp(1.25rem, 3vw, 2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 56em) {
  .hero-grid { grid-template-columns: 7fr 5fr; align-items: center; gap: 3rem; }
  .hero-actions { justify-content: flex-end; }
}

/* Mockup: document canvas + review panel */
.mock-fig { position: relative; z-index: 2; margin-top: clamp(2.5rem, 6vw, 4rem); margin-bottom: -4.5rem; }
.mock {
  display: grid;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -34px rgba(8, 20, 30, .45);
  overflow: hidden;
}
.mock-doc { padding: 1.25rem 1.25rem 1.5rem; }
.mock-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: -1.25rem -1.25rem 1.25rem;
  padding: .7rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
}
.mock-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--rule); }
.mock-title {
  margin-bottom: .75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.mock-text { font-size: clamp(1rem, 1.8vw, 1.1875rem); line-height: 1.85; max-width: 38rem; }
.mock-text p + p { margin-top: .75rem; }
.bars { display: grid; gap: .55rem; margin-top: 1.25rem; max-width: 38rem; }
.bars span { display: block; height: .5rem; border-radius: 3px; background: var(--rule); opacity: .6; }
.bars span:nth-child(1) { width: 96%; }
.bars span:nth-child(2) { width: 88%; }
.bars span:nth-child(3) { width: 52%; }

.mk {
  --c: var(--hl-ok);
  background-image: linear-gradient(var(--c), var(--c));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: .08em .15em;
  margin-inline: -.05em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
}
.mk-conflict { --c: var(--hl-conflict); text-decoration: underline wavy var(--conflict); }
.mk-miss { --c: var(--hl-miss); text-decoration: underline dashed var(--muted); }
.mk sup {
  margin-left: .15em;
  font-size: .6em;
  font-weight: 700;
  line-height: 0;
  vertical-align: .6em;
}

.mock-panel { padding: 1.25rem; border-top: 1px solid var(--rule); background: var(--paper-2); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; font-weight: 700; }
.panel-head small { font-weight: 500; color: var(--muted); font-size: .8125rem; }
.flag { padding-block: .85rem; border-top: 1px solid var(--rule); }
.flag-state { display: flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 700; }
.flag-state svg { width: 1rem; height: 1rem; }
.flag-state b {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .6875rem;
}
.flag-claim { margin-top: .25rem; font-weight: 600; line-height: 1.3; }
.flag-src { margin-top: .15rem; font-size: .875rem; color: var(--muted); line-height: 1.4; }
.is-ok { color: var(--ok); }
.is-conflict { color: var(--conflict); }
.is-miss { color: var(--muted); }

.mock-fig figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted); }

@media (min-width: 50em) {
  .mock { grid-template-columns: 1.65fr 1fr; }
  .mock-doc { padding: 1.5rem 2rem 2rem; }
  .mock-bar { margin: -1.5rem -2rem 1.5rem; padding-inline: 2rem; }
  .mock-panel { border-top: 0; border-left: 1px solid var(--rule); padding: 1.5rem; }
}

/* The single load animation: highlighter marks sweep in. */
@media (prefers-reduced-motion: no-preference) {
  .mock .mk {
    animation: sweep .8s cubic-bezier(.3, .6, .2, 1) both;
    animation-delay: calc(.5s + var(--i, 0) * .45s);
  }
  @keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
}

/* ---------- Problem ---------- */
#problem { padding-top: calc(var(--section-y) + 4rem); }
.problem-grid { display: grid; gap: 2.5rem; }
.problem-statement { font-size: clamp(2.5rem, 7vw, 5rem); line-height: .95; }
.notes { border-bottom: 1px solid var(--rule); }
.note {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.note svg { width: 3.5rem; height: 3.5rem; color: var(--conflict); }
.note p { margin-top: .5rem; color: var(--muted); }
@media (min-width: 56em) {
  .problem-grid { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
  .problem-statement-wrap { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Solution ---------- */
.solution-copy { max-width: 36rem; display: grid; gap: 1.25rem; }
.diagram { margin-top: clamp(2rem, 5vw, 3.5rem); }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram .dg-narrow { max-width: 28rem; margin-inline: auto; }
.dg-wide { display: none; }
@media (min-width: 50em) {
  .dg-narrow { display: none; }
  .dg-wide { display: block; }
}
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.5rem; font-size: .9375rem; }
.legend li { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.legend svg { width: 1.125rem; height: 1.125rem; }

/* diagram parts */
.dg-line { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.dg-line.s-ok { stroke: var(--ok); }
.dg-line.s-conflict { stroke: var(--conflict); }
.dg-line.s-miss { stroke: var(--muted); stroke-dasharray: 5 5; }
.dg-box { fill: var(--surface); stroke: var(--rule); stroke-width: 1.5; }
.dg-box.dashed { fill: none; stroke: var(--muted); stroke-dasharray: 6 5; }
.dg-chip { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.dg-text { fill: var(--ink); font-family: var(--font); font-size: 17px; font-weight: 650; }
.dg-sub { fill: var(--muted); font-family: var(--font); font-size: 14px; font-weight: 500; }
.dg-text.sm { font-size: 15px; }
.dg-sub.sm { font-size: 13px; }
.dg-label { fill: var(--muted); font-family: var(--font); font-size: 14px; font-weight: 600; }
.dg-bar { fill: var(--rule); opacity: .7; }
.dg-hl-ok { fill: var(--hl-ok); }
.dg-hl-conflict { fill: var(--hl-conflict); }
.dg-hl-miss { fill: var(--hl-miss); }
.dg-badge { fill: var(--paper); stroke-width: 2; }
.dg-badge.s-ok { stroke: var(--ok); }
.dg-badge.s-conflict { stroke: var(--conflict); }
.dg-badge.s-miss { stroke: var(--muted); }
.dg-icon { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dg-icon.s-ok { stroke: var(--ok); }
.dg-icon.s-conflict { stroke: var(--conflict); }
.dg-icon.s-miss { stroke: var(--muted); }

/* ---------- Features ---------- */
.features-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.features-head p { max-width: 28rem; color: var(--muted); font-size: 1.125rem; }
@media (min-width: 56em) {
  .features-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .features-head p { justify-self: end; }
}
.ico { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tag {
  display: inline-block;
  padding: .1rem .55rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.tag-planned { border-style: dashed; border-color: var(--muted); color: var(--muted); }

.feature-lead {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}
.feature-title { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .6rem; }
.feature-title h3 { display: flex; align-items: center; gap: .6rem; }
.feature-lead h3 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.feature-lead p { color: var(--muted); max-width: 30rem; }
.extract { font-size: 1rem; }
.extract-sentence { line-height: 1.9; }
.extract-list { margin-top: 1rem; border-top: 1px solid var(--rule); }
.extract-list li { display: flex; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.extract-list span { min-width: 4.5rem; color: var(--muted); font-weight: 600; }
.extract-list b { font-weight: 650; }
.extract-note { margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
@media (min-width: 50em) {
  .feature-lead { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
}

.feature-list { display: grid; margin-top: 1rem; }
.feature-item { display: grid; grid-template-columns: 1.5rem 1fr; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.feature-item h3 { font-size: 1.25rem; }
.feature-item p { margin-top: .5rem; color: var(--muted); }
.feature-item .tag { margin-top: .6rem; }
.feature-item.note-cell { border-bottom: 0; color: var(--muted); font-size: .9375rem; align-content: center; }
.feature-item.note-cell p { margin: 0; grid-column: 2; }
@media (min-width: 50em) {
  .feature-list { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
}

/* ---------- How it works ---------- */
.how-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.steps { position: relative; counter-reset: step; max-width: 52rem; }
.steps::before {
  content: "";
  position: absolute;
  left: 2.25rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 0;
  border-left: 2px dashed var(--rule);
}
.step { position: relative; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem; padding-block: 1.25rem; }
.step-num {
  position: relative;
  z-index: 1;
  align-self: start;
  background: var(--paper);
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -.04em;
  line-height: .85;
  text-align: center;
  color: var(--accent);
}
.step h3 { font-size: clamp(1.375rem, 3vw, 1.875rem); margin-top: .25rem; }
.step p { margin-top: .5rem; color: var(--muted); max-width: 34rem; }
.step-formats { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.step-formats li { padding: .1rem .6rem; border: 1px solid var(--rule); border-radius: 4px; font-size: .875rem; font-weight: 600; }
.step-formats-label { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
@media (min-width: 50em) {
  .step { grid-template-columns: 7rem 1fr; gap: 2rem; }
  .steps::before { left: 3.5rem; }
}

/* ---------- Use cases ---------- */
.cases-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.case { display: grid; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--ink); }
.cases { border-bottom: 1px solid var(--ink); }
.case-who p { margin-top: .35rem; color: var(--muted); font-size: .9375rem; }
.case-situation { color: var(--muted); }
.chip { border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); padding: .9rem 1rem 1rem; }
.chip-tag { display: block; margin-bottom: .4rem; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.chip p { display: flex; gap: .6rem; font-weight: 600; line-height: 1.4; }
.chip svg { width: 1.25rem; height: 1.25rem; margin-top: .1rem; color: var(--conflict); flex: none; }
@media (min-width: 56em) {
  .case { grid-template-columns: 1fr 1.2fr 1.1fr; gap: 3rem; align-items: start; }
}

/* ---------- Built with Claude (inverted band) ---------- */
.band { background: var(--band-bg); color: var(--band-fg); }
.band :focus-visible { outline-color: var(--band-accent); }
.band a { color: var(--band-fg); }
.band-grid { display: grid; gap: 2.5rem; }
.band-copy { display: grid; gap: 1.25rem; align-content: start; }
.band-copy p { color: var(--band-muted); font-size: 1.125rem; max-width: 36rem; }
.band-copy p:first-of-type { color: var(--band-fg); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.45; }
.data-box { border: 1px solid var(--band-rule); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2rem); }
.data-box h3 { color: var(--band-fg); }
.data-box > p { margin-top: .5rem; color: var(--band-muted); font-size: .9375rem; }
.data-list { margin-top: 1rem; }
.data-list li { position: relative; padding: .75rem 0 .75rem 1.75rem; border-top: 1px solid var(--band-rule); }
.data-list li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: 1.2rem;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--band-accent);
}
@media (min-width: 56em) {
  .band-grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start; }
}

/* ---------- Roadmap ---------- */
.roadmap-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.track { position: relative; display: grid; gap: 2.5rem; padding-left: 2.25rem; }
.track::before {
  content: "";
  position: absolute;
  left: .6rem;
  top: .6rem;
  bottom: .6rem;
  border-left: 2px solid var(--ink);
}
.stop { position: relative; }
.stop::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: .2rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}
.stop.now::before { background: var(--conflict); border-color: var(--conflict); }
.stop-when { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; font-stretch: 75%; letter-spacing: -.03em; line-height: 1; }
.here {
  display: inline-block;
  margin-left: .6rem;
  padding: .15rem .6rem;
  border-radius: 4px;
  background: var(--conflict);
  color: var(--paper);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: .6em;
}
.stop h3 { margin-top: .75rem; }
.stop p { margin-top: .4rem; color: var(--muted); max-width: 22rem; }
@media (min-width: 50em) {
  .track { grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 3rem 0 0; }
  .track::before { left: 0; right: 0; top: .6rem; bottom: auto; border-left: 0; border-top: 2px solid var(--ink); }
  .stop::before { left: 0; top: -2.9rem; }
}

/* ---------- About ---------- */
.about h2 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: .95; }
.about p { margin-top: 1.5rem; font-size: clamp(1.25rem, 2.4vw, 1.625rem); line-height: 1.45; }
.about .sign { margin-top: 2rem; font-size: 1rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 2.5rem; }
.faq-side { display: grid; gap: 1.25rem; align-content: start; }
.faq-side p { color: var(--muted); max-width: 22rem; }
.faq-list { border-bottom: 1px solid var(--ink); }
.faq-list details { border-top: 1px solid var(--ink); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq-list details[open] > summary::after { transform: rotate(90deg); background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.faq-list summary:focus-visible { outline-offset: -3px; }
.faq-answer { padding: 0 2.5rem 1.5rem 0; color: var(--muted); max-width: 40rem; }
.faq-answer p + p { margin-top: .75rem; }
.faq-answer a { color: var(--ink); }
@media (min-width: 56em) {
  .faq-grid { grid-template-columns: 4fr 7fr; gap: 5rem; }
  .faq-side { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- Early access CTA ---------- */
.cta { padding-block: clamp(1rem, 3vw, 2rem) var(--section-y); }
.cta-block {
  display: grid;
  gap: 1.75rem;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 8px;
  background: var(--cta-bg);
  color: var(--cta-fg);
}
.cta-block :focus-visible { outline-color: var(--cta-fg); }
.cta-block h2 { font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: .95; max-width: 14ch; }
.cta-block p { max-width: 34rem; font-size: 1.1875rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.btn-invert { background: var(--cta-fg); border-color: var(--cta-fg); color: var(--cta-bg); }
.cta-mail { color: var(--cta-fg); font-weight: 650; font-size: 1.125rem; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 3rem 2rem; background: var(--paper-2); border-top: 1px solid var(--rule); }
.foot-grid { display: grid; gap: 2rem; }
.foot-brand .brand { font-size: 2rem; }
.foot-brand p { margin-top: .75rem; max-width: 20rem; color: var(--muted); font-size: .9375rem; }
.foot-col { display: grid; gap: .25rem; align-content: start; }
.foot-col a { display: inline-block; padding: .3rem 0; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
@media (min-width: 50em) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; }
}

/* ---------- Text pages (privacy, 404) ---------- */
.page { padding-block: clamp(3rem, 8vw, 6rem); }
.page h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); margin-bottom: .75rem; }
.page .updated { color: var(--muted); margin-bottom: 2.5rem; }
.page h2 { font-size: clamp(1.625rem, 3.5vw, 2.25rem); margin: 2.5rem 0 .75rem; }
.page p, .page li { max-width: 40rem; }
.page p + p { margin-top: .75rem; }
.page ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .4rem; }
.page .btn { margin-top: 2rem; }
