:root {
  --sovo-navy: #0B1E33;
  --sovo-navy-2: #142C48;
  --sovo-slate: #4B5563;
  --sovo-slate-light: #EDF0F4;
  --sovo-border: #DCE1E8;
  --sovo-accent: #C08B2E;
  --sovo-accent-dark: #A5741F;
}

html, body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--sovo-navy);
  background-color: #FFFFFF;
}

a {
  color: var(--sovo-accent-dark);
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(192, 139, 46, 0.35);
}

/* Navbar */
.navbar-sovo {
  background-color: var(--sovo-navy);
}

.navbar-sovo .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.navbar-sovo .nav-link:hover,
.navbar-sovo .nav-link.active {
  color: #FFFFFF;
}

.navbar-sovo .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Buttons */
.btn-accent {
  background-color: var(--sovo-accent);
  border-color: var(--sovo-accent);
  color: #FFFFFF;
  font-weight: 600;
}

.btn-accent:hover {
  background-color: var(--sovo-accent-dark);
  border-color: var(--sovo-accent-dark);
  color: #FFFFFF;
}

.btn-outline-light-sovo {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  font-weight: 600;
}

.btn-outline-light-sovo:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.btn-outline-navy {
  border: 1px solid var(--sovo-navy);
  color: var(--sovo-navy);
  font-weight: 600;
}

.btn-outline-navy:hover {
  background-color: var(--sovo-navy);
  color: #FFFFFF;
}

/* Hero */
.hero {
  background-color: var(--sovo-navy);
  color: #FFFFFF;
  padding: 6rem 0 5rem;
}

.hero h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-muted {
  background-color: var(--sovo-slate-light);
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sovo-accent-dark);
}

/* Cards */
.sovo-card {
  border: 1px solid var(--sovo-border);
  border-radius: 0.5rem;
  padding: 2rem;
  height: 100%;
  background-color: #FFFFFF;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--sovo-navy);
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Credibility strip */
.strip {
  background-color: #FFFFFF;
  border-top: 1px solid var(--sovo-border);
  border-bottom: 1px solid var(--sovo-border);
  padding: 1.5rem 0;
}

.strip .strip-item {
  color: var(--sovo-slate);
  font-size: 0.95rem;
}

/* Footer */
footer.site-footer {
  background-color: var(--sovo-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}

footer.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

footer.site-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Forms */
.form-card {
  border: 1px solid var(--sovo-border);
  border-radius: 0.5rem;
  padding: 2.5rem;
  background-color: #FFFFFF;
}

/* Honeypot field must stay invisible to humans but present to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Self-Assessment wizard — "instrument panel" accents on top of the existing
   navy/gold brand. Status colors are used only on answers/results, never
   decoratively elsewhere.
   ========================================================================== */
:root {
  --sovo-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --status-pass: #2E7D4F;
  --status-partial: #B3822E;
  --status-fail: #A63A3A;
  --status-notsure: #5A6472;
}

.mono-figure {
  font-family: var(--sovo-mono);
}

/* Progress bar */
.assess-progress-bar {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--sovo-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.assess-progress-bar .progress-bar {
  background-color: var(--sovo-accent);
}

/* Pill groups (profile page single-select fields) */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-option span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--sovo-border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--sovo-navy);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pill-option input:checked + span {
  background-color: var(--sovo-navy);
  border-color: var(--sovo-navy);
  color: #FFFFFF;
}

.pill-option input:focus-visible + span {
  outline: 2px solid var(--sovo-accent);
  outline-offset: 2px;
}

/* Question cards */
.question-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--sovo-border);
}

.question-card:first-of-type {
  padding-top: 0;
}

.nist-chip {
  font-family: var(--sovo-mono);
  font-size: 0.78rem;
  color: var(--sovo-slate);
  background-color: var(--sovo-slate-light);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.auto-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sovo-accent-dark);
  border: 1px solid var(--sovo-accent);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  cursor: help;
}

.question-text {
  font-weight: 600;
  color: var(--sovo-navy);
  font-size: 1.05rem;
}

