/* ============================================================
   Launchpad — Brand CSS
   Warm Linen + Lilac Rose. Calm, trustworthy, quietly capable.
   https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ---- Design tokens ---- */
:root {
  /* Raw palette */
  --lilac-rose: #B05BA8;
  --ink:        #2A1F35;
  --linen:      #FAF8F4;
  --lavender:   #D49CCF;
  --mist:       #F5EDF4;
  --mist-deep:  #EAD9E8;
  --charcoal:   #4A3D58;
  --stone:      #9B8FAA;
  --cream:      #F5F0E8;
  --white:      #FFFFFF;

  /* Status */
  --success-bg: #E8F5EB;
  --success-fg: #2E7D32;
  --error-fg:   #C0392B;

  /* Semantic roles */
  --bg:               var(--linen);
  --bg-alt:           var(--cream);
  --bg-tint:          var(--mist);
  --bg-dark:          var(--ink);
  --surface:          var(--white);
  --fg:               var(--ink);
  --fg-body:          var(--charcoal);
  --fg-muted:         var(--stone);
  --fg-on-dark:       var(--lavender);
  --fg-on-dark-strong:var(--white);
  --accent:           var(--lilac-rose);
  --accent-hover:     var(--lavender);
  --border:           var(--mist-deep);
  --border-strong:    var(--ink);

  /* Type */
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --display-size: 56px;
  --h1-size:      46px;
  --h2-size:      32px;
  --h3-size:      18px;
  --body-lg-size: 16px;
  --body-size:    15px;
  --body-sm-size: 13px;
  --caption-size: 12px;
  --label-size:   11px;
  --micro-size:   10px;

  /* Weights — never above 500 */
  --w-light:  300;
  --w-reg:    400;
  --w-medium: 500;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  48px;
  --space-2xl: 96px;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* Single card shadow — no decorative shadows anywhere else */
  --shadow-card: 0 1px 2px rgba(42, 31, 53, 0.04);
}

/* ---- Base ---- */
body {
  background: var(--bg);
  color: var(--fg-body);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: 1.6;
  font-weight: var(--w-reg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }

/* ---- Typography helpers ---- */
.display {
  font-family: var(--font-display);
  font-size: var(--display-size);
  font-weight: var(--w-reg);
  line-height: 1.08;
  color: var(--fg);
}
.headline-h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: var(--w-reg);
  line-height: 1.12;
  color: var(--fg);
}
.headline-h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: var(--w-reg);
  line-height: 1.18;
  color: var(--fg);
}
.headline-h3 {
  font-family: var(--font-sans);
  font-size: var(--h3-size);
  font-weight: var(--w-medium);
  line-height: 1.35;
  color: var(--fg);
}

/* The brand signature: one italic word in Lilac Rose per headline */
.accent-word {
  font-style: italic;
  color: var(--accent);
}
/* On dark backgrounds the italic accent shifts to Lavender */
.on-dark .accent-word { color: var(--lavender); }

.body-lg   { font-size: var(--body-lg-size); line-height: 1.65; font-weight: var(--w-light); }
.body-sm   { font-size: var(--body-sm-size); line-height: 1.55; }
.caption   { font-size: var(--caption-size); line-height: 1.5;  color: var(--fg-muted); }

