/* ==========================================================================
   Elision — styles.css
   Palette extracted from brand palette image:
     Deep Navy  #1E3053  → --ink
     Soft Steel #B6C3D2  → --mist
     White      #FFFFFF  → --paper
   All colors below are derived from these three.
   ========================================================================== */

:root {
  /* Core palette */
  --ink:        #1E3053;
  --ink-900:    #15213A;
  --ink-700:    #2A406B;
  --ink-500:    #526488;
  --ink-300:    #8A98B2;

  --mist:       #B6C3D2;
  --mist-200:   #E3E8EF;
  --mist-100:   #EEF2F7;
  --mist-050:   #F6F8FB;

  --paper:      #FFFFFF;
  --paper-tint: #FBFCFE;

  /* Accents (derived, used sparingly) */
  --sage:       #5B8F7B;   /* warmth for savings / positive outcomes */
  --sage-soft:  #E4EFEA;
  --warn:       #B27A3E;
  --warn-soft:  #F5ECDF;
  --brass:      #B27A3E;   /* editorial accent — rules, citations, focus */
  --brass-soft: #F5ECDF;
  --brass-deep: #8F5F2C;

  /* Text */
  --text:       #13213C;
  --text-muted: #5E6B80;
  --text-faint: #8A98B2;

  /* Borders & surfaces */
  --line:       #E3E8EF;
  --line-soft:  #EEF2F7;
  --surface:    #FFFFFF;
  --surface-2:  #F6F8FB;

  /* Type scales — single-family system (EB Garamond) */
  --f-display: 'EB Garamond', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --f-body:    'EB Garamond', 'Source Serif Pro', Georgia, 'Times New Roman', serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadows (subtle, healthcare-grade) */
  --shadow-xs: 0 1px 2px rgba(19, 33, 60, 0.04), 0 1px 1px rgba(19, 33, 60, 0.03);
  --shadow-sm: 0 2px 6px rgba(19, 33, 60, 0.05), 0 1px 2px rgba(19, 33, 60, 0.04);
  --shadow-md: 0 8px 24px rgba(19, 33, 60, 0.07), 0 2px 6px rgba(19, 33, 60, 0.04);
  --shadow-lg: 0 20px 48px rgba(19, 33, 60, 0.10), 0 6px 12px rgba(19, 33, 60, 0.05);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10:128px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 520ms;
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "onum";
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--ink); text-decoration: none; transition: color var(--dur-1) var(--ease-out); }
a:hover { color: var(--ink-700); }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.25; }
h4 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 600; color: var(--ink); letter-spacing: 0; }
p  { margin: 0 0 var(--space-4); color: var(--text); }
p.lede { font-size: 1.2rem; color: var(--text-muted); max-width: 60ch; line-height: 1.5; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--space-5);
  margin-inline: auto;
}
.container.narrow { max-width: var(--container-narrow); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--mist);
  display: inline-block;
}

.section {
  padding: clamp(var(--space-8), 10vw, var(--space-10)) 0;
  position: relative;
}
.section--tint { background: var(--mist-050); }
.section--ink  { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink p { color: var(--mist); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  transition: transform var(--dur-1) var(--ease-out),
              background var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ink-900); color: var(--paper); box-shadow: var(--shadow-md); }

.btn--ghost { color: var(--ink); border-color: var(--mist); background: transparent; }
.btn--ghost:hover { background: var(--mist-100); border-color: var(--ink-300); }

.btn--link {
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  background: none;
  border-bottom: 1px solid var(--mist);
  font-weight: 500;
}
.btn--link:hover { border-color: var(--ink); color: var(--ink-900); }

.btn--lg { padding: 18px 28px; font-size: 1.02rem; }
.btn .arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: var(--space-5);
}
.nav__brand { display: flex; align-items: center; gap: var(--space-3); }
.nav__brand img { height: 32px; width: auto; }
.nav__brand-name { font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); letter-spacing: 0.01em; }
.nav__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__links a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: var(--space-4); }
.nav__cta .nav__link {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.nav__cta .nav__link:hover { color: var(--ink); border-bottom-color: var(--brass); }

.nav__back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 8px 10px 8px 4px;
  border-radius: var(--r-md);
  transition: color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.nav__back-link:hover { color: var(--ink); background: var(--mist-100); }
.nav__back-link svg { flex-shrink: 0; }
@media (max-width: 560px) {
  .nav__back-link span { display: none; }
}
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn:not(.nav__primary-cta), .nav__cta .nav__link { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav__primary-cta { display: none; }
}

.nav__mobile {
  display: none;
  padding: var(--space-4) var(--space-5) var(--space-6);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.nav__mobile.is-open { display: block; }
.nav__mobile ul { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.nav__mobile li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.nav__mobile a { color: var(--ink); font-size: 1rem; font-weight: 500; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: clamp(var(--space-8), 11vw, 140px) 0 clamp(var(--space-8), 9vw, 120px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 85% 10%, rgba(182, 195, 210, 0.35), transparent 70%),
    radial-gradient(60% 50% at 10% 100%, rgba(182, 195, 210, 0.25), transparent 70%),
    var(--paper);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-7); }
}
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 em { font-style: italic; color: var(--ink-700); }
.hero__lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-6);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-7); }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero__trust span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__trust svg { width: 16px; height: 16px; color: var(--sage); }

