/*
  Bổ Lịch — trang web, dùng đúng hệ thiết kế của app tài xế (apps/driver-app/src/ui/theme.tsx, bộ màu "Than chì"):
  nền giấy ấm #F2F1EE, thẻ trắng bo 20 viền mảnh, vé có khấc + đường xé, nút đen bo 14, nhãn chữ hoa nhỏ,
  một font duy nhất Be Vietnam Pro. Chế độ tối theo máy, đúng bộ màu tối của app.
  Hình là ảnh chụp app thật (assets/app/*.webp, sinh bằng apps/landing/scripts/capture-app.py).
*/
:root {
  color-scheme: light dark;
  --bg: #F2F1EE; --card: #FFFFFF; --border: #E2E0DB; --text: #141414; --muted: #57534E;
  --accent: #18181B; --on-accent: #FAFAF9; --accent-bg: #E7E5E1; --quote: #F5F4F1;
  --green: #17573A; --green-bg: #E2F0E8; --err: #82261A; --amber: #6E4600; --amber-bg: #F7EBD2;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 12px 32px -12px rgba(20, 20, 20, .14);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 20px; --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0C0D; --card: #161618; --border: #2A2A2E; --text: #F4F4F2; --muted: #A8A6A1;
    --accent: #ECEAE6; --on-accent: #111111; --accent-bg: #2A2A2D; --quote: #1E1E21;
    --green: #93D3B0; --green-bg: #132B22; --err: #F2A893; --amber: #F0C77A; --amber-bg: #2A2414;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 8px; }

/* chữ: như app — đậm 700, khít chữ, viết thường câu */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.05; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 34em; }
.lede b { color: var(--text); font-weight: 600; }
.note { font-size: 13px; color: var(--muted); }

