/* Bridgestead Talent (a division of HEIMS LLC) — Executive CFO & Search Advisory Design System */
:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-alt: #f2efe9;
  --navy: #0c1f17;
  --navy-soft: #163327;
  --slate: #293d33;
  --muted: #4b5e54;
  --border: #cfc8bc;
  --border-light: #e4dfd5;
  --emerald: #065f46;
  --emerald-dark: #044734;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;
  --brass: #b45309;
  --brass-light: #fbf5e8;
  --brass-border: #e5cba1;
  --amber-light: #fbf5e8;
  --amber-border: #e5cba1;
  --amber-text: #853d06;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(12, 31, 23, 0.06);
  --shadow-md: 0 14px 32px -8px rgba(12, 31, 23, 0.09), 0 4px 12px -4px rgba(12, 31, 23, 0.05);
  --shadow-lg: 0 22px 46px -12px rgba(12, 31, 23, 0.14), 0 8px 18px -6px rgba(12, 31, 23, 0.06);
  --max-w: 1180px;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy);
  background-color: var(--bg);
  line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Tabular Numerals for Financial, Salary, Fee & Exam Metrics */
.mono-num,
.results-headline-value,
.breakdown-row strong,
.bar-meta span:last-child,
.test-score-pill,
.scorecard-pay,
.compare-table tbody td:not(:first-child),
input[type="number"],
.dossier-score-total,
.dossier-rubric-score,
.docket-id-mono,
.receipt-pre,
.trust-metric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--emerald-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.35rem;
}

section[id],
main[id],
[id] {
  scroll-margin-top: 5.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  background: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: var(--navy);
}

.brand:hover {
  color: var(--navy);
}

.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--navy);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.91rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--emerald);
}

@media (min-width: 1024px) {
  .header-inner,
  .nav-links {
    flex-wrap: nowrap;
  }

  .brand,
  .nav-links a {
    white-space: nowrap;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.1s ease;
  line-height: 1.25;
  text-align: center;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
  box-shadow: 0 2px 6px rgba(6, 95, 70, 0.2);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  color: #ffffff;
}

/* Mandatory High-Contrast Navbar Primary CTA Override */
.nav-links a.btn-primary,
.site-header a.btn-primary {
  color: #ffffff;
}

.nav-links a.btn-primary:hover,
.site-header a.btn-primary:hover,
.nav-links a.btn-primary:focus-visible,
.site-header a.btn-primary:focus-visible {
  color: #ffffff;
  background: var(--emerald-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: var(--surface-alt);
  color: var(--navy);
}

.btn-sm {
  padding: 0.56rem 1rem;
  font-size: 0.87rem;
}

.btn-block {
  width: 100%;
}

/* 2-Column Executive Hero & Sample Finalist Dossier */
.hero {
  padding: 3.75rem 0 3.25rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brass-light);
  color: var(--amber-text);
  border: 1px solid var(--brass-border);
  padding: 0.32rem 0.82rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.05rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 4.3vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 1.15rem;
}

.hero h1 .mono-num {
  font-size: 0.84em;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.07rem;
  color: var(--slate);
  margin: 0 0 1.65rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

@media (min-width: 961px) and (max-width: 1180px) {
  .hero-actions {
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    padding: 0.75rem 0.98rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }
}

.hero-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

/* Illustrative Sample Finalist Dossier Artifact */
.hero-dossier {
  background: var(--surface);
  border: 1px solid var(--brass-border);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-lg);
}

.dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.dossier-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.dossier-w8-badge {
  display: inline-flex;
  align-items: center;
  background: var(--brass-light);
  color: var(--amber-text);
  border: 1px solid var(--brass-border);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.dossier-video-frame {
  background: var(--navy);
  color: #faf9f5;
  border-radius: var(--radius-sm);
  padding: 1rem 1.05rem;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dossier-video-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.dossier-play-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(6, 95, 70, 0.75);
  border: 1px solid rgba(110, 231, 183, 0.4);
  color: #ecfdf5;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
}

.dossier-duration {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: #fbbf24;
  font-weight: 600;
}

.dossier-video-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.dossier-video-quote {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.dossier-waveform {
  display: block;
  width: 100%;
  height: 26px;
}

.dossier-scorecard {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 0.9rem;
}

.dossier-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.dossier-score-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}

.dossier-score-total {
  background: var(--emerald);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

.dossier-rubric-row {
  margin-bottom: 0.5rem;
}

.dossier-rubric-row:last-child {
  margin-bottom: 0;
}

.dossier-rubric-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.77rem;
  color: var(--slate);
  margin-bottom: 0.2rem;
}

.dossier-rubric-score {
  font-weight: 700;
  color: var(--emerald);
}

.dossier-meter-track {
  height: 6px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}

.dossier-meter-fill {
  height: 100%;
  background: var(--emerald);
  border-radius: 999px;
}

.meter-w-98 {
  width: 98%;
}

.meter-w-96 {
  width: 96%;
}

.meter-w-95 {
  width: 95%;
}

.dossier-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.85rem;
}

.infra-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.58rem;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--navy-soft);
  border: 1px solid var(--border-light);
}

