/* Be Vietnam Pro (SIL OFL 1.1, xem fonts/OFL.txt) — tự host: khách vào trang không gửi yêu cầu nào tới Google.
   Sinh từ Google Fonts css2 ngày 2026-12-03; unicode-range giữ nguyên để trình duyệt chỉ tải subset cần. */
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-400-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:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-400-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:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-400-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}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-500-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:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-500-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:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-500-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}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-600-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:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-600-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:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-600-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}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-700-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:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-700-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:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-700-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}
/* ─────────────────────────────────────────────────────────────────────────────
   Trang giới thiệu tapchat.cc. Token lấy từ DESIGN.md (thép-platinum lạnh).
   Một màu nhấn duy nhất: thép #556B84 (sáng) / #8EA1B8 (tối).
   Thang bo góc: ô 24 (rounded.xl), bong bóng 16 (rounded.lg), ô biểu tượng 12,
   nút dạng viên thuốc (rounded.full).
   CSP của trang cấm style nội tuyến ⇒ mọi thứ phải nằm trong tệp này, kể cả
   chiều cao từng vạch sóng âm (nth-child), không dùng thuộc tính style="".
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #F6F8FA;
  --bg-band: #EEF1F4;
  --surface: #FFFFFF;
  --ink: #1F2328;
  --ink-2: #57606A;
  --ink-3: #656D76;
  --line: #D1D9E0;
  --accent: #556B84;
  --accent-deep: #2E3A47;
  --accent-soft: #E4E9EF;
  --btn-from: #5A6F87;
  --btn-to: #2C3742;
  --on-btn: #FFFFFF;
  --chat-wall: #E6DFD3;
  --bubble-sent: #34414F;
  --bubble-sent-ink: #FFFFFF;
  --bubble-recv: #FFFFFF;
  --bubble-recv-ink: #1F2328;
  --bubble-meta: #6E7781;
  --tile-dark: #1C2333;
  --tile-dark-ink: #F0F6FC;
  --tile-dark-ink-2: #B1BAC4;
  --glass: rgb(255 255 255 / .66);
  --glass-edge: rgb(255 255 255 / .7);
  --glass-solid: #FFFFFF;
  --shadow-tint: 46 58 71;
  --focus: #2E3A47;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1117;
    --bg-band: #11161D;
    --surface: #161B22;
    --ink: #F0F6FC;
    --ink-2: #B1BAC4;
    --ink-3: #8B949E;
    --line: #30363D;
    --accent: #8EA1B8;
    --accent-deep: #C9D3DE;
    --accent-soft: #1A222C;
    --chat-wall: #0C110E;
    --bubble-recv: #21262D;
    --bubble-recv-ink: #F0F6FC;
    --bubble-meta: #8B949E;
    --glass: rgb(22 27 34 / .62);
    --glass-edge: rgb(255 255 255 / .12);
    --glass-solid: #161B22;
    --shadow-tint: 0 0 0;
    --focus: #C9D3DE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1117;
  --bg-band: #11161D;
  --surface: #161B22;
  --ink: #F0F6FC;
  --ink-2: #B1BAC4;
  --ink-3: #8B949E;
  --line: #30363D;
  --accent: #8EA1B8;
  --accent-deep: #C9D3DE;
  --accent-soft: #1A222C;
  --chat-wall: #0C110E;
  --bubble-recv: #21262D;
  --bubble-recv-ink: #F0F6FC;
  --bubble-meta: #8B949E;
  --glass: rgb(22 27 34 / .62);
  --glass-edge: rgb(255 255 255 / .12);
  --glass-solid: #161B22;
  --shadow-tint: 0 0 0;
  --focus: #C9D3DE;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 560px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

.icon { width: 22px; height: 22px; flex: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--surface); color: var(--ink); padding: 8px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* ── Nút ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.btn-primary {
  /* Gradient thép chải của app (Gradients.primaryButton). Chữ trắng trên #5A6F87 ≈ 5,2:1. */
  background: linear-gradient(180deg, var(--btn-from), var(--btn-to));
  color: var(--on-btn);
  box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 10px 24px -10px rgb(var(--shadow-tint) / .55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 14px 28px -10px rgb(var(--shadow-tint) / .6); }
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-ghost:active { transform: scale(.98); }

/* ── Thanh điều hướng: XẤP XỈ Liquid Glass trên web (không phải vật liệu của Apple) ── */
.nav-shell {
  position: sticky; top: 0; z-index: 20;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
}
.nav {
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 10px 0 14px;
  border-radius: 999px;
  background: var(--glass-solid);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 8px 30px -14px rgb(var(--shadow-tint) / .45);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav {
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .975rem;
  padding: 8px 14px; border-radius: 999px; transition: color .15s ease, background-color .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--accent-soft); }
