:root {
  --bg: #f4f5f9;
  --card: #ffffff;
  --ink: #1b1e27;
  --muted: #5c6275;
  --line: #e5e7ee;
  --accent: #1a5fdb;
  --accent-dark: #1450bd;
  --accent-soft: #e9f0fe;
  --warn: #b45309;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Đầu trang ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 245, 249, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .nav { display: none; } .topbar .btn { margin-left: auto; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--line); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #2b6be6 0%, #1a5be0 100%);
  color: #fff;
  border-radius: 0 0 36px 36px;
  padding: 72px 0 80px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; margin: 12px 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 19px; opacity: 0.95; max-width: 34em; margin: 0 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: #fff; color: var(--accent); }
.hero .btn-primary:hover { background: #eef3ff; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .note { margin-top: 18px; font-size: 14px; opacity: 0.85; }

.phone {
  background: var(--bg);
  border-radius: 34px;
  padding: 14px;
  border: 8px solid #0f2a66;
  box-shadow: 0 30px 60px rgba(8, 25, 70, 0.35);
  color: var(--ink);
  max-width: 340px;
  margin-left: auto;
}
.phone .bar {
  background: linear-gradient(135deg, #2b6be6, #1a5be0);
  color: #fff;
  border-radius: 20px;
  padding: 14px 16px;
  font-weight: 700;
}
.phone .bar small { display: block; font-weight: 500; opacity: 0.9; }
.ride {
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 12px;
}
.ride .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ride .group { font-weight: 700; font-size: 15px; }
.ride .timer { background: #e6f7ea; color: #1e8e3e; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 8px; }
.ride .who { color: var(--muted); font-size: 13px; }
.ride .msg {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 8px 0 10px;
  font-size: 15px;
}
.ride .btns { display: grid; grid-template-columns: 44px 1fr 1fr; gap: 6px; }
.ride .btns span {
  display: flex; align-items: center; justify-content: center;
  height: 38px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.ride .x { background: #f6f7fa; border: 1px solid var(--line); color: var(--muted); }
.ride .g { background: var(--accent-soft); color: var(--accent); }
.ride .p { background: var(--accent); color: #fff; }

/* Ảnh chụp màn hình app thật đặt trong khung điện thoại */
.shot {
  max-width: 320px;
  margin-left: auto;
  border-radius: 40px;
  border: 10px solid #0f2a66;
  overflow: hidden;
  background: #0f2a66;
  box-shadow: 0 30px 60px rgba(8, 25, 70, 0.35);
}
.shot img { display: block; width: 100%; height: auto; }

@media (max-width: 860px) {
  .shot { margin: 0 auto; max-width: 280px; }
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
}

/* ---------- Khối nội dung ---------- */
section { padding: 72px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.015em; }
section .sub { color: var(--muted); max-width: 40em; margin: 0 0 36px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(36, 58, 115, 0.06);
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

.pains .card { border-left: 4px solid var(--accent); }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 20px; left: 24px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

.callout {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.callout h3 { margin: 0 0 8px; }
.callout ul { margin: 8px 0 0; padding-left: 20px; }
.callout li { margin: 4px 0; }

/* ---------- Hỏi đáp ---------- */
.faq details {
  background: var(--card);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(36, 58, 115, 0.05);
}
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Chân trang ---------- */
footer { background: #0f1a33; color: #c7cede; padding: 48px 0 36px; margin-top: 40px; }
footer a { color: #fff; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 6px 0; font-size: 15px; }
footer .legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; padding-top: 20px; font-size: 13px; color: #9aa4ba; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }

/* ---------- Trang văn bản pháp lý ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 20px 24px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 6px; letter-spacing: -0.015em; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: #2d3240; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--accent-soft); }
.doc .box { background: #fff; border-radius: 14px; padding: 16px 20px; border-left: 4px solid var(--accent); margin: 16px 0; }
.doc .toc { background: #fff; border-radius: 14px; padding: 16px 22px; margin-bottom: 24px; }
.doc .toc ol { margin: 6px 0 0; }
@media (max-width: 600px) { .doc table { font-size: 14px; } .doc th, .doc td { padding: 8px; } }

/* Chỗ cần điền thông tin thật: nổi bật để không bị quên khi đăng */
[data-site]:empty::before { content: "[" attr(data-site) "]"; background: #fff4e0; color: var(--warn); padding: 0 4px; border-radius: 4px; }
