/* ==========================================================================
   HUNTR/SEEKR flasher styles
   Brand colours live in :root below. Change them to restyle the whole site.
   ========================================================================== */
:root {
  --bg: #0b0c0e;
  --surface: #14161a;
  --surface-2: #1b1e23;
  --line: #2a2e35;
  --ink: #eceff4;
  --muted: #98a1ae;
  --accent: #ffaa00;          /* brand amber */
  --accent-ink: #1a1100;      /* text on amber */
  --ok: #2ee6a6;
  --bad: #ff6b6b;
  --warn: #ffc857;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }

/* ---- header ---- */
.top { border-bottom: 1px solid var(--line); background: rgba(11,12,14,.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { border-radius: 10px; display: block; }
.brand-name { font-weight: 800; letter-spacing: .02em; }
.slash { color: var(--accent); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }

/* ---- hero (swap assets/images/hero.jpg for your own picture) ---- */
.hero {
  position: relative; padding: 64px 0 44px; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11,12,14,.55), var(--bg) 96%),
    url("../images/hero.jpg") center / cover no-repeat,
    radial-gradient(800px 300px at 80% 0%, rgba(255,170,0,.12), transparent 70%);
}
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
.lead { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 40em; }

/* ---- notice ---- */
.notice { margin: 24px 0 0; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--bad); background: rgba(255,107,107,.08); }
.notice.info { border-color: var(--warn); background: rgba(255,200,87,.08); }

/* ---- layout ---- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin: 28px 0 8px; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } .side { order: -1; } .sticky { position: static !important; } }

/* ---- steps ---- */
.steps { display: grid; gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, opacity .2s; }
.step > header { display: flex; align-items: center; gap: 14px; padding: 16px 18px 0; }
.step h2 { margin: 0; font-size: 1.15rem; }
.step .body { padding: 12px 18px 18px 18px; margin-left: 50px; }
@media (max-width: 520px) { .step .body { margin-left: 0; } }
.num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.step[data-state="active"] { border-color: rgba(255,170,0,.55); }
.step[data-state="active"] .num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step[data-state="done"] .num { background: var(--ok); color: #00241a; border-color: var(--ok); }
.step[data-state="done"] .num::before { content: "\2713"; }
.step[data-state="done"] .num { font-size: 0; }
.step[data-state="done"] .num::before { font-size: 1.05rem; }
.step[data-state="locked"] { opacity: .5; }
.step[data-state="locked"] .body { pointer-events: none; }

/* ---- form bits ---- */
select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2398a1ae' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
select:disabled { opacity: .6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { color: var(--muted); font-size: .92rem; margin: 10px 0 0; }
.warn { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--warn); background: rgba(255,200,87,.07); border-radius: 6px; font-size: .95rem; }
.check, .inl { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check { margin: 6px 0 4px; }
input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.status { margin: 12px 0 0; min-height: 1.4em; font-size: .95rem; }
.status.ok { color: var(--ok); } .status.bad { color: var(--bad); } .status.busy { color: var(--accent); }

.btn {
  font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 10px; cursor: pointer;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line);
}
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); padding: 14px 32px; font-size: 1.05rem; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: .85rem; margin-top: 8px; }

.adv, .log { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
summary { cursor: pointer; color: var(--muted); font-size: .95rem; }
summary:hover { color: var(--ink); }
.advgrid { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; margin-top: 10px; }
.span2 { grid-column: 1 / -1; }
ul.tight { margin: 8px 0 0; padding-left: 20px; } ul.tight li { margin: 4px 0; }

.vinfo { margin-top: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; color: var(--muted); }
.vinfo b { color: var(--ink); }
.vinfo .pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; margin-right: 6px; }
.pill.ok { background: rgba(46,230,166,.14); color: var(--ok); }
.pill.bad { background: rgba(255,107,107,.14); color: var(--bad); }

.progress { margin-top: 16px; }
.bar { height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.fill { height: 100%; width: 0; background: linear-gradient(90deg, #ff8a00, var(--accent)); transition: width .15s linear; }
.pct { margin: 6px 0 0; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }

.done { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--ok); border-radius: 10px; background: rgba(46,230,166,.07); }
.done h3 { margin: 0 0 4px; color: var(--ok); }
.done p { margin: 4px 0; }
.done[data-chip]:not([data-chip="c5"]) li[data-needs="c5"] { display: none; }

pre#log {
  margin: 8px 0 0; padding: 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  background: #07080a; border: 1px solid var(--line); border-radius: 8px; font: .8rem/1.5 var(--mono); color: #b9c2cf;
}

/* ---- "do not unplug" banner ---- */
.keepon { display: flex; gap: 14px; align-items: center; margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius); border: 2px solid var(--accent); background: rgba(255,170,0,.12); font-size: 1.02rem; }
.keepon b { color: var(--accent); }
.spin { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,170,0,.3); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; border-top-color: var(--accent); } }

/* ---- side device card ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sticky { position: sticky; top: 84px; }
.device-img { aspect-ratio: 1 / 1; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.device-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .92rem; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; }

/* ---- FAQ ---- */
.faq { margin: 44px 0 56px; }
.faq h2 { margin: 0 0 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.faq summary { color: var(--ink); font-weight: 600; }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { margin: 6px 0; color: var(--muted); }
.faq ul { color: var(--muted); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.foot p { margin: 0 0 10px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); } .foot a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
