/* Landing page for the public build. Same look as the app's runway theme:
   black canvas, hairline borders, light-weight headlines, white primary buttons. */

:root {
  --bg: #000000;
  --surface: #121212;
  --surface-2: #0a0a0a;
  --surface-3: #1a1a1a;
  --text: #ffffff;
  --text-soft: #a7a7a7;
  --border: #27272a;
  --good: #4ade80;
  --bad: #f87171;
  --focus: #93c5fd;
  --radius: 8px;
  --font: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--border); border-radius: 4px;
  font: 600 0.95rem/1 var(--font); text-decoration: none; color: var(--text);
  background: transparent; cursor: pointer;
}
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { background: #e9ecf2; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.small { min-height: 36px; padding: 8px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(8px); z-index: 10; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.wordmark { font-weight: 600; text-decoration: none; white-space: nowrap; }
.wordmark code { font: 600 0.95rem var(--mono); letter-spacing: -0.02em; }
.header-nav { display: flex; gap: 20px; margin-left: auto; }
.header-nav a { color: var(--text-soft); text-decoration: none; font-size: 0.9rem; }
.header-nav a:hover { color: var(--text); }
@media (max-width: 760px) {
  .header-nav { display: none; }
  .header-row .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { padding-top: 88px; padding-bottom: 56px; }
h1, .headline { margin: 0; font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; }
.headline { max-width: 18ch; font-size: clamp(2.4rem, 7vw, 4.4rem); }
.headline-line { display: block; }
.eyebrow { margin: 0 0 14px; color: var(--text-soft); font-size: 0.72rem; font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.6px; }
.hero-code { margin: 22px 0 0; font: 1.05rem/1.4 var(--mono); color: var(--text); }
.hero-code .kw { color: var(--text-soft); }
.lede { max-width: 60ch; margin: 20px 0 0; color: var(--text-soft); font-size: 1.15rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin: 16px 0 0; color: var(--text-soft); font-size: 0.85rem; }

/* ---------- stats ---------- */
.stats dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.stats dl > div { padding: 20px; border-left: 1px solid var(--border); }
.stats dl > div:first-child { border-left: 0; }
.stats dt { font-size: 2rem; font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats dd { margin: 2px 0 0; color: var(--text-soft); font-size: 0.85rem; }
@media (max-width: 760px) {
  .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats dl > div { border-left: 0; border-top: 1px solid var(--border); }
  .stats dl > div:nth-child(-n + 2) { border-top: 0; }
  .stats dl > div:nth-child(even) { border-left: 1px solid var(--border); }
  .stats dl > div:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ---------- sections ---------- */
.section { padding-top: 96px; }
h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; }
h3 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.section-lede { max-width: 62ch; margin: 14px 0 0; color: var(--text-soft); }

/* ---------- drill demo ---------- */
.drill-card { margin-top: 28px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.drill-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--text-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.4px; }
.drill-title { margin: 8px 0 14px; }
.drill-code { margin: 0; padding: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); font: 0.88rem/1.55 var(--mono); tab-size: 2; }
.drill-question { margin: 16px 0 10px; }
.drill-choices { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.drill-choice {
  width: 100%; min-height: 44px; padding: 10px 14px; text-align: left;
  border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--text);
  font: 0.95rem/1.4 var(--font); cursor: pointer;
}
.drill-choice:hover:not(:disabled) { background: var(--surface-3); }
.drill-choice:disabled { cursor: default; }
.drill-choice.correct { border-color: var(--good); color: var(--good); }
.drill-choice.wrong { border-color: var(--bad); color: var(--bad); }
.drill-choice .key { display: inline-block; width: 1.6em; color: var(--text-soft); font-family: var(--mono); }
.drill-question code, .drill-choice code, .drill-feedback code { font: 0.9em var(--mono); padding: 1px 4px; border-radius: 3px; background: var(--surface-3); }
.drill-feedback { margin-top: 16px; padding: 14px 16px; border-left: 2px solid var(--text-soft); background: var(--surface-2); }
.drill-feedback strong { display: block; margin-bottom: 4px; }
.drill-fix { margin-top: 12px; }
.drill-fix summary { cursor: pointer; color: var(--text-soft); font-size: 0.9rem; }
.drill-fix .drill-code { margin-top: 10px; }
.drill-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.feature { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.feature p { margin: 8px 0 0; color: var(--text-soft); font-size: 0.95rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.stages { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.stages li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; }
.stages span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; background: var(--surface-3); color: var(--text-soft); font-size: 0.75rem; }

/* ---------- AI + waitlist ---------- */
.ai-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ai-copy > p { color: var(--text-soft); max-width: 58ch; }
.ai-copy h2 { margin-bottom: 16px; }
.rounds { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.rounds li { padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-soft); }
.rounds strong { color: var(--text); font-weight: 500; }
@media (max-width: 860px) { .ai-section { grid-template-columns: 1fr; } }

.waitlist { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 80px; }
.form-intro { margin: 0 0 8px; color: var(--text-soft); }
.waitlist label { margin-top: 6px; font-size: 0.9rem; font-weight: 500; }
.optional { color: var(--text-soft); font-weight: 400; }
.waitlist input, .waitlist select {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text);
  font: 1rem var(--font);
}
.waitlist .btn { margin-top: 10px; }
.form-note { margin: 4px 0 0; color: var(--text-soft); font-size: 0.8rem; }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.9rem; }
.form-status.error { color: var(--bad); }
.joined h3 { margin-bottom: 6px; }
.joined p { margin: 0; color: var(--text-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- founding ---------- */
.founding-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border: 1px solid var(--text-soft); border-radius: var(--radius); }
.founding-card p { max-width: 62ch; margin: 10px 0 0; color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { padding: 18px 0; cursor: pointer; font-weight: 500; list-style-position: outside; }
.faq details p { max-width: 70ch; margin: 0 0 18px; color: var(--text-soft); }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--border); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 40px; color: var(--text-soft); font-size: 0.85rem; }
.footer-row nav { display: flex; gap: 18px; }
.footer-row a { color: var(--text-soft); }

/* ---------- privacy page ---------- */
.prose { max-width: 70ch; padding-top: 64px; }
.prose h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose h2 { margin-top: 40px; font-size: 1.4rem; }
.prose p, .prose li { color: var(--text-soft); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
