/* ============================================================
   Shared styles for every page (landing, onboarding, privacy).

   THEMES: pick one by setting data-theme on the <html> tag:
     <html lang="en" data-theme="midnight">
   Options: midnight · clean · workwear · luxe · electric
   Each theme only changes the tokens below; the layout stays the same.
   ============================================================ */

/* ── 1. Midnight: dark, green accent, modern ──────────────── */
:root,
[data-theme="midnight"] {
  --bg: #0d0f12;
  --surface: #16191d;
  --line: #262a30;
  --text: #f2f2f0;
  --muted: #9a9b98;
  --accent: #00ff9c;
  --accent-ink: #002a1a;
  --accent-text: var(--accent);
  --red: #ff6b6b;
  --warn: #f5b443;
  --font-head: "Syne", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --head-weight: 800;
  --head-case: none;
  --head-spacing: -0.01em;
  --radius: 14px;
  --btn-radius: 999px;
  color-scheme: dark;
}

/* ── 2. Clean: light, blue accent, trustworthy ────────────── */
[data-theme="clean"] {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --line: #e3e7ee;
  --text: #0f172a;
  --muted: #5b6475;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-text: #1d4ed8;
  --red: #dc2626;
  --warn: #b45309;
  --font-head: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --head-weight: 800;
  --head-case: none;
  --head-spacing: -0.025em;
  --radius: 14px;
  --btn-radius: 10px;
  color-scheme: light;
}

/* ── 3. Workwear: warm light, safety orange, blue-collar ──── */
[data-theme="workwear"] {
  --bg: #f3efe6;
  --surface: #fffcf5;
  --line: #d9d1c1;
  --text: #1c1b19;
  --muted: #6b655a;
  --accent: #f2541b;
  --accent-ink: #ffffff;
  --accent-text: #b93a0c; /* darker orange: readable as small text on cream */
  --red: #c62828;
  --warn: #9a5b00;
  --font-head: "Archivo", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --head-weight: 800;
  --head-case: uppercase;
  --head-spacing: -0.01em;
  --radius: 4px;
  --btn-radius: 4px;
  color-scheme: light;
}

/* ── 4. Luxe: black and gold, serif, premium ──────────────── */
[data-theme="luxe"] {
  --bg: #0b0b0c;
  --surface: #151517;
  --line: #2b2925;
  --text: #f3efe6;
  --muted: #9d978b;
  --accent: #c9a961;
  --accent-ink: #1a1408;
  --accent-text: var(--accent);
  --red: #e57373;
  --warn: #e0b45a;
  --font-head: "DM Serif Display", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --head-weight: 400;
  --head-case: none;
  --head-spacing: 0;
  --radius: 6px;
  --btn-radius: 999px;
  color-scheme: dark;
}

/* ── 5. Electric: deep indigo, lime accent, bold ──────────── */
[data-theme="electric"] {
  --bg: #0f0c2e;
  --surface: #19154a;
  --line: #2f2a6b;
  --text: #f4f3ff;
  --muted: #a9a5d8;
  --accent: #c6ff3d;
  --accent-ink: #15120a;
  --accent-text: var(--accent);
  --red: #ff7a8a;
  --warn: #ffd166;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --head-weight: 700;
  --head-case: none;
  --head-spacing: -0.03em;
  --radius: 20px;
  --btn-radius: 999px;
  color-scheme: dark;
}

