/* =========================================================
   V720 Setup Guide — shared design system
   Theme: dark "control room" UI with a night-vision green
   accent, viewfinder corner-brackets around every reference
   image, and monospace used only where data actually is
   technical (step counters, SN numbers, specs).
   ========================================================= */

:root {
  --bg: #0a0f1c;
  --bg-soft: #0d1526;
  --panel: #121c30;
  --panel-2: #17243c;
  --border: #233250;
  --border-soft: #1a2740;
  --text: #e9eefb;
  --text-dim: #93a3c2;
  --text-faint: #5d6d8f;
  --accent: #35e29a;
  --accent-soft: rgba(53, 226, 154, 0.14);
  --accent-strong: #1fbf82;
  --warn: #ffb454;
  --danger: #ff6b6b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --maxw: 640px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 500px at 50% -10%, #132038 0%, var(--bg) 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

::selection { background: var(--accent-soft); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- shell / layout ---------- */

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px 64px;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(10, 15, 28, 0.82);
  border-bottom: 1px solid var(--border-soft);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.brand-mark svg { width: 15px; height: 15px; }

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(53, 226, 154, 0.6);
  animation: pulse 2.2s ease-out infinite;
  flex: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 226, 154, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(53, 226, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 226, 154, 0); }
}

.step-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.progress-track {
  height: 3px;
  background: var(--border-soft);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transition: width 0.4s ease;
}

/* ---------- back link ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 6px;
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: none;
}
.back-link:hover { color: var(--text-dim); }
.back-link svg { width: 13px; height: 13px; }

/* ---------- headings ---------- */

.hero {
  padding-top: 18px;
}

h1 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 8px;
  color: var(--text);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin: 0;
}

.lede {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 22px;
  max-width: 54ch;
}

h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 30px 0 10px;
  color: var(--text);
}

p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- viewfinder frame for instructional images ---------- */

.viewfinder {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 4px auto 22px;
  padding: 14px;
  border-radius: var(--radius-md);
}

.viewfinder::before,
.viewfinder::after,
.viewfinder .vf-tr,
.viewfinder .vf-br {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  opacity: 0.85;
}
.viewfinder::before { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.viewfinder::after { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 6px; }
.viewfinder .vf-tr { top: 0; right: 0; border-left: none; border-bottom: none; border-top-right-radius: 6px; }
.viewfinder .vf-br { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 6px; }

.viewfinder img {
  border-radius: 10px;
  margin: 0 auto;
}

.viewfinder .vf-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(10, 15, 28, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

/* ---------- instruction / tip panels ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 0 0 20px;
}

.panel p:last-child { margin-bottom: 0; }

.tip {
  display: flex;
  gap: 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(53, 226, 154, 0.28);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  margin: 0 0 20px;
}

.tip svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.tip p { color: #c9f5e2; font-size: 13.5px; margin: 0; }
.tip strong { color: var(--accent); }

.warn-box {
  display: flex;
  gap: 11px;
  background: rgba(255, 180, 84, 0.1);
  border: 1px solid rgba(255, 180, 84, 0.3);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  margin: 0 0 20px;
}
.warn-box svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--warn); }
.warn-box p { color: #ffe1b3; font-size: 13.5px; margin: 0; }
.warn-box strong { color: var(--warn); }

/* checklist */
ul.checklist { list-style: none; margin: 0 0 20px; padding: 0; }
ul.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-dim);
  padding: 7px 0;
  border-bottom: 1px dashed var(--border-soft);
}
ul.checklist li:last-child { border-bottom: none; }
ul.checklist svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--accent); }
ul.checklist b { color: var(--text); font-weight: 600; }

/* simple spec table */
.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 13px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
}
.spec-table th { color: var(--text-faint); font-weight: 500; font-family: var(--font-mono); font-size: 11.5px; }
.spec-table td:first-child { color: var(--text); font-family: var(--font-mono); }
.spec-table tr:last-child td { border-bottom: none; }

/* FAQ / details */
details.faq {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  padding: 0;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 16px;
  flex: none;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq p { padding: 0 16px 15px; margin: 0; font-size: 13.5px; }

/* ---------- selectable cards (grid of options) ---------- */

.options { display: flex; flex-direction: column; gap: 10px; margin: 0 0 8px; }
.options.grid-2 { flex-direction: row; flex-wrap: wrap; }
.options.grid-2 .card { width: calc(50% - 5px); flex-direction: column; text-align: center; padding: 18px 10px; }
.options.grid-2 .card-body { align-items: center; }
.options.grid-2 .card-chev { display: none; }

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.card:hover {
  border-color: var(--accent);
  background: var(--panel-2);
  transform: translateY(-1px);
}

.card:active { transform: translateY(0); }

.card-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.card-icon svg { width: 22px; height: 22px; color: var(--accent); }
.card-icon img { width: 26px; height: 26px; object-fit: contain; }

.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text); }
.card-sub { font-size: 12.5px; color: var(--text-faint); }

.card-chev { width: 16px; height: 16px; flex: none; color: var(--text-faint); }

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  flex: none;
}

/* toggle switch (visual only, matches theme) */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--border);
  border-radius: 999px;
  transition: 0.25s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #cfd9ee;
  border-radius: 50%;
  transition: 0.25s;
}
.switch input:checked + .slider { background: var(--accent-strong); }
.switch input:checked + .slider::before { transform: translateX(18px); background: #06120c; }

/* ---------- form fields ---------- */

.field { margin-bottom: 16px; text-align: left; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field .hint { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; }

.input-field {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}
.input-field::placeholder { color: var(--text-faint); font-family: var(--font-body); }
.input-field:focus { border-color: var(--accent); outline: none; }

/* strength meter */
.strength {
  display: flex;
  gap: 5px;
  margin: -8px 0 16px;
}
.strength span {
  height: 4px;
  flex: 1;
  border-radius: 3px;
  background: var(--border-soft);
}
.strength.weak span:nth-child(1) { background: var(--danger); }
.strength.medium span:nth-child(1),
.strength.medium span:nth-child(2) { background: var(--warn); }
.strength.strong span { background: var(--accent); }

/* ---------- buttons ---------- */

.btn-row { margin-top: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 22px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  color: #06150e;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(53, 226, 154, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(53, 226, 154, 0.55); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); box-shadow: none; }

/* ---------- error / offline state ---------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--danger);
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }

/* ---------- footer ---------- */

footer.site-footer {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 20px 18px 0;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
footer.site-footer p {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.6;
  margin: 0 0 6px;
}
footer.site-footer a { color: var(--text-faint); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- responsive ---------- */

@media (max-width: 420px) {
  h1 { font-size: 23px; }
  .card { padding: 12px; gap: 10px; }
  .card-title { font-size: 13.5px; }
  .card-icon { width: 36px; height: 36px; }
  .card-icon svg { width: 18px; height: 18px; }
}
