/* CareVix — shared styles
   Palette taken from the CareVix logo, which shares its colours with a Pap-stained slide. */

:root {
  --ink: #1E2657;        /* logo navy */
  --pink: #E55F9A;       /* logo pink — always this exact value */
  --violet: #5B4BB8;     /* Wave */
  --teal: #22A4A6;       /* Loop */
  --glass: #F5F6FB;      /* page background, like a clean slide */
  --mist: #E7E9F3;
  --ink-soft: #4A5180;
  --white: #FFFFFF;

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 4.8rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1200px;
  --radius-photo: 28px;
}

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

body {
  margin: 0;
  background: var(--glass);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 52ch; }
.small { font-size: var(--step--1); color: var(--ink-soft); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 251, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--mist); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.7rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; padding-block: .3rem; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--pink); transition: right .25s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--glass); padding: 1rem var(--gutter) 2rem; border-bottom: 1px solid var(--mist);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.15rem; }
  .nav-links a.btn { display: inline-flex; margin-top: 1rem; padding: .8rem 1.4rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--ink);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  background: var(--ink); color: #fff; transition: background .2s, color .2s, transform .15s;
  font-family: var(--body);
}
.btn:hover { background: var(--pink); border-color: var(--pink); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-links .btn { padding: .55rem 1.15rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--pink); }
.text-link:hover { color: var(--pink); }

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: center; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--glass) 0%, rgba(245,246,251,.92) 34%, rgba(245,246,251,0) 68%);
}
.hero-content { position: relative; z-index: 2; padding-block: 5rem; pointer-events: none; }
.hero-content a, .hero-content button { pointer-events: auto; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 1.6rem; }
@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(245,246,251,.55) 0%, rgba(245,246,251,.95) 45%, var(--glass) 100%); }
  .hero-content { padding-top: 12rem; padding-bottom: 4rem; }
}

/* ---------- page heroes (inner pages) ---------- */
.page-hero { padding-block: clamp(4rem, 9vw, 7rem) clamp(2rem, 5vw, 4rem); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 1.4rem; }