.help-toggle {
  background: none;
  border: none;
  padding: 0;
  color: var(--sovo-accent-dark);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.help-text {
  border-left: 2px solid var(--sovo-border);
  padding-left: 0.75rem;
}

/* Answer pills */
.answer-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (max-width: 575.98px) {
  .answer-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Longer-worded option sets (e.g. the MFA/FIPS three-state questions) read better stacked
   full-width than crammed into the standard 4-up grid. */
.answer-pills-stack {
  grid-template-columns: 1fr;
}

.answer-pills-stack .answer-pill {
  text-align: left;
  padding: 0.65rem 0.85rem;
}

.answer-pill {
  border: 1px solid var(--sovo-border);
  background-color: #FFFFFF;
  border-radius: 6px;
  padding: 0.5rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sovo-slate);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.answer-pill:hover {
  border-color: var(--sovo-navy);
}

.answer-pill-yes.active { background-color: var(--status-pass); border-color: var(--status-pass); color: #FFFFFF; }
.answer-pill-partial.active { background-color: var(--status-partial); border-color: var(--status-partial); color: #FFFFFF; }
.answer-pill-no.active { background-color: var(--status-fail); border-color: var(--status-fail); color: #FFFFFF; }
.answer-pill-notsure.active { background-color: var(--status-notsure); border-color: var(--status-notsure); color: #FFFFFF; }

/* Calculating interstitial */
.calc-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--sovo-accent);
  margin: 0 auto;
  animation: sovo-spin 0.9s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .calc-spinner {
    animation: none;
  }
}

@keyframes sovo-spin {
  to { transform: rotate(360deg); }
}

/* Results page */
.results-hero {
  padding: 4rem 0 3rem;
}

.score-readout {
  font-family: var(--sovo-mono);
  font-weight: 600;
  font-size: 6rem;
  line-height: 1;
  color: #FFFFFF;
}

@media (max-width: 575.98px) {
  .score-readout {
    font-size: 3.5rem;
  }
}

.score-scale {
  max-width: 420px;
}

.score-scale-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--status-fail), var(--status-partial), var(--status-pass));
}

.score-scale-marker {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 18px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.score-scale-dod-label {
  position: absolute;
  right: 0;
  top: -22px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.callout-card {
  border: 1px solid var(--sovo-border);
  border-left: 4px solid var(--status-partial);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  background-color: #FFFFFF;
}

.callout-amber { border-left-color: var(--status-partial); }
.callout-red { border-left-color: var(--status-fail); }

/* A harder stop than a normal callout-card: solid fill, not just a left border accent —
   reserved for gating requirements (e.g. missing SSP) that invalidate the assessment
   outright rather than just costing points. */
.callout-critical {
  background-color: var(--status-fail);
  color: #FFFFFF;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.callout-critical h3 {
  color: #FFFFFF;
}

.callout-critical p {
  color: rgba(255, 255, 255, 0.9);
}

.family-bar-fill-good { background-color: var(--status-pass); }
.family-bar-fill-mixed { background-color: var(--status-partial); }
.family-bar-fill-low { background-color: var(--status-fail); }

.recovery-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--sovo-border);
}

.recovery-item > span:nth-child(2) {
  flex: 1;
}

/* Three-legged paid-tier pitch (results page, above the waitlist CTA) — each leg needs to be
   independently scannable, not read as one paragraph. */
.value-leg-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.value-leg-list li {
  position: relative;
  padding: 0 0 0.9rem 1.5rem;
  color: var(--sovo-slate);
  font-size: 0.9rem;
}

.value-leg-list li:last-child {
  padding-bottom: 0;
}

.value-leg-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--sovo-accent);
}

.value-leg-list li strong {
  color: var(--sovo-navy);
  display: block;
  margin-bottom: 0.15rem;
}

.breakdown-table th {
  color: var(--sovo-slate);
  font-weight: 600;
  border-bottom-width: 1px;
}

.answer-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: #FFFFFF;
  text-transform: capitalize;
}

.answer-tag-yes { background-color: var(--status-pass); }
.answer-tag-partial { background-color: var(--status-partial); }
.answer-tag-no { background-color: var(--status-fail); }
.answer-tag-notsure { background-color: var(--status-notsure); }
