/* ===========================================================
   STYLE.CSS — MedStake (company site)
   x.ai-style mono: black hero + nav + footer, light body
   ColpoPen · MCIR · animated cervix scan
   =========================================================== */

:root {
  /* ---- NHS theme (mapped from the MedStake Colour Lab "NHS" preset) ---- */
  /* ---- light (body) ---- */
  --bg:       #ffffff;             /* paper */
  --soft:     #e8edee;             /* NHS mist / wash */
  --ink:      #231f20;             /* NHS ink */
  --muted:    #425563;             /* NHS slate */
  --line:     #d8dde0;             /* hairline (NHS grey family) */
  --line-2:   #aeb7bd;             /* stronger rule */

  /* ---- NHS blue — tonal scale 50..900 (anchor = --blue = #005eb8) ---- */
  --blue-50:     #e8f1f8;
  --blue-100:    #cfe1f0;
  --blue-200:    #a8c8e4;
  --blue-300:    #79aad6;
  --blue-400:    #4a8bc7;
  --blue-500:    #1f73be;
  --blue-600:    #0072ce;   /* NHS interactive */
  --blue-700:    #00569f;
  --blue:        #005eb8;   /* primary anchor (NHS Blue) */
  --blue-800:    #004a96;
  --blue-deep:   #003087;   /* NHS Dark Blue (900) */
  --blue-900:    #003087;
  --blue-bright: #0072ce;   /* NHS interactive */

  /* ---- single restrained tech accent (AI / live cues + focus only) ---- */
  --cyan:        #00a9ce;   /* NHS aqua */
  --cyan-soft:   #41b6e6;   /* NHS light blue */
  --green-live:  #009639;   /* live indicator (bright NHS green) */
  --red-alert:   #da291c;   /* NHS red */
  --red-ink:     #b8231a;

  /* ---- dark NHS-blue surface scale for the differentiated dark zones ---- */
  --ink-nav:   #002265;   /* deepest top zone */
  --navy-700:  #00409a;
  --navy-800:  #003087;   /* hero mid / device base (NHS Dark Blue) */
  --navy-900:  #002a78;   /* footer top */
  --navy-950:  #001f5c;   /* footer floor (deepest zone) */

  /* ---- dark-panel tokens (names preserved for existing rules) ---- */
  --black:    #002265;            /* deepest dark zone */
  --d-surface:#003a92;            /* device / inner dark surface */
  --d-fg:     #ffffff;
  --d-muted:  #c4d6ee;            /* light on NHS dark blue */
  --d-muted2: #9fb6da;
  --d-line:   rgba(255,255,255,.12);
  --d-line2:  rgba(255,255,255,.20);
  --amber:    #ed8b00;            /* NHS warning */

  /* ---- NHS-blue-tinted shadow + ring system ---- */
  --shadow-sm:  0 1px 2px rgba(35,31,32,.06), 0 1px 1px rgba(35,31,32,.04);
  --shadow-md:  0 8px 24px rgba(0,94,184,.10), 0 2px 6px rgba(35,31,32,.06);
  --shadow-lg:  0 24px 60px rgba(0,48,135,.18), 0 6px 16px rgba(35,31,32,.08);
  --shadow-dark:0 36px 90px rgba(0,20,60,.55), inset 0 1px 0 rgba(255,255,255,.08);
  --ring:       0 0 0 3px rgba(0,94,184,.20);

  /* ---- faint dot texture helpers for dark zones ---- */
  --dot:        radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px);
  --dot-size:   22px 22px;

  --radius-pill: 999px;
  --radius-lg:   24px;
  --radius-md:   16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); line-height: 1.6; font-size: 16px;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.035em; line-height: 1.05; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; }
