/* ==========================================================
   Health1st — design tokens
   ========================================================== */
:root {
  --bg: #05070D;
  --surface: #0B1020;
  --surface-2: #10172B;
  --line: rgba(232, 238, 247, 0.09);
  --line-strong: rgba(232, 238, 247, 0.18);
  --text: #E8EEF7;
  --muted: #8A94A7;
  --cyan: #4FF3D2;
  --violet: #7C6CFF;
  --coral: #FF5C7A;
  --ink: #04110E; /* text on cyan */

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --reveal-distance: 1.75rem;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  color-scheme: dark;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--cyan); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 880px; }
main, .footer { position: relative; z-index: 2; }
section[id] { scroll-margin-top: 80px; }

/* ==========================================================
   Background world
   ========================================================== */
#world {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.world-fallback { display: none; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
html.no-webgl #world { display: none; }
html.no-webgl .world-fallback { display: block; }
.world-fallback span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.world-fallback span:nth-child(1) { width: 46vmax; height: 46vmax; right: -8vmax; top: 4vh; background: radial-gradient(circle, rgba(79,243,210,.55), transparent 65%); }
.world-fallback span:nth-child(2) { width: 38vmax; height: 38vmax; right: 14vmax; top: 30vh; background: radial-gradient(circle, rgba(124,108,255,.5), transparent 65%); animation-duration: 24s; }
.world-fallback span:nth-child(3) { width: 18vmax; height: 18vmax; right: 6vmax; top: 48vh; background: radial-gradient(circle, rgba(255,92,122,.35), transparent 65%); animation-duration: 30s; }
@keyframes drift { to { transform: translate3d(-6vmax, 6vh, 0) scale(1.08); } }

