/* Landing (index.html), theo design "Landing page · 6 ngôn ngữ" trên canvas
   Mini QR & Barcode 2.0 – UI. Các trang pháp lý vẫn dùng style.css.
   Font tự host trong assets/fonts (giấy phép OFL, file OFL-*.txt cạnh font) để
   trang không gửi IP người xem cho bên thứ ba. Chỉ bộ latin + tiếng Việt; chữ
   Nhật dùng font hệ thống. */
@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.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.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.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.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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-500-800-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-500-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0B0C0E;
  --bg-deep: #070809;
  --surface: #15171B;
  --pro-surface: #1B1F12;
  --line: #1F2227;
  --line-2: #23262C;
  --line-3: #2A2E35;
  --line-4: #3A3F47;
  --ink: #F2F3F5;
  --ink-2: #DDE1E6;
  --ink-3: #C3C8D0;
  --ink-4: #A3AAB5;
  --ink-5: #7E8692;
  --lime: #D4FF5A;
  --lime-hover: #E6FF7D;
  --on-lime-muted: #2A3410;
  --amber: #FFCB7A;
  --display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  color-scheme: dark;
}

/* landing.js ẩn trang tới khi thay xong chữ (ngôn ngữ khác tiếng Việt). */
html.i18n-pending body { visibility: hidden; }

/* Ảnh màn hình app: bản tiếng Việt cho vi, bản tiếng Anh cho các ngôn ngữ khác. */
html:not([data-lang="vi"]) .only-vi,
html[data-lang="vi"] .not-vi { display: none; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI",
    "Hiragino Sans", "Noto Sans JP", Roboto, sans-serif;
}

/* Tiếng Nhật không có dấu cách: ngắt dòng theo cụm từ thay vì giữa từ. */
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { word-break: auto-phrase; }

