/* Zenivora Healthcare — marketing site. Modern minimalist: white ground, ink type,
   hairline rules, teal reserved for the chain, marks and focus. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
  --ink: #0f1b1c;
  --ink-2: #3b4849;
  --muted: #5a6768;
  --line: #e3e8e8;
  --line-strong: #cfd7d7;
  --surface: #f4f6f6;
  --paper: #ffffff;
  --teal: #00acb1;
  --teal-ink: #00777b;
  --teal-wash: #e6f6f6;
  --danger: #b42318;
  --ok: #067647;

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.5rem, 1.5rem + 4vw, 4.25rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --radius: 16px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 12px 32px -12px rgb(15 27 28 / 0.18), 0 2px 6px -2px rgb(15 27 28 / 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--teal-wash); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line-strong) transparent; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.06; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-size: var(--step-1); line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--ink); text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--teal-ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); line-height: 1.6; }
.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 { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; color: #fff; }
.skip:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.5rem; border-radius: 999px;
  font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:hover { background: #22393a; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgb(15 27 28 / 0.5); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); box-shadow: none; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--teal-wash); color: var(--ink); }
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.site-header[data-scrolled] { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand svg { width: 2rem; height: 2rem; }
.brand span small { display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); line-height: 1; margin-top: 0.15rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.btn) { padding: 0.5rem 0.85rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 0.95rem; font-weight: 500; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--ink); background: var(--surface); }
.nav .btn { margin-left: 0.75rem; min-height: 2.6rem; padding: 0.6rem 1.15rem; font-size: 0.95rem; }
.nav .nav-signin { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: 0.5rem; border: 1px solid var(--line-strong); color: var(--ink); }
.nav .nav-signin svg { width: 1rem; height: 1rem; }
.nav .nav-signin:hover { border-color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 0.75rem var(--gutter) 1.5rem; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav[data-open] { display: flex; }
  .nav a:not(.btn) { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav .btn { margin: 0.5rem 0 0; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 1.5rem; }
.hero .actions { margin-top: 2.25rem; }
.hero-note { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: var(--step--1); color: var(--muted); list-style: none; padding: 0; }
.hero-note li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-note svg { width: 1rem; height: 1rem; color: var(--teal-ink); }
.hero-media { position: relative; }
.hero-media picture img { width: 100%; aspect-ratio: 4 / 5; max-height: 78vh; object-fit: cover; object-position: 60% center; border-radius: var(--radius); }
.chip {
  position: absolute; left: clamp(-2.5rem, -3vw, -1rem); bottom: 2rem; width: min(20rem, 82%);
  background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 1rem 1.1rem; font-size: 0.85rem; line-height: 1.45; color: var(--ink-2);
}
.chip-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.chip-code { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.78rem; }
.chip-status { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--teal-ink); font-size: 0.78rem; }
.chip-status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-wash); }
.chip-name { margin-top: 0.35rem; font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.chip-meta { margin-top: 0.15rem; }
.chip-tag { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.72rem; color: var(--muted); }
@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero-media picture img { aspect-ratio: 4 / 3; }
  .chip { position: relative; left: auto; bottom: auto; width: auto; margin: -2.75rem 1rem 0; }
  .lead { font-size: 1.125rem; }
}

/* The chain: the one line that runs from referral to paycheck */
.chain { padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: var(--surface); }
.chain-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.chain-head p { max-width: 34em; }
.chain-track { position: relative; list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.chain-track::before { content: ""; position: absolute; left: 0.6rem; right: 0.6rem; top: 0.55rem; height: 2px; background: var(--line-strong); }
.chain-track::after {
  content: ""; position: absolute; left: 0.6rem; top: 0.55rem; height: 2px; width: calc(100% - 1.2rem); background: var(--teal);
  transform-origin: left; transform: scaleX(var(--progress, 1));
}
.js .chain-track::after { --progress: 0; transition: transform 1.8s var(--ease-out); }
.js .chain-track[data-drawn]::after { --progress: 1; }
.chain-step { position: relative; padding-top: 2.25rem; }
.chain-step::before { content: ""; position: absolute; left: 0; top: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; border: 2px solid var(--teal); z-index: 1; }
.js .chain-step::before { border-color: var(--line-strong); transition: border-color 0.4s var(--ease-out) calc(var(--i) * 0.32s), background-color 0.4s var(--ease-out) calc(var(--i) * 0.32s); }
.js .chain-track[data-drawn] .chain-step::before { border-color: var(--teal); background: var(--teal); }
.chain-step h3 { font-size: 1.125rem; }
.chain-step p { margin-top: 0.4rem; font-size: 0.93rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 60rem) {
  .chain-head { grid-template-columns: 1fr; }
  .chain-track { grid-template-columns: 1fr; gap: 0; }
  .chain-track::before, .chain-track::after { left: 0.55rem; right: auto; top: 0.6rem; bottom: 0.6rem; width: 2px; height: auto; }
  .chain-track::after { transform-origin: top; transform: scaleY(var(--progress, 1)); }
  .chain-step { padding: 0 0 2rem 2.75rem; }
}

/* Sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin-top: 1.1rem; }

/* Feature rows: photo beside text, alternating */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 9vw, 7.5rem); }
.feature--flip .feature-media { order: 2; }
.feature-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.feature h2 { font-size: var(--step-2); }
.feature p { margin-top: 1rem; max-width: 34em; }
.checks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.checks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.75rem; align-items: start; color: var(--ink-2); }
.checks svg { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; color: var(--teal-ink); }
.checks strong { color: var(--ink); font-weight: 600; }
.feature .text-link { display: inline-flex; margin-top: 1.75rem; font-weight: 500; }
@media (max-width: 52rem) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
}

