:root {
  --navy: #0b2a3c;
  --teal: #0e7c7b;
  --teal-dark: #0a5f5e;
  --mint: #5fd3b3;
  --amber: #f2a93b;
  --ink: #13232e;
  --slate: #4f6472;
  --mist: #e3ecee;
  --paper: #f6f8f7;
  --white: #ffffff;
  --plan: #0e7c7b;
  --train: #9a5a10;
  --vault: #237a5c;
  --intake: #2f6fb0;
  --danger: #8a3412;
  --shadow: 0 18px 50px rgba(11, 42, 60, 0.08);
  --radius: 14px;
  --header: 4.25rem;
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-text: Inter, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p { overflow-wrap: break-word; }
[id] { scroll-margin-top: 5.5rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.35rem, 8vw, 4rem); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 4vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }

p { margin: 0 0 0.9rem; }

a { color: var(--teal); text-underline-offset: 0.16em; }
a:hover { color: var(--teal-dark); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: white;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  z-index: 40;
}
.skip:focus { top: 0.75rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section { padding: 3.25rem 0; }
.section-tight { padding-top: 0; }

.section-head { max-width: 40rem; }
.section-head.center { margin-bottom: 1.75rem; }
.lede, .muted { color: var(--slate); }
.lede { font-size: 1.05rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.sq {
  width: 8px;
  height: 8px;
  background: var(--mint);
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 1rem/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); color: white; }
.btn-secondary { background: white; color: var(--navy); border-color: #c9d6da; }
.btn-secondary:hover { border-color: var(--teal); color: var(--navy); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--mist);
  padding-top: env(safe-area-inset-top);
}

.header-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-height: var(--header);
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.logo img { width: 32px; height: 32px; }
.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.wordmark .bess { font-weight: 700; color: var(--navy); }
.wordmark .ready { font-weight: 500; color: var(--teal); }
.logo-reversed .bess { color: white; }
.logo-reversed .ready { color: var(--mint); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mist);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  padding: 0;
}
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
}
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: none;
  flex: 1 0 100%;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0 1rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  padding: 0.8rem 0.15rem;
  border-radius: 8px;
}
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav .btn { margin-top: 0.35rem; }
.nav-login { font-weight: 600; }

.hero {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: 2.25rem 0 1rem;
}
.hero-copy p { max-width: 38rem; color: var(--slate); font-size: 1.05rem; }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; }
.hero-actions .btn { width: 100%; }

