/* 24/7 GP: shared styles. Tokens from _work/design-plan.md */
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('../fonts/onest.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader Fallback'; src: local('Georgia'); size-adjust: 95%; ascent-override: 77.4%; descent-override: 27.9%; line-gap-override: 0%; }
@font-face { font-family: 'Onest Fallback'; src: local('Arial'); size-adjust: 106.1%; ascent-override: 91.4%; descent-override: 28.7%; line-gap-override: 0%; }

:root {
  --night: #0C1A2B;
  --night-2: #13263D;
  --pulse: #D9141E;
  --pulse-hi: #FF3B44;
  --clinic: #F3F6F8;
  --paper: #FFFFFF;
  --slate: #4A5866;
  --ink: #12202F;
  --mist: #B4C2CF;
  --line: #DCE3E9;
  --app: #3E9FD9;      /* the app's own blue, for its bars */
  --app-ink: #1D6CA3;  /* darker app blue for text and white-on-blue buttons */
  --dawn: #F2A981;
  --r: 3px;          /* surfaces: 6 letters, 6 mod 5 = 1 (slight) */
  --rb: 0px;         /* buttons: 6 mod 3 = 0 (square) */
  --head-h: 96px;
  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 56px);
  --serif: 'Newsreader', 'Newsreader Fallback', Georgia, serif;
  --sans: 'Onest', 'Onest Fallback', Arial, sans-serif;
  --media-cap: min(76vh, 760px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (max-width: 760px) { :root { --head-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding-top: var(--head-h);
  font: 400 1.0625rem/1.65 var(--sans); color: var(--slate); background: var(--clinic);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pulse); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--paper); padding: 10px 16px; color: var(--ink); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sec { padding-block: clamp(72px, 10vw, 140px); position: relative; }

/* type */
.h2 { font: 500 clamp(2rem, 3.5vw, 3.6rem)/1.08 var(--serif); letter-spacing: -.012em; display: flow-root; }
.h2 em, .hero-title em { font-style: italic; color: var(--pulse); font-weight: 450; }
.lede { font-size: 1.18rem; line-height: 1.6; color: var(--slate); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); display: grid; gap: 18px; }

/* split line masks: padded so descenders and italic tails never clip */
.split-line { overflow: clip; padding: .2em .15em .5em; margin: -.2em -.15em -.5em; }
/* masks sit in a flex column once split, so their negative margins never collapse and the heading keeps its height */
.is-split { display: flex !important; flex-direction: column; }

