/* ============================================================
   NeuroInclusive.UK — Global Styles
   Brand palette derived from logo. WCAG AA compliant.
   ============================================================ */
:root {
  --navy: #141E2E; --navy-light: #1C2A3E; --navy-lighter: #243448;
  --teal: #2DA89E; --teal-text: #186B63; --teal-dark: #125C55;
  --teal-light: #D0F5EE; --teal-50: #EFFEFA;
  --blue: #5BB8D4; --blue-dark: #2E7A8F; --blue-light: #D4EFF7;
  --orange: #E8873A; --orange-text: #B05C10; --orange-light: #FEF0E2;
  --coral: #D4543A; --coral-dark: #A83D28; --coral-light: #FDE8E4;
  --slate-50: #F8FAFC; --slate-100: #F1F5F9; --slate-200: #E2E8F0;
  --slate-300: #CBD5E1; --slate-400: #94A3B8; --slate-500: #64748B;
  --slate-600: #475569; --slate-700: #334155; --slate-800: #1E293B;
  --slate-900: #0F172A; --white: #FFFFFF;
  --band-red: #DC2626; --band-red-bg: #FEF2F2; --band-amber: #D97706;
  --band-amber-bg: #FFFBEB; --band-yellow: #CA8A04; --band-yellow-bg: #FEFCE8;
  --band-green: #16A34A; --band-green-bg: #F0FDF4; --band-teal-bg: #EFFEFA;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--navy); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--slate-200); transition: box-shadow 0.3s; }
.nav.scrolled { box-shadow: 0 1px 24px rgba(20,30,46,0.08); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--teal-text); text-decoration: none; letter-spacing: -0.02em; }
.nav-logo span { color: var(--navy); }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--slate-600); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--teal-text); }
.nav-cta { background: var(--navy) !important; color: var(--white) !important; padding: 10px 22px !important; border-radius: 8px; font-weight: 600 !important; transition: background 0.2s, transform 0.15s !important; }
.nav-cta:hover { background: var(--navy-light) !important; transform: translateY(-1px); }
.nav-signin { background: transparent !important; color: var(--teal-text) !important; padding: 10px 18px !important; border-radius: 8px; font-weight: 600 !important; border: 2px solid var(--teal) !important; transition: all 0.2s !important; }
.nav-signin:hover { background: var(--teal) !important; color: var(--white) !important; transform: translateY(-1px); }
.nav-back { font-size: 0.9rem; font-weight: 500; color: var(--slate-500); text-decoration: none; transition: color 0.2s; }
.nav-back:hover { color: var(--teal-text); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 6px 0; transition: 0.3s; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: all 0.2s; border: none; cursor: pointer; font-family: var(--font-body); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(20,30,46,0.25); }
.btn-teal { background: var(--teal-text); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(24,107,99,0.3); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* PROGRESS BAR */
.progress-bar { position: fixed; top: 72px; left: 0; right: 0; height: 4px; background: var(--slate-200); z-index: 99; }
.progress-fill { height: 100%; border-radius: 0 2px 2px 0; transition: width 0.4s ease; width: 0%; background: linear-gradient(90deg, var(--blue), var(--teal), var(--orange)); }

/* LAYOUT */
.container { max-width: 720px; margin: 0 auto; padding: 100px 24px 80px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ASSESSMENT: INTRO */
.assess-intro { text-align: center; margin-bottom: 48px; animation: fadeUp 0.6s ease both; }
.assess-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-50); border: 1px solid var(--teal-light); color: var(--teal-dark); padding: 6px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 20px; }
.assess-intro h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 12px; }
.assess-intro p { color: var(--slate-600); font-size: 1rem; max-width: 540px; margin: 0 auto; line-height: 1.7; }
.assess-intro .time { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.85rem; color: var(--slate-400); font-weight: 500; }