.infra-pill-verified {
  background: var(--emerald-light);
  color: var(--emerald);
  border-color: var(--emerald-border);
}

.dossier-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.79rem;
  color: var(--slate);
}

.dossier-footer a {
  font-weight: 700;
  font-size: 0.8rem;
}

/* Trust Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.trust-card strong {
  display: block;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.trust-card span {
  font-size: 0.86rem;
  color: var(--muted);
  display: block;
  line-height: 1.45;
}

/* Generic Sections & AEO Direct Answer Capsules */
.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  max-width: 800px;
  margin-bottom: 2.25rem;
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin-bottom: 0.4rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 0.7rem;
}

.section-header p,
.answer-capsule {
  margin: 0;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.62;
}

/* Interactive Payroll Savings Calculator */
.calc-preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.preset-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--slate);
  font-family: var(--font-sans);
  max-width: 100%;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.preset-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.preset-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 1.75rem;
  align-items: start;
}

.calc-grid > *,
.intake-layout > *,
.form-grid-2 > *,
.form-grid-3 > *,
.scorecard-grid > *,
.steps-grid > *,
.trust-strip > *,
.tool-checkbox-grid > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.control-group {
  margin-bottom: 1.4rem;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.control-label-row label {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--navy);
}

.control-hint {
  font-size: 0.81rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.slider-input-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 0.9rem;
  align-items: center;
}

/* Custom Styled Executive Sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 100%;
  height: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  accent-color: var(--emerald);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2.5px solid #ffffff;
  box-shadow: 0 1px 5px rgba(12, 31, 23, 0.32);
  transition: transform 0.12s ease, background-color 0.12s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--emerald-dark);
  transform: scale(1.06);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  background: var(--surface-alt);
  border-radius: 999px;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2.5px solid #ffffff;
  box-shadow: 0 1px 5px rgba(12, 31, 23, 0.32);
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--navy);
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="number"] {
  font-family: var(--font-mono);
  font-weight: 600;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}

/* Custom SVG Chevron on Select */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%230c1f17' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 15px 15px;
  padding-right: 2.4rem;
  text-overflow: ellipsis;
  cursor: pointer;
}

/* Prevent iOS Safari Input Auto-Zoom at <=768px */
@media (max-width: 768px) {
  input,
  select,
  textarea,
  input[type="number"],
  input[type="text"],
  input[type="email"],
  input[type="url"] {
    font-size: 1rem;
  }
}

.inline-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.currency-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.currency-btn {
  background: #ffffff;
  border: none;
  padding: 0.48rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
}

.currency-btn.active {
  background: var(--navy);
  color: #ffffff;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--slate);
  cursor: pointer;
}

.checkbox-inline input {
  width: 17px;
  height: 17px;
  accent-color: var(--emerald);
}

/* Results Panel */
.results-panel {
  background: var(--navy);
  color: #faf9f5;
  border: 1px solid rgba(180, 83, 9, 0.45);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
}

.results-badge {
  display: inline-block;
  background: rgba(6, 95, 70, 0.55);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.38);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.results-headline-label {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0;
}

.results-headline-value {
  font-size: clamp(1.95rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: #6ee7b7;
  line-height: 1.15;
  margin: 0.25rem 0 0.4rem;
}

.results-subnote {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0 0 1.25rem;
}

.results-breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1rem 0;
  margin-bottom: 1.25rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.breakdown-row span:first-child {
  color: #d1d5db;
}

.breakdown-row strong {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
}

.breakdown-row.highlight strong {
  color: #6ee7b7;
}

.bar-compare {
  margin-bottom: 1.35rem;
}

.bar-row {
  margin-bottom: 0.65rem;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #d1d5db;
  margin-bottom: 0.25rem;
}

.bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill-local {
  height: 100%;
  background: #9ca3af;
  width: 100%;
}

.bar-fill-ph {
  height: 100%;
  background: #34d399;
  width: 35%;
  transition: width 0.2s ease;
}

/* Candidate Scorecards */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.35rem;
}

.scorecard {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.scorecard[hidden] {
  display: none;
}

.scorecard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.candidate-id {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--emerald);
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
}

.test-score-pill {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--navy);
  color: #ffffff;
  padding: 0.24rem 0.6rem;
  border-radius: 6px;
}

.scorecard h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--navy);
}

.scorecard-summary {
  font-size: 0.91rem;
  color: var(--slate);
  margin: 0 0 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--bg);
  color: var(--navy-soft);
  border: 1px solid var(--border-light);
  font-size: 0.77rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.audit-list {
  list-style: none;
  padding: 0.85rem 0 0;
  margin: 0 0 1.15rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.86rem;
  color: var(--slate);
}