/* Roles: a plain two-column list with rules, not cards */
.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.roles li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.roles svg { width: 1.5rem; height: 1.5rem; color: var(--teal-ink); margin-top: 0.2rem; }
.roles h3 { font-size: 1.125rem; }
.roles p { margin-top: 0.3rem; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 52rem) { .roles { grid-template-columns: 1fr; } }

/* Dark band: security */
.band { background: var(--ink); color: #c9d3d3; }
.band h2, .band h3 { color: #fff; }
.band a { color: #fff; }
.band a:hover { color: var(--teal); }
.band .lead { color: #c9d3d3; }
.safeguards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 4vw, 3.5rem); }
.safeguards li { padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.16); }
.safeguards svg { width: 1.5rem; height: 1.5rem; color: var(--teal); }
.safeguards h3 { margin-top: 1rem; font-size: 1.125rem; }
.safeguards p { margin-top: 0.4rem; font-size: 0.95rem; line-height: 1.65; color: #aab7b7; }
@media (max-width: 60rem) { .safeguards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .safeguards { grid-template-columns: 1fr; } }

/* Product glimpse: an HTML rendering of one screen, sample data */
.glimpse { margin-top: clamp(2.5rem, 5vw, 4rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.glimpse-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.glimpse-bar b { color: var(--ink); font-weight: 600; }
.glimpse-bar .sample { margin-left: auto; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--surface); font-size: 0.72rem; }
.glimpse-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.glimpse-stats div { padding: 1rem 1.25rem; border-right: 1px solid var(--line); }
.glimpse-stats div:last-child { border-right: 0; }
.glimpse-stats dt { font-size: 0.72rem; color: var(--muted); }
.glimpse-stats dd { margin: 0.2rem 0 0; font-size: 1.6rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.glimpse table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.glimpse th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.75rem; padding: 0.7rem 1.25rem; border-bottom: 1px solid var(--line); }
.glimpse td { padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.glimpse tr:last-child td { border-bottom: 0; }
.glimpse td:first-child { color: var(--ink); font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 500; background: var(--surface); color: var(--ink-2); }
.pill--ok { background: #e7f6ef; color: var(--ok); }
.pill--warn { background: #fdf1e7; color: #9a4a0c; }
.pill--teal { background: var(--teal-wash); color: var(--teal-ink); }
.glimpse-scroll { overflow-x: auto; }
@media (max-width: 52rem) {
  .glimpse-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glimpse-stats div:nth-child(2) { border-right: 0; }
  .glimpse-stats div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* FAQ */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-weight: 500; color: var(--ink); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--muted); transition: transform 0.3s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--teal-ink); }
.faq details > div { padding: 0 0 1.5rem; max-width: 44em; }

/* Closing call to action over a photograph */
.closer { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); color: #fff; padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem); }
.closer picture, .closer picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.closer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(15 27 28 / 0.88) 0%, rgb(15 27 28 / 0.66) 55%, rgb(15 27 28 / 0.25) 100%); }
.closer h2 { color: #fff; max-width: 16ch; }
.closer p { margin-top: 1rem; max-width: 30em; color: #dbe4e4; }
.closer .actions { margin-top: 2rem; }
.closer .btn--ghost { color: #fff; border-color: rgb(255 255 255 / 0.5); }
.closer .btn--ghost:hover { background: rgb(255 255 255 / 0.1); color: #fff; }

/* Page header for inner pages */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: var(--step-3); max-width: 18ch; }
.page-head .lead { margin-top: 1.25rem; }
.crumbs { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; gap: 0.5rem; font-size: var(--step--1); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-strong); }

/* Platform page: module index and detail blocks */
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding: 0; list-style: none; }
.toc a { display: inline-flex; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); }
.toc a:hover { border-color: var(--ink); color: var(--ink); }
.module { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.module h2 { font-size: var(--step-2); }
.module > div:first-child p { margin-top: 1rem; }
.module-media { margin-top: 2rem; }
.module-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.detail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.detail h3 { font-size: 1.125rem; }
.detail p { margin-top: 0.4rem; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 60rem) { .module { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .detail { grid-template-columns: 1fr; } }

/* Prose (privacy, security detail) */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-1); margin: 2.5rem 0 0.75rem; }
.prose p + p, .prose ul + p { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }
.notice { display: flex; gap: 0.85rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--surface); font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); }
.notice svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; color: var(--teal-ink); }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-bottom: clamp(4rem, 8vw, 6rem); }
.form-aside h2 { font-size: var(--step-1); }
.form-aside .steps { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: s; display: grid; gap: 1.5rem; }
.form-aside .steps li { counter-increment: s; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.9rem; }
.form-aside .steps li::before { content: counter(s); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.form-aside .steps h3 { font-size: 1.0625rem; }
.form-aside .steps p { margin-top: 0.2rem; font-size: 0.93rem; color: var(--muted); }
.form-aside figure { margin: 2.5rem 0 0; }
.form-aside figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 1px 2px rgb(15 27 28 / 0.04); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label, .field legend { font-size: 0.9rem; font-weight: 500; color: var(--ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; min-height: 3rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6768' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 1.1rem; padding-right: 2.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #6b7778; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aab6b6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-wash); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px #fde8e6; }
.field .hint { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.field .error { font-size: 0.82rem; color: var(--danger); line-height: 1.5; }
.field .error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.option span { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.9rem; font-weight: 500; color: var(--ink-2); transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.option input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.option input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.option:hover span { border-color: var(--ink); }
.consent { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.9rem; color: var(--ink-2); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.form-status { font-size: 0.92rem; }
.form-status[data-tone="error"] { color: var(--danger); }
.form-done { text-align: left; }
.form-done svg { width: 2.75rem; height: 2.75rem; color: var(--teal-ink); }
.form-done h2 { margin-top: 1.25rem; font-size: var(--step-2); }
.form-done p { margin-top: 0.75rem; }
@media (max-width: 60rem) { .form-layout { grid-template-columns: 1fr; } .form-aside figure { display: none; } }
@media (max-width: 36rem) { .form-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; margin-top: clamp(4rem, 8vw, 6rem); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-grid h2 { font-size: 1rem; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0.9rem 0 0; display: grid; gap: 0.55rem; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid .blurb { margin-top: 1rem; color: var(--muted); max-width: 24em; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Gentle reveal for feature rows: content is visible by default without JS */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal[data-in] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .chain-track::after { transition: none; --progress: 1; }
  .js .chain-step::before { transition: none; border-color: var(--teal); background: var(--teal); }
  .btn, .btn:hover { transition: none; transform: none; }
}

/* ---------- The spine: one teal line from referral to paycheck ---------- */
.spine-section { padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 4vw, 3rem); }
.spine-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
.spine-head .lead { max-width: 32em; }
.spine { --gutter: 11rem; --node: 1.75rem; position: relative; list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; }
.spine::before, .spine::after {
  content: ""; position: absolute; left: calc(var(--node) / 2 - 1px); top: 0.4rem; bottom: 0; width: 2px;
}
.spine::before { background: var(--line-strong); }
.spine::after { background: var(--teal); transform-origin: top; transform: scaleY(var(--p, 1)); }
.stage { position: relative; display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.stage--last { padding-bottom: 0; }
.stage--last::after { content: ""; position: absolute; left: 0; top: calc(var(--node) + 0.4rem); bottom: 0; width: var(--node); background: var(--paper); z-index: 0; }
.stage-mark { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.75rem; align-self: start; padding-top: 0.15rem; }
.node {
  display: grid; place-items: center; flex: none; width: var(--node); height: var(--node); border-radius: 50%;
  background: var(--teal); border: 2px solid var(--teal); color: #fff; font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.node--branch { width: 1rem; height: 1rem; margin-inline: calc((var(--node) - 1rem) / 2); background: #fff; }
.stage-name { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.stage--branch .stage-name { color: var(--muted); font-weight: 500; }
.js .spine .node { background: #fff; border-color: var(--line-strong); color: var(--muted); transition: background-color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), color 0.5s var(--ease-out); }
.js .spine .stage[data-on] .node { background: var(--teal); border-color: var(--teal); color: #fff; }
.js .spine .stage[data-on] .node--branch { background: #fff; border-color: var(--teal); }
.stage-body h3 { font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.025em; max-width: 22ch; }
.stage-body > p, .stage-body .stage-text { margin-top: 1rem; max-width: 40em; }
.stage-body.feature { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.stage-body.feature + .feature { margin-top: 0; }
.stage-body .feature-media img { aspect-ratio: 4 / 3; }
.stage-body .glimpse { margin-top: 2rem; }
.glimpse--narrow { max-width: 46rem; }
.branch { background: var(--surface); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.branch h3 { font-size: var(--step-1); max-width: none; }
.branch .ruled { margin-top: 1.5rem; }

/* Ruled definition lists replace icon tiles */
.ruled { margin: 0; border-top: 1px solid var(--line-strong); }
.ruled > div { display: grid; grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1.4fr); gap: 0.5rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.ruled dt { font-weight: 600; color: var(--ink); }
.ruled dd { margin: 0; color: var(--ink-2); }
.ruled--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); border-top: 0; }
.ruled--two > div { grid-template-columns: 1fr; gap: 0.25rem; padding: 1.4rem 0; border-top: 1px solid var(--line-strong); border-bottom: 0; }
.ruled--two dd { color: var(--muted); }
.band-soft { background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.split h2 { font-size: var(--step-2); }
.split .lead { margin-top: 1rem; }
.cta-plain { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.cta-plain h2 { font-size: var(--step-2); max-width: 22ch; }
.cta-plain .lead { margin-top: 0.75rem; }
.cta-plain .actions { margin-top: 1.75rem; }
.detail { align-content: start; }
.form-aside .steps--plain li { grid-template-columns: 1fr; }
.form-aside .steps--plain li::before { content: none; }

@media (max-width: 60rem) {
  .spine-head, .split { grid-template-columns: 1fr; }
  .stage-body.feature { grid-template-columns: 1fr; }
  .ruled--two { grid-template-columns: 1fr; }
}
@media (max-width: 52rem) {
  .spine { --gutter: 2.75rem; --node: 1.5rem; }
  .stage-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stage-body h3 { font-size: 1.45rem; }
  .ruled > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .nav[data-open] { box-shadow: 0 24px 40px -24px rgb(15 27 28 / 0.35); padding-bottom: 1.75rem; }
}
/* Phone tables: each row restacks so waiting time and status stay visible */
@media (max-width: 40rem) {
  .glimpse thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .glimpse table, .glimpse tbody { display: block; }
  .glimpse tr { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); }
  .glimpse tr:last-child { border-bottom: 0; }
  .glimpse td { padding: 0; border: 0; white-space: normal; }
  .glimpse td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); }
  .glimpse td:nth-child(3) { display: none; }
  .glimpse td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .glimpse td:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right; }
  .glimpse--narrow td:nth-child(3) { display: block; grid-column: 2; grid-row: 1; text-align: right; }
  .glimpse--narrow td:nth-child(4) { grid-column: 2; grid-row: 2; }
  .glimpse--narrow td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .glimpse--narrow td:nth-child(2)::after { content: " verified visits"; }
}
@media (prefers-reduced-motion: reduce) {
  .js .spine .node { transition: none; }
}