/* ASSESSMENT: QUESTION CARDS */
.question-card { background: var(--white); border-radius: 16px; border: 1px solid var(--slate-200); padding: 36px 32px; margin-bottom: 20px; transition: border-color 0.3s, box-shadow 0.3s; animation: fadeUp 0.5s ease both; }
.question-card:hover { border-color: var(--slate-300); }
.question-card.answered { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.question-number { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-text); margin-bottom: 10px; }
.question-category { display: inline-block; background: var(--slate-100); color: var(--slate-600); font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 4px; margin-left: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.question-text { font-size: 1.05rem; font-weight: 500; color: var(--navy); line-height: 1.55; margin-bottom: 24px; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-radius: 10px; border: 2px solid var(--slate-200); cursor: pointer; transition: all 0.2s; background: var(--white); }
.option:hover { border-color: var(--teal-light); background: var(--teal-50); }
.option.selected { border-color: var(--teal); background: var(--teal-50); }
.option-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--slate-300); flex-shrink: 0; margin-top: 1px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.option.selected .option-radio { border-color: var(--teal-text); background: var(--teal-text); }
.option.selected .option-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.option-text { font-size: 0.92rem; color: var(--slate-600); line-height: 1.5; }
.option.selected .option-text { color: var(--navy); font-weight: 500; }
.score-indicator { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--slate-400); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--slate-100); }
.score-dots { display: flex; gap: 4px; }
.score-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-200); transition: background 0.3s; }
.score-dot.active-0 { background: var(--coral); }
.score-dot.active-1 { background: var(--orange); }
.score-dot.active-2 { background: var(--blue); }
.score-dot.active-3 { background: var(--teal); }

/* ASSESSMENT: EMAIL GATE */
.email-gate { display: none; background: var(--white); border-radius: 16px; border: 1px solid var(--slate-200); padding: 48px 40px; text-align: center; animation: fadeUp 0.5s ease both; }
.email-gate.visible { display: block; }
.email-gate h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.email-gate > p { color: var(--slate-500); margin-bottom: 28px; font-size: 0.95rem; }
.email-form { display: flex; flex-direction: column; gap: 14px; max-width: 400px; margin: 0 auto; }
.email-form input, .email-form select { width: 100%; padding: 14px 18px; border-radius: 10px; border: 2px solid var(--slate-200); font-size: 0.95rem; font-family: var(--font-body); color: var(--navy); transition: border-color 0.2s; background: var(--white); }
.email-form input:focus, .email-form select:focus { outline: none; border-color: var(--teal); }
.email-form input::placeholder { color: var(--slate-400); }
.email-note { font-size: 0.8rem; color: var(--slate-400); margin-top: 8px; }

