:root {
  --brand: #0E7C5A;
  --brand-700: #0A5E44;
  --brand-bright: #21D57C;
  --ink: #0B1220;
  --ink-soft: #3A4657;
  --muted: #6B7889;
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --border: #E2E7EC;
  --limit-red: #E5342B;
  --camera: #FB6107;
  --yellow: #FFC42E;
  --badge-bg: #000000;
  --badge-fg: #FFFFFF;
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #21D57C;
    --brand-700: #7BE8B0;
    --ink: #F4F7FA;
    --ink-soft: #C3CCD8;
    --muted: #8A97A8;
    --bg: #0B1018;
    --surface: #131A25;
    --border: #222C3A;
    --badge-bg: #FFFFFF;
    --badge-fg: #000000;
  }
}
:root[data-theme="dark"] {
  --brand: #21D57C;
  --brand-700: #7BE8B0;
  --ink: #F4F7FA;
  --ink-soft: #C3CCD8;
  --muted: #8A97A8;
  --bg: #0B1018;
  --surface: #131A25;
  --border: #222C3A;
  --badge-bg: #FFFFFF;
  --badge-fg: #000000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img, svg { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
nav.links { display: none; gap: 28px; }
nav.links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
nav.links a:hover { color: var(--ink); }
@media (min-width: 760px) { nav.links { display: flex; } }
.pill-cta {
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: #fff; background: #0E7C5A; padding: 8px 16px; border-radius: 999px;
}

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 88px 0 104px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.03em; margin: 20px 0 20px; font-weight: 800; }
h1 em { font-style: normal; color: var(--brand); }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 0 0 32px; }

/* Store badges (monochrome) */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 188px; padding: 10px 18px 10px 16px;
  background: var(--badge-bg); color: var(--badge-fg);
  border-radius: 12px; text-decoration: none; cursor: default;
  user-select: none;
}
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store .t1 { display: block; font-size: 11px; line-height: 1.2; opacity: 0.8; letter-spacing: 0.02em; }
.store .t2 { display: block; font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.store .soon {
  position: absolute; top: -9px; right: -8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--badge-bg);
  padding: 2px 8px; border-radius: 999px;
}
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Phone frame around real screenshots */
.phone-stage { display: flex; justify-content: center; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 720 / 1512;
  border-radius: 40px; padding: 10px; box-sizing: content-box;
  background: #0B1220;
  box-shadow: 0 30px 60px -20px rgba(11,18,32,0.45), inset 0 0 0 2px #2A3344;
}
.phone img { width: 100%; height: 100%; border-radius: 30px; object-fit: cover; }

