/* ==========================================================================
   Vena Santé — light clinical design system
   White canvas, navy for trust, blue for action. Tokens below are the source
   of truth; see the design section of README.md for the rules that govern them.
   ========================================================================== */

:root {
  /* Light clinical system — white canvas, navy for trust, blue for action.
     Follows the palette the cahiers des charges ask for: white/ivory ground,
     navy as the confidence colour, generous whitespace. */

  /* Grounds, lightest to deepest */
  --white:       #ffffff;   /* page canvas */
  --mist:        #f4f7fc;   /* alternating section tint */
  --sky:         #e9f1fc;   /* soft filled surface, quiet callouts */
  --line:        #dae4f2;   /* hairlines, card borders */
  --line-strong: #bfd0e6;   /* emphasised borders, dividers */

  /* Blues, light to deep */
  --blue-bright: #1e88e5;   /* data, chart strokes, icon accents */
  --blue:        #1657c4;   /* links */
  --blue-deep:   #12459b;   /* primary action */
  --navy:        #0d2b52;   /* headings, body text, inverted band */
  --navy-soft:   #1d4373;   /* secondary dark surface */

  /* Text on light */
  --ink:         #0d2b52;
  --ink-muted:   #4e6183;
  --ink-faint:   #5d6b83;

  /* Text on the navy band */
  --on-navy:        #ffffff;
  --on-navy-muted:  #c5d6ec;

  --positive:    #0b7a5c;   /* in-range, confirmed, available */

  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
          'Segoe UI', Roboto, sans-serif;
  --w-medium: 500;
  --w-semibold: 600;

  /* Type scale — fluid, capped at the display maxima. */
  --text-caption: 0.75rem;
  --text-body-sm: 0.875rem;
  --text-body: 1.0625rem;
  --text-subheading: 1.125rem;
  --text-heading-sm: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-heading: clamp(1.875rem, 1.4rem + 2.1vw, 2.875rem);
  --text-heading-lg: clamp(2.125rem, 1.5rem + 2.8vw, 3.375rem);
  --text-heading-xl: clamp(2.375rem, 1.5rem + 3.8vw, 4.125rem);
  --text-display: clamp(2.75rem, 1.2rem + 6.6vw, 5.75rem);

  --spacing-8: 8px;   --spacing-12: 12px; --spacing-16: 16px;
  --spacing-20: 20px; --spacing-24: 24px; --spacing-32: 32px;
  --spacing-36: 36px; --spacing-40: 40px; --spacing-48: 48px;

  --page-max: 1200px;
  --section-gap: clamp(56px, 8vw, 116px);
  --card-padding: 24px;

  --radius-icons: 7px;
  --radius-inputs: 16px;
  --radius-cards: 24px;
  --radius-cards-elevated: 32px;
  --radius-pill: 9999px;

  /* Shadows carry an offset and a soft blur, tinted from the navy. */
  --shadow-cta:  0 6px 18px -6px rgba(18, 69, 155, 0.45);
  --shadow-card: 0 10px 30px -18px rgba(13, 43, 82, 0.30);
  --shadow-lift: 0 20px 50px -28px rgba(13, 43, 82, 0.38);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--w-medium);
  font-size: var(--text-body);
  line-height: 1.44;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: var(--w-semibold);
  line-height: 1;
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: var(--text-display); letter-spacing: -0.075em; line-height: 0.92; }
h2 { font-size: var(--text-heading-xl); letter-spacing: -0.04em; }
h3 { font-size: var(--text-heading); letter-spacing: -0.04em; }
h4 { font-size: var(--text-heading-sm); letter-spacing: -0.03em; line-height: 1.2; }
p  { margin: 0; }

img, video { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue); text-decoration-color: color-mix(in srgb, var(--blue) 40%, transparent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--blue); }

/* Browser surfaces belong to the design system too. */
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--line-strong) var(--white); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--mist); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
:root { accent-color: var(--blue-deep); caret-color: var(--blue-deep); }

