/* =========================================================
   Kế Toán Thương Mại Điện Tử - Design System v3 (Green SaaS)
   Bám theo bản thiết kế: nền trắng và mint rất nhạt, tiêu đề xanh đậm,
   card trắng viền mảnh bo 14px, tag pill mint, dải xanh đậm cho quy định
   và CTA, bố cục compact, heading canh trái.
   ========================================================= */

:root {
  --canvas: #ffffff;
  --surface: #eef4f1;      /* nền lạnh duy nhất */
  --surface-2: #e2ece8;
  --warm: #f6f3ee;         /* nền ấm duy nhất */
  --line: #dfe8e5;
  --line-soft: #ebf1ef;

  --ink: #1b3b34;
  --ink-2: #33524a;
  --ink-3: #4f6b64;
  --ink-4: #66827b;

  --brand: #14735f;
  --brand-dark: #0b5c4b;
  --brand-tint: #e6f4f0;
  --brand-light: #2fb391;
  --heading: #1d6e5c;

  --dark: #0f6553;
  --dark-2: #0b5646;
  --dark-3: rgba(255,255,255,0.1);

  --coral: #c8482a;
  --coral-tint: #fdeee9;
  --amber: #d9a441;
  --amber-tint: #fff6e3;
  --zalo: #0068ff;
  --zalo-dark: #0052cc;
  --zalo-tint: #e8f0ff;

  /* Type scale: dùng thống nhất toàn trang */
  --fs-display: clamp(2.4rem, 4vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 2.6vw, 2.25rem);
  --fs-h3: 1.25rem;
  --fs-h4: 1.05rem;
  --fs-body: 1rem;
  --fs-body-sm: 0.92rem;
  --fs-caption: 0.82rem;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-soft: 0 4px 18px rgba(20, 60, 50, 0.06);
  --shadow-float: 0 18px 50px rgba(20, 60, 50, 0.14);

  --container: 1200px;
  --font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink-2); background: var(--canvas);
  line-height: 1.5; font-size: 16px; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
:focus-visible { outline: 3px solid rgba(20, 115, 95, 0.35); outline-offset: 3px; border-radius: 8px; }
.sr-only, .form input.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; left: 0; top: 0; }