/* Gallery */
.gallery { display: grid; gap: 28px 20px; grid-template-columns: 1fr; justify-items: center; }
@media (min-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.shot { margin: 0; max-width: 260px; width: 100%; }
.shot .phone { width: calc(100% - 16px); padding: 8px; border-radius: 30px; }
.shot .phone img { border-radius: 22px; }
.shot figcaption { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
.shot figcaption b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.gallery-note { margin-top: 32px; font-size: 14px; color: var(--muted); max-width: 46em; }
/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 18px;
}
.card .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* How it works */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Privacy */
.privacy { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .privacy { grid-template-columns: 0.9fr 1.1fr; } }
.privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px 16px 50px; position: relative; color: var(--ink-soft); font-size: 16px;
}
.privacy li::before {
  content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.privacy li b { color: var(--ink); }

/* Coming soon */
.soon-band {
  border-radius: 28px; padding: 48px 24px; text-align: center;
  background: var(--ink); color: var(--bg);
}
@media (min-width: 720px) { .soon-band { padding: 64px 48px; } }
.soon-band .kicker { color: var(--brand-bright); }
:root[data-theme="dark"] .soon-band .kicker { color: #0E7C5A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .soon-band .kicker { color: #0E7C5A; } }
.soon-band h2 { color: var(--bg); }
.soon-band p { color: color-mix(in srgb, var(--bg) 72%, transparent); max-width: 34em; margin: 0 auto 32px; font-size: 18px; }
.soon-band .badges { justify-content: center; }
/* Inside the dark band the badges flip to white so they stay visible. */
.soon-band .store { background: var(--bg); color: var(--ink); }
.soon-band .store .soon { background: var(--ink); color: var(--bg); border-color: var(--bg); }

footer { padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer a { color: var(--ink-soft); }

/* ===== v2: header chung, chuyển ngôn ngữ ===== */
section[id] { scroll-margin-top: 64px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.hdr-right { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.lang .cur { color: var(--ink); font-weight: 800; }
.lang:hover { border-color: var(--brand); }
@media (max-width: 380px) { .pill-cta { padding: 8px 12px; } .brand { font-size: 18px; } }

/* ===== FAQ (details/summary, không JS) ===== */
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.faq summary {
  cursor: pointer; list-style: none; position: relative; min-height: 56px;
  padding: 16px 52px 16px 20px; font-weight: 600; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--brand); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--ink-soft); font-size: 16px; }
.more-link { display: inline-block; margin-top: 18px; font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* ===== Trang văn bản dài ===== */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 0 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.02em; }
.doc .updated { margin: 0 0 28px; font-size: 14px; color: var(--muted); }
.doc .translation-note {
  margin: 0 0 28px; padding: 12px 16px; font-size: 14px; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.doc .intro { font-size: 18px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 8px; }
.doc h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; margin: 36px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p { margin: 0 0 16px; line-height: 1.7; color: var(--ink-soft); }
.doc ol, .doc ul { margin: 0 0 16px; padding-left: 1.4em; line-height: 1.7; color: var(--ink-soft); }
.doc li { margin-bottom: 8px; }
.doc li b, .doc p b { color: var(--ink); }
.doc .safety {
  margin: 36px 0; padding: 20px 22px; background: var(--surface);
  border: 1.5px solid var(--brand); border-radius: var(--radius);
}
.doc .safety h2 { margin-top: 0; }
.doc .safety p { margin-bottom: 0; }
.doc .callout {
  margin: 0 0 16px; padding: 14px 18px; background: var(--surface);
  border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 12px;
  color: var(--ink-soft); line-height: 1.7;
}
.doc .callout p { margin: 0; }

/* ===== Footer chung ===== */
footer .wrap { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* ===== v3: form nhận tin khi ra mắt (trong .soon-band, nền tối ở chế độ sáng) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.soon-band { --wl-ok: #21D57C; --wl-err: #FF9C94; --wl-focus: #21D57C; }
:root[data-theme="dark"] .soon-band { --wl-ok: #0A5E44; --wl-err: #B3261E; --wl-focus: #0E7C5A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .soon-band { --wl-ok: #0A5E44; --wl-err: #B3261E; --wl-focus: #0E7C5A; } }
.waitlist-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 460px; margin: 32px auto 0; position: relative; }
.waitlist-form[hidden] { display: none; }
.waitlist-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1.5px solid transparent; border-radius: 12px;
}
.waitlist-form input[type="email"]::placeholder { color: var(--muted); }
.waitlist-form input[type="email"]:disabled { opacity: 0.6; }
.waitlist-form button {
  flex: 0 0 auto; min-width: 132px; height: 48px; padding: 0 22px;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  color: #fff; background: #0E7C5A; border: 0; border-radius: 12px;
}
.waitlist-form button:hover:not(:disabled) { background: #0A5E44; }
.waitlist-form button:disabled { opacity: 0.55; cursor: default; }
.waitlist-form :focus-visible { outline: 2px solid var(--wl-focus); outline-offset: 2px; }
.wl-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.soon-band .waitlist-msg { flex: 1 1 100%; min-height: 1.5em; margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.soon-band .waitlist-msg.ok { color: var(--wl-ok); }
.soon-band .waitlist-msg.err { color: var(--wl-err); }
.soon-band .waitlist-note { flex: 1 1 100%; max-width: none; margin: 0 auto; font-size: 13px; line-height: 1.5; }
noscript .waitlist-note { margin-top: 28px; }
.soon-band .waitlist-note a { color: inherit; text-decoration: underline; }