/* --- layout --------------------------------------------------------------- */
.shell { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--hero { padding-block: clamp(56px, 7vw, 96px) 0; }
main { display: block; }

/* Alternating tint keeps long pages from reading as one white sheet. */
.section--tinted { background: var(--mist); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--on-navy);
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: var(--w-semibold); font-size: var(--text-body-sm);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* The signature contrast moment, flipped: a deep navy band cut hard into the
   white page, no gradient. */
.invert {
  background: var(--navy);
  color: var(--on-navy-muted);
}
.invert h1, .invert h2, .invert h3, .invert h4 { color: var(--on-navy); }
.invert .lede { color: var(--on-navy-muted); }
.invert .muted { color: var(--on-navy-muted); }
.invert a { color: #9ec8f5; }

/* --- type helpers --------------------------------------------------------- */
.lede { font-size: var(--text-subheading); color: var(--ink-muted); max-width: 62ch; }
.muted { color: var(--ink-muted); }
.small { font-size: var(--text-body-sm); letter-spacing: 0.02em; }
.caption { font-size: var(--text-caption); letter-spacing: 0.02em; color: var(--ink-faint); }
.measure { max-width: 68ch; }
.stack > * + * { margin-top: var(--spacing-16); }
.stack-lg > * + * { margin-top: var(--spacing-32); }

/* One dotted callout per page, maximum. */
.mark {
  display: inline-block;
  border: 1px dashed var(--blue-bright);
  border-radius: var(--radius-icons);
  padding: 0.02em 0.18em 0.08em;
  margin-inline: 0.04em;
}
.invert .mark { border-color: #9ec8f5; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px; border-radius: var(--radius-pill);
  font: inherit; font-size: var(--text-body); font-weight: var(--w-medium);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              color 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue-deep); color: #ffffff; box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--navy); box-shadow: 0 10px 26px -8px rgba(13,43,82,0.5); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); background: var(--sky); }

/* Inside the navy band the ghost button inverts. */
.invert .btn--ghost { color: var(--on-navy); border-color: rgba(255,255,255,0.45); }
.invert .btn--ghost:hover { border-color: #ffffff; background: rgba(255,255,255,0.10); }
.invert .btn--primary { background: #ffffff; color: var(--navy); box-shadow: none; }
.invert .btn--primary:hover { background: var(--sky); }

/* Primary action on a tinted section. */
.btn--light { background: var(--navy); color: #ffffff; }
.btn--light:hover { background: var(--blue-deep); }
/* ...and it must invert inside the navy band, or it disappears into it. */
.invert .btn--light { background: #ffffff; color: var(--navy); }
.invert .btn--light:hover { background: var(--sky); }

.btn--sm { padding: 11px 18px; font-size: var(--text-body-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--spacing-12); }

/* --- surfaces ------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
}
.card--elevated { border-radius: var(--radius-cards-elevated); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-lift); }
/* On the tint, cards lift by staying pure white. */
.section--tinted .card { border-color: var(--line); }
.invert .card { background: var(--navy-soft); border-color: rgba(255,255,255,0.16); color: var(--on-navy-muted); box-shadow: none; }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy);
  padding: 6px 14px;
  font-size: var(--text-body-sm); letter-spacing: 0.02em;
}
.tag--cyan { border-color: color-mix(in srgb, var(--blue-bright) 45%, transparent); color: var(--blue); }
.invert .tag { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.32); color: var(--on-navy); }
.invert .tag--cyan { color: #9ec8f5; border-color: rgba(158,200,245,0.5); }

/* --- icons ---------------------------------------------------------------- */
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 28px; height: 28px; }
.icon-chip {
  width: 44px; height: 44px; border-radius: var(--radius-icons);
  display: grid; place-items: center; flex: none;
  background: var(--sky);
  color: var(--blue-deep);
  border: 1px solid color-mix(in srgb, var(--blue-bright) 22%, transparent);
}
.invert .icon-chip { background: rgba(255,255,255,0.10); color: #9ec8f5; border-color: rgba(255,255,255,0.20); }

/* --- navigation ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: var(--spacing-24); min-height: 76px; }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; text-decoration: none; color: var(--navy); font-weight: var(--w-semibold); font-size: 1.375rem; letter-spacing: -0.05em; }
.nav__logo:hover { text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  color: var(--ink-muted); text-decoration: none; font-size: var(--text-body-sm);
  padding: 9px 12px; border-radius: var(--radius-pill); white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.nav__link:hover { background: var(--sky); color: var(--navy); text-decoration: none; }
.nav__link[aria-current="page"] { background: var(--navy); color: #ffffff; }
.nav__actions { display: flex; align-items: center; gap: var(--spacing-8); margin-left: var(--spacing-8); flex: none; }

.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); overflow: hidden; font-size: var(--text-caption); letter-spacing: 0.02em; }
.lang a { padding: 7px 11px; color: var(--ink-muted); text-decoration: none; transition: background-color 0.2s var(--ease-out); }
.lang a:hover { background: var(--sky); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--navy); color: #ffffff; }

.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--navy); padding: 9px 12px; cursor: pointer; }

@media (max-width: 1180px) {
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav__links {
    position: fixed; inset: 76px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    padding: var(--spacing-16) clamp(20px, 5vw, 40px) var(--spacing-24);
    max-height: calc(100dvh - 76px); overflow-y: auto;
  }
  .nav__links[hidden] { display: none; }
  .nav__link { padding: 13px 14px; font-size: var(--text-body); }
  .nav__actions { margin-left: 0; padding-top: var(--spacing-12); border-top: 1px solid var(--line); }
}

/* --- hero ----------------------------------------------------------------- */
/* Full-bleed video behind the headline. On a white page the readable half has
   to be built rather than assumed: the scrim is near-opaque where the text
   sits and clears off the video on the other side. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sky); }

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* The clip was graded for a dark canvas; lift it toward the light palette. */
  filter: brightness(1.16) saturate(0.74) contrast(0.94);
}

.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    /* the readable column */
    linear-gradient(100deg,
      rgba(255,255,255,0.985) 0%,
      rgba(255,255,255,0.972) 30%,
      rgba(246,249,253,0.88) 39%,
      rgba(233,241,252,0.34) 52%,
      rgba(233,241,252,0.08) 66%,
      rgba(233,241,252,0.03) 100%),
    /* hand the page back its white edge */
    linear-gradient(180deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0.55) 88%, var(--white) 100%);
}

.hero__inner {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex; align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero__content { max-width: 34rem; }
.hero h1 { max-width: 13ch; margin-bottom: var(--spacing-24); }
.hero .lede { max-width: 40ch; margin-bottom: var(--spacing-32); color: var(--ink); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--spacing-12); margin-top: var(--spacing-32); }
.hero .tag { background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); }

