@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #0b1b22;
  --surface: #12262e;
  --surface-2: #16303a;
  --line: #24404c;
  --text: #e8ede9;
  --text-dim: #9db3ba;
  --amber: #ffb454;
  --teal: #59c9a5;
  --coral: #e2604f;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px;
}
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,180,84,0.15); }

.topo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 56px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em;
  color: var(--amber); text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 42px; line-height: 1.12; font-weight: 700; margin: 0 0 16px; max-width: 720px;
}
.hero p.lead {
  color: var(--text-dim); font-size: 17px; max-width: 560px; margin: 0 0 32px; line-height: 1.55;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.form-card { padding: 28px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px;
}
.field input {
  width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 13px 14px; font-size: 15px; font-family: 'Inter', sans-serif;
}
.field input:focus { outline: none; border-color: var(--amber); }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  border: 1px solid var(--line); border-radius: 8px; padding: 16px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.tier:hover { border-color: #3a5a67; }
.tier.selected { border-color: var(--amber); background: rgba(255,180,84,0.06); }
.tier .name { font-weight: 600; margin-bottom: 4px; }
.tier .price { font-family: 'IBM Plex Mono', monospace; color: var(--amber); font-size: 20px; margin-bottom: 8px; }
.tier ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 13px; line-height: 1.6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--amber); color: #17130a; border: none; border-radius: 8px;
  font-weight: 600; font-size: 15px; padding: 14px 22px; cursor: pointer; width: 100%;
  font-family: 'Inter', sans-serif; transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }

.note { color: var(--text-dim); font-size: 12.5px; margin-top: 10px; line-height: 1.5; }
.error { color: var(--coral); font-size: 13.5px; margin-top: 10px; }

.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section h2 { font-size: 24px; margin-bottom: 6px; }
.section .sub { color: var(--text-dim); margin-bottom: 28px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } }
.mini-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.mini-card .k { font-family: 'IBM Plex Mono', monospace; color: var(--amber); font-size: 12px; margin-bottom: 8px; }

footer { padding: 28px 24px; color: var(--text-dim); font-size: 13px; text-align: center; }

/* ---- Report page ---- */
.gauge-wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.gauge {
  position: relative; width: 148px; height: 148px; border-radius: 50%;
  background: conic-gradient(var(--amber) calc(var(--pct, 0) * 1%), var(--line) 0);
}
.gauge::before {
  content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface);
}
.gauge .num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 600;
}

.cat-row { margin-bottom: 16px; }
.cat-row .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.cat-row .top .val { font-family: 'IBM Plex Mono', monospace; color: var(--text-dim); }
.bar-track { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; }

.flag {
  display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 10px; font-size: 14px;
}
.flag .sev { font-family: 'IBM Plex Mono', monospace; font-size: 10px; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; height: fit-content; white-space: nowrap; }
.flag.alta .sev { background: rgba(226,96,79,0.15); color: var(--coral); }
.flag.media .sev { background: rgba(255,180,84,0.15); color: var(--amber); }

.explain-item { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.explain-item:last-child { border-bottom: none; }
.explain-item h4 { margin: 0 0 6px; font-size: 15px; }
.explain-item p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.55; }

.plan-week { margin-bottom: 16px; }
.plan-week .wk { font-family: 'IBM Plex Mono', monospace; color: var(--amber); font-size: 12px; text-transform: uppercase; margin-bottom: 6px; }
.plan-week ul { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 14px; line-height: 1.6; }

.status-screen { text-align: center; padding: 90px 24px; }
.scan-ring {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 24px;
  border: 3px solid var(--line); border-top-color: var(--amber);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.locked-box {
  border: 1px dashed var(--line); border-radius: 8px; padding: 20px; text-align: center; color: var(--text-dim);
}
