:root {
  --navy: #0B1F3A;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --red: #B91C1C;
  --amber: #D97706;
  --slate: #334155;
  --muted: #64748B;
  --light: #F1F5F9;
  --white: #ffffff;
  --max: 1080px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(11, 31, 58, 0.12);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--slate);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #E2E8F0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; gap: 1rem; }
.logo { font-weight: 800; color: var(--navy); letter-spacing: -0.02em; font-size: 1.1rem; text-decoration: none; }
.logo span { color: var(--teal); }
.nav-links { display: flex; gap: 1.25rem; align-items: center; font-size: 0.95rem; }
.nav-links a { color: var(--slate); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; padding: 0.8rem 1.35rem;
  font-weight: 700; cursor: pointer; text-decoration: none; font-size: 0.98rem;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid #CBD5E1; }
.btn-ghost:hover { background: var(--light); text-decoration: none; }
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(13,148,136,0.16), transparent 60%),
    radial-gradient(700px 360px at 90% 0%, rgba(11,31,58,0.08), transparent 55%),
    white;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.eyebrow { color: var(--teal-dark); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 0.75rem; }
h1 { color: var(--navy); font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 38rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.fine { font-size: 0.85rem; color: var(--muted); margin: 0; }
.cover-card {
  background: white; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid #E2E8F0; overflow: hidden;
}
.cover-card img { width: 100%; }
.cover-caption { padding: 0.75rem 1rem; font-size: 0.82rem; color: var(--muted); background: var(--light); }
.section { padding: 4rem 0; }
.section.alt { background: var(--light); }
h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.section-lead { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat {
  background: white; border: 1px solid #E2E8F0; border-radius: var(--radius);
  padding: 1.25rem 1.35rem; box-shadow: 0 4px 16px rgba(11,31,58,0.04);
}
.stat strong { display: block; color: var(--navy); font-size: 1.7rem; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.stat p { margin: 0; font-size: 0.95rem; }
.stat cite { display: block; margin-top: 0.65rem; font-size: 0.78rem; color: var(--muted); font-style: normal; }
.stat cite a { color: var(--muted); text-decoration: underline; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step {
  background: white; border-radius: var(--radius); padding: 1.35rem; border: 1px solid #E2E8F0;
}
.step .num {
  width: 2rem; height: 2rem; border-radius: 999px; background: var(--navy); color: white;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem;
  margin-bottom: 0.85rem;
}
.step h3 { margin: 0 0 0.4rem; color: var(--navy); font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.price {
  background: white; border: 1px solid #E2E8F0; border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.price .tag.soon { background: var(--light); color: var(--muted); }
.price.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); position: relative; }
.price .tag {
  position: absolute; top: -0.7rem; left: 1rem; background: var(--teal); color: white;
  font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 999px; letter-spacing: 0.03em;
}
.price h3 { margin: 0; color: var(--navy); }
.price .amt { font-size: 1.9rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.price .amt span { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.price ul { margin: 0.4rem 0 1rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; flex: 1; }
.price ul li { margin: 0.3rem 0; }
.faq details {
  background: white; border: 1px solid #E2E8F0; border-radius: 12px; padding: 0.95rem 1.1rem; margin-bottom: 0.65rem;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.95rem; }
.waitlist {
  background: var(--navy); color: white; border-radius: calc(var(--radius) + 4px);
  padding: 2rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: center;
}
.waitlist h2 { color: white; margin: 0 0 0.5rem; }
.waitlist p { color: #CBD5E1; margin: 0; }
.waitlist form { display: flex; flex-direction: column; gap: 0.65rem; }
.waitlist input {
  border: none; border-radius: 999px; padding: 0.85rem 1.1rem; font-size: 1rem;
}
.waitlist .btn { width: 100%; }
.waitlist .note { font-size: 0.78rem; color: #94A3B8; }
.footer {
  border-top: 1px solid #E2E8F0; padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.88rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.draft-banner {
  background: #FEF3C7; color: #92400E; text-align: center; padding: 0.55rem 1rem;
  font-size: 0.85rem; font-weight: 700;
}
.legal { padding: 3rem 0 4rem; max-width: 720px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 1.75rem; }
.legal p, .legal li { color: var(--muted); }
@media (max-width: 900px) {
  .hero-grid, .stats, .steps, .pricing, .waitlist { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
  .hero { padding-top: 2.5rem; }
  .pricing { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pricing { grid-template-columns: 1fr; }
}

#waitlist-status.ok { color: #5EEAD4; font-weight: 600; }
#waitlist-status.err { color: #FCA5A5; font-weight: 600; }
#waitlist-submit:disabled { opacity: 0.65; cursor: wait; }

/* ---------- free scan ---------- */
.scan-section { background: linear-gradient(180deg, #ffffff, #F8FAFC); }
.scan-form { background: white; border: 1px solid #E2E8F0; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); display: grid; gap: 0.75rem; max-width: 760px; }
.scan-row { display: flex; gap: 0.6rem; }
.scan-form input[type=text], .scan-form input[type=email] { flex: 1; border: 1px solid #CBD5E1; border-radius: 999px; padding: 0.85rem 1.1rem; font-size: 1rem; width: 100%; }
.consent { display: flex; gap: 0.5rem; align-items: center; font-size: 0.92rem; color: var(--slate); }
.muted { color: var(--muted); }
#scan-status.err { color: var(--red); font-weight: 600; }
.scan-result { margin-top: 1.5rem; background: white; border: 1px solid #E2E8F0; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); max-width: 760px; }
.result-top { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1rem; }
.grade-badge { width: 84px; height: 84px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800; color: white; background: var(--slate); flex: none; }
.grade-A { background: #059669; } .grade-B { background: #2563EB; } .grade-C { background: #D97706; } .grade-D { background: #EA580C; } .grade-F { background: #B91C1C; }
.result-target { font-weight: 700; color: var(--navy); word-break: break-all; }
.counts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0; }
.chip { font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--light); }
.chip.critical { color: #B91C1C; } .chip.high { color: #EA580C; } .chip.medium { color: #B45309; } .chip.low { color: #475569; } .chip.info { color: #64748B; }
.worst { border-left: 4px solid var(--red); background: #FEF2F2; border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1rem; }
.worst.ok { border-color: #059669; background: #ECFDF5; }
.worst h3 { margin: 0 0 0.35rem; color: var(--navy); font-size: 1.05rem; }
.worst p { margin: 0.25rem 0; font-size: 0.95rem; }
.worst code { font-size: 0.82rem; word-break: break-all; }
.sev-pill { display: inline-block; font-size: 0.7rem; font-weight: 800; color: white; padding: 0.15rem 0.5rem; border-radius: 999px; margin-right: 0.4rem; vertical-align: middle; }
.sev-critical { background: #B91C1C; } .sev-high { background: #EA580C; } .sev-medium { background: #D97706; } .sev-low { background: #64748B; } .sev-info { background: #94A3B8; }
.locked-wrap { position: relative; }
.locked-wrap h3 { color: var(--navy); font-size: 1rem; margin: 0 0 0.5rem; }
.locked { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.4rem; }
.locked li { padding: 0.55rem 0.75rem; background: var(--light); border-radius: 8px; font-size: 0.92rem; filter: blur(4px); user-select: none; }
.locked li:first-child, .locked li:nth-child(2) { filter: blur(2.5px); }
.locked-cta { background: var(--navy); color: white; border-radius: 12px; padding: 1rem 1.1rem; }
.locked-cta p { margin: 0 0 0.75rem; color: #E2E8F0; font-size: 0.95rem; }
@media (max-width: 560px) { .scan-row { flex-direction: column; } .result-top { align-items: flex-start; } }
