/* Kinnect website — dùng chung màu, font và thành phần với app web */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #15161a;
  --ink-2: #3a3b45;
  --muted: #6b6f7b;
  --line: #e6e7ee;
  --soft: #f1f2f6;
  --primary: #6d4aff;
  --primary-ink: #4b2fd6;
  --primary-soft: #efebff;
  --like: #ff4f9a;
  --grad: linear-gradient(135deg, #6d4aff 0%, #b23cf0 55%, #ff4f9a 100%);
  --radius: 20px;
  --shadow: 0 1px 2px #0000000d, 0 8px 24px -12px #2a1d6626;
  --shadow-lg: 0 30px 60px -24px #2a1d6655;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f14;
    --card: #1a1a22;
    --ink: #f2f2f7;
    --ink-2: #d4d4de;
    --muted: #a3a3b2;
    --line: #2a2a35;
    --soft: #23232d;
    --primary: #8b6dff;
    --primary-ink: #b8a6ff;
    --primary-soft: #241d45;
    --shadow: 0 1px 2px #0006, 0 8px 24px -12px #0008;
    color-scheme: dark;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.skip:focus {
  top: 12px;
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -10px #6d4affaa;
}
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--primary);
  color: var(--primary-ink);
}
.btn-white {
  background: #fff;
  color: #3b23b8;
}
.btn-line-white {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px #ffffffaa;
}

/* ---------- Thanh trên ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 20px -16px #0004;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 22px;
  letter-spacing: -0.6px;
}
.logo img {
  width: 36px;
  height: 36px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-actions .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14.5px;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: var(--soft);
  cursor: pointer;
  place-items: center;
}
.menu-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------- Phần đầu trang ---------- */
.hero {
  position: relative;
  padding: 56px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero::before {
  width: 520px;
  height: 520px;
  background: #8b6dff;
  top: -220px;
  left: -160px;
}
.hero::after {
  width: 460px;
  height: 460px;
  background: #ff6b8b;
  right: -160px;
  top: 120px;
  opacity: 0.32;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.pill b {
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -2.2px;
  font-weight: 850;
  margin: 22px 0 18px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 30px;
}

/* Khối tải app */
.get {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 600px;
}
.get-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1.5px solid var(--line);
  text-align: left;
  cursor: pointer;
  min-height: 112px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.get-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.get-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex: 0 0 40px;
}
.get-ico svg {
  width: 22px;
  height: 22px;
}
.get-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.get-txt small {
  font-size: 13px;
  color: var(--muted);
}
.get-txt b {
  font-size: 16.5px;
}
.get-btn.recommended {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 36px -16px #6d4affcc;
}
.get-btn.recommended .get-ico {
  background: #ffffff2e;
  color: #fff;
}
.get-btn.recommended .get-txt small {
  color: #ffffffd9;
}
.get-btn .badge {
  position: absolute;
  top: -11px;
  left: 14px;
  display: none;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  color: var(--like);
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px #0005;
}
.get-btn.recommended .badge {
  display: block;
}
.get-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.qr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
}
.qr img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}
.qr p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.qr span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--muted);
  list-style: none;
  padding: 0;
  margin: 0;
}
.facts li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  margin-right: 6px;
}

/* Khung điện thoại */
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 390 / 844;
  border-radius: 46px;
  padding: 10px;
  background: #121318;
  box-shadow: 0 0 0 1.5px #3a3b44, var(--shadow-lg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 999px;
  background: #121318;
  z-index: 3;
}
.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #f0f2f5;
}
.phone .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.slides img {
  opacity: 0;
  transition: opacity 0.8s;
}
.slides img.on {
  opacity: 1;
}
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 40px;
}
.hero-art .phone.back {
  position: absolute;
  width: 250px;
  top: 40px;
  left: 50%;
  transform: translateX(30px) rotate(7deg);
  z-index: 0;
}
.hero-art .phone.front {
  z-index: 1;
  transform: translateX(-110px) rotate(-3deg);
}
.float {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 700;
  animation: bob 5s ease-in-out infinite alternate;
}
.float .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px #22c55e30;
}
.float.f1 {
  top: 70px;
  left: 0;
}
.float.f2 {
  bottom: 110px;
  right: 0;
  animation-delay: -2.5s;
}
.float.f2 b {
  color: var(--like);
}
@keyframes bob {
  to {
    transform: translateY(-10px);
  }
}
.dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  justify-content: center;
}
.dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c9c6d8;
  transition: width 0.2s;
}
.dots button[aria-selected="true"]::before {
  width: 22px;
  background: var(--primary);
}

