:root {
  --bg: #0b0f14;
  --panel: #121821;
  --panel-2: #172030;
  --line: #222d3d;
  --text: #e6edf6;
  --muted: #8ea0b8;
  --accent: #4ade80;
  --accent-dim: #14532d;
  --warn: #fbbf24;
  --bad: #f87171;
  --brand: #5eead4;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 460px; }
.mid { max-width: 780px; }

/* --- header --- */
header.top {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, .9);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.top .wrap { display: flex; align-items: center; gap: 22px; height: 58px; }
.logo { font-weight: 700; letter-spacing: -.3px; color: var(--text); font-size: 17px; }
.logo span { color: var(--accent); }
nav.main { display: flex; gap: 18px; margin-left: auto; align-items: center; }
nav.main a { color: var(--muted); font-size: 14px; }
nav.main a:hover, nav.main a.on { color: var(--text); text-decoration: none; }

/* --- buttons --- */
.btn {
  display: inline-block; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); padding: 8px 14px; border-radius: 8px; font-size: 14px;
  cursor: pointer; font-weight: 500; text-decoration: none; font-family: inherit;
}
.btn:hover { background: #1e2839; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #07240f; font-weight: 600; }
.btn.primary:hover { background: #6ee79b; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- forms --- */
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 5px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; background: #0d1219; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 14px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 92px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* --- panels --- */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 18px; }
.panel h2 { margin: 0 0 4px; font-size: 16px; }
.panel h2 + .sub { margin-top: 0; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* --- metrics --- */
.metric { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.metric .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.metric .v { font-size: 30px; font-weight: 700; letter-spacing: -1px; margin-top: 4px; }
.metric .d { font-size: 13px; margin-top: 2px; }
.up { color: var(--accent); }
.down { color: var(--bad); }
.flat { color: var(--muted); }

/* --- tables --- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line);
}
td { padding: 10px; border-bottom: 1px solid #1a2230; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- misc --- */
.pill {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--muted); background: var(--panel-2);
}
.pill.good { color: var(--accent); border-color: var(--accent-dim); background: rgba(74,222,128,.08); }
.pill.bad { color: var(--bad); border-color: #4c1d1d; background: rgba(248,113,113,.08); }
.pill.warn { color: var(--warn); border-color: #4a3a12; background: rgba(251,191,36,.08); }

.bar { height: 7px; background: #0d1219; border-radius: 4px; overflow: hidden; min-width: 70px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash.ok { background: rgba(74,222,128,.1); border: 1px solid var(--accent-dim); color: #a7f3c4; }
.flash.error { background: rgba(248,113,113,.1); border: 1px solid #4c1d1d; color: #fca5a5; }

.banner {
  border: 1px solid #4a3a12; background: rgba(251,191,36,.07); color: #fde68a;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 18px;
}
/* Reserved for banners that mean something is blocked (unverified email,
   failed payment, expired trial) rather than just informational (trial
   countdown) — stacked amber-on-amber flattens that distinction. */
.banner.urgent {
  border-color: #4c1d1d; background: rgba(248,113,113,.08); color: #fca5a5;
}
.banner.urgent a { color: #fca5a5; text-decoration: underline; }

.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap-r { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }

pre.code {
  background: #0d1219; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; color: #cbd5e1; line-height: 1.5;
}

/* --- landing --- */
.hero { padding: 76px 0 48px; text-align: center; }
.hero h1 {
  font-size: 50px; line-height: 1.06; letter-spacing: -1.8px; margin: 0 0 18px;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
@media (max-width: 700px) { .hero h1 { font-size: 34px; } }

.kicker {
  display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section { padding: 46px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 27px; letter-spacing: -.6px; margin: 0 0 8px; }
.section > .wrap > p.sub { font-size: 16px; max-width: 620px; }

.feature h3 { font-size: 15px; margin: 0 0 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* --- pricing --- */
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); }
.plan .price { font-size: 38px; font-weight: 700; letter-spacing: -1.5px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 16px 0; flex: 1; }
.plan li { font-size: 14px; padding: 5px 0 5px 22px; position: relative; color: #c8d6e8; }
.plan li:before { content: "✓"; position: absolute; left: 0; color: var(--accent); }

footer.bottom {
  border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0;
  color: var(--muted); font-size: 13px;
}
footer.bottom .wrap { display: flex; gap: 18px; flex-wrap: wrap; }

/* --- email gate on the free scan --- */
.panel.locked { position: relative; overflow: hidden; padding: 0; }
.locked-blur {
  filter: blur(5px); opacity: .35; user-select: none; pointer-events: none;
  padding: 20px; min-height: 150px;
}
.locked-over {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 20px;
  background: linear-gradient(180deg, rgba(18,24,33,.72), rgba(18,24,33,.94));
}
.locked-over form input { min-width: 0; }

.chart { width: 100%; height: 160px; display: block; }
.spark { width: 100%; height: 34px; display: block; }
