/* ============================================================================
   DOMI TECHNOLOGY — DESIGN SYSTEM v2
   Phong cách: B2B SaaS kỹ thuật cao cấp (tham chiếu linear.app / stripe / vercel)
   — Typography là nhân vật chính: heading to, thanh mảnh (weight 300),
     letter-spacing âm nhẹ, nhiều khoảng trắng.
   — Nhận diện giữ nguyên: navy đậm + xanh dương điện, GÓC VUÔNG (radius 0).
   — Nhịp section sáng–tối xen kẽ: .bg-navy / .bg-dark (tối) ↔ trắng / .bg-soft.
   — File này DÙNG CHUNG cho cả 5 trang: index, san-pham, bang-gia,
     dung-thu, ve-chung-toi. Mọi class đặt tên tái sử dụng được.

   MỤC LỤC
   01. Token (biến thiết kế)
   02. Reset & nền tảng
   03. Typography (chữ)
   04. Nút & liên kết
   05. Header & điều hướng
   06. Section & nhịp nền sáng–tối
   07. Hero (khối mở đầu)
   08. Khung ảnh sản phẩm (.shot / .img-frame)
   09. Lưới & thẻ (card)
   10. Dây chuyền 6 Tool (.flow — timeline dọc)
   11. Dải số liệu (.stats)
   12. Cột lợi thế (.why-col)
   13. Workflow đánh số (trang sản phẩm)
   14. Bảng & thẻ giá (pricing / plan)
   15. Form
   16. Dải CTA cuối trang
   17. Footer
   18. Hiệu ứng reveal khi cuộn
   19. Tiện ích (utilities)
   20. Responsive (≤1024px, ≤840px nav, ≤640px)
   ============================================================================ */

/* ---------------------------------------------------------------------------
   01. TOKEN — biến thiết kế dùng toàn hệ thống
   --------------------------------------------------------------------------- */
:root {
  /* Bảng màu thương hiệu — KHÔNG đổi */
  --navy-950: #060D1F;      /* nền tối sâu nhất: hero, footer */
  --navy-900: #0A1633;      /* nền tối chính */
  --navy-800: #0E2050;
  --navy-700: #0B2A6B;
  --blue-600: #1D4ED8;      /* xanh điện đậm — hover nút */
  --blue-500: #2563EB;      /* xanh điện chính — CTA, accent */
  --blue-400: #3B82F6;
  --blue-300: #60A5FA;      /* accent trên nền tối */
  --cyan-300: #7DD3FC;

  /* Nền sáng */
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;       /* section xám xanh rất nhạt */
  --bg-mint: #EBF1FA;

  /* Chữ trên nền sáng */
  --text: #171E2E;
  --text-soft: #4B5468;
  --text-invert: #EAF0FA;

  /* Chữ phụ trên nền tối */
  --muted-dark: #93A5C8;    /* caption / ghi chú trên navy */
  --muted-dark-2: #7285A8;  /* mờ hơn nữa (footer bottom, footnote) */

  /* Đường kẻ */
  --line: #DCE3EE;                          /* hairline trên nền sáng */
  --line-dark: rgba(140, 170, 220, .20);    /* hairline trên nền tối */

  /* Hình khối */
  --radius: 0px;            /* GÓC VUÔNG sắc cạnh — nét nhận diện DOMI */
  --maxw: 1200px;
  --maxw-narrow: 880px;

  /* Chữ */
  --font: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;

  /* Bóng đổ */
  --shadow-card: 0 16px 40px rgba(10, 22, 51, .10);
  --shadow-shot: 0 40px 100px rgba(3, 10, 30, .55);

  /* Chuyển động */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------------------
   02. RESET & NỀN TẢNG
   --------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--blue-500); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------------------
   03. TYPOGRAPHY — heading to, thanh mảnh; <strong> = điểm nhấn đậm
   --------------------------------------------------------------------------- */
h1, .h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h1 strong, .h1 strong { font-weight: 700; }

h2, .h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.015em;
}
h2 strong, .h2 strong { font-weight: 700; }

h3, .h3 { font-size: 1.22rem; font-weight: 600; line-height: 1.35; }
h4, .h4 { font-size: 1rem;   font-weight: 600; line-height: 1.4; }

/* Nhãn nhỏ phía trên heading — kèm vạch ngang kiểu kỹ thuật */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7;
}

