@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(fonts/bricolage-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(fonts/bricolage-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url(fonts/bricolage-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --teal: #24B3C7;
  --teal-deep: #1C8F9F;
  --teal-50: #E8F7FA;
  --teal-100: #CDEEF3;
  --slate: #2F4A56;
  --ink: #1D2B33;
  --muted: #64767F;
  --soft: #8A97A0;
  --line: #E3ECEF;
  --bg-soft: #F5FAFB;
  --green: #2E9B62;
  --green-50: #EAF7F1;
  --amber: #D9891F;
  --amber-50: #FFF4E3;
  --rose: #C85A7C;
  --rose-50: #FBEAF0;
  --violet: #5B57D6;
  --violet-50: #F1F0FC;
  --gold: #B08A2E;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Page hero ---------- */
.hero {
  background: linear-gradient(180deg, #F2FAFC 0%, var(--teal-50) 100%);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--teal-deep); text-transform: uppercase; }
.hero h1 { margin-top: 16px; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -1.8px; color: var(--slate); }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lede { margin-top: 20px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 14px; font-weight: 600; color: var(--teal-deep); background: #fff;
  border: 1px solid var(--teal-100); padding: 8px 15px; border-radius: 999px;
}
a.chip:hover { border-color: var(--teal); }

/* ---------- Phones ---------- */
.phone {
  width: 100%; max-width: 280px; padding: 7px; border-radius: 38px;
  background: #fff; border: 1px solid #D5E3E7;
  box-shadow: 0 24px 50px -24px rgba(28, 80, 96, .38);
}
.phone .scr { border-radius: 31px; overflow: hidden; aspect-ratio: 390 / 844; background: #F4F8F9; }
.phone .scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phones { position: relative; height: 560px; }
.phones .phone { position: absolute; }
.phones .p1 { left: 0; top: 60px; width: 240px; transform: rotate(-5deg); }
.phones .p2 { left: 50%; top: 0; width: 270px; transform: translateX(-50%); z-index: 2; }
.phones .p3 { right: 0; top: 60px; width: 240px; transform: rotate(5deg); }

/* ---------- Sections ---------- */
.section { padding: 80px 0 0; }
.section:last-of-type { padding-bottom: 0; }
.sec-head { max-width: 720px; margin-bottom: 34px; }
.sec-head .num { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: .12em; text-transform: uppercase; }
.sec-head h2 { margin-top: 8px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.9px; color: var(--slate); }
.sec-head p { margin-top: 12px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.band { background: var(--bg-soft); padding: 80px 0; margin-top: 80px; }
.band + .section { padding-top: 80px; }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: #fff; }
.card .hd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.card p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.card .small { font-size: 14px; color: var(--soft); }
a.card { transition: border-color .15s, transform .15s, box-shadow .15s; display: block; }
a.card:hover { border-color: var(--teal-100); transform: translateY(-2px); box-shadow: 0 16px 36px -24px rgba(28, 80, 96, .4); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--teal-deep); }

.ic {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; background: var(--teal-50); color: var(--teal-deep);
}
.ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.green { background: var(--green-50); color: var(--green); }
.ic.rose { background: var(--rose-50); color: var(--rose); }
.ic.violet { background: var(--violet-50); color: var(--violet); }
.ic.amber { background: var(--amber-50); color: var(--amber); }

ul.dots { margin-top: 12px; list-style: none; }
ul.dots li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.6; color: var(--muted); }
ul.dots li + li { margin-top: 5px; }
ul.dots li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
ul.dots li b { color: var(--ink); font-weight: 600; }
ul.checks { list-style: none; display: grid; gap: 10px; }
ul.checks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; color: var(--muted); }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324B3C7' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.pill.exp { color: var(--amber); background: var(--amber-50); }
.pill.ios { color: var(--slate); background: #EEF2F4; }
.pill.f { color: var(--rose); background: var(--rose-50); }
.pill.good { color: var(--green); background: var(--green-50); }
.pill.pri { color: var(--gold); background: #FBF4E2; }
.pill.all { color: var(--teal-deep); background: var(--teal-50); }

.note { margin-top: 12px; font-size: 14px; color: var(--muted); font-style: italic; }
.quote {
  margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--ink);
}
.quote .lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 6px; }
.quote .src { margin-top: 8px; font-size: 13px; color: var(--soft); }

/* ---------- Feature rows (text + phone) ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center;
  border: 1px solid var(--line); border-radius: 28px; padding: 40px 44px; background: #fff;
}
.feature + .feature { margin-top: 24px; }
.feature.flip { grid-template-columns: 300px 1fr; }
.feature.flip .media { order: -1; }
.feature h3 { margin-top: 0; font-size: 28px; font-weight: 800; letter-spacing: -.6px; color: var(--ink); }
.feature .hd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.feature p { margin-top: 12px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.feature .media { display: flex; justify-content: center; }
.feature.green { background: linear-gradient(135deg, #F4FBF7 0%, #EAF7F1 100%); border-color: #D7EEE2; }
.feature.green ul.dots li::before { background: #3DB475; }
.feature.violet { background: linear-gradient(135deg, #F8F8FE 0%, #F0F0FC 100%); border-color: #E2E1F7; }
.feature.violet ul.dots li::before { background: #6A66E0; }
.feature.rose { background: linear-gradient(135deg, #FEF8FA 0%, #FBEEF3 100%); border-color: #F3DCE5; }
.feature.rose ul.dots li::before { background: var(--rose); }

/* ---------- Tree page ---------- */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stage { border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.stage .art { background: linear-gradient(180deg, #F3FAF6 0%, #fff 100%); padding: 18px 18px 6px; display: flex; justify-content: center; }
.stage .art img { height: 190px; width: auto; }
.stage .body { padding: 14px 18px 20px; }
.stage .lvl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stage h3 { margin-top: 4px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.stage p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.stage .say { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink); font-style: italic; }
.stage.s1 .lvl { color: var(--green); } .stage.s2 .lvl { color: var(--green); }
.stage.s3 .lvl { color: #7C9A2C; } .stage.s4 .lvl { color: var(--amber); } .stage.s5 .lvl { color: #9A6B4F; }
.stage.s4 .art { background: linear-gradient(180deg, #FFF8EC 0%, #fff 100%); }
.stage.s5 .art { background: linear-gradient(180deg, #F7F1EC 0%, #fff 100%); }
.stage.s3 .art { background: linear-gradient(180deg, #F6F9EA 0%, #fff 100%); }

.roots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.root { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: #fff; }
.root .top { display: flex; align-items: center; justify-content: space-between; }
.root .w { font-size: 28px; font-weight: 800; letter-spacing: -1px; color: var(--slate); }
.root .w small { font-size: 14px; font-weight: 600; color: var(--soft); letter-spacing: 0; }
.root h3 { margin-top: 16px; font-size: 18px; font-weight: 700; }
.root .meta { font-size: 13px; font-weight: 700; color: var(--teal-deep); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.root p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.root .bar { margin-top: 16px; height: 8px; border-radius: 99px; background: #EEF3F5; overflow: hidden; }
.root .bar span { display: block; height: 100%; border-radius: 99px; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.level { border-radius: 20px; padding: 22px 24px; }
.level .r { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.level h3 { margin-top: 4px; font-size: 18px; font-weight: 700; }
.level p { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.level.good { background: var(--green-50); } .level.good .r { color: var(--green); }
.level.fair { background: var(--amber-50); } .level.fair .r { color: var(--amber); }
.level.bad { background: #FDEEEE; } .level.bad .r { color: #C64D4D; }

.widgets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.widgets figure { text-align: center; }
.widgets img { border-radius: 22px; box-shadow: 0 14px 30px -20px rgba(28, 80, 96, .5); border: 1px solid var(--line); }
.widgets figcaption { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }

.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps-row .card { position: relative; }
.steps-row .card::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 14px;
}

/* ---------- Themes ---------- */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.theme { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #fff; }
.theme .shot { aspect-ratio: 390 / 600; overflow: hidden; background: #EEF3F5; }
.theme .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.theme .body { padding: 16px 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.theme h3 { font-size: 16px; font-weight: 700; }
.theme-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.theme-strip .t { aspect-ratio: 9 / 15; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.theme-strip .t img { width: 100%; height: 100%; object-fit: cover; }
.theme-strip .t.dark img { object-position: 78% 50%; }
.theme-strip .n { margin-top: 8px; font-size: 13px; font-weight: 700; }

/* ---------- Highlights (home) ---------- */
.hl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hl a.card { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 170px; }
.hl .txt { padding: 28px 0 28px 28px; }
.hl .img { position: relative; overflow: hidden; }
.hl .img img { position: absolute; left: 12px; top: 26px; width: 170px; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 12px 28px -18px rgba(28, 80, 96, .5); }
.hl .tree-img img { width: 140px; left: 10px; top: 20px; border: 0; box-shadow: none; border-radius: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.stat { background: #fff; border: 1px solid var(--teal-100); border-radius: 18px; padding: 18px 20px; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--teal-deep); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Next page ---------- */
.next { margin-top: 80px; }
.next a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--slate); color: #fff; border-radius: 26px; padding: 30px 36px;
}
.next .k { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9CD9E3; }
.next .t { margin-top: 4px; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.next .arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.next .arrow svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .stages { grid-template-columns: repeat(3, 1fr); }
  .roots, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .themes { grid-template-columns: repeat(3, 1fr); }
  .theme-strip { grid-template-columns: repeat(4, 1fr); }
  .widgets { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .phones { height: 470px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phones .p1, .phones .p3 { width: 190px; top: 50px; }
  .phones .p2 { width: 220px; }
  .grid-2, .grid-3, .hl, .levels, .steps-row { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; padding: 28px 24px; gap: 28px; }
  .feature.flip .media { order: 0; }
  .feature .media .phone { max-width: 260px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stage .art img { height: 150px; }
  .roots, .grid-4 { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .theme-strip { grid-template-columns: repeat(3, 1fr); }
  .widgets { grid-template-columns: repeat(2, 1fr); }
  .hl a.card { grid-template-columns: 1fr 120px; }
  .hl .img img { width: 130px; }
  .hl .tree-img img { width: 110px; }
  .phones { height: 380px; }
  .phones .p1, .phones .p3 { width: 150px; }
  .phones .p2 { width: 180px; }
  .next a { padding: 24px; } .next .t { font-size: 21px; }
  .section { padding-top: 60px; }
  .band { padding: 60px 0; margin-top: 60px; }
}

/* ---------- Single page ---------- */
section[id] { scroll-margin-top: 84px; }
.chapter { padding-top: 110px; }
.chapter-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; margin-bottom: 44px; }
.chapter-head .big {
  font-size: clamp(64px, 9vw, 120px); line-height: .8; font-weight: 800; letter-spacing: -4px;
  color: transparent; -webkit-text-stroke: 2px #9ED8E2;
}
.chapter-head .eyebrow { margin-bottom: 10px; }
.chapter-head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -1.6px; color: var(--slate); }
.chapter-head p { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 680px; }
.chapter.green .big { -webkit-text-stroke-color: #A8DDBD; }
.chapter.green .eyebrow { color: var(--green); }
.chapter.violet .big { -webkit-text-stroke-color: #C6C4F2; }
.chapter.violet .eyebrow { color: var(--violet); }
.chapter.gold .big { -webkit-text-stroke-color: #E6CF94; }
.chapter.gold .eyebrow { color: var(--gold); }
.sub-head { margin: 64px 0 24px; }
.sub-head h3 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; letter-spacing: -.7px; color: var(--slate); }
.sub-head p { margin-top: 8px; font-size: 17px; color: var(--muted); max-width: 680px; line-height: 1.6; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: linear-gradient(90deg, var(--teal), #3DB475); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Motion ---------- */
:root { --ease: cubic-bezier(.22, .72, .18, 1); }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.fade { transform: none; }
.js .reveal.scale { transform: scale(.96); }
.js .reveal.scale.in { transform: none; }

/* Hero entrance */
.js .hero .rise { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .phones .phone { opacity: 0; animation: phoneIn 1.2s var(--ease) forwards; }
.js .phones .p1 { --r: -5deg; animation-delay: .35s; }
.js .phones .p2 { animation-delay: .2s; }
.js .phones .p3 { --r: 5deg; animation-delay: .5s; }
@keyframes phoneIn { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
.phones .float { animation: float 7s ease-in-out infinite; }
.phones .p2 .scr { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Tree stages grow from the ground */
.js .stage .art img { transform: scale(.82) translateY(10px); transform-origin: 50% 100%; opacity: 0; transition: transform 1.1s var(--ease), opacity .8s var(--ease); transition-delay: calc(var(--d, 0s) + .15s); }
.js .stage.in .art img { transform: none; opacity: 1; }
.stage .art img { transition: transform .5s var(--ease); }
.stage:hover .art img { transform: scale(1.04); }

/* Bars fill */
.js .root .bar span { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease); transition-delay: calc(var(--d, 0s) + .3s); }
.js .root.in .bar span { transform: scaleX(1); }

/* Long screenshots scroll slowly inside the phone */
.phone .scr.auto img { height: auto; object-fit: initial; will-change: transform; }
.phone .scr.auto.run img { animation: pan var(--dur, 14s) ease-in-out infinite alternate; }
@keyframes pan { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(var(--dist, 0px)); } }

/* Hover polish */
.card, .theme, .root, .level { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.theme:hover, .root:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(28, 80, 96, .45); }
.theme .shot img { transition: transform .9s var(--ease); }
.theme:hover .shot img { transform: scale(1.04); }
.theme-strip .t img { transition: transform .9s var(--ease); }
.theme-strip .t:hover img { transform: scale(1.06); }
.widgets img { transition: transform .5s var(--ease); }
.widgets figure:hover img { transform: translateY(-4px) rotate(-1deg); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero .rise, .js .stage .art img, .js .root .bar span { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .phones .phone { opacity: 1 !important; animation: none !important; translate: none !important; }
  .phones .float, .phones .p2 .scr, .phone .scr.auto.run img { animation: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 860px) {
  .chapter { padding-top: 80px; }
  .chapter-head { grid-template-columns: 1fr; gap: 6px; }
  .chapter-head .big { font-size: 64px; }
}

/* ---------- Devices ---------- */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.device { border: 1px solid var(--line); border-radius: 26px; padding: 22px 24px 26px; background: #fff; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.device:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(28, 80, 96, .45); }
.device .pic { aspect-ratio: 1 / 1; border-radius: 20px; background: radial-gradient(circle at 50% 45%, #fff 0%, #EEF6F8 75%); display: grid; place-items: center; overflow: hidden; }
.device .pic img { width: 88%; transition: transform .9s var(--ease); }
.device:hover .pic img { transform: scale(1.05) rotate(-2deg); }
.device .code { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--teal-deep); }
.device h3 { margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.device p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.device.featured { border-color: #F3C9D6; background: linear-gradient(180deg, #fff 0%, #FFF6F9 100%); }
.device.featured .pic { background: radial-gradient(circle at 50% 45%, #fff 0%, #FBEAF0 80%); }
.pill.ecg { color: #C2185B; background: #FCE4EC; letter-spacing: .02em; }

.matrix { margin-top: 26px; border: 1px solid var(--line); border-radius: 22px; overflow-x: auto; background: #fff; }
.matrix table { width: 100%; border-collapse: collapse; min-width: 520px; }
.matrix th, .matrix td { padding: 14px 20px; text-align: center; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.matrix th { font-size: 14px; font-weight: 700; color: var(--slate); background: var(--bg-soft); }
.matrix th small { display: block; font-size: 12px; font-weight: 600; color: var(--soft); letter-spacing: .08em; }
.matrix td:first-child, .matrix th:first-child { text-align: left; color: var(--ink); }
.matrix tr:last-child td { border-bottom: 0; }
.matrix td.y::before, .matrix td.n::before { content: ""; display: inline-block; width: 22px; height: 22px; vertical-align: middle; }
.matrix td.y::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324B3C7' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain; }
.matrix td.n::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4CED3' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") no-repeat center / contain; }
.matrix tr.ecg-row td { background: #FFF6F9; }
.matrix tr.ecg-row td.y::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2185B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

.feature .media.ecg-pair { gap: 14px; }
.feature:has(.ecg-pair) { grid-template-columns: 1fr 440px; }
.ecg-pair .phone { max-width: 210px; }
.ecg-pair .phone:last-child { margin-top: 40px; }

/* ---------- Language switch ---------- */

@media (max-width: 1020px) {
  .devices { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .feature:has(.ecg-pair) { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .devices { grid-template-columns: 1fr; }
  .device { display: grid; grid-template-columns: 120px 1fr; column-gap: 18px; align-items: center; }
  .device .pic { grid-row: span 3; }
  .device .code { margin-top: 0; }
}
@media (max-width: 560px) {
  .ecg-pair .phone { max-width: 160px; }
}

/* ---------- Floating navbar ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none; }
.site-header .bar {
  pointer-events: auto; position: relative;
  max-width: 1160px; margin: 0 auto; height: 64px; padding: 0 8px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(28, 80, 96, .08); border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(28, 80, 96, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: height .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled .bar { height: 58px; background: rgba(255, 255, 255, .9); box-shadow: 0 14px 36px -18px rgba(28, 80, 96, .45), inset 0 1px 0 #fff; }
.brand img { height: 44px; width: auto; transition: height .4s var(--ease); }
.site-header.scrolled .brand img { height: 40px; }
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; z-index: 1;
  font-size: 14.5px; font-weight: 600; color: var(--muted); letter-spacing: -.1px;
  padding: 8px 14px; border-radius: 999px; transition: color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-deep); }
.nav-ind {
  position: absolute; z-index: 0; top: 50%; left: 0; height: 36px; width: 0; translate: 0 -50%;
  border-radius: 999px; background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-100);
  opacity: 0; transition: left .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav-ind.on { opacity: 1; }
.head-right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; background: rgba(28, 80, 96, .06); }
.lang a { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; color: var(--muted); transition: background .25s, color .25s; }
.lang a.on { background: #fff; color: var(--slate); box-shadow: 0 1px 3px rgba(28, 80, 96, .18); }
.cta {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--slate); color: #fff; font-size: 14.5px; font-weight: 700;
  transition: background .25s, transform .25s var(--ease);
}
.cta:hover { background: var(--teal-deep); transform: translateY(-1px); }
.cta svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(28, 80, 96, .06); align-items: center; justify-content: center;
}
.menu-btn svg { width: 20px; height: 20px; stroke: var(--slate); fill: none; stroke-width: 2.2; stroke-linecap: round; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] svg { transform: rotate(90deg); }
.progress { z-index: 60; }
section[id], div[id] { scroll-margin-top: 100px; }
.hero .wrap { padding-top: 140px; }

/* ---------- Hero download ---------- */
.download { margin-top: 30px; }
.dl-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { display: inline-block; transition: transform .3s var(--ease), filter .3s; }
.badge:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .18)); }
.badge img { height: 50px; width: auto; }
.dl-qrs { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.qr {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 18px;
  background: #fff; border: 1px solid var(--teal-100); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.qr:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(28, 80, 96, .5); }
.qr img { width: 86px; height: 86px; border-radius: 10px; }
.qr span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.qr span b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 700; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee .track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .set { display: flex; align-items: center; gap: 26px; padding-right: 26px; }
.marquee a { font-size: 18px; font-weight: 700; color: var(--slate); letter-spacing: -.3px; white-space: nowrap; transition: color .2s; }
.marquee a:hover { color: var(--teal); }
.marquee i { font-style: normal; color: var(--teal); font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 110px; background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--muted); }
.f-grid { display: grid; grid-template-columns: 1.35fr .9fr 1.2fr 1.3fr; gap: 44px; padding-top: 64px; }
.f-brand img { height: 92px; width: auto; }
.f-tag { margin-top: 16px; font-size: 18px; font-weight: 600; color: var(--teal-deep); }
.f-brand p { margin-top: 12px; font-size: 15.5px; line-height: 1.65; }
.f-brand .f-tax b { color: var(--ink); font-weight: 600; }
.site-footer h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.f-links { list-style: none; display: grid; gap: 12px; }
.f-links a { font-size: 15.5px; color: var(--muted); transition: color .2s; }
.f-links a:hover { color: var(--teal-deep); }
.f-item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin-bottom: 18px; }
.f-item svg { width: 20px; height: 20px; margin-top: 2px; stroke: var(--teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f-item b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.f-item a, .f-item span { display: block; font-size: 15px; line-height: 1.6; color: var(--muted); }
.f-item a:hover { color: var(--teal-deep); }
.f-fan { display: inline-block; margin-top: 4px; font-size: 15.5px; font-weight: 600; color: var(--teal-deep); }
.f-fan:hover { text-decoration: underline; }
.f-bottom { margin-top: 44px; padding: 26px 0 34px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.f-bottom .disc { font-size: 14px; line-height: 1.6; max-width: 640px; }
.f-bottom .copy { margin-top: 6px; font-size: 13px; color: var(--soft); }
.logos { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); padding: 10px 18px; border-radius: 14px; flex: none; }
.logos img.i { height: 34px; width: auto; }
.logos img.w { height: 26px; width: auto; }
.logos .sep { width: 1px; height: 28px; background: var(--line); }

@media (max-width: 1020px) {
  .nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav.open { pointer-events: auto; opacity: 1; transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(28, 80, 96, .08); border-radius: 24px; box-shadow: 0 24px 50px -24px rgba(28, 80, 96, .45); }
  .nav-links a { padding: 13px 16px; font-size: 16px; }
  .nav-links a.active { background: var(--teal-50); }
  .nav-ind { display: none; }
  .menu-btn { display: inline-flex; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .dl-qrs { display: none; }
  .hero .wrap { padding-top: 120px; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .site-header { top: 10px; padding: 0 10px; }
  .site-header .bar { height: 58px; padding: 0 6px 0 14px; gap: 8px; }
  .brand img { height: 40px; }
  .site-header.scrolled .brand img { height: 36px; }
  .cta { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .cta span { display: none; }
  .menu-btn { width: 44px; height: 44px; }
  .lang a { padding: 5px 8px; font-size: 11.5px; }
  .badge img { height: 44px; }
  .f-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; }
  .marquee a { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  .marquee .set[aria-hidden] { display: none; }
  .marquee .set { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .marquee .track { width: auto; }
}

/* ---------- How to update ---------- */
.dl-guide { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--teal-deep); border-bottom: 1px solid var(--teal-100); padding-bottom: 2px; transition: border-color .2s, gap .3s var(--ease); }
.dl-guide:hover { border-color: var(--teal); gap: 10px; }
.quick { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 28px 32px; border-radius: 26px; background: linear-gradient(135deg, #F2FAFC 0%, var(--teal-50) 100%); border: 1px solid var(--teal-100); }
.quick .lbl { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.quick h3 { margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--slate); }
.quick p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.quick p b { color: var(--ink); }
.quick-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.os-tabs { margin: 40px 0 24px; display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: rgba(28, 80, 96, .06); }
.os-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--muted); background: transparent; padding: 10px 20px; border-radius: 999px; transition: background .3s var(--ease), color .3s, box-shadow .3s; }
.os-tab svg { width: 18px; height: 18px; fill: currentColor; }
.os-tab.on { background: #fff; color: var(--slate); box-shadow: 0 2px 8px -2px rgba(28, 80, 96, .25); }
.os-panel { display: none; }
.os-panel.on { display: block; animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: none; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -14px; width: 14px; height: 2px; background: var(--teal-100); }
.steps .n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--slate); color: #fff; font-weight: 800; font-size: 17px; }
.steps li:last-child .n { background: var(--teal); }
.steps h4 { font-size: 17px; font-weight: 800; letter-spacing: -.2px; color: var(--ink); }
.steps p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.steps p b { color: var(--ink); font-weight: 600; }
.tip { margin-top: 16px; padding: 16px 20px; border-radius: 16px; background: var(--amber-50); color: #7A5A25; font-size: 15px; line-height: 1.6; }
.tip b { color: #5E4416; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 0 22px; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--teal-100); box-shadow: 0 14px 30px -24px rgba(28, 80, 96, .45); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C8F9F' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") no-repeat center / 14px; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.faq details p a { color: var(--teal-deep); font-weight: 600; }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 860px) {
  .quick { grid-template-columns: 1fr; padding: 24px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { flex-direction: row; align-items: flex-start; padding: 18px; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .os-tabs { display: flex; }
  .os-tab { flex: 1; justify-content: center; padding: 10px 12px; font-size: 14.5px; }
}

/* ---------- Brand in hero + larger navbar logo ---------- */
.site-header .bar { height: 72px; padding-left: 16px; }
.site-header.scrolled .bar { height: 64px; }
.brand img { height: 56px; }
.site-header.scrolled .brand img { height: 48px; }
.hero .wrap { padding-top: 150px; }
section[id], div[id] { scroll-margin-top: 106px; }

.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 78% 45%, rgba(36, 179, 199, .14) 0%, rgba(36, 179, 199, 0) 70%),
              radial-gradient(40% 40% at 8% 10%, rgba(36, 179, 199, .08) 0%, rgba(36, 179, 199, 0) 70%);
}
.hero-mark {
  position: absolute; z-index: -1; pointer-events: none; user-select: none;
  right: max(-80px, calc(50% - 760px)); top: 96px; width: min(760px, 64vw); opacity: .13;
  filter: saturate(1.1); transform-origin: 50% 80%;
  animation: markIn 1.6s var(--ease) both, breathe 12s ease-in-out 1.6s infinite;
}
@keyframes markIn { from { opacity: 0; transform: scale(.92) translateY(30px); } to { opacity: .13; transform: none; } }
@keyframes breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.025) rotate(-1deg); } }

.lockup { display: inline-flex; align-items: center; gap: 16px; }
.lockup-logo {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: #fff;
  box-shadow: 0 14px 34px -18px rgba(28, 80, 96, .45), inset 0 0 0 1px rgba(28, 80, 96, .06);
}
.lockup-logo img { width: 66px; height: auto; }
.lockup-txt { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid var(--teal-100); }
.lockup-txt .eyebrow { margin: 0; }
.lockup-txt b { font-size: 20px; font-weight: 800; letter-spacing: -.3px; color: var(--slate); }
.hero h1 { margin-top: 26px; }

@media (max-width: 860px) {
  .hero .wrap { padding-top: 128px; }
  .hero-mark { top: auto; bottom: 40px; right: -60px; width: 90vw; opacity: .07; }
}
@media (max-width: 560px) {
  .site-header .bar { height: 64px; padding-left: 12px; }
  .site-header.scrolled .bar { height: 60px; }
  .brand img { height: 48px; }
  .site-header.scrolled .brand img { height: 44px; }
  .lockup-logo { width: 68px; height: 68px; border-radius: 20px; }
  .lockup-logo img { width: 54px; }
  .lockup-txt b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark { animation: none; }
}