.hero__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--mist-100), var(--mist-200));
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Hero floating cards */
.hero__card {
  position: absolute;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid var(--line);
  animation: float 6s var(--ease-in-out) infinite;
}
.hero__card small { display: block; color: var(--text-faint); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.hero__card strong { color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.hero__card--a { top: 8%; left: 6%; }
.hero__card--b { bottom: 8%; right: 6%; animation-delay: -3s; }
.hero__card--c { top: 52%; left: 28%; animation-delay: -1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ==========================================================================
   Cost Translator
   ========================================================================== */
.translator {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-7);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(var(--space-5), 3vw, var(--space-7));
  box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) { .translator { grid-template-columns: 1fr; } }

.translator__control label {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.translator__value {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--ink);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.translator__value span { color: var(--ink-500); font-family: var(--f-body); font-size: 1rem; font-weight: 500; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  margin: var(--space-3) 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--mist-200);
  border-radius: var(--r-pill);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  background: var(--mist-200);
  border-radius: var(--r-pill);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  margin-top: -8px;
  box-shadow: 0 0 0 4px rgba(30, 48, 83, 0.12);
  cursor: grab;
  transition: transform var(--dur-1) var(--ease-out);
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.1); cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 0;
  box-shadow: 0 0 0 4px rgba(30, 48, 83, 0.12);
  cursor: grab;
}

.translator__output { display: grid; gap: var(--space-3); }
.translator__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--line);
}
.translator__row:last-child { border-bottom: 0; }
.translator__row--total { padding-top: var(--space-4); border-top: 2px solid var(--ink); border-bottom: 0; margin-top: var(--space-2); }
.translator__row--total .translator__num { color: var(--sage); }
.translator__label { color: var(--text-muted); font-size: 0.95rem; }
.translator__num {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.translator__note { margin-top: var(--space-3); font-size: 0.82rem; color: var(--text-faint); }

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
  margin-top: var(--space-6);
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  position: relative;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--mist); }
.step__num {
  font-family: var(--f-display);
  font-size: 0.9rem;
  color: var(--ink-500);
  letter-spacing: 0.1em;
}
.step__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--mist-100);
  color: var(--ink);
  border-radius: var(--r-md);
  margin: var(--space-4) 0;
}
.step__icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.step p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   Audience (Employers / ASCs)
   ========================================================================== */
.audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }

.audience__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(var(--space-5), 3vw, var(--space-7));
  position: relative;
  overflow: hidden;
}
.audience__card--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.audience__card--ink h2 { color: var(--paper); }
.audience__card--ink .audience__benefit { color: var(--mist); }
.audience__card--ink .audience__benefit strong { color: var(--paper); }
.audience__card--ink .btn--ghost { color: var(--paper); border-color: rgba(255, 255, 255, 0.25); }
.audience__card--ink .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--mist); }

.audience__benefits { list-style: none; padding: 0; margin: var(--space-5) 0 var(--space-6); display: grid; gap: var(--space-4); }
.audience__benefit { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); color: var(--text-muted); font-size: 0.98rem; line-height: 1.5; }
.audience__benefit strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; font-size: 1rem; }
.audience__benefit svg { width: 22px; height: 22px; color: var(--sage); margin-top: 2px; }

/* ==========================================================================
   Transparency
   ========================================================================== */
.transparency__intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  align-items: end;
  margin-bottom: var(--space-7);
}
@media (max-width: 860px) { .transparency__intro { grid-template-columns: 1fr; align-items: start; } }

.invoice-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 860px) { .invoice-compare { grid-template-columns: 1fr; } }

