/* Twój Kardiolog — landing */

:root {
  --bg: #EDF0EC;
  --bg-2: #E3E8E3;
  --surface: #FFFFFF;
  --ink: #0E2A25;
  --ink-2: #3D524D;
  --ink-3: #4F635D;
  --line: #D3DBD5;
  --pine: #0E3A33;
  --pine-2: #0A2B26;
  --teal: #145A50;
  --teal-h: #0F4A42;
  --mint: #DCEBE3;
  --pulse: #D9443A;
  --on-dark: #EAF1EC;
  --on-dark-2: #C2D9CE;

  --r-s: 12px;
  --r: 20px;
  --r-l: 32px;
  --shadow: 0 1px 2px rgba(14, 42, 37, .05), 0 12px 32px -12px rgba(14, 42, 37, .18);
  --shadow-l: 0 2px 6px rgba(14, 42, 37, .06), 0 40px 80px -30px rgba(14, 42, 37, .35);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 148px);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #A9B8B1 var(--bg); }
input { caret-color: var(--pulse); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

svg use { stroke: currentColor; }
.ico, .ico-s, .test-ico svg, .trust-list svg, .call-tools svg, .call-controls svg,
.test-flip, .search-go svg, .btn svg, .acc summary svg, .pay svg, .urgent svg,
.footer svg, .phone svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- type ---------- */
.display {
  font-weight: 340;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  color: var(--pine);
  text-wrap: balance;
}
.h2 {
  font-weight: 360;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--pine);
  text-wrap: balance;
}
.h2.on-dark { color: var(--on-dark); }
.sub { color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .sub { margin-top: 18px; }
.section { padding: var(--section) 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: .98rem; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px rgba(14, 42, 37, .4); }
.btn-primary:hover { background: var(--teal-h); }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--pine); }
.btn-outline:hover { border-color: var(--teal); }
.btn-ghost { background: var(--surface); color: var(--pine); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(237, 240, 236, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 560; letter-spacing: -0.02em; font-size: 1.12rem; color: var(--pine); }
.brand-mark { width: 30px; height: 30px; color: var(--teal); }
.brand.on-dark { color: var(--on-dark); }
.brand.on-dark .brand-mark { color: #fff; }
.brand.on-dark .brand-mark { --logo-line: var(--pine); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: .94rem; color: var(--ink-2); text-decoration: none; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--pine); background: rgba(14, 58, 51, .06); }
.nav .nav-cta-mobile { display: none; color: #fff; }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 64px); position: relative; overflow-x: clip; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pick { position: relative; z-index: 20; margin-top: clamp(28px, 3.5vw, 40px); width: min(520px, 100%); text-align: left; }
.pick-bar {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(14, 42, 37, .05), 0 6px 14px -8px rgba(14, 42, 37, .2);
  transition: border-color .2s, box-shadow .2s;
}
.pick-bar:focus-within, .pick.is-open .pick-bar { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 90, 80, .12), var(--shadow); }
.pick-toggle {
  flex: 1; min-width: 0; min-height: 42px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 10px 0 14px; border: 0; background: none; border-radius: 999px;
  cursor: pointer; text-align: left; font-size: .95rem; color: var(--ink);
}
.pick-toggle:focus-visible { outline-offset: 0; }
.pick-toggle .ico { width: 18px; height: 18px; color: var(--teal); flex: none; }
.pick-summary { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pick-count { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--teal); color: #fff; font-size: .78rem; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.pick-count[hidden] { display: none; }
.pick-chev { width: 18px; height: 18px; flex: none; color: var(--ink-3); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.pick.is-open .pick-chev { transform: rotate(180deg); }

.pick-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 18px 10px 10px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow-l);
  animation: pick-in .35s var(--ease);
}
.pick-panel[hidden] { display: none; }
@keyframes pick-in { from { opacity: 0; transform: translateY(-6px); } }
.pick-legend { float: left; width: 100%; padding: 0 10px 10px; font-weight: 560; color: var(--pine); font-size: .98rem; }
.pick-legend span { display: block; font-weight: 400; font-size: .86rem; color: var(--ink-3); }
.pick-list { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.pick-opt { display: flex; align-items: flex-start; gap: 12px; padding: 11px 10px; border-radius: 12px; cursor: pointer; transition: background-color .2s; }
.pick-opt:hover { background: var(--bg); }
.pick-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid #9DAFA8; background: #fff; display: grid; place-items: center; color: #fff; transition: background-color .2s, border-color .2s; }
.pick-box svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease); }
.pick-opt input:checked + .pick-box { background: var(--teal); border-color: var(--teal); }
.pick-opt input:checked + .pick-box svg { opacity: 1; transform: none; }
.pick-opt input:focus-visible + .pick-box { outline: 2px solid var(--teal); outline-offset: 2px; }
.pick-opt:has(input:checked) { background: var(--mint); }
.pick-label { font-size: .95rem; line-height: 1.35; color: var(--ink); }
.pick-label small { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.pick-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 10px 2px; border-top: 1px solid var(--line); }
.pick-clear { border: 0; background: none; padding: 8px 4px; color: var(--ink-2); font-size: .92rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; }
.pick-clear:hover { color: var(--pine); text-decoration-color: currentColor; }
.search-go { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.search-go:hover { background: var(--teal-h); }
.search-go svg { width: 18px; height: 18px; }
.lede { margin-top: 22px; max-width: 46ch; color: var(--ink-2); font-size: 1.02rem; text-wrap: balance; }
.cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-stage {
  position: relative;
  margin-top: clamp(48px, 6vw, 72px);
  padding: 0 var(--gutter);
  display: flex; justify-content: center;
}
.branch { position: absolute; z-index: 3; pointer-events: none; width: clamp(260px, 34vw, 560px); filter: drop-shadow(0 18px 24px rgba(14, 42, 37, .18)); }
.branch-l { left: max(-60px, calc(50% - 760px)); bottom: -6%; transform: rotate(-4deg); }
.branch-r { right: max(-70px, calc(50% - 770px)); top: -4%; }

.call {
  position: relative; z-index: 2; margin: 0;
  width: min(1000px, 100%);
  background: #13211E;
  border-radius: 22px 22px 0 0;
  padding: 0 8px;
  box-shadow: var(--shadow-l);
}
.call-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 10px; color: #A9BDB5; font-size: .78rem; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A4C47; }
.dots i:first-child { background: #E2665D; }
.dots i:nth-child(2) { background: #E3B34F; }
.dots i:nth-child(3) { background: #62B07E; }
.call-time { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--pulse); }
.call-title { flex: 1; text-align: center; color: #D7E3DE; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.call-tools { display: flex; gap: 12px; }
.call-tools svg { width: 16px; height: 16px; }
.call-view { position: relative; overflow: hidden; border-radius: 12px 12px 0 0; aspect-ratio: 16 / 8.6; background: #2a3532; }
.call-main { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pip {
  position: absolute; top: 16px; left: 16px;
  width: clamp(96px, 15%, 150px); aspect-ratio: 1;
  border-radius: 14px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}
.pip img { width: 100%; height: 100%; object-fit: cover; }
.pip-name { position: absolute; left: 6px; bottom: 6px; font-size: .72rem; color: #fff; background: rgba(10, 20, 18, .55); padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
.ecg-card {
  position: absolute; right: 16px; bottom: 76px;
  width: min(44%, 400px);
  background: rgba(255, 255, 255, .94);
  border-radius: 14px; padding: 12px 14px 10px;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
}
.ecg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink); margin-bottom: 6px; }
.ecg-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.ico-s { width: 15px; height: 15px; color: var(--pulse); }
.ecg-tag { white-space: nowrap; font-size: .74rem; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.ecg { width: 100%; height: 64px; }
.ecg-line { fill: none; stroke: var(--pulse); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1400; stroke-dashoffset: 0; }
.js .ecg-line { animation: trace 4.2s linear infinite; }
.call-controls { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 12px; }
.call-controls span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 30, 28, .6); color: #fff; backdrop-filter: blur(8px); }
.call-controls span.end { background: #D9443A; }
.call-controls span.end svg { transform: rotate(135deg); }
.call-controls svg { width: 18px; height: 18px; }

@keyframes trace { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- trust ---------- */
.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0 40px; position: relative; z-index: 4; }
.trust-lead { text-align: center; color: var(--ink-3); font-size: .9rem; margin-bottom: 22px; }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 32px; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--ink-2); line-height: 1.35; }
.trust-list b { display: block; color: var(--pine); font-weight: 560; font-size: 1rem; }
.trust-list svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--mint); color: var(--teal); }

/* ---------- tests ---------- */
.tests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.tests li { border-bottom: 1px solid var(--line); }
.tests li { display: flex; }
.tests li:not(:nth-child(4n)) { border-right: 1px solid var(--line); }
.test {
  width: 100%; height: 100%; min-height: 0;
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  text-align: left; background: none; border: 0; padding: 26px 22px; cursor: pointer;
  transition: background-color .3s var(--ease);
  position: relative;
}
.test:hover { background: rgba(255,255,255,.55); }
.test[aria-pressed="true"] { background: var(--surface); }
.test-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--teal); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s; }
.test-ico svg { width: 22px; height: 22px; }
.test[aria-pressed="true"] .test-ico { background: var(--teal); color: #fff; border-color: var(--teal); }
.test[aria-pressed="true"] .test-ico svg { stroke: #fff; }
.test-body { display: block; position: relative; }
.test-kicker { display: block; font-weight: 560; color: var(--pine); font-size: 1rem; line-height: 1.5; margin-bottom: 4px; }
.test-front, .test-back { display: block; font-size: .9rem; line-height: 1.45; color: var(--ink-2); transition: opacity .35s var(--ease), transform .45s var(--ease), filter .35s var(--ease); }
.test-back { position: absolute; left: 0; right: 0; top: 28px; opacity: 0; transform: translateY(8px); filter: blur(3px); color: var(--ink); pointer-events: none; }
.test[aria-pressed="true"] .test-front { position: absolute; left: 0; right: 0; top: 28px; }
.test[aria-pressed="true"] .test-back { position: static; }
.test[aria-pressed="true"] .test-front { opacity: 0; transform: translateY(-8px); filter: blur(3px); }
.test[aria-pressed="true"] .test-back { opacity: 1; transform: none; filter: none; }
.test-hint { margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; font-weight: 500; color: var(--teal); text-decoration: underline; text-decoration-color: rgba(20, 90, 80, .3); text-underline-offset: .25em; }
.test-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-90deg); transition: transform .4s var(--ease); }
.test-hint .h-back { display: none; }
.test[aria-pressed="true"] .test-hint .h-front { display: none; }
.test[aria-pressed="true"] .test-hint .h-back { display: inline; }
.test[aria-pressed="true"] .test-hint svg { transform: rotate(90deg); }
.test:hover .test-hint { text-decoration-color: currentColor; }
.test.is-match { background: var(--surface); box-shadow: inset 0 0 0 2px var(--teal); }
.tests.is-filtering li:not(.is-hit) .test { opacity: .38; }
.tests-empty { margin-top: 24px; text-align: center; color: var(--ink-2); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; background: var(--bg-2); }
.split-photo { position: relative; overflow: hidden; background: #E6E9E7; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.split-panel { position: relative; overflow: hidden; background: var(--pine-2); color: var(--on-dark); display: flex; align-items: flex-start; }
.split-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-branch { position: absolute; z-index: 1; right: -16%; bottom: -3%; width: 104%; max-width: none; filter: brightness(1.05) saturate(1.1) drop-shadow(0 24px 30px rgba(0,0,0,.45)); pointer-events: none; }
.split-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 28, 24, .6), rgba(8, 28, 24, .2) 50%, rgba(8, 28, 24, .35)); z-index: 0; }
.split-bg { z-index: 0; }
.split-inner { position: relative; z-index: 2; padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 80px) clamp(200px, 22vw, 300px); width: 100%; max-width: 640px; }
.split-inner .h2 { margin-bottom: 36px; }

