/* ============================================================
   DoctorKleen — site styles
   Brand direction (from business plan): deep navy, clean white,
   teal/aqua accents, light neutral gray. Precise, trustworthy,
   modern, calm, professional.
   ============================================================ */

:root {
  --navy-950: #061426;
  --navy-900: #081C33;
  --navy-800: #0B2545;
  --navy-700: #10345E;
  --navy-600: #17457C;
  --teal-600: #0B8C8C;
  --teal-500: #0EA5A4;
  --teal-400: #2CC5C1;
  --aqua-300: #7FE7DC;
  --gray-050: #F5F8FA;
  --gray-100: #EDF2F6;
  --gray-200: #DFE7EE;
  --gray-300: #C6D3DE;
  --ink: #0B2242;
  --body: #435872;
  --body-soft: #5E7188;
  --white: #FFFFFF;
  --success: #12805C;
  --error: #B4232A;

  --font-head: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;

  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --radius-btn: 10px;
  --shadow-card: 0 10px 30px -12px rgba(8, 28, 51, 0.18);
  --shadow-lift: 0 18px 44px -16px rgba(8, 28, 51, 0.28);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.22rem; }

p + p { margin-top: 0.9em; }

a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 62px 0; }

.section-soft { background: var(--gray-050); }
.section-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700)); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #B9C9DC; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
}
.section-navy .eyebrow { color: var(--aqua-300); }
.section-navy .eyebrow::before { background: var(--aqua-300); }

.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 14px; font-size: 1.06rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn svg { flex: none; }

.btn-primary {
  background: var(--teal-500);
  color: var(--navy-950);
  box-shadow: 0 10px 24px -10px rgba(14, 165, 164, 0.55);
}
.btn-primary:hover { background: var(--teal-400); transform: translateY(-2px); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

.btn-outline-dark {
  border-color: var(--gray-300);
  color: var(--navy-800);
  background: var(--white);
}
.btn-outline-dark:hover { border-color: var(--teal-500); color: var(--teal-600); transform: translateY(-2px); }

.btn-ghost {
  color: var(--teal-600);
  padding: 12px 8px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 28, 51, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 12px 30px -18px rgba(6, 20, 38, 0.8); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
}
.brand-logo {
  height: 27px;
  width: auto;
  display: block;
}
.site-footer .brand-logo { height: 25px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links li { flex: none; }
.nav-links a {
  font-family: var(--font-head);
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 500;
  color: #C9D6E6;
  text-decoration: none !important;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--aqua-300); border-color: var(--teal-400); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.86rem; }

.nav-quote-item { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  padding: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 20, 38, 0.94) 22%, rgba(8, 28, 51, 0.72) 52%, rgba(8, 28, 51, 0.28) 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 108px 24px 96px;
}
.hero-content { max-width: 640px; }
.hero .eyebrow { color: var(--aqua-300); }
.hero .eyebrow::before { background: var(--aqua-300); }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero-sub {
  font-size: 1.13rem;
  color: #C6D4E4;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: #AFC2D8;
  font-weight: 500;
}
.hero-points svg { flex: none; color: var(--teal-400); }

/* Sub-page hero */
.page-hero { padding: 0; }
.page-hero .hero-inner { padding: 84px 24px 74px; }
.page-hero .hero-sub { margin-bottom: 26px; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--gray-300); }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.02); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.13rem; }
.card-body p { font-size: 0.95rem; }
.card-link {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Feature list (quotes, values) */
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.feature {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: 0.93rem; }

/* Why DoctorKleen — commitments list */
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 72px;
  align-items: start;
}
.why-intro { position: sticky; top: 110px; }
.why-intro p { margin-top: 14px; }
.why-list { margin: 0; display: grid; }
.why-item { padding: 25px 0 26px; }
.why-item + .why-item { border-top: 1px solid rgba(255, 255, 255, 0.09); }
.why-item dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 13px;
}
.why-item dt svg { flex: none; color: var(--teal-400); }
.why-item dd {
  margin: 8px 0 0 33px;
  color: #B9C9DC;
  font-size: 0.95rem;
  max-width: 54ch;
}

/* Steps (How it works) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px 26px 28px;
}
.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.03rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; }

/* Segment index (industries) */
.segments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  border-top: 1px solid var(--gray-200);
}
.segment {
  padding: 18px 2px 19px;
  border-bottom: 1px solid var(--gray-200);
}
.segment dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}
.segment dd {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: var(--body-soft);
  max-width: 46ch;
}