/* ---------- Typography ---------- */
.display { font-size: var(--fs-display); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--heading); }
.h2 { font-size: var(--fs-h2); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); text-wrap: balance; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--heading); }
.h4 { font-size: var(--fs-h4); line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; color: var(--heading); }
.lead { font-size: var(--fs-body); color: var(--ink-3); line-height: 1.6; max-width: 620px; }
.muted { color: var(--ink-3); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.tag.light { background: rgba(255,255,255,0.14); color: #fff; }
.tag.mini { font-size: 0.62rem; padding: 3px 8px; margin: 0 0 0 8px; background: #fff; color: var(--brand); vertical-align: middle; }
.eyebrow { display: block; font-size: 0.72rem; font-weight: 700; color: var(--brand); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow.light { color: rgba(255,255,255,0.75); }
.section-head { margin-bottom: 40px; }
.section-head .lead { margin-top: 10px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 80px 0; }
.section.alt { background: var(--surface); }
.section.dark { background: var(--dark); color: #fff; }
.section.dark .h2, .section.dark .h3, .section.dark .h4 { color: #fff; }
.section.dark .lead, .section.dark .muted, .section.dark .small { color: rgba(255,255,255,0.8); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-tint); }
.btn-zalo { background: var(--zalo); color: #fff; }
.btn-zalo:hover { background: var(--zalo-dark); }
.btn-zalo img { width: 22px; height: 22px; background: #fff; border-radius: 6px; padding: 1px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.86rem; }
.btn svg { width: 17px; height: 17px; flex: none; }
.link-arrow { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; font-size: 0.92rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.card:hover { box-shadow: var(--shadow-soft); }
.card p { color: var(--ink-3); font-size: 0.92rem; line-height: 1.55; }
.icon-ring { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); flex: none; }
.icon-ring svg { width: 20px; height: 20px; }
.icon-ring.solid { background: var(--brand); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 500; font-size: 0.84rem; border: 1px solid var(--line); cursor: pointer; }
.chip:has(input:checked) { background: var(--brand-tint); color: var(--brand); border-color: var(--brand); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: var(--ink-2); font-size: 0.92rem; }
.check-list li svg { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-soft); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
/* Brand lockup theo hướng dẫn logo: desktop = full horizontal, tablet = compact, mobile = icon only, footer = wordmark */
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); white-space: nowrap; }
.brand-icon { width: 40px; height: 40px; flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--heading); }
.brand-tagline { font-weight: 500; font-size: 0.68rem; letter-spacing: 0; color: var(--brand); margin-top: 3px; }
.brand-wordmark .brand-name { font-size: 1.35rem; color: #fff; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; white-space: nowrap; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover { background: var(--brand-tint); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: 64px 0 0 0; z-index: 55; background: #fff; padding: 12px 24px 40px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu a.item { display: block; padding: 15px 0; font-size: 1.15rem; font-weight: 600; color: var(--heading); border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { width: 100%; margin-top: 22px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { background: var(--surface); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; min-height: 580px; }
.hero-copy { padding: 64px 0; }
.hero h1 { margin: 6px 0 18px; }
.hero .lead { max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.hero-visual { position: relative; align-self: stretch; min-height: 420px; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-note { position: absolute; right: 28px; top: 32px; font-style: italic; font-weight: 700; color: var(--heading); font-size: 1rem; line-height: 1.25; transform: rotate(-8deg); text-align: center; background: rgba(255,255,255,0.88); backdrop-filter: blur(6px); padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow-soft); }
.hero-note::after { content: "♡"; display: block; font-style: normal; font-size: 0.9rem; margin-top: 2px; }
.hero-note.light { position: static; transform: rotate(-6deg); color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.12); box-shadow: none; margin-top: 28px; display: inline-block; text-align: left; }

/* ---------- Platforms ---------- */
.platforms { padding: 64px 0 56px; border-bottom: 1px solid var(--line-soft); }
.platforms-head { margin-bottom: 32px; }
.platforms-head .lead { margin: 10px auto 0; max-width: 680px; }
.platform-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 72px; }
.platform-list li { display: inline-flex; align-items: center; gap: 10px; height: 40px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; position: relative; color: var(--ink); }
.platform-list li + li::before { content: ""; position: absolute; left: -36px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.platform-list img { height: 32px; width: auto; }
.platform-list img.logo-tall { height: 36px; }
.platform-list img[alt="Zalo"] { height: 44px; margin: -6px 0; }
.platform-list img.logo-icon { height: 30px; }

/* ---------- Pain ---------- */
.section.alt.pain { background: var(--warm); }
.pain-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.05fr; gap: 32px; align-items: center; }
.pain-intro .lead { margin-top: 14px; }
.pain-portrait { position: relative; width: 250px; height: 250px; margin-bottom: 26px; }
.pain-portrait .blob { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--brand-tint), var(--surface-2)); }
.pain-portrait img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 82%; height: auto; max-height: 112%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 24px rgba(20,60,50,0.18)); }
.pain-portrait .spark { position: absolute; right: -6px; top: 14px; width: 36px; height: 36px; }
.pain-list { display: grid; gap: 18px; }
.pain-card { display: flex; gap: 16px; align-items: flex-start; padding: 26px 24px; border-radius: var(--r-lg); }
.pain-card .icon-ring { width: 48px; height: 48px; }
.pain-card .icon-ring svg { width: 24px; height: 24px; }
.pain-card .h4 { margin-bottom: 6px; }
.pain-card p { font-size: var(--fs-body-sm); }
.waterfall { padding: 26px 26px 22px; border-radius: var(--r-lg); }
.waterfall .h3 { margin-bottom: 14px; }
.wf-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 46px; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.86rem; color: var(--ink-3); }
.wf-row:last-child { border-bottom: 0; }
.wf-row .bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.wf-row .bar i { display: block; height: 100%; border-radius: 5px; }
.wf-row .bar i.rev { background: var(--brand); }
.wf-row .bar i.fee { background: #ee7a5a; }
.wf-row .bar i.amber { background: var(--amber); }
.wf-row .bar i.net { background: var(--brand); }
.wf-row .amt { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.wf-row.total { font-weight: 700; color: var(--heading); padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.wf-row.total .amt { color: var(--brand); font-size: 1rem; }

/* ---------- Legal band ---------- */
.band { padding: 64px 0; }
.legal-grid { display: grid; grid-template-columns: 1.1fr 1.3fr 0.8fr; gap: 32px; align-items: start; }
.legal-grid .h2 { margin-bottom: 10px; }
.timeline-h { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; position: relative; padding-top: 4px; }
.timeline-h::before { content: ""; position: absolute; left: 12%; right: 12%; top: 18px; height: 2px; background: rgba(255,255,255,0.3); }
.timeline-h li { text-align: center; position: relative; font-size: 0.78rem; color: rgba(255,255,255,0.8); }
.timeline-h .dot { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 700; display: grid; place-items: center; margin: 0 auto 8px; font-size: 0.8rem; position: relative; }
.timeline-h b { display: block; color: #fff; font-size: 0.9rem; margin-bottom: 4px; }
.rates { border: 1px solid rgba(255,255,255,0.35); border-radius: var(--r); padding: 16px; }
.rate-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rate-boxes div { background: #fff; border-radius: var(--r-sm); padding: 14px 10px; text-align: center; color: var(--ink-3); font-size: 0.74rem; line-height: 1.3; }
.rate-boxes b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--heading); letter-spacing: -0.03em; margin-bottom: 4px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; padding: 28px; }
.calc > *, .calc .field, .calc-result, .form .field, .form .grid > * { min-width: 0; }
.calc .field { display: flex; flex-direction: column; gap: 8px; }
.calc input[type="range"] { min-width: 0; }
.calc label { font-weight: 600; font-size: 0.9rem; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.calc .range-val { color: var(--brand); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; accent-color: var(--brand); height: 28px; }
.calc select, .form input, .form select, .form textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px;
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.calc select, .form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235f7a73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.calc select:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20,115,95,0.15); }
.calc-fields { display: grid; gap: 22px; align-content: start; }
.calc-result { display: flex; flex-direction: column; gap: 6px; }
.calc-result .line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--ink-3); }
.calc-result .line > span { display: inline-flex; align-items: center; gap: 8px; }
.calc-result .line svg { width: 16px; height: 16px; color: var(--brand); }
.calc-result .line b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.calc-result .line.neg b { color: var(--coral); }
.total-box { background: var(--brand); color: #fff; border-radius: var(--r); padding: 20px 22px; text-align: center; margin-top: 12px; }
.total-box > span { font-size: 0.8rem; opacity: 0.95; }
.total-box .big { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.calc-status { display: block; font-size: 0.76rem; line-height: 1.45; opacity: 0.9; }
.calc-result .btn-zalo { margin-top: 12px; align-self: center; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: separate; border-spacing: 6px 0; min-width: 720px; }
.compare th, .compare td { padding: 14px 16px; text-align: center; vertical-align: middle; font-size: 0.9rem; background: #fff; border-bottom: 1px solid var(--line-soft); color: var(--ink-3); }
.compare th { font-size: 0.82rem; color: var(--ink); font-weight: 700; background: var(--surface-2); }
.compare thead th:first-child { border-radius: var(--r-sm) 0 0 0; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child, .compare th:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.compare th.us { background: var(--brand); color: #fff; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.compare td.us { background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; border-left: 1.5px solid var(--brand); border-right: 1.5px solid var(--brand); }
.compare tr:last-child td.us { border-bottom: 1.5px solid var(--brand); border-radius: 0 0 var(--r-sm) var(--r-sm); }
.compare td.us svg { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-right: 6px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.service-head .icon-ring { width: 36px; height: 36px; }
.service-head .icon-ring svg { width: 18px; height: 18px; }
.callout { grid-column: 1 / -1; background: var(--brand-tint); border-color: var(--brand); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 10px 32px; align-items: center; padding: 22px 26px; }
.callout-head { display: flex; align-items: center; gap: 12px; }
.callout-head .h4 { font-size: var(--fs-h3); }
.callout > p { grid-column: 1; margin-top: -2px; font-size: var(--fs-body-sm); color: var(--ink-2); }
.callout .check-list.compact { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.callout .check-list.compact li { padding: 4px 0; font-size: var(--fs-body-sm); }
.callout .btn { grid-column: 3; grid-row: 1 / span 2; }

/* ---------- Stats ---------- */
.stats-section { background: var(--canvas); }
.stats-section .section-head { margin-bottom: 44px; }
.h2.underline { position: relative; display: inline-block; padding-bottom: 14px; }
.h2.underline::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 48px; height: 3px; border-radius: 2px; background: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { text-align: center; display: grid; justify-items: center; gap: 6px; transition-delay: var(--d, 0ms); }
.stat-top { display: flex; align-items: center; gap: 10px; }
.stat-icon { width: 44px; height: 44px; color: var(--brand); display: grid; place-items: center; }
.stat-icon svg { width: 40px; height: 40px; stroke-width: 1.5; }
.stat .stat-num { display: flex; align-items: baseline; font-size: clamp(2.4rem, 3.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat .stat-num .counter, .stat .stat-num .suffix { font-size: inherit; font-weight: inherit; color: inherit; }
.stat .stat-label { color: var(--ink); font-weight: 700; font-size: 1.02rem; margin-top: 6px; }
.stat .stat-sub { color: var(--ink-3); font-size: 0.86rem; max-width: 220px; line-height: 1.5; }
.stat.in .stat-icon { animation: pop .6s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-top: 8px; }
.plan { display: flex; flex-direction: column; padding: 26px 24px; position: relative; }
.plan.featured { border: 1.5px solid var(--brand); box-shadow: var(--shadow-soft); }
.plan .tier { font-size: 0.86rem; font-weight: 700; color: var(--heading); }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 12px; }
.plan .price b { font-size: 1.75rem; font-weight: 800; color: var(--heading); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan .price span { font-size: 0.86rem; color: var(--ink-3); }
.plan .check-list { flex: 1; margin-bottom: 14px; }
.plan .fit { font-size: 0.82rem; color: var(--ink-3); padding: 10px 12px; background: var(--surface); border-radius: var(--r-sm); margin-bottom: 16px; }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: 0.03em; white-space: nowrap; }
.plan .btn { width: 100%; }

/* ---------- Process ---------- */
.process-section { background: var(--canvas); }
.process-section .section-head { margin-bottom: 36px; }
.process-wrap { position: relative; }
.process-line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 60px; z-index: 1; pointer-events: none; }
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; z-index: 2; padding-top: 2px; }
.step { display: grid; justify-items: center; gap: 0; transition-delay: var(--d, 0ms); }
.step .num { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; box-shadow: 0 8px 20px rgba(20,115,95,0.3); border: 4px solid #fff; margin-bottom: 14px; position: relative; z-index: 4; }
.step-card { width: 100%; padding: 28px 22px 26px; text-align: center; display: grid; justify-items: center; gap: 10px; border-radius: var(--r-lg); }
.step-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.step-icon svg { width: 30px; height: 30px; stroke-width: 1.6; }
.step .time { display: inline-flex; font-size: 0.8rem; color: var(--brand-dark); font-weight: 600; background: var(--brand-tint); padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.step p { font-size: var(--fs-body-sm); color: var(--ink-3); line-height: 1.55; }

/* ---------- Case studies ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card.case { padding: 14px; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 22px; align-items: center; border-radius: var(--r-lg); transition-delay: var(--d, 0ms); }
.card.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.case .case-img { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; }
.case .case-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .8s var(--ease); }
.case:hover .case-img img { transform: scale(1.05); }
.case-body { display: grid; gap: 4px; padding-right: 10px; }
.case .chan { font-size: 0.74rem; font-weight: 700; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.case .metric { font-size: clamp(2.4rem, 3.4vw, 3rem); font-weight: 800; color: var(--brand); letter-spacing: -0.04em; line-height: 1; }
.case .note { font-size: 0.8rem; color: var(--ink-3); margin-top: -2px; }
.case .quote { font-style: italic; color: var(--ink-2); font-size: 0.92rem; line-height: 1.55; margin-top: 8px; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tsm .who { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--brand-tint); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tsm .who b { display: block; font-weight: 700; color: var(--heading); font-size: 0.95rem; }
.tsm .who span { font-size: 0.8rem; color: var(--ink-3); }
.tsm .quote { font-style: italic; font-size: 0.9rem; color: var(--ink-2); }
.tsm .stars { color: #f5a623; display: flex; gap: 2px; margin-top: 12px; }
.tsm .stars svg { width: 14px; height: 14px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 2fr; gap: 32px; align-items: start; }
.faq-grid .section-head { margin: 0; }
.faq { display: grid; grid-template-columns: 1fr; gap: 0; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; }
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: var(--brand); }
.faq-item h3 { font-size: var(--fs-h4); font-weight: 600; color: var(--heading); line-height: 1.35; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: none; border: 0; border-radius: var(--r-sm); text-align: left; font: inherit; color: inherit; }
.faq-q svg { width: 18px; height: 18px; flex: none; color: var(--brand); transition: transform .3s var(--ease); }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 18px 16px; color: var(--ink-3); line-height: 1.6; font-size: var(--fs-body-sm); max-width: 70ch; }

/* ---------- Contact / CTA band ---------- */
.cta-band { border-radius: var(--r-xl) var(--r-xl) 0 0; position: relative; overflow: hidden; background: radial-gradient(900px 500px at 15% 0%, rgba(255,255,255,0.09), transparent 60%), var(--dark); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info .h2 { margin-bottom: 18px; }
.check-list.light li { color: rgba(255,255,255,0.92); font-size: 0.98rem; padding: 7px 0; }
.check-list.light li svg { color: var(--brand-light); width: 20px; height: 20px; }
.proof { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 0.9rem; color: rgba(255,255,255,0.92); }
.proof b { color: #fff; }
.avatars { display: flex; }
.avatars img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--dark); margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.contact-side { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.18); }
.contact-side .hot { display: flex; gap: 12px; align-items: center; color: #fff; }
.contact-side .hot .icon-ring.solid { background: #fff; color: var(--brand); width: 44px; height: 44px; }
.contact-side .hot .icon-ring img { width: 26px; height: 26px; }
.contact-side .hot .icon-ring.zalo img { width: 30px; height: 30px; }
.contact-side .hot span:last-child { display: grid; min-width: 0; }
.contact-side .hot small { font-size: 0.78rem; opacity: 0.92; }
.contact-side .hot b { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-side .hot.mail b { font-size: 0.92rem; font-weight: 600; }
.form { padding: 30px; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-float); }
.form-head { margin-bottom: 18px; }
.form-head .h3, .section.dark .form .h3 { margin-bottom: 4px; color: var(--heading); }
.section.dark .form .muted { color: var(--ink-3); }
.form .grid { gap: 14px; }
.form > .field, .form > .grid, .form > .more { margin-top: 14px; }
.form .grid .field { margin-top: 0; }
.form label, .form .form-label { display: block; font-weight: 600; font-size: 0.84rem; margin-bottom: 6px; color: var(--ink-2); }
.form label i { color: var(--coral); font-style: normal; }
.form input, .form select, .form textarea { min-height: 46px; font-size: 0.95rem; }
.form textarea { min-height: 84px; resize: vertical; }
.form .chip { font-size: 0.82rem; padding: 7px 12px; }
.form .chip input { width: 14px; height: 14px; min-height: 0; padding: 0; margin: 0; accent-color: var(--brand); }
.form .more { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.form .more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--brand); padding: 4px 0; }
.form .more summary::-webkit-details-marker { display: none; }
.form .more summary svg { width: 14px; height: 14px; transition: transform .3s; }
.form .more[open] summary svg { transform: rotate(45deg); }
.form .more[open] summary { margin-bottom: 10px; }
.btn-lg { min-height: 54px; font-size: 1.05rem; }
.form .btn { width: 100%; margin-top: 18px; }
.form .privacy { font-size: 0.78rem; color: var(--ink-3); margin-top: 12px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.form .privacy svg { width: 13px; height: 13px; }
.form .privacy a { text-decoration: underline; }
.form-msg { display: none; margin-top: 12px; border-radius: var(--r-sm); padding: 12px 14px; font-weight: 500; font-size: 0.9rem; }
.form-msg.ok { display: block; background: var(--brand-tint); color: var(--brand-dark); }
.form-msg.err { display: block; background: var(--coral-tint); color: #a03a1a; }
.field-error { font-size: 0.76rem; color: var(--coral); margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--coral); }
.field.invalid .field-error { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,0.8); padding: 56px 0 24px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.5fr; gap: 36px 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-wordmark { margin-bottom: 4px; }
.footer-brand p { margin-top: 14px; max-width: 320px; font-size: 0.88rem; line-height: 1.6; color: rgba(255,255,255,0.85); }
.site-footer h4 { font-size: 0.8rem; font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer li { padding: 5px 0; }
.site-footer li a, .site-footer li span { display: inline-flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,0.88); min-width: 0; }
.footer-contact .mail { overflow-wrap: anywhere; }
.site-footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact svg { width: 15px; height: 15px; color: var(--brand-light); flex: none; margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: grid; place-items: center; transition: background .2s; }
.footer-social a:hover { background: rgba(255,255,255,0.2); }
.footer-social a svg { width: 16px; height: 16px; }
.footer-social img { filter: brightness(0) invert(1); }
.footer-social a.zalo { background: #fff; }
.footer-social a.zalo img { filter: none; width: 24px; height: 24px; }
.footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(255,255,255,0.82); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a:hover { color: #fff; }

/* ---------- Floating UI ---------- */
.back-to-top { position: fixed; right: 20px; bottom: 96px; z-index: 50; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--heading); display: grid; place-items: center; box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }
.float-zalo { position: fixed; right: 20px; bottom: 36px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0,104,255,0.3); border: 1px solid var(--zalo-tint); }
.float-zalo img { width: 34px; height: 34px; }
.mobile-cta { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Misc pages (blog, privacy) ---------- */
.section-head.left { text-align: left; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .legal-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid .rates { grid-column: 1 / -1; }
  .rate-boxes { grid-template-columns: repeat(2, 160px); }
  .contact { grid-template-columns: 1fr 1.15fr; gap: 32px; }
  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .brand-tagline { display: none; }
  .brand-icon { width: 36px; height: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-copy { padding: 44px 0 28px; }
  .hero-visual { min-height: 0; height: 300px; margin: 0 -28px; }
  .hero-note { top: 16px; right: 20px; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .pain-grid > .pain-intro { grid-column: 1 / -1; }
  .pain-portrait { width: 200px; height: 200px; }
  .process-line { display: none; }
  .legal-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing, .testimonials { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .cases { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; padding: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 0; }
  .faq { grid-template-columns: 1fr; }
  .platform-list { gap: 12px 24px; flex-wrap: nowrap; }
  .platform-list li + li::before { display: none; }
  .platform-list li { font-size: 0.95rem; gap: 6px; height: 32px; }
  .platform-list img.logo-icon { height: 24px; width: auto; }
  .platform-list img.logo-tall { height: 26px; width: auto; }
  .platforms { padding: 44px 0 40px; }
  .platforms-head .lead { font-size: 0.86rem; letter-spacing: -0.01em; }
  .section { padding: 48px 0; }
  .mobile-cta { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); border-top: 1px solid var(--line-soft); }
  .mobile-cta .btn { min-height: 44px; padding: 0 12px; font-size: 0.9rem; }
  .mobile-cta .btn-zalo { padding: 0 14px; }
  .mobile-cta .btn-zalo img { width: 22px; height: 22px; }
  .float-zalo { display: none; }
  .back-to-top { bottom: 84px; right: 14px; }
  body { padding-bottom: 70px; }
  .cta-band { border-radius: 0; }
}
@media (max-width: 760px) {
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; border-spacing: 0; display: block; }
  .compare thead { display: none; }
  .compare tbody, .compare tr { display: block; }
  .compare tr { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
  .compare td { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: #fff; }
  .compare td::before { content: attr(data-label); font-size: 0.78rem; font-weight: 600; color: var(--ink-3); text-align: left; flex: none; }
  .compare td:first-child { background: var(--surface-2); font-weight: 700; color: var(--heading); justify-content: flex-start; text-align: left; }
  .compare td:first-child::before { display: none; }
  .compare td.us { border: 0; background: var(--brand); color: #fff; font-weight: 700; }
  .compare td.us::before { color: rgba(255,255,255,0.85); }
  .compare td.us svg { color: #fff; }
  .compare td.us .tag { background: rgba(255,255,255,0.18); color: #fff; }
  .compare tr:last-child td.us { border-radius: 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .brand-lockup .brand-text { display: none; }
  .brand-icon { width: 40px; height: 40px; }
  .hero-visual { margin: 0 -18px; height: 240px; }
  :root { --fs-display: 2rem; --fs-h2: 1.5rem; --fs-h3: 1.15rem; }
  .hero-cta .btn { width: 100%; }
  .pain-grid { grid-template-columns: 1fr; }
  .process, .services-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .stat .stat-num { font-size: 2rem; }
  .stat-icon { width: 32px; height: 32px; }
  .stat-icon svg { width: 30px; height: 30px; }
  .stat .stat-label { font-size: 0.92rem; }
  .stat .stat-sub { font-size: 0.8rem; }
  .card.case { grid-template-columns: 120px minmax(0,1fr); gap: 14px; }
  .case .metric { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .site-footer { font-size: 0.86rem; }
  .footer-brand p { font-size: 0.84rem; }
  .form { padding: 22px; }
  .form .grid-2 { grid-template-columns: 1fr; }
  .wf-row { grid-template-columns: 96px minmax(0,1fr) 42px; font-size: 0.78rem; }
  .timeline-h { grid-template-columns: 1fr 1fr; gap: 16px 8px; }
  .timeline-h::before { display: none; }
  .rate-boxes { grid-template-columns: 1fr 1fr; }
  .footer-row { justify-content: flex-start; }
  .callout { grid-template-columns: 1fr; gap: 12px; }
  .callout > p, .callout .check-list.compact, .callout .btn { grid-column: 1; grid-row: auto; }
  .callout .btn { justify-self: start; }
}
