/* Roadmap landing page. No external fonts or scripts: system fonts only. */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f0ede6;
  --ink: #12161f;
  --ink-2: #2e3440;
  --muted: #5a6170;
  --line: #e2ddd3;
  --accent: #0f7b5f;
  --accent-hover: #0b674f;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1eb;
  --gate: #a35c00;
  --gate-soft: #fbefdc;
  --danger: #b42318;
  --focus: #1b6fd1;
  --shadow: 0 1px 2px rgba(18, 22, 31, .05), 0 8px 24px rgba(18, 22, 31, .06);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161b22;
    --surface-2: #1c222b;
    --ink: #edeff2;
    --ink-2: #cdd3db;
    --muted: #9aa3af;
    --line: #2a313b;
    --accent: #3cc79a;
    --accent-hover: #5cd6ae;
    --accent-ink: #062018;
    --accent-soft: #12352b;
    --gate: #f0a23b;
    --gate-soft: #3a2a12;
    --danger: #ff8a7a;
    --focus: #7ab4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }

.sr-only {
  position: absolute; 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: -48px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; }
.brand img { display: block; }
.top-cta {
  font-size: .9375rem; font-weight: 650; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.top-cta:hover { border-color: var(--accent); }

/* Hero */
.hero { display: grid; gap: 40px; padding-top: 16px; padding-bottom: 56px; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; padding-top: 40px; padding-bottom: 80px; }
  .hero .demo { position: sticky; top: 24px; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; font-weight: 600; letter-spacing: .01em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { margin-top: 14px; font-size: clamp(2.25rem, 1.35rem + 4.2vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.lede { margin-top: 18px; font-size: 1.125rem; color: var(--ink-2); max-width: 34em; }

/* The beta: how to get in (the card the waitlist form used to be, same look) */
.beta {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); max-width: 520px;
}
@media (min-width: 640px) { .beta { padding: 24px; } }
.beta-title { font-size: 1.25rem; }
.beta-title + p { margin-top: 8px; color: var(--ink-2); }
.beta-signin { margin-top: 14px; font-size: .9375rem; color: var(--muted); text-align: center; }
.beta-signin a { color: var(--ink); font-weight: 650; }
.beta-signin a:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 18px; min-height: 52px; padding: 12px 20px;
  font: inherit; font-size: 1.0625rem; font-weight: 700; text-decoration: none;
  color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 12px; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-inline { width: auto; }
.fine { margin-top: 12px; font-size: .8125rem; color: var(--muted); line-height: 1.5; }

/* Demo roadmap */
.demo {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 20px; box-shadow: var(--shadow);
}
@media (min-width: 640px) { .demo { padding: 28px; } }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.demo-head h2 { font-size: 1.25rem; }
.tag { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

.route { list-style: none; margin: 0; padding: 0; position: relative; }
.step { position: relative; padding: 0 0 20px 36px; }
.step::before { /* the line joining one step to the next */
  content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--line);
}
.step.done::before { background: var(--accent); }
.step.finish { padding-bottom: 0; }
.step.finish::before { display: none; }
.node {
  position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface);
}
.gate .node { border-radius: 4px; transform: rotate(45deg) scale(.82); border-color: var(--gate); }
.done .node { background: var(--accent); border-color: var(--accent); }
.done .node::after { /* tick */
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.gate.done .node::after { transform: rotate(0deg); left: 5px; top: 1px; }
.current .node { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.finish .node { background: var(--ink); border-color: var(--ink); border-radius: 50%; }
.step-label { font-weight: 650; }
.done .step-label { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.step-meta { margin-top: 2px; font-size: .875rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kind { font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.gate .kind { background: var(--gate-soft); color: var(--gate); }
.bar { margin-top: 8px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 62%; background: var(--accent); border-radius: inherit; }
.ready { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.ready.flat { color: var(--gate); font-size: 1.25rem; }

.demo-control { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pace-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pace-row label { font-size: .875rem; color: var(--muted); font-weight: 600; }
.pace-row output { font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
#pace { width: 100%; margin: 10px 0 6px; accent-color: var(--accent); height: 28px; }
.demo-note { font-size: .9375rem; color: var(--ink-2); min-height: 1.55em; }
.demo figcaption, .demo > figcaption { margin-top: 14px; font-size: .8125rem; color: var(--muted); }

/* Sections */
.band { padding-block: 56px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .band { padding-block: 72px; } }
.band > h2, .coach h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 780; }

.three { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 760px) { .three { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.three li { counter-increment: step; }
.three li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: .9375rem; margin-bottom: 14px;
}
.three h3, .trust h3 { font-size: 1.125rem; margin-bottom: 6px; }
.three p, .trust p { color: var(--ink-2); }

.coach { display: grid; gap: 28px; }
@media (min-width: 860px) { .coach { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.coach > div:first-child p { margin-top: 14px; font-size: 1.0625rem; color: var(--ink-2); }
.coach > div:first-child p.muted { font-size: .9375rem; color: var(--muted); }
.chat { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .9375rem; line-height: 1.45; }
.msg.you { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }

.trust { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

.founder blockquote { margin: 0; max-width: 46rem; font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); line-height: 1.5; font-weight: 500; }
.founder blockquote p + p { margin-top: 14px; color: var(--ink-2); }

/* Claude or Grok: names only, in the same neutral cards (no logos: see docs/AI-PROVIDERS.md). */
.choice-intro { margin-top: 14px; max-width: 46rem; font-size: 1.0625rem; color: var(--ink-2); }
.trust.pick { max-width: 46rem; }
@media (min-width: 640px) { .trust.pick { grid-template-columns: repeat(2, 1fr); } }
.choice-note { margin-top: 18px; max-width: 46rem; font-size: .9375rem; color: var(--muted); }
.foot .tm { margin-top: 8px; font-size: .8125rem; }

.faq { margin-top: 20px; max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 650; font-size: 1.0625rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

.closer { text-align: center; }
.closer .btn { margin-top: 20px; }
.closer-note { margin-top: 12px; font-size: .9375rem; color: var(--muted); }

/* Simple pages (privacy, 404) */
.page { padding-block: 32px 72px; max-width: 46rem; }
.page h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 2.75rem); }
.page h2 { font-size: 1.25rem; margin-top: 32px; margin-bottom: 8px; }
.page p, .page li { color: var(--ink-2); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 1.2em; margin: 8px 0 0; }
.page li + li { margin-top: 6px; }
.page .lede { margin-top: 14px; }
.page .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.updated { color: var(--muted); font-size: .875rem; margin-top: 8px; }

/* Footer */
.foot { padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.foot a { color: inherit; }