.grain {
  position: fixed; inset: -50%; z-index: 3; pointer-events: none; opacity: .065;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 220px 220px;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ==========================================================
   Cursor (fine pointers only)
   ========================================================== */
.cursor-dot, .cursor-ring { display: none; }
html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor [role="tab"], html.has-cursor select { cursor: none; }
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring {
  display: block; position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transition: opacity .25s, width .25s, height .25s;
}
.cursor-ring {
  width: 34px; height: 34px; border-radius: 999px;
  border: 1.5px solid rgba(79, 243, 210, .75);
  transition: width .45s var(--ease), height .45s var(--ease), background-color .3s, border-color .3s, opacity .3s;
}
.cursor-ring.is-hover { width: 62px; height: 62px; background: rgba(79, 243, 210, .08); border-color: var(--cyan); }
/* Over the cyan call-to-action buttons: a see-through ring that inverts against whatever is under it,
   so the button's own label stays readable. */
.cursor-ring.is-cta { width: 56px; height: 56px; background: rgba(255,255,255,.1); border-color: #fff; mix-blend-mode: difference; }
.cursor-ring.is-text { width: 3px; height: 30px; border-radius: 2px; background: var(--cyan); border-color: transparent; }
.cursor-ring.is-down { width: 24px; height: 24px; }
.cursor-ring.is-cta.is-down { width: 44px; height: 44px; }
.cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
.cursor-dot.is-text { opacity: 0; }
.cursor-dot.is-cta { background: #fff; box-shadow: none; mix-blend-mode: difference; }

/* ==========================================================
   Reveals (talisman-style rise + fade, word-split headlines)
   ========================================================== */
html.js [data-reveal], html.js [data-reveal-group] > * {
  opacity: 0; transform: translate3d(0, var(--reveal-distance), 0);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
html.js [data-reveal].is-in, html.js [data-reveal-group] > .is-in { opacity: 1; transform: none; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .wi { display: inline-block; }
html.js [data-split] .wi { transform: translate3d(0, 108%, 0); transition: transform 1.1s var(--ease) calc(var(--i, 0) * 55ms + var(--d, 0s)); }
html.js [data-split].is-in .wi { transform: none; }

/* ==========================================================
   Type
   ========================================================== */
.display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 8.4vw, 8.2rem); line-height: .95; letter-spacing: -.045em;
  max-width: 11ch;
}
.display em, .h2 em { color: var(--cyan); }
.display em .wi, .h2 em .wi {
  background: linear-gradient(100deg, var(--cyan) 10%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em;
}
.h2.big { font-size: clamp(2.6rem, 7vw, 6.4rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #C3CBD9; max-width: 34rem; }
.body { color: #AEB7C7; font-size: 1.05rem; max-width: 34rem; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .8rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.kicker { color: var(--muted); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(79,243,210,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(79,243,210,0); } 100% { box-shadow: 0 0 0 0 rgba(79,243,210,0); } }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--font-display); letter-spacing: -.005em; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s, border-color .3s, box-shadow .4s, color .3s;
  will-change: transform; cursor: pointer;
}
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cyan); color: var(--ink); box-shadow: 0 0 0 0 rgba(79,243,210,0), 0 10px 30px -10px rgba(79,243,210,.55); }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(79,243,210,.12), 0 14px 40px -8px rgba(79,243,210,.7); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255,255,255,.02); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================
   Nav
   ========================================================== */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  width: min(calc(100% - 24px), 1180px); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(8, 11, 20, .62); border-color: var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.2rem/1 var(--font-display); letter-spacing: -.03em; color: var(--text); }
.brand-logo { display: block; height: 72px; width: auto; }
.footer-row .brand-logo { height: 110px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: #B9C2D2; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 140px;
}
.hero::before { /* keeps copy legible over particles */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 18% 50%, rgba(5,7,13,.8), rgba(5,7,13,0) 70%);
}
.hero-inner { display: flex; flex-direction: column; gap: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  padding: 7px 13px; border-radius: 999px; font-size: .82rem; color: #B9C2D2;
  border: 1px solid var(--line); background: rgba(11,16,32,.5); backdrop-filter: blur(6px);
}
.ecg { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 90px; pointer-events: none; }
.ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ecg-base { stroke: rgba(79,243,210,.1); stroke-width: 1; }
.ecg-glow {
  stroke: var(--cyan); stroke-width: 2; filter: drop-shadow(0 0 6px var(--cyan));
  stroke-dasharray: 140 1000; stroke-dashoffset: 1140; animation: ecg 4.2s linear infinite;
}
@keyframes ecg { to { stroke-dashoffset: 0; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 500 .7rem/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--cyan), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ==========================================================
   Sections
   ========================================================== */
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 900px; }
.section-head.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .body { margin: 0 auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 70vh; }
.split-copy { display: flex; flex-direction: column; gap: 22px; position: relative; }
.split-right .split-copy { grid-column: 2; }
.split-left .split-copy { grid-column: 1; }
.split-copy::before {
  content: ""; position: absolute; inset: -12% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5,7,13,.78), rgba(5,7,13,0));
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.stat {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(11,16,32,.55); backdrop-filter: blur(10px);
}
.stat b { font: 600 clamp(1.7rem, 3vw, 2.4rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--text); }
.stat > span { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.stat sup { font-size: .65em; color: var(--cyan); }
.note { font-size: .88rem; color: var(--muted); border-left: 2px solid var(--cyan); padding-left: 14px; max-width: 32rem; }

/* How it works */
.how-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.how-sticky { position: sticky; top: 22vh; display: flex; flex-direction: column; gap: 22px; }
.how-progress { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.how-num { font: 600 4.6rem/1 var(--font-display); letter-spacing: -.05em; color: var(--cyan); min-width: 2.2ch; font-variant-numeric: tabular-nums; }
.how-rail { position: relative; flex: 1; max-width: 220px; height: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.how-rail i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cyan), var(--violet)); transform-origin: left; transform: scaleX(.25); transition: transform .8s var(--ease); }
.steps { display: flex; flex-direction: column; gap: 22vh; padding: 10vh 0 22vh; }
.step {
  position: relative; padding: 34px 32px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(11,16,32,.55); backdrop-filter: blur(14px);
  opacity: .32; transform: scale(.97); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .7s;
}
.step.is-active { opacity: 1; transform: none; border-color: rgba(79,243,210,.35); box-shadow: 0 30px 80px -40px rgba(79,243,210,.35); }
.step-n { font: 500 .8rem/1 var(--font-display); letter-spacing: .14em; color: var(--cyan); }
.step h3 { font: 600 clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--font-display); letter-spacing: -.03em; margin: 14px 0 12px; }
.step p { color: #AEB7C7; }

/* Platform */
.platform-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 24px; align-items: stretch; }
.platform-grid > *, .how-grid > *, .split > * { min-width: 0; }
.tabs-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11,16,32,.6); backdrop-filter: blur(14px); padding: 10px; }
.tabs { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.03); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; z-index: 1; flex: 1 0 auto; padding: 11px 16px; border: 0; background: none; border-radius: 12px;
  font: 500 .92rem/1 var(--font-display); color: var(--muted); transition: color .3s; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--ink); }
