/* Cyber Insurance Readiness pages.
   Role colors come from tokens.css. This file must not contain a hex literal.
   Inner-page pattern: fixed navy nav, light content, gold actions (see brief.css). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: var(--c-navy);
  --gold: var(--c-gold);
  --gold-light: var(--c-gold-light);
  --surface: var(--c-white);
  --ink-on-navy: var(--c-white);
  --off-white: var(--c-off-white);
  --slate: var(--c-slate);
  --slate-dark: var(--c-slate-dark);
  --border: var(--c-border-light);
  --gold-wash: var(--c-gold-22);
  --card-shadow: var(--c-navy-06);
  --text: var(--c-text-dark);
  --blue-muted: var(--c-blue-muted);
  --teal: var(--c-teal);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; }

[id] { scroll-margin-top: 84px; }

.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden; z-index: 200;
  background: var(--gold); color: var(--navy);
  font-weight: 700; text-decoration: none; padding: 0.75rem; text-align: center;
}
.skip-link:focus {
  position: fixed; top: 0; left: 0; right: 0;
  width: auto; height: auto;
}

nav {
  background: var(--navy);
  padding: 0 2rem;
  height: 68px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  margin-right: auto;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  color: var(--ink-on-navy);
}
.nav-brand img {
  width: 36px; height: 36px;
  object-fit: cover; border-radius: 4px; flex-shrink: 0;
}
.nav-brand span { color: var(--gold-light); }
.nav-links { display: flex; gap: 0.25rem; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none; font-size: 0.9rem; font-weight: 400;
  padding: 0.5rem 0.85rem; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink-on-navy); background: rgba(255, 255, 255, 0.07); }
.nav-links a[aria-current="page"] { color: var(--gold-light); }
@media (max-width: 1040px) {
  nav { padding: 0 1rem; }
  .nav-links a { padding: 0.45rem 0.5rem; font-size: 0.82rem; }
}
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 0.5rem; border-radius: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink-on-navy); border-radius: 2px;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle:focus-visible,
.nav-links a:focus-visible,
.lang-toggle button:focus-visible,
.btn-gold:focus-visible,
.btn-outline:focus-visible,
.opts label:focus-within {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--ink-on-navy);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.lang-toggle button.is-on { background: var(--gold); color: var(--navy); }

.page-header {
  background: var(--navy);
  padding: 110px 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.page-header-inner { max-width: 42rem; }
.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--ink-on-navy);
  margin: 0 0 1rem;
}
.page-header .lede { color: var(--slate); font-size: 1.08rem; line-height: 1.7; margin: 0; }
.back { margin: 0 0 0.85rem; font-size: 0.92rem; }
.back a { color: var(--gold-light); font-weight: 600; text-decoration: none; }
.back a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.wrap-narrow { max-width: 760px; }

.block { padding: 3.25rem 0; }
.band { background: var(--off-white); }
.band-navy { background: var(--navy); }
.band-navy h2,
.full-project h2 { color: var(--ink-on-navy); }
.band-navy .lede,
.full-project p { color: var(--slate); }

h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); color: var(--navy); margin: 0 0 0.75rem; }
.lede { color: var(--slate-dark); font-size: 1.05rem; line-height: 1.7; }
.lede + .lede { margin-top: 1rem; }
.kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.7rem;
}
.full-project .kicker,
.band-navy .kicker { color: var(--gold-light); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn-gold, .btn-outline {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; text-align: center;
  padding: 0.85rem 1.35rem; border-radius: 8px;
  cursor: pointer; line-height: 1.2;
}
.btn-gold {
  background: var(--gold); color: var(--navy); border: 0;
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: var(--gold-wash); }
.page-header .btn-outline,
.on-navy .btn-outline,
.band-navy .btn-outline,
.full-project .btn-outline {
  color: var(--ink-on-navy);
  border-color: var(--gold-light);
}
.page-header .btn-outline:hover,
.band-navy .btn-outline:hover,
.full-project .btn-outline:hover { background: rgba(255, 255, 255, 0.06); }
.closer { text-align: center; }
.closer .lede { max-width: 40rem; margin-left: auto; margin-right: auto; }
.closer .actions { justify-content: center; }

.step-grid, .why-grid, .tier-grid {
  display: grid; gap: 1.15rem; margin-top: 1.5rem;
}
.step-grid, .why-grid, .tier-grid { grid-template-columns: repeat(3, 1fr); }
.tier-grid { padding-top: 0.85rem; align-items: stretch; }

.card, .tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.3rem 1.45rem;
  box-shadow: 0 10px 30px var(--card-shadow);
}
.tier { display: flex; flex-direction: column; position: relative; }
.tier .btn-gold, .tier .btn-outline { margin-top: auto; width: 100%; }
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.card h3, .tier h3 { font-size: 1.2rem; color: var(--navy); margin: 0.35rem 0 0.45rem; }
.card p, .why-grid p { color: var(--slate-dark); }
.tier-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: var(--navy); margin: 0.15rem 0 0.85rem;
}
.tier-price small { font-size: 0.95rem; font-weight: 500; color: var(--slate-dark); }
.tier-featured { border: 2px solid var(--gold); }
.tier-badge {
  position: absolute; top: -0.7rem; left: 1.1rem;
  background: var(--gold); color: var(--navy);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.ticks { list-style: none; margin: 0 0 1.25rem; }
.ticks li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.45rem 0;
  color: var(--slate-dark);
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.45rem;
  width: 0.5rem; height: 0.28rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.full-project {
  margin-top: 1.75rem;
  background: var(--navy);
  border-radius: 14px;
  padding: 2rem 1.75rem;
}
.full-project p { line-height: 1.7; margin-top: 0.75rem; }
.full-project .kicker { margin-top: 0; }
.placeholder-note {
  margin-top: 1.25rem;
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 0.9rem 1rem;
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-size: 0.95rem;
}
.placeholder-note strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy);
  margin-bottom: 0.3rem;
}
.placeholder-note a { color: var(--navy); font-weight: 700; }

.qa { padding-bottom: 1.2rem; }
.qa + .qa { border-top: 1px solid var(--border); padding-top: 1.2rem; }
.qa h2 { font-size: 1.15rem; font-weight: 600; }
.qa p { color: var(--slate-dark); margin-top: 0.45rem; }

.disclaimer {
  background: var(--gold-wash);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1.15rem 1.25rem;
  max-width: 760px;
}
.disclaimer h2 { font-size: 1.15rem; }
.disclaimer p { margin-top: 0.45rem; color: var(--text); }

.noscript-note {
  background: var(--gold-wash);
  border-left: 4px solid var(--gold);
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
}

/* Self-check */
.q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.15rem;
  margin: 0.9rem 0;
  box-shadow: 0 8px 24px var(--card-shadow);
  min-inline-size: 0;
}
.q legend {
  display: block; width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--navy); padding: 0; margin-bottom: 0.35rem;
}
.q .hint { color: var(--slate-dark); font-size: 0.95rem; margin: 0 0 0.8rem; }
.q.miss { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.opts label {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.4rem;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  background: var(--surface);
  cursor: pointer;
}
.opts input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.opts label:has(input:checked),
.opts label.sel {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.form-error {
  color: var(--navy); font-weight: 700;
  background: var(--gold-wash);
  border-left: 4px solid var(--gold);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}
.form-ok {
  color: var(--navy); font-weight: 700;
  background: var(--off-white);
  border-left: 4px solid var(--teal);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}
.form-error a, .form-ok a { color: var(--navy); }
.lead-detail {
  display: block;
  margin-top: 0.45rem;
  font-weight: 500;
}
.lead-box .privacy-note {
  margin: 0.85rem 0 0;
  color: var(--slate-dark);
  font-size: 0.92rem;
}
.hp { display: none; }
.check-body { padding-top: 1.5rem; padding-bottom: 3rem; }
#quiz-form > .btn-gold { margin-top: 0.85rem; }
#results h2 { margin-top: 1.5rem; }
.check-body .disclaimer { margin-top: 2.5rem; }

.score-panel {
  background: var(--navy);
  color: var(--ink-on-navy);
  border-radius: 14px;
  padding: 1.75rem 1.4rem;
  text-align: center;
}
.score-panel .score-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-light);
}
.score-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 700;
  color: var(--gold); margin: 0.25rem 0;
}
.meter {
  height: 12px; border-radius: 6px; overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  margin: 0.4rem 0 0.9rem;
}
.meter > div { height: 100%; width: 0; background: var(--gold); }
.score-band { color: var(--ink-on-navy); margin: 0; }