/* ---------- accordion ---------- */
.acc details { border-top: 1px solid var(--line); }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 500; font-size: 1.05rem; color: var(--pine);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { flex: none; width: 20px; height: 20px; transition: transform .4s var(--ease); color: var(--ink-3); }
.acc details[open] summary svg { transform: rotate(180deg); }
.acc details p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 64ch; }
.acc summary:hover { color: var(--teal); }

.acc-dark details { border: 0; margin-bottom: 10px; border-radius: 16px; background: rgba(9, 30, 26, .86); box-shadow: 0 0 0 1px rgba(234, 241, 236, .1) inset; }
.acc-dark details:last-child { border: 0; }
.acc-dark details[open] { background: rgba(14, 50, 43, .92); }
.acc-dark summary { padding: 18px 22px; color: var(--on-dark); font-size: 1rem; }
.acc-dark summary svg { color: var(--on-dark-2); }
.acc-dark summary:hover { color: #fff; }
.acc-dark details p { padding: 0 22px 20px; color: var(--on-dark-2); font-size: .95rem; }

/* ---------- how / orbit ---------- */
.how { overflow: hidden; }
.orbit { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; gap: 40px 64px; align-items: center; }
.rings { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 1100px; aspect-ratio: 1; pointer-events: none; }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); margin: auto; }
.rings i:nth-child(2) { width: 72%; height: 72%; }
.rings i:nth-child(3) { width: 46%; height: 46%; background: radial-gradient(circle, rgba(255,255,255,.7), rgba(255,255,255,0) 70%); }
.steps { display: contents; }
.step {
  position: relative; z-index: 1;
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border-radius: var(--r); padding: 20px 22px;
  box-shadow: var(--shadow); max-width: 340px;
}
.step h3 { font-size: 1.02rem; font-weight: 560; color: var(--pine); margin-bottom: 4px; }
.step p { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.step-n svg { width: 18px; height: 18px; }
.s1 { grid-column: 1; grid-row: 1; justify-self: end; transform: translateY(-30px); }
.s2 { grid-column: 1; grid-row: 2; justify-self: end; transform: translate(-40px, 30px); }
.s3 { grid-column: 3; grid-row: 1; justify-self: start; transform: translate(40px, 10px); }
.s4 { grid-column: 3; grid-row: 2; justify-self: start; transform: translateY(50px); }

.phone {
  grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 2;
  width: 320px; padding: 10px; border-radius: 50px;
  background: #101716;
  box-shadow: 0 0 0 1.5px #2C3633 inset, var(--shadow-l);
}
.phone-screen { border-radius: 40px; overflow: hidden; background: #F6F8F6; padding: 0 14px 10px; font-size: 12px; color: var(--ink); }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 40px; font-weight: 600; font-size: 12px; padding: 0 8px; }
.ph-notch { width: 86px; height: 24px; background: #101716; border-radius: 999px; }
.ph-ind { display: flex; gap: 3px; align-items: flex-end; }
.ph-ind i { width: 3px; background: var(--ink); border-radius: 1px; }
.ph-ind i:nth-child(1) { height: 5px; } .ph-ind i:nth-child(2) { height: 8px; } .ph-ind i:nth-child(3) { height: 11px; }
.ph-head { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 12px; }
.ph-head b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ph-head small { color: var(--ink-3); font-size: 11px; }
.ph-bell { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.ph-bell svg { width: 14px; height: 14px; }
.ph-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 9px 10px; color: var(--ink-3); box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; }
.ph-search svg { width: 13px; height: 13px; }
.ph-case { background: var(--teal); color: #fff; border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.ph-case-top { display: flex; gap: 10px; align-items: center; }
.ph-case-top b { display: block; font-size: 12.5px; font-weight: 600; }
.ph-case-top small { color: rgba(255,255,255,.85); font-size: 11px; }
.ph-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.ph-avatar svg { width: 16px; height: 16px; }
.ph-ecg { width: 100%; height: 22px; margin-top: 8px; }
.ph-ecg path { fill: none; stroke: #FF8A80; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ph-progress { height: 5px; background: rgba(255,255,255,.2); border-radius: 99px; margin: 6px 0 8px; overflow: hidden; }
.ph-progress span { display: block; height: 100%; background: #fff; border-radius: inherit; }
.ph-case-meta { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.85); }
.ph-case-meta span:first-child { display: inline-flex; gap: 5px; align-items: center; }
.ph-case-meta svg { width: 11px; height: 11px; }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ph-tile { border-radius: 14px; padding: 11px; display: flex; flex-direction: column; gap: 2px; min-height: 92px; }
.ph-tile svg { width: 18px; height: 18px; margin-bottom: auto; padding-bottom: 6px; box-sizing: content-box; }
.ph-tile b { font-size: 12px; font-weight: 600; }
.ph-tile small { font-size: 11px; color: currentColor; }
.t1 { background: #E5EEF5; color: #24557A; } .t2 { background: #E2F0E7; color: #1E6A45; }
.t3 { background: #F7EBDF; color: #8A5426; } .t4 { background: #DCE6E2; color: var(--teal); }
.ph-tile b { color: var(--ink); }
.ph-nav { display: flex; justify-content: space-around; padding: 10px 0 4px; border-top: 1px solid var(--line); }
.ph-nav span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--ink-3); }
.ph-nav span.on { color: var(--teal); font-weight: 600; }
.ph-nav svg { width: 16px; height: 16px; }

/* ---------- pricing ---------- */
.pricing { background: var(--surface); border-top: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.pricing-head { position: sticky; top: 112px; }
.pricing-head .sub { margin-top: 18px; }
.pay { margin-top: 28px; display: grid; gap: 10px; }
.pay li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.pay svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.prices { border-top: 1px solid var(--line); }
.price { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.price h3 { font-size: 1.2rem; font-weight: 520; letter-spacing: -0.01em; color: var(--pine); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.price p { margin-top: 6px; color: var(--ink-2); font-size: .95rem; max-width: 46ch; }
.price-side { display: flex; align-items: center; gap: 20px; flex: none; }
.amount { font-size: 2rem; font-weight: 360; letter-spacing: -0.03em; color: var(--pine); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount small { font-size: 1rem; color: var(--ink-3); letter-spacing: 0; }
.badge { font-size: .72rem; font-weight: 500; letter-spacing: .01em; color: var(--teal); background: var(--mint); border-radius: 999px; padding: 3px 10px; }
.price.is-featured { background: var(--bg); margin: 0 -24px; padding-inline: 24px; border-radius: var(--r); border-bottom-color: transparent; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.faq header .sub { margin-top: 18px; }
.faq header a { color: var(--teal); }

/* ---------- urgent ---------- */
.urgent { padding-bottom: 40px; }
.urgent-row { display: flex; gap: 16px; align-items: center; }
.urgent-row > * { }
.urgent .urgent-row { background: #FBEDEB; color: #6E1E18; border-radius: var(--r); padding: 20px 24px; max-width: calc(1240px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.urgent svg { width: 26px; height: 26px; flex: none; color: var(--pulse); }
.urgent p { font-size: .98rem; }
.urgent a { font-weight: 600; color: #B0281F; }

/* ---------- guide ---------- */
.guide { padding: 40px 0 var(--section); }
.guide-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-l);
  background: linear-gradient(180deg, #F7F8F6 0%, #E9EEE9 100%);
  border: 1px solid var(--line);
  min-height: clamp(640px, 54vw, 760px);
  display: flex; justify-content: center;
  padding: clamp(56px, 7vw, 88px) var(--gutter) 0;
}
.guide-copy { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.guide-copy .sub { margin-top: 16px; max-width: 50ch; }
.guide-wood { position: absolute; left: 50%; bottom: -3%; transform: translateX(-50%); width: min(1120px, 96%); max-width: none; }
.guide-form { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: min(460px, 100%); }
.guide-form input { flex: 1 1 220px; min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 20px; outline: none; transition: border-color .2s, box-shadow .2s; }
.guide-form input::placeholder { color: var(--ink-3); }
.guide-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20, 90, 80, .12); }
.guide-form input[aria-invalid="true"] { border-color: var(--pulse); }
.form-msg { flex-basis: 100%; min-height: 1.5em; font-size: .9rem; color: var(--teal); }
.form-msg.is-error { color: #B0281F; }

/* ---------- footer ---------- */
.footer { background: var(--pine); color: var(--on-dark-2); padding: 72px 0 32px; border-radius: var(--r-l) var(--r-l) 0 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(234, 241, 236, .12); }
.footer-brand p { margin: 18px 0 22px; max-width: 34ch; font-size: .95rem; }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; border: 1px solid rgba(234, 241, 236, .2); border-radius: 999px; padding: 10px 18px; font-size: .92rem; transition: border-color .2s, background-color .2s; }
.footer-mail:hover { border-color: rgba(234, 241, 236, .5); background: rgba(234, 241, 236, .06); }
.footer-mail svg { width: 17px; height: 17px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-cols h3 { font-size: .82rem; font-weight: 500; color: var(--on-dark); margin-bottom: 16px; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; font-size: .84rem; flex-wrap: wrap; }
.footer-112 { display: inline-flex; align-items: center; gap: 8px; }
.footer-112 svg { width: 15px; height: 15px; }
.footer-112 a { color: #fff; font-weight: 600; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: .55; transform: translateY(14px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero .display, .js .hero .pick, .js .hero .lede, .js .hero .cta-row { animation: rise .9s var(--ease) both; }
.js .hero .pick { animation-delay: .08s; }
.js .hero .lede { animation-delay: .14s; }
.js .hero .cta-row { animation-delay: .2s; }
.js .call { animation: rise 1.1s .18s var(--ease) both; }
.js .branch-l { animation: grow-l 1.6s .35s var(--ease) both; }
.js .branch-r { animation: grow-r 1.6s .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes grow-l { from { opacity: 0; transform: translate(-40px, 20px) rotate(-8deg); } }
@keyframes grow-r { from { opacity: 0; transform: translate(40px, -10px) rotate(4deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tests { grid-template-columns: repeat(2, 1fr); }
  .tests li:not(:nth-child(4n)) { border-right: 0; }
  .tests li:nth-child(odd) { border-right: 1px solid var(--line); }
  .orbit { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; justify-items: center; gap: 16px; }
  .phone { grid-column: 1; grid-row: 1; margin-bottom: 32px; }
  .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 760px; min-width: 0; }
  .step { max-width: none; transform: none !important; grid-column: auto !important; grid-row: auto !important; justify-self: stretch !important; }
  .rings { top: 300px; width: 900px; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: grid; gap: 5px; place-content: center; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
  .menu-toggle .bar { width: 18px; height: 1.6px; background: var(--pine); border-radius: 2px; transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(3.3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-3.3px) rotate(-45deg); }
  .nav.is-open { display: flex; position: absolute; top: 72px; left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 12px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-l); }
  .nav.is-open a { padding: 14px 16px; font-size: 1.05rem; color: var(--pine); }
  .nav.is-open .nav-cta-mobile { display: inline-flex; margin-top: 8px; color: #fff; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-photo { aspect-ratio: 4 / 4; }
  .pricing-grid, .faq-grid { grid-template-columns: 1fr; }
  .pricing-head { position: static; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .ecg-card { bottom: 70px; width: min(56%, 360px); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .branch { width: 220px; }
  .branch-l { left: -70px; bottom: -14%; }
  .branch-r { right: -96px; top: 14%; width: 200px; }
  .hero-stage { padding: 0 8px; }
  .call { border-radius: 16px 16px 0 0; padding: 0 5px; }
  .call-bar { height: 36px; }
  .call-title, .call-tools { display: none; }
  .call-time { margin-left: auto; }
  .call-view { aspect-ratio: 4 / 4.4; }
  .call-main { object-position: 50% 30%; }
  .pip { width: 84px; top: 10px; left: 10px; border-radius: 10px; }
  .pip-name { display: none; }
  .ecg-card { left: 10px; right: 10px; width: auto; bottom: 70px; padding: 10px 12px 8px; }
  .ecg { height: 48px; }
  .call-controls { bottom: 12px; }
  .call-controls span { width: 40px; height: 40px; }
  .trust-list { grid-template-columns: 1fr; }
  .tests { grid-template-columns: 1fr; }
  .tests li:nth-child(odd) { border-right: 0; }
  .test { min-height: 0; padding: 22px 4px; }
  .steps { grid-template-columns: 1fr; }
  .phone { width: min(300px, 100%); margin-bottom: 24px; }
  .phone-screen { padding: 0 12px 10px; }
  .rings { display: none; }
  .how .section-head { margin-bottom: 32px; }
  .price { flex-direction: column; align-items: flex-start; gap: 16px; }
  .price-side { width: 100%; justify-content: space-between; }
  .price.is-featured { margin: 0 -16px; padding-inline: 16px; }
  .urgent .urgent-row { align-items: flex-start; padding: 18px; }
  .guide-card { min-height: 640px; border-radius: 24px; }
  .guide-wood { width: 760px; bottom: -3%; }
  .guide-form .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .pick-list { grid-template-columns: 1fr; }
  .pick-panel { max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 380px) {
  .ecg-tag { display: none; }
}