a { color: var(--lime); }
a:hover { color: var(--lime-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: 10px; background: var(--lime); color: var(--bg); font-weight: 700;
}
.skip:focus { top: 16px; }

.check {
  flex: none; width: 18px; height: 18px; margin-top: 3px;
  fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

.h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.btn-lime {
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 18px; border-radius: 12px;
  background: var(--lime); color: var(--bg);
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.btn-lime:hover { background: var(--lime-hover); color: var(--bg); }

/* ── Chọn ngôn ngữ ─────────────────────────────────── */
/* <select> gốc: bàn phím, trình đọc màn hình và bảng chọn trên điện thoại có sẵn. */
.lang-picker { position: relative; display: inline-flex; align-items: center; color: var(--ink-3); }
.lang-picker:hover { color: var(--ink); }
.lang-picker select {
  appearance: none; -webkit-appearance: none;
  height: 44px; padding: 0 36px 0 38px; border-radius: 12px;
  background: transparent; color: inherit; border: 1px solid var(--line-3);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.lang-picker:hover select { border-color: var(--line-4); }
.lang-picker select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.lang-picker option { background: var(--surface); color: var(--ink); }
.lang-icon, .lang-chevron {
  position: absolute; width: 18px; height: 18px; pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.lang-icon { left: 12px; }
.lang-chevron { right: 12px; width: 16px; height: 16px; stroke-width: 2.2; }

/* ── Header ────────────────────────────────────────── */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { display: block; width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a { padding: 12px 14px; font-size: 15px; font-weight: 500; color: var(--ink-3); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .btn-lime { margin-left: 8px; padding: 0 18px; color: var(--bg); }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 56px;
  padding-top: 56px; padding-bottom: 96px;
}
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-4);
  font-size: 13px; font-weight: 600; color: var(--lime);
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 .accent { display: block; color: var(--lime); }
.lede { margin: 0; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-3); }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 14px;
  background: #000; border: 1px solid var(--line-4); color: #fff; text-decoration: none;
}
.store:hover { color: #fff; border-color: var(--ink-5); }
.store svg { flex: none; width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.store-label { display: flex; flex-direction: column; line-height: 1.1; }
.store-label small { font-size: 11px; color: var(--ink-3); }
.store-label strong { font-size: 19px; font-weight: 600; }
.store-soon { border-style: dashed; cursor: default; }
.store-soon:hover { border-color: var(--line-4); }
/* Nút của hệ điều hành đang dùng đứng trước (platform.js đặt data-os). */
html[data-os="android"]:not([data-play="soon"]) .store-android { order: -1; }
/* Google Play còn chờ duyệt: data-play="soon" trên <html>. Lên store thì xoá
   attribute đó (xem website/README.md). */
html[data-play="soon"] .play-live,
html:not([data-play="soon"]) .play-soon { display: none !important; }

/* ── Khung điện thoại ──────────────────────────────── */
.phone { flex: 0 1 auto; margin: 0 auto; padding: 10px; border-radius: 49px; background: #000; border: 1px solid var(--line-3); }
.phone-screen {
  width: min(320px, 100vw - 64px);
  aspect-ratio: 1053 / 2180;
  border-radius: 39px;
  overflow: hidden;
  background: var(--bg);
}
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-sm { border-radius: 47px; }
.phone-sm .phone-screen { width: min(304px, 100vw - 64px); border-radius: 37px; }

/* ── Cam kết ───────────────────────────────────────── */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul {
  list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
}
.trust li { display: flex; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink-2); }

/* ── Tính năng ─────────────────────────────────────── */
.features { display: flex; flex-direction: column; gap: 48px; padding-top: 112px; padding-bottom: 112px; }
.features .h2 { max-width: 16em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2);
}
.card .num { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; font-weight: 500; color: var(--lime); }
.card h3 { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.2; font-weight: 700; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-4); }

/* ── Kiểm tra link ─────────────────────────────────── */
.spot { background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.spot .wrap {
  display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 56px;
  padding-top: 104px; padding-bottom: 104px;
}
.spot-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.spot-text p { margin: 0; max-width: 32em; font-size: 18px; line-height: 1.6; color: var(--ink-3); }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 12px; font-size: 17px; line-height: 1.45; }

/* ── Riêng tư ──────────────────────────────────────── */
.privacy { background: var(--lime); color: var(--bg); }
.privacy .wrap {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 72px;
  padding-top: 104px; padding-bottom: 104px;
}
.privacy-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.privacy .h2 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1; letter-spacing: -0.035em; }
.privacy p { margin: 0; max-width: 30em; font-size: 19px; line-height: 1.55; color: var(--on-lime-muted); }
.pills { flex: 0 1 340px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pills li { display: flex; gap: 12px; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--bg); font-size: 17px; font-weight: 600; }
.pills .check { stroke: var(--bg); }

/* ── Miễn phí và Pro ───────────────────────────────── */
.pro { display: flex; flex-direction: column; gap: 40px; padding-top: 112px; padding-bottom: 112px; }
.pro-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.pro-head p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-4); }
.plan {
  display: flex; flex-direction: column; gap: 20px;
  padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2);
}
.plan-name { font-family: var(--display); font-size: 28px; font-weight: 800; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.plan li { display: flex; gap: 12px; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.plan .check { stroke: var(--ink-5); }
.plan-pro { background: var(--pro-surface); border: 2px solid var(--lime); }
.plan-pro .plan-name { color: var(--lime); }
.plan-pro ul { flex: 1; }
.plan-pro li { color: var(--ink); }
.plan-pro .check { stroke: var(--lime); }
.plan-pro .btn-lime { align-self: flex-start; height: 52px; padding: 0 22px; border-radius: 14px; font-size: 16px; }

/* ── Hỏi đáp ───────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq .wrap { display: flex; flex-wrap: wrap; gap: 40px 72px; padding-top: 104px; padding-bottom: 104px; }
.faq .h2 { flex: 1 1 260px; }
.faq-list { flex: 2 1 520px; min-width: 0; }
.faq-item { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.faq-item h3 { margin: 0; font-family: var(--display); font-size: 21px; line-height: 1.3; font-weight: 700; }
.faq-item p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-4); }

/* ── Footer ────────────────────────────────────────── */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { display: block; width: 48px; height: 48px; border-radius: 12px; }
.foot-brand strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; }
.foot-brand span { font-size: 15px; color: var(--ink-4); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { padding: 10px 0; font-size: 14px; color: var(--ink-3); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-links .copy { padding: 10px 0; font-size: 14px; color: var(--ink-5); }

@media (max-width: 640px) {
  .features, .pro { padding-top: 72px; padding-bottom: 72px; }
  .spot .wrap, .privacy .wrap, .faq .wrap { padding-top: 72px; padding-bottom: 72px; }
  .hero { padding-top: 32px; padding-bottom: 72px; }
  /* Logo + chọn ngôn ngữ một hàng, menu xuống hàng dưới. */
  .site-header .lang-picker { margin-left: auto; }
  .lang-picker select { max-width: 168px; padding: 0 30px 0 34px; text-overflow: ellipsis; }
  .lang-icon { left: 10px; }
  .lang-chevron { right: 10px; }
  .nav { order: 3; width: 100%; margin-left: 0; }
}
