/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/be-vietnam-pro-1.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;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/be-vietnam-pro-2.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;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/be-vietnam-pro-3.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;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/be-vietnam-pro-4.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;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/be-vietnam-pro-5.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;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/be-vietnam-pro-6.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;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/be-vietnam-pro-7.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;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/be-vietnam-pro-8.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;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/be-vietnam-pro-9.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;
}

/* ==========================================================================
   Uni Call — giao diện 02/12/2026
   Một stylesheet cho các trang sản phẩm (trang pháp lý dùng theme.css riêng).
   Màu theo data-theme do theme.js đặt trước lần vẽ đầu tiên.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-alt: #eaf1f8;
  --surface: #ffffff;
  --surface-2: #f2f6fb;
  --line: #dce6ef;
  --line-strong: #c4d4e2;
  --ink: #0d1b2c;
  --muted: #4b5d72;
  --accent: #0b5cc2;
  --accent-soft: #e3eefb;
  --cta: #0b5cc2;
  --cta-ink: #ffffff;
  --cta-hover: #094a9d;
  --ok: #17713a;
  --ok-soft: #e1f2e7;
  --partial: #0b5cc2;
  --partial-soft: #e4ecfb;
  --no: #a22525;
  --no-soft: #fbe6e6;
  --hero-bg: #e8f2f9;
  --glow-a: #2bdcd04d;
  --glow-b: #0b5cc233;
  --header-bg: #f4f7fbe6;
  --shadow-sm: 0 2px 6px #0d284612;
  --shadow: 0 22px 48px -24px #0d284647;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, .9, .27, 1);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07131d;
  --bg-alt: #0a1a27;
  --surface: #0f2231;
  --surface-2: #132a3c;
  --line: #1e384b;
  --line-strong: #2b4b61;
  --ink: #ecf5fb;
  --muted: #a8bdcd;
  --accent: #73ccff;
  --accent-soft: #15364b;
  --cta: #2bdcd0;
  --cta-ink: #03252b;
  --cta-hover: #78efe5;
  --ok: #92e7b9;
  --ok-soft: #184234;
  --partial: #9cdbff;
  --partial-soft: #193e59;
  --no: #ffb4b4;
  --no-soft: #4a2832;
  --hero-bg: #061522;
  --glow-a: #2bdcd040;
  --glow-b: #3b82f62e;
  --header-bg: #07131de6;
  --shadow-sm: 0 2px 6px #0006;
  --shadow: 0 26px 56px -26px #000c;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
html:lang(en) body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html:lang(zh) body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; line-height: 1.2; text-wrap: balance; }
h1 { padding-bottom: .1em; }
html:lang(en) :is(h1, h2, h3), html:lang(zh) :is(h1, h2, h3) { font-weight: 600; }
html:lang(zh) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.4; }
p { text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus, section:focus, [tabindex="-1"]:focus { outline: none; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 40px); }
.skip { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 16px; border-radius: 10px; background: var(--cta); color: var(--cta-ink); font-weight: 600; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#scroll-progress { position: fixed; z-index: 60; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--cta), var(--accent)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
html:lang(zh) .eyebrow { letter-spacing: .04em; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: clamp(28px, 4vw, 44px); }
.section-heading { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.section-heading h2 > span { color: var(--muted); }
.section-heading > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }

/* ---------- Nút và liên kết ---------- */
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border: 1px solid var(--cta); border-radius: 14px; background: var(--cta); color: var(--cta-ink); font-size: .9375rem; font-weight: 600; line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s var(--ease); }
.button:hover { background: var(--cta-hover); border-color: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 14px 28px -14px var(--cta); }
.button:active { transform: translateY(0); }
.button::after { content: ""; position: absolute; inset: 0 auto 0 -60%; z-index: -1; width: 40%; background: linear-gradient(100deg, transparent, #ffffff59, transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.button:hover::after { left: 120%; }
.button.secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.button.secondary:hover { background: var(--surface-2); border-color: var(--accent); box-shadow: none; }
.button.secondary::after { display: none; }
.play-icon { flex: none; width: 18px; height: 18px; transition: transform .3s var(--ease); }
.button:hover .play-icon { transform: translateX(3px) scale(1.08); }
.link-button, .tile-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--accent); font-size: .9375rem; font-weight: 600; }
.link-button:hover, .tile-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.inline-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.chip { min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: .875rem; transition: border-color .2s, color .2s, background-color .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Đầu trang ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav-wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand-dot { color: var(--cta); }
#navigation { display: flex; align-items: center; gap: 4px; margin-left: auto; }
#navigation a { position: relative; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: .9375rem; font-weight: 500; white-space: nowrap; transition: color .2s, background-color .2s; }
#navigation a:hover { color: var(--ink); background: var(--surface-2); }
#navigation a[aria-current="page"] { color: var(--ink); }
#navigation a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--cta); }
.language-picker { position: relative; flex: none; }
.language-picker > summary { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; list-style: none; }
.language-picker > summary::-webkit-details-marker { display: none; }
.language-picker > summary img { width: 26px; height: auto; border-radius: 3px; }
.language-picker[open] > summary svg { transform: rotate(180deg); }
.language-options { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); animation: pop-in .18s var(--ease); }
.language-options button { display: grid; place-items: center; width: 52px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; }
.language-options button img { width: 30px; height: auto; border-radius: 3px; }
.language-options button:hover, .language-options button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.theme-toggle { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); transition: border-color .2s, transform .3s var(--ease); }
.theme-toggle:hover { border-color: var(--accent); transform: rotate(-12deg); }
.theme-toggle svg { width: 20px; height: 20px; pointer-events: none; }
.theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
.theme-toggle[hidden] { display: none; }
.header-cta { min-height: 40px; padding: 8px 16px; border-radius: 12px; font-size: .875rem; }
.menu-toggle { display: none; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 3px auto; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.download-nav > .link-button { margin-left: auto; font-size: .875rem; }

/* ---------- Chân trang ---------- */
.footer { margin-top: 0; padding-top: 48px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-top > p { color: var(--muted); font-size: .9375rem; }
.footer-top > div { display: grid; gap: 8px; }
.footer-top > div a { color: var(--muted); font-size: .9375rem; transition: color .2s; }
.footer-top > div a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Trang chủ: hero ---------- */
.hero-shell { position: relative; overflow: hidden; background-color: var(--hero-bg); border-bottom: 1px solid var(--line); }
.hero-shell::before, .hero-shell::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero-shell::before { width: 560px; height: 560px; right: -120px; top: -160px; background: var(--glow-a); animation: drift 18s ease-in-out infinite alternate; }
.hero-shell::after { width: 480px; height: 480px; left: -180px; bottom: -220px; background: var(--glow-b); animation: drift 22s ease-in-out infinite alternate-reverse; }
.hero-shell > * { position: relative; z-index: 1; }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .8125rem; font-weight: 600; }
.pill svg { color: var(--accent); }
.pill .times { color: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.2; letter-spacing: -.045em; }
.hero h1 > span { color: var(--accent); }
html:lang(en) .hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); line-height: 1.2; letter-spacing: -.035em; }
html:lang(zh) .hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.25rem); line-height: 1.32; letter-spacing: 0; }
.hero-description { max-width: 30em; margin-top: 20px; color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .button { min-height: 54px; padding-inline: 24px; font-size: 1rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: .9375rem; }
.hero-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.hero-links a:hover { color: var(--accent); border-color: currentColor; }
.hero-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cta); }
.hero-visual { perspective: 1100px; }
.hero-stage { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--ease); }
.hero-art-button { display: block; width: 100%; max-width: 560px; margin-inline: auto; padding: 0; border: 0; border-radius: 32px; background: #061522; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite; }
:root[data-theme="dark"] .hero-art-button { background: transparent; box-shadow: none; -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent); mask-image: radial-gradient(closest-side, #000 78%, transparent); }
.hero-art-image { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-toast { position: absolute; left: 2%; bottom: 14%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border: 1px solid #ffffff1f; border-radius: 18px; background: #0b1f2ee6; color: #fff; box-shadow: 0 18px 40px -16px #000a; backdrop-filter: blur(10px); transform: translateZ(60px); animation: toast-in .8s var(--ease) .6s both; }
.toast-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #22c55e; color: #fff; }
.toast-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #22c55e; animation: ring 1.8s ease-out 1.4s infinite; }
.toast-icon svg { width: 18px; height: 18px; animation: shake 1.8s ease-in-out 1.4s infinite; }
.toast-text { display: grid; line-height: 1.3; }
.toast-text b { font-size: .9375rem; }
.toast-text small { color: #b9cad8; font-size: .8125rem; }
.hero-compatibility { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 22px 30px; border-top: 1px solid var(--line); }
.proof-line { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.hero-brands { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Trang chủ: tra cứu nhanh ---------- */
.quick-section { position: relative; z-index: 2; margin-top: -1px; padding-top: clamp(36px, 5vw, 56px); }
.check-card { padding: clamp(22px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.check-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.check-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.quick-field { position: relative; }
.search-icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.quick-field input, .field input, .field select { width: 100%; min-height: 58px; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface-2); color: var(--ink); font-size: 1.0625rem; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.quick-field input { padding-left: 52px; }
.quick-field input::placeholder, .field input::placeholder { color: var(--muted); opacity: 1; }
.quick-field input:focus-visible, .field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.quick-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .875rem; }
.quick-results { min-height: 64px; margin-top: 16px; }
.quick-hint { color: var(--muted); }
.quick-count { margin-bottom: 10px; color: var(--muted); font-size: .875rem; }
.quick-list { display: grid; gap: 10px; }
.quick-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); animation: rise .35s var(--ease) both; }
.quick-item:nth-child(2) { animation-delay: .05s; }
.quick-item:nth-child(3) { animation-delay: .1s; }
.quick-name b { display: block; font-size: 1rem; }
.quick-name small { color: var(--muted); font-size: .875rem; }
.quick-feats { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.quick-feats li { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; }
.feature-icon { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; font-size: .75rem; font-weight: 700; line-height: 1; }
[data-state="ok"] > .feature-icon, .compat-legend [data-state="ok"] { background: var(--ok-soft); color: var(--ok); }
[data-state="partial"] > .feature-icon, .compat-legend [data-state="partial"] { background: var(--partial-soft); color: var(--partial); }
[data-state="no"] > .feature-icon, .compat-legend [data-state="no"] { background: var(--no-soft); color: var(--no); }

/* ---------- Khung thiết bị ---------- */
.watch { position: relative; display: block; aspect-ratio: 1; padding: 7%; border-radius: 50%; background: radial-gradient(circle at 30% 22%, #6b7b8a, #1c262f 52%, #0a0f14); box-shadow: inset 0 0 0 2px #ffffff1a, inset 0 -6px 14px #0008, 0 26px 44px -24px #000c; }
.watch::after { content: ""; position: absolute; right: -2.6%; top: 40%; width: 4%; height: 14%; border-radius: 4px; background: linear-gradient(#6b7b8a, #27313b); }
.watch img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #000; }
.phone { display: block; width: min(290px, 74vw); margin-inline: auto; padding: 9px; border: 0; border-radius: 46px; background: #0b1118; box-shadow: 0 0 0 2px #2c3a47, 0 34px 60px -28px #000c; cursor: zoom-in; transition: transform .5s var(--ease); }
.phone:hover { transform: translateY(-6px) rotate(-1deg); }
.phone img { width: 100%; aspect-ratio: 540 / 1171; border-radius: 37px; object-fit: cover; background: #10202e; }

/* ---------- Trang chủ: tính năng ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.feature-tile { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.feature-tile .watch { width: 62%; margin: 32px auto 0; transition: transform .6s var(--ease); }
.feature-tile:nth-child(1) { --tint: #1d4ed8; }
.feature-tile:nth-child(2) { --tint: #0f9f8f; }
.feature-tile:nth-child(3) { --tint: #7c3aed; }
.feature-tile::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--tint), transparent); }
.feature-copy { padding: 24px 26px 26px; }
.feature-copy h3 { font-size: 1.375rem; }
.feature-copy p { margin-top: 6px; color: var(--muted); }
.feature-copy .tile-link { margin-top: 14px; }
.feature-copy .tile-link::after { content: "→"; transition: transform .3s var(--ease); }
.feature-tile:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.feature-tile:hover .watch { transform: translateY(-4px) rotate(-4deg) scale(1.03); }
.feature-tile:hover .tile-link::after { transform: translateX(4px); }

/* ---------- Trang chủ: bắt đầu ---------- */
.start-section { padding-top: 0; }
.start-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 32px; background-color: #0b2340; background-image: radial-gradient(ellipse at 100% 0%, #2bdcd033, transparent 55%), radial-gradient(ellipse at 0% 100%, #3b82f62e, transparent 50%); color: #fff; box-shadow: var(--shadow); }
:root[data-theme="dark"] .start-card { background-color: #0d2a3f; border: 1px solid #23465f; }
.start-copy .eyebrow { color: #7fe9df; margin-bottom: 12px; }
.start-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); color: #fff; }
.start-copy .button { margin-top: 26px; background: #2bdcd0; border-color: #2bdcd0; color: #03252b; }
.start-copy .button:hover { background: #78efe5; border-color: #78efe5; box-shadow: 0 14px 28px -14px #2bdcd0; }
.install-note { margin-top: 12px; color: #c4d6e6; font-size: .875rem; }
.start-steps { position: relative; display: grid; gap: 14px; counter-reset: step; }
.start-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 16px 18px; border: 1px solid #ffffff1f; border-radius: 18px; background: #ffffff0d; counter-increment: step; }
.start-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #2bdcd0; color: #03252b; font-weight: 700; font-size: 1.0625rem; }
.start-steps b { color: #fff; font-size: 1.0625rem; line-height: 1.5; }
.start-steps span { color: #c4d6e6; font-size: .9375rem; line-height: 1.6; }

/* ---------- Hỏi đáp và cộng đồng ---------- */
.faq-home { padding-top: 0; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-block h2, .community-block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 16px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; font-size: 1.0625rem; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft) center / 12px no-repeat; background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--accent), var(--accent)); background-size: 12px 2px, 2px 12px; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details > p { padding: 0 4px 22px; color: var(--muted); animation: rise .35s var(--ease) both; }
.faq-block > .tile-link { margin-top: 18px; }
.community-block { padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.community-links { display: grid; gap: 12px; }
.community-links a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); transition: transform .3s var(--ease), border-color .2s; }
.community-links a:hover { transform: translateX(4px); border-color: var(--accent); }
.community-links b { display: block; }
.community-links small { color: var(--muted); font-size: .875rem; }
.community-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.community-icon svg { width: 22px; height: 22px; }

/* ---------- Trang con: đầu trang ---------- */
.page-head { position: relative; overflow: hidden; background-color: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head::before { content: ""; position: absolute; right: -140px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: var(--glow-a); filter: blur(80px); pointer-events: none; animation: drift 20s ease-in-out infinite alternate; }
.page-head > .container { position: relative; padding-block: clamp(44px, 7vw, 88px) clamp(36px, 5vw, 60px); }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { max-width: 16em; font-size: clamp(2.1rem, 5vw, 3.75rem); letter-spacing: -.04em; }
.page-head h1 > span { color: var(--accent); }
.page-lead { max-width: 38em; margin-top: 18px; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.page-head .button { margin-top: 28px; }

/* ---------- Tính năng ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pain-card { position: relative; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pain-number { display: block; margin-bottom: 14px; color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .08em; }
.pain-card h3 { font-size: 1.125rem; line-height: 1.5; }
.pain-card p { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.pain-card strong { color: var(--ink); }
.experience-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.experience-visual { display: grid; place-items: center; padding: clamp(10px, 3vw, 30px); }
.experience-photo { width: min(380px, 78vw); border: 0; cursor: zoom-in; }
.experience-photo img { transition: opacity .3s; }
.feature-tabs { display: grid; gap: 8px; margin-bottom: 26px; }
.feature-tabs button { position: relative; display: flex; align-items: center; gap: 14px; overflow: hidden; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 1.0625rem; font-weight: 600; text-align: left; transition: border-color .2s, color .2s, background-color .2s; }
.feature-tabs button:hover { color: var(--ink); border-color: var(--line-strong); }
.feature-tabs [aria-selected="true"] { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.feature-tabs [aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; }
.feature-tabs[data-autoplay] [aria-selected="true"]::after { animation: tab-progress 6s linear both; }
.feature-tabs[data-autoplay]:not([data-inview]) [aria-selected="true"]::after, .feature-tabs[data-autoplay]:hover [aria-selected="true"]::after { animation-play-state: paused; }
.tab-number { color: var(--accent); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.tab-arrow { margin-left: auto; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--ease); }
.feature-tabs [aria-selected="true"] .tab-arrow { opacity: 1; transform: none; }
.feature-detail h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.feature-detail p { margin-top: 10px; color: var(--muted); }
.feature-next { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.updates { background-color: var(--bg-alt); border-block: 1px solid var(--line); }
.update-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.update-card { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.update-icon { width: 54px; height: 54px; margin-bottom: 18px; color: var(--accent); }
.update-icon svg { width: 100%; height: 100%; }
.motion-ready .update-card.is-visible .update-icon svg path { stroke-dasharray: 180; stroke-dashoffset: 180; animation: draw-line 1.6s ease .2s forwards; }
.update-index { display: block; margin-bottom: 8px; color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }
.update-card h3 { font-size: 1.25rem; }
.update-card p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.update-card .link-button { margin-top: 14px; }
.app-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.app-preview { display: grid; justify-items: center; gap: 20px; }
.phone-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.phone-switch button { min-height: 38px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 600; transition: background-color .2s, color .2s; }
.phone-switch button[aria-pressed="true"] { background: var(--cta); color: var(--cta-ink); }
.app-copy .eyebrow { margin-bottom: 14px; }
.app-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.app-copy h2 > span { color: var(--muted); }
.app-copy > p { margin-top: 14px; color: var(--muted); }
.install-steps { display: grid; gap: 4px; margin-top: 26px; }
.install-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.install-steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: .875rem; font-weight: 700; }
.install-steps h3 { font-size: 1.0625rem; }
.install-steps p { margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }

/* ---------- Thiết bị ---------- */
.device-section { padding-top: clamp(36px, 5vw, 56px); }
.search-panel { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: .875rem; font-weight: 600; }
.field select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; margin-top: 18px; color: var(--muted); font-size: .9375rem; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); animation: rise .4s var(--ease) both; transition: border-color .2s, box-shadow .3s; }
.model-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.model-card:nth-child(3n + 2) { animation-delay: .04s; }
.model-card:nth-child(3n + 3) { animation-delay: .08s; }
.model-card > small { color: var(--muted); font-size: .875rem; }
.model-card h3 { font-size: 1.1875rem; }
.model-type { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8125rem; font-weight: 600; }
.model-features { display: grid; gap: 8px; margin-top: 6px; }
.model-features li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--ink); font-size: .9375rem; line-height: 1.5; }
.model-features .feature-icon { margin-top: 1px; }
.model-card > p { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .875rem; line-height: 1.6; }
#show-more { display: flex; margin: 24px auto 0; }
#show-more[hidden] { display: none; }
.no-results { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 40px; padding: clamp(22px, 3.5vw, 32px); border-radius: 24px; background-color: #0b2340; background-image: radial-gradient(ellipse at 100% 0%, #2bdcd033, transparent 60%); color: #fff; }
:root[data-theme="dark"] .cta-strip { background-color: #0d2a3f; border: 1px solid #23465f; }
.cta-strip h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); color: #fff; }
.cta-strip p { margin-top: 6px; color: #c4d6e6; }
.cta-strip .button { background: #2bdcd0; border-color: #2bdcd0; color: #03252b; }
.cta-strip .button:hover { background: #78efe5; border-color: #78efe5; }
.support-matrix { margin-top: clamp(56px, 8vw, 88px); }
.matrix-title { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.matrix-intro { max-width: 46em; margin-top: 10px; color: var(--muted); }
.compat-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block: 18px; color: var(--muted); font-size: .875rem; }
.compat-legend span { display: inline-flex; align-items: center; gap: 8px; }
.compat-legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .75rem; }
.matrix-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.matrix { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.matrix th, .matrix td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix thead th { background: var(--surface-2); font-weight: 700; color: var(--ink); }
.matrix th small { display: block; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.matrix tbody th { font-weight: 700; }
.mx-cell { display: inline-flex; align-items: flex-start; gap: 8px; }
.mx-cell .feature-icon { margin-top: 2px; }
.matrix tbody tr { transition: background-color .2s; }
.matrix tbody tr:hover { background: var(--surface-2); }

/* ---------- Hướng dẫn ---------- */
.guide-steps { display: grid; gap: 0; counter-reset: none; }
.guide-steps > li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); padding-bottom: clamp(28px, 4vw, 44px); }
.guide-steps > li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: 6px; width: 2px; background: linear-gradient(var(--line-strong), transparent); }
.step-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--cta); color: var(--cta-ink); font-size: 1.375rem; font-weight: 700; box-shadow: 0 12px 24px -12px var(--cta); }
.guide-steps h2 { padding-top: 12px; font-size: clamp(1.25rem, 2.4vw, 1.625rem); }
.guide-steps > li > div > p { margin-top: 6px; color: var(--muted); }
.app-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.app-platforms article { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .2s, transform .3s var(--ease); }
.app-platforms article:hover { border-color: var(--accent); transform: translateY(-3px); }
.app-platforms small { color: var(--accent); font-size: .8125rem; font-weight: 600; }
.app-platforms h3 { margin-top: 4px; font-size: 1.125rem; }
.app-platforms p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.app-platforms-note { margin-top: 16px; color: var(--muted); font-size: .9375rem; }
.mod-teaser { padding-top: 0; }
.mod-teaser-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.mod-teaser-card .section-heading { margin: 0; }
.mod-teaser-card .section-heading h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.mod-teaser-actions { display: grid; justify-items: start; gap: 14px; }
.mod-teaser-card > .trial-side { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }

/* ---------- Hỏi đáp (trang riêng) ---------- */
.faq-section .faq-list { max-width: 860px; }
.community-section { padding-bottom: clamp(56px, 8vw, 96px); }
.community-heading { margin-bottom: 28px; }
.community-heading .eyebrow { margin-bottom: 12px; }
.community-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.community-heading h2 > span { color: var(--muted); }
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.community-card { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .35s var(--ease), border-color .2s, box-shadow .35s; }
.community-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.community-card small { color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }
.community-card h3 { margin-top: 4px; font-size: 1.25rem; }
.community-card p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.community-action { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: .9375rem; }

/* ---------- MiFit mod ---------- */
.mod-band { position: relative; overflow: hidden; background-color: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mod-band::before { content: ""; position: absolute; left: -160px; top: -220px; width: 520px; height: 520px; border-radius: 50%; background: var(--glow-a); filter: blur(80px); pointer-events: none; }
.mod-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.mod-kicker { display: inline-block; margin-bottom: 12px; color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .06em; }
.mod-copy h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -.045em; }
.mod-version { margin-top: 8px; font-weight: 700; font-size: 1.125rem; }
.mod-copy > p:not(.mod-version) { max-width: 30em; margin-top: 16px; color: var(--muted); font-size: 1.0625rem; }
.mod-guide-link { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.mod-download-card { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.mod-file-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); }
.mod-file-icon svg { width: 28px; height: 28px; animation: nudge 2.4s ease-in-out infinite; }
.mod-download-card h2 { margin-top: 18px; font-size: 1.5rem; }
.mod-filename { margin-top: 6px; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.mod-file-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mod-file-meta span { padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8125rem; font-weight: 600; }
.mod-download-card .button { width: 100%; margin-top: 20px; }
.mod-install { padding-block: clamp(48px, 7vw, 88px); }
.mod-install h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 26px; }
.mod-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.mod-steps li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.mod-steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.mod-steps h3 { font-size: 1.125rem; }
.mod-steps p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
/* 04/12/2026: khối "Vì sao phải gỡ Mi Fitness?" — thẻ như các bước, không đánh số */
.mod-why { padding-top: 0; }
.mod-why .mod-steps li::before { content: none; }
.mod-help { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.mod-help a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Trang tải và 404 ---------- */
.download-page { display: flex; flex-direction: column; }
.trial-download-page { flex: 1; padding-block: clamp(36px, 6vw, 80px); }
.launch-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.launch-copy .eyebrow { margin-bottom: 16px; }
.launch-copy h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.1; letter-spacing: -.045em; }
.launch-copy h1 > span { color: var(--accent); }
html:lang(zh) .launch-copy h1 { line-height: 1.35; letter-spacing: 0; }
.launch-copy > p:not(.eyebrow) { max-width: 32em; margin-top: 20px; color: var(--muted); font-size: 1.0625rem; }
.launch-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.launch-copy > .launch-device-note { font-size: .9375rem; }
.download-support { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.launch-card { position: relative; padding: clamp(24px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.launch-card-kicker { color: var(--accent); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; }
.launch-card h3 { margin: 8px 0 22px; font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.install-card-steps { display: grid; gap: 18px; counter-reset: step; }
.install-card-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; counter-increment: step; }
.install-card-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.install-card-steps b { line-height: 1.5; }
.install-card-steps span { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.download-legal { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.download-legal a { color: var(--muted); font-size: .9375rem; }
.download-legal a:hover { color: var(--accent); }
.download-heading { max-width: 640px; }
.download-heading .eyebrow { margin-bottom: 14px; }
.download-heading h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.download-heading > p { margin-top: 18px; color: var(--muted); }
.download-heading > p .button { margin: 6px 8px 0 0; }
.download-heading > p a:not(.button) { color: var(--accent); text-decoration: underline; }

/* ---------- Hộp xem ảnh ---------- */
.photo-dialog { width: min(92vw, 980px); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); overflow: hidden; }
.photo-dialog[open] { animation: pop-in .25s var(--ease); }
.photo-dialog::backdrop { background: #02090fcc; backdrop-filter: blur(4px); }
.photo-dialog img { width: 100%; max-height: 88vh; object-fit: contain; background: #000; }
.dialog-close { position: absolute; right: 12px; top: 12px; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #ffffff40; border-radius: 50%; background: #0b1f2ee6; color: #fff; font-size: 1.5rem; line-height: 1; }
.dialog-fallback { position: fixed; inset: 4vh 4vw; z-index: 90; margin: auto; }

/* ---------- Thanh tải dính đáy (điện thoại) ---------- */
.sticky-cta { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 40px -12px #0007; opacity: 0; visibility: hidden; transform: translateY(140%); transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; }
.sticky-cta b { flex: 1; min-width: 0; font-size: .9375rem; line-height: 1.35; }
.sticky-cta .button { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.sticky-cta.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* ---------- Chuyển động ---------- */
.motion-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 40px, 0) scale(1.15); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes toast-in { from { opacity: 0; transform: translateZ(60px) translateY(24px) scale(.92); } to { opacity: 1; transform: translateZ(60px); } }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes shake { 0%, 40%, 100% { transform: rotate(0); } 8%, 24% { transform: rotate(-14deg); } 16%, 32% { transform: rotate(14deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes tab-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}

/* ---------- Bố cục theo bề rộng ---------- */
@media (max-width: 1100px) {
  .menu-toggle { display: grid; }
  .language-picker { margin-left: auto; }
  #navigation { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px clamp(20px, 4.5vw, 40px) 20px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
  #navigation.open { display: flex; animation: pop-in .2s var(--ease); }
  #navigation a { padding: 12px 14px; font-size: 1.0625rem; }
  #navigation a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
  #navigation a[aria-current="page"]::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { max-width: 480px; width: 100%; margin-inline: auto; }
  .feature-grid, .pain-grid, .update-grid, .mod-steps { grid-template-columns: 1fr; }
  .feature-tile { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
  .feature-tile::before { display: none; }
  .feature-tile .watch { width: 120px; margin: 18px 0 18px 22px; }
  .feature-copy { padding: 18px 20px; }
  .start-card, .faq-layout, .experience-layout, .app-section, .mod-hero, .launch-layout, .mod-teaser-card { grid-template-columns: 1fr; }
  .app-preview { order: 2; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .header-cta { display: none; }
  .sticky-cta { display: flex; }
  .search-panel { grid-template-columns: 1fr; }
  .model-grid, .app-platforms { grid-template-columns: 1fr; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-compatibility { flex-direction: column; align-items: flex-start; }
  .hero-toast { left: 0; bottom: 8%; }
  .matrix-scroll { border: 0; background: transparent; overflow: visible; }
  .matrix thead { display: none; }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: 100%; }
  .matrix tbody tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
  .matrix tbody th { background: var(--surface-2); }
  .matrix td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; padding: 10px 16px; }
  .matrix td::before { content: attr(data-label); color: var(--muted); font-size: .875rem; font-weight: 600; }
  .footer-top { grid-template-columns: 1fr; gap: 18px; }
  body.has-sticky-cta { padding-bottom: 84px; }
  .guide-steps > li { grid-template-columns: 44px minmax(0, 1fr); }
  .step-num { width: 44px; height: 44px; border-radius: 14px; font-size: 1.125rem; }
  .guide-steps > li:not(:last-child)::before { left: 21px; top: 50px; }
  .guide-steps h2 { padding-top: 6px; }
  .launch-actions .button { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  .download-nav > .link-button { display: none; }
  .download-nav .language-picker { margin-left: auto; }
}
@media (max-width: 420px) {
  .nav-wrap { gap: 8px; }
  .brand { font-size: 1.125rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .language-picker > summary { padding: 6px 8px; }
  .language-picker > summary img { width: 22px; }
  .theme-toggle, .menu-toggle { width: 40px; height: 40px; }
  .feature-tile { grid-template-columns: 112px minmax(0, 1fr); }
  .feature-tile .watch { width: 92px; margin-left: 16px; }
  .feature-copy h3 { font-size: 1.1875rem; }
  .start-steps li { grid-template-columns: 38px minmax(0, 1fr); padding: 14px; }
  .start-steps li::before { width: 38px; height: 38px; border-radius: 12px; }
  .community-card { flex-direction: column; gap: 12px; }
}
@media (hover: none) {
  .feature-tile:hover, .pain-card:hover, .community-card:hover, .app-platforms article:hover, .phone:hover { transform: none; }
}