.score-card {
  background: white;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem;
}
.score-panel {
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 1rem;
}
.score-top, .score-row, .feed li {
  display: flex;
  gap: 0.75rem;
}
.score-top { justify-content: space-between; align-items: flex-start; }
.score-kicker {
  margin: 0;
  color: #d5e0e6;
  font-size: 0.85rem;
}
.score-top h2 {
  color: white;
  font-size: 1.35rem;
  margin: 0;
}
.pill {
  flex: 0 0 auto;
  border: 1px dashed var(--amber);
  color: #f6d48a;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.score-row { align-items: center; margin-top: 1rem; }
.ring {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--mint) calc(var(--p) * 1%), #1c4258 0);
  display: grid;
  place-items: center;
}
.ring span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}
.score-label { margin: 0; font-weight: 600; }
.score-note { margin: 0.15rem 0 0; color: #d5e0e6; font-size: 0.92rem; }
.feed {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.35rem 0.35rem 0.15rem;
}
.feed li {
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid var(--mist);
  font-size: 0.95rem;
}
.feed time {
  margin-left: auto;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: 0 0 auto;
  transform: translateY(1px);
}
.dot-plan { background: var(--plan); }
.dot-train { background: var(--train); }
.dot-vault { background: var(--vault); }
.dot-intake { background: var(--intake); }
.caption {
  margin: 0.7rem 0.35rem 0.2rem;
  color: var(--slate);
  font-size: 0.82rem;
}

.strip {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0 0.5rem;
}
.strip article h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.strip article p { margin: 0; color: var(--slate); font-size: 0.95rem; }

.feature-grid, .module-grid, .steps, .split, .footer-grid, .form-grid, .two {
  display: grid;
  gap: 1rem;
}

.card, .module-card, .plain-card {
  background: white;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.15rem 1.2rem;
}
.card h3, .plain-card h3 { margin-bottom: 0.35rem; }
.card p, .plain-card p, .module-card p { color: var(--slate); margin-bottom: 0; }
.card p + p, .module-card p + p { margin-top: 0.7rem; }

.module-card {
  border-left: 5px solid var(--accent, var(--teal));
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.module-card[data-module="plan"] { --accent: var(--plan); }
.module-card[data-module="train"] { --accent: var(--train); }
.module-card[data-module="vault"] { --accent: var(--vault); }
.module-card[data-module="intake"] { --accent: var(--intake); }
.module-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
}
.module-card .meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

.band-navy {
  background: var(--navy);
  color: white;
}
.band-navy h2, .band-navy h3 { color: white; }
.band-navy p, .band-navy li { color: #d5e0e6; }
.band-navy .eyebrow { color: var(--mint); }
.module-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.module-links a {
  display: block;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  min-height: 48px;
}
.module-links a strong { display: block; font-family: var(--font-display); font-weight: 600; }
.module-links a span { color: #d5e0e6; font-size: 0.92rem; }
.module-links a:hover { border-color: var(--mint); color: white; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  background: white;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.15rem;
}
.num {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.03em;
}

.check-list, .limit-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.check-list li, .limit-list li { margin: 0.35rem 0; }
.limit-list li::marker { color: var(--train); }

.placeholder {
  border: 1px dashed var(--amber);
  background: #fffaf1;
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin: 0;
}
.placeholder-tag {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.placeholder p { margin: 0; color: var(--slate); }

.page-hero { padding: 2.4rem 0 0.5rem; }
.page-hero p { max-width: 42rem; color: var(--slate); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }

.callout {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}
.callout h2, .callout h3 { color: white; }
.callout p { color: #d5e0e6; margin-bottom: 0; }
.callout-mist {
  background: white;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.callout-mist p:last-child { margin-bottom: 0; }

details.faq {
  background: white;
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 0.35rem 1rem;
}
details.faq + details.faq { margin-top: 0.7rem; }
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  min-height: 48px;
  display: flex;
  align-items: center;
}
details.faq p { color: var(--slate); }

.statute {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--teal);
  text-decoration: none;
}

.contact-layout { display: grid; gap: 1.5rem; }
.form-card {
  background: white;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-span { grid-column: auto; }
.field label { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.hint { color: var(--slate); font-size: 0.85rem; }
.err { color: var(--danger); font-size: 0.88rem; min-height: 0; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }

input, select, textarea {
  width: 100%;
  font: 400 17px/1.4 var(--font-text);
  color: var(--ink);
  background: white;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  min-height: 48px;
}
textarea { min-height: 150px; resize: vertical; }
select { background: white; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #e7f7f2; color: var(--navy); }
.form-status.bad { background: #fdeee6; color: var(--danger); }
.form-actions { margin-top: 0.4rem; }
.form-actions .btn { width: 100%; }

.result-page h1 { margin-top: 0.4rem; }
.result-actions { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.25rem; }

.site-footer {
  background: var(--navy);
  color: #d5e0e6;
  padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom));
  margin-top: 1rem;
}
.footer-grid { gap: 1.5rem; }
.footer-brand p { color: #d5e0e6; max-width: 28rem; }
.site-footer h2 {
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
}
.site-footer a {
  display: block;
  color: #d5e0e6;
  text-decoration: none;
  padding: 0.28rem 0;
}
.site-footer a:hover { color: white; }
.disclaimer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.disclaimer p, .legal-line {
  color: #b7c6ce;
  font-size: 0.82rem;
  max-width: 78ch;
}
.legal-line { margin-bottom: 0; }

.logo-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }

@media (max-width: 480px) {
  .eyebrow { letter-spacing: 0.04em; font-size: 11px; }
}

@media (max-width: 380px) {
  .wrap { width: min(1120px, calc(100% - 1.5rem)); }
  .wordmark { font-size: 1.05rem; }
  .logo img { width: 28px; height: 28px; }
  .pill { letter-spacing: 0.04em; }
}

@media (max-width: 520px) {
  .feed li { flex-wrap: wrap; }
  .feed time { margin-left: 1.4rem; }
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .hero-actions .btn, .form-actions .btn, .result-actions .btn { width: auto; }
  .strip, .feature-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-span { grid-column: 1 / -1; }
  .result-actions { flex-direction: row; }
}

@media (min-width: 960px) {
  .section { padding: 5rem 0; }
  .section-head.center { text-align: center; margin-inline: auto; }
  .header-bar { flex-wrap: nowrap; }
  .nav-toggle, .header-demo { display: none; }
  .site-nav {
    display: flex;
    flex: 0 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 1.15rem;
    margin-left: auto;
    padding: 0;
  }
  .logo { margin-right: 0; }
  .site-nav a { padding: 0.35rem 0; }
  .site-nav .btn { margin-top: 0; margin-left: 0.35rem; }
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    padding: 4.25rem 0 2rem;
  }
  .strip { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 2rem; }
  .feature-grid, .steps, .module-links { grid-template-columns: repeat(3, 1fr); }
  .module-grid, .two, .contact-layout { grid-template-columns: 1fr 1fr; }
  .module-links { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 0.7fr 0.7fr 0.9fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

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