/* nút: đen bo 14 như nút Nhận chuyến */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, opacity .15s ease; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-ink, .btn-amber { background: var(--accent); color: var(--on-accent); }
.btn-ink:hover, .btn-amber:hover { opacity: .88; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* thanh đầu: viên nổi như thanh tab của app */
.top { position: sticky; top: 12px; z-index: 20; margin-top: 12px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 7px 7px 10px; background: color-mix(in srgb, var(--card) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a:not(.btn) { padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.top nav a:not(.btn):hover { background: var(--accent-bg); color: var(--text); }
.top .btn { border-radius: 999px; min-height: 44px; }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } }

section { padding: clamp(64px, 9vw, 116px) 0; }
.head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ảnh app: cắt đúng thẻ từ app thật (nền trong suốt), nổi bằng bóng như trên máy */
.shot { display: block; }
.shot img { width: 358px; max-width: 100%; height: auto; filter: drop-shadow(0 1px 2px rgba(20,20,20,.06)) drop-shadow(0 10px 20px rgba(20,20,20,.07)); }
@media (prefers-color-scheme: dark) { .shot img { filter: none; } }

/* mở đầu */
.hero { padding-top: clamp(44px, 6vw, 80px); padding-bottom: 8px; overflow-x: clip; }
.hero .head { margin-bottom: 0; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.hero .trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.hero .trust span::before { content: "✓"; margin-right: 6px; color: var(--green); font-weight: 700; }
.stage { position: relative; height: 460px; margin-top: 56px; }
.stage .main { position: absolute; left: 50%; top: 0; translate: -50% 0; z-index: 2; }
.stage .side { position: absolute; left: calc(50% - 470px); top: 96px; transform: rotate(-5deg); opacity: .96; }
.stage .side img { width: 330px; }
.shotnote { text-align: center; margin-top: 14px; }

/* thông báo đẩy: dựng lại bằng HTML theo đúng mẫu worker gửi ("Khớp tuyến · 14:00 hôm nay" / "A → B · 2 khách · <tin>").
   JS đẩy lần lượt từng thông báo vào chồng: cái mới trượt xuống ở trên, cái cũ lùi ra sau, nhỏ dần, mờ dần rồi biến mất. */
.pushes { position: absolute; z-index: 4; top: 110px; left: calc(50% + 150px); width: 340px; height: 160px; }
.push { position: absolute; inset: 0 0 auto 0; display: flex; gap: 12px; padding: 13px 14px; border-radius: 22px;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); box-shadow: var(--shadow);
  transform-origin: 50% 0; transition: transform .6s cubic-bezier(.2,.9,.3,1), opacity .6s ease, filter .6s ease; }
.push[data-i="-1"] { opacity: 0; transform: translateY(-26px) scale(.98); }
.push[data-i="0"] { opacity: 1; transform: none; z-index: 3; }
.push[data-i="1"] { opacity: .75; transform: translateY(16px) scale(.94); z-index: 2; filter: blur(.3px); }
.push[data-i="2"] { opacity: .35; transform: translateY(30px) scale(.88); z-index: 1; filter: blur(.6px); }
.push[data-i="3"] { opacity: 0; transform: translateY(40px) scale(.84); z-index: 0; }
.push img { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: #fff; flex: none; }
.push.ring img { animation: ring .9s ease-in-out .35s 1; transform-origin: 50% 0; }
@keyframes ring { 15%, 55% { rotate: -12deg; } 35%, 75% { rotate: 12deg; } 0%, 100% { rotate: 0deg; } }
.push div { min-width: 0; }
.push b { display: block; font-size: 14px; font-weight: 600; padding-right: 54px; }
.push span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.push small { position: absolute; top: 13px; right: 14px; font-size: 12px; color: var(--muted); }
.stage .main { animation: bob 6s ease-in-out infinite; }
.stage .side { animation: bobside 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes bobside { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-12px); } }
@media (max-width: 1100px) { .stage .side { left: 2%; } .pushes { left: auto; right: 0; } }
@media (max-width: 860px) {
  .stage { height: auto; display: grid; justify-items: center; gap: 0; }
  .stage .main { position: static; translate: none; }
  .stage .side { display: none; }
  .pushes { position: relative; top: auto; left: auto; right: auto; order: -1; margin-bottom: 6px; width: min(340px, 100%); height: 118px; }
}

/* vì sao cần: dải tối — bên trái dòng tin nhóm trôi ầm ầm, mờ xám; bên phải chỉ một tin được nhặt ra, sáng rõ */
.sieve { background: #141414; color: #F4F4F2; }
@media (prefers-color-scheme: dark) { .sieve { background: #161618; border-block: 1px solid #2A2A2E; } }
.sieve .eyebrow { color: #A8A6A1; }
.sieve-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.sieve h2 { margin-top: 14px; }
.chips-ok { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-ok li { padding: 8px 14px; border-radius: 999px; border: 1px solid #3A3A3E; font-size: 14.5px; font-weight: 500; }
.chips-ok li::before { content: "✓"; margin-right: 8px; color: #93D3B0; font-weight: 700; }
.flood { position: relative; height: 440px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.flood-track { display: grid; gap: 10px; animation: flood 26s linear infinite; }
@keyframes flood { to { transform: translateY(-50%); } }
.msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; padding: 10px 12px; border-radius: 14px; background: #222225; color: #8E8C88; font-size: 13.5px; line-height: 1.35; }
.msg:nth-child(3n+1) { margin-right: 18px; } .msg:nth-child(3n+2) { margin-left: 22px; } .msg:nth-child(4n) { margin-right: 6px; }
.msg i { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: #333337; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #A8A6A1; }
.msg small { font-size: 11.5px; color: #6E6C68; }
.msg p { margin: 0; }
.msg.hit { background: #F4F4F2; color: #141414; box-shadow: 0 0 0 2px #F4F4F2, 0 10px 30px rgba(0,0,0,.4); }
.msg.hit i { background: #141414; color: #fff; }
.msg.hit small { color: #57534E; }
.catch { position: relative; display: grid; place-items: center; }
.catch::before { content: ""; position: absolute; left: -40px; top: 50%; width: 40px; border-top: 2px dashed #57534E; }
.pick { width: 100%; max-width: 300px; background: #fff; color: #141414; border-radius: 20px; padding: 18px; display: grid; gap: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); border-left: 5px solid #141414; animation: pickup 5s ease-in-out infinite; }
@keyframes pickup { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(0deg); } }
.pick .tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: #E7E5E1; }
.pick > b { font-size: 44px; letter-spacing: -0.03em; line-height: 1; }
.pick > b em { font-style: normal; font-size: 16px; font-weight: 500; color: #57534E; letter-spacing: 0; }
.pick .rt { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; }
.pick .rt div { display: grid; gap: 4px; }
.pick .rt strong { font-size: 18px; }
.pick .glyph { position: relative; margin: 7px 0; background: linear-gradient(#141414, #141414) 5px 0 / 2px 100% no-repeat; }
.pick .glyph::before { content: ""; position: absolute; left: 1px; top: 0; width: 10px; height: 10px; border: 2px solid #141414; box-sizing: border-box; background: #fff; }
.pick .glyph::after { content: ""; position: absolute; left: 1px; bottom: 0; width: 10px; height: 10px; background: #141414; }
.pick small { font-size: 13px; color: #57534E; }
.pick .go { margin-top: 4px; text-align: center; padding: 14px; border-radius: 14px; background: #141414; color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
@media (max-width: 960px) {
  .sieve-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sieve-copy { grid-column: 1 / -1; }
  .flood { height: 380px; }
}
@media (max-width: 600px) {
  .sieve-grid { grid-template-columns: minmax(0, 1fr); }
  .flood { height: 260px; }
  .catch::before { display: none; }
  .catch { margin-top: -40px; }
}

/* vé: thẻ có khấc + đường xé, như thẻ tin chuyến trong app */
.ticket { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); }
.ticket .main { padding: 22px 22px 20px; flex: 1; }
.ticket .stub { position: relative; padding: 18px 22px 22px; border-top: 1.5px dashed var(--border); }
.ticket .stub::before, .ticket .stub::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; z-index: 1; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); }
.ticket .stub::before { left: -12px; clip-path: inset(-1px -1px -1px 11px); }
.ticket .stub::after { right: -12px; clip-path: inset(-1px 11px -1px -1px); }
.ticket .name { font-size: 15px; font-weight: 600; }
.ticket .price { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket .price small { font-size: 22px; margin-left: 2px; color: var(--muted); }
.ticket .per { font-size: 14px; color: var(--muted); margin-top: 6px; }
.ticket .save { position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--accent-bg); }
.ticket .btn { width: 100%; }
.ticket.best { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ticket.best .per, .ticket.best .price small { color: color-mix(in srgb, var(--on-accent) 70%, transparent); }
.ticket.best .save { background: var(--on-accent); color: var(--accent); }
.ticket.best .stub { border-top-color: color-mix(in srgb, var(--on-accent) 25%, transparent); }
.ticket.best .btn { background: var(--on-accent); color: var(--accent); }
button.ticket { border: 1px solid var(--border); }
button.ticket:hover { border-color: var(--muted); }
.tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .tickets { grid-template-columns: minmax(0, 1fr); } }
.trial { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; font-size: 15px; color: var(--muted); }
.trial > span::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 700; }
.trial b { color: var(--text); font-weight: 600; }

/* ba bước: thẻ + ảnh app */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.step .txt { padding: 24px 24px 22px; display: grid; gap: 10px; align-content: start; }
.step .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; }
.step p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }

/* âm báo: chỉ hé vài dòng đầu của thẻ, phần dưới mờ dần */
.shot.peek { height: 215px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.shot.peek img { filter: none; }

/* âm báo: chữ ở trên, các dòng tính năng chia hai cột */
.sound .bullets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sound .bullets li:nth-child(2) { border-top: 0; border-left: 1px solid var(--border); }
.sound .bullets li:nth-child(4) { border-left: 1px solid var(--border); }
@media (max-width: 760px) { .sound .bullets { grid-template-columns: minmax(0, 1fr); } .sound .bullets li:nth-child(2) { border-top: 1px solid var(--border); } .sound .bullets li:nth-child(even) { border-left: 0; } }

/* hai cột: chữ + điện thoại */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split .shot { justify-self: center; }
.split.rev > :first-child { order: 2; }
.bullets { list-style: none; margin: 28px 0 0; padding: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.bullets li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-top: 1px solid var(--border); }
.bullets li:first-child { border-top: 0; }
.bullets .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-bg); }
.bullets .ic svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bullets b { display: block; font-weight: 600; font-size: 16px; }
.bullets span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.rev > :first-child { order: 0; } }

/* địa danh: chip như ô chọn điểm trong app */
.band { background: var(--card); border-block: 1px solid var(--border); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.2px solid var(--border); font-size: 16px; font-weight: 500; background: var(--bg); }
.chip i { font-style: normal; font-size: 13px; color: var(--muted); }
.chip s { text-decoration: none; color: var(--muted); font-weight: 400; }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip.on i, .chip.on s { color: color-mix(in srgb, var(--on-accent) 70%, transparent); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.facts div { padding: 22px; border-left: 1px solid var(--border); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* đặt tuyến: một tuyến mẫu và các lịch trong nhóm được lọc thế nào (nhãn như trong app) */
.route-demo { display: grid; gap: 16px; justify-items: center; }
.route-demo .shot img { width: 440px; max-width: 100%; }
.route-demo .filter { width: 100%; }
.filter { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.filter-head { padding: 14px 20px 10px; }
.filter-head b { font-size: 22px; letter-spacing: -0.02em; }
.filter-head .meta { font-size: 14px; color: var(--muted); }
.filter ul { list-style: none; margin: 0; padding: 0; }
.filter li { display: grid; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.filter li:first-child { border-top: 0; }
.filter q { quotes: "“" "”"; font-size: 15.5px; }
.filter .verdict { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter .tag { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.filter small { font-size: 13.5px; color: var(--muted); }
.filter .on .tag { background: var(--accent); color: var(--on-accent); }
.filter .near .tag { border: 1.2px solid var(--text); padding: 3px 7px; }
.filter .off q { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.filter .off .tag { background: var(--accent-bg); color: var(--muted); }

/* bộ giao diện: trình chiếu hình vòm — thẻ giữa nổi lên, hai bên ngả theo cung tròn */
.arc { position: relative; height: 380px; margin-top: 8px; outline: none; overflow-x: clip; overflow-y: visible; padding-bottom: 20px; }
.arc figure { position: absolute; left: 50%; top: 24px; margin: 0; width: 250px; margin-left: -125px; display: grid; gap: 16px; justify-items: center;
  transform-origin: 50% 100%; will-change: transform, opacity; }
.arc img { width: 250px; height: auto; filter: drop-shadow(0 10px 22px rgba(20,20,20,.12)); }
.arc .night .tile { display: block; padding: 10px; border-radius: 28px; background: #0C0C0D; margin: -10px; }
.arc .night img { filter: none; }
.arc figcaption { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.arc figcaption i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border); }
.arc:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; border-radius: 20px; }
@media (max-width: 600px) { .arc { height: 340px; } .arc figure { width: 220px; margin-left: -110px; } .arc img { width: 220px; } }

/* giới thiệu bạn: con số lợi ích nổi lên đầu, đọc lướt là thấy */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.perks > div { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; display: grid; gap: 6px; align-content: start; }
.perks b { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.perks > div:last-child b { font-size: clamp(20px, 2.2vw, 24px); white-space: normal; }
.perks > div > span { font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 600px) { .perks { grid-template-columns: minmax(0, 1fr); } }
/* giới thiệu bạn: thẻ thật trong Cài đặt */
.refer .shot { width: fit-content; margin-inline: auto; }
.refer .shotnote { max-width: 520px; margin-inline: auto; }

/* hỏi đáp */
.faq { display: grid; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.faq details { border-top: 1px solid var(--border); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -3px; transition: rotate .2s; flex: none; }
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* tải app */
.get .box { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: clamp(28px, 5vw, 56px); background: var(--accent); color: var(--on-accent); border-radius: 28px; overflow: hidden; }
.get .box p { color: color-mix(in srgb, var(--on-accent) 72%, transparent); margin-top: 14px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* nút cửa hàng theo huy hiệu chính thức: nền đen, viền xám, chữ trắng, logo đúng màu */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; border-radius: 12px; background: #000; color: #fff; border: 1px solid #A6A6A6; text-decoration: none; }
.store small { display: block; font-size: 11px; opacity: .7; }
.store b { display: block; font-size: 17px; line-height: 1.15; }
.get .phones { display: flex; justify-content: center; }
.get .phones img { width: 330px; height: auto; transform: rotate(3deg); filter: drop-shadow(0 24px 40px rgba(0,0,0,.4)); }
@media (max-width: 820px) { .get .box { grid-template-columns: minmax(0, 1fr); } }

/* chân trang */
footer { padding: 48px 0 56px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
footer .wrap > div { max-width: 460px; display: grid; gap: 12px; }
footer .brand { color: var(--text); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }

/* trang phụ */
.page-head { padding: clamp(40px, 6vw, 72px) 0 24px; }
.page-head .wrap { display: grid; gap: 12px; max-width: 760px; }
.page-head h1 { font-size: clamp(34px, 5vw, 50px); }
.page-head p { color: var(--muted); font-size: 18px; }
.page-head p a { color: var(--text); }
.doc { padding: 16px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.doc .meta { margin-top: 40px; font-size: 14px; }
.doc .faq p { margin: 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); }
.card + .card { margin-top: 20px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.field { display: grid; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; }
.field input { font: 400 16px var(--font); min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--muted); background: var(--card); color: var(--text); width: 100%; }
.field input:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.err { color: var(--err); font-size: 14px; font-weight: 500; margin-top: 10px; }
.err:empty { display: none; }
.ok { color: var(--green); background: var(--green-bg); padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.steps-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--accent-bg); border-radius: 14px; }
.steps-bar span { text-align: center; padding: 9px 4px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-bar span.on { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); font-size: 14px; font-weight: 600; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.qr { width: 260px; height: 260px; border-radius: 16px; border: 1px solid var(--border); background: #fff; padding: 8px; }
.copy { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.copy > span:first-child { color: var(--muted); font-size: 14px; }
.copy b { font-variant-numeric: tabular-nums; }
.copy button { font: 600 13px var(--font); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