/* ---------- burden statement ---------- */
.burden { background: var(--ink); color: #fff; }
.burden-statement { font-family: var(--display); font-size: var(--step-3); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; max-width: 22ch; margin: 0; }
.burden-statement + .burden-statement { margin-top: 1.2rem; color: #B9BEE0; font-size: var(--step-2); max-width: 34ch; }
.burden-lead { margin: clamp(2.5rem, 5vw, 4rem) 0 0; font-weight: 600; font-size: var(--step-1); color: #fff; }
.bottlenecks { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 1.6rem; }
.bottleneck { border-top: 3px solid var(--pink); padding-top: 1.2rem; }
.bottleneck:nth-child(2) { border-color: var(--teal); }
.bottleneck:nth-child(3) { border-color: #9C91E6; }
.bottleneck h3 { margin-bottom: .6rem; }
.bottleneck p { color: #C9CDEA; font-size: .98rem; }
.sources { margin-top: 3rem; font-size: .78rem; color: #8E94BF; max-width: 90ch; }
.sources p { margin: 0 0 .3rem; font-weight: 700; color: #B9BEE0; }
.burden .ref-list { color: #8E94BF; font-size: .78rem; margin-top: 0; }
.burden .fn a { color: #F49AC1; }
@media (max-width: 860px) { .bottlenecks { grid-template-columns: 1fr; } }

/* ---------- pathway (scrollytelling) ---------- */
.pathway-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: 3rem; }
.pathway-visual { position: sticky; top: 120px; align-self: start; height: min(70vh, 560px); display: grid; place-items: center; }
.pathway-visual svg { width: 100%; height: 100%; max-width: 480px; }
.pathway-steps { list-style: none; margin: 0; padding: 0; }
.pathway-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; transition: opacity .35s; }
.pathway-step.active { opacity: 1; }
.pathway-step .num { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--ink); margin-bottom: .6rem; }
.pathway-step.phase-screen .num { color: var(--violet); }
.pathway-step.phase-triage .num { color: var(--teal); }
.pathway-step.phase-treat .num { color: var(--pink); }
.pathway-step h3 { font-size: var(--step-2); margin-bottom: .8rem; }
@media (max-width: 860px) {
  .pathway-grid { grid-template-columns: 1fr; }
  .pathway-visual { top: 76px; height: 38vh; z-index: 2; background: var(--glass); }
  .pathway-step { min-height: 50vh; }
}
@media (prefers-reduced-motion: reduce) { .pathway-step { opacity: 1; } }

/* ---------- split (text + photo) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.photo { border-radius: var(--radius-photo); overflow: hidden; background: #fff; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { margin-top: .7rem; font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ---------- audiences ---------- */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin-top: 3rem; }
.audience { border-top: 3px solid var(--pink); padding-top: 1.2rem; }
.audience:nth-child(2) { border-color: var(--violet); }
.audience h3 { font-size: var(--step-2); margin-bottom: .8rem; }
@media (max-width: 760px) { .audiences { grid-template-columns: 1fr; } }

/* ---------- partners strip ---------- */
.partners { background: #fff; }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(2rem, 6vw, 5rem); margin-top: 1.5rem; }
.partner-logos img { height: 52px; width: auto; }
.partner-logos img.hug { height: 64px; }

/* ---------- Wave and Loop, side by side ---------- */
/* Two columns at every width; subgrid keeps the heads, facts and days lined up across them. */
.sol-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: clamp(1rem, 4vw, 4rem); margin-top: 2rem; }
.sol { display: grid; grid-row: span 3; grid-template-rows: subgrid; --accent: var(--violet); }
.sol.loop { --accent: var(--teal); }
.sol-head img { max-width: 240px; width: 100%; margin-bottom: 1.4rem; }
.sol-head h2 { color: var(--accent); font-size: var(--step-2); }
.sol-head .lede { margin-top: .8rem; font-size: var(--step-0); }
.facts { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--mist); border-radius: 20px; overflow: hidden; margin-top: 2rem; align-self: start; }
.fact { background: #fff; padding: 1.2rem 1.4rem; }
.fact .value { font-family: var(--display); font-weight: 800; font-size: var(--step-2); color: var(--accent); line-height: 1.1; }
.fact .label { font-size: .95rem; color: var(--ink-soft); margin-top: .3rem; }
.day { margin-top: clamp(3rem, 6vw, 4.5rem); }
.day > h2 { font-size: var(--step-2); }
.day-col { margin-top: 2rem; }
.day-col h3 { font-size: var(--step-1); margin-bottom: 1rem; color: var(--accent); }
.phase-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0; font-weight: 700; font-size: .95rem; }
.phase-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .45rem; vertical-align: -1px; }
.phase-legend .screen::before { background: var(--violet); }
.phase-legend .triage::before { background: var(--teal); }
.phase-legend .treat::before { background: var(--pink); }
@media (max-width: 600px) {
  .sol-head img { max-width: 140px; }
  .sol-head h2, .day > h2 { font-size: var(--step-1); }
  .sol-head .lede { font-size: .92rem; }
  .fact { padding: .9rem .8rem; }
  .fact .value { font-size: var(--step-1); }
  .fact .label { font-size: .85rem; }
  .day-col h3 { font-size: 1rem; }
  .timeline::before { left: 7px; }
  .timeline li { padding-left: 1.6rem; }
  .timeline li::before { left: 1px; width: 14px; height: 14px; }
  .timeline li strong { font-size: .95rem; }
  .timeline li span { font-size: .87rem; }
}

/* timeline: black dots, coloured where the step screens, triages or treats */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--mist); }
.timeline li { position: relative; padding: 0 0 1.3rem 3rem; opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s; }
.timeline li:last-child { padding-bottom: 0; }
.timeline.play li { opacity: 1; transform: none; }
.timeline li::before {
  content: ""; position: absolute; left: 8px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--ink);
}
.timeline li.screen::before { background: var(--violet); border-color: var(--violet); }
.timeline li.triage::before { background: var(--teal); border-color: var(--teal); }
.timeline li.treat::before { background: var(--pink); border-color: var(--pink); }
.timeline li strong { display: block; font-family: var(--display); font-size: 1.08rem; }
.timeline li span { color: var(--ink-soft); font-size: .97rem; }
@media (prefers-reduced-motion: reduce) { .timeline li { opacity: 1; transform: none; transition: none; } }

