/* =========================================================================
   Ocean MD — site.css
   Mobile-first. Colors live on :root so a palette change is one edit.
   STANDING RULE: if this file is rewritten, carry every rule forward.
   ========================================================================= */

/* --- Load-bearing: keep. The UA's [hidden] rule loses to any class that
       sets display; this makes the hidden attribute always win. ---------- */
[hidden] { display: none !important; }

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Brand (sampled from the Ocean MD logo) */
  --navy-950: #041a31;
  --navy-900: #06223f;
  --navy-800: #0b3b68;
  --blue-600: #106baa;
  --blue-500: #127dbf;
  --aqua-300: #7fc4e8;
  --aqua-100: #d9edf9;

  /* Semantic — light */
  --bg: #ffffff;
  --bg-mist: #f3f8fc;
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --ink: #0c1d30;
  --ink-soft: #3d5168;
  --muted: #5e7186;
  --line: #dce6f0;
  --accent: var(--blue-600);
  --accent-strong: var(--navy-800);
  --accent-ink: #ffffff;
  --focus: #127dbf;

  --deep-bg: var(--navy-900);
  --deep-ink: #e9f2fa;
  --deep-muted: #a9c2d9;
  --deep-line: rgba(255, 255, 255, .14);

  --art-sky-1: #ffffff;
  --art-sky-2: #e3f0fa;
  --art-sun: #ffffff;
  --art-halo: #e8f2fa;
  --art-ring: rgba(16, 107, 170, .18);

  --ph-bg: rgba(18, 125, 191, .08);
  --ph-line: rgba(18, 125, 191, .45);
  --ph-ink: inherit;

  --logo-filter: none;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & motion */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(6, 34, 63, .06), 0 2px 8px rgba(6, 34, 63, .05);
  --shadow: 0 2px 4px rgba(6, 34, 63, .04), 0 12px 32px rgba(6, 34, 63, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --header-h: 68px;
  --gutter: 16px;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071a2e;
    --bg-mist: #0a2139;
    --surface: #0d2540;
    --surface-2: #10294a;
    --ink: #e9f1f9;
    --ink-soft: #c2d3e4;
    --muted: #93a9bf;
    --line: #1c3858;
    --accent: #4aa6e0;
    --accent-strong: #7fc4e8;
    --accent-ink: #04192e;
    --focus: #7fc4e8;

    --deep-bg: #041427;

    --art-sky-1: #0e2b4b;
    --art-sky-2: #0a2039;
    --art-sun: #cfe6f6;
    --art-halo: #0b2440;
    --art-ring: rgba(127, 196, 232, .2);

    --ph-bg: rgba(127, 196, 232, .1);
    --ph-line: rgba(127, 196, 232, .45);

    --logo-filter: brightness(0) invert(1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 16px minimum on form controls — smaller makes iOS zoom on focus. */
input, select, textarea, button { font: inherit; }
input, select, textarea { font-size: max(16px, 1rem); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Placeholder copy: obvious on purpose. Delete this block (and the
       .ph spans) once real copy is in. ---------------------------------- */
.ph {
  background: var(--ph-bg);
  box-shadow: inset 0 -1px 0 var(--ph-line);
  border-radius: 4px;
  padding: 0 .2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: var(--ph-ink);
}

/* --- Type --------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .6;
}
.eyebrow-light { color: var(--aqua-300); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--ink);
}

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.85rem);
  letter-spacing: -.015em;
  line-height: 1.1;
}

.lede {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--ink-soft);
}

.section-lede {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 1.075rem;
  color: var(--ink-soft);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: .975rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
  color: #fff;
  box-shadow: 0 6px 18px rgba(16, 107, 170, .28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(16, 107, 170, .36); }

.btn-ghost {
  background: var(--surface);
  color: var(--accent-strong);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn-outline {
  background: transparent;
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--aqua-100); color: var(--navy-900); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

.text-link {
  font-weight: 700;
  font-size: .95rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand { display: block; flex: none; }
.brand img { height: 30px; width: auto; filter: var(--logo-filter); }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav: a panel under the header. Without JS it's always visible. */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: .5rem var(--gutter) 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.js .site-nav:not(.is-open) { display: none; }

/* Failsafe partner to the rule above. If site.js never ran, the inline script
   in <head> sets .no-fx on window load and the nav degrades to a plain stacked
   list instead of disappearing with a dead toggle button. */
.no-fx .site-nav:not(.is-open) {
  position: static;
  display: block;
  padding: .25rem 0 1rem;
  background: none;
  border-bottom: 0;
  box-shadow: none;
}
.no-fx .nav-toggle { display: none; }

.nav-list a {
  display: block;
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover { color: var(--accent); }
.nav-login { margin-top: 1rem; width: 100%; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--aqua-300) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mist) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.hero-actions .btn { flex: 1 1 100%; }

.hero-art {
  width: min(100%, 520px);
  margin-inline: auto;
}
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.sky-stop-1 { stop-color: var(--art-sky-1); }
.sky-stop-2 { stop-color: var(--art-sky-2); }
.art-halo { fill: var(--art-halo); }
.art-ring { fill: none; stroke: var(--art-ring); stroke-width: 1.5; }
.art-sun  { fill: var(--art-sun); filter: drop-shadow(0 0 24px rgba(127, 196, 232, .6)); }

.wave { animation: drift linear infinite; will-change: transform; }
.wave-1 { animation-duration: 26s; }
.wave-2 { animation-duration: 20s; animation-direction: reverse; }
.wave-3 { animation-duration: 16s; }
.wave-4 { animation-duration: 12s; animation-direction: reverse; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(640px); }
}

/* --- Sections ----------------------------------------------------------- */
.section { position: relative; padding: 4.5rem 0; }
.section-mist { background: var(--bg-mist); }
.section-head { margin-bottom: 2.5rem; max-width: 46rem; }

/* Deep navy band */
.section-deep {
  background:
    radial-gradient(50rem 26rem at 10% 0%, rgba(18, 125, 191, .35), transparent 70%),
    radial-gradient(40rem 24rem at 100% 100%, rgba(127, 196, 232, .14), transparent 70%),
    var(--deep-bg);
  color: var(--deep-ink);
  padding-bottom: 6.5rem;
}
.section-deep .title { color: #fff; }
.section-deep .section-lede { color: var(--deep-muted); }
.section-deep .ph { --ph-bg: rgba(127, 196, 232, .12); --ph-line: rgba(127, 196, 232, .5); }

.section-edge {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 48px;
  fill: var(--bg);
}

/* Bridge diagram */
.bridge {
  display: grid;
  gap: 0;
  justify-items: center;
}

.bridge-node {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  border: 1px solid var(--deep-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  text-align: center;
}
.bridge-node h3 {
  margin-top: .9rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: #fff;
}
.bridge-node p { margin-top: .5rem; color: var(--deep-muted); font-size: .95rem; }

.bridge-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(127, 196, 232, .12);
  color: var(--aqua-300);
}
.bridge-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bridge-hub {
  background: linear-gradient(160deg, #ffffff, #e8f3fb);
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3), 0 0 0 6px rgba(127, 196, 232, .12);
  color: var(--navy-900);
}
.bridge-hub h3 { color: var(--navy-800); margin-top: .25rem; }
.bridge-mark { width: 92px; height: auto; margin-inline: auto; }

.hub-list {
  display: grid;
  gap: .5rem;
  margin-top: 1rem;
  text-align: left;
  font-size: .95rem;
  color: #2a3f57;
}
.hub-list li {
  position: relative;
  padding-left: 1.5rem;
}
.hub-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
}
.bridge-hub .ph { --ph-bg: rgba(18, 125, 191, .08); --ph-line: rgba(18, 125, 191, .45); }

/* Connector: vertical on mobile, horizontal on desktop */
.bridge-link {
  position: relative;
  width: 2px;
  height: 44px;
  overflow: hidden;
  background: rgba(127, 196, 232, .2);
}
.bridge-link span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--aqua-300), transparent);
  animation: flow-y 2.4s linear infinite;
}
@keyframes flow-y { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@keyframes flow-x { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
  counter-reset: step;
}
.step {
  padding: 1.35rem 1.25rem;
  border-top: 1px solid var(--deep-line);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--aqua-300);
  letter-spacing: .05em;
}
.step h3 {
  margin-top: .5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.step p { margin-top: .35rem; color: var(--deep-muted); font-size: .95rem; }

/* Audience cards */
.audience-grid { display: grid; gap: 1.25rem; }

.audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.audience-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--navy-800));
}
.audience-card-alt::before { background: linear-gradient(90deg, var(--aqua-300), var(--blue-500)); }

