/* HeartPath website — mobile first.
   Colours and fonts follow the app (assets/branding, lib/core/theme). */

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: "HP Jakarta"; src: url("../fonts/jakarta-800.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "HP Atkinson"; src: url("../fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HP Atkinson"; src: url("../fonts/atkinson-700.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "HP Sinhala"; src: url("../fonts/sinhala-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0D80-0DFF, U+200C-200D, U+25CC; }
@font-face { font-family: "HP Sinhala"; src: url("../fonts/sinhala-700.woff2") format("woff2"); font-weight: 600 900; font-display: swap; unicode-range: U+0D80-0DFF, U+200C-200D, U+25CC; }
@font-face { font-family: "HP Tamil"; src: url("../fonts/tamil-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC; }
@font-face { font-family: "HP Tamil"; src: url("../fonts/tamil-700.woff2") format("woff2"); font-weight: 600 900; font-display: swap; unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC; }

/* ---------------------------------------------------------------- tokens */
:root {
  --teal-950: #052f2d;
  --teal-900: #063f3c;
  --teal-800: #084a47;
  --teal-700: #0b6b66;
  --teal-600: #0e7a74;
  --teal-500: #14958b;
  --teal-200: #b9e3dd;
  --teal-100: #ddf1ee;
  --teal-50: #eef8f6;
  --coral: #ff7a6c;
  --coral-700: #c7392b;
  --ink: #14302d;
  --ink-2: #3f5a56;
  --muted: #5b7470;
  --bg: #f7f5f0;
  --bg-2: #efece4;
  --card: #ffffff;
  --line: #e3dfd6;
  --warn-bg: #fff4e0;
  --warn-line: #f3d39b;
  --warn-ink: #6b4500;
  --info-bg: #e8f1ff;
  --info-ink: #173f7a;

  --tone-health: #d6455a;  --tone-health-bg: #fde8eb;
  --tone-ex: #0e7a74;      --tone-ex-bg: #ddf1ee;
  --tone-med: #3c5bd6;     --tone-med-bg: #e6ebff;
  --tone-sym: #c06c00;     --tone-sym-bg: #ffefd2;
  --tone-mood: #7b4fc9;    --tone-mood-bg: #efe7fc;
  --tone-edu: #1f7fb8;     --tone-edu-bg: #e1f1fb;
  --tone-bad: #c7392b;     --tone-bad-bg: #fde6e3;
  --tone-ok: #1f8a4c;      --tone-ok-bg: #dff5e8;

  --font-body: "HP Atkinson", "HP Sinhala", "HP Tamil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "HP Jakarta", "HP Sinhala", "HP Tamil", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(20 48 45 / .06), 0 2px 8px rgb(20 48 45 / .05);
  --shadow: 0 2px 6px rgb(20 48 45 / .06), 0 14px 36px -12px rgb(20 48 45 / .22);
  --shadow-teal: 0 10px 28px -10px rgb(11 107 102 / .65);
  --gutter: 16px;
  --tap: 56px;
  --h1: clamp(2.1rem, 8.2vw, 3.7rem);
  --h2: clamp(1.65rem, 5.6vw, 2.5rem);
  --lh-head: 1.12;
  --lh-body: 1.6;
}

/* Sinhala and Tamil glyphs need more line height; Sinhala is drawn
   larger and Tamil words are long, so headings are a little smaller. */
html:lang(si) { --h1: clamp(1.85rem, 7.2vw, 3.2rem); --h2: clamp(1.45rem, 5vw, 2.2rem); --lh-head: 1.35; --lh-body: 1.75; }
html:lang(ta) { --h1: clamp(1.7rem, 6.6vw, 3rem);   --h2: clamp(1.35rem, 4.6vw, 2.05rem); --lh-head: 1.4; --lh-body: 1.8; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html:lang(si) body { font-size: 1.0625rem; }
html:lang(ta) body { font-size: 1.04rem; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: var(--lh-head); color: var(--ink); margin: 0; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
html:lang(si) h1, html:lang(si) h2, html:lang(si) h3,
html:lang(ta) h1, html:lang(ta) h2, html:lang(ta) h3 { letter-spacing: 0; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--teal-700); }
b, strong { font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; word-break: break-all; }
.ic { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; display: inline-block; vertical-align: middle; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal-700); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(247 245 240 / .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgb(227 223 214 / .7);
}
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.3rem/1 "HP Jakarta", system-ui, sans-serif; letter-spacing: -0.02em; min-height: 44px; }
.brand img { border-radius: 12px; box-shadow: 0 4px 12px -4px rgb(11 107 102 / .5); }

.lang-switch { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); width: 100%; }
.lang-switch button {
  flex: 1; min-height: 48px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-2); font: 700 1.05rem/1 var(--font-body);
  transition: background .2s, color .2s;
}
.lang-switch button[lang="si"] { font-family: "HP Sinhala", var(--font-body); }
.lang-switch button[lang="ta"] { font-family: "HP Tamil", var(--font-body); font-size: .98rem; }
.lang-switch button:hover { color: var(--teal-700); }
.lang-switch button[aria-pressed="true"] { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-teal); }
@media (min-width: 640px) {
  .lang-switch { width: auto; }
  .lang-switch button { flex: none; min-width: 92px; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 28px 0 56px; background:
  radial-gradient(1200px 520px at 85% -10%, rgb(20 149 139 / .18), transparent 60%),
  radial-gradient(700px 380px at -10% 20%, rgb(255 122 108 / .12), transparent 60%); }
.hero-ecg { display: none; position: absolute; left: 0; right: 0; top: 44%; width: 100%; height: 160px; fill: none; stroke: rgb(11 107 102 / .10); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.hero-ecg path { stroke-dasharray: 1500; stroke-dashoffset: 1500; animation: ecg 3.2s ease-out .3s forwards; }
@keyframes ecg { to { stroke-dashoffset: 0; } }
.hero-grid { position: relative; display: grid; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--teal-700); font-weight: 700; font-size: .95rem; box-shadow: var(--shadow-sm); }
.eyebrow .ic { color: var(--coral); }
.hero h1 { font-size: var(--h1); margin-top: 18px; }
.lead { margin-top: 16px; font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
html:lang(si) .lead, html:lang(ta) .lead { font-size: 1.1rem; }

.cta { margin-top: 28px; display: grid; gap: 12px; max-width: 460px; }
.btn-download {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 22px 14px 14px;
  border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #17a094 0%, var(--teal-700) 55%, var(--teal-800) 100%);
  box-shadow: var(--shadow-teal), inset 0 1px 0 rgb(255 255 255 / .22);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-download:hover { filter: brightness(1.06); box-shadow: 0 16px 34px -12px rgb(11 107 102 / .75), inset 0 1px 0 rgb(255 255 255 / .22); }
.btn-download:active { transform: scale(.98); }
.btn-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: rgb(255 255 255 / .18); flex: none; }
.btn-icon .ic { width: 28px; height: 28px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(4px); } }
.btn-text { display: grid; gap: 2px; text-align: left; }
.btn-label { font: 800 1.35rem/1.2 var(--font-head); }
html:lang(si) .btn-label, html:lang(ta) .btn-label { font-weight: 700; font-size: 1.2rem; line-height: 1.35; }
.btn-meta { font-size: .95rem; opacity: .9; }
.btn-download.on-dark { background: #fff; color: var(--teal-800); box-shadow: 0 14px 30px -12px rgb(0 0 0 / .45); }
.btn-download.on-dark .btn-icon { background: var(--teal-100); color: var(--teal-700); }
.btn-download.compact { min-height: 60px; padding: 8px 18px 8px 8px; border-radius: 18px; justify-content: center; }
.btn-download.compact .btn-icon { width: 44px; height: 44px; border-radius: 13px; }
.btn-download.compact .btn-label { font-size: 1.15rem; }

.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: 18px; text-decoration: none; font-weight: 700; color: var(--teal-700); background: var(--card); border: 1.5px solid var(--teal-200); }
.btn-secondary:hover { border-color: var(--teal-600); }

.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .7); border: 1px solid var(--line); font-size: .95rem; font-weight: 700; color: var(--ink-2); }
.trust .ic { color: var(--teal-600); }