/* Đoạn mở đầu (sapo) */
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--text-soft); max-width: 46em; }

/* Chữ trên nền tối */
.on-dark { color: var(--text-invert); }
.on-dark .lead { color: #B9C6DE; }
.on-dark .eyebrow { color: var(--blue-300); }

/* Đầu section: eyebrow + h2 + lead */
.section-head { max-width: 800px; margin-bottom: 64px; }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------------------
   04. NÚT & LIÊN KẾT — góc vuông, chuyển động tinh tế
   --------------------------------------------------------------------------- */
.btn {
  display: inline-block; padding: 14px 30px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; }

/* Nút chính — xanh dương điện */
.btn-primary { background: var(--blue-500); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; box-shadow: 0 10px 26px rgba(37, 99, 235, .35); }
/* Nút trong menu: thắng specificity của .main-nav a */
.main-nav a.btn-primary { color: #fff; }
.main-nav a.btn-primary:hover { color: #fff; background: var(--blue-600); }
/* Trên nền tối: nút chính chuyển TRẮNG cho nổi bật tối đa */
.on-dark .btn-primary, .bg-navy .btn-primary, .bg-dark .btn-primary {
  background: #fff; color: var(--navy-900);
}
.on-dark .btn-primary:hover, .bg-navy .btn-primary:hover, .bg-dark .btn-primary:hover {
  background: var(--cyan-300); color: var(--navy-950);
  box-shadow: 0 10px 30px rgba(125, 211, 252, .25);
}

/* Nút viền (trên nền sáng) */
.btn-outline { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-600); color: #fff; }

/* Nút viền trên nền tối */
.on-dark .btn-outline, .btn-outline-light {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45);
}
.on-dark .btn-outline:hover, .btn-outline-light:hover {
  background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff;
}

.btn-lg { padding: 17px 42px; font-size: 1.08rem; }

/* Liên kết mũi tên — mũi tên trượt nhẹ khi hover */
.arrow-link { font-weight: 600; color: var(--blue-600); white-space: nowrap; }
.arrow-link::after { content: "\00A0→"; display: inline-block; transition: transform .2s var(--ease); }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translateX(5px); }
.on-dark .arrow-link { color: var(--blue-300); }

/* ---------------------------------------------------------------------------
   05. HEADER & ĐIỀU HƯỚNG — sticky, nền mờ (blur)
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 36px; height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand-name {
  font-weight: 700; font-size: 1.1rem; color: var(--navy-900);
  letter-spacing: .02em; line-height: 1.1;
}
.brand-name small {
  display: block; font-size: .6rem; font-weight: 600;
  letter-spacing: .32em; color: var(--blue-500); text-transform: uppercase;
}

.main-nav { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.main-nav a { position: relative; color: var(--text); font-weight: 500; font-size: .96rem; }
.main-nav a:hover, .main-nav a.active { color: var(--blue-600); text-decoration: none; }
/* Gạch chân trượt cho link đang active (không áp vào nút) */
.main-nav a.active:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--blue-500);
}
.main-nav .btn { padding: 10px 22px; font-size: .93rem; }

/* Nút mở menu di động (hook JS: .nav-toggle → toggle .open trên .main-nav) */
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line);
  font-size: 1.35rem; line-height: 1; padding: 6px 12px;
  cursor: pointer; color: var(--navy-900);
}

/* ---------------------------------------------------------------------------
   06. SECTION & NHỊP NỀN SÁNG–TỐI
   Nhịp chuẩn: tối (hero) → tối (số liệu) → sáng → xám nhạt → sáng → tối → CTA
   --------------------------------------------------------------------------- */
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }

.bg-soft { background: var(--bg-soft); }
.bg-mint { background: var(--bg-mint); }
/* Nền navy có chiều sâu — gradient rất kín đáo */
.bg-navy { background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%); }
.bg-dark { background: var(--navy-950); }

/* Hairline ngăn hai section tối liền nhau */
.hairline-top { border-top: 1px solid var(--line-dark); }

/* Giữ tương thích class cũ (thiết kế v1 dùng vát chéo — v2 chuyển cạnh thẳng
   cho sạch và cao cấp hơn; class giữ lại để trang cũ không vỡ) */
.slope-top, .slope-bottom { clip-path: none; margin-top: 0; }