.invoice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
}
.invoice--elision { border-color: var(--ink); box-shadow: var(--shadow-md); }
.invoice__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.invoice__title { font-family: var(--f-display); font-size: 1.4rem; color: var(--ink); margin: 0; }
.invoice__sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.invoice__tag {
  background: var(--mist-100);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.invoice--elision .invoice__tag { background: var(--ink); color: var(--paper); }

.invoice__lines { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.invoice__line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.invoice__line-label { color: var(--text); font-size: 0.96rem; }
.invoice__line-label small { display: block; color: var(--text-faint); font-size: 0.78rem; font-weight: 400; margin-top: 2px; }
.invoice__line-amount { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.invoice__line-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--mist-100);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-top: var(--space-2);
}
.invoice__line-bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: var(--r-pill);
  transition: width var(--dur-3) var(--ease-out);
}
.invoice--elision .invoice__line-bar span { background: var(--sage); }

.invoice__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-4);
  border-top: 2px solid var(--ink);
}
.invoice__total-label { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.invoice__total-amount {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--ink);
}
.invoice--elision .invoice__total-amount { color: var(--sage); }

.savings-callout {
  margin-top: var(--space-6);
  background: var(--sage-soft);
  border: 1px solid rgba(91, 143, 123, 0.2);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.savings-callout__figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 240px;
}
.savings-callout__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}
.savings-callout__big {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 5.4vw, 3.8rem);
  color: var(--sage);
  line-height: 1;
  font-weight: 500;
}
.savings-callout__sub {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.82;
}
.savings-callout__pct { color: var(--sage); font-weight: 600; }
.savings-callout p { max-width: 44ch; margin: 0; color: var(--text); font-size: 0.98rem; }
.savings-callout__ctas {
  display: inline-flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}
.savings-callout__ctas .btn--ghost {
  background: transparent;
  border-color: rgba(30, 48, 83, 0.18);
  color: var(--ink);
}
.savings-callout__ctas .btn--ghost:hover {
  background: rgba(255,255,255,0.6);
  border-color: var(--ink);
}

/* ==========================================================================
   Outcomes / Social proof
   ========================================================================== */
.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 860px) { .outcomes { grid-template-columns: 1fr; } }
.outcome {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
}
.outcome__stat { font-family: var(--f-display); font-size: clamp(2.4rem, 4.4vw, 3.2rem); color: var(--ink); line-height: 1; margin-bottom: var(--space-3); }
.outcome__label { color: var(--text-muted); font-size: 0.95rem; }
.outcome__placeholder {
  margin-top: var(--space-7);
  padding: var(--space-6);
  border: 1px dashed var(--mist);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--text-muted);
  background: var(--mist-050);
}

/* ==========================================================================
   Contact (founders)
   ========================================================================== */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (max-width: 720px) { .founders { grid-template-columns: 1fr; } }
.founder {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: center;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.founder:hover { border-color: var(--ink-300); box-shadow: var(--shadow-sm); }
.founder__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mist-200), var(--mist));
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 1.5rem;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--line);
}
.founder__name { font-family: var(--f-display); font-size: 1.4rem; color: var(--ink); margin: 0 0 2px; }
.founder__role { color: var(--text-muted); font-size: 0.88rem; margin-bottom: var(--space-2); }
.founder__email { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--mist); padding-bottom: 1px; font-size: 0.95rem; }
.founder__email:hover { border-color: var(--ink); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(var(--space-6), 6vw, var(--space-8));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px; height: 520px;
  background: radial-gradient(circle at center, rgba(182, 195, 210, 0.35), transparent 60%);
  pointer-events: none;
}
.final-cta h2 { color: var(--paper); margin-bottom: var(--space-4); }
.final-cta p { color: var(--mist); max-width: 56ch; margin: 0 auto var(--space-6); }
.final-cta .btn--primary { background: var(--paper); color: var(--ink); }
.final-cta .btn--primary:hover { background: var(--mist-200); color: var(--ink); }
.final-cta .btn--ghost { color: var(--paper); border-color: rgba(255, 255, 255, 0.3); }
.final-cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--paper-tint);
  border-top: 1px solid var(--line);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-4); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.footer a { color: var(--text); font-size: 0.94rem; }