/* ---------- Dải tin cậy ---------- */
.trust ul {
  list-style: none;
  margin: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
}
.trust li > span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  font-size: 20px;
}
.trust b {
  display: block;
  font-size: 15.5px;
}
.trust small {
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Mục chung ---------- */
.section {
  padding: 96px 0;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary-ink);
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.4px;
  font-weight: 850;
  margin: 16px 0 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

/* Tính năng xen kẽ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0;
}
.feature + .feature {
  border-top: 1px solid var(--line);
}
.feature.flip .feature-art {
  order: 2;
}
.feature-art {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 30px 0;
}
.feature-art::before {
  content: "";
  position: absolute;
  inset: 8% 14%;
  border-radius: 40px;
  background: var(--grad);
  opacity: 0.14;
  transform: rotate(-4deg);
}
.feature-art .phone {
  width: 270px;
}
.feature h3 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.9px;
  margin: 14px 0 12px;
}
.feature p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 18px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  display: flex;
  gap: 10px;
  font-size: 16px;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%236d4aff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  margin-top: 2px;
}

/* Màn video dựng bằng CSS (giống app) */
.video-screen {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 30% 30%, #6d4affcc, transparent), radial-gradient(60% 45% at 75% 70%, #ff4f9aaa, transparent), linear-gradient(180deg, #1b1340, #0b0a12);
  color: #fff;
  font-size: 13px;
}
.vs-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 56px;
  font-size: 13px;
  color: #ffffffaa;
}
.vs-tabs b {
  color: #fff;
  border-bottom: 2px solid #fff;
  padding-bottom: 3px;
}
.vs-play {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: #ffffff2a;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.vs-side {
  position: absolute;
  right: 10px;
  bottom: 110px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  font-size: 22px;
}
.vs-side span {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.vs-side small {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}
.vs-side .on {
  color: var(--like);
  animation: beat 1.4s infinite;
}
@keyframes beat {
  50% {
    transform: scale(1.18);
  }
}
.vs-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8bd0ff, #6d4aff);
  box-shadow: 0 0 0 2px #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}
.vs-cap {
  position: absolute;
  left: 14px;
  right: 70px;
  bottom: 84px;
  line-height: 1.4;
}
.vs-cap p {
  margin: 4px 0;
}
.vs-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 11px;
  color: #ffffffaa;
}
.vs-nav i {
  font-style: normal;
  width: 44px;
  height: 30px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.vs-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  height: 3px;
  background: #ffffff33;
}
.vs-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  animation: prog 6s linear infinite;
}
@keyframes prog {
  to {
    width: 100%;
  }
}

