:root {
  --bg: #F5F4EF; --surface: #FFFFFF; --surface-2: #EEECE5; --border: #D9D5CB;
  --text: #191C1A; --muted: #575E59; --primary: #0E5A48; --primary-hover: #0A473A; --on-primary: #FFFFFF;
  --primary-soft: #E1EFEA; --focus: #2F7FD8; --warn: #8A5200; --warn-bg: #FBEFD9;
  --shadow: 0 1px 2px rgba(25,28,26,.06), 0 6px 16px rgba(25,28,26,.08);
  --sans: 'Be Vietnam Pro', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1311; --surface: #171C1A; --surface-2: #1F2522; --border: #2E3632;
    --text: #E9EDEA; --muted: #A1AAA5; --primary: #5BC2A2; --primary-hover: #7DD3B8; --on-primary: #062019;
    --primary-soft: #173329; --focus: #7DB3F0; --warn: #F2B25C; --warn-bg: #3A2A10;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.chua-dien { background: var(--warn-bg); color: var(--warn); padding: 0 4px; border-radius: 4px; font-weight: 500; }

/* Thanh trên */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-mark { width: 30px; height: 30px; color: var(--primary); flex: none; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
@media (max-width: 400px) { .nav a { padding: 6px 7px; font-size: 14px; } .brand span { display: none; } }

/* Trang chủ */
.hero { padding: 56px 0 40px; }
@media (min-width: 900px) { .hero { padding: 88px 0 64px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.eyebrow { color: var(--primary); font-weight: 600; font-size: 14px; letter-spacing: .02em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 48px); font-weight: 700; letter-spacing: -.01em; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 36em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 18px 8px 14px; border-radius: 12px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.15; }
.store:hover { color: var(--bg); opacity: .9; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.store-off { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border); cursor: default; }
.store-web { background: var(--primary); color: var(--on-primary); }
.store-web:hover { color: var(--on-primary); }

.phone { justify-self: center; width: min(300px, 80vw); aspect-ratio: 9 / 19; border-radius: 40px; padding: 12px; background: #1D2220; box-shadow: var(--shadow); }
.phone-screen { height: 100%; border-radius: 30px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; padding: 34px 16px 0; gap: 12px; font-size: 13px; color: var(--text); }
.ph-title { font-size: 20px; font-weight: 700; margin: 0; }
.ph-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.ph-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ph-row + .ph-row { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.ph-label { color: var(--muted); }
.ph-bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin-top: 8px; }
.ph-bars span { flex: 1; background: var(--primary-soft); border-radius: 4px 4px 0 0; }
.ph-bars span:last-child { background: var(--primary); }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid var(--border); background: var(--surface); margin-left: -16px; margin-right: -16px; padding: 10px 0 18px; }
.ph-tabs i { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--muted); opacity: .6; }
.ph-tabs i:first-child { border-color: var(--primary); opacity: 1; }

.section { padding: 48px 0; }
.section h2 { font-size: clamp(24px, 3.4vw, 32px); }
.section .sub { color: var(--muted); max-width: 40em; margin-bottom: 28px; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.feature h3 { font-size: 18px; margin-top: 14px; }
.feature p { color: var(--muted); margin: 0; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 60px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps strong { display: block; }
.steps span { color: var(--muted); }

.note { background: var(--primary-soft); border-radius: 14px; padding: 18px 20px; }
.note p:last-child { margin: 0; }

/* Trang văn bản */
.doc { padding: 40px 0 56px; }
.doc-in { max-width: 760px; }
.doc h1 { font-size: clamp(28px, 4.4vw, 38px); }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 21px; margin-top: 2em; padding-top: .2em; scroll-margin-top: 76px; }
.doc h3 { font-size: 17px; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .35em; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 8px; }
.toc p { font-weight: 600; margin-bottom: 6px; }
.toc ol { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tr { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 6px 0; }
  .table-wrap td { border: 0; padding: 4px 14px; }
  .table-wrap td:first-child { font-weight: 600; }
  .table-wrap td::before { content: attr(data-th); display: block; font-size: 13px; color: var(--muted); }
}

.contact { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-bottom: 1.5em; }
.contact div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.contact dt { color: var(--muted); font-size: 14px; }
.contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; line-height: 1; color: var(--primary); }
details[open] summary::after { content: '−'; }
details[open] summary { border-bottom: 1px solid var(--border); }
details > div { padding: 12px 16px 4px; }

/* Chân trang */
.foot { border-top: 1px solid var(--border); background: var(--surface); margin-top: 24px; font-size: 14px; }
.foot-in { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 20px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1fr auto; } }
.foot-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.foot-co > p { color: var(--muted); }
.foot-dl { margin: 0; display: grid; gap: 6px; }
.foot-dl div { display: grid; gap: 0 8px; }
@media (min-width: 560px) { .foot-dl div { grid-template-columns: 200px 1fr; } }
.foot-dl dt { color: var(--muted); }
.foot-dl dd { margin: 0; overflow-wrap: anywhere; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { color: var(--text); text-decoration: none; }
.foot-nav a:hover { color: var(--primary); text-decoration: underline; }
.foot-copy { color: var(--muted); padding-top: 12px; padding-bottom: 24px; border-top: 1px solid var(--border); }
