:root {
  --bg: #0e1116;
  --bg-raised: #161b22;
  --bg-card: #1a212b;
  --fg: #e8edf3;
  --fg-muted: #a8b4c0;
  --accent: #f0742e;
  --accent-hover: #ff8a47;
  --border: #2a3340;
  --green: #3fb96a;
  --max: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
p  { color: var(--fg-muted); }

a { color: var(--fg); text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 17, 22, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.15rem; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a { color: var(--fg-muted); font-size: 0.95rem; transition: color .15s; }
.nav nav a:hover { color: var(--fg); }
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px; color: var(--fg); cursor: pointer;
  padding: 6px; line-height: 0;
}
.nav-toggle:hover { background: var(--bg-raised); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #14110d !important;
  font-weight: 650;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  color: var(--fg) !important;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-raised); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .kicker {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 22px;
  background: var(--bg-raised);
}
.hero p.lede {
  max-width: 640px; margin: 20px auto 32px;
  font-size: 1.15rem;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .subnote { margin-top: 14px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card .icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(240, 116, 46, 0.12);
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 1.2rem;
}
.card p { font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-size: 2.4rem; font-weight: 800; color: var(--accent);
  opacity: 0.85; line-height: 1; margin-bottom: 10px;
}
.step p { font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--accent); position: relative; }
.tier.featured::before {
  content: "Most popular";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #14110d;
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 12px; border-radius: 100px; white-space: nowrap;
}
.tier .price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 2px; }
.tier .price span { font-size: 0.95rem; font-weight: 400; color: var(--fg-muted); }
.tier ul { list-style: none; margin: 18px 0 24px; flex: 1; }
.tier li { padding: 5px 0 5px 24px; position: relative; font-size: 0.92rem; color: var(--fg-muted); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.tier .btn { text-align: center; }
.pricing-note { text-align: center; margin-top: 34px; font-size: 0.9rem; max-width: 660px; margin-left: auto; margin-right: auto; }

/* ---------- Comparison strip ---------- */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-list summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 10px; font-size: 0.95rem; }

/* ---------- Waitlist ---------- */
.waitlist-box {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 44px 32px;
}
.waitlist-form { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.waitlist-form input {
  flex: 1; min-width: 220px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; font-size: 1rem;
}
.waitlist-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.waitlist-msg { margin-top: 14px; font-size: 0.9rem; min-height: 1.4em; }
.waitlist-msg.ok { color: var(--green); }
.waitlist-msg.err { color: #e0664f; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--fg-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--fg); }
.fine { font-size: 0.8rem; width: 100%; margin-top: 8px; }

/* ---------- Legal / long-form prose ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 72px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--fg-muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 8px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--fg-muted); font-size: 0.97rem; }
.legal ul { margin: 8px 0 8px 22px; }
.legal li { padding: 3px 0; }
.legal a { color: var(--accent); }
.legal .draft-banner {
  background: rgba(240, 116, 46, 0.10);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 32px;
  font-size: 0.9rem; color: var(--fg);
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound .code { font-size: 4rem; font-weight: 800; color: var(--accent); line-height: 1; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--fg); font-weight: 650; }
td { color: var(--fg-muted); }
td:first-child { color: var(--fg); }

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  /* Collapse the nav into a dropdown panel toggled by the hamburger. */
  .nav nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-raised); border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px;
    display: none;
  }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 10px 4px; font-size: 1rem; }
  .nav nav a.btn { text-align: center; margin-top: 6px; }
  .hero { padding: 64px 0 48px; }
  section { padding: 52px 0; }
}