/* ---------- An toàn ---------- */
.safety {
  background: linear-gradient(160deg, #1b1340, #0d0c16 70%);
  color: #f2f0ff;
  border-radius: 36px;
  padding: 72px 56px;
}
.safety .eyebrow {
  background: #ffffff1a;
  color: #d8ceff;
}
.safety h2 {
  color: #fff;
}
.safety .section-head p {
  color: #c4bfdc;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: #ffffff0d;
  border: 1px solid #ffffff1f;
  border-radius: 22px;
  padding: 24px;
}
.card .ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
.card p {
  margin: 0;
  color: #c4bfdc;
  font-size: 15.5px;
}

/* ---------- Hỏi đáp ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 17px;
  min-height: 64px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 22px;
  font-weight: 500;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}
.faq details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 16px;
}
.faq a,
.doc-body a:not(.btn) {
  color: var(--primary-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Khối tải cuối trang ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--grad);
  color: #fff;
  border-radius: 36px;
  padding: 72px 32px;
}
.cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 60px solid #ffffff14;
  right: -140px;
  top: -160px;
}
.cta h2 {
  color: #fff;
  margin-top: 0;
}
.cta p {
  font-size: 18px;
  color: #ffffffd9;
  max-width: 560px;
  margin: 0 auto 28px;
}
.cta .row {
  position: relative;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Chân trang ---------- */
.site-footer {
  padding: 64px 0 40px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.foot-grid p {
  color: var(--muted);
  font-size: 15px;
  margin: 14px 0 0;
  max-width: 300px;
}
.foot-grid h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 6px 0 10px;
}
.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.foot-grid ul a {
  display: inline-block;
  padding: 8px 0;
  font-size: 15.5px;
  color: var(--ink-2);
}
.foot-grid ul a:hover {
  color: var(--primary-ink);
}
.copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Trang nội dung ---------- */
.page-hero {
  padding: 64px 0 36px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  margin: 16px 0 12px;
}
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 auto;
  max-width: 620px;
}
.page-hero .date {
  font-size: 14px;
  margin-top: 10px;
}
.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
}
.toc {
  position: sticky;
  top: 96px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
}
.toc b {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 6px 10px;
}
.toc a {
  display: block;
  padding: 10px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.toc a:hover {
  background: var(--soft);
  color: var(--primary-ink);
}
.doc-body section {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 30px;
  margin-bottom: 16px;
}
.doc-body h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
.doc-body p {
  color: var(--ink-2);
  font-size: 16.5px;
  margin: 0 0 14px;
}
.doc-body p:last-child {
  margin-bottom: 0;
}
.doc-body .btn {
  margin: 4px 0 14px;
}
.doc-body .note {
  font-size: 15px;
  color: var(--muted);
}
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 0;
}
.notfound .big {
  font-size: clamp(96px, 16vw, 160px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -6px;
}
.notfound p {
  color: var(--muted);
  font-size: 18px;
  margin: 8px 0 26px;
}
.notfound .row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Thanh tải cố định (điện thoại) ---------- */
.sticky-get {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  transform: translateY(150%);
  transition: transform 0.3s;
}
.sticky-get.show {
  transform: none;
}
.sticky-get img {
  width: 40px;
  height: 40px;
}
.sticky-get p {
  margin: 0;
  flex: 1;
  line-height: 1.3;
  font-size: 15px;
}
.sticky-get small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.sticky-get .btn {
  min-height: 44px;
  padding: 0 18px;
}

/* ---------- Hộp hướng dẫn iPhone ---------- */
.sheet {
  border: 0;
  border-radius: 26px;
  padding: 28px;
  width: min(460px, calc(100% - 32px));
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px #0005;
}
.sheet::backdrop {
  background: #0d0b1a99;
  backdrop-filter: blur(4px);
}
.sheet h2 {
  font-size: 28px;
  margin: 12px 0 8px;
}
.sheet p {
  color: var(--muted);
  margin: 0;
}
.sheet ol {
  padding-left: 22px;
  margin: 14px 0 18px;
}
.sheet li {
  margin-bottom: 10px;
  color: var(--ink-2);
}
.sheet .close {
  float: right;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--soft);
  font-size: 22px;
  cursor: pointer;
}
.sheet .btn {
  width: 100%;
}

