:root {
  --bg: #fff8ef;
  --card: #ffffff;
  --text: #2a2118;
  --muted: #6f6254;
  --line: #eadccb;
  --accent: #e8761a;
  --accent-text: #ffffff;
  --screen: #1d1f27; /* matches BG in scripts/make-media.sh */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161b;
    --card: #1f2027;
    --text: #f4ece2;
    --muted: #b3a797;
    --line: #2f3039;
    --accent: #f59a45;
    --accent-text: #1a1206;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 32px 0 56px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 26px; }

.screen { background: var(--screen); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.06); }
.screen .bar { display: flex; gap: 7px; padding: 12px 14px; }
.screen .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.screen .bar i:nth-child(2) { background: #febc2e; } .screen .bar i:nth-child(3) { background: #28c840; }
.code { font: 13px/1.7 ui-monospace, "SF Mono", Menlo, monospace; color: #9aa3b5; padding: 4px 22px 0; white-space: pre; overflow: hidden; }
.code b { color: #f59a45; font-weight: 400; } .code u { color: #7fc8a9; text-decoration: none; }
.screen video { display: block; width: 100%; height: auto; }

form.waitlist { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
form.waitlist input[type=email] {
  flex: 1 1 220px; min-width: 0; font: inherit; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.btn {
  font: inherit; font-weight: 650; border: 0; border-radius: 12px; padding: 13px 20px; cursor: pointer;
  background: var(--accent); color: var(--accent-text); text-decoration: none; display: inline-block; text-align: center;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { font-size: 13px; color: var(--muted); margin: 10px 0 0; max-width: 460px; }
.status { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; }
.status.err { color: #d4483b; }

section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.01em; margin: 0 0 28px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 14px 0 6px; font-size: 20px; }
.card p, .card li { color: var(--muted); margin: 0; font-size: 16px; }
.card ul { padding-left: 18px; margin: 8px 0 0; }
.card .clip { background: var(--screen); border-radius: 12px; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; overflow: hidden; }
.card .clip video { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.card .clip.icon { align-items: center; justify-content: center; font-size: 56px; }

.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.founder { border: 2px solid var(--accent); }
.price { font-size: 44px; font-weight: 800; margin: 6px 0 2px; }
.price small { font-size: 17px; font-weight: 500; color: var(--muted); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 3px 10px; border-radius: 99px; }
.ladder { width: 100%; border-collapse: collapse; font-size: 15px; }
.ladder td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.ladder td:last-child { text-align: right; color: var(--text); font-weight: 650; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 650; font-size: 18px; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); }

.doc { max-width: 720px; padding-bottom: 48px; }
.doc h1 { font-size: 36px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }

@media (max-width: 820px) {
  .hero, .pricing { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: 1fr; }
  nav a:not(:last-child) { display: none; }
  .hero { padding-top: 12px; }
}