/* Narrow screens have no room for a side-by-side split, so the readable area
   becomes the top of the frame instead of its left. */
@media (max-width: 860px) {
  /* The text block is ~560px tall, so a vertical wash that clears early would
     leave it sitting on bare video. The frame grows instead: the copy keeps an
     opaque column at the top and the video gets a clear band beneath it. */
  .hero__scrim {
    background:
      linear-gradient(180deg,
        rgba(255,255,255,0.980) 0%,
        rgba(255,255,255,0.970) 62%,
        rgba(255,255,255,0.930) 72%,
        rgba(240,245,252,0.420) 84%,
        rgba(233,241,252,0.120) 92%,
        rgba(255,255,255,0.620) 100%);
  }
  .hero__inner {
    min-height: min(102svh, 940px);
    align-items: flex-start;
    padding-block: clamp(36px, 9vw, 64px) 0;
  }
}

/* --- signal strip --------------------------------------------------------- */
.signals {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-cards);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.signal { background: var(--white); padding: var(--spacing-24); }
.signal__value { font-size: var(--text-heading); font-weight: var(--w-semibold); letter-spacing: -0.04em; color: var(--blue-deep); line-height: 1; }
.signal__label { margin-top: 10px; font-size: var(--text-body-sm); color: var(--ink-muted); letter-spacing: 0.02em; }