.audience-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.audience-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  letter-spacing: -.01em;
}
.audience-card > p:not(.audience-kicker) { color: var(--ink-soft); }
.audience-card .btn { align-self: flex-start; margin-top: auto; }

.checks { display: grid; gap: .6rem; margin: .25rem 0 .75rem; }
.checks li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--ink);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat,
    linear-gradient(135deg, var(--blue-500), var(--navy-800));
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: auto;
}
.card-actions .btn { margin-top: 0; }

/* Procedures */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.proc {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.proc:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.proc-abbr {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .proc-abbr { background: linear-gradient(135deg, var(--aqua-300), var(--blue-500)); -webkit-background-clip: text; background-clip: text; }
}
.proc-name { font-size: .9rem; color: var(--muted); }

/* Footprint */
.footprint { display: grid; gap: 2rem; align-items: center; }
.state-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.state-list li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}
.state-list abbr {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-decoration: none;
}
.state-list span { font-weight: 600; font-size: .95rem; }

/* CTA band */
.cta {
  position: relative;
  padding: 4.5rem 0;
  background:
    radial-gradient(40rem 20rem at 85% 120%, rgba(127, 196, 232, .35), transparent 70%),
    linear-gradient(135deg, var(--blue-600), var(--navy-900));
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta::after {
  /* faint echo of the logo's wave mark */
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 360px;
  height: 360px;
  background: url("../img/oceanmd-mark-512.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .07;
  z-index: -1;
}
.cta-inner { text-align: center; }
.cta-inner .title { color: #fff; max-width: 40rem; margin-inline: auto; }
.cta-inner p { margin-top: 1rem; color: rgba(255, 255, 255, .8); }
.cta .hero-actions { justify-content: center; }
.cta .ph { --ph-bg: rgba(255, 255, 255, .12); --ph-line: rgba(255, 255, 255, .5); }

/* Footer */
.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--bg-mist);
  border-top: 1px solid var(--line);
  font-size: .95rem;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { height: 30px; width: auto; filter: var(--logo-filter); }
.footer-brand p { margin-top: 1rem; max-width: 22rem; color: var(--muted); }
.footer-nav h2 {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}
.footer-nav li + li { margin-top: .4rem; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-base {
  position: relative;
  display: grid;
  gap: .35rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: .85rem;
}
.footer-base::before {
  /* divider aligned to content, not to the container's padding */
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}

/* --- Inner pages -------------------------------------------------------- */
.nav-list a[aria-current="page"] { color: var(--accent); }

.page-hero {
  padding: 3rem 0 2.5rem;
  background:
    radial-gradient(50rem 24rem at 90% -20%, color-mix(in srgb, var(--aqua-300) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mist) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .display { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); }
.page-hero .lede { margin-top: 1rem; }

/* Contact layout */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }

.contact-aside { display: grid; gap: 1.5rem; }
.aside-block h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.aside-block p { color: var(--ink-soft); }

.notice {
  display: flex;
  gap: .85rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  font-size: .95rem;
  color: var(--ink-soft);
}
.notice .icon { margin-top: .2em; color: var(--accent); }
.notice strong { color: var(--ink); }

/* Form */
.form-card {
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label,
.field legend {
  padding: 0;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
}
.field .optional { font-weight: 500; color: var(--muted); }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }

.input {
  width: 100%;
  min-height: 50px;
  padding: .75rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: max(16px, 1rem); /* iOS: never below 16px */
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--muted); opacity: .75; }
.input:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
textarea.input { min-height: 150px; resize: vertical; }
.input[aria-invalid="true"] { border-color: #c2412d; }
.field-error { color: #c2412d; font-size: .875rem; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .input[aria-invalid="true"] { border-color: #ff8a73; }
  .field-error { color: #ff8a73; }
}

/* Segmented "I am a…" control */
.segmented {
  /* flex-wrap: options share a row when they fit, wrap when they don't */
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.segmented label { flex: 1 1 auto; white-space: nowrap; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 50px;
  padding: .7rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.segmented label::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 50%;
  transition: border-color .2s, box-shadow .2s;
}
.segmented input:checked + label {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent-strong);
}
.segmented input:checked + label::before {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 10px var(--accent);
}
.segmented input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: .5rem;
}
.form-foot .btn { width: 100%; }
.form-fine { font-size: .85rem; color: var(--muted); }

.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn[aria-busy="true"] .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  padding: .9rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  background: rgba(194, 65, 45, .08);
  color: #a3341f;
}
@media (prefers-color-scheme: dark) {
  .form-status { background: rgba(255, 138, 115, .1); color: #ffb3a3; }
}

.form-success { text-align: center; padding: 2rem .5rem; }
.form-success .success-mark {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
  color: #fff;
}
.form-success .success-mark .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.form-success h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; }
.form-success p { margin-top: .75rem; color: var(--ink-soft); }

/* Long-form text (privacy) */
.prose { max-width: 46rem; }
.prose h2 {
  margin: 2.5rem 0 .75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: .85rem; color: var(--ink-soft); }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li + li { margin-top: .35rem; }
.draft-banner {
  margin-bottom: 2rem;
  padding: 1rem 1.1rem;
  border: 1.5px dashed var(--ph-line);
  border-radius: var(--radius);
  background: var(--ph-bg);
  font-size: .95rem;
}

/* Small centered pages (login redirect, 404) */
.center-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 1px);
  min-height: calc(100svh - var(--header-h) - 1px);
  padding: 3rem 0;
  text-align: center;
  background:
    radial-gradient(40rem 22rem at 50% 0%, color-mix(in srgb, var(--aqua-300) 20%, transparent), transparent 70%),
    var(--bg-mist);
}
.center-card { max-width: 34rem; margin-inline: auto; }
.center-card .mark { width: 120px; margin: 0 auto 1.5rem; }
.center-card .display { font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); }
.center-card .lede { margin-inline: auto; }
.center-card .hero-actions { justify-content: center; }
.big-num {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .big-num { background: linear-gradient(135deg, var(--aqua-300), var(--blue-500)); -webkit-background-clip: text; background-clip: text; }
}
.spinner {
  width: 28px;
  height: 28px;
  margin: 1.5rem auto 0;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

@media (min-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .form-foot { grid-template-columns: auto 1fr; }
  .form-foot .btn { width: auto; }
}

@media (min-width: 768px) {
  .page-hero { padding: 4.5rem 0 3.5rem; }
  .form-card { padding: 2.5rem 2.25rem; }
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* --- Reveal on scroll (only when JS is running) ------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Load-bearing, same reasoning as [hidden] at the top of this file: content
   must never be left permanently invisible by a CSS rule. .js is set by the
   inline script and always applies; .is-visible is set by site.js and might
   not. .no-fx is the recovery path when site.js did not run. */
.no-fx .reveal { opacity: 1 !important; transform: none !important; }

/* Turnstile renders into this div asynchronously. Reserving its height stops
   the submit button jumping down the page when it appears. 65px is the
   widget's rendered height; it collapses to nothing if Turnstile is removed
   from the markup. */
.cf-turnstile:not(:empty) { min-height: 65px; }

/* --- Breakpoints -------------------------------------------------------- */
@media (min-width: 560px) {
  .hero-actions .btn { flex: 0 0 auto; }
  .proc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .state-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .section { padding: 6rem 0; }
  .section-deep { padding-bottom: 8rem; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .audience-card { padding: 2.5rem 2.25rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-base { grid-template-columns: 1fr auto; }
  .section-edge { height: 80px; }
}

@media (min-width: 960px) {
  :root { --header-h: 80px; }
  .brand img { height: 36px; }

  .nav-toggle { display: none; }
  .site-nav,
  .js .site-nav:not(.is-open),
  .no-fx .site-nav:not(.is-open) {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-list { display: flex; gap: 1.75rem; }
  .nav-list a {
    position: relative;
    padding: .4rem 0;
    border: 0;
    font-size: .95rem;
    color: var(--ink-soft);
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .nav-list a:hover { color: var(--ink); }
  .nav-list a:hover::after { transform: scaleX(1); }
  .nav-login { margin-top: 0; width: auto; }

  .hero { padding: 4.5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }

  .bridge {
    grid-template-columns: 1fr 72px 1.25fr 72px 1fr;
    align-items: center;
  }
  .bridge-node { max-width: none; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .bridge-hub { padding: 2rem; }
  .hub-list { align-self: stretch; }
  .bridge-link { width: 100%; height: 2px; }
  .bridge-link span {
    background: linear-gradient(90deg, transparent, var(--aqua-300), transparent);
    animation-name: flow-x;
  }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .step { padding: 1.5rem 0 0; }

  .proc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .proc { padding: 1.5rem; }

  .footprint { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .state-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cta { padding: 6rem 0; }
  .cta::after { width: 520px; height: 520px; right: -80px; bottom: -120px; }
}

@media (min-width: 1200px) {
  .proc-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .proc { padding: 1.5rem 1.1rem; }
}

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
