:root {
  --bg: #0d1117;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --brand: #4f8cff;
  --brand2: #6ee7b7;
  --warn: #f0883e;
  --danger: #f85149;
  --ok: #3fb950;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
main { max-width: 960px; margin: 0 auto; padding: 0 20px 80px; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1000px; margin: 0 auto;
}
.nav .brand { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.nav .brand span { color: var(--brand); }
.nav nav { display: flex; gap: 20px; align-items: center; }
.nav nav a:not(.btn) { color: var(--muted); }

.hero { text-align: center; padding: 70px 0 30px; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem;
  color: var(--brand2); font-weight: 700;
}
.hero h1 { font-size: 2.6rem; margin: 12px 0; line-height: 1.15; }
.lead { max-width: 640px; margin: 0 auto 26px; color: var(--muted); font-size: 1.1rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; }
.fineprint { color: var(--muted); font-size: 0.8rem; margin-top: 12px; }
.fineprint + .fineprint { margin-top: 4px; }
.muted { color: var(--muted); }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 40px 0;
}
.stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px; text-align: center;
}
.stat strong { display: block; font-size: 1.5rem; color: var(--brand2); }
.stat span { color: var(--muted); font-size: 0.85rem; }

.how, .pricing, .honesty { padding: 40px 0; }
.how h2, .pricing h2, .honesty h2 { text-align: center; margin-bottom: 26px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px;
}
.step .num {
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column;
}
.plan.highlight { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan h3 { margin: 0; }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: 10px 0 2px; }
.plan .price span { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.plan .blurb { color: var(--muted); min-height: 3em; }
.plan ul { padding-left: 18px; margin: 14px 0 20px; font-size: 0.92rem; }
.plan ul li { margin-bottom: 6px; }
.plan .btn { text-align: center; margin-top: auto; }

.honesty { border-top: 1px solid var(--border); }
.honesty p { max-width: 720px; margin: 0 auto; color: var(--muted); }

.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 30px; margin-top: 24px;
}
.panel h1 { margin-top: 0; }
.audit-form label { display: block; margin-bottom: 16px; font-weight: 600; }
.audit-form input[type=email], .audit-form input[type=password],
.audit-form input, .audit-form textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-family: inherit;
}
.audit-form textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
.opt { color: var(--muted); font-weight: 400; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meta { margin: 6px 0 18px; }
.meta summary { cursor: pointer; color: var(--brand); font-weight: 600; }

.flash { padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-weight: 600; }
.flash-error { background: rgba(248, 81, 73, 0.12); border: 1px solid var(--danger); color: var(--danger); }

.score-wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin: 20px 0 30px; }
.gauge {
  --score: 0;
  width: 150px; height: 150px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(var(--brand2) calc(var(--score) * 1%), var(--border) 0);
  display: flex; align-items: center; justify-content: center;
}
.gauge-inner {
  width: 118px; height: 118px; border-radius: 50%; background: var(--panel);
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
}
.gauge-inner strong { font-size: 2.4rem; }
.leak-amount { font-size: 2.2rem; font-weight: 800; margin: 0; color: var(--warn); }
.leak-amount.muted { color: var(--muted); }

.delta { border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 30px; }
.delta.up { border-color: var(--ok); }
.delta.down { border-color: var(--warn); }
.delta-changes { margin: 10px 0 0; }
.delta-changes li { margin-bottom: 6px; }

.scorecard { width: 100%; border-collapse: collapse; margin: 14px 0 30px; }
.scorecard th, .scorecard td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.scorecard th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.scorecard tr.missing td { background: rgba(248, 81, 73, 0.06); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
td .fineprint { display: block; margin: 2px 0 0; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 0.72rem;
  font-weight: 700; border: 1px solid var(--border); color: var(--muted); margin-left: 4px;
}
.tag-up { color: var(--ok); border-color: var(--ok); }
.tag-down { color: var(--danger); border-color: var(--danger); }
.tag-new { color: var(--brand); border-color: var(--brand); }

.alert { padding: 14px 18px; border-radius: 10px; margin: 16px 0; }
.alert-warn { background: rgba(240, 136, 62, 0.1); border: 1px solid var(--warn); }

.wins { padding-left: 20px; }
.wins li { margin-bottom: 10px; }

.rewrite {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 14px;
}
.rewrite summary { font-weight: 800; cursor: pointer; }
.splits { color: var(--muted); }
.email-block { border-top: 1px dashed var(--border); margin-top: 12px; padding-top: 12px; }
.subjects li { margin-bottom: 4px; }
.copy {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

.footer { border-top: 1px solid var(--border); text-align: center; padding: 26px; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 720px) {
  .stats, .steps, .plans { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .grid2 { grid-template-columns: 1fr; }
}