.nav .btn { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: 48px;
  padding-block: 40px 56px;
}
.hero-copy { display: grid; gap: 24px; max-width: 42rem; }
.hero h1 {
  font-size: clamp(2.2rem, 3.1vw + .6rem, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
/* Máy tính: hai vế của tiêu đề mỗi vế một dòng (luật hero tối đa 2 dòng). */
@media (min-width: 1100px) { .hero h1 em { display: block; } }
.lede { font-size: clamp(1.0625rem, .6vw + .9rem, 1.25rem); color: var(--ink-2); max-width: 30rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; justify-self: end; width: min(100%, 540px); }
.plate {
  position: relative; overflow: hidden; border-radius: 24px;
  width: min(100%, calc(100dvh - 190px)); aspect-ratio: 1; margin-left: auto;
  box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 40px 80px -36px rgb(var(--shadow-tint) / .55), 0 12px 24px -16px rgb(var(--shadow-tint) / .35);
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
/* Ánh kim lướt qua MỘT lần khi tải trang: như mặt thép chải bắt sáng. */
.plate::after {
  content: ""; position: absolute; inset: -20% -60%;
  background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .38) 50%, transparent 60%);
  transform: translateX(-70%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .plate::after { animation: sheen 2.4s cubic-bezier(.4,0,.2,1) .5s 1 both; }
}
@keyframes sheen { to { transform: translateX(70%); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: 32px 48px; gap: 36px; }
  .hero-copy { max-width: none; }
  .hero-art { justify-self: start; width: min(100%, 380px); }
  .plate { width: 100%; margin-left: 0; }
}

/* ── Khung section chung ───────────────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-band { background: var(--bg-band); }
.section-head { display: grid; gap: 16px; max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section h2 { font-size: clamp(1.85rem, 2.4vw + 1rem, 2.9rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.section-head p { color: var(--ink-2); font-size: 1.125rem; max-width: 40rem; }

/* ── Đường đi của một tin nhắn ─────────────────────────────────────────── */
.route { position: relative; }
.route-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.route-track {
  position: absolute; left: 12px; right: 12px; top: 11px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  overflow: hidden; border-radius: 2px;
}
.pulse { position: absolute; inset: 0; transform: translateX(-100%); }
.pulse::after {
  content: ""; position: absolute; right: 0; top: 0; width: 56px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: travel 3.6s cubic-bezier(.45,0,.25,1) infinite; }
}
@keyframes travel { 0% { transform: translateX(-100%); } 70%, 100% { transform: translateX(0); } }
.hop { position: relative; display: grid; gap: 12px; align-content: start; }
.hop-dot {
  width: 24px; height: 24px; border-radius: 999px; background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--accent); position: relative;
}
.hop-dot::after { content: ""; position: absolute; inset: 7px; border-radius: 999px; background: var(--accent); }
.hop h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.hop > p { color: var(--ink-2); font-size: .98rem; }
.sees { display: grid; gap: 6px; font-size: .95rem; padding-top: 4px; }
.sees div { display: grid; gap: 0; }
.sees dt { color: var(--ink-3); font-weight: 500; font-size: .875rem; }
.sees dd { color: var(--ink); }
.route-note { margin-top: 40px; color: var(--ink-2); max-width: 46rem; font-size: .98rem; }
@media (max-width: 900px) {
  .route { padding-left: 40px; }
  .route-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .route-track {
    left: 11px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px);
  }
  .pulse { transform: translateY(-100%); }
  .pulse::after { right: auto; top: auto; bottom: 0; width: 2px; height: 56px; background: linear-gradient(180deg, transparent, var(--accent)); }
  .hop-dot { position: absolute; left: -40px; top: 2px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .pulse { animation-name: travel-y; }
}
@keyframes travel-y { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(0); } }

