:root {
  --navy: #1F3864; --navy-dark: #152847; --gold: #C49A00;
  --gold-light: #E8B900; --white: #ffffff;
  --light-gray: #f4f6f9; --text: #2d2d2d; --text-light: #5a554b;
  --border: #e2e8f0;
  --risk-low: #16a34a; --risk-mid: #d97706; --risk-high: #dc2626;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; color: var(--text); background: var(--light-gray); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }

.skip-link { position: absolute; top: -100%; left: 0; background: var(--gold); color: var(--navy); padding: 0.5rem 1rem; font-weight: 700; z-index: 9999; text-decoration: none; border-radius: 0 0 4px 0; }
.skip-link:focus { top: 0; }

/* NAV */
nav { position: sticky; top: 0; z-index: 1000; background: var(--navy); padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; padding: 1rem 0; }
.nav-brand .logo-circle { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; }
.nav-brand span { color: var(--white); font-size: 1.1rem; font-weight: 700; }
.nav-brand span em { color: var(--gold); font-style: normal; }
.nav-toggle { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 20px; background: none; border: 0; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.95rem; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { background: rgba(196,154,0,0.2); color: var(--gold-light); }
.nav-links a.active { font-weight: 600; }
.nav-cta { background: var(--gold); color: var(--navy) !important; font-weight: 700 !important; padding: 0.5rem 1.25rem !important; border-radius: 4px !important; }
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }
.u-badge-gold { background: rgba(196,154,0,0.15); border: 1px solid rgba(196,154,0,0.35); color: var(--gold-light) !important; font-weight: 600; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2a4a80 100%); color: var(--white); padding: 4rem 2rem 3.5rem; text-align: center; }
.hero-inner { max-width: 920px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(196,154,0,0.15); border: 1px solid rgba(196,154,0,0.4); color: var(--gold-light); padding: 0.3rem 1rem; border-radius: 50px; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 span { color: var(--gold-light); }
.hero-sub { color: rgba(255,255,255,0.92); font-size: 1.1rem; max-width: 680px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 720px; margin: 2rem auto 0; }
.stat { background: rgba(255,255,255,0.06); border: 1px solid rgba(196,154,0,0.25); border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--gold-light); }
.stat-lbl { font-size: 0.78rem; color: rgba(255,255,255,0.85); margin-top: 0.25rem; text-align: center; }

/* WRAP */
.wrap { max-width: 880px; margin: -2.5rem auto 4rem; padding: 0 1rem; position: relative; z-index: 2; }

/* PROGRESS */
.progress-card { background: var(--white); border-radius: 14px; padding: 1.25rem 1.5rem; box-shadow: 0 4px 16px rgba(31,56,100,0.08); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.prog-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; }
.prog-label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.prog-pct { font-size: 0.85rem; color: var(--text-light); font-weight: 600; }
.prog-track { background: var(--light-gray); border-radius: 999px; height: 8px; overflow: hidden; margin-bottom: 1rem; }
.prog-fill { background: linear-gradient(90deg, var(--gold), var(--gold-light)); height: 100%; width: 0%; border-radius: 999px; transition: width 0.4s ease; }
.section-dots { display: flex; gap: 0.5rem; justify-content: center; }
.section-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: background 0.2s, transform 0.2s; }
.section-dot.active { background: var(--gold); transform: scale(1.3); }
.section-dot.done { background: var(--risk-low); }