/* Eyebrow label — uppercase, tracked, Lilac Rose */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--label-size);
  font-weight: var(--w-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.on-dark { color: var(--lavender); }

.micro {
  font-size: var(--micro-size);
  font-weight: var(--w-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Layout helpers ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.container--narrow { max-width: 720px; }
.container--wide   { max-width: 1180px; }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: var(--space-md) var(--space-xl);
  background: var(--linen);
  border-bottom: 1px solid var(--mist-deep);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.nav__logo-img { height: 26px; width: auto; }
.nav__logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.nav__logo-text em {
  font-style: italic;
  color: var(--lilac-rose);
}
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: 8px;
  list-style: none;
}
.nav__links a {
  font-family: var(--font-sans);
  font-size: var(--body-sm-size);
  color: var(--stone);
  font-weight: var(--w-reg);
  transition: color 0.15s ease;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--ink);
  font-weight: var(--w-medium);
}
.nav__cta { margin-left: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--w-medium);
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  padding: 12px 24px;
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn--primary  { background: var(--lilac-rose); color: #fff; }
.btn--secondary{ background: var(--mist);       color: var(--lilac-rose); }
.btn--outline  { background: transparent;       color: var(--ink);        border: 1.5px solid var(--ink); }
.btn--ghost    { background: transparent;       color: var(--lilac-rose); border: 1.5px solid var(--lavender); }
.btn--sm {
  font-size: var(--micro-size);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
}

/* ---- Badge / pill ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: var(--micro-size);
  font-weight: var(--w-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.badge--default  { background: var(--mist); color: var(--lilac-rose); }
.badge--featured { background: var(--ink);  color: var(--linen); }
.badge--live     { background: var(--success-bg); color: var(--success-fg); }
.badge--live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-fg);
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding: var(--space-2xl) var(--space-xl);
  max-width: 1180px;
  margin: 0 auto;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.hero__headline { line-height: 1.08; }
.hero__body {
  font-size: var(--body-lg-size);
  font-weight: var(--w-light);
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 440px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: var(--space-xs);
}
.hero__reassurance {
  font-size: var(--caption-size);
  color: var(--stone);
}

/* Live status panel */
.live-panel {
  background: var(--mist);
  border-radius: var(--radius-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.live-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 6px;
}
.live-panel__title {
  font-size: 12px;
  font-weight: var(--w-medium);
  color: var(--ink);
}
.live-panel__subtitle { font-size: 11px; color: var(--stone); }

.status-card {
  background: var(--white);
  border: 1px solid var(--mist-deep);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: var(--shadow-card);
}
.status-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.status-card__info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.status-card__label {
  font-size: 14px;
  font-weight: var(--w-medium);
  color: var(--ink);
}
.status-card__meta  { font-size: 12px; color: var(--stone); }

/* ---- Proof bar ---- */
.proof-bar {
  background: var(--cream);
  padding: 40px var(--space-xl);
}
.proof-bar__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-items: center;
}
.proof-stat__number {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
}
.proof-stat__label {
  font-size: var(--body-sm-size);
  color: var(--charcoal);
  max-width: 240px;
  line-height: 1.5;
}

/* ---- Services ---- */
.services {
  padding: var(--space-2xl) var(--space-xl);
}
.services__inner { max-width: 1100px; margin: 0 auto; }
.section-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-xl);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Service card */
.service-card {
  background: var(--white);
  border: 1px solid var(--mist-deep);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}
.service-card--featured {
  background: var(--ink);
  border: none;
  box-shadow: none;
}
.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card--featured .service-card__icon {
  background: rgba(176, 91, 168, 0.2);
}
.service-card__title {
  font-family: var(--font-sans);
  font-size: var(--h3-size);
  font-weight: var(--w-medium);
  color: var(--ink);
}
.service-card--featured .service-card__title { color: var(--white); }
.service-card__body {
  font-size: var(--body-sm-size);
  line-height: 1.6;
  color: var(--stone);
  flex: 1;
}
.service-card--featured .service-card__body { color: var(--lavender); }
.service-card__link {
  font-size: var(--micro-size);
  font-weight: var(--w-medium);
  color: var(--lilac-rose);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.service-card--featured .service-card__link { color: var(--lavender); }
.service-card__link:hover { opacity: 0.8; }

/* ---- How it works ---- */
.how-it-works {
  background: var(--linen);
  padding: var(--space-2xl) var(--space-xl);
}
.how-it-works__inner { max-width: 1100px; margin: 0 auto; }
.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--mist-deep);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}
.step-card__number {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--lilac-rose);
}
.step-card__title {
  font-family: var(--font-sans);
  font-size: var(--h3-size);
  font-weight: var(--w-medium);
  color: var(--ink);
}
.step-card__body {
  font-size: var(--body-sm-size);
  line-height: 1.6;
  color: var(--stone);
}