/* ASSESSMENT: RESULTS */
.results { display: none; animation: fadeUp 0.6s ease both; padding-top: 80px; }
.results.visible { display: block; }
.result-hero { text-align: center; padding: 48px 40px; border-radius: 16px; margin-bottom: 28px; }
.result-hero.band-critical { background: var(--band-red-bg); border: 2px solid #FECACA; }
.result-hero.band-at_risk { background: var(--band-amber-bg); border: 2px solid #FDE68A; }
.result-hero.band-developing { background: var(--band-yellow-bg); border: 2px solid #FEF08A; }
.result-hero.band-established { background: var(--band-green-bg); border: 2px solid #BBF7D0; }
.result-hero.band-leading { background: var(--band-teal-bg); border: 2px solid var(--teal-light); }
.result-score { font-family: var(--font-display); font-size: 4rem; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.band-critical .result-score { color: var(--band-red); }
.band-at_risk .result-score { color: var(--band-amber); }
.band-developing .result-score { color: var(--band-yellow); }
.band-established .result-score { color: var(--band-green); }
.band-leading .result-score { color: var(--teal-text); }
.result-band { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; color: var(--navy); }
.result-desc { font-size: 1rem; color: var(--slate-600); max-width: 500px; margin: 0 auto; line-height: 1.7; }
.categories { background: var(--white); border-radius: 16px; border: 1px solid var(--slate-200); padding: 36px 32px; margin-bottom: 28px; }
.categories h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 24px; }
.category-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--slate-100); }
.category-row:last-child { border-bottom: none; }
.category-label { width: 140px; flex-shrink: 0; font-size: 0.88rem; font-weight: 600; color: var(--slate-600); text-transform: capitalize; }
.category-bar-bg { flex: 1; height: 12px; background: var(--slate-100); border-radius: 6px; overflow: hidden; }
.category-bar-fill { height: 100%; border-radius: 6px; transition: width 1s ease 0.3s; }
.category-pct { width: 48px; text-align: right; font-size: 0.88rem; font-weight: 700; color: var(--navy); }
.result-cta { background: var(--white); border-radius: 16px; border: 2px solid var(--teal-light); padding: 36px 32px; text-align: center; }
.result-cta h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.result-cta p { color: var(--slate-600); margin-bottom: 24px; font-size: 0.95rem; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .question-card { padding: 24px 20px; }
  .email-gate { padding: 32px 24px; }
  .result-hero { padding: 32px 24px; }
  .categories { padding: 24px 20px; }
  .category-label { width: 100px; font-size: 0.82rem; }
}

/* ============================================================
   STEPPED ASSESSMENT FLOW
   ============================================================ */
.assess-flow {
  background: var(--white); border-radius: 20px; border: 1px solid var(--slate-200);
  padding: 24px 32px 24px; min-height: 0;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 24px rgba(20,30,46,0.04);
}

/* Question area */
#questionArea {
  flex: 1; transition: opacity 0.2s ease, transform 0.2s ease;
}
.q-category {
  display: inline-block; background: var(--slate-100); color: var(--slate-600);
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.q-text {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--navy); line-height: 1.4; margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.q-options { display: flex; flex-direction: column; gap: 8px; }
.q-option {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-radius: 10px; border: 2px solid var(--slate-200);
  cursor: pointer; transition: all 0.2s; background: var(--white);
  text-align: left; font-family: var(--font-body); width: 100;
}
.q-option:hover { border-color: var(--teal-light); background: var(--teal-50); }
.q-option.selected { border-color: var(--teal); background: var(--teal-50); }
.q-option-indicator {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--slate-300);
  flex-shrink: 0; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.q-option.selected .q-option-indicator { border-color: var(--teal-text); background: var(--teal-text); }
.q-option-dot {
  width: 0; height: 0; border-radius: 50%; background: var(--white);
  transition: all 0.2s;
}
.q-option.selected .q-option-dot { width: 8px; height: 8px; }
.q-option-content { flex: 1; }
.q-option-label { font-size: 0.95rem; color: var(--slate-600); line-height: 1.45; }
.q-option.selected .q-option-label { color: var(--navy); font-weight: 600; }
.q-option-score {
  font-size: 0.75rem; font-weight: 700; color: var(--slate-400);
  flex-shrink: 0; padding: 4px 8px; background: var(--slate-50);
  border-radius: 6px;
}
.q-option.selected .q-option-score { background: var(--teal-light); color: var(--teal-dark); }

/* Navigation */
.assess-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--slate-100);
}
.assess-nav .btn-back {
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600; color: var(--slate-400);
  padding: 10px 16px; border-radius: 8px; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.assess-nav .btn-back:hover { color: var(--navy); background: var(--slate-50); }
.assess-nav .btn-next {
  background: var(--navy); color: var(--white); border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  padding: 12px 24px; border-radius: 10px; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.assess-nav .btn-next:hover { background: var(--navy-light); transform: translateY(-1px); }
.assess-nav .btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.assess-nav .btn-finish {
  background: var(--teal-text); color: var(--white); border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  padding: 12px 24px; border-radius: 10px; transition: all 0.2s;
  display: none; align-items: center; gap: 8px;
}
.assess-nav .btn-finish:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* Step dots */
.step-dots {
  display: flex; gap: 6px; justify-content: center; margin-bottom: 16px;
}
.step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--slate-200); cursor: pointer; transition: all 0.25s;
}
.step-dot.current { background: var(--navy); transform: scale(1.3); }
.step-dot.answered { background: var(--teal); }
.step-dot.answered.current { background: var(--navy); }