/* SCREEN / CARD */
.screen { display: none; }
.screen.active { display: block; }
.card { background: var(--white); border-radius: 16px; padding: 2.5rem; box-shadow: 0 4px 20px rgba(31,56,100,0.08); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.sec-icon { width: 60px; height: 60px; border-radius: 14px; background: rgba(196,154,0,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.9rem; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif; }
.finding-icon, .rec-icon { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif; }
.card h2 { color: var(--navy); font-size: 1.6rem; margin-bottom: 0.5rem; font-weight: 800; }
.card .sub { color: var(--text-light); font-size: 1rem; line-height: 1.7; margin-bottom: 1.75rem; }

/* FORM */
.form-group { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.form-group input, .form-group select { font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,154,0,0.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* QUESTIONS (built by JS) */
.question-block { background: var(--light-gray); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem; border-left: 4px solid var(--gold); }
.q-text { font-size: 1.02rem; font-weight: 600; color: var(--navy); line-height: 1.5; margin-bottom: 1rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.q-num { background: var(--navy); color: var(--gold-light); width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; flex-shrink: 0; }
.options { display: flex; flex-direction: column; gap: 0.5rem; }
.opt { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.85rem 1rem; background: var(--white); border: 2px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.opt:hover { border-color: var(--gold-light); background: #fffbef; }
.opt input[type="radio"] { margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--gold); }
.opt:has(input[type="radio"]:checked) { border-color: var(--gold); background: #fffbef; }
.opt-text { font-size: 0.95rem; color: var(--text); line-height: 1.5; }

/* BUTTONS */
.btn-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn-primary, .btn-secondary, .btn-ghost, .btn-gold { font: inherit; cursor: pointer; padding: 0.85rem 1.75rem; border-radius: 8px; font-weight: 700; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; transition: all 0.2s; border: 0; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-secondary { background: var(--white); color: var(--navy); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--text-light); }
.btn-ghost:hover { color: var(--navy); }
.btn-gold { background: var(--navy); color: var(--gold-light); }
.btn-gold:hover { background: var(--navy-dark); }

/* TRUST BAR */
.trust-bar { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-light); font-weight: 600; }
.trust-item span { display: inline-flex; }

/* RESULTS — RING */
.ring-wrap { text-align: center; padding: 1rem 0 2rem; }
.ring-wrap h2 { color: var(--navy); font-size: 1.4rem; text-align: center; margin-bottom: 0.25rem; font-weight: 800; }
.results-date { text-align: center; color: var(--text-light); font-size: 0.85rem; margin: 0 0 1.5rem; }
.ring-svg-wrap { position: relative; display: inline-block; width: 200px; height: 200px; margin: 0.5rem 0 1rem; }
.ring-svg-wrap svg { width: 200px; height: 200px; display: block; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--light-gray); stroke-width: 14; }
.ring-fill { fill: none; stroke: var(--gold); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.2s ease, stroke 0.4s; }
.ring-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.score-num { font-size: 3.2rem; font-weight: 900; color: var(--navy); line-height: 1; }
.score-denom { font-size: 0.95rem; color: var(--text-light); margin-top: 0.15rem; }
.risk-pill { display: inline-block; padding: 0.4rem 1.2rem; border-radius: 50px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 0.5rem; }
.risk-pill.low  { background: rgba(22,163,74,0.12); color: var(--risk-low); border: 1px solid rgba(22,163,74,0.4); }
.risk-pill.mid  { background: rgba(217,119,6,0.12); color: var(--risk-mid); border: 1px solid rgba(217,119,6,0.4); }
.risk-pill.high { background: rgba(220,38,38,0.12); color: var(--risk-high); border: 1px solid rgba(220,38,38,0.4); }
.risk-summary { color: var(--text-light); max-width: 580px; margin: 1.25rem auto 0; line-height: 1.7; font-size: 0.98rem; }

/* RESULTS — SECTION TITLES */
.section-title { color: var(--navy); font-size: 1.1rem; font-weight: 800; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); }

/* RESULTS — CATEGORY BARS */
.cat-row { margin-bottom: 1rem; }
.cat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; gap: 1rem; }
.cat-name-lbl { font-size: 0.92rem; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 0.5rem; }
.cat-name-lbl svg { flex-shrink: 0; }
.cat-risk-lbl { font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.cat-risk-lbl.risk-low { color: var(--risk-low); }
.cat-risk-lbl.risk-mid { color: var(--risk-mid); }
.cat-risk-lbl.risk-high { color: var(--risk-high); }
.cat-risk-lbl.risk-critical { color: #C53030; }
.cat-track { background: var(--light-gray); border-radius: 999px; height: 10px; overflow: hidden; }
.cat-fill { height: 100%; width: 0%; border-radius: 999px; transition: width 1s ease; background: var(--gold); }
.cat-fill.risk-low { background: var(--risk-low); }
.cat-fill.risk-mid { background: var(--risk-mid); }
.cat-fill.risk-high { background: var(--risk-high); }
.cat-fill.risk-critical { background: #C53030; }

/* RESULTS — STYLED INLINE-REPLACED CLASSES */
.results-badge { margin-bottom: 1rem; }
.results-btn { margin-top: 0.75rem; }
.cta-box { margin-top: 1.75rem; }

/* RESULTS — FINDINGS */
.finding { display: flex; gap: 0.85rem; padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 0.75rem; align-items: flex-start; }
.finding.f-low { background: rgba(22,163,74,0.08); border-left: 4px solid var(--risk-low); }
.finding.f-mid { background: rgba(217,119,6,0.08); border-left: 4px solid var(--risk-mid); }
.finding.f-medium { background: rgba(217,119,6,0.08); border-left: 4px solid var(--risk-mid); }
.finding.f-high { background: rgba(220,38,38,0.08); border-left: 4px solid var(--risk-high); }
.finding.f-critical { background: rgba(220,38,38,0.12); border-left: 4px solid var(--risk-high); }
.finding-icon { flex-shrink: 0; padding-top: 0.15rem; display: flex; }
.finding.f-low .finding-icon { color: var(--risk-low); }
.finding.f-mid .finding-icon, .finding.f-medium .finding-icon { color: var(--risk-mid); }
.finding.f-high .finding-icon, .finding.f-critical .finding-icon { color: var(--risk-high); }
.finding h4 { color: var(--navy); font-size: 1rem; margin-bottom: 0.25rem; font-weight: 700; }
.finding p { color: var(--text-light); font-size: 0.92rem; line-height: 1.6; }

/* RESULTS — RECOMMENDATIONS */
.recs-box { background: var(--light-gray); border-radius: 12px; padding: 1.5rem; margin-top: 0.5rem; }
.recs-box .section-title { margin-top: 0; }
.rec-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.rec-row:last-of-type { border-bottom: 0; }
.rec-icon { font-size: 1.6rem; line-height: 1; }
.rec-body h4 { color: var(--navy); font-size: 1rem; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rec-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.55; }
.rec-tag { background: var(--gold); color: var(--navy); padding: 0.15rem 0.5rem; border-radius: 50px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.rec-price { text-align: right; }
.rec-price strong { display: block; color: var(--navy); font-weight: 800; font-size: 1.05rem; }
.rec-price small { color: var(--text-light); font-size: 0.75rem; }

/* RESULTS — CTA */
.cta-box { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: var(--white); border-radius: 14px; padding: 2rem; text-align: center; margin-top: 2rem; }
.cta-box h3 { color: var(--gold-light); font-size: 1.3rem; margin-bottom: 0.6rem; }
.cta-sub { color: rgba(255,255,255,0.92); margin-bottom: 1.25rem; line-height: 1.7; }

/* FOOTER */
footer { background: #0e1f3a; color: rgba(255,255,255,0.88); padding: 2.5rem 2rem; text-align: center; font-size: 0.9rem; line-height: 1.8; }
footer strong { color: var(--white); font-size: 1rem; }
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { color: var(--gold-light); }

@media (max-width: 768px) {
  nav { flex-wrap: wrap; padding: 0 1rem; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; padding: 0.5rem 0 1rem; gap: 0; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.75rem 1.5rem; border-radius: 4px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links a:last-child { border-bottom: none; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 0 0.75rem; margin-top: -2rem; }
  .card { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .rec-row { grid-template-columns: auto 1fr; }
  .rec-price { grid-column: 1 / -1; text-align: left; padding-left: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