/* buttons: square (button pick 0) */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: var(--rb);
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 600 1rem/1 var(--sans); letter-spacing: .01em; border: 2px solid transparent;
  transition: background-color .3s, color .3s, border-color .3s; position: relative; will-change: transform;
}
.btn-red { --bg: var(--pulse); }
.btn-red:hover { --bg: #B80F18; }
.btn-glass { --bg: rgba(12, 26, 43, .46); border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { --bg: rgba(12, 26, 43, .72); border-color: #fff; }
.btn-line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn-line:hover { --bg: var(--ink); --fg: #fff; }
.btn-line-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-line-light:hover { --bg: #fff; --fg: var(--night); }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--head-h);
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-head.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -18px rgba(12, 26, 43, .35); }
.head-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { height: 70px; width: auto; transition: height .35s var(--ease); }
.site-head.is-scrolled .brand img { height: 56px; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 6px; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; background: none; border: 0; cursor: pointer; position: relative;
}
.nav-link::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; background: var(--pulse); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current]::after, .nav-link.is-current::after, .drop-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.chev { width: 12px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s; }
.drop-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 380px; margin-left: -190px;
  background: var(--paper); border-radius: var(--r); box-shadow: 0 30px 60px -20px rgba(12, 26, 43, .35), 0 0 0 1px var(--line);
  padding: 10px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.drop::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-drop.is-open .drop { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
.drop-item { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); text-decoration: none; color: var(--ink); white-space: nowrap; }
.drop-item:hover, .drop-item:focus-visible, .drop-item[aria-current] { background: var(--clinic); }
.drop-item img { width: 56px; height: 64px; object-fit: cover; border-radius: var(--r); }
.drop-item strong { display: block; font-weight: 600; }
.drop-item small { display: block; font-size: .92rem; color: var(--slate); }
.head-cta { flex: none; min-height: 50px; padding: 0 22px; }
.burger { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; background: var(--ink); color: #fff; border: 0; border-radius: var(--rb); cursor: pointer; font-weight: 600; }
.burger-lines { width: 20px; height: 12px; position: relative; }
.burger-lines i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.burger-lines i:first-child { top: 0; } .burger-lines i:last-child { top: 10px; }
.burger[aria-expanded="true"] .burger-lines i:first-child { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines i:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: var(--head-h) 0 0; z-index: 99; background: var(--night); color: #fff; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mm-inner { padding: 28px var(--gut) 40px; display: grid; gap: 28px; }
.mm-list { display: grid; }
.mm-link, .mm-sub a { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 60px; color: #fff; text-decoration: none; font: 500 1.7rem/1.1 var(--serif); background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); text-align: left; cursor: pointer; padding: 0; }
.mm-sub { padding-left: 16px; }
.mm-sub a { font: 500 1.15rem/1.2 var(--sans); min-height: 52px; color: var(--mist); }
.mm-sub-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mm-cta { width: 100%; }
.mm-note { color: var(--mist); font-size: .95rem; }

@media (max-width: 1080px) {
  .main-nav, .head-cta { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 760px) {
  .brand img { height: 56px; }
  .site-head.is-scrolled .brand img { height: 50px; }
}

/* ---------- phone (shared device) ---------- */
.phone {
  --pw: 290px;
  width: var(--pw); aspect-ratio: 9 / 18.6; position: relative;
  padding: calc(var(--pw) * .035); border-radius: calc(var(--pw) * .15);
  background: linear-gradient(145deg, #2B3542, #0A1119 60%, #1F2A36);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 40px 80px -24px rgba(0, 0, 0, .65), 0 18px 30px -18px rgba(0, 0, 0, .5);
  transform-style: preserve-3d;
}
.phone::before { content: ''; position: absolute; top: calc(var(--pw) * .06); left: 50%; width: 30%; height: calc(var(--pw) * .075); margin-left: -15%; border-radius: 40px; background: #05090E; z-index: 3; }
.phone-screen { text-align: left; height: 100%; border-radius: calc(var(--pw) * .118); overflow: hidden; background: #F5F8FB; position: relative; display: flex; flex-direction: column; font-size: max(14px, calc(var(--pw) * .048)); line-height: 1.35; color: #24323F; }
.app-status { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--pw) * .06) calc(var(--pw) * .09) calc(var(--pw) * .025); font-weight: 600; font-size: 1.02em; color: #12202F; font-variant-numeric: tabular-nums; }
.app-icons { display: flex; gap: 4px; align-items: flex-end; }
.app-icons i { display: block; width: 4px; background: #12202F; border-radius: 1px; }
.app-icons i:nth-child(1) { height: 6px; } .app-icons i:nth-child(2) { height: 9px; } .app-icons i:nth-child(3) { height: 12px; }
.app-bar { display: flex; background: var(--app); color: rgba(255, 255, 255, .8); }
.app-tab { flex: 1; display: grid; place-items: center; padding: .55em .2em; }
.app-tab svg { width: 1.45em; height: 1.45em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.app-tab.is-on { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 -3px 0 #fff; }
.chat { flex: 1; display: flex; flex-direction: column; gap: .7em; padding: 1em .9em; justify-content: flex-end; overflow: hidden; }
.msg { max-width: 88%; padding: .6em .8em; border-radius: 1em; position: relative; }
.msg time { display: block; font-size: .78em; opacity: .7; margin-top: .25em; font-variant-numeric: tabular-nums; }
.msg-me { align-self: flex-end; background: var(--app-ink); color: #fff; border-bottom-right-radius: .25em; }
.msg-file { align-self: flex-end; display: flex; align-items: center; gap: .5em; background: #fff; border: 1px solid #D6E3EE; color: #24323F; font-weight: 600; }
.msg-file svg { width: 1.4em; height: 1.4em; fill: none; stroke: var(--app-ink); stroke-width: 1.8; }
.msg-sys { align-self: center; display: flex; gap: .55em; align-items: center; color: #3F5063; background: #E6EEF5; border-radius: 2em; padding: .45em .9em; max-width: none; }
.msg-gp { align-self: flex-start; background: #fff; border: 1px solid #DCE6EE; border-bottom-left-radius: .25em; padding-left: 3.2em; }
.msg-gp img { position: absolute; left: .6em; top: .65em; width: 2em; height: 2em; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--app); animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
.app-compose { margin: 0 .9em 1.1em; display: flex; align-items: center; justify-content: space-between; padding: .6em .9em; background: #fff; border: 1px solid #D6E3EE; border-radius: 2em; color: #5D6E7E; }
.app-compose i { width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--app-ink); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(560px, calc(100svh - var(--head-h))); display: grid; grid-template-rows: 1fr auto; color: #fff; overflow: clip; background: var(--night); isolation: isolate; }
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-photos { position: absolute; left: 0; right: 0; top: 0; height: 104%; will-change: transform; }
.hp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; opacity: 0; }
.hp-dusk { opacity: 1; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; }
.hero-scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(7, 15, 30, .66) 0%, rgba(7, 15, 30, .42) 38%, rgba(7, 15, 30, 0) 66%),
              linear-gradient(180deg, rgba(7, 15, 30, .45) 0%, rgba(7, 15, 30, 0) 45%, rgba(7, 15, 30, 0) 75%, rgba(7, 15, 30, .5) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 5vw, 80px); padding-block: clamp(28px, 5vh, 64px) clamp(20px, 3vh, 40px); }
.hero-copy { display: grid; gap: clamp(18px, 2.6vh, 28px); align-content: center; }
.hero-title { font: 500 clamp(2.9rem, 5.6vw, 5.9rem)/1.02 var(--serif); letter-spacing: -.02em; color: #fff; display: flow-root; text-shadow: 0 2px 30px rgba(5, 12, 24, .35); }
.hero-title em { color: #FFB4B4; }
.hero-lede { font-size: clamp(1.08rem, 1.3vw, 1.22rem); color: #E6EDF4; line-height: 1.6; text-shadow: 0 1px 14px rgba(5, 12, 24, .5); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-phone-wrap { display: grid; justify-items: center; gap: 12px; perspective: 1200px; }
.hero-phone-wrap .phone { --pw: clamp(220px, min(20vw, calc((100svh - var(--head-h) - 220px) * .49)), 300px); }
.phone-cap { font-size: .9rem; color: #E6EDF4; background: rgba(7, 15, 30, .72); padding: 4px 12px; border-radius: var(--r); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-foot { border-top: 1px solid rgba(255, 255, 255, .16); background: linear-gradient(0deg, rgba(6, 12, 22, .72), rgba(6, 12, 22, .35)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.hero-clock { display: flex; align-items: baseline; gap: 14px; }
.hc-time { font: 600 1.6rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: #fff; }
.hc-label { color: #D4DEE8; display: inline-flex; align-items: center; gap: 8px; }
.hc-label::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #3BD67A; box-shadow: 0 0 0 0 rgba(59, 214, 122, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(59, 214, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 214, 122, 0); } }
.hero-services { display: flex; gap: 6px; }
.hero-services a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: #fff; text-decoration: none; font-weight: 500; border-left: 1px solid rgba(255, 255, 255, .2); }
.hero-services a:hover { color: #FFB4B4; }

@media (max-width: 960px) {
  .hero { min-height: calc(100svh - var(--head-h)); }
  .hero-grid { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-phone-wrap .phone { --pw: 230px; }
  .hero-photos { height: 100%; }
  .hp { object-position: 72% 100%; }
  .hero-scene::after { background: linear-gradient(180deg, rgba(7, 15, 30, .72) 0%, rgba(7, 15, 30, .5) 50%, rgba(7, 15, 30, .05) 80%, rgba(7, 15, 30, .45) 100%); }
  .hero-phone-wrap { display: none; }
  .hero-services { display: none; }
}
@media (max-width: 760px) {
  .hero-title { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- ecg lines ---------- */
.ecg { display: block; fill: none; stroke: var(--pulse); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; overflow: visible; }

/* ---------- services cards ---------- */
.services { background: var(--clinic); padding-block: clamp(56px, 6vw, 84px); }
.services .sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); min-width: 0; background: var(--paper); border-radius: var(--r); text-decoration: none; color: inherit; overflow: clip; box-shadow: 0 1px 0 var(--line), 0 24px 50px -36px rgba(12, 26, 43, .45); transform-style: preserve-3d; }
.card-media { aspect-ratio: 16 / 10; overflow: clip; position: relative; }
.card-media img { position: absolute; left: 0; top: 0; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.card-body { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; position: relative; }
.card-title { font: 500 1.75rem/1.15 var(--serif); }
.card-more { font-weight: 600; color: var(--pulse); margin-top: 6px; }
.card-ecg { width: 100%; height: 20px; margin-top: 2px; }
.card-ecg path { stroke-dasharray: 1 0; }
.card:hover .card-title { color: var(--pulse); }
@media (max-width: 960px) { .cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } .card-media { aspect-ratio: 16 / 10; } }

/* ---------- waiting ---------- */
.waiting { background: var(--paper); overflow: clip; }
.waiting-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.waiting-copy { display: grid; gap: 24px; }
.ticks { display: grid; gap: 14px; margin-top: 8px; }
.ticks li { display: flex; align-items: center; gap: 16px; font-weight: 600; color: var(--ink); font-size: 1.08rem; }
.tick-ecg { width: 60px; height: 22px; flex: none; }
.frame { position: relative; border-radius: var(--r); overflow: clip; }
.waiting-media { aspect-ratio: 16 / 11; max-height: var(--media-cap); }
.waiting-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.waiting-media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--pulse); transform-origin: left; transform: scaleX(var(--bar, 1)); }
@media (max-width: 960px) { .waiting-grid { grid-template-columns: 1fr; } }

/* ---------- how (pinned) ---------- */
.how { background: linear-gradient(180deg, var(--clinic), #E7EEF3); position: relative; }
.how-stage { min-height: 100svh; display: flex; align-items: center; padding-block: 40px; position: relative; overflow: clip; }
.how-bg { position: absolute; left: 0; right: 0; top: 50%; height: 90px; margin-top: -20px; pointer-events: none; }
.how-ecg { width: 100%; height: 100%; stroke-width: 2; opacity: .3; }
.how-grid { position: relative; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.how-head { display: grid; gap: 28px; align-self: stretch; align-content: center; position: relative; }
.how-rail { height: 180px; width: 40px; }
.how-rail svg { width: 40px; height: 100%; display: block; }
.rail-bg, .rail-fg { fill: none; stroke-width: 3; }
.rail-bg { stroke: var(--line); }
.rail-fg { stroke: var(--pulse); }
.how-phone-wrap .phone { --pw: clamp(230px, calc((100svh - var(--head-h) - 120px) * .49), 300px); }
.how-screens { flex: 1; position: relative; }
.hs { position: absolute; inset: 0; padding: 1.2em 1em; display: flex; flex-direction: column; gap: .8em; }
.hs-title { font-weight: 700; font-size: 1.2em; color: #12202F; }
.hs-sub { color: #3F5063; }
.hs-input { min-height: 5.4em; background: #fff; border: 2px solid var(--app); border-radius: .6em; padding: .8em; color: #24323F; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--app-ink); vertical-align: -.2em; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hs-attach { display: flex; gap: .5em; align-items: center; color: var(--app-ink); font-weight: 600; }
.hs-attach svg { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hs-send { margin-top: auto; background: var(--app-ink); color: #fff; text-align: center; font-weight: 700; padding: .8em; border-radius: .5em; }
.hs[data-hs="match"] { align-items: stretch; justify-content: center; text-align: center; }
.match-pulse { height: 5em; display: grid; place-items: center; }
.match-ecg { width: 100%; height: 3.4em; stroke-width: 2.6; }
.match-list { display: grid; gap: .5em; margin-top: .4em; }
.match-list li { background: #fff; border: 1px solid #DCE6EE; border-radius: .5em; padding: .5em .8em; font-weight: 600; text-align: left; transition: background-color .3s, color .3s, border-color .3s; }
.match-list li.is-hit { background: var(--app-ink); color: #fff; border-color: var(--app-ink); }
.hs[data-hs="answer"] { justify-content: flex-end; }
.hs-actions { display: grid; gap: .5em; margin-top: .4em; }
.hs-btn { background: var(--app-ink); color: #fff; text-align: center; font-weight: 700; padding: .75em; border-radius: .5em; }
.hs-btn-alt { background: #fff; color: var(--app-ink); border: 2px solid var(--app-ink); }
.how-steps { display: grid; position: relative; }
.step { grid-area: 1 / 1; display: grid; gap: 14px; align-content: center; }
.step-n { font: 500 1.05rem/1 var(--sans); color: var(--pulse); display: inline-flex; align-items: center; gap: 12px; }
.step-n::after { content: ''; width: 48px; height: 2px; background: var(--pulse); }
.step-title { font: 500 clamp(1.7rem, 2.4vw, 2.2rem)/1.12 var(--serif); }
.step p { font-size: 1.08rem; }
.no-js .step, .reduced .step { grid-area: auto; }
.no-js .how-steps, .reduced .how-steps { gap: 32px; }
.no-js .hs:not([data-hs="answer"]), .reduced .hs:not([data-hs="answer"]) { display: none; }
@media (max-width: 960px) {
  .how-stage { padding-block: calc(var(--head-h) + 10px) 16px; align-items: flex-start; }
  .how-grid { grid-template-columns: 1fr; gap: 14px; justify-items: center; text-align: center; }
  .how-head .h2 { font-size: 1.75rem; }
  .how-head { gap: 0; }
  .how-rail { display: none; }
  .how-phone-wrap .phone { --pw: clamp(180px, calc((100svh - var(--head-h) - 300px) * .49), 236px); }
  .hs[data-hs="answer"] .msg-me { display: none; }
  .how-steps { max-width: 460px; }
  .step-n { justify-content: center; }
  .step-n::after { display: none; }
  .step-title { font-size: 1.45rem; }
  .step p { font-size: 1rem; }
}

/* ---------- price ---------- */
.price { background: var(--night); color: #fff; overflow: clip; }
.price-bg { position: absolute; left: 0; right: 0; top: 50%; height: 240px; margin-top: -120px; opacity: .5; pointer-events: none; filter: drop-shadow(0 0 6px rgba(255, 59, 68, .6)); }
.price-ecg { width: 100%; height: 100%; stroke-width: 1.6; stroke: var(--pulse-hi); }
.price-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.price-main { display: grid; gap: 26px; }
.price-h { color: #fff; display: grid; gap: 6px; }
.price-big { font: 500 clamp(6rem, 15vw, 13rem)/.9 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-per { font: 400 italic clamp(1.6rem, 2.6vw, 2.4rem)/1.1 var(--serif); color: #FFB4B4; }
.price-line { font-size: 1.18rem; color: var(--mist); }
.price-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.price-calc { background: var(--night-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); display: grid; gap: 22px; }
.calc-q { font: 500 1.5rem/1.25 var(--serif); color: #fff; }
.calc-beats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 64px; }
.beat .ecg { width: 100%; height: 100%; stroke: rgba(255, 255, 255, .2); stroke-width: 2; transition: stroke .3s; }
.beat.is-on .ecg { stroke: var(--pulse-hi); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--pulse-hi) var(--fill, 30%), rgba(255, 255, 255, .2) var(--fill, 30%)); }
.range::-moz-range-track { height: 4px; background: rgba(255, 255, 255, .2); }
.range::-moz-range-progress { height: 4px; background: var(--pulse-hi); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; background: #fff; border: 6px solid var(--pulse); border-radius: 50%; }
.range::-moz-range-thumb { width: 18px; height: 18px; background: #fff; border: 6px solid var(--pulse); border-radius: 50%; }
.calc-out { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; color: var(--mist); font-size: 1.08rem; }
.calc-n { font: 600 1.6rem/1 var(--sans); color: #fff; font-variant-numeric: tabular-nums; }
.calc-cost span { font: 500 2.6rem/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- benefits ---------- */
.benefits { color: #fff; overflow: clip; isolation: isolate; }
.benefits-bg { position: absolute; inset: 0; z-index: -1; }
.benefits-bg img { width: 100%; height: 124%; object-fit: cover; object-position: 50% 30%; margin-top: -12%; }
.benefits-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 34, .82) 0%, rgba(10, 20, 34, .55) 50%, rgba(10, 20, 34, .25) 100%); }
.benefits-grid { display: grid; gap: clamp(32px, 5vw, 56px); }
.benefits-head .h2 { color: #fff; }
.benefits-head .h2 em { color: #FFB4B4; }
.b-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.b-tile { background: rgba(255, 255, 255, .95); color: var(--slate); border-radius: var(--r); padding: 26px 24px 30px; display: grid; gap: 10px; align-content: start; border-top: 4px solid var(--pulse); }
.b-tile h3 { font: 500 1.45rem/1.15 var(--serif); }
@media (max-width: 1080px) { .b-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .b-tiles { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta-band { position: relative; color: #fff; padding-block: clamp(110px, 16vw, 200px); overflow: clip; isolation: isolate; text-align: center; }
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media img { width: 100%; height: 130%; object-fit: cover; margin-top: -15%; }
.cta-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(8, 16, 30, .62), rgba(8, 16, 30, .25)); }
.cta-night { position: absolute; inset: 0; background: #0B1A3A; mix-blend-mode: multiply; opacity: 0; z-index: 1; }
.cta-inner { display: grid; justify-items: center; gap: 28px; position: relative; z-index: 2; }
.cta-h { color: #fff; }
.cta-h em { color: #FFB4B4; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-note { color: #D4DEE8; }

/* ---------- footer ---------- */
.site-foot { background: var(--night); color: var(--mist); position: relative; padding-top: 64px; overflow: clip; }
.foot-pulse { position: absolute; left: 0; right: 0; top: 0; height: 40px; opacity: .55; }
.foot-ecg { width: 100%; height: 40px; stroke-width: 1.8; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 40px 56px; }
.foot-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--r); }
.foot-logo img { height: 62px; width: auto; }
.foot-brand { display: grid; gap: 20px; align-content: start; }
.foot-mini { width: 220px; height: 26px; stroke-width: 1.8; opacity: .9; }
.foot-h { font: 600 1rem/1.2 var(--sans); color: #fff; margin-bottom: 14px; }
.foot-col ul { display: grid; gap: 2px; }
.foot-col a:not(.btn) { color: var(--mist); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.foot-col a:not(.btn):hover { color: #fff; }
.foot-join { display: grid; gap: 16px; align-content: start; }
.foot-join .foot-h { margin-bottom: 0; }
.foot-price { color: var(--mist); } .foot-price span { font: 500 2.6rem/1 var(--serif); color: #fff; }
.foot-note { font-size: .95rem; }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 24px 30px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .95rem; }
.credit a { color: #fff; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- reveal start states (JS only) ---------- */
.js [data-rise], .js [data-card], .js [data-tile], .js [data-foot-col], .js .ticks li { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rise], .js [data-card], .js [data-tile], .js [data-foot-col], .js .ticks li { opacity: 1; }
  .dots i, .caret, .hc-label::before { animation: none; }
}
.no-gsap [data-rise], .no-gsap [data-card], .no-gsap [data-tile], .no-gsap [data-foot-col], .no-gsap .ticks li { opacity: 1; }
.js:not(.reduced) [data-hero-title] { visibility: hidden; }
.js:not(.reduced) [data-hero-fade], .js:not(.reduced) [data-hero-phone], .js:not(.reduced) .hero-foot { opacity: 0; }
.no-gsap [data-hero-title] { visibility: visible !important; }
.no-gsap [data-hero-fade], .no-gsap [data-hero-phone], .no-gsap .hero-foot, .no-gsap [data-msg] { opacity: 1 !important; }
