/* Landing Tablir — màu lấy từ token của app Owner (Tablir_Owner/lib/core/theme_tokens.dart):
 *   --primary  #067A82  teal đạt AA theo CẢ hai chiều (5.10 với trắng)
 *   gradient   #00875A → #0DA4E8 (logo) · bản có chữ đè: → #0A7EB3
 */
:root {
  --primary: #067A82;
  --primary-deep: #0B5C61;
  --brand-a: #00875A;
  --brand-b: #0DA4E8;
  --brand-b-deep: #0A7EB3;
  --ink: #122320;
  --muted: #4B5D5A;
  --line: #E4ECEA;
  --bg: #FFFFFF;
  --bg-soft: #F4F8F7;
  --card: #FFFFFF;
  --soft-primary: #E6F3F3;
  --danger: #B42318;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 35, 32, .06), 0 8px 24px rgba(18, 35, 32, .06);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand-b-deep); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* ── Nút ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; font: 600 15px/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 16px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand-a), var(--brand-b-deep)); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--primary-deep); background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-light { color: var(--primary-deep); background: #fff; }

/* ── Đầu trang ──────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.links { display: flex; gap: 4px; margin-left: 12px; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { padding: 6px 10px; font: 600 13px/1 var(--font); color: var(--muted); text-decoration: none; }
.lang a[aria-current="page"] { background: var(--soft-primary); color: var(--primary-deep); }
.menu { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; position: relative; }
.menu span, .menu span::before, .menu span::after { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--ink); content: ''; }
.menu span { top: 21px; }
.menu span::before { top: -6px; left: 0; }
.menu span::after { top: 6px; left: 0; }
@media (max-width: 899px) {
  .menu { display: inline-block; }
  .nav-cta { display: none; }
  .links { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; margin: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .links.open { display: flex; }
  .links a { padding: 12px; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 64px; background: radial-gradient(900px 400px at 85% -10%, rgba(13, 164, 232, .12), transparent 60%), radial-gradient(700px 360px at -10% 20%, rgba(0, 135, 90, .10), transparent 60%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } .hero-grid { grid-template-columns: 1.25fr .75fr; } }
.kicker { display: inline-block; font: 700 13px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 54px); font-weight: 800; letter-spacing: -.02em; }
.grad { background: linear-gradient(135deg, var(--brand-a), var(--brand-b-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin-top: 18px; max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.status { display: flex; gap: 8px; align-items: flex-start; margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 62ch; }
.status .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--primary); }
.hero-art { position: relative; display: none; }
@media (min-width: 900px) { .hero-art { display: block; } }
.ticket { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; transform: rotate(-2deg); }
.ticket-head { display: flex; gap: 6px; }
.ticket-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.ticket-row { display: flex; gap: 12px; align-items: center; color: var(--primary); }
.ticket-row .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--soft-primary); }
.bar { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--line), var(--bg-soft)); }
.w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; } .w40 { width: 40%; }
.hero-mark { position: absolute; right: -8px; bottom: -36px; width: 120px; height: 120px; filter: drop-shadow(0 10px 24px rgba(6, 122, 130, .25)); }

/* ── Khối chung ─────────────────────────────────────────────────────── */
section { padding: 64px 0; scroll-margin-top: 72px; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.band { background: var(--bg-soft); }
.head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.head.left { text-align: left; margin: 0; }
.head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.015em; }
.head p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.card, .feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3, .feat h3 { font-size: 17px; font-weight: 700; margin: 12px 0 6px; }
.card p, .feat p { color: var(--muted); font-size: 15px; }
.ico { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--brand-a), var(--brand-b-deep)); }
.feat > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--primary); background: var(--soft-primary); }

.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps li > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--primary); background: var(--soft-primary); }
.steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ── Bảng giá ───────────────────────────────────────────────────────── */
.base { max-width: 860px; margin: 0 auto 28px; text-align: center; background: #fff; border: 1px dashed var(--primary); border-radius: var(--radius); padding: 16px 20px; }
.base h3 { font-size: 15px; font-weight: 700; color: var(--primary-deep); margin-bottom: 4px; }
.base p { color: var(--muted); font-size: 15px; }
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); min-height: 120px; }
.plan h3 { font-size: 20px; font-weight: 800; }
.price { margin: 10px 0 4px; }
.price b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: 15px; color: var(--muted); margin-left: 4px; }
.contact-price { font-size: 26px; font-weight: 800; color: var(--primary-deep); }
.terms { list-style: none; padding: 0; margin: 4px 0 0; font-size: 14px; color: var(--primary-deep); }
.feats { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; flex: 1; }
.feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.feats .ic { width: 18px; height: 18px; margin-top: 3px; }
.feats .on .ic, .feats .cap .ic { color: var(--primary); }
.feats .off { color: #8A9A97; }
.feats .off .ic { color: #B6C2C0; }
.plan .btn { width: 100%; }
.plans-msg { grid-column: 1 / -1; text-align: center; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.plans-msg.is-error { border-color: #F4C7C3; color: var(--danger); }
.plans-msg .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.skel { min-height: 300px; background: linear-gradient(90deg, #fff, var(--bg-soft), #fff); background-size: 200% 100%; animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ── Liên hệ & chân trang ───────────────────────────────────────────── */
.contact { text-align: center; color: #fff; border-radius: 24px; padding: 48px 20px; background: linear-gradient(135deg, var(--brand-a), var(--brand-b-deep)); }
.contact .kicker { color: rgba(255, 255, 255, .85); }
.contact h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.contact p { margin: 12px auto 24px; max-width: 56ch; color: rgba(255, 255, 255, .92); }
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 24px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); background: #fff; }
.foot p { margin-top: 6px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 16px; }
.foot b { color: var(--ink); }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px !important; }
.copy { margin-top: 14px !important; }
