/* Layout: left-aligned editorial column, product queue mock as the hero's right half,
   hairline-separated lists instead of card grids, one navy band for the waitlist. */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0f1b33;
  --muted: #51607a;
  --line: #dde3ee;
  --navy: #12254a;
  --on-navy: #f3f6fc;
  --on-navy-muted: #b4c0d9;
  --accent: #f08a1c;
  --accent-ink: #1b1204;
  --accent-text: #b85500;
  --good: #0f7a4d;
  --good-bg: #e2f4ec;
  --info: #1d55b8;
  --info-bg: #e4ecfb;
  --warn: #8a5a00;
  --warn-bg: #fbefd3;
  --quiet: #55617a;
  --quiet-bg: #e9edf4;
  --shadow: 0 1px 2px rgba(15, 27, 51, .06), 0 12px 32px -12px rgba(15, 27, 51, .18);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1222;
    --surface: #111b31;
    --ink: #e8eefb;
    --muted: #9ba9c5;
    --line: #233150;
    --navy: #15274d;
    --on-navy: #f3f6fc;
    --on-navy-muted: #b4c0d9;
    --accent: #ff9a3d;
    --accent-ink: #1b1204;
    --accent-text: #ffab5c;
    --good: #6fd9a8;
    --good-bg: #12352a;
    --info: #8fb4ff;
    --info-bg: #17294f;
    --warn: #f0c366;
    --warn-bg: #3a2c0c;
    --quiet: #a3afc8;
    --quiet-bg: #1c2740;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a1222;
  --surface: #111b31;
  --ink: #e8eefb;
  --muted: #9ba9c5;
  --line: #233150;
  --navy: #15274d;
  --on-navy: #f3f6fc;
  --on-navy-muted: #b4c0d9;
  --accent: #ff9a3d;
  --accent-ink: #1b1204;
  --accent-text: #ffab5c;
  --good: #6fd9a8;
  --good-bg: #12352a;
  --info: #8fb4ff;
  --info-bg: #17294f;
  --warn: #f0c366;
  --warn-bg: #3a2c0c;
  --quiet: #a3afc8;
  --quiet-bg: #1c2740;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.005em; line-height: 1.25; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 20; background: var(--surface); padding: 8px 12px; }
.eyebrow {
  font: 500 .78rem/1 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
}
.lede { color: var(--muted); font-size: 1.15rem; max-width: 34em; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section.flush-top { padding-top: 0; }
.section-head { display: grid; gap: 14px; max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p:not(.eyebrow) { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { font: 700 1.3rem/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.logo span { color: var(--accent-text); }
.nav { display: flex; gap: 24px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; }

/* Buttons and form */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .92rem; }

.waitlist { display: grid; gap: 10px; max-width: 30rem; }
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit;
}
.waitlist input[type="email"]::placeholder { color: var(--muted); opacity: .8; }
.waitlist label { font-size: .9rem; font-weight: 600; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-msg { font-size: .95rem; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--accent-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--accent-text); }

.queue {
  min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.queue-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font: 500 .78rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.queue li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.queue li:last-child { border-bottom: 0; }
.queue .brand { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.queue .meta { grid-column: 1 / -1; font: 400 .8rem/1.4 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
.chip {
  display: inline-block; padding: 5px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  background: var(--quiet-bg); color: var(--quiet);
}
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.queue-foot { padding: 10px 18px; background: var(--bg); border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

/* How it works */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps { display: grid; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 6px 14px;
  padding-block: 22px; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero); grid-row: span 2;
  font: 500 .9rem/1.6 var(--font-mono); color: var(--accent-text);
}
.steps p { color: var(--muted); grid-column: 2; }

.draft { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); position: sticky; top: 88px; }
.draft-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; font-size: .88rem; }
.draft-head div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 8px; }
.draft-head dt { color: var(--muted); font-family: var(--font-mono); font-size: .78rem; padding-top: 2px; }
.draft-head dd { overflow-wrap: anywhere; }
.draft-body { padding: 20px; display: grid; gap: 12px; font-size: .97rem; }
.draft-body mark { background: var(--warn-bg); color: var(--ink); padding: 1px 4px; border-radius: 4px; }
.draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.draft-actions .fake-btn { padding: 7px 14px; border-radius: 8px; font-size: .88rem; font-weight: 600; border: 1px solid var(--line); }
.draft-actions .fake-btn.primary { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.draft-actions .form-note { margin-left: auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.features li { display: grid; gap: 8px; padding-block: 26px; border-top: 1px solid var(--line); align-content: start; }
.features p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Roadmap */
.roadmap { background: var(--surface); border-block: 1px solid var(--line); }
.roadmap-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.roadmap-list li { display: grid; gap: 8px; align-content: start; }
.roadmap-list p { color: var(--muted); font-size: .98rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding-block: 18px; cursor: pointer; list-style: none;
  font: 600 1.08rem/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--font-mono); color: var(--accent-text); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 38em; }

/* Waitlist band */
.band { background: var(--navy); color: var(--on-navy); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.band .copy { display: grid; gap: 14px; }
.band .copy p { color: var(--on-navy-muted); max-width: 30em; }
.band .eyebrow { color: var(--accent); }
.band .form-note { color: var(--on-navy-muted); }
.band .form-msg.ok { color: #8fe3bb; }
.band .form-msg.err { color: #ffc08a; }
.band .waitlist input[type="email"] { background: #ffffff; color: #0f1b33; border-color: transparent; }
.band .waitlist input[type="email"]::placeholder { color: #51607a; }

/* Footer */
.site-footer { padding-block: 36px 48px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.foot-row a { color: var(--ink); }
.disclaimer { font-size: .82rem; max-width: 60em; }

/* Plain text pages */
.prose { max-width: 42em; display: grid; gap: 18px; padding-block: clamp(40px, 7vw, 80px); }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.3rem; margin-top: 14px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }

@media (max-width: 860px) {
  .hero-grid, .how-grid, .faq-grid, .band .wrap { grid-template-columns: minmax(0, 1fr); }
  .features, .roadmap-list { grid-template-columns: minmax(0, 1fr); }
  .draft { position: static; }
  .nav { display: none; }
}
@media (max-width: 420px) {
  .waitlist .btn { flex: 1 1 100%; }
  .queue li { grid-template-columns: minmax(0, 1fr); }
  .queue .chip { justify-self: start; }
  .draft-actions .form-note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