/* Question counter */
.question-counter {
  text-align: center; font-size: 0.78rem; font-weight: 600;
  color: var(--slate-400); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Override body bg for assessment pages */
body.assess-page { background: var(--slate-50); }

/* ── MARKET-SPECIFIC QUIZ THEMES ── */
.market-parent .q-option:hover{border-color:var(--orange);background:var(--orange-light)}
.market-parent .q-option.selected{border-color:var(--orange);background:var(--orange-light)}
.market-parent .q-option.selected .q-option-indicator{border-color:var(--orange-text);background:var(--orange-text)}
.market-parent .q-option.selected .q-option-score{background:var(--orange-light);color:var(--orange-text)}
.market-parent .assess-nav .btn-finish{background:var(--orange-text)}.market-parent .assess-nav .btn-finish:hover{background:var(--orange)}
.market-parent .step-dot.answered{background:var(--orange)}
.market-parent .assess-flow{border-color:rgba(232,135,58,0.2)}

.market-school .q-option:hover{border-color:var(--teal);background:var(--teal-50)}
.market-school .q-option.selected{border-color:var(--teal);background:var(--teal-50)}
.market-school .q-option.selected .q-option-indicator{border-color:var(--teal-text);background:var(--teal-text)}
.market-school .q-option.selected .q-option-score{background:var(--teal-50);color:var(--teal-dark)}
.market-school .assess-nav .btn-finish{background:var(--teal-text)}.market-school .assess-nav .btn-finish:hover{background:var(--teal-dark)}
.market-school .step-dot.answered{background:var(--teal)}
.market-school .assess-flow{border-color:rgba(45,168,158,0.2)}

.market-business .q-option:hover{border-color:var(--blue);background:var(--blue-light)}
.market-business .q-option.selected{border-color:var(--blue);background:var(--blue-light)}
.market-business .q-option.selected .q-option-indicator{border-color:var(--blue-dark);background:var(--blue-dark)}
.market-business .q-option.selected .q-option-score{background:var(--blue-light);color:var(--blue-dark)}
.market-business .assess-nav .btn-finish{background:var(--blue-dark)}.market-business .assess-nav .btn-finish:hover{background:var(--blue)}
.market-business .step-dot.answered{background:var(--blue)}
.market-business .assess-flow{border-color:rgba(91,184,212,0.2)}

/* ── DARK MODE — SITE-WIDE ── */
[data-theme="dark"]{
  --slate-50:#0F1923;--slate-100:#1A2332;--slate-200:#2A3544;--slate-300:#475569;--slate-400:#94A3B8;--slate-500:#CBD5E1;--slate-600:#E2E8F0;
  --teal-50:rgba(45,168,158,0.12);--teal-light:rgba(45,168,158,0.25);
  --orange-light:rgba(232,135,58,0.12);--blue-light:rgba(91,184,212,0.12);
}

/* Base */
[data-theme="dark"] body{background:#0F1923!important;color:#CBD5E1}
[data-theme="dark"] body.assess-page{background:#0F1923!important}

/* Nav — always stays dark navy, no change needed */

/* Assessment pages */
[data-theme="dark"] .assess-flow{background:#1A2332;border-color:#2A3544;box-shadow:0 4px 24px rgba(0,0,0,0.2)}
[data-theme="dark"] .q-text{color:#F1F5F9}
[data-theme="dark"] .q-option{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .q-option-label{color:#CBD5E1}
[data-theme="dark"] .q-option.selected .q-option-label{color:#F1F5F9}
[data-theme="dark"] .q-option-score{background:#2A3544;color:#94A3B8}
[data-theme="dark"] .q-category{background:#2A3544;color:#94A3B8}
[data-theme="dark"] .assess-intro h1{color:#F1F5F9}
[data-theme="dark"] .assess-intro p{color:#94A3B8}
[data-theme="dark"] .step-dot{background:#2A3544}
[data-theme="dark"] .step-dot.current{background:#F1F5F9}
[data-theme="dark"] .assess-nav .btn-next{background:#F1F5F9;color:#1A2332}
[data-theme="dark"] .assess-nav .btn-back{color:#94A3B8}
[data-theme="dark"] .assess-nav{border-top-color:#2A3544}
[data-theme="dark"] .progress-bar{background:#0F1923!important}
[data-theme="dark"] .container{background:transparent}

/* Homepage — hero and bottom-cta already dark, just fix the middle */
[data-theme="dark"] .middle{background:#0F1923}
[data-theme="dark"] .middle-inner h2{color:#F1F5F9}
[data-theme="dark"] .middle-inner .lead{color:#94A3B8}
[data-theme="dark"] .ring-card{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .ring-card h3{color:#F1F5F9}
[data-theme="dark"] .ring-card p{color:#94A3B8}
[data-theme="dark"] .reg-block h3{color:#F1F5F9}
[data-theme="dark"] .reg-intro{color:#94A3B8!important}
[data-theme="dark"] .reg-row{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .reg-row .name{color:#F1F5F9}
[data-theme="dark"] .reg-row .reg-who{color:#64748B!important}
[data-theme="dark"] .how-block h3{color:#F1F5F9}
[data-theme="dark"] .how-block>p{color:#94A3B8}
[data-theme="dark"] .how-step{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .how-step h4{color:#F1F5F9}
[data-theme="dark"] .how-step p{color:#94A3B8}
[data-theme="dark"] .zoe-block{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .zoe-block p{color:#CBD5E1}
[data-theme="dark"] .zoe-block .name{color:#F1F5F9}
[data-theme="dark"] .zoe-block .role{color:#64748B}

/* Dashboard pages */
[data-theme="dark"] .dash-hero{background:#0F1923!important}
[data-theme="dark"] .dash-main{background:#0F1923}
[data-theme="dark"] .dash-card-surface{background:#1A2332!important;border-color:#2A3544!important;color:#CBD5E1}
[data-theme="dark"] .dash-card-surface div[style*="color:var(--navy)"]{color:#F1F5F9!important}
[data-theme="dark"] .dash-card-surface h4[style*="color:var(--navy)"]{color:#F1F5F9!important}
[data-theme="dark"] .dash-card-surface strong[style*="color:var(--slate-500)"]{color:#94A3B8!important}
[data-theme="dark"] .org-card,.dark .vault-container,.dark .comp-container{background:#0F1923}
[data-theme="dark"] .org-card{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] h4{color:#F1F5F9}

/* Marketing pages */
[data-theme="dark"] .s{background:#0F1923}
[data-theme="dark"] .s-alt{background:#1A2332}
[data-theme="dark"] section{border-color:#2A3544}

/* Forms */
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background:#1A2332;border-color:#2A3544;color:#F1F5F9}

/* Email gate */
[data-theme="dark"] .email-gate{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .email-gate h2{color:#F1F5F9}
[data-theme="dark"] .email-gate>p{color:#94A3B8}
[data-theme="dark"] .email-form input{background:#0F1923;border-color:#2A3544;color:#F1F5F9}
[data-theme="dark"] .email-form input::placeholder{color:#64748B}
[data-theme="dark"] .email-note{color:#64748B}

/* Results */
[data-theme="dark"] .result-hero{background:#1A2332!important;border-color:#2A3544!important}
[data-theme="dark"] .result-hero .result-band{color:#F1F5F9}
[data-theme="dark"] .result-hero .result-desc{color:#94A3B8}
[data-theme="dark"] .result-cta{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .result-cta h3{color:#F1F5F9}
[data-theme="dark"] .result-cta p{color:#94A3B8}
[data-theme="dark"] .categories{background:#1A2332!important;border-color:#2A3544!important}
[data-theme="dark"] .categories h3{color:#F1F5F9}
[data-theme="dark"] .category-label{color:#CBD5E1}
[data-theme="dark"] .category-bar-bg{background:#2A3544}
[data-theme="dark"] .category-pct{color:#CBD5E1}
[data-theme="dark"] .category-row{border-color:#2A3544}
[data-theme="dark"] [style*="linear-gradient"]{background:#1A2332!important;border-color:#2A3544!important}
[data-theme="dark"] [style*="linear-gradient"] h3{color:#F1F5F9!important}
[data-theme="dark"] [style*="linear-gradient"] p{color:#94A3B8!important}
[data-theme="dark"] [style*="linear-gradient"] strong{color:#CBD5E1!important}
[data-theme="dark"] #reportUpsell{background:#1A2332;border-color:var(--orange)!important}
[data-theme="dark"] #reportUpsell h3{color:#F1F5F9!important}
[data-theme="dark"] #reportUpsell p{color:#94A3B8!important}
[data-theme="dark"] #reportStatus{background:#1A2332}
[data-theme="dark"] #savePrompt{background:#1A2332!important}
[data-theme="dark"] button[onclick="downloadResults()"]{background:#1A2332!important;border-color:#2A3544!important;color:#CBD5E1!important}

/* Footer — already dark on homepage, handle other pages */
[data-theme="dark"] .footer{background:#0F1923;border-color:#2A3544}
[data-theme="dark"] .footer a{color:#94A3B8}
[data-theme="dark"] .footer p{color:#64748B}
[data-theme="dark"] .footer-min{background:#0F1923;border-color:#1A2332}
[data-theme="dark"] .footer-min a{color:#64748B}
[data-theme="dark"] .footer-min .copy{color:#475569}

/* ═══ MARKET LANDING PAGE DARK MODE ═══ */
/* Sections */
[data-theme="dark"] .s{background:#0F1923}
[data-theme="dark"] .s-alt{background:#1A2332}
[data-theme="dark"] .s h2{color:#F1F5F9}
[data-theme="dark"] .s>p,[data-theme="dark"] .s-inner>p{color:#94A3B8}

/* Hero (already dark bg, but text adjustments) */
[data-theme="dark"] .hero{background:#0A1018}

/* Stats row */
[data-theme="dark"] .stat{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .stat .stat-label{color:#94A3B8}

/* Ring cards (three-step) */
[data-theme="dark"] .ring{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .ring h3{color:#F1F5F9}
[data-theme="dark"] .ring p{color:#94A3B8}

/* Domain cards */
[data-theme="dark"] .dc{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .dc:hover{border-color:#8B5CF6;box-shadow:0 2px 12px rgba(0,0,0,0.15)}
[data-theme="dark"] .dc h3{color:#F1F5F9}
[data-theme="dark"] .dc p{color:#94A3B8}

/* Product cards */
[data-theme="dark"] .prod{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .prod:hover{border-color:#8B5CF6;box-shadow:0 4px 16px rgba(0,0,0,0.2)}
[data-theme="dark"] .prod h3{color:#F1F5F9}
[data-theme="dark"] .prod p{color:#94A3B8}
[data-theme="dark"] .prod-featured{border-color:#8B5CF6}

/* Regulatory pills */
[data-theme="dark"] .reg-pill{background:#1A2332;border-color:#2A3544;color:#F1F5F9}
[data-theme="dark"] .reg-row{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .reg-row:hover{border-color:#8B5CF6}
[data-theme="dark"] .reg-row .name{color:#F1F5F9}

/* Quote block */
[data-theme="dark"] .quote-block{background:#1A2332;border-left-color:#8B5CF6}
[data-theme="dark"] .quote-block p{color:#CBD5E1}
[data-theme="dark"] .quote-block .attr{color:#A78BFA}

/* CTA section */
[data-theme="dark"] .cta{background:#0A1018}

/* Zoe block */
[data-theme="dark"] .zoe-block{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .zoe-block p{color:#CBD5E1}
[data-theme="dark"] .zoe-block .name{color:#F1F5F9}
[data-theme="dark"] .zoe-block .role{color:#94A3B8}

/* How block */
[data-theme="dark"] .how-step{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .how-step h4{color:#F1F5F9}
[data-theme="dark"] .how-step p{color:#94A3B8}

/* Reg block */
[data-theme="dark"] .reg-stack .reg-row{background:#1A2332;border-color:#2A3544}

/* ═══ COPILOT DARK MODE ═══ */
[data-theme="dark"] .copilot-header{border-color:#2A3544}
[data-theme="dark"] .copilot-title{color:#F1F5F9}
[data-theme="dark"] .copilot-context-badge{background:#1A2332;border-color:#2A3544;color:#94A3B8}
[data-theme="dark"] .cw-text p{color:#94A3B8}
[data-theme="dark"] .cw-ask{color:#F1F5F9}
[data-theme="dark"] .cw-suggestion{background:#1A2332;border-color:#2A3544;color:#94A3B8}
[data-theme="dark"] .cw-suggestion:hover{border-color:#8B5CF6;color:#F1F5F9}
[data-theme="dark"] .msg-assistant .msg-content{background:#1A2332;border-color:#2A3544;color:#CBD5E1}
[data-theme="dark"] .msg-assistant .msg-content h3,[data-theme="dark"] .msg-assistant .msg-content h4{color:#F1F5F9}
[data-theme="dark"] .msg-assistant .msg-content strong{color:#F1F5F9}
[data-theme="dark"] .copilot-input-area{border-color:#2A3544}
[data-theme="dark"] .copilot-input-wrap{background:#1A2332;border-color:#2A3544}
[data-theme="dark"] .copilot-input-wrap:focus-within{border-color:#8B5CF6}
[data-theme="dark"] .copilot-input{color:#F1F5F9}
[data-theme="dark"] .copilot-input::placeholder{color:#64748B}

/* Theme toggle */
.theme-toggle{background:none;border:1px solid rgba(255,255,255,0.15);border-radius:8px;padding:6px 10px;cursor:pointer;font-size:0.82rem;color:var(--slate-300);font-family:var(--font-body);font-weight:600;transition:all 0.15s;display:inline-flex;align-items:center;gap:6px}
.theme-toggle:hover{border-color:rgba(255,255,255,0.3);color:var(--white)}

@media (max-width: 640px) {
  .assess-flow { padding: 28px 20px 24px; border-radius: 14px; }
  .q-text { font-size: 1.1rem; }
  .q-option { padding: 14px 16px; }
  .step-dots { gap: 4px; }
  .step-dot { width: 8px; height: 8px; }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--slate-200);
    flex-direction: column; gap: 0; padding: 8px 0;
    box-shadow: 0 8px 24px rgba(20,30,46,0.1);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links li { list-style: none; }
  .nav-links a { display: block; padding: 14px 24px !important; border-radius: 0 !important; font-size: 1rem !important; }
  .nav-links .nav-cta { margin: 8px 16px !important; text-align: center; border-radius: 8px !important; }
  .nav-links .nav-signin { margin: 4px 16px !important; text-align: center; border-radius: 8px !important; }
  /* Dark nav mobile */
  .nav-page .nav-links, .nav-home .nav-links, .dash-nav .nav-links { background: var(--navy); }
  .nav-page .nav-links a, .nav-home .nav-links a, .dash-nav .nav-links a { color: var(--slate-300) !important; }
  /* Hamburger animation */
  .nav-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
}

/* ============================================================
   COMMON PAGE COMPONENTS (extracted from inline styles)
   ============================================================ */

/* Page hero (dark navy, used by market/training/book/suite pages) */
.page-hero { padding: 140px 24px 80px; background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 24px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em; }
.page-hero p { color: var(--slate-300); font-size: 1.1rem; line-height: 1.7; margin-bottom: 32px; max-width: 640px; }
.page-hero .hero-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--white); padding: 16px 32px; border-radius: 10px; font-size: 1rem; font-weight: 700; text-decoration: none; transition: all 0.2s; }
.page-hero .hero-cta:hover { transform: translateY(-2px); }

/* Dark nav variant */
.nav-page { background: rgba(20,30,46,0.95); border-bottom-color: rgba(255,255,255,0.06); }
.nav-page .nav-logo span { color: var(--white); }
.nav-page .nav-links a { color: var(--slate-300); }
.nav-page .nav-mobile-toggle span { background: var(--white); }
.nav-page.scrolled { background: rgba(20,30,46,0.98); }

/* Section patterns */
.section { padding: 80px 24px; }
.section-alt { background: var(--slate-50); }
.section-inner { max-width: 900px; margin: 0 auto; }
.section h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.section h2 em { font-style: italic; }
.section p { color: var(--slate-600); font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }

/* CTA section (dark navy bottom) */
.cta-section { padding: 80px 24px; background: var(--navy); text-align: center; color: var(--white); }
.cta-section h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 16px; color: var(--white); }
.cta-section p { color: var(--slate-300); font-size: 1.05rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Standard footer */
.footer { padding: 60px 24px 40px; background: var(--slate-50); border-top: 1px solid var(--slate-200); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .nav-logo { display: block; margin-bottom: 12px; }
.footer-brand p { color: var(--slate-500); font-size: 0.9rem; line-height: 1.6; }
.footer-links { display: flex; gap: 56px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--slate-500); text-decoration: none; font-size: 0.9rem; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-text); }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--slate-200); display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--slate-400); }
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   CATEGORY HINTS (assessment live feedback)
   ============================================================ */
#categoryHints { margin-top: 24px; }
.cat-hints-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-400); margin-bottom: 10px; }
.cat-hint { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cat-hint-name { width: 110px; flex-shrink: 0; font-size: 0.78rem; font-weight: 600; color: var(--slate-500); text-transform: capitalize; }
.cat-hint-bar { flex: 1; height: 6px; background: var(--slate-100); border-radius: 3px; overflow: hidden; }
.cat-hint-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--navy); color: var(--white); padding: 16px 24px;
  display: none; /* shown by JS */
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.cookie-banner.visible { display: flex; }
.cookie-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap; width: 100%;
}
.cookie-inner p { font-size: 0.88rem; color: var(--slate-300); flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-inner p a { color: var(--teal); text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btns button { padding: 10px 20px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; font-family: var(--font-body); cursor: pointer; border: none; transition: all 0.2s; }
.cookie-accept { background: var(--teal); color: var(--white); }
.cookie-accept:hover { background: var(--teal-text); }
.cookie-decline { background: transparent; color: var(--slate-400); border: 1px solid rgba(255,255,255,0.15) !important; }
.cookie-decline:hover { color: var(--white); border-color: rgba(255,255,255,0.3) !important; }

/* ============================================================
   EMAIL CAPTURE STRIP
   ============================================================ */
.email-strip { padding: 48px 24px; background: var(--teal-50); border-top: 1px solid var(--teal-light); border-bottom: 1px solid var(--teal-light); }
.email-strip-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.email-strip h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.email-strip p { color: var(--slate-600); font-size: 0.92rem; margin-bottom: 20px; }
.email-strip-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.email-strip-form input { flex: 1; padding: 12px 16px; border-radius: 10px; border: 2px solid var(--teal-light); font-size: 0.92rem; font-family: var(--font-body); color: var(--navy); }
.email-strip-form input:focus { outline: none; border-color: var(--teal); }
.email-strip-form button { padding: 12px 20px; border-radius: 10px; border: none; background: var(--navy); color: var(--white); font-size: 0.88rem; font-weight: 700; font-family: var(--font-body); cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.email-strip-form button:hover { background: var(--navy-light); }
.email-strip .success-msg { display: none; color: var(--teal-dark); font-weight: 600; font-size: 0.92rem; }
@media (max-width: 640px) { .email-strip-form { flex-direction: column; } }

/* ============================================================
   SOCIAL PROOF / TESTIMONIALS
   ============================================================ */
.testimonials { padding: 80px 24px; background: var(--white); }
.testimonials-inner { max-width: 900px; margin: 0 auto; }
.testimonials h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; color: var(--navy); margin-bottom: 32px; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.testimonial-card { background: var(--slate-50); border-radius: 14px; padding: 28px 24px; border-left: 4px solid var(--teal); }
.testimonial-card.accent-blue { border-left-color: var(--blue); }
.testimonial-card.accent-orange { border-left-color: var(--orange); }
.testimonial-card blockquote { font-size: 0.92rem; color: var(--slate-600); line-height: 1.65; font-style: italic; margin-bottom: 16px; }
.testimonial-card cite { font-style: normal; font-size: 0.82rem; color: var(--slate-500); display: flex; align-items: center; gap: 10px; }
.testimonial-card cite strong { color: var(--navy); font-weight: 700; }
@media (max-width: 768px) { .testimonial-grid { grid-template-columns: 1fr; } }
