:root {
  --bg: #0c1118;
  --card: #151d2b;
  --accent: #3b82f6;
  --ok: #22c55e;
  --warn: #f59e0b;
  --text: #eef2f7;
  --muted: #94a3b8;
  --border: #2a3548;
}
* { box-sizing: border-box; }
body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 1rem 1.25rem 3rem;
  line-height: 1.55;
  max-width: 720px;
  margin-inline: auto;
}
.hero { margin-bottom: 1rem; }
.brand {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}
h1 { font-size: 1.35rem; margin: 0.25rem 0; }
h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.step-title { font-size: 1rem; font-weight: 500; color: var(--muted); }
.sub { color: var(--muted); margin: 0 0 1rem; font-size: 0.95rem; }
.disclaimer {
  font-size: 0.8rem;
  color: var(--warn);
  background: #42200633;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #78350f55;
}
.steps { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.step-pill {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: #1e293b;
  color: var(--muted);
}
.step-pill.active { background: var(--accent); color: #fff; }
.step-pill.done { background: #14532d; color: #bbf7d0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
}
.device-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, transform 0.1s;
}
.device-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.device-card.selected { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.device-card .icon { font-size: 1.75rem; }
.device-card h3 { margin: 0.35rem 0 0; font-size: 0.95rem; }
.device-card p { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--muted); }
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-top: 0.5rem;
}
.hidden { display: none !important; }
label { display: block; margin: 0.6rem 0 0.2rem; font-size: 0.9rem; }
label.check { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.75rem; }
input[type="text"], input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f1520;
  color: var(--text);
}
ul.findings { margin: 0.5rem 0; padding-right: 1.2rem; }
ul.findings li { margin-bottom: 0.5rem; }
.risk {
  display: inline-block;
  width: 1.1rem;
  text-align: center;
  color: var(--warn);
  font-weight: bold;
}
.proof-box {
  background: #0f1520;
  border: 2px dashed var(--ok);
  padding: 0.75rem;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
}
.scan-panel { text-align: center; }
.spinner {
  width: 40px;
  height: 40px;
  margin: 1rem auto;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scan-status { color: var(--muted); min-height: 1.5rem; }
button {
  margin-top: 1rem;
  margin-left: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
button.secondary { background: #334155; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.offer {
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.75rem;
}
.offer .price { font-size: 1.25rem; color: var(--ok); margin: 0.5rem 0; }
.offer ul.includes { margin: 0.5rem 0; padding-right: 1.2rem; font-size: 0.9rem; }
.terms { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; margin-top: 1rem; }
.success-panel { border-color: var(--ok); }
a.back { color: #7cb3ff; font-size: 0.9rem; }