/* ---------- technology page ---------- */
.tech-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tech-nav a { font-weight: 700; font-size: .95rem; text-decoration: none; padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--mist); background: #fff; }
.tech-nav a:hover { border-color: var(--ink); }
.tech-block { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--mist); scroll-margin-top: 80px; }
.tech-block .phase-tag { font-weight: 800; font-family: var(--display); margin-bottom: .6rem; }
.phase-tag.screen { color: var(--violet); }
.phase-tag.triage { color: var(--teal); }
.phase-tag.treat { color: var(--pink); }
.tech-block h2 { margin-bottom: 1rem; }
.tech-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 1.5rem; }
.tech-cols h3 { margin-bottom: .5rem; }
@media (max-width: 760px) { .tech-cols { grid-template-columns: 1fr; } }

/* ---------- telecytology page ---------- */
.flow { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--mist); border-radius: 20px; overflow: hidden; counter-reset: flow; }
.flow li { background: #fff; padding: 1.5rem 1.4rem; counter-increment: flow; }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem; margin-bottom: .8rem; }
.flow strong { display: block; font-family: var(--display); font-size: 1.08rem; margin-bottom: .3rem; }
.flow span { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }

.platform { margin-top: 2.5rem; background: #fff; border: 1px solid var(--mist); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(30,38,87,.08); }
.pf-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--ink); color: #fff; padding: .8rem 1.2rem; font-weight: 700; font-size: .95rem; }
.pf-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 290px; }
.pf-queue, .pf-report { padding: 1.2rem; }
.pf-queue { border-right: 1px solid var(--mist); }
.pf-report { border-left: 1px solid var(--mist); }
.pf-body h3 { font-family: var(--body); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: .8rem; }
.pf-queue ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pf-queue button { width: 100%; text-align: left; font: 700 .95rem var(--body); color: var(--ink); background: var(--glass); border: 2px solid transparent; border-radius: 12px; padding: .6rem .8rem; cursor: pointer; }
.pf-queue button small { display: block; font-weight: 500; color: var(--ink-soft); }
.pf-queue button[aria-current="true"] { border-color: var(--ink); background: #fff; }
.pf-queue button.reviewed small::after { content: " · reviewed"; color: var(--teal); font-weight: 700; }
.pf-viewer { padding: 1.2rem; display: flex; }
.pf-viewer .scope { flex: 1; aspect-ratio: auto; min-height: 300px; }
.pf-viewer .scope { border-radius: 14px; }
.pf-info { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: 0 0 1.2rem; font-size: .93rem; }
.pf-info dt { color: var(--ink-soft); }
.pf-info dd { margin: 0; font-weight: 700; }
.pf-report fieldset { border: 0; padding: 0; margin: 0; }
.pf-report legend { font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.pf-report label { display: flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .93rem; margin: 0; padding: .25rem 0; cursor: pointer; }
.pf-report input[type="radio"] { width: auto; accent-color: var(--ink); }
.pf-report .btn { margin-top: 1rem; padding: .65rem 1.2rem; font-size: .95rem; }
.pf-status { min-height: 1.4em; font-size: .9rem; font-weight: 600; margin: .5rem 0 0; }
@media (max-width: 980px) {
  .pf-body { grid-template-columns: 1fr; }
  .pf-queue { border-right: 0; border-bottom: 1px solid var(--mist); }
  .pf-queue ul { grid-template-columns: repeat(3, 1fr); }
  .pf-report { border-left: 0; border-top: 1px solid var(--mist); }
}
@media (max-width: 520px) { .pf-queue ul { grid-template-columns: 1fr; } }

/* ---------- GyroStainer simulator ---------- */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sim-stage { background: #fff; border-radius: 50%; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; position: relative; box-shadow: inset 0 0 0 1px var(--mist); }
.sim-stage svg { width: 100%; height: 100%; display: block; }
.sim-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sim-status { font-family: var(--display); font-size: var(--step-1); font-weight: 700; margin: 0; }
.sim-pause { font: 700 .9rem var(--body); color: var(--ink); background: #fff; border: 2px solid var(--mist); border-radius: 999px; padding: .4rem 1rem; cursor: pointer; }
.sim-pause:hover { border-color: var(--ink); }
.sim-progress { height: 6px; background: var(--mist); border-radius: 6px; overflow: hidden; margin: 1rem 0 1.2rem; }
.sim-progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--pink)); transition: width .4s; }
.sim-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: .2rem .8rem; }
.sim-steps li { display: flex; align-items: center; gap: .7rem; padding: .4rem .5rem; border-radius: 12px; transition: background .25s, opacity .25s; }
.sim-steps li.on { background: var(--glass); }
.sim-steps li.done { opacity: .45; }
.sim-steps strong { display: block; font-size: .95rem; line-height: 1.25; }
.sim-steps small { display: block; color: var(--ink-soft); font-size: .84rem; line-height: 1.3; }
.st-badge { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: .82rem; color: var(--ink); box-shadow: inset 0 0 0 2px #C6CAE0; }
.st-badge.dark { color: #fff; box-shadow: none; }
.sim-steps li.on .st-badge { box-shadow: 0 0 0 3px var(--ink); }
.sim-slide-preview { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.sim-slide-preview .glass-slide { flex: none; width: 120px; height: 40px; border-radius: 4px; background: #EEF0F7; border: 1px solid #D5D8E8; position: relative; overflow: hidden; }
.sim-slide-preview .smear { position: absolute; inset: 7px 14px 7px 40px; border-radius: 40%; background: #F3EFE9; transition: background .6s; }
.sim-slide-preview .small { margin: 0; }
@media (max-width: 520px) { .sim-steps { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
@media (max-width: 860px) { .sim { grid-template-columns: 1fr; } }

/* microscope magnifier */
.scope { position: relative; border-radius: var(--radius-photo); overflow: hidden; aspect-ratio: 4 / 3; background: #fff; cursor: zoom-in; touch-action: pan-y; }
.scope img { width: 100%; height: 100%; object-fit: cover; }
.scope-lens {
  position: absolute; width: 190px; height: 190px; border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: opacity .2s, transform .2s;
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink), 0 10px 30px rgba(30,38,87,.25); background-repeat: no-repeat; background-color: #fff;
}
.scope.lens-on .scope-lens { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.scope-picker { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.scope-picker button { font: 600 .92rem var(--body); padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--mist); background: #fff; color: var(--ink); cursor: pointer; }
.scope-picker button[aria-pressed="true"] { border-color: var(--ink); }

/* SVG pieces */
#pathway-svg .pw-body { fill: #fff; stroke: #B7BBD3; stroke-width: 2; transition: fill .6s, stroke .6s, fill-opacity .6s; }
#pathway-svg .pw-nuc { fill: #B7BBD3; transition: fill .6s; }
#pathway-svg:not([data-step="1"]):not([data-step="2"]) .pw-body { fill: var(--stain); fill-opacity: .45; stroke: var(--stain); }
#pathway-svg:not([data-step="1"]):not([data-step="2"]) .pw-nuc { fill: #34267F; }
#pathway-svg .hpv-tag, #pathway-svg .scan, #pathway-svg .flag, #pathway-svg .treat, #pathway-svg .refer { opacity: 0; transition: opacity .5s; }
#pathway-svg[data-step="2"] .hpv-tag { opacity: 1; }
#pathway-svg[data-step="4"] .scan { opacity: 1; }
#pathway-svg[data-step="4"] .flag, #pathway-svg[data-step="5"] .flag, #pathway-svg[data-step="6"] .flag { opacity: 1; }
#pathway-svg[data-step="5"] .treat { opacity: 1; }
#pathway-svg[data-step="6"] .refer { opacity: 1; }
#pathway-svg .scan line { animation: scan 2.4s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(-150px); } to { transform: translateY(150px); } }
#pathway-svg #pw-caption { font: 700 22px var(--display); fill: var(--ink); }
@media (prefers-reduced-motion: reduce) { #pathway-svg .scan line { animation: none; } }

#sim-svg #arm { transform-box: view-box; transform-origin: 200px 200px; transition: transform .5s cubic-bezier(.5,0,.3,1); }
#sim-svg #holder { transform-box: fill-box; transform-origin: center; }
#sim-svg #holder.dip { animation: dip .9s ease-in-out; }
@keyframes dip { 0%,100% { transform: scale(1); } 35%,65% { transform: scale(.72); opacity: .55; } }
#sim-svg .ripple { stroke: var(--pink); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
#sim-svg .ripple.go { animation: ripple .9s ease-out; }
@keyframes ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
#sim-svg .station.on circle:first-child { stroke: var(--ink); stroke-width: 3; }
#sim-svg .st-num { font: 700 15px var(--body); }
@media (prefers-reduced-motion: reduce) { #sim-svg #arm { transition: none; } #sim-svg #holder.dip, #sim-svg .ripple.go { animation: none; } }

/* ---------- about ---------- */
.founder .portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius-photo); background: #fff; border: 2px dashed #C6CAE0;
  display: grid; place-items: center; color: var(--ink-soft); font-size: .95rem; text-align: center; margin-bottom: 1.2rem;
}
.founder .portrait img { width: 90px; opacity: .5; margin: 0 auto .8rem; }
.founder h3 { font-size: var(--step-2); }
.founder .role { color: var(--ink-soft); font-weight: 600; margin: .3rem 0 .8rem; }
.founder .portrait.has-photo { border: 0; overflow: hidden; display: block; }
.founder .portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: 1; margin: 0; }

.contact { background: #fff; border-radius: var(--radius-photo); padding: clamp(1.6rem, 4vw, 3rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 1.8rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--glass); border: 2px solid transparent;
  border-radius: 14px; padding: .8rem 1rem; transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); background: #fff; }
textarea { min-height: 150px; resize: vertical; }
.form-status { margin-top: 1rem; font-weight: 600; min-height: 1.6em; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--pink); color: #fff; }
.cta-band h2 { max-width: 18ch; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: #fff; }

.site-footer { background: var(--ink); color: #C9CDEA; padding-block: 4rem 2.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-grid img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; font-family: var(--body); letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--pink); }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8E94BF; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* ---------- shared: eyebrow, cards, section heads ---------- */
.eyebrow { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--violet); margin: 0 0 .7rem; }
.eyebrow.teal { color: var(--teal); }
.eyebrow.pink { color: var(--pink); }
.bg-white { background: #fff; }
.section-head { max-width: 780px; }
.section-head .lede { margin-top: 1rem; }
.also { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: 18px; background: var(--glass); font-size: .97rem; max-width: 62ch; }
.also::before { content: ""; width: 10px; height: 10px; margin-top: .5em; border-radius: 50%; background: var(--pink); flex: none; }
.also p { margin: 0; }

/* offer cards (home + solutions) */
.offer-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.offer-card { display: flex; flex-direction: column; gap: .45rem; text-decoration: none; background: #fff; border-radius: 22px; padding: 1.5rem; border: 2px solid transparent; transition: border-color .2s; }
.offer-card:hover { border-color: var(--ink); }
.offer-card .tag { font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
.offer-card strong { font-family: var(--display); font-size: var(--step-1); line-height: 1.2; }
.offer-card strong::after { content: " →"; color: var(--pink); }
.offer-card .desc { color: var(--ink-soft); font-size: .97rem; }
.offer-card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: .3rem; color: #fff; }
.offer-card .icon svg { width: 26px; height: 26px; }
.bg-white .offer-card { background: var(--glass); }
@media (max-width: 860px) { .offer-cards { grid-template-columns: 1fr; } }

/* screen / triage / treat strip (home) */
.phase-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 2.5rem; }
.phase-card { border-top: 3px solid var(--violet); padding-top: 1.1rem; }
.phase-card.triage { border-color: var(--teal); }
.phase-card.treat { border-color: var(--pink); }
.phase-card h3 { margin-bottom: .5rem; }
.phase-card .eyebrow { margin-bottom: .3rem; }
.phase-card p { color: var(--ink-soft); }
@media (max-width: 860px) { .phase-cards { grid-template-columns: 1fr; } }

/* clinic formats */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); margin-top: 2.5rem; }
.format { background: #fff; border-radius: 26px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.format svg { width: 100%; height: auto; margin-bottom: 1.2rem; }
.format h3 { font-size: var(--step-2); }
.format .sub { font-weight: 700; color: var(--pink); margin: .3rem 0 .7rem; }
.format p { color: var(--ink-soft); }
@media (max-width: 860px) { .formats { grid-template-columns: 1fr; } }

/* condensed workflow */
.flow-steps { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .6rem; }
.flow-steps li { background: #fff; border-radius: 16px; padding: 1rem 1.1rem; }
.flow-steps .when { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.flow-steps strong { display: block; font-family: var(--display); font-size: 1.1rem; margin: .1rem 0 .2rem; }
.flow-steps .what { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 600px) {
  .flow-steps li { padding: .8rem .75rem; }
  .flow-steps strong { font-size: .98rem; }
  .flow-steps .what { font-size: .87rem; }
  .flow-steps .when { font-size: .68rem; }
}

/* product sections on solutions */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .product-hero { grid-template-columns: 1fr; } }
.sub-block { margin-top: clamp(3.5rem, 7vw, 6rem); }
.sub-block > h3 { font-size: var(--step-2); }
.sub-block > .lede { margin-top: .8rem; font-size: var(--step-0); }

/* platform demo: report text */
.pf-report .pf-notes-label { margin-top: 1rem; font-weight: 700; font-size: .95rem; }
.pf-report textarea { min-height: 130px; font-size: .9rem; line-height: 1.45; }

/* ---------- data flow animation ---------- */
.dataflow { margin-top: 2rem; max-width: 900px; }

.dataflow-stage { background: #fff; border-radius: 24px; padding: clamp(.5rem, 2vw, 1.2rem); }
.dataflow-stage svg { width: 100%; height: auto; display: block; }
.anim-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.anim-top p { margin: 0; font-weight: 700; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.step-list li { display: grid; grid-template-columns: 30px 1fr; gap: .1rem .8rem; padding: .6rem .8rem; border-radius: 14px; cursor: pointer; opacity: .5; transition: background .25s, opacity .25s; }
.step-list li b { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mist); font-size: .85rem; }
.step-list li.on { opacity: 1; background: #fff; }
.bg-white .step-list li.on { background: var(--glass); }
.step-list li.on b { background: var(--ink); color: #fff; }
.step-list.pink li.on b { background: var(--pink); }
.step-list strong { font-family: var(--display); font-size: 1.05rem; }
.step-list span { color: var(--ink-soft); font-size: .93rem; }

#df-svg text { font-family: var(--body); }
#df-svg .lane { stroke: #C6CAE0; stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; fill: none; }
#df-svg .arrow { stroke: #9AA0C4; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#df-svg .lane-label { font-size: 13px; font-weight: 600; fill: var(--ink-soft); }
#df-svg .node-title { font: 800 20px var(--display); fill: var(--ink); }
@media (prefers-reduced-motion: reduce) { #df-svg circle[opacity] { display: none; } }

/* ---------- AI animation ---------- */
.ai-demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: 2.5rem; }
.ai-stage { border-radius: 24px; overflow: hidden; background: #fff; position: relative; }
.ai-stage svg { width: 100%; height: auto; display: block; }
.ai-badge { position: absolute; left: 14px; top: 14px; background: rgba(30,38,87,.88); color: #fff; font-weight: 700; font-size: .85rem; border-radius: 999px; padding: .3rem .85rem; }
#ai-svg .tile { fill: transparent; stroke: rgba(30,38,87,.3); stroke-width: 2; opacity: 0; transition: opacity .5s, fill .2s; }
#ai-svg[data-phase="1"] .tile, #ai-svg[data-phase="2"] .tile { opacity: 1; }
#ai-svg .tile.scan { fill: rgba(91,75,184,.25); }
#ai-svg .tile.hot { fill: rgba(229,95,154,.18); }
#ai-svg .flag { opacity: 0; transition: opacity .3s; }
#ai-svg .flag circle { fill: none; stroke: var(--pink); stroke-width: 5; }
#ai-svg .flag.on { opacity: 1; }
#ai-svg .flag .n { fill: var(--pink); stroke: none; }
#ai-svg .flag text { font: 800 22px var(--body); fill: #fff; }
#ai-svg .focus { opacity: 0; transition: opacity .5s; }
#ai-svg[data-phase="4"] .focus { opacity: 1; }
#ai-svg[data-phase="4"] .flag:not(.top) { opacity: .3; }
.ai-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--mist); border-radius: 20px; overflow: hidden; margin-top: 2rem; }
.ai-stats div { background: #fff; padding: 1.1rem 1.3rem; }
.bg-white .ai-stats div { background: var(--glass); }
.ai-stats strong { display: block; font-family: var(--display); font-size: var(--step-2); line-height: 1.1; color: var(--violet); }
.ai-stats div:first-child strong { color: var(--ink-soft); }
.ai-stats span { font-size: .93rem; color: var(--ink-soft); }
@media (max-width: 960px) { .ai-demo { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ai-stats { grid-template-columns: 1fr; } }

/* ---------- contact (single column) ---------- */
.contact-single { max-width: 820px; }

/* ---------- footnotes and references ---------- */
.fn { font-family: var(--body); font-size: .55em; font-weight: 700; line-height: 0; vertical-align: super; margin-left: .08em; letter-spacing: 0; }
.fn a { color: var(--pink); text-decoration: none; padding: 0 .1em; }
.fn a:hover { text-decoration: underline; }
.refs { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--mist); }
.refs h2 { font-size: var(--step-1); }
.ref-list { margin: 1rem 0 0; padding-left: 1.4rem; font-size: var(--step--1); color: var(--ink-soft); max-width: 90ch; }
.ref-list li { margin-bottom: .5rem; scroll-margin-top: 110px; }
.ref-list li:target { color: var(--ink); }
.burden .ref-list li:target { color: #fff; }

/* ---------- about: people ---------- */
.people h2, .people .lede { text-align: center; margin-inline: auto; }
.people-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(2rem, 4vw, 3.5rem); margin-top: 3rem; }
.people-row + .people-row { margin-top: clamp(2rem, 4vw, 3rem); }
.people-row .founder { width: min(100%, 300px); text-align: center; }
.people .partner-logos { justify-content: center; margin-top: clamp(3rem, 6vw, 5rem); }
[id] { scroll-margin-top: 96px; }