.tab-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 12px; background: var(--cyan); transition: transform .5s var(--ease), width .5s var(--ease); }
.panel { padding: 22px 18px 14px; animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.feat { display: flex; flex-direction: column; }
.feat li { padding: 16px 0 16px 30px; position: relative; border-bottom: 1px solid var(--line); color: #AEB7C7; }
.feat li:last-child { border-bottom: 0; }
.feat li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--cyan); transform: rotate(45deg); }
.feat b { color: var(--text); font-weight: 600; }

.glow-card { position: relative; border-radius: var(--radius); background: rgba(11,16,32,.72); backdrop-filter: blur(14px); isolation: isolate; }
.glow-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), rgba(79,243,210,.7), rgba(124,108,255,.5), rgba(255,255,255,.06) 30%, rgba(255,255,255,.06) 70%, rgba(79,243,210,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 8s linear infinite;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }

.dial-card { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.dial-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { font: 500 .72rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); padding: 7px 10px; border-radius: 999px; background: rgba(79,243,210,.08); border: 1px solid rgba(79,243,210,.2); }
.dial { position: relative; width: min(220px, 70%); margin: 0 auto; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 10; }
.dial-track { stroke: rgba(255,255,255,.06); }
.dial-arc { stroke: var(--coral); stroke-linecap: round; filter: drop-shadow(0 0 8px currentColor); }
.dial-read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dial-val { font: 600 2.6rem/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dial-read span { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.goals { display: flex; flex-direction: column; gap: 8px; }
.goals li {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--line); font-size: .9rem; color: var(--muted); transition: color .4s, border-color .4s, background-color .4s;
}
.goals li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-strong);
  transition: background-color .35s, border-color .35s;
}
.goals li.done { color: var(--text); border-color: rgba(79,243,210,.3); background: rgba(79,243,210,.05); }
.goals li.done::before { background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%2304110E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border-color: var(--cyan); }