/* ── 6. Blueprint (LIVE SITE): navy + white grid paper, matches index.html ── */
[data-theme="blueprint"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #dddddd;
  --text: #0a0a0a;
  --muted: #666666;
  --accent: #0d0d0d;
  --accent-ink: #ffffff;
  --accent-text: #2e2e2e;
  --red: #b42318;
  --warn: #8a5a00;
  --font-head: "Sora", sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --head-weight: 600;
  --head-case: none;
  --head-spacing: -0.03em;
  --radius: 4px;
  --btn-radius: 4px;
  color-scheme: light;
}
[data-theme="blueprint"] body { background-image: linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px); background-size: 48px 48px; font-weight: 400; }
[data-theme="blueprint"] nav { background: #000000; border-bottom-color: rgba(255,255,255,.15); }
[data-theme="blueprint"] .logo { color: #fff; font-weight: 700; }
[data-theme="blueprint"] nav .btn { background: #fff; color: #000000; }
[data-theme="blueprint"] .eyebrow { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: .06em; color: #666666; }
[data-theme="blueprint"] form.panel { border-color: #0a0a0a; }
[data-theme="blueprint"] .doc a, [data-theme="blueprint"] .doc .fine { font-family: "IBM Plex Mono", ui-monospace, monospace; }
[data-theme="blueprint"] footer { background: #000000; color: #8a8a8a; border-top: 0; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; }
[data-theme="blueprint"] footer a { color: #a3a3a3; }

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  text-transform: var(--head-case);
  letter-spacing: var(--head-spacing);
  line-height: 1.1;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.eyebrow { color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 18px; max-width: 620px; }
.fine { color: var(--muted); font-size: 14px; }


/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: var(--btn-radius);
  border: 0; font-size: 16px; cursor: pointer; font-family: inherit;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
[data-theme="workwear"] .btn { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: 15px; }

/* ── Nav ─────────────────────────────────────────────────── */
nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-case); font-size: 20px; color: var(--accent); text-decoration: none; }
[data-theme="clean"] .logo, [data-theme="workwear"] .logo { color: var(--text); }
nav .btn { padding: 10px 18px; font-size: 14px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 96px 0 88px; border-top: 0; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); max-width: 860px; margin-bottom: 22px; }
.hero h1 span { color: var(--accent); }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-facts { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-facts div { font-size: 14px; color: var(--muted); }
.hero-facts strong { display: block; color: var(--text); font-size: 18px; font-weight: 600; }

/* ── Grids + cards ───────────────────────────────────────── */
.grid { display: grid; gap: 16px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); }
.num { font-family: var(--font-head); font-weight: var(--head-weight); color: var(--accent-text); font-size: 14px; margin-bottom: 14px; }

/* ── Pricing ─────────────────────────────────────────────── */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); position: relative; box-shadow: 0 0 0 1px var(--accent); }
.badge { position: absolute; top: -12px; left: 26px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.price { font-family: var(--font-head); font-size: 40px; font-weight: var(--head-weight); margin: 8px 0 2px; }
.price small { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--muted); text-transform: none; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.price-card li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; border-bottom: 1px solid var(--line); }
.price-card li:last-child { border-bottom: 0; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; }
.price-card .btn { text-align: center; }
.note { margin-top: 24px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 15px; }
.note strong { color: var(--text); }

/* ── Lists ───────────────────────────────────────────────── */
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.yes li::before { content: "✓"; color: var(--accent-text); position: absolute; left: 0; font-weight: 700; }
.no li::before { content: "✕"; color: var(--red); position: absolute; left: 0; font-weight: 700; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { margin-top: 36px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-text); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 12px; max-width: 720px; }

/* ── Forms ───────────────────────────────────────────────── */
.apply-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.apply-steps { margin-top: 28px; }
.apply-steps li { color: var(--muted); }
form.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
label .opt { color: var(--muted); font-weight: 400; }
.help { color: var(--muted); font-size: 13px; margin: -2px 0 8px; }
input, select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: min(var(--radius), 10px); padding: 12px 14px; font: inherit; font-size: 16px;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
select:disabled { opacity: .5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-title { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; margin: 8px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.tz { color: var(--muted); font-size: 13px; margin-top: -8px; margin-bottom: 16px; }
.msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.msg.error { display: block; background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 35%, transparent); }
.demo { display: none; margin-bottom: 18px; padding: 10px 14px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
form.panel > .btn { width: 100%; margin-top: 6px; }
.success { display: none; text-align: center; padding: 48px 28px; }
.success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 28px; line-height: 56px; margin: 0 auto 20px; font-weight: 700; }
.success h3 { font-size: 26px; margin-bottom: 10px; }
.success p { color: var(--muted); }
.success strong { color: var(--text); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; }
.checks input { width: auto; }

/* ── Simple text pages (privacy) ─────────────────────────── */
.doc { max-width: 720px; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { font-size: 36px; margin: 32px 0 8px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc a { color: var(--accent-text); }

/* ── Footer ──────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }

@media (max-width: 860px) {
  .grid-3, .grid-4, .grid-2, .apply-grid { grid-template-columns: 1fr; }
  .apply-grid { gap: 32px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .row, .checks { grid-template-columns: 1fr; gap: 0; }
  .checks { gap: 6px; }
  form.panel { padding: 20px; }
  .hero-facts { gap: 20px; }
}