/* ---------- Hiệu ứng xuất hiện khi cuộn ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Máy tính bảng ---------- */
@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lead,
  .get {
    margin-inline: auto;
  }
  .get-foot {
    justify-content: center;
  }
  .hero-art {
    margin-top: 20px;
  }
  .trust ul,
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .feature.flip .feature-art {
    order: 0;
  }
  .ticks {
    max-width: 440px;
    margin: 0 auto;
    text-align: left;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .doc {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .toc b {
    width: 100%;
  }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 760px) {
  .nav {
    height: 64px;
    gap: 12px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 10px 20px 18px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px #0004;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 12px;
    font-size: 17px;
  }
  .menu-btn {
    display: grid;
  }
  .nav-actions .btn-ghost {
    display: none;
  }
  .hero {
    padding: 32px 0 56px;
  }
  .hero h1 {
    letter-spacing: -1.4px;
  }
  .get {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .get-btn {
    flex-direction: row;
    align-items: center;
    min-height: 72px;
    padding: 14px 16px;
  }
  .get-btn.recommended {
    order: -1;
  }
  .get-btn .badge {
    left: auto;
    right: 14px;
  }
  .qr {
    display: none;
  }
  .hero-art .phone.front {
    width: 250px;
    transform: rotate(-2deg);
  }
  .hero-art .phone.back {
    display: none;
  }
  .float {
    font-size: 13px;
    padding: 8px 12px;
  }
  .float.f1 {
    left: 0;
  }
  .float.f2 {
    right: 0;
  }
  .trust ul {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }
  .trust li {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .section {
    padding: 64px 0;
  }
  .feature-art .phone {
    width: 240px;
  }
  .safety,
  .cta {
    border-radius: 26px;
    padding: 48px 20px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .cta .btn {
    width: 100%;
    max-width: 340px;
  }
  .foot-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .doc-body section {
    padding: 22px 20px;
  }
  .sticky-get {
    display: flex;
  }
  .site-footer {
    padding-bottom: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
/* Web first: shared entry on Android, iOS and desktop. Theme follows the OS. */
.web-hero { padding:72px 0 80px; }
.web-hero::before,.web-hero::after { display:none; }
.web-hero .hero-grid { grid-template-columns:1.1fr .9fr; gap:64px; }
.web-hero .pill { background:var(--primary-soft); color:var(--primary-ink); box-shadow:none; border:1px solid var(--line); font-size:13px; padding:7px 12px; }
.pill-dot { width:7px; height:7px; border-radius:50%; background:var(--primary); }
.web-hero h1 { font-size:clamp(42px,5.2vw,66px); letter-spacing:-2.6px; line-height:1.12; margin:24px 0 20px; }
.web-hero .lead { font-size:18px; line-height:1.7; max-width:500px; margin-bottom:28px; color:var(--ink-2); }
.web-actions { display:flex; flex-wrap:wrap; gap:12px; max-width:520px; }
.web-actions .btn { min-height:54px; padding:14px 22px; font-size:15px; border-radius:14px; }
.web-actions .web-primary { gap:22px; }
.btn-secondary { background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); cursor:pointer; }
.btn-secondary:hover { background:var(--soft); }
.device-note { font-size:14px; color:var(--ink-2); margin:18px 0 26px; line-height:1.8; }
.device-note span { color:var(--muted); font-size:13px; }
.hero-facts { display:flex; flex-wrap:wrap; gap:10px 18px; font-size:12px; font-weight:600; color:var(--muted); }
.hero-facts span::before { content:'✓'; color:var(--primary-ink); margin-right:6px; }
.apk-link { display:inline-block; margin-top:22px; color:var(--muted); font-size:12px; text-underline-offset:4px; }
.apk-link b { color:var(--primary-ink); font-weight:600; }
.apk-link:hover { text-decoration:underline; }
.web-preview { min-height:620px; padding:12px 0 44px; align-items:center; isolation:isolate; }
.web-preview .phone.front { width:260px; transform:rotate(3deg); z-index:1; }
.web-preview .phone::before { display:none; }
.web-preview .phone { padding:7px; border-radius:34px; }
.web-preview .screen { border-radius:28px; }
.preview-orbit { position:absolute; width:460px; height:460px; max-width:100%; border-radius:50%; background:var(--primary-soft); border:1px solid var(--line); z-index:-1; }
.preview-label { display:flex; align-items:center; gap:12px; position:absolute; z-index:2; border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:var(--shadow-lg); padding:14px 18px; }
.preview-label>span { display:grid; place-items:center; width:36px; height:36px; background:var(--primary-soft); color:var(--primary-ink); font-size:23px; border-radius:11px; }
.preview-label b { display:block; font-size:13px; line-height:1.6; }
.preview-label small { display:block; font-size:11px; color:var(--muted); }
.preview-label-top { top:72px; left:-14px; }
.preview-label-bottom { bottom:90px; right:-4px; }
.preview-caption { position:absolute; bottom:0; margin:0; text-align:center; font-size:11px; color:var(--muted); }
.install-tabs { display:flex; gap:6px; margin:20px 0 10px; background:var(--soft); padding:5px; border-radius:12px; }
.install-tabs button { flex:1; border:0; border-radius:9px; padding:10px 6px; font-size:13px; min-height:44px; color:var(--muted); background:transparent; cursor:pointer; }
.install-tabs [aria-selected=true] { color:var(--primary-ink); background:var(--card); box-shadow:var(--shadow); font-weight:700; }
.sheet [role=tabpanel] { min-height:176px; font-size:14px; }
.sheet [hidden] { display:none!important; }
.sheet ol { padding-left:22px; }
.sheet li { padding-left:4px; margin-bottom:10px; }
.sheet { max-height:calc(100dvh - 32px); overflow:auto; }
.site-header { background:var(--card); }
@media(prefers-color-scheme:dark) {
 .web-hero .grad-text { background:linear-gradient(110deg,#a68aff,#f575b5); background-clip:text; -webkit-background-clip:text; }
 .web-preview .preview-orbit { background:#211b35; }
 .web-preview .phone { box-shadow:0 0 0 1px #555262,0 30px 60px -24px #000c; }
}
@media(max-width:1040px) {
 .web-hero .hero-grid { grid-template-columns:1fr; gap:36px; }
 .web-hero .hero-copy { max-width:620px; margin:auto; text-align:center; }
 .web-actions,.hero-facts { justify-content:center; }
 .web-hero .lead,.web-actions { margin-left:auto; margin-right:auto; }
 .web-preview { width:460px; max-width:100%; margin:auto; }
}
@media(max-width:760px) {
 .web-hero { padding:34px 0 48px; }
 .web-hero .hero-grid { gap:30px; }
 .web-hero .hero-copy { text-align:left; }
 .web-hero h1 { font-size:clamp(36px,9.6vw,56px); line-height:1.15; letter-spacing:-1.8px; margin:20px 0 16px; }
 .web-hero .lead { font-size:16px; margin-bottom:24px; }
 .web-actions { display:grid; grid-template-columns:1fr; gap:10px; }
 .web-actions .btn { width:100%; min-height:52px; }
 .device-note { margin:14px 0 20px; }
 .hero-facts { justify-content:flex-start; gap:8px 14px; font-size:11px; }
 .apk-link { margin-top:18px; font-size:11px; }
 .web-preview { min-height:530px; padding:10px 0 40px; }
 .web-preview .phone.front { width:220px; transform:rotate(2deg); }
 .preview-orbit { width:330px; height:330px; }
 .preview-label { padding:10px 12px; gap:8px; border-radius:13px; }
 .preview-label>span { width:30px; height:30px; font-size:20px; }
 .preview-label b { font-size:11px; }.preview-label small { font-size:10px; }
 .preview-label-top { top:54px; left:0; }.preview-label-bottom { bottom:76px; right:0; }
 .preview-caption { font-size:10px; }
 .nav .logo { font-size:23px; gap:8px; }
 .nav .logo img { width:32px; height:32px; }
 .nav-actions { gap:8px; }.nav-actions .btn { font-size:13px; padding:10px 14px; min-height:42px; }
 .menu-btn { width:42px; height:42px; min-height:42px; padding:10px; }
 .sheet { width:calc(100% - 24px); padding:26px 20px; border-radius:22px; }
 .sheet h2 { font-size:25px; line-height:1.25; }.sheet>p { font-size:14px; }
}
@media(prefers-reduced-motion:reduce) { .web-hero * { animation:none!important; transition:none!important; } }
.web-hero .hero-grid > * { min-width:0; }
.web-hero .hero-copy { width:100%; }
.web-hero .web-actions { min-width:0; }
@media(max-width:1040px) {
 .web-hero .hero-grid { grid-template-columns:minmax(0,1fr); }
 .web-preview { width:100%; max-width:460px; }
}

.download-choice { flex-direction:column; gap:1px; line-height:1.35; }
.download-choice small { font-size:11px; font-weight:400; color:var(--muted); }
.cta .download-choice small { color:inherit; opacity:.85; }
.home-screen-link { display:inline-block; margin-top:20px; padding:8px 0; min-height:44px; border:0; background:transparent; font-size:12px; color:var(--primary-ink); text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.web-actions .download-choice { padding-top:10px; padding-bottom:10px; }

.download-recommendation { display:none; }
html[data-platform=android] .download-choice { position:relative; border-color:var(--primary); background:var(--primary-soft); }
html[data-platform=android] .download-choice .download-recommendation { display:inline-flex; align-items:center; justify-content:center; position:absolute; right:10px; top:-10px; padding:3px 9px; border-radius:999px; background:var(--primary-ink); color:var(--card); font-size:10px; font-weight:700; line-height:1.4; box-shadow:var(--shadow); }
html[data-platform=android] .web-actions .download-choice { color:var(--primary-ink); }
html[data-platform=android] .cta .download-choice { color:var(--primary-ink); }
@media(max-width:760px) { html[data-platform=android] .web-actions { row-gap:16px; } }

/* Hai nút tải: Android (APK) và iPhone/iPad (hồ sơ cài đặt) */
.download-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.download-pair .download-choice { position:relative; }
html[data-platform=ios] .download-choice[data-ios-download] .download-recommendation { display:inline-flex; align-items:center; justify-content:center; position:absolute; right:10px; top:-10px; padding:3px 9px; border-radius:999px; background:var(--primary-ink); color:var(--card); font-size:10px; font-weight:700; line-height:1.4; box-shadow:var(--shadow); }
html[data-platform=android] .download-choice[data-ios-download] .download-recommendation { display:none; }
@media (max-width:380px) { .download-pair { grid-template-columns:1fr; } }