.footer a:hover { color: var(--ink); }
.footer__brand img { height: 28px; margin-bottom: var(--space-3); }
.footer__tagline { color: var(--text-muted); font-size: 0.92rem; max-width: 30ch; margin-bottom: var(--space-4); }
.footer__bottom {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: var(--text-faint);
  font-size: 0.82rem;
}
.footer__social { display: flex; gap: var(--space-3); }
.footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text-muted);
}
.footer__social a:hover { border-color: var(--ink); color: var(--ink); }
.footer__social svg { width: 16px; height: 16px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: transform, opacity;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Flow pages (book.html, asc-onboarding.html)
   ========================================================================== */
.flow {
  min-height: calc(100vh - 72px);
  padding: clamp(var(--space-7), 7vw, var(--space-8)) 0 var(--space-8);
  background: var(--mist-050);
}
.flow__card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  box-shadow: var(--shadow-sm);
}
.flow__progress {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.flow__dot {
  flex: 1;
  height: 4px;
  background: var(--mist-200);
  border-radius: var(--r-pill);
  transition: background var(--dur-2) var(--ease-out);
}
.flow__dot.is-complete { background: var(--ink); }
.flow__dot.is-active { background: var(--ink); }
.flow__step { display: none; }
.flow__step.is-active { display: block; animation: stepIn 380ms var(--ease-out); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.flow__stepnum {
  font-family: var(--f-body);
  font-size: 0.82rem;
  color: var(--ink-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.flow h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--space-3); }
.flow p.lede { margin-bottom: var(--space-6); }

.field { margin-bottom: var(--space-5); }
.field > label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink); margin-bottom: var(--space-2); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--text);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(30, 48, 83, 0.10);
}
.field textarea { min-height: 96px; resize: vertical; }
.field small { color: var(--text-faint); font-size: 0.82rem; display: block; margin-top: 6px; }

.choices {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.choices--grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .choices--grid { grid-template-columns: 1fr; } }
.choices--inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

fieldset.field { border: 0; padding: 0; margin-bottom: var(--space-5); min-width: 0; }
fieldset.field legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-2);
  padding: 0;
}
fieldset.field legend .small { color: var(--text-faint); font-weight: 400; }

.combobox { position: relative; }
.combobox__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--text);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.combobox__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(30, 48, 83, 0.10);
}
.combobox__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px rgba(30, 48, 83, 0.08);
  z-index: 20;
}
.combobox__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}
.combobox__option:hover,
.combobox__option.is-active {
  background: var(--mist-050);
  color: var(--ink);
}
.combobox__abbr {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-family: var(--f-body);
  margin-left: var(--space-3);
}
.combobox__empty {
  padding: 10px 12px;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
  background: var(--paper);
}
.choice:hover { border-color: var(--ink-300); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--mist);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  transition: border-color var(--dur-1) var(--ease-out);
}
.choice__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform var(--dur-2) var(--ease-out);
}
.choice.is-selected { border-color: var(--ink); background: var(--mist-050); }
.choice.is-selected .choice__mark { border-color: var(--ink); }
.choice.is-selected .choice__mark::after { transform: scale(1); }
.choice--checkbox .choice__mark { border-radius: 5px; }
.choice--checkbox .choice__mark::after { inset: 3px; border-radius: 3px; }
.choice strong { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 2px; }
.choice span.small { color: var(--text-muted); font-size: 0.88rem; }

/* Pill-style compact chips (service-lines multi-select) — no inner mark */
.choice--compact {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1;
  transition: border-color var(--dur-1) var(--ease-out),
              background var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
  gap: 0;
  margin-top: 0;
}
.choice--compact:hover { border-color: var(--ink-300); }
.choice--compact .choice__mark { display: none; }
.choice--compact.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.choice--compact.is-selected:hover { border-color: var(--ink-900); background: var(--ink-900); }

.flow__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-6);
  gap: var(--space-3);
  flex-wrap: wrap;
}
.flow__back {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
}
.flow__back:hover { color: var(--ink); }
.flow__back:disabled { opacity: 0.35; cursor: not-allowed; }

.flow__success {
  text-align: center;
  padding: var(--space-5) 0;
}
.flow__success-mark {
  width: 72px; height: 72px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
  display: grid; place-items: center;
  animation: popIn 520ms var(--ease-out);
}
.flow__success-mark svg { width: 34px; height: 34px; }
@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.flow__nextsteps {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--mist-050);
  border-radius: var(--r-lg);
  text-align: left;
}
.flow__nextsteps ol { padding-left: 20px; margin: 0; color: var(--text-muted); }
.flow__nextsteps li { margin-bottom: var(--space-2); }
.flow__nextsteps li strong { color: var(--ink); }

/* Visually hidden (a11y) */
.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--r-md);
  z-index: 100;
  transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* Quote / callout */
.quote {
  border-left: 2px solid var(--mist);
  padding-left: var(--space-5);
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 52ch;
}
.quote cite { display: block; font-family: var(--f-body); font-size: 0.88rem; font-style: normal; color: var(--text-muted); margin-top: var(--space-3); }

/* Utility */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-auto { margin-top: auto; }
.gap-sm { gap: var(--space-3); }
.stack > * + * { margin-top: var(--space-4); }

/* ==========================================================================
   Minimal landing variant
   ========================================================================== */