/* --- generic grids -------------------------------------------------------- */
.grid { display: grid; gap: var(--spacing-24); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.split--center { align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-media { grid-template-columns: 0.85fr 1.15fr; }
  .split--flip > :first-child { order: 2; }
}

.section__head { max-width: 60ch; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head h2 + p { margin-top: var(--spacing-20); }

/* --- figures -------------------------------------------------------------- */
.figure { position: relative; border-radius: var(--radius-cards-elevated); overflow: hidden; background: var(--sky); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.figure img { width: 100%; aspect-ratio: var(--ar, 4/3); object-fit: cover; }
.figure--portrait img { --ar: 3/4; }
.figure--wide img { --ar: 16/9; }
.figure__caption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius-inputs); padding: 12px 16px; font-size: var(--text-body-sm); color: var(--ink); }

/* --- feature rows (not cards) --------------------------------------------- */
.features { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: var(--spacing-20); align-items: start; padding-block: var(--spacing-24); border-bottom: 1px solid var(--line); }
.feature h4 { margin-bottom: 8px; }
.feature p { color: var(--ink-muted); font-size: var(--text-body-sm); }
.invert .features, .invert .feature { border-color: rgba(255,255,255,0.18); }
.invert .feature p { color: var(--on-navy-muted); }

/* --- process timeline ----------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 56px 1fr; gap: var(--spacing-20);
  padding-block: var(--spacing-24);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.step:first-child { border-top: 1px solid var(--line); }
.step__num {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  display: grid; place-items: center;
  border: 1px solid var(--blue-bright); color: var(--blue-deep);
  background: var(--white);
  font-size: var(--text-body-sm); font-weight: var(--w-semibold); letter-spacing: 0;
}
.step__num::before { content: counter(step); }
.step h4 { margin-bottom: 6px; }
.step p { color: var(--ink-muted); font-size: var(--text-body-sm); max-width: 60ch; }
.invert .step, .invert .step:first-child { border-color: rgba(255,255,255,0.18); }
.invert .step__num { border-color: rgba(158,200,245,0.7); color: #9ec8f5; background: transparent; }
.invert .step p { color: var(--on-navy-muted); }

/* --- pricing table -------------------------------------------------------- */
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: var(--spacing-16) var(--spacing-8); border-bottom: 1px solid var(--line); }
.price-table th { font-weight: var(--w-semibold); font-size: var(--text-body-sm); letter-spacing: 0.02em; color: var(--ink-muted); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table .amount { color: var(--blue-deep); font-weight: var(--w-semibold); }
.table-scroll { overflow-x: auto; }
/* A service line can carry a short explanation under its name. */
.price-table__service { display: block; }
.price-table__note { display: block; margin-top: 5px; font-size: var(--text-body-sm); color: var(--ink-muted); max-width: 58ch; }
.price-table td { vertical-align: top; }
.price-table td.amount { white-space: nowrap; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--spacing-16);
  padding: var(--spacing-20) 0; cursor: pointer; list-style: none;
  font-size: var(--text-subheading); font-weight: var(--w-semibold); letter-spacing: -0.03em;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--blue-deep); border-bottom: 1.5px solid var(--blue-deep);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details > div { padding-bottom: var(--spacing-24); color: var(--ink-muted); max-width: 72ch; }
.faq details > div > * + * { margin-top: var(--spacing-12); }
.invert .faq, .invert .faq details { border-color: rgba(255,255,255,0.18); }
.invert .faq summary { color: var(--on-navy); }
.invert .faq summary::after { border-color: #9ec8f5; }
.invert .faq details > div { color: var(--on-navy-muted); }

/* --- forms ---------------------------------------------------------------- */
.form { display: grid; gap: var(--spacing-20); }
.field { display: grid; gap: 8px; }
.field > label { font-size: var(--text-body-sm); letter-spacing: 0.02em; color: var(--navy); font-weight: var(--w-semibold); }
.field .hint { font-size: var(--text-caption); color: var(--ink-faint); letter-spacing: 0.02em; }
.req { color: var(--blue-deep); }

input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="number"], select, textarea {
  font: inherit; font-size: var(--text-body);
  width: 100%; padding: 14px 16px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-inputs);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue-deep) 50%), linear-gradient(135deg, var(--blue-deep) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
::placeholder { color: var(--ink-faint); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-deep) 18%, transparent); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; background: var(--mist); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c0392b; }
.error { font-size: var(--text-caption); color: #c0392b; letter-spacing: 0.02em; }
.error[hidden] { display: none; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: var(--text-body-sm); color: var(--ink); }
.check input { margin: 2px 0 0; width: 18px; height: 18px; }

.form__note { font-size: var(--text-body-sm); color: var(--ink-muted); border-left: 1px solid var(--positive); padding-left: var(--spacing-16); }
.form__status { border-radius: var(--radius-inputs); padding: var(--spacing-16); font-size: var(--text-body-sm); }
.form__status[hidden] { display: none; }
.form__status--ok { background: color-mix(in srgb, var(--positive) 8%, var(--white)); border: 1px solid color-mix(in srgb, var(--positive) 40%, transparent); color: #0a5f48; }

@media (min-width: 720px) { .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-20); } }