/* ---- Testimonial ---- */
.testimonial {
  background: var(--ink);
  padding: var(--space-2xl) var(--space-xl);
}
.testimonial__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--w-reg);
  font-size: 24px;
  line-height: 1.5;
  color: var(--white);
  max-width: 600px;
}
.testimonial__quote .key-phrase {
  font-style: normal;
  color: var(--lavender);
}
.testimonial__attribution {
  font-size: var(--body-sm-size);
  color: var(--stone);
}

/* ---- Closing CTA ---- */
.cta-section {
  padding: var(--space-2xl) var(--space-xl);
}
.cta-section__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.cta-section__body {
  font-size: var(--body-lg-size);
  font-weight: var(--w-light);
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 460px;
}
.cta-section__note { font-size: var(--caption-size); color: var(--stone); }

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  padding: 56px var(--space-xl) 40px;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand-tagline {
  font-size: var(--body-sm-size);
  font-weight: var(--w-light);
  line-height: 1.6;
  color: var(--lavender);
  max-width: 280px;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col-heading {
  font-size: var(--micro-size);
  font-weight: var(--w-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}
.footer__col a {
  font-size: var(--body-sm-size);
  color: var(--lavender);
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(212, 156, 207, 0.18);
  display: flex;
  justify-content: space-between;
}
.footer__bottom span {
  font-size: var(--caption-size);
  color: var(--stone);
}

/* ---- Chat modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(42, 31, 53, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 12px 40px rgba(42, 31, 53, 0.18);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0); }

.modal__header { display: flex; flex-direction: column; gap: 8px; }
.modal__title  { font-family: var(--font-display); font-size: 28px; font-weight: var(--w-reg); color: var(--ink); line-height: 1.2; }
.modal__title .accent-word { font-style: italic; color: var(--accent); }
.modal__body   { font-size: 14px; font-weight: var(--w-light); line-height: 1.6; color: var(--charcoal); }

.modal__form   { display: flex; flex-direction: column; gap: 14px; }
.modal__actions{ display: flex; gap: 12px; margin-top: 4px; }

/* Form field */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: var(--micro-size);
  font-weight: var(--w-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.field__input,
.field__textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--mist-deep);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__textarea { resize: vertical; }
.field__input::placeholder,
.field__textarea::placeholder { color: var(--stone); }
.field__input:focus,
.field__textarea:focus {
  border-color: var(--lilac-rose);
  box-shadow: 0 0 0 3px var(--mist);
}
.field__input.has-error,
.field__textarea.has-error { border-color: var(--error-fg); }
.field__hint { font-size: var(--micro-size); color: var(--stone); }
.field__error { font-size: var(--micro-size); color: var(--error-fg); }

/* Modal confirmation state */
.modal__confirm {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  padding: 12px 0;
}
.confirm__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: var(--w-reg);
  color: var(--ink);
  line-height: 1.2;
}
.confirm__title .accent-word { font-style: italic; color: var(--accent); }
.confirm__body {
  font-size: 14px;
  font-weight: var(--w-light);
  line-height: 1.6;
  color: var(--charcoal);
  max-width: 320px;
}

/* ---- Inline SVG icon helper ---- */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ============================================================
   Dark mode — system-driven via prefers-color-scheme
   All values derived from the Launchpad brand design system.
   Rule: on dark, Lilac Rose → Lavender (design system spec:
   "Lavender, never Lilac Rose on dark — contrast too low").
   ============================================================ */
@media (prefers-color-scheme: dark) {

  /* Tell the browser to render native controls (scrollbars, inputs)
     in dark mode — pairs with the <meta name="color-scheme"> in HTML */
  :root { color-scheme: dark; }

  /* ---- Raw palette additions for dark surfaces ---- */
  :root {
    /* New dark-only surface ramps (Ink hue, varied lightness) */
    --dark-base:    #1A1225;   /* deepest bg — Ink hue, very dark        */
    --dark-raised:  #221830;   /* alt section bg (proof bar, how-it-works)*/
    --dark-surface: #2E2240;   /* card / modal surface — above base       */
    --dark-body-fg: #C8B8D8;   /* body text — lavender-grey, 4.8:1 ratio  */
  }

  /* ---- Semantic token overrides ---- */
  :root {
    /* Backgrounds */
    --bg:      var(--dark-base);
    --bg-alt:  var(--dark-raised);
    --bg-tint: var(--dark-surface);  /* mist-tinted fills → darkened equivalent */
    --surface: var(--dark-surface);  /* cards, modals, inputs                   */

    /* Foregrounds */
    --fg:            var(--linen);         /* #FAF8F4 — warm off-white, not pure */
    --fg-body:       var(--dark-body-fg);  /* #C8B8D8 — lavender-grey body copy  */
    --fg-muted:      var(--stone);         /* #9B8FAA — captions (AA-Large only) */

    /* Accent — Lilac Rose is too low-contrast on dark (design system rule) */
    --accent:        var(--lavender);      /* #D49CCF replaces Lilac Rose on dark */
    --accent-hover:  var(--linen);         /* go lighter on hover                 */

    /* Borders */
    --border:        rgba(212, 156, 207, 0.20);  /* Lavender at low opacity */
    --border-strong: var(--lavender);             /* #D49CCF                 */

    /* Shadow — deeper on dark */
    --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.35);

    /* Status tokens — darkened for dark surfaces */
    --success-bg: #1B3D1E;
    --success-fg: #5CB85C;
  }

  /* ---- Nav ---- */
  /* .nav uses var(--linen) directly — needs explicit override */
  .nav {
    background: var(--dark-base);
    border-bottom-color: var(--border);
  }
  .nav__logo-text       { color: var(--linen); }
  .nav__logo-text em    { color: var(--lavender); }
  .nav__links a         { color: var(--stone); }
  .nav__links a:hover,
  .nav__links a.active  { color: var(--linen); }

  /* ---- Buttons ---- */
  /* btn--primary stays Lilac Rose (brand accent button — bg, not text) */
  .btn--primary   { background: var(--lilac-rose); color: var(--linen); }
  .btn--secondary { background: var(--dark-surface); color: var(--lavender); }
  .btn--outline   {
    color: var(--linen);
    border-color: var(--lavender);
  }
  .btn--ghost {
    color: var(--lavender);
    border-color: rgba(212, 156, 207, 0.45);
  }

  /* ---- Badges ---- */
  .badge--default  { background: var(--dark-surface); color: var(--lavender); }
  /* badge--featured (Ink bg / Linen text) already inverts nicely — but Ink on
     dark would disappear; swap to a lavender-tinted surface */
  .badge--featured { background: rgba(212, 156, 207, 0.18); color: var(--linen); }
  .badge--live     { background: var(--success-bg); color: var(--success-fg); }

  /* ---- Hero — live panel ---- */
  .live-panel {
    background: var(--dark-surface);
    border: 1px solid var(--border);
  }
  .live-panel__title    { color: var(--linen); }
  .live-panel__subtitle { color: var(--stone); }

  /* Status cards inside live panel */
  .status-card {
    background: var(--dark-raised);
    border-color: var(--border);
  }
  .status-card__icon  { background: var(--dark-base); }
  .status-card__label { color: var(--linen); }
  .status-card__meta  { color: var(--stone); }

  /* ---- Proof bar ---- */
  /* .proof-bar uses var(--cream) → now maps to --bg-alt which is --dark-raised */
  .proof-bar { background: var(--bg-alt); }
  .proof-stat__number { color: var(--linen); }
  .proof-stat__label  { color: var(--dark-body-fg); }

  /* ---- Service cards ---- */
  /* Standard cards float above bg */
  .service-card {
    background: var(--dark-surface);
    border-color: var(--border);
  }
  .service-card__icon  { background: var(--dark-base); }
  .service-card__title { color: var(--linen); }
  .service-card__body  { color: var(--stone); }
  .service-card__link  { color: var(--lavender); }

  /* Featured (Ink bg) card — keeps its dark treatment, minor tweaks */
  .service-card--featured {
    background: var(--dark-base);
    border: 1px solid var(--border);
  }
  .service-card--featured .service-card__icon {
    background: rgba(176, 91, 168, 0.25);
  }

  /* ---- How it works ---- */
  .how-it-works { background: var(--bg-alt); }
  .step-card {
    background: var(--dark-surface);
    border-color: var(--border);
  }
  .step-card__number { color: var(--lavender); }
  .step-card__title  { color: var(--linen); }
  .step-card__body   { color: var(--stone); }

  /* ---- Testimonial ---- */
  /* Already on Ink bg — just slightly deepen + ensure text passes */
  .testimonial { background: var(--dark-base); }
  .testimonial__quote       { color: var(--linen); }
  .testimonial__quote .key-phrase { color: var(--lavender); }
  .testimonial__attribution { color: var(--stone); }

  /* ---- CTA section ---- */
  .cta-section__body { color: var(--dark-body-fg); }
  .cta-section__note { color: var(--stone); }

  /* ---- Footer ---- */
  /* Footer uses var(--ink) — already dark, but unify with dark base */
  .footer { background: var(--dark-base); }
  .footer__brand-tagline { color: var(--lavender); }
  .footer__col-heading   { color: var(--stone); }
  .footer__col a         { color: var(--lavender); }
  .footer__col a:hover   { color: var(--linen); }
  .footer__bottom {
    border-top-color: rgba(212, 156, 207, 0.15);
  }
  .footer__bottom span { color: var(--stone); }

  /* ---- Modal overlay & modal surface ---- */
  .modal-overlay {
    background: rgba(15, 10, 22, 0.72);  /* deeper scrim on dark */
  }
  .modal {
    background: var(--dark-surface);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
  }
  .modal__title  { color: var(--linen); }
  .modal__body   { color: var(--dark-body-fg); }

  /* ---- Form fields inside modal ---- */
  .field__label { color: var(--dark-body-fg); }
  .field__input,
  .field__textarea {
    background: var(--dark-base);
    border-color: var(--border);
    color: var(--linen);
  }
  .field__input::placeholder,
  .field__textarea::placeholder { color: var(--stone); }
  .field__input:focus,
  .field__textarea:focus {
    border-color: var(--lavender);
    box-shadow: 0 0 0 3px rgba(212, 156, 207, 0.18);
  }
  .field__hint  { color: var(--stone); }
  .field__error { color: #E57373; }   /* lightened red — passes 4.5:1 on dark */

  /* ---- Confirm state ---- */
  .confirm__icon  { background: var(--dark-base); }
  .confirm__title { color: var(--linen); }
  .confirm__body  { color: var(--dark-body-fg); }

  /* ---- Typography helpers ---- */
  .display, .headline-h1, .headline-h2, .headline-h3 { color: var(--fg); }
  .caption  { color: var(--fg-muted); }
  .eyebrow  { color: var(--lavender); }
  .eyebrow.on-dark { color: var(--lavender); }
  .on-dark .accent-word { color: var(--lavender); }

  /* ---- Section headers ---- */
  .hero__body       { color: var(--dark-body-fg); }
  .hero__reassurance { color: var(--stone); }

}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 24px;
  }
  .hero__body { max-width: 100%; }
  .services__grid,
  .how-it-works__grid,
  .proof-bar__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .nav { padding: var(--space-md) var(--space-lg); gap: 20px; }
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .modal { padding: 24px; }
}