/* ---------------------------------------------------------------------------
   07. HERO — khối mở đầu trang: nền navy sâu + lưới kỹ thuật + glow
   Cấu trúc: .hero > .container > [khối chữ] + .hero-visual
   --------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--text-invert);
  padding: 116px 0 128px;
}
/* Lưới mạch kỹ thuật mờ phía sau */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .3; pointer-events: none;
  background-image:
    linear-gradient(rgba(96, 165, 250, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, .13) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 55% 25%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 95% 85% at 55% 25%, #000 25%, transparent 75%);
}
/* Quầng sáng xanh điện góc trên */
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  top: -30%; right: -12%; width: 70%; height: 90%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, .28), transparent 65%);
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.04fr .96fr;
  gap: 64px; align-items: center;
}
.hero h1 { margin-top: 6px; }
.hero .lead { margin-top: 24px; }
.hero .lead strong { color: #fff; }

.hero-cta { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: .9rem; color: var(--muted-dark); }

.hero-visual { position: relative; }
.hero-visual .glow {
  position: absolute; inset: -14%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, .38), transparent 65%);
}

/* ---------------------------------------------------------------------------
   08. KHUNG ẢNH SẢN PHẨM
   .shot      — khung "cửa sổ phần mềm": thanh tiêu đề 3 chấm + ảnh (hero, demo)
   .img-frame — khung ảnh mảnh 1px (mọi ảnh nội dung)
   --------------------------------------------------------------------------- */
.shot {
  border: 1px solid rgba(96, 165, 250, .35);
  background: var(--navy-900);
  box-shadow: var(--shadow-shot);
}
.shot-bar {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  background: rgba(96, 165, 250, .08);
  border-bottom: 1px solid rgba(96, 165, 250, .25);
}
.shot-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(148, 170, 210, .45);
}
.shot-bar i:first-child { background: rgba(96, 165, 250, .8); }
.shot img { width: 100%; }

.img-frame { border: 1px solid var(--line); background: #fff; }
.on-dark .img-frame, .bg-navy .img-frame, .bg-dark .img-frame {
  border-color: var(--line-dark); background: transparent;
}
.media-stack > * + * { margin-top: 24px; }

/* ---------------------------------------------------------------------------
   09. LƯỚI & THẺ (CARD)
   --------------------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
/* Vạch accent xanh chạy ngang mép trên khi hover */
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px;
  height: 2px; background: var(--blue-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.card:hover { border-color: var(--blue-400); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card:hover::before { transform: scaleX(1); }

.card ul { padding-left: 18px; color: var(--text-soft); font-size: .95rem; }
.card ul li { margin: 5px 0; }
.card .arrow-link { margin-top: auto; }

/* Ô số thứ tự vuông (dùng trong card công cụ) */
.card .tool-no, .tool-no {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--navy-950); color: var(--blue-300);
  font-weight: 700; font-size: 1.02rem; letter-spacing: .02em;
}

/* Card trên nền tối */
.on-dark .card { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); }
.on-dark .card:hover { border-color: var(--blue-300); box-shadow: none; }
.on-dark .card ul { color: #AABBD8; }

/* Nhãn (badge) */
.badge {
  display: inline-block; align-self: flex-start;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 12px;
  background: var(--blue-500); color: #fff;
}
.badge-soft { background: var(--bg-mint); color: var(--navy-700); }
.on-dark .badge-soft { background: rgba(255, 255, 255, .1); color: var(--blue-300); }

/* ---------------------------------------------------------------------------
   10. DÂY CHUYỀN 6 TOOL — timeline dọc thuần CSS
   Cấu trúc:
     <ol class="flow">
       <li class="flow-item"> <div class="flow-no">01</div>
         <div class="flow-card"> h3 + p + ul + .arrow-link </div>
       </li> …
     </ol>
   Đường ray dọc nối các số; giữa hai bước có mũi tên ▾ (output → input).
   --------------------------------------------------------------------------- */
.flow { list-style: none; position: relative; max-width: var(--maxw-narrow); margin: 0 auto; }
/* Đường ray dọc */
.flow::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 60px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue-400) 0%, var(--blue-400) 70%, transparent 100%);
  opacity: .55;
}
.flow-item { position: relative; padding: 0 0 44px 96px; }
.flow-item:last-child { padding-bottom: 0; }