/* ── Bảo mật: cột trái ghim, cột phải danh sách ────────────────────────── */
.privacy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.privacy-aside { position: sticky; top: 112px; display: grid; gap: 24px; }
.privacy-aside > p { color: var(--ink-2); font-size: 1.125rem; }
.candor { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; display: grid; gap: 8px; }
.candor strong { font-weight: 600; color: var(--ink); }
.candor p { color: var(--ink-2); font-size: 1rem; }
.guards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
.guard { display: grid; gap: 10px; align-content: start; }
.guard-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.guard h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.005em; }
.guard p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 900px) {
  .privacy { grid-template-columns: minmax(0, 1fr); }
  .privacy-aside { position: static; }
}
@media (max-width: 560px) {
  .guards { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ── Hai hàng tính năng có bong bóng chat ──────────────────────────────── */
.showcase { display: grid; gap: clamp(64px, 8vw, 104px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-copy { display: grid; gap: 16px; max-width: 30rem; }
.feature-copy h3 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.1rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.feature-copy p { color: var(--ink-2); }
.feature.flip .feature-copy { order: 2; }
.chat {
  /* Nền chat mặc định của TapChat: phẳng #E6DFD3 (sáng) / #0C110E (tối), appearance_vectors.json. */
  background: var(--chat-wall);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 10px; align-content: center;
  min-height: 300px;
}
.bubble {
  max-width: min(88%, 380px);
  padding: 10px 14px 8px;
  border-radius: 16px;
  font-size: .975rem; line-height: 1.5;
  box-shadow: 0 1px 1px rgb(0 0 0 / .08);
}
.bubble.in { justify-self: start; background: var(--bubble-recv); color: var(--bubble-recv-ink); border-bottom-left-radius: 6px; }
.bubble.out { justify-self: end; background: var(--bubble-sent); color: var(--bubble-sent-ink); border-bottom-right-radius: 6px; }
.meta { display: block; text-align: right; font-size: .75rem; margin-top: 2px; color: var(--bubble-meta); }
.bubble.out .meta { color: rgb(255 255 255 / .72); }
.voice { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; min-width: min(300px, 70vw); }
.play { width: 40px; height: 40px; border-radius: 999px; background: #556B84; display: grid; place-items: center; }
.play::before { content: ""; margin-left: 3px; border-left: 12px solid #FFFFFF; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; overflow: hidden; }
.wave i { width: 3px; flex: none; border-radius: 3px; background: currentColor; opacity: .5; height: 30%; }
.wave i:nth-child(7n+1) { height: 45%; } .wave i:nth-child(7n+2) { height: 80%; }
.wave i:nth-child(7n+3) { height: 60%; } .wave i:nth-child(7n+4) { height: 100%; }
.wave i:nth-child(7n+5) { height: 35%; } .wave i:nth-child(7n+6) { height: 70%; }
.voice-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .75rem; color: var(--bubble-meta); margin-top: 4px; }
.transcript-btn {
  font: inherit; font-size: .8125rem; font-weight: 600; color: var(--accent);
  background: none; border: 0; padding: 6px 0; min-height: 32px; cursor: pointer;
}
.transcript { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .95rem; }
.file { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.file-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgb(255 255 255 / .14); color: #FFFFFF;
}
.bubble.in .file-badge { background: var(--accent-soft); color: var(--accent); }
.file b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.file small { font-size: .8125rem; opacity: .8; }
.action-chip {
  justify-self: end; display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  background: var(--glass-solid); color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / .1);
}
.action-chip .icon { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
}

/* ── Lưới cộng đồng: đúng 4 ô, nhịp không đều ──────────────────────────── */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cell { border-radius: 24px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; min-height: 220px; }
.cell h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.cell p { color: var(--ink-2); }
.cell .icon { width: 28px; height: 28px; color: var(--accent); }
.cell-wide { grid-column: span 2; }
.cell-steel { background: var(--accent-soft); }
.cell-plain { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cell-dark { background: var(--tile-dark); }
.cell-dark h3 { color: var(--tile-dark-ink); }
.cell-dark p { color: var(--tile-dark-ink-2); }
.cell-dark .icon { color: #8EA1B8; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.topics li {
  font-size: .875rem; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
}
.hook {
  margin: 8px 0 0; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .8125rem;
  color: #C9D3DE; background: rgb(255 255 255 / .06); border-radius: 12px; padding: 12px 14px;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .cell-wide { grid-column: auto; }
  .cell { min-height: 0; }
}

/* ── Dải số: của riêng bạn ─────────────────────────────────────────────── */
.numbers { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.number { flex: 1 1 15rem; padding: 32px 32px 8px 0; display: grid; gap: 8px; align-content: start; }
.number + .number { padding-left: 32px; border-left: 1px solid var(--line); }
.number strong {
  font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1; font-weight: 700; letter-spacing: -.04em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.number span { font-weight: 600; font-size: 1.1rem; }
.number p { color: var(--ink-2); font-size: .975rem; max-width: 20rem; }
@media (max-width: 720px) {
  .number { flex-basis: 100%; padding: 24px 0 8px; }
  .number + .number { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ── Nền tảng: 1 ô lớn + 2 ô ───────────────────────────────────────────── */
.platforms { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.plat { border-radius: 24px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: start; }
.plat h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.015em; display: flex; align-items: center; gap: 12px; }
.plat h3 .icon { width: 28px; height: 28px; color: var(--accent); }
.plat p { color: var(--ink-2); }
.plat-web {
  grid-row: span 2;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(142 161 184 / .35), transparent 60%),
    var(--accent-soft);
  align-content: space-between; gap: 32px;
}
.plat-web .steps { display: grid; gap: 12px; counter-reset: s; }
.plat-web .steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: baseline; color: var(--ink); }
.plat-web .steps li::before {
  counter-increment: s; content: counter(s);
  width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent);
}
.plat-mobile { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.status { font-size: .875rem; font-weight: 600; color: var(--ink-3); }
@media (max-width: 900px) {
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .plat-web { grid-row: auto; }
}

/* ── Chân trang ───────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding-block: 8px; display: inline-block; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer small { color: var(--ink-3); font-size: .875rem; }

/* ── Hiện dần khi cuộn: chỉ khi có JS VÀ người dùng không xin giảm chuyển động ── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="2"] { transition-delay: .08s; }
  .js [data-reveal="3"] { transition-delay: .16s; }
  .js [data-reveal="4"] { transition-delay: .24s; }
}

/* ── Trang 404 ────────────────────────────────────────────────────────── */
.lost { min-height: 70dvh; display: grid; place-content: center; gap: 20px; text-align: center; padding-block: 64px; }
.lost h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
.lost p { color: var(--ink-2); }
.lost .cta-row { justify-content: center; }
