/* Shared styling for Sweep Wizard content pages: privacy, terms, sms-optin */

:root {
  --bg:        #EEF3FA;
  --bg-2:      #F6F9FD;
  --card:      #FFFFFF;
  --navy:      #0B1830;
  --ink:       #0F172A;
  --body:      #3F4E63;
  --muted:     #74839B;
  --blue:      #2563EB;
  --blue-2:    #3B82F6;
  --line:      #E3EAF4;
  --line-soft: #EDF1F8;
  --accent-bg: #F4F8FE;
  --accent-ln: #DCE7FA;
  --shadow:    0 10px 30px -12px rgba(15,32,64,0.18);
  --gold:      #F59E0B;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #050C1E;
    --bg-2:      #081026;
    --card:      #0E1A31;
    --navy:      #0A1324;
    --ink:       #F1F5FB;
    --body:      #B7C4D8;
    --muted:     #7E8DA5;
    --blue:      #60A5FA;
    --blue-2:    #3B82F6;
    --line:      #1E2C46;
    --line-soft: #17233A;
    --accent-bg: #10203B;
    --accent-ln: #22375B;
    --shadow:    0 12px 34px -14px rgba(0,0,0,0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(59,130,246,0.18);
}
.site-header .inner {
  max-width: 860px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .hat { image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(59,130,246,0.35)); flex-shrink: 0; }
.brand .wordmark {
  font-family: 'Press Start 2P', 'Outfit', monospace;
  font-size: 13px; letter-spacing: 1px; color: #6FA0F5; white-space: nowrap;
}
.back-link {
  font-size: 13px; font-weight: 600; color: #9DB6DF; text-decoration: none;
  padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(159,182,223,0.25);
  transition: background .15s, color .15s;
}
.back-link:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .inner { max-width: 860px; margin: 0 auto; padding: 52px 24px 40px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin: 0 0 12px;
}
.hero h1 { margin: 0 0 12px; color: var(--ink); font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.hero .lede { margin: 0; max-width: 60ch; font-size: 17px; color: var(--muted); }
.hero .updated { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* ── Content ────────────────────────────────────────────────────────────── */
.wrap { max-width: 860px; margin: 0 auto; padding: 36px 24px 80px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 34px 30px; box-shadow: var(--shadow);
}

.prose h2 {
  color: var(--ink); font-size: 21px; font-weight: 700; margin: 30px 0 12px;
  padding-left: 14px; position: relative;
}
.prose h2::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
  border-radius: 3px; background: linear-gradient(var(--blue-2), var(--blue));
}
.prose p, .prose li { font-size: 16px; }
.prose a { color: var(--blue); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); }
.prose a:hover { border-bottom-color: var(--blue); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--ink); }

.callout {
  background: var(--accent-bg); border: 1px solid var(--accent-ln);
  border-left: 4px solid var(--blue-2); border-radius: 12px;
  padding: 16px 18px; margin: 20px 0;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

/* ── SMS opt-in replica card ────────────────────────────────────────────── */
.optin {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; margin: 10px 0 6px; box-shadow: var(--shadow);
}
.optin .row { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.optin .toggle { width: 40px; height: 23px; background: var(--blue-2); border-radius: 999px; position: relative; flex-shrink: 0; box-shadow: inset 0 1px 2px rgba(0,0,0,0.15); }
.optin .toggle::after { content: ''; position: absolute; top: 2.5px; right: 2.5px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.optin label.big { font-weight: 600; color: var(--ink); font-size: 15px; }
.optin input[type=tel] {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--bg-2); margin-bottom: 16px;
}
.consent {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55;
  color: var(--body); background: var(--accent-bg); border: 1px solid var(--accent-ln);
  border-radius: 12px; padding: 14px 15px;
}
.consent input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--blue); }
.consent a { color: var(--blue); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); }
.save {
  display: block; width: 100%; text-align: center; margin-top: 16px;
  background: linear-gradient(var(--blue-2), var(--blue)); color: #fff; font-weight: 600;
  padding: 13px; border-radius: 11px; border: 0; font: inherit; opacity: .9;
}
.note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.site-footer .inner {
  max-width: 860px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px 20px; color: var(--muted); font-size: 13.5px;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer .sep { opacity: .5; }
.site-footer .spacer { flex: 1; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .hero .inner { padding: 40px 20px 32px; }
  .card { padding: 8px 20px 22px; }
  .wrap { padding: 24px 16px 64px; }
  .site-header .inner, .hero .inner, .site-footer .inner { padding-left: 18px; padding-right: 18px; }
  .back-link { display: none; }
}
