/*
 * LagKing Device Check (lagking.com/debug).
 *
 * LIGHT since 2026-08-24 (Cole: "I dont like debug's dark style that doesn't
 * match rest of site"). It used to be a dark navy field matching the APP; the
 * rest of the WEBSITE -- homepage, /getting-started/, /blog/ -- is cream with
 * white cards, and this is a website page a customer reaches from a footer
 * link, not an app screen.
 *
 * ⚠️ The status colors were retuned in the same pass, not merely inherited.
 * --ok/--warn/--danger were picked for legibility on #0b1729 and are far too
 * light on cream: #3fae6a on cream is roughly 2:1 contrast. The values below
 * are the same hues darkened to clear WCAG AA for text.
 *
 * The site header and footer come from marketing/website/shared/chrome.py via
 * scripts/sync-site-chrome.py and bring their own (dark) colors -- deliberately
 * so, since they are the same bars on every page.
 */

:root {
  --navy: #1b365d;
  --navy-deep: #0a3762;
  --gold: #c8922a;
  --gold-light: #dba94d;
  --gold-dark: #9a6e1a;
  --dark-navy: #0b1729;   /* still used where something sits ON gold */
  --page: #f5f5f0;        /* page field, matches /getting-started/ */
  --surface: #ffffff;     /* cards */
  --ink: #22303f;         /* body text */
  --line: #e8e8e3;        /* card borders */
  --muted: #5a6a7b;
  --ok: #2d7a4f;
  --warn: #a5701a;
  --danger: #b03a2b;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", "Open Sans", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--gold-light); }
a:hover { color: var(--gold); }

/* ---------- Layout ---------- */
main.wrap { padding-top: 32px; padding-bottom: 24px; }
.view { animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }

.hero {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--navy);
}
.lede {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 24px;
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0 0 28px; padding: 0; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.step-icon {
  font-size: 28px;
  line-height: 1;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.step-body h3 {
  margin: 2px 0 6px;
  font-size: 17px;
  color: var(--navy);
}
.step-body p { margin: 0; font-size: 15px; color: var(--muted); }
.step-body strong { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 10px;
  padding: 13px 22px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, transform 0.05s, opacity 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { width: 100%; padding: 16px 22px; font-size: 16px; }
.btn-primary { background: var(--gold); color: var(--dark-navy); }
.btn-primary:hover { background: var(--gold-light); color: var(--dark-navy); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }
.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold-dark); }

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.actions .btn { flex: 1 1 auto; }
.actions .btn-ghost { flex: 0 0 auto; }

/* ---------- Callouts ---------- */
.callout {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.callout h3 { margin: 0 0 8px; font-size: 16px; }
.callout p { margin: 0; }
.callout-warn { border-color: var(--warn); background: rgba(224, 164, 88, 0.08); }
.callout-info { border-color: var(--line); background: rgba(42, 74, 122, 0.18); }
.callout-ok { border-color: var(--ok); background: rgba(63, 174, 106, 0.1); }

/* ---------- Connection status (review screen) ---------- */
.conn-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}
.conn-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
/* Green while a live link remains; dims once disconnected. */
.conn-status:not(.is-off) .conn-dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(63, 174, 106, 0.2);
}
.btn-link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  font: inherit;
  color: var(--gold-light);
  text-decoration: underline;
  cursor: pointer;
}
.btn-link:hover { color: var(--gold); }

/* ---------- Sent confirmation ---------- */
.sent-check {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--ok);
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
}
.sent-followup {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.checklist { margin: 8px 0 0; padding-left: 20px; }
.checklist li { margin: 6px 0; }

.privacy-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* ---------- Progress list (reading) ---------- */
.progress-list { list-style: none; margin: 0; padding: 0; }
.progress-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 10px;
  font-size: 15px;
}
.progress-list .p-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.progress-list li.p-pending { opacity: 0.6; }
.progress-list li.p-pending .p-mark { color: var(--muted); }
.progress-list li.p-active .p-mark { color: var(--gold-light); }
.progress-list li.p-done .p-mark { color: var(--ok); }
.progress-list li.p-skip { opacity: 0.7; }
.progress-list li.p-skip .p-mark { color: var(--muted); }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Review card ---------- */
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
  margin-bottom: 24px;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(42, 74, 122, 0.4);
  font-size: 15px;
}
.review-row:last-child { border-bottom: none; }
.review-row .rk { color: var(--muted); }
.review-row .rv { font-weight: 600; text-align: right; }
.review-row .rv.good { color: var(--ok); }
.review-row .rv.warn { color: var(--warn); }
.review-row .rv.bad { color: var(--danger); }
.review-section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold-light);
  padding: 14px 0 4px;
  border-bottom: 1px solid rgba(42, 74, 122, 0.4);
}

/* ---------- Form fields ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e7edf8;
}
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field input::placeholder,
.field textarea::placeholder { color: #6f83a4; }

@media (max-width: 480px) {
  .hero { font-size: 28px; }
  .lede { font-size: 16px; }
}