/* Ô số vuông trên ray */
.flow-no {
  position: absolute; left: 0; top: 0;
  width: 55px; height: 55px; display: grid; place-items: center;
  background: var(--navy-950); color: var(--blue-300);
  border: 1px solid var(--blue-400);
  font-weight: 700; font-size: 1.05rem; letter-spacing: .03em;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.flow-item:hover .flow-no { background: var(--blue-500); color: #fff; }

/* Mũi tên ▾ trên ray giữa hai bước — gợi ý output bước trước → input bước sau */
.flow-item:not(:last-child)::after {
  content: "▾"; position: absolute; left: 27px; bottom: 12px;
  transform: translateX(-50%);
  color: var(--blue-400); font-size: .85rem; line-height: 1;
}

/* Thân nội dung mỗi bước */
.flow-card {
  background: #fff; border: 1px solid var(--line);
  padding: 30px 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
              transform .25s var(--ease);
}
.flow-item:hover .flow-card {
  border-color: var(--blue-400); box-shadow: var(--shadow-card); transform: translateX(4px);
}
.flow-card > p { color: var(--text-soft); }
.flow-card ul { padding-left: 18px; color: var(--text-soft); font-size: .95rem; }
.flow-card ul li { margin: 5px 0; }

/* ---------------------------------------------------------------------------
   11. DẢI SỐ LIỆU — social proof kỹ thuật trên nền tối
   Cấu trúc: .stats > .stat ×N (.num + .cap); footnote dùng .stat-note
   --------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 10px 36px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .num {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 300; line-height: 1.12; color: #fff; letter-spacing: -0.02em;
}
.stat .num strong { font-weight: 700; color: var(--blue-300); }
.stat .cap { margin-top: 10px; font-size: .92rem; line-height: 1.55; color: var(--muted-dark); }
/* Ghi chú nguồn dưới dải số */
.stat-note { text-align: center; margin-top: 48px; font-size: .85rem; color: var(--muted-dark-2); }

/* ---------------------------------------------------------------------------
   12. CỘT LỢI THẾ — 3 cột bullet có dấu ✓ (section "Vì sao chọn DOMI")
   --------------------------------------------------------------------------- */
.why-col h2 { margin-bottom: 20px; font-size: 1.42rem; font-weight: 600; letter-spacing: 0; }
.why-col ul { list-style: none; }
.why-col li {
  padding: 12px 0 12px 30px; position: relative;
  border-top: 1px solid var(--line); color: var(--text-soft);
}
.why-col li::before {
  content: "✓"; position: absolute; left: 2px; top: 12px;
  color: var(--blue-500); font-weight: 700;
}
.on-dark .why-col li { border-top-color: var(--line-dark); color: #AABBD8; }
.on-dark .why-col li::before { color: var(--blue-300); }

/* ---------------------------------------------------------------------------
   13. WORKFLOW ĐÁNH SỐ — danh sách bước lớn (trang sản phẩm)
   --------------------------------------------------------------------------- */
.workflow { list-style: none; counter-reset: step; }
.workflow > li { position: relative; padding: 36px 0 36px 108px; border-top: 1px solid var(--line); }
.workflow > li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 32px;
  font-size: 2.1rem; font-weight: 300; color: var(--blue-500); letter-spacing: -0.02em;
}
.workflow .io { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: .88rem; }
.workflow .io span {
  border: 1px solid var(--line); padding: 5px 12px;
  color: var(--text-soft); background: var(--bg-soft);
}
.workflow .io span b { color: var(--navy-700); }

/* ---------------------------------------------------------------------------
   14. BẢNG & THẺ GIÁ
   --------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table.pricing, table.plain {
  width: 100%; border-collapse: collapse; font-size: .95rem;
  background: #fff; min-width: 720px;
}
.pricing th, .pricing td, .plain th, .plain td {
  padding: 15px 18px; text-align: left;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.pricing thead th { background: var(--navy-950); color: #fff; font-weight: 600; white-space: nowrap; }
.pricing thead th small { display: block; font-weight: 400; color: var(--blue-300); }
.pricing tbody tr, .plain tbody tr { transition: background .15s var(--ease); }
.pricing tbody tr:hover, .plain tbody tr:hover { background: var(--bg-soft); }
.pricing td.price { font-weight: 700; color: var(--navy-700); white-space: nowrap; }
.pricing .best { background: #EEF4FF; }
.table-note { margin-top: 14px; font-size: .88rem; color: var(--text-soft); }

/* Thẻ giá (plan card) — dùng trong .plans (lưới do trang tự đặt) */
.plan {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.plan:hover { border-color: var(--blue-400); transform: translateY(-4px); box-shadow: var(--shadow-card); }
/* Gói nổi bật: viền xanh + vạch accent trên */
.plan.best { border-color: var(--blue-500); box-shadow: var(--shadow-card); }
.plan.best::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px;
  height: 3px; background: var(--blue-500);
}
.plan .price { font-size: 1.95rem; font-weight: 300; color: var(--navy-900); letter-spacing: -0.02em; }
.plan .price strong { font-weight: 700; }
.plan .per { color: var(--text-soft); font-size: .9rem; }
.plan ul { list-style: none; font-size: .93rem; color: var(--text-soft); }
.plan li { padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--blue-500); font-weight: 700; }
.plan li.no::before { content: "—"; color: #B6BFCE; }
.plan .btn { margin-top: auto; text-align: center; }

/* ---------------------------------------------------------------------------
   15. FORM
   --------------------------------------------------------------------------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field label .req { color: #D11037; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font); font-size: .98rem;
  background: #fff; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}
.field .hint { font-size: .82rem; color: var(--text-soft); margin-top: 6px; }
.checks { display: grid; gap: 10px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.checks input { width: auto; margin-top: 4px; accent-color: var(--blue-500); }

/* ---------------------------------------------------------------------------
   16. DẢI CTA CUỐI TRANG
   Cấu trúc: <section class="section cta-band …"> h2 + .lead + .btn + .cta-sub
   --------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .lead { margin: 20px auto 0; }
.cta-band .btn { margin-top: 34px; }
.cta-sub { margin-top: 16px; font-size: .9rem; color: var(--text-soft); }
.on-dark .cta-sub { color: var(--muted-dark); }

/* ---------------------------------------------------------------------------
   17. FOOTER
   --------------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #A8B7D4; font-size: .92rem; }
.site-footer .footer-main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding: 80px 0 56px;
}
.site-footer h4 {
  color: #fff; font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin: 10px 0; }
.site-footer a { color: #A8B7D4; transition: color .15s var(--ease); }
.site-footer a:hover { color: var(--blue-300); text-decoration: none; }
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-brand p { margin-bottom: 14px; }
/* Ô đồng ý xử lý dữ liệu — bắt buộc tích, theo Luật Bảo vệ dữ liệu cá nhân
   91/2025/QH15: sự đồng ý phải rõ ràng, im lặng hoặc mặc định bật không tính */
.o-dongy {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 16px; font-size: .88rem; line-height: 1.6; color: var(--text-soft);
  cursor: pointer;
}
.o-dongy input {
  width: auto; margin-top: 3px; flex: none;
  accent-color: var(--blue-500); transform: scale(1.15);
}
.o-dongy a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.o-dongy input:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }

/* Cụm liên kết pháp lý — nằm trên dòng bản quyền */
.footer-phaply {
  border-top: 1px solid var(--line-dark); padding: 20px 0 4px;
  display: flex; gap: 26px; flex-wrap: wrap; font-size: .88rem;
}
.footer-phaply a { color: #A8B7D4; }
.footer-phaply a:hover { color: var(--blue-300); text-decoration: none; }
.footer-phaply + .footer-bottom { border-top: 0; padding-top: 16px; }

.footer-bottom {
  border-top: 1px solid var(--line-dark); padding: 24px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: var(--muted-dark-2);
}

/* ---------------------------------------------------------------------------
   18. HIỆU ỨNG REVEAL KHI CUỘN
   Hook JS (main.js): IntersectionObserver thêm .in cho phần tử .reveal
   .d1/.d2/.d3 — trễ bậc thang cho các phần tử cạnh nhau
   --------------------------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.d1, .reveal.d2, .reveal.d3 {
    opacity: 1; transform: none; transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------------
   18b. KHỐI VIDEO DEMO (#video-demo — trang chủ)
   .video-frame  — khung poster + nút phát; JS thay bằng <iframe> khi có link nhúng
   Mặc định khung DỌC 9:16 (video demo quay dọc). Video ngang: thêm .is-wide
   --------------------------------------------------------------------------- */
.video-frame {
  position: relative; overflow: hidden;
  max-width: 340px; margin: 0 auto; aspect-ratio: 9 / 16;
  border: 1px solid var(--line); background: var(--navy-950);
  box-shadow: var(--shadow-card);
}
.video-frame.is-wide { max-width: 100%; aspect-ratio: 16 / 9; }
.video-frame > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame > iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-frame.playing { background: #000; }

.video-play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(180deg, rgba(6, 13, 31, .25), rgba(6, 13, 31, .72));
  color: #fff; font-weight: 600; letter-spacing: .01em;
  transition: background .25s var(--ease);
}
.video-play:hover { background: linear-gradient(180deg, rgba(6, 13, 31, .18), rgba(6, 13, 31, .62)); text-decoration: none; }
.video-play-icon {
  width: 66px; height: 66px; display: grid; place-items: center;
  background: var(--blue-500); box-shadow: 0 12px 30px rgba(37, 99, 235, .45);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.video-play-icon::before {
  content: ""; display: block;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-play:hover .video-play-icon { transform: scale(1.06); background: var(--blue-600); }
.video-play-label { font-size: .95rem; }

.video-cap { margin-top: 14px; text-align: center; font-size: .88rem; color: var(--text-soft); }
.video-points { list-style: none; display: grid; gap: 12px; }
.video-points li { position: relative; padding-left: 26px; color: var(--text-soft); }
.video-points li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 2px; background: var(--blue-500);
}

/* ---------------------------------------------------------------------------
   18c. KHỐI TRƯỚC — SAU (.ba-*) và dải mồi câu (.ba-cta)
   --------------------------------------------------------------------------- */
.ba-col { border-top: 2px solid var(--line); padding-top: 26px; }
.ba-col h3 { margin: 14px 0 12px; }
.ba-col p { color: var(--text-soft); }
.ba-col p + p { margin-top: 14px; }
.ba-tag {
  display: inline-block; padding: 5px 12px;
  font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.ba-tag-before { background: var(--bg-soft); color: var(--text-soft); }
.ba-tag-after { background: var(--navy-900); color: var(--blue-300); }
.ba-fine { font-size: .9rem; }

.ba-cta {
  margin-top: 56px; padding: 34px 38px;
  background: var(--bg-mint); border-left: 3px solid var(--blue-500);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.ba-cta h3 { margin-bottom: 8px; }
.ba-cta p { color: var(--text-soft); max-width: 46em; }
.ba-cta .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .ba-cta { padding: 26px 22px; }
  .ba-cta .btn { width: 100%; text-align: center; }
}

/* ---------------------------------------------------------------------------
   19. TIỆN ÍCH
   --------------------------------------------------------------------------- */
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.align-center { align-items: center; }

/* ---------------------------------------------------------------------------
   20. RESPONSIVE
   --------------------------------------------------------------------------- */
/* Tablet ≤1024px */
@media (max-width: 1024px) {
  .section { padding: 88px 0; }
  .hero { padding: 88px 0 96px; }
  .hero .container { grid-template-columns: 1fr; gap: 52px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat { padding: 6px 28px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Menu di động ≤840px */
@media (max-width: 840px) {
  .main-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(10, 22, 51, .12);
    flex-direction: column; padding: 20px 24px 24px; gap: 18px;
    align-items: flex-start;
  }
  .main-nav.open { display: flex; }
  .main-nav a.active:not(.btn)::after { display: none; }
  .nav-toggle { display: block; }
}

/* Mobile ≤640px */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 52px 0; }
  .section-head { margin-bottom: 44px; }
  .hero { padding: 64px 0 72px; }
  .hero-cta .btn { width: 100%; text-align: center; }

  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr; row-gap: 0; }
  .stat {
    border-left: none; padding: 20px 0;
    border-top: 1px solid var(--line-dark);
  }
  .stat:first-child { border-top: none; padding-top: 0; }
  .stat-note { margin-top: 36px; }

  /* Flow: ray và ô số thu nhỏ */
  .flow::before { left: 18px; }
  .flow-item { padding: 0 0 36px 62px; }
  .flow-no { width: 37px; height: 37px; font-size: .9rem; }
  .flow-item:not(:last-child)::after { left: 18px; bottom: 10px; }
  .flow-card { padding: 24px 20px; }
  .flow-item:hover .flow-card { transform: none; }

  .workflow > li { padding-left: 0; }
  .workflow > li::before { position: static; display: block; margin-bottom: 4px; }

  .card { padding: 28px 22px; }
  .btn-lg { padding: 15px 30px; font-size: 1rem; }

  .site-footer .footer-main { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; }
}