.notice { display: none; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px; border-radius: var(--radius); }
.notice p { margin-top: 4px; font-size: 1rem; }
.notice-ios { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.notice-ios .ic { width: 32px; height: 32px; }
html[data-device="ios"] .notice-ios { display: flex; }
html[data-device="ios"] .cta .btn-download { opacity: .55; filter: grayscale(.4); }
.notice-desktop { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); align-items: center; max-width: 460px; }
html[data-device="desktop"] .notice-desktop { display: flex; }
.qr { flex: none; width: 112px; height: 112px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 6px; color: var(--teal-200); }
.qr svg { width: 100%; height: 100%; }
.qr .ic { width: 48px; height: 48px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.blob { position: absolute; width: min(420px, 92vw); aspect-ratio: 1; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; background: linear-gradient(140deg, #19a296, var(--teal-700) 60%, var(--teal-900)); opacity: .95; animation: morph 14s ease-in-out infinite alternate; }
@keyframes morph { to { border-radius: 58% 42% 40% 60% / 44% 58% 42% 56%; transform: rotate(8deg); } }
.phone { position: relative; border-radius: 38px; padding: 9px; background: linear-gradient(160deg, #26332f, #0d1514); box-shadow: 0 30px 60px -22px rgb(5 47 45 / .6), inset 0 0 0 1.5px rgb(255 255 255 / .12); }
.phone img { border-radius: 30px; width: 100%; height: auto; background: var(--teal-50); }
.phone-hero { width: min(270px, 66vw); transform: rotate(-3deg); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgb(255 255 255 / .94); box-shadow: var(--shadow); font-size: .92rem; line-height: 1.25; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: bob 5s ease-in-out infinite; }
.float-card b { display: block; color: var(--ink); }
.float-card small { color: var(--muted); font-size: .85rem; }
.float-med { top: 10%; left: max(0px, calc(50% - 215px)); }
.float-ex { bottom: 12%; right: max(0px, calc(50% - 210px)); animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.fc-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.fc-icon .ic { width: 22px; height: 22px; }

@media (min-width: 960px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; }
  .hero-visual { min-height: 600px; }
  .hero-ecg { display: block; }
  .phone-hero { width: 300px; }
  .float-med { left: -10px; }
  .float-ex { right: 0; }
}

/* ---------------------------------------------------------------- tones */
.tone-health { background: var(--tone-health-bg); color: var(--tone-health); }
.tone-ex { background: var(--tone-ex-bg); color: var(--tone-ex); }
.tone-med { background: var(--tone-med-bg); color: var(--tone-med); }
.tone-sym { background: var(--tone-sym-bg); color: var(--tone-sym); }
.tone-mood { background: var(--tone-mood-bg); color: var(--tone-mood); }
.tone-edu { background: var(--tone-edu-bg); color: var(--tone-edu); }
.tone-bad { background: var(--tone-bad-bg); color: var(--tone-bad); }
.tone-ok { background: var(--tone-ok-bg); color: var(--tone-ok); }

/* ---------------------------------------------------------------- sections */
.section { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2 { font-size: var(--h2); }
.section-lead { margin-top: 12px; color: var(--ink-2); font-size: 1.12rem; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; color: var(--teal-700); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; flex: none; }
.card-icon .ic { width: 28px; height: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.text-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 960px) { .section { padding: 96px 0; } }

/* ---------------------------------------------------------------- install */
.install { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wifi-tip { display: inline-flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--info-bg); color: var(--info-ink); font-size: 1rem; font-weight: 600; }
.wifi-tip .ic { margin-top: 2px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
.step { position: relative; display: grid; gap: 20px; padding: 22px 18px 24px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.step.is-highlight { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgb(20 149 139 / .22); }
.step-text { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 8px; align-items: center; }
.step-text > p, .step-text > .callout { grid-column: 1 / -1; }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--teal-700); color: #fff; font: 800 1.4rem/1 "HP Jakarta", system-ui, sans-serif; box-shadow: var(--shadow-teal); }
.step h3 { font-size: 1.45rem; }
html:lang(si) .step h3, html:lang(ta) .step h3 { font-size: 1.3rem; }
.step p { font-size: 1.1rem; color: var(--ink-2); }
.step p b { color: var(--ink); background: linear-gradient(transparent 62%, rgb(255 122 108 / .28) 62%); padding: 0 2px; }
.callout { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; padding: 14px 16px; border-radius: 16px; }
.callout .ic { width: 26px; height: 26px; margin-top: 2px; }
.callout p { font-size: 1rem !important; }
.callout-info { background: var(--info-bg); color: var(--info-ink); }
.callout-info p, .callout-info p b { color: var(--info-ink) !important; background: none !important; }
.steps-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; color: var(--muted); font-size: 1rem; }
.steps-note .ic { margin-top: 3px; }

@media (min-width: 860px) {
  .step { grid-template-columns: 1fr 300px; align-items: center; gap: 36px; padding: 32px 36px; }
  .step:nth-child(even) { grid-template-columns: 300px 1fr; }
  .step:nth-child(even) .mock { order: -1; }
}

/* --- phone mock-ups for the steps (simplified Android screens) --- */
.mock { display: grid; place-items: center; }
.mock-screen { position: relative; width: 236px; height: 300px; border-radius: 30px; border: 8px solid #1b2422; background: #f2f4f3; overflow: hidden; box-shadow: var(--shadow); font: 500 13px/1.35 Roboto, "HP Atkinson", system-ui, sans-serif; color: #1d2421; }
.mock-screen.dim::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .38); z-index: 1; }
.mock-screen.light { background: #fff; }
.mock-screen.wallpaper { background: linear-gradient(160deg, #6fc3b8, #2b7f9e 55%, #3b4b8f); }
.m-browser { display: flex; gap: 6px; align-items: center; height: 38px; padding: 0 12px; background: #fff; border-bottom: 1px solid #e5e7e6; }
.m-browser span { height: 8px; border-radius: 4px; background: #e1e5e3; }
.m-browser span:nth-child(1) { width: 18px; } .m-browser span:nth-child(2) { flex: 1; height: 22px; border-radius: 11px; } .m-browser span:nth-child(3) { width: 14px; }
.m-page-lines { padding: 16px 14px; display: grid; gap: 10px; }
.m-page-lines i { display: block; height: 10px; border-radius: 5px; background: #dfe4e2; }
.m-page-lines i:nth-child(1) { width: 70%; height: 16px; } .m-page-lines i:nth-child(3) { width: 85%; } .m-page-lines i:nth-child(4) { width: 55%; }
.m-sheet { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 16px 16px 18px; background: #fff; border-radius: 18px 18px 0 0; }
.m-file { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; color: #3a4440; }
.m-file .ic { width: 20px; height: 20px; color: var(--teal-700); }
.m-title { margin-top: 8px; font-weight: 700; font-size: 15px; color: #111; }
.m-body { margin-top: 4px; color: #4b5552; font-size: 12.5px; }
.m-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.m-btn { padding: 8px 12px; border-radius: 18px; font-weight: 700; color: #1a73e8; font-size: 13px; white-space: nowrap; }
.m-primary { background: #1a73e8; color: #fff; }
.m-snackbar { position: absolute; left: 10px; right: 10px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #2f3633; color: #fff; }
.m-snackbar .ic { width: 20px; height: 20px; color: #7bd88f; }
.m-snackbar > span:nth-child(2) { flex: 1; display: grid; min-width: 0; }
.m-snackbar small { color: #c9d0cd; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-link { color: #8ab4f8; font-weight: 800; padding: 6px 8px; border-radius: 8px; }
.m-appbar { display: flex; align-items: center; gap: 10px; padding: 16px 14px 12px; font-size: 15px; font-weight: 700; }
.m-appbar .ic { width: 18px; height: 18px; transform: scaleX(-1); }
.m-app-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px 14px; border-bottom: 1px solid #eceeed; }
.m-chrome { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(#ea4335 0 33%, #fbbc04 0 66%, #34a853 0); position: relative; }
.m-chrome::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #4285f4; box-shadow: 0 0 0 3px #fff; }
.m-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 10px 0; padding: 12px; border-radius: 14px; background: #eef4ff; font-weight: 700; font-size: 13.5px; }
.m-switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: #1a73e8; flex: none; }
.m-switch i { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.m-dialog { position: absolute; z-index: 2; left: 14px; right: 14px; top: 50%; transform: translateY(-50%); padding: 18px 16px 14px; background: #fff; border-radius: 22px; text-align: center; }
.m-dialog img { margin: 0 auto; border-radius: 12px; }
.m-dialog .m-actions { justify-content: center; }
.m-home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 10px; padding: 34px 16px 0; }
.m-ico { width: 40px; height: 40px; margin: 0 auto; border-radius: 12px; background: rgb(255 255 255 / .35); }
.m-hp { width: auto; height: auto; background: none; display: grid; justify-items: center; gap: 4px; grid-column: span 2; position: relative; }
.m-hp img { width: 52px; height: 52px; border-radius: 16px; box-shadow: 0 6px 14px rgb(0 0 0 / .3); }
.m-hp small { color: #fff; font-weight: 700; font-size: 12px; text-shadow: 0 1px 3px rgb(0 0 0 / .5); }
.m-dock { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; justify-content: space-around; padding: 10px 6px; border-radius: 20px; background: rgb(255 255 255 / .22); }
.m-dock .m-ico { width: 34px; height: 34px; margin: 0; }

/* "Tap here" ring on the button to press */
.tap { position: relative; }
.tap::after { content: ""; position: absolute; inset: -7px; border-radius: 999px; border: 3px solid var(--coral); animation: tap 1.6s ease-out infinite; pointer-events: none; }
.m-hp.tap::after { inset: -8px -6px 14px; border-radius: 20px; }
@keyframes tap { 0% { opacity: 1; transform: scale(.92); } 70% { opacity: 0; transform: scale(1.18); } 100% { opacity: 0; } }

/* help + update */
.help-grid { display: grid; gap: 16px; margin-top: 36px; }
.help-card, .update-card { display: flex; gap: 16px; padding: 22px; align-items: flex-start; }
.help-card h3, .update-card h3 { font-size: 1.3rem; }
.help-card p, .update-card p { margin-top: 6px; color: var(--ink-2); font-size: 1.05rem; }
.warn-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px !important; padding: 12px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink) !important; font-weight: 700; }
.warn-line .ic { margin-top: 2px; }
@media (min-width: 860px) { .help-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- features */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.feature { padding: 22px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: center; }
.feature p { grid-column: 2; color: var(--ink-2); font-size: 1.02rem; }
.feature h3 { font-size: 1.2rem; }
.feature .card-icon { grid-row: span 2; align-self: start; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .feature { grid-template-columns: 1fr; row-gap: 10px; align-content: start; }
  .feature p { grid-column: 1; }
  .feature .card-icon { grid-row: auto; margin-bottom: 6px; }
}

/* ---------------------------------------------------------------- screens */
.screens { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); overflow: hidden; }
.swipe-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-weight: 700; }
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(var(--gutter), calc((100vw - 1140px) / 2 + var(--gutter))) 28px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.gallery:focus-visible { outline-offset: -3px; }
.gallery figure { margin: 0; flex: none; width: 210px; scroll-snap-align: center; }
.gallery .phone { border-radius: 30px; padding: 7px; }
.gallery .phone img { border-radius: 24px; }
.gallery figcaption { margin-top: 14px; text-align: center; font-weight: 700; color: var(--ink-2); }
.screens .section-head { position: relative; max-width: none; }
.gallery-nav { display: none; position: absolute; right: 0; bottom: 0; gap: 10px; }
.gallery-nav button { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--teal-200); background: var(--card); color: var(--teal-700); cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery-nav button:hover { border-color: var(--teal-600); }
.gallery-nav .ic { width: 24px; height: 24px; }
.ic.flip { transform: scaleX(-1); }
@media (min-width: 960px) { .gallery figure { width: 240px; } .swipe-hint { display: none; } .gallery-nav { display: flex; } }

/* ---------------------------------------------------------------- privacy */
.privacy { background: linear-gradient(150deg, var(--teal-700), var(--teal-900)); color: #fff; }
.privacy h2 { color: #fff; font-size: var(--h2); margin-top: 18px; }
.privacy-grid { display: grid; gap: 28px; }
.shield-badge { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: rgb(255 255 255 / .14); }
.shield-badge .ic { width: 40px; height: 40px; }
.text-link.light { color: #bdf0e8; margin-top: 10px; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); font-size: 1.08rem; }
.privacy-list .ic { width: 26px; height: 26px; color: #9ff0e6; margin-top: 1px; }
@media (min-width: 960px) { .privacy-grid { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 56px; } }

/* ---------------------------------------------------------------- faq */
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--teal-700); transition: transform .25s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details > p { padding: 0 20px 20px; color: var(--ink-2); }
.tech-list { margin: 0; padding: 0 20px 20px; display: grid; gap: 10px; }
.tech-list div { display: grid; gap: 2px; }
.tech-list dt { font-size: .9rem; color: var(--muted); font-weight: 700; }
.tech-list dd { margin: 0; }

/* ---------------------------------------------------------------- final cta */
.final { padding: 72px 0 88px; background: radial-gradient(700px 300px at 50% 0%, rgb(255 255 255 / .12), transparent 70%), linear-gradient(160deg, var(--teal-600), var(--teal-900)); color: #fff; text-align: center; }
.final-inner { display: grid; justify-items: center; gap: 14px; }
.final img { border-radius: 24px; box-shadow: 0 16px 30px -10px rgb(0 0 0 / .45); }
.final h2 { color: #fff; font-size: var(--h2); margin-top: 8px; }
.final p { color: #d4efeb; font-size: 1.12rem; max-width: 30em; }
.final .btn-download { margin-top: 14px; width: 100%; max-width: 420px; }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 40px 0 120px; background: var(--teal-950); color: #b8d3cf; font-size: 1rem; }
.site-footer .emergency { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgb(255 122 108 / .14); color: #ffd3cd; font-weight: 700; }
.site-footer .emergency .ic { color: var(--coral); width: 26px; height: 26px; }
.site-footer .emergency a { color: #fff; }
.disclaimer { margin-top: 18px; max-width: 760px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.foot-links a { color: #e6f6f3; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.copy { margin-top: 12px; font-size: .9rem; color: #7fa19c; }
@media (min-width: 960px) { .site-footer { padding-bottom: 48px; } }

/* ---------------------------------------------------------------- sticky bar + toast */
.sticky-dl { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgb(247 245 240 / .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s ease; }
.sticky-dl.is-visible { transform: none; }
.sticky-dl .btn-download { max-width: 460px; margin: 0 auto; }
html[data-device="ios"] .sticky-dl, html[data-device="desktop"] .sticky-dl { display: none; }

.toast { position: fixed; z-index: 60; left: 50%; top: 16px; transform: translate(-50%, calc(-100% - 40px)); visibility: hidden; width: min(92vw, 460px); padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: var(--shadow); transition: transform .35s ease, visibility 0s linear .35s; text-align: center; }
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .35s ease; }

/* ---------------------------------------------------------------- privacy page */
.doc-hero { padding: 40px 0 28px; background: linear-gradient(150deg, var(--teal-700), var(--teal-900)); color: #fff; }
.doc-hero h1 { color: #fff; font-size: var(--h2); }
.doc-hero p { margin-top: 8px; color: #cdeee9; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #bdf0e8; font-weight: 700; text-decoration: none; margin-bottom: 10px; }
.back-link .ic { transform: scaleX(-1); }
.doc { padding: 32px 0 64px; }
.doc-card { padding: 24px 20px; }
.doc h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; margin: 8px 0; }
.doc li { margin-bottom: 6px; }
.doc .callout-warn { margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--warn-bg); color: var(--warn-ink); }
@media (min-width: 760px) { .doc-card { padding: 40px 44px; } }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-ecg path { stroke-dashoffset: 0; }
}
