:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6475;
  --border: #e3e7ef;
  --primary: #1f4fd1;
  --primary-hover: #183fa8;
  --primary-tint: #e8eefc;
  --good: #15803d;
  --good-tint: #e7f6ec;
  --warning: #b45309;
  --warning-tint: #fdf1e3;
  --critical: #b91c1c;
  --critical-tint: #fdeaea;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #111831;
    --surface: #141c36;
    --text: #e8ecf5;
    --muted: #9aa4b8;
    --border: #243052;
    --primary: #6c8cff;
    --primary-hover: #8aa3ff;
    --primary-tint: #1b2550;
    --good: #4ade80;
    --good-tint: #12321f;
    --warning: #fbbf24;
    --warning-tint: #3a2c0d;
    --critical: #f87171;
    --critical-tint: #3b1616;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.fine { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; padding: 0.8rem 1.2rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.95rem; }
.btn:disabled { opacity: 0.6; cursor: wait; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0b1020; } }

/* Nav */
.nav {
  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(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-inner .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }

/* Waitlist form */
.waitlist-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; max-width: 520px; }
.waitlist-form input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 0.8rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit;
}
.waitlist-form input[type="email"]:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-status { flex-basis: 100%; margin: 0; min-height: 1.4em; font-size: 0.95rem; }
.form-status.ok { color: var(--good); }
.form-status.error { color: var(--critical); }
.center-form { margin-left: auto; margin-right: auto; justify-content: center; }

/* Product mock */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.mock-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-title { margin-left: 10px; font-weight: 600; font-size: 0.95rem; }
.mock-list { list-style: none; margin: 0; padding: 8px 0; }
.mock-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.mock-list li + li { border-top: 1px solid var(--border); }
.mock-list strong { display: block; font-size: 0.98rem; }
.mock-list span { color: var(--muted); font-size: 0.88rem; }
.pill { flex: none; font-size: 0.82rem !important; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill-critical { background: var(--critical-tint); color: var(--critical) !important; }
.pill-warning { background: var(--warning-tint); color: var(--warning) !important; }
.pill-good { background: var(--good-tint); color: var(--good) !important; }

/* Sections */
.section { padding: 80px 0; }
.alt, .problem { background: var(--bg-alt); }
.problem { padding: 64px 0; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); font-weight: 700; margin-bottom: 12px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.features article { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.features p { color: var(--muted); margin: 0; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; align-items: start; }
.plan { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.badge { position: absolute; top: -12px; left: 24px; margin: 0; padding: 2px 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 0.8rem; font-weight: 600; }
@media (prefers-color-scheme: dark) { .badge { color: #0b1020; } }
.price { font-size: 2.2rem; font-weight: 700; margin: 0 0 1rem; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 6px 0 6px 24px; position: relative; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

@media (max-width: 900px) {
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 0.75rem 0 0; }

.cta { background: var(--primary-tint); }

.footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: 0.92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