/* --- coverage checker ----------------------------------------------------- */
.coverage__result { margin-top: var(--spacing-16); font-size: var(--text-body-sm); border-radius: var(--radius-inputs); padding: var(--spacing-16); border: 1px solid transparent; }
.coverage__result[hidden] { display: none; }
.coverage__result--yes { border-color: color-mix(in srgb, var(--positive) 40%, transparent); background: color-mix(in srgb, var(--positive) 8%, var(--white)); color: #0a5f48; }
.coverage__result--maybe { border-color: color-mix(in srgb, var(--blue-bright) 40%, transparent); background: var(--sky); color: var(--blue-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--spacing-16); }
.chip { border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 6px 13px; font-size: var(--text-body-sm); color: var(--ink-muted); background: var(--white); }
.invert .chip { border-color: rgba(255,255,255,0.28); color: var(--on-navy-muted); background: rgba(255,255,255,0.06); }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { background: var(--navy); border-radius: var(--radius-cards-elevated); padding: clamp(32px, 5vw, 56px); }
.cta-band h2 { color: var(--on-navy); margin-bottom: var(--spacing-16); }
.cta-band p { color: var(--on-navy-muted); max-width: 54ch; margin-bottom: var(--spacing-32); }
.cta-band .btn--primary { background: #ffffff; color: var(--navy); box-shadow: none; }
.cta-band .btn--primary:hover { background: var(--sky); }
.cta-band .btn--ghost { color: var(--on-navy); border-color: rgba(255,255,255,0.45); }
.cta-band .btn--ghost:hover { border-color: #ffffff; background: rgba(255,255,255,0.10); }

/* --- footer --------------------------------------------------------------- */
.footer { background: var(--navy); padding-block: clamp(48px, 6vw, 72px) var(--spacing-32); }
.footer__grid { display: grid; gap: var(--spacing-40); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.footer .nav__logo { color: #ffffff; }
.footer h4 { font-size: var(--text-body-sm); letter-spacing: 0.02em; color: var(--on-navy-muted); margin-bottom: var(--spacing-16); font-weight: var(--w-semibold); }
.footer li + li { margin-top: 10px; }
.footer a { color: #ffffff; text-decoration: none; font-size: var(--text-body-sm); }
.footer a:hover { text-decoration: underline; }
.footer .small.muted { color: var(--on-navy-muted); }
.footer__bottom { margin-top: var(--spacing-48); padding-top: var(--spacing-24); border-top: 1px solid rgba(255,255,255,0.20); display: flex; flex-wrap: wrap; gap: var(--spacing-16); justify-content: space-between; }
.footer__bottom p { font-size: var(--text-caption); color: var(--on-navy-muted); letter-spacing: 0.02em; }

/* --- emergency notice ----------------------------------------------------- */
.notice {
  border: 1px solid var(--line-strong); border-radius: var(--radius-cards);
  padding: var(--spacing-20) var(--spacing-24); background: var(--sky);
  font-size: var(--text-body-sm); color: var(--ink-muted);
}
.notice strong { color: var(--navy); font-weight: var(--w-semibold); }
.footer .notice { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.22); color: var(--on-navy-muted); }
.footer .notice strong { color: #ffffff; }
.invert .notice { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.22); color: var(--on-navy-muted); }
.invert .notice strong { color: #ffffff; }

/* --- legal / prose -------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--text-heading); margin-top: var(--spacing-48); margin-bottom: var(--spacing-16); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-muted); font-size: var(--text-body); }
.prose > * + * { margin-top: var(--spacing-16); }
.prose ul { list-style: none; }
.prose li { position: relative; padding-left: 22px; }
.prose li + li { margin-top: 10px; }
.prose li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); }

.ticks li { position: relative; padding-left: 30px; color: var(--ink-muted); font-size: var(--text-body-sm); }
.ticks li + li { margin-top: 12px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.34em; width: 16px; height: 9px;
  border-left: 1.5px solid var(--positive); border-bottom: 1.5px solid var(--positive);
  transform: rotate(-45deg);
}
.invert .ticks li { color: var(--on-navy-muted); }
.invert .ticks li::before { border-color: #6ee7b7; }

/* --- motion: one authored moment ------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  .reveal.is-in {
    opacity: 1; transform: none; filter: none;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
    transition-delay: var(--delay, 0ms);
  }
}

/* Contact: the direct-contact column stays in view beside the long form. */
@media (min-width: 900px) {
  .aside-sticky { position: sticky; top: 100px; }
}