.hero--minimal {
  padding: clamp(var(--space-8), 14vw, 180px) 0 clamp(var(--space-7), 9vw, 120px);
  background:
    radial-gradient(60% 60% at 90% 10%, rgba(182, 195, 210, 0.25), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(182, 195, 210, 0.18), transparent 70%),
    var(--paper);
}
.hero--minimal .hero__content {
  max-width: 720px;
}
.hero--minimal h1 {
  margin-bottom: var(--space-5);
  max-width: 16ch;
}
.hero--minimal .hero__lede {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: var(--space-6);
}

/* ==========================================================================
   Split hero (routing diagram variant)
   ========================================================================== */
.hero--split {
  padding: clamp(var(--space-8), 12vw, 150px) 0 clamp(var(--space-7), 8vw, 110px);
  background:
    radial-gradient(55% 55% at 92% 8%, rgba(182, 195, 210, 0.28), transparent 70%),
    radial-gradient(45% 45% at 8% 92%, rgba(178, 122, 62, 0.08), transparent 70%),
    var(--paper);
}
.hero--split .hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(var(--space-6), 5vw, var(--space-8));
  align-items: center;
}
@media (max-width: 960px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; }
  .hero--split .hero__routing { order: -1; aspect-ratio: 5/3; }
}
.hero--split h1 {
  margin-bottom: var(--space-5);
  max-width: 18ch;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}
.hero--split .hero__lede {
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: var(--space-6);
}
.hero--split .hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: 0;
}

/* Routing diagram */
.hero__routing {
  position: relative;
  aspect-ratio: 5 / 4.2;
  border-radius: var(--r-xl);
  background:
    linear-gradient(160deg, var(--paper) 0%, var(--mist-100) 55%, var(--mist-200) 100%);
  border: 1px solid var(--line);
  box-shadow:
    0 20px 48px rgba(19, 33, 60, 0.07),
    0 4px 12px rgba(19, 33, 60, 0.04);
  overflow: hidden;
}
.hero__routing svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  padding: clamp(var(--space-7), 7vw, var(--space-8)) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--mist-050);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-5), 4vw, var(--space-7));
}
@media (max-width: 860px) { .stats__grid { grid-template-columns: 1fr; gap: var(--space-6); } }

.stat {
  position: relative;
  padding-left: var(--space-5);
  border-left: 2px solid var(--brass);
}
.stat__num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}
.stat__label {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 34ch;
  margin-bottom: var(--space-3);
}
.stat__source {
  display: inline-block;
  color: var(--brass-deep);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.stat__source:hover { border-color: var(--brass-deep); color: var(--brass-deep); }
.stat__source:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Savings chart (ASC vs HOPD)
   ========================================================================== */
.savings {
  padding: clamp(var(--space-7), 8vw, var(--space-9)) 0;
}
.savings__intro {
  max-width: 62ch;
  margin: 0 auto clamp(var(--space-6), 5vw, var(--space-8));
  text-align: center;
}
.savings__intro .eyebrow { margin-bottom: var(--space-4); }
.savings__intro h2 { margin-bottom: var(--space-4); }
.savings__intro p.lede { margin: 0 auto; }

.savings__chart {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow:
    0 20px 48px rgba(19, 33, 60, 0.06),
    0 4px 12px rgba(19, 33, 60, 0.03);
}
.savings__chart svg { width: 100%; height: auto; display: block; }
.savings__caption {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
  opacity: 0.8;
}
.savings__caption a {
  color: var(--brass-deep);
  border-bottom: 1px solid var(--mist);
  transition: border-color var(--dur-1) var(--ease-out);
}
.savings__caption a:hover { border-color: var(--brass-deep); }

/* ==========================================================================
   Contact section (email us anchor target)
   ========================================================================== */
.contact { scroll-margin-top: 100px; }
.contact .eyebrow { margin-bottom: var(--space-4); }
.contact__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-5), 4vw, var(--space-7));
  align-items: end;
  margin-bottom: var(--space-6);
}
@media (max-width: 780px) { .contact__intro { grid-template-columns: 1fr; } }
.contact__intro p.lede { margin-bottom: 0; }

.footer--minimal {
  margin-top: 0;
}
.footer__minimal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  flex-wrap: wrap;
}
.footer__contacts {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.footer__contacts a {
  color: var(--text);
  font-size: 1rem;
  border-bottom: 1px solid var(--mist);
  padding-bottom: 2px;
}
.footer__contacts a:hover { border-color: var(--ink); }
.footer--minimal .footer__bottom {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
@media (min-width: 720px) {
  .footer--minimal .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