.eyebrow.on-dark { color: var(--d-muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-weight: 500; font-size: 0.95rem;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #d6e6f4; }
.btn-dark, .btn-primary { background: var(--blue); color: #fff; }
.btn-dark:hover, .btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: rgba(255,255,255,.65); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-clinic { background: #005eb8; color: #fff; border: none;
  box-shadow: 0 6px 16px rgba(0,74,173,.28); }
.btn-clinic:hover { background: #003087; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }

/* ---- Nav (always dark) ---- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--blue); border-bottom: 1px solid var(--d-line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--d-muted); font-size: 0.9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links .btn { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

main { flex: 1; }

/* ---- Hero (dark) ---- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(820px 480px at 50% -18%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 62%), linear-gradient(180deg, #1273cf 0%, var(--blue) 55%, var(--blue-deep) 100%);
}
.hero-grid { max-width: var(--maxw); margin: 0 auto; padding: 6rem 1.5rem 6.5rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 600;
  letter-spacing: -0.045em; margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--d-muted); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--d-muted); max-width: 40ch; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-meta { margin-top: 2.6rem; display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-meta div b { display: block; color: #fff; font-size: 1.05rem; font-weight: 600; }
.hero-meta div span { font-size: 0.82rem; color: var(--d-muted2); }

/* ColpoPen device frame around the scan screen */
.device { position: relative; padding: 14px; border-radius: 26px;
  background: linear-gradient(160deg, #003a92 0%, #00205e 100%);
  border: 1px solid var(--d-line2);
  box-shadow: 0 36px 80px rgba(0,30,70,.55), inset 0 1px 0 rgba(255,255,255,.08); }
.device-top { display: flex; align-items: center; justify-content: space-between; padding: 1px 8px 10px; }
.device-name { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--d-muted2); }
.device-cam { display: flex; align-items: center; gap: 6px; }
.device-cam i { width: 5px; height: 5px; border-radius: 50%; background: #1f4f97; }
.device-cam i.live { background: #36d399; box-shadow: 0 0 7px #36d399; animation: hudBlink 1.4s ease-in-out infinite; }
.device-foot { display: flex; justify-content: center; padding-top: 11px; }
.device-foot span { width: 46px; height: 4px; border-radius: 3px; background: #00408f; }

/* hero "scan" visual */
.scan { position: relative; aspect-ratio: 4/3.4; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--d-line2); overflow: hidden; }
.scan-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; }
/* scanline */
.scan-line { position: absolute; left: 0; right: 0; top: 7%; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  box-shadow: 0 0 22px 2px rgba(255,255,255,.5); }
/* cervix: revealed on the way down, wiped on the way up (JS drives the clip + line together) */
.scan-cervix { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; clip-path: inset(0 0 93% 0); }
.scan-cervix .cx-fill   { fill: url(#cxGlow); }
.scan-cervix .cx-ring   { fill: none; stroke: rgba(255,255,255,.42); stroke-width: 0.8; }
.scan-cervix .cx-tz     { stroke-dasharray: 1.6 2.6; stroke: rgba(255,255,255,.3); }
.scan-cervix .cx-target { fill: rgba(255,255,255,.9); }
.scan-cervix .cx-os     { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.65); stroke-width: 1; }
.scan-cervix .cx-lesion { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.85); stroke-width: 1; stroke-dasharray: 2.4 2; }
.scan-cervix .cx-label  { fill: rgba(255,255,255,.62); font: 600 2.6px var(--font); letter-spacing: 0.3px; }
.scan-cervix .cx-leader { stroke: rgba(255,255,255,.32); stroke-width: 0.4; }
/* lesion light-up when the scan line crosses it */
.scan-cervix .cx-lesion { transition: stroke .25s, stroke-opacity .25s, fill .25s; }
.scan-cervix .cx-lesion.hit { stroke: #fff; stroke-opacity: 1; fill: rgba(255,255,255,.16); animation: lesionPulse .6s ease-out; }
.scan-cervix .cx-target { transition: fill .25s; }
.scan-cervix .cx-target.hit { fill: #fff; transform-box: fill-box; transform-origin: center; animation: targetPulse .6s ease-out; }
@keyframes lesionPulse { 0% { stroke-width: 1; } 35% { stroke-width: 2.3; } 100% { stroke-width: 1.2; } }
@keyframes targetPulse { 0% { transform: scale(1); } 35% { transform: scale(2.8); } 100% { transform: scale(1.6); } }

/* scanner HUD */
.scan-hud { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 4; display: flex; align-items: center; gap: 0.45rem;
  background: rgba(0,0,0,.5); border: 1px solid var(--d-line2); border-radius: 999px; padding: 0.28rem 0.72rem;
  font-size: 0.72rem; font-weight: 600; color: #fff; letter-spacing: 0.02em; backdrop-filter: blur(6px); }
.hud-dot { width: 6px; height: 6px; border-radius: 50%; background: #36d399; box-shadow: 0 0 8px #36d399;
  animation: hudBlink 1.4s ease-in-out infinite; }
@keyframes hudBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.scan-tag { position: absolute; bottom: 1.1rem; left: 1.1rem; right: 1.1rem; z-index: 4;
  background: rgba(0,0,0,.55); border: 1px solid var(--d-line2); border-radius: 12px;
  padding: 0.9rem 1.1rem; backdrop-filter: blur(6px); }
.scan-tag b { color: #fff; font-size: 0.9rem; display: block; font-weight: 600; }
.scan-tag span { color: var(--d-muted); font-size: 0.8rem; }
.scan-ico { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 4; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.07); color: #fff; }
.scan-ico svg { width: 24px; height: 24px; }

/* ---- Sections (light) ---- */
.section { padding: 6rem 0; }
.section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 600; margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.76rem; font-weight: 600;
  color: var(--muted); background: var(--blue-50); border: 1px solid var(--line); padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill); letter-spacing: 0.02em; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status.dev { color: var(--blue); background: var(--blue-50); border-color: var(--blue-100); }
.status.dev .dot { background: var(--blue); }
.status.soon { color: var(--muted); }

/* ColpoPen */
.colpo-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.colpo-head h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); font-weight: 600; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.step-card { background: linear-gradient(180deg, #ffffff 0%, #fafafb 100%); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.9rem; transition: border-color .25s, transform .25s, box-shadow .25s; }
.step-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.06); }
.step-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 1.2rem; }
.step-ico svg { width: 25px; height: 25px; }
.step-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-card p { color: var(--muted); font-size: 0.95rem; }

/* impact band — clinical alert: light panel, red accent */
.impact { background: linear-gradient(135deg, #fdf3f1 0%, #f7f8fa 100%);
  border: 1px solid #f1ddd8; border-left: 3px solid #c0453a; border-radius: var(--radius-lg); padding: 2.6rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.8rem; align-items: center; margin-top: 3rem; }
.impact p { color: var(--ink); font-size: 1.2rem; max-width: 62ch; font-weight: 400; line-height: 1.5; }
.impact p b { color: #b23a2f; font-weight: 600; }

/* MCIR roadmap slider */
.road-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.slider-controls { display: flex; gap: 0.5rem; flex-shrink: 0; }
.slider-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s; }
.slider-btn:hover { border-color: var(--blue); color: var(--blue); }
.slider-btn:active { transform: scale(0.94); }
.slider-btn svg { width: 20px; height: 20px; }
.road { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; -ms-overflow-style: none; scrollbar-width: none; }
.road::-webkit-scrollbar { display: none; }
.road-card { flex: 0 0 calc(33.333% - 0.8rem); min-width: 240px; scroll-snap-align: start;
  background: linear-gradient(180deg, #ffffff 0%, #fafafb 100%); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.7rem;
  position: relative; transition: border-color .25s; }
.road-card:hover { border-color: var(--line-2); }
.road-card.first { border-color: var(--blue); }
.road-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 1rem; }
.road-ico svg { width: 22px; height: 22px; }
.road-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.35rem; }
.road-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.9rem; }
.mcir-note { text-align: center; color: var(--muted); margin-top: 2.2rem; font-size: 1.05rem; }
.mcir-note b { color: var(--ink); font-weight: 600; }

/* clinic strip */
.clinic-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eaf2fd 100%); border: 1px solid #d6e5f9;
  border-radius: var(--radius-lg); padding: 1.8rem 2rem; box-shadow: 0 16px 40px rgba(0,74,173,.12); }
.clinic-strip .cs-ico { width: 50px; height: 50px; border-radius: 12px;
  background: #005eb8; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,74,173,.3); }
.clinic-strip .cs-ico svg { width: 26px; height: 26px; }
.clinic-strip h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.25rem; }
.clinic-strip p { color: var(--muted); font-size: 0.95rem; }

/* Clinic feature (GP photo) */
.clinic-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.clinic-feature-img img { display: block; width: 100%; border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,.12); border: 1px solid var(--line); }
.clinic-feature-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: 0.4rem 0 0.7rem; }
.clinic-feature-body p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.6rem; max-width: 44ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.contact-form input, .contact-form textarea {
  width: 100%; background: #fff; border: 1px solid var(--line-2); color: var(--ink);
  padding: 0.9rem 1rem; border-radius: 10px; font-family: inherit; font-size: 0.95rem; transition: border-color .2s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,74,173,.12); }
.contact-form .btn { width: 100%; margin-top: 0.3rem; }
.form-q { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: -0.5rem; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.interest-chip { padding: 0.5rem 0.9rem; border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  color: var(--ink); font-family: inherit; font-size: 0.86rem; font-weight: 500; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s; }
.interest-chip:hover { border-color: var(--blue); color: var(--blue); }
.interest-chip.sel { background: var(--blue); color: #fff; border-color: var(--blue); }

/* footer (dark) */
.footer { background: var(--blue); border-top: 1px solid var(--d-line); color: var(--d-muted); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo-img { height: 28px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; color: var(--d-muted); }
.footer h4 { color: #fff; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer ul li, .footer ul li a { font-size: 0.86rem; color: var(--d-muted); transition: color .2s; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--d-line);
  font-size: 0.8rem; color: var(--d-muted2); }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; padding: 4rem 1.5rem 4.5rem; }
  /* On mobile, lead with the headline; the scanner follows below it. */
  .hero-copy { order: 0; }
  .hero-visual { order: 1; }
  .steps3 { grid-template-columns: 1fr; }
  .road-card { flex-basis: 46%; }
  .impact { grid-template-columns: 1fr; }
  .clinic-strip { grid-template-columns: 1fr; }
  .clinic-feature { grid-template-columns: 1fr; gap: 1.8rem; }
  .clinic-feature-img { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0.4rem; background: var(--d-surface); padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--d-line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.5rem 0; }
  .nav-links .btn { justify-content: center; }
  .nav-toggle { display: flex; }
  .section { padding: 3.8rem 0; }
  .road-card { flex-basis: 82%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .scan-line { display: none; }
  .scan-cervix { clip-path: none; }
}

/* page transitions */
body { transition: opacity .3s ease-in-out; opacity: 1; }
body.page-enter, body.page-transition { opacity: 0; }

/* ============================================================
   MEDSTAKE — DEEP-NAVY CLINICAL-AI (final, appended last → wins)
   Three tiered dark zones + tinted depth + restrained cyan accent.
   All on-dark text WCAG-AA verified (>=7.3:1).
   ============================================================ */

/* ---- Type hierarchy ---- */
h1, h2, h3 { letter-spacing: -0.04em; }

/* ===========================================================
   NAV — near-black navy, faint dot texture, glassy hairline
   =========================================================== */
.nav {
  background: var(--blue);
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: none;
}
.nav-links a:not(.btn) { color: #d4e3f9; font-weight: 500; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a.btn-light { color: var(--blue-deep); font-weight: 600; }
.nav-links a.btn-light:hover { color: var(--blue-deep); }
.nav-links .btn-dark, .nav-links .btn-primary {
  box-shadow: 0 4px 12px rgba(0,74,173,.45), inset 0 1px 0 rgba(255,255,255,.18);
}

/* ===========================================================
   HERO — rich multi-stop navy→brand gradient + cyan glow + grid
   =========================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--blue);
}
.hero-grid { position: relative; z-index: 2; }
.hero h1 {
  font-weight: 800; letter-spacing: -0.045em;
}
.hero h1 .accent { color: #fff; }
.hero .lead { color: #d2e0f6; }               /* calm, high-contrast on blue */
.hero-meta div b { color: #fff; }
.hero-meta div span { color: var(--d-muted2); letter-spacing: .01em; }
.eyebrow.on-dark { color: var(--cyan-soft); letter-spacing: .16em; }

/* ===========================================================
   DEVICE — deepest inset surface, layered blue-tinted depth
   =========================================================== */
.device {
  background: var(--blue-deep);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-dark);
}
.scan {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
}
.scan-line {
  background: linear-gradient(90deg, transparent, #aee9ee, transparent);
  box-shadow: 0 0 22px 2px rgba(56,189,248,.5);
}
.scan-ico { background: rgba(56,189,248,.10); border: 1px solid rgba(56,189,248,.20); }
.scan-tag span { color: var(--d-muted); }
.device-cam i.live, .hud-dot {
  background: var(--green-live); box-shadow: 0 0 8px var(--green-live);
}

/* ===========================================================
   BUTTONS — refined gradients, soft shadows, clear hover
   =========================================================== */
.btn { font-weight: 600; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }

/* solid light button (on dark hero) */
.btn-light {
  background: #ffffff;
  color: var(--blue-deep);
  box-shadow: 0 8px 20px rgba(2,10,28,.28), inset 0 1px 0 rgba(255,255,255,.9);
}
.btn-light:hover {
  background: #d6e6f4;
  transform: translateY(-1px); box-shadow: 0 12px 26px rgba(2,10,28,.34);
}

/* ghost button (on dark) — cyan-tinted hover for tech signal */
.btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(56,189,248,.08); color: var(--cyan-soft); border-color: rgba(125,211,252,.6); }

/* primary / dark — flat brand blue */
.btn-dark, .btn-primary {
  background: var(--blue);
  color: #fff; border: 1px solid transparent;
  box-shadow: none;
}
.btn-dark:hover, .btn-primary:hover {
  background: var(--blue-deep);
}

/* clinic button — flat brand blue */
.btn-clinic {
  background: var(--blue);
  color: #fff; border: none;
  box-shadow: none;
}
.btn-clinic:hover {
  background: var(--blue-deep);
}

/* light-section secondary ghost */
.btn-ghost-dark { color: var(--ink); border-color: var(--line-2); }
.btn-ghost-dark:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }

/* ===========================================================
   ICON TILES + LIGHT CARDS — tonal gradient, ring, soft shadow
   =========================================================== */
.step-ico, .road-ico {
  background: var(--blue-50);
  color: var(--blue);
  border: 1px solid var(--blue-200);
  box-shadow: none;
}
.step-card, .road-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step-card:hover { border-color: var(--blue-200); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.road-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.road-card.first { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-md); }

/* status chips + slider buttons */
.status { background: var(--blue-50); border-color: var(--line); color: var(--ink); }
.status.soon .dot { background: var(--blue-500); }
.slider-btn { box-shadow: var(--shadow-sm); }
.slider-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); box-shadow: var(--shadow-md); }

/* ===========================================================
   IMPACT — keep the red urgency accent; refine the (light) band
   =========================================================== */
.impact {
  background: var(--blue-50);
  border: 1px solid var(--blue-100); border-left: 4px solid var(--blue);
  box-shadow: var(--shadow-md);
}
.impact p b { color: var(--red-ink); }   /* only the emphasised text stays red */

/* ===========================================================
   FORMS — cyan-aware blue focus ring
   =========================================================== */
.contact-form { box-shadow: var(--shadow-md); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: var(--ring); }
.interest-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.interest-chip.sel {
  background: var(--blue);
  border-color: var(--blue); color: #fff;
  box-shadow: 0 4px 12px rgba(0,74,173,.25);
}

/* ===========================================================
   FOOTER — deepest navy to ground the page, faint dots
   =========================================================== */
.footer {
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,.16);
  color: var(--d-muted);
}
.footer h4 { color: #fff; letter-spacing: .01em; }
.footer-brand p, .footer ul li, .footer ul li a { color: var(--d-muted); }
.footer ul li a:hover { color: #fff; }
.footer-bottom { color: var(--d-muted2); border-top: 1px solid rgba(255,255,255,.07); }

/* ===========================================================
   Responsive + motion
   =========================================================== */
@media (max-width: 600px) {
  .nav-links { background: var(--blue); border-bottom: 1px solid rgba(255,255,255,.12); }
}
@media (prefers-reduced-motion: reduce) {
  .device-cam i.live, .hud-dot, .scan-line { animation: none !important; }
}

/* MCIR cards: live (linked) and coming-soon states */
.road-card.is-live { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.road-card.is-live:hover { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-md); }
.road-card.is-live:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.status.live { color: var(--green-live); background: rgba(0, 150, 57, 0.08); border-color: rgba(0, 150, 57, 0.25); }
.status.live .dot { background: var(--green-live); box-shadow: 0 0 0 3px rgba(0, 150, 57, 0.18); }
.road-link { display: flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-size: 0.88rem; font-weight: 600; color: var(--blue); }
.road-link svg { width: 16px; height: 16px; transition: transform .2s; }
.road-card.is-live:hover .road-link svg { transform: translate(2px, -2px); }

.road-card.is-soon { cursor: default; }

/* ===== UI refresh: MCIR as a static grid, hero live link, form labels, footer legal ===== */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.road-card, .road-card.is-live { min-width: 0; display: flex; flex-direction: column; }
.road-card .status { align-self: flex-start; }
.road-card .road-link { margin-top: auto; padding-top: 1rem; }
@media (max-width: 920px) { .road { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .road { grid-template-columns: 1fr; } }

.hero-meta-live { color: inherit; text-decoration: none; }
.hero-meta-live b { display: flex; align-items: center; gap: 0.45rem; }
.hero-meta-live:hover span { color: #fff; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); display: inline-block; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }

.footer-legal { margin-left: 0.6rem; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.hero-meta-live span { display: block; font-size: 0.82rem; color: var(--d-muted2); letter-spacing: .01em; }
@media (max-width: 600px) { .hero-meta { grid-template-columns: 1fr 1fr; } }
.nav-links a.nav-ext { display: inline-flex; align-items: center; gap: 0.25rem; }
.nav-ext svg { width: 13px; height: 13px; opacity: .7; transition: transform .2s, opacity .2s; }
.nav-ext:hover svg { opacity: 1; transform: translate(1px, -1px); }

/* ===== ColpoPen: dark stat band, interactive walkthrough ===== */
.problem { position: relative; overflow: hidden; margin-bottom: 4.5rem; padding: 3rem 3.2rem; border-radius: var(--radius-lg);
  background: var(--navy-800); color: #fff;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem 3rem; align-items: end; box-shadow: var(--shadow-lg); border: 0; }
.problem-lead { position: relative; z-index: 1; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.35; letter-spacing: -0.015em; color: var(--d-muted); font-weight: 500; }
.problem-lead b { color: #fff; font-weight: 700; }
.problem-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.problem-stats > div { border-top: 1px solid var(--d-line2); padding-top: 1rem; }
.problem-num { display: block; font-size: clamp(2.8rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums; }
.problem-unit { display: block; margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--d-muted2); }
.problem-src { position: relative; z-index: 1; grid-column: 1 / -1; font-size: 0.78rem; color: var(--d-muted2); text-decoration: underline; text-underline-offset: 2px; }
.problem-src:hover { color: #fff; }

/* walkthrough */
.flow { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; margin-top: 3rem; }
.flow-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.flow-step { position: relative; width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  padding: 1.3rem 1.4rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; cursor: pointer;
  font: inherit; color: inherit; overflow: hidden; transition: background .35s, border-color .35s, box-shadow .35s; }
.flow-step:hover { background: rgba(0,94,184,.04); }
.flow-step.is-active { background: #fff; border-color: var(--line); box-shadow: var(--shadow-md); }
.flow-step:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.flow-num { font-size: 0.95rem; font-weight: 700; color: var(--line-2); font-variant-numeric: tabular-nums; padding-top: 0.2rem; transition: color .35s; }
.flow-step.is-active .flow-num { color: var(--blue); }
.flow-body { display: flex; flex-direction: column; gap: 0.35rem; }
.flow-body b { font-size: 1.2rem; font-weight: 700; color: var(--muted); transition: color .35s; }
.flow-step.is-active .flow-body b { color: var(--ink); }
.flow-body > span { font-size: 0.95rem; color: var(--muted); line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease; }
.flow-step.is-active .flow-body > span { max-height: 6em; opacity: 1; }
.flow-body .step-tag { font-style: normal; margin-top: 0.35rem; }
.flow-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; opacity: 0; }
.flow-step.is-active .flow-bar { opacity: 1; }
.flow.is-running .flow-step.is-active .flow-bar { animation: flowbar var(--flow-dur, 5200ms) linear forwards; }
@keyframes flowbar { to { transform: scaleX(1); } }

.step-tag { display: inline-block; align-self: flex-start; font-size: 0.72rem; font-weight: 600; color: var(--muted);
  background: #f2f4f7; border: 1px solid var(--line); border-radius: 999px; padding: 0.22rem 0.65rem; }
.step-tag.now { color: var(--green-live); background: rgba(0,150,57,.08); border-color: rgba(0,150,57,.25); }

/* stage */
.flow-stage { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-dark);
  background: var(--navy-800); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.97); transition: opacity .6s ease, transform .6s ease; }
.scene.is-active { opacity: 1; transform: none; }
.stage-note { position: absolute; left: 1rem; bottom: 0.8rem; font-size: 0.68rem; letter-spacing: .04em; color: var(--d-muted2); }

.vf { position: relative; width: 78%; aspect-ratio: 4 / 3; border-radius: 14px; background: #1a1016; overflow: hidden; }
.vf-corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.75); }
.vf-corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.vf-cervix { position: absolute; left: 50%; top: 50%; width: 52%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: #d98591; box-shadow: inset 0 0 0 10px #c26f7e; }
.vf-os { position: absolute; left: 50%; top: 50%; width: 22%; height: 9%; transform: translate(-50%, -50%); border-radius: 50%; background: #5a2333; }
.vf-chip { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: #fff; background: rgba(0,0,0,.45); padding: .3rem .6rem; border-radius: 999px; }
.vf-chip i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; animation: blink 1.4s infinite; }
.vf-res { position: absolute; bottom: 14px; right: 44px; font-size: .66rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.scene-capture.is-active .vf::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; animation: flash 2.6s ease-out 1.2s infinite; }
@keyframes flash { 0% { opacity: .5; } 12%, 100% { opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }

.ring { position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); border: 2px dashed; }
.ring-a { border-color: rgba(65,182,230,.85); animation: spin 9s linear infinite; }
.ring-b { width: 72%; border-color: rgba(237,139,0,.85); animation: spin 12s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hot { position: absolute; width: 13%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; }
.hot-1 { left: 36%; top: 34%; animation: ping 2s ease-out infinite; }
.hot-2 { left: 55%; top: 52%; border-color: #ff8a80; animation: ping 2s ease-out .7s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 100% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }
.models { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .66rem; font-weight: 600; color: #fff; }
.models span { background: rgba(0,0,0,.5); padding: .3rem .55rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .35rem; }
.models i { width: 8px; height: 8px; border-radius: 50%; }
.models .ma { background: #41b6e6; }
.models .mb { background: #ed8b00; }
.models .flag { background: rgba(218,41,28,.85); margin-left: auto; }

.rpt { width: 74%; background: #fff; border-radius: 14px; padding: 1.3rem 1.4rem; box-shadow: 0 20px 50px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: .85rem; }
.rpt-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.rpt-head b { font-size: .95rem; color: var(--ink); }
.rpt-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.sk { display: block; height: 10px; width: 34%; border-radius: 6px; background: #e6eaee; animation: pulse 1.6s ease-in-out infinite; }
.sk-long { width: 50%; }
.sk-btn { height: 30px; width: 100%; border-radius: 999px; }
.rpt-foot { padding-top: .3rem; }
@keyframes pulse { 50% { opacity: .45; } }
.scene-report.is-active .rpt-row { animation: rowin .5s ease both; }
.scene-report.is-active .rpt-row:nth-child(3) { animation-delay: .12s; }
.scene-report.is-active .rpt-row:nth-child(4) { animation-delay: .24s; }
@keyframes rowin { from { opacity: 0; transform: translateY(8px); } }

.colpo-cta { margin-top: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.4rem 1.8rem; border-radius: var(--radius-md); background: var(--blue-50); border: 1px solid var(--line); }
.colpo-cta p { font-size: 1.05rem; color: var(--ink); font-weight: 500; }

@media (max-width: 920px) {
  .problem { grid-template-columns: 1fr; padding: 2.2rem; }
  .flow { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow-stage { order: -1; }
}
@media (max-width: 600px) {
  .problem { padding: 1.8rem 1.4rem; }
  .colpo-cta { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .ring, .hot, .vf-chip i, .sk, .scene-capture.is-active .vf::after, .scene-report.is-active .rpt-row { animation: none !important; }
}

/* Capture scene: phone + USB colposcope rig (no cervix — the hero already shows one) */
.rig { display: flex; align-items: center; gap: 0; width: 84%; justify-content: center; }
.cam { position: relative; width: 22%; aspect-ratio: 1 / 1.25; background: #e9eef3; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; }
.cam-lens { width: 58%; aspect-ratio: 1; border-radius: 50%; background: #11161c; box-shadow: 0 0 0 6px #c9d3dc; position: relative; }
.cam-lens::after { content: ""; position: absolute; left: 22%; top: 20%; width: 22%; height: 22%; border-radius: 50%; background: rgba(255,255,255,.55); }
.cam-label { position: absolute; top: calc(100% + 0.6rem); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .66rem; font-weight: 600; color: var(--d-muted2); letter-spacing: .04em; }
.cable { position: relative; flex: 1; height: 4px; background: #5f7fae; border-radius: 2px; min-width: 60px; }
.cable i { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 2px; background: #3ddc84; animation: frame 1.8s linear infinite; }
.cable i:nth-child(2) { animation-delay: .6s; }
.cable i:nth-child(3) { animation-delay: 1.2s; }
@keyframes frame { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.cable-label { position: absolute; top: -1.6rem; left: 50%; transform: translateX(-50%); font-size: .66rem; font-weight: 600; color: var(--d-muted2); letter-spacing: .04em; }
.phone { position: relative; width: 34%; aspect-ratio: 9 / 17; background: #0d1117; border-radius: 22px; border: 3px solid #2b3a52; padding: 22% 6%; flex-shrink: 0; display: flex; flex-direction: column; }
.phone-screen { width: 100%; aspect-ratio: 3 / 4; margin: auto 0; border-radius: 8px; background: #1a1016; position: relative; overflow: hidden; }
.phone-screen::before { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); width: 64%; border-radius: 50%; background: #d98591; opacity: .9; animation: focus 3s ease-in-out infinite; }
@keyframes focus { 0%, 100% { filter: blur(2px); } 40%, 70% { filter: blur(0); } }
.phone-target { position: absolute; inset: 14% 10%; border: 1.5px solid rgba(255,255,255,.7); border-radius: 6px; }
.phone-chip { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .3rem; font-size: .6rem; font-weight: 700; letter-spacing: .08em; color: #fff; }
.phone-chip i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; animation: blink 1.4s infinite; }
.phone-res { position: absolute; bottom: 9%; left: 0; right: 0; text-align: center; font-size: .56rem; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.phone-btn { position: absolute; bottom: 3%; left: 50%; transform: translateX(-50%); width: 26%; height: 4px; border-radius: 2px; background: #2b3a52; }
@media (prefers-reduced-motion: reduce) { .cable i, .phone-screen::before, .phone-chip i { animation: none !important; } .cable i { left: 45%; } }

/* ===== ColpoPen polish: timeline steps, crisp stage, lighter CTA ===== */
.problem { box-shadow: 0 1px 2px rgba(0,20,60,.12), 0 12px 32px -12px rgba(0,20,60,.35); }
.problem-eyebrow { position: relative; z-index: 1; grid-column: 1 / -1; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--d-muted2); }
.problem-src { text-decoration: none; opacity: .85; }
.problem-src:hover { text-decoration: underline; opacity: 1; }

/* timeline */
.flow-steps { gap: 0; }
.flow-step, .flow-step.is-active { background: transparent; border: 0; box-shadow: none; border-radius: 0;
  padding: 1.25rem 0 1.25rem 1.6rem; }
.flow-step:hover { background: transparent; }
.flow-step:hover .flow-body b { color: var(--ink); }
.flow-step::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.flow-bar { left: 0; top: 0; bottom: auto; width: 2px; height: 100%; transform: scaleY(0); transform-origin: top; }
.flow.is-running .flow-step.is-active .flow-bar { animation: flowrail var(--flow-dur, 5200ms) linear forwards; }
.flow:not(.is-running) .flow-step.is-active .flow-bar { transform: scaleY(1); }
@keyframes flowrail { to { transform: scaleY(1); } }
.flow-num { font-size: .8rem; letter-spacing: .04em; }
.flow-body b { font-size: 1.3rem; letter-spacing: -0.01em; }
.flow-body > span { font-size: 1rem; max-width: 40ch; }

/* stage */
.flow-stage { aspect-ratio: 4 / 3; box-shadow: 0 1px 2px rgba(0,20,60,.12), 0 18px 40px -16px rgba(0,20,60,.45); outline: 1px solid rgba(255,255,255,.06); outline-offset: -1px; }
.scene { transform: translateY(10px); transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); }
.scene.is-active { transform: none; }
.stage-note { left: 1.1rem; bottom: .9rem; opacity: .8; }

/* CTA: no box */
.colpo-cta { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 1.8rem 0 0; margin-top: 3.5rem; }
.colpo-cta p { font-size: 1.1rem; }

@media (max-width: 920px) { .flow-step, .flow-step.is-active { padding-left: 1.2rem; } }