.audit-list li {
  margin-bottom: 0.42rem;
}

.scorecard-pay {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.81rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 10-Day Timeline & Guarantee */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.step-day {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--amber-text);
  background: var(--brass-light);
  border: 1px solid var(--brass-border);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.step-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  color: var(--navy);
}

.step-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--slate);
}

.guarantee-banner {
  margin-top: 2rem;
  background: var(--navy);
  color: #faf9f5;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.65rem 1.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.guarantee-banner h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0 0 0.35rem;
  color: #fbbf24;
  font-size: 1.55rem;
  line-height: 1.2;
}

.guarantee-banner p {
  margin: 0;
  color: #e2e8f0;
  max-width: 700px;
  font-size: 0.94rem;
}

/* Comparison Table */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.91rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
}

.compare-table th {
  background: var(--bg);
  font-weight: 700;
  color: var(--navy);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td.our-col {
  background: var(--emerald-light);
  color: var(--navy);
  font-weight: 600;
}

.compare-table th.our-col {
  background: var(--emerald);
  color: #ffffff;
}

/* Online Search Brief & D1 Receipt */
.intake-layout {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .intake-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 1rem;
  align-items: end;
}

.form-grid-3 > .field:nth-child(3) {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .form-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .slider-input-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.fieldset-reset {
  border: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
}

.field {
  min-width: 0;
  margin-bottom: 1.1rem;
}

.field label,
.field-legend {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
  padding: 0;
}

.aside-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--navy);
}

.audit-list-plain {
  border-top: none;
  padding-top: 0;
}

.aside-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1.15rem 0;
}

.aside-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.footer-brand-strong {
  color: #faf9f5;
}

.tool-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.5rem;
  padding: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.auth-box {
  background: var(--amber-light);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.auth-box label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
}

.auth-box input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--emerald);
}

.call-exception-box {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
  color: var(--slate);
}

.call-exception-box label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.call-exception-box input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.form-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Upgraded D1 Search Docket Confirmation Card */
.receipt-box {
  background: var(--bg);
  border: 2px solid var(--emerald);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-md);
}

.receipt-docket-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.docket-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--brass-light);
  color: var(--amber-text);
  border: 1px solid var(--brass-border);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.docket-status-pill.is-persisted {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
}

.docket-id-mono {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}

.receipt-box h3 {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 1.18rem;
}

.receipt-box p {
  margin: 0 0 1rem;
  color: var(--slate);
  font-size: 0.93rem;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.receipt-drawer {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
}

.receipt-drawer-summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.receipt-pre {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  font-size: 0.79rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.75rem 0 0;
  color: var(--navy);
}

/* FAQ */
.faq-list {
  max-width: 860px;
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.3rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
}

details.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.4;
}

details.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--slate);
  font-size: 0.95rem;
}

/* Legal & 404 Recovery Pages */
.legal-prose {
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2.35rem;
  margin: 2.5rem auto;
  overflow-wrap: break-word;
  box-shadow: var(--shadow-sm);
}

.legal-prose code {
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.legal-prose h1,
.error-404-title {
  font-family: var(--font-serif);
  font-weight: 400;
  margin-top: 0;
  font-size: 2.4rem;
  line-height: 1.15;
  color: var(--navy);
}

.legal-prose h2 {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 700;
  margin-top: 1.8rem;
  color: var(--navy);
}

.error-404-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brass-light);
  color: var(--amber-text);
  border: 1px solid var(--brass-border);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 3rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #6ee7b7;
  text-decoration: underline;
}

.fine-print {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Mobile 375px-560px compact single-row sticky header, legal prose & zero-overflow rules */
@media (max-width: 560px) {
  section[id],
  main[id],
  [id] {
    scroll-margin-top: 9.25rem;
  }

  .container {
    padding: 0 1rem;
  }

  .header-inner {
    min-height: 60px;
    gap: 0.5rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    flex-wrap: nowrap;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-sub {
    display: none;
  }

  .nav-links {
    width: auto;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: nowrap;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .nav-links .btn-sm {
    width: auto;
    white-space: nowrap;
    padding: 0.45rem 0.78rem;
    font-size: 0.81rem;
  }

  .hero {
    padding: 2.4rem 0 2.15rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 2.85rem 0;
  }

  .card,
  .results-panel,
  .scorecard,
  .guarantee-banner,
  .receipt-box,
  .hero-dossier {
    padding: 1.2rem 1.05rem;
  }

  .scorecard-grid,
  .steps-grid,
  .trust-strip,
  .tool-checkbox-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .breakdown-row {
    flex-wrap: wrap;
    gap: 0.25rem 0.65rem;
  }

  .legal-prose {
    padding: 1.25rem 1.05rem;
    margin: 1.25rem auto;
  }

  .legal-prose h1,
  .error-404-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .legal-prose h2 {
    font-size: 1.12rem;
    margin-top: 1.35rem;
  }
}