.gap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--slate);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 0.75rem 0;
}
.gap.high { border-left-color: var(--gold); }
.gap.med { border-left-color: var(--blue-muted); }
.gap.low { border-left-color: var(--slate); }
.sev {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); margin: 0;
}
.gap-q { font-weight: 700; color: var(--navy); margin: 0.25rem 0 0.35rem; }
.gap p:last-child { color: var(--slate-dark); margin: 0; }

.lead-box {
  background: var(--off-white);
  border: 1px dashed var(--gold);
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.3rem;
  margin: 1.25rem 0;
}
.lead-box h2 { font-size: 1.25rem; }
.lead-box > p { color: var(--slate-dark); margin: 0.45rem 0 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.field { margin-bottom: 0.85rem; }
.field label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 0.35rem;
}
.field input, .field select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.field input:focus, .field select:focus { outline: none; box-shadow: 0 0 0 2px var(--gold); }
.again { margin-top: 1rem; }
.again a { color: var(--navy); font-weight: 700; }

footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy, .footer-email { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
.footer-email a { color: var(--gold-light); font-weight: 600; text-decoration: none; }
.footer-email a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-mission {
  flex-basis: 100%;
  font-size: 0.85rem; line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}
.footer-mission a { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.footer-mission a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .meter > div { transition: width 0.4s ease; }
}

@media (max-width: 800px) {
  .step-grid, .why-grid, .tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav { padding: 0 0.85rem; gap: 0.45rem; }
  .nav-brand { font-size: 0.82rem; gap: 0.4rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0; margin: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.7rem 0.5rem; }
  .page-header { padding: 96px 0 2.25rem; }
  .wrap { padding: 0 1.25rem; }
  .block { padding: 2.5rem 0; }
  .opts { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .full-project { padding: 1.5rem 1.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