/* Settings cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(11,16,32,.58); backdrop-filter: blur(12px);
  transition: border-color .4s, transform .6s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(79,243,210,.13), transparent 60%);
}
.card:hover { border-color: rgba(79,243,210,.35); transform: translateY(-4px); }
.card:hover::after { opacity: 1; }
.card svg { width: 34px; height: 34px; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.card h3 { font: 600 1.3rem/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Voices marquee */
.voices .section-head { margin-bottom: 48px; }
.marquee { position: relative; overflow: hidden; padding: 8px 0; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 36s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee blockquote {
  width: clamp(280px, 30vw, 420px); padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(11,16,32,.6); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
}
.marquee blockquote p { font: 500 1.2rem/1.4 var(--font-display); letter-spacing: -.015em; }
.marquee cite { font-style: normal; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.words { gap: 48px; padding: 28px 0; }
.words span { font: 500 clamp(1.6rem, 3.4vw, 3rem)/1 var(--font-display); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(232,238,247,.28); white-space: nowrap; }
.words span:nth-child(3n+1) { -webkit-text-stroke-color: rgba(79,243,210,.55); }

/* Demo */

.form { padding: 22px; }
.demo-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.form-body { display: flex; flex-direction: column; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: .82rem; color: var(--muted); }
.field i { font-style: normal; opacity: .7; }
.field .req { color: var(--coral); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(5,7,13,.6); color: var(--text); font-size: .95rem; resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238A94A7' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
.field select option { background: var(--surface); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(79,243,210,.12); }
.field.invalid input, .field.invalid select { border-color: var(--coral); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; font-size: .88rem; color: var(--coral); }
.form-status a { text-decoration: underline; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.form-done { height: 100%; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.form-done svg { width: 64px; height: 64px; fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-done circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .9s var(--ease) forwards; }
.form-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-done h3 { font: 600 1.8rem/1.1 var(--font-display); letter-spacing: -.03em; }
.form-done p { color: var(--muted); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0; font: 500 clamp(1.1rem, 2vw, 1.4rem)/1.3 var(--font-display); letter-spacing: -.02em; cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 1.5px 12px no-repeat;
  transition: transform .5s var(--ease), background-size .3s;
}
.faq-list details[open] summary::after { transform: rotate(180deg); background-size: 12px 1.5px, 1.5px 0; }
.faq-list details p { color: #AEB7C7; padding: 0 56px 26px 0; max-width: 46rem; animation: panelIn .5s var(--ease); }

/* Footer */
.footer { padding: clamp(80px, 12vw, 140px) 0 0; overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(rgba(5,7,13,0), rgba(5,7,13,.9) 40%); }
.footer-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 72px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .92rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.linkedin-btn svg { flex: none; }
.linkedin-btn:hover { border-color: #0A66C2; color: var(--text); }
.fine { font-size: .78rem; color: #6B7488; margin-top: 18px; max-width: 60rem; }
.fine.sources sup { color: var(--cyan); }
.wordmark {
  font: 700 clamp(4rem, 21vw, 22rem)/.8 var(--font-display); letter-spacing: -.07em; text-align: center;
  margin-top: 48px; transform: translateY(14%);
  background: linear-gradient(180deg, rgba(79,243,210,.22), rgba(124,108,255,.04) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; white-space: nowrap;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .platform-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-right .split-copy, .split-left .split-copy { grid-column: 1; }
  .split-copy::before { inset: -8% 0; }
  .how-grid { grid-template-columns: 1fr; }
  .how-sticky { position: relative; top: 0; }
  .how-progress { display: none; }
  .steps { gap: 16px; padding: 12px 0 0; }
  .step { opacity: 1; transform: none; }
  .hero::before { background: radial-gradient(90% 70% at 50% 45%, rgba(5,7,13,.75), rgba(5,7,13,.15) 75%); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { flex-direction: row; align-items: center; gap: 16px; }
  .stat b { min-width: 4.4ch; }
  .cards { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .hero { padding-bottom: 150px; }
  .ecg { bottom: 80px; height: 60px; }
  .faq-list details p { padding-right: 0; }
  .footer-cta .btn { width: 100%; }
  .nav { padding-left: 14px; }
  .brand-logo { height: 54px; }
  .footer-row .brand-logo { height: 80px; }
}

/* ==========================================================
   Reduced motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; scroll-behavior: auto !important; }
  html.js [data-reveal], html.js [data-reveal-group] > *, html.js [data-split] .wi { transform: none !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track > :nth-child(n+5) { display: none; }
  .grain { animation: none; }
}

/* ==========================================================
   Book a demo page
   ========================================================== */
.book-page main { position: relative; z-index: 1; padding-top: clamp(150px, 18vw, 200px); }
.book-page .section-head { margin-bottom: 40px; }
.book-page .form { max-width: 640px; margin: 0 auto; padding: clamp(22px, 4vw, 34px); }
.book-page .form-done { min-height: 360px; }
.book-page .nav .brand-logo { height: 60px; }
.book-fine { text-align: center; margin: 22px auto 0; }
.field input[type="date"] { color-scheme: dark; }
@media (max-width: 640px) {
  .book-page .nav .brand-logo { height: 46px; }
}

/* Searchable timezone box on the booking page */
.tz { position: relative; }
.tz-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 6px 0 0; padding: 6px;
  max-height: 260px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7);
}
.tz-list li { padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: .9rem; cursor: pointer; }
.tz-list li[aria-selected="true"] { background: rgba(79,243,210,.12); color: var(--cyan); }
.tz-list li:hover { background: rgba(255,255,255,.05); }
.tz-list .tz-empty { color: var(--muted); cursor: default; }

/* Audience cues: patient pointer in the hero, organisations section */
.patient-note { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.patient-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.patient-note a:hover { color: var(--cyan); }
.panel .note { margin-top: 16px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.org-note { margin-top: 28px; }
@media (max-width: 1020px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-4 { grid-template-columns: 1fr; } }