/* Who we work with — thin scrolling affiliation strip */
.affil {
  padding: 0;
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.affil-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.affil-label {
  flex: none;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua-300);
  padding-right: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}
.affil-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent);
}
.affil-track {
  display: flex;
  width: max-content;
  animation: affil-scroll 42s linear infinite;
}
.affil-viewport:hover .affil-track,
.affil-track:focus-within { animation-play-state: paused; }
@keyframes affil-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.affil-item {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  padding: 0 34px;
  white-space: nowrap;
  text-decoration: none !important;
  position: relative;
}
.affil-item::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--teal-500);
  opacity: 0.55;
}
.affil-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  transition: color 0.18s ease;
}
.affil-desc { font-size: 0.83rem; color: #7E93AC; }
.affil-item:hover .affil-name { color: var(--aqua-300); }
.affil-item:focus-visible { outline: 2px solid var(--aqua-300); outline-offset: 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .affil-track { animation: none; }
  .affil-viewport { overflow-x: auto; }
}

/* Collapsible sections */
.acc { border-top: 1px solid var(--gray-200); }
.acc-item { border-bottom: 1px solid var(--gray-200); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  transition: color 0.15s ease;
}
.acc-head:hover { color: var(--teal-600); }
.acc-head:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; }
.acc-head-text { flex: 1; }
.acc-head-note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--body-soft);
  flex: none;
}
.acc-icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  color: var(--teal-600);
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.acc-icon::before { width: 13px; height: 2px; }
.acc-icon::after { width: 2px; height: 13px; }
.acc-item.open .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.acc-panel {
  overflow: hidden;
  height: 0;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.acc-panel-inner { padding: 0 4px 24px; max-width: 74ch; }
.acc-panel-inner > * + * { margin-top: 12px; }

/* dark-section variant */
.section-navy .acc { border-color: rgba(255, 255, 255, 0.09); }
.section-navy .acc-item { border-color: rgba(255, 255, 255, 0.09); }
.section-navy .acc-head { color: var(--white); }
.section-navy .acc-head:hover { color: var(--aqua-300); }
.section-navy .acc-head-note { color: #7E93AC; }
.section-navy .acc-icon { color: var(--teal-400); }
.section-navy .acc-panel-inner { color: #B9C9DC; }

/* Checklist */
.check-list { list-style: none; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.check-list svg { flex: none; margin-top: 4px; color: var(--teal-500); }
.check-list strong { color: var(--ink); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* Notice / disclaimer box */
.notice {
  border: 1px solid var(--gray-200);
  background: var(--gray-050);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--body-soft);
}
.notice strong { color: var(--navy-800); }

/* CTA band */
.cta-band { padding: 66px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800) 70%, var(--navy-700));
  border-top: 3px solid var(--teal-500);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lift);
}
.cta-box h2 { color: var(--white); margin-bottom: 12px; }
.cta-box p { color: #B9C9DC; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: #93A7BE;
  padding: 52px 0 30px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #93A7BE; }
.site-footer a:hover { color: var(--aqua-300); text-decoration: none; }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer-legal {
  padding-top: 26px;
  display: grid;
  gap: 14px;
  font-size: 0.8rem;
  color: #6B8098;
}

/* ---------- Quote wizard ---------- */

.quote-layout {
  max-width: 860px;
  margin: 0 auto;
}
.quote-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 0 4px;
  font-size: 0.86rem;
  color: var(--body-soft);
  max-width: 68ch;
}
.quote-note svg { flex: none; margin-top: 3px; color: var(--teal-600); }

.wizard {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.wizard-progress {
  display: flex;
  background: var(--gray-050);
  border-bottom: 1px solid var(--gray-200);
}
.wizard-progress button {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--body-soft);
  padding: 16px 6px 14px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.wizard-progress button.active { color: var(--teal-600); border-color: var(--teal-500); background: var(--white); }
.wizard-progress button.done { color: var(--navy-700); }
.wizard-progress button:disabled { cursor: not-allowed; opacity: 0.55; }
.wizard-progress button.done:disabled, .wizard-progress button.reachable { cursor: pointer; opacity: 1; }

.wizard-body { padding: 34px 36px 38px; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: stepIn 0.28s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.wizard-step h2 { font-size: 1.45rem; margin-bottom: 6px; }
.wizard-step > p { font-size: 0.95rem; margin-bottom: 26px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: var(--error); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.16);
}
.field .hint { font-size: 0.78rem; color: var(--body-soft); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field .field-error { display: none; font-size: 0.78rem; color: var(--error); }
.field.invalid .field-error { display: block; }

/* choice cards */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice {
  position: relative;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 20px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: grid;
  gap: 6px;
}
.choice:hover { border-color: var(--gray-300); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.choice .choice-title svg { color: var(--teal-600); flex: none; }
.choice p { font-size: 0.84rem; color: var(--body-soft); }
.choice.selected {
  border-color: var(--teal-500);
  background: rgba(14, 165, 164, 0.055);
  box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.13);
}

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  position: relative;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:hover { border-color: var(--gray-300); }
.pill.selected {
  border-color: var(--teal-500);
  background: rgba(14, 165, 164, 0.08);
  color: var(--teal-600);
  font-weight: 600;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.wizard-error {
  display: none;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--error);
  font-weight: 500;
}
.wizard-error.show { display: block; }

/* ---------- quote modal ---------- */

.quote-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--body);
  box-shadow: 0 40px 90px -30px rgba(6, 20, 38, 0.55);
  overflow: hidden;
}
.quote-modal::backdrop {
  background: rgba(6, 20, 38, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.quote-modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
/* Scroll lock is derived from the dialog's own state rather than a JS-toggled
   class, so it can never be left stuck on after an interrupted close. */
body:has(dialog.quote-modal[open]) { overflow: hidden; }

.quote-modal-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
  background: var(--navy-900);
  border-bottom: 3px solid var(--teal-500);
}
.quote-modal-head h2 { color: var(--white); font-size: 1.3rem; margin-top: 2px; }
.quote-modal-eyebrow {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua-300);
}
.quote-modal-close {
  flex: none;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #C9D6E6;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.quote-modal-close:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.quote-modal-close:focus-visible { outline: 2px solid var(--aqua-300); outline-offset: 2px; }

.quote-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--gray-050);
  padding: 22px;
}
/* inside the modal the wizard is already framed by the dialog */
.quote-modal-body .wizard { box-shadow: none; }
.quote-modal-body .quote-note { margin: 18px 4px 4px; }
.quote-modal-loading {
  padding: 40px 10px;
  text-align: center;
  color: var(--body-soft);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .quote-modal { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .quote-modal-body { padding: 14px; }
  .quote-modal-head { padding: 18px 18px 16px; }
  .quote-modal-head h2 { font-size: 1.12rem; }
}

@media (max-width: 560px) {
  /* keep every step label on one line in the narrow modal */
  .wizard-progress button { font-size: 0.58rem; padding: 12px 1px 10px; letter-spacing: -0.01em; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-modal[open] { animation: none; }
  .acc-panel { transition: none; }
}

/* success state */
.quote-success { text-align: center; padding: 20px 10px; }
.quote-success .success-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background: rgba(18, 128, 92, 0.1);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quote-success h2 { margin-bottom: 10px; }
.quote-success .ref {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-800);
  background: var(--gray-100);
  border-radius: 8px;
  padding: 8px 16px;
  margin: 10px 0 18px;
}
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.request-preview {
  text-align: left;
  margin-top: 30px;
  background: var(--gray-050);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-size: 0.82rem;
  white-space: pre-wrap;
  font-family: "SF Mono", "Menlo", monospace;
  color: var(--body);
  max-height: 340px;
  overflow: auto;
}

/* file input */
.file-drop {
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--body-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-drop:hover, .file-drop.drag { border-color: var(--teal-500); background: rgba(14, 165, 164, 0.045); }
.file-drop input { display: none; }
.file-drop strong { color: var(--teal-600); }
.file-list { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  background: var(--gray-050);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
}
.file-list li svg { color: var(--teal-600); flex: none; }
.file-list li button {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--body-soft);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
}
.file-list li button:hover { color: var(--error); }

/* ---------- Reveal animations ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 34px; }
  .why-intro { position: static; }
  .segments { grid-template-columns: 1fr; column-gap: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; padding: 48px 36px; }
  .cta-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    box-shadow: 0 30px 40px -20px rgba(6, 20, 38, 0.7);
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-outline-light { display: none; }
  .nav-quote-item { display: block; }
  .nav-quote-item a { color: var(--aqua-300); font-weight: 600; }
}

@media (max-width: 520px) {
  .nav-cta .btn { display: none; }
}

@media (max-width: 720px) {
  section { padding: 48px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-inner { padding: 96px 24px 80px; }
  .field-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .affil-label { display: none; }
  .affil-inner { padding: 0; height: 66px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .wizard-body { padding: 26px 22px 30px; }
  .wizard-progress button { font-size: 0.68rem; padding: 13px 2px 11px; }
  .hero-actions .btn { width: 100%; }
}
