/* ==================================================================
   Fast AI Chatbot — hệ thống giao diện trang công khai
   Bảng màu lấy đúng từ bộ slide "0_Present fast Chatbot AI_2.2":
     nền   #FFFFFF · #F2FBFC · #E4F7FA
     chữ   #16323A · #4E6A70 · #8CA3A8
     teal  #00808F (chủ đạo) · #00ACC1 · #4DD0E1 · #DCEAEE
     cam   #FF8F00 (nhấn/hành động) · #E07A00 · #FFD180 · #FFF3E2
   ================================================================== */

/* ---------------- 1. Token ---------------- */
:root {
  /* Teal — màu cấu trúc, chiếm chủ đạo */
  --teal: #00acc1;
  --teal-600: #00939f;
  --teal-700: #00727f;   /* dat AA tren nen trang va nen teal nhat */
  --teal-800: #015b66;
  --teal-300: #4dd0e1;
  --teal-200: #a9e4ec;
  --teal-100: #dceaee;
  --teal-50: #e4f7fa;
  --teal-25: #f2fbfc;

  /* Cam — màu hành động, dùng tiết chế */
  --brand: #ff8f00;
  --brand-600: #e07a00;
  --brand-700: #b96400;
  --brand-800: #8f4e00;  /* chu cam nho tren nen cam nhat */
  --brand-200: #ffd180;
  --brand-soft: #fff3e2;
  --brand-25: #fff8ee;
  --brand-ink: #5a4325;
  --brand-glow: rgba(255, 143, 0, .3);

  /* Nền & chữ */
  --ink: #16323a;
  --ink-2: #1e434d;
  --ink-3: #2b5560;
  --paper: #ffffff;
  --paper-2: #f2fbfc;
  --paper-3: #e4f7fa;

  --text: #16323a;
  --text-2: #4e6a70;
  --text-3: #5e7378;    /* 5.4:1 tren nen trang — truoc day #8ca3a8 chi 2.65:1 */
  --text-inv: #f2fbfc;
  --text-inv-2: #b7c9cd;

  --line: #dceaee;
  --line-2: #b7c9cd;
  --hint: #8ca3a8;      /* chi dung cho duong ke / bieu tuong mo, khong dung cho chu */
  --line-dark: rgba(255, 255, 255, .14);

  --ok: #0e9f6e;
  --ok-text: #0a7d57;   /* ban dam de lam mau chu */
  --ok-soft: #e3f7ef;
  --warn: #e07a00;
  --danger: #d64545;
  --danger-soft: #fdeced;

  /* Hình khối */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(22, 50, 58, .05), 0 1px 3px rgba(22, 50, 58, .05);
  --shadow: 0 4px 6px -1px rgba(22, 50, 58, .05), 0 14px 30px -10px rgba(22, 50, 58, .14);
  --shadow-lg: 0 26px 60px -22px rgba(22, 50, 58, .26);
  --shadow-brand: 0 16px 36px -14px var(--brand-glow);
  --shadow-teal: 0 16px 40px -16px rgba(0, 128, 143, .3);

  /* Nhịp */
  --pad: clamp(56px, 8vw, 108px);
  --gap: clamp(20px, 3vw, 32px);
  --wrap: 1220px;

  --font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          'Helvetica Neue', 'Noto Sans', Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------- 2. Nền tảng ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* height:auto là bắt buộc — nếu không, thuộc tính width/height trên thẻ img
   sẽ chọi với chiều rộng CSS và làm ảnh bị kéo méo. */
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -.024em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.72rem, 3.5vw, 2.55rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.35rem); }
p  { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--teal-200); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------- 3. Bố cục ---------------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 820px); margin-inline: auto; }

.section { padding-block: var(--pad); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

/* Bốn cấp nền, xen kẽ nhau tạo nhịp — đúng như bộ slide */
.section--paper { background: var(--paper-2); }
.section--tint  { background: var(--paper-3); }
.section--warm  {
  background:
    radial-gradient(900px 460px at 12% 0%, #ffffff 0%, transparent 62%),
    var(--paper-3);
}

/* Nền đậm — chỉ dùng cho khối quan trọng nhất, tối đa 1–2 lần mỗi trang */
.section--deep {
  background:
    radial-gradient(760px 420px at 88% 8%, rgba(0, 172, 193, .22), transparent 62%),
    linear-gradient(160deg, #1c4450 0%, var(--ink) 60%);
  color: var(--text-inv);
}
.section--deep h2, .section--deep h3, .section--deep h4 { color: #fff; }
.section--deep .lead, .section--deep p { color: var(--text-inv-2); }
.section--deep .muted { color: #9db4ba; }

.grid { display: grid; gap: var(--gap); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

/* ---------------- 4. Phần tử chữ ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--teal), var(--brand));
}
.section--deep .eyebrow { color: var(--teal-300); }
.eyebrow .hot { color: var(--brand-700); }
.section--deep .eyebrow .hot { color: var(--brand-200); }

.lead {
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  color: var(--text-2);
  max-width: 68ch;
}

.section-head { max-width: 800px; margin-bottom: clamp(36px, 4.5vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 + .lead { margin-top: 18px; }

/* Câu chốt cuối mỗi khối */
.kicker {
  margin-top: clamp(32px, 4vw, 46px);
  padding: 20px 26px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 1rem;
  color: var(--brand-ink);
}
.kicker strong { color: #43301a; }
.section--deep .kicker {
  background: rgba(255, 143, 0, .12);
  color: #ffe1b8;
  border-left-color: var(--brand-200);
}
.section--deep .kicker strong { color: #fff; }

.muted { color: var(--text-3); font-size: .92rem; }
.aside-note { color: var(--text-3); font-style: italic; }
.section--deep .aside-note { color: #9db4ba; }

/* ---------------- 5. Nút ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 25px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-weight: 650; font-size: .96rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

/* Chu nau dam thay vi trang: nen cam #FF8F00 giu nguyen, tuong phan 2.29:1 -> 5.38:1 */
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #ffa322 100%);
  color: #4a2f10;
  box-shadow: var(--shadow-brand);
}
.btn-primary svg { color: #4a2f10; }
.btn-primary:hover { box-shadow: 0 20px 44px -14px var(--brand-glow); }

.btn-teal {
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal) 100%);
  color: #fff;
  box-shadow: var(--shadow-teal);
}

.btn-ghost {
  border-color: var(--line-2);
  background: #fff;
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-700); }

.section--deep .btn-ghost {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
.section--deep .btn-ghost:hover { border-color: var(--teal-300); color: var(--teal-300); }

.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 650; color: var(--teal-700);
  border-bottom: 1.5px solid transparent;
  transition: gap .18s var(--ease), border-color .18s, color .18s;
}
.btn-link svg { width: 17px; height: 17px; }
.btn-link:hover { gap: 12px; border-bottom-color: currentColor; }
.section--deep .btn-link { color: var(--teal-300); }

/* ---------------- 6. Thanh điều hướng ---------------- */
.topbar {
  background: var(--ink);
  color: var(--text-inv-2);
  font-size: .85rem;
  text-align: center;
  padding: 9px 20px;
}
.topbar a { color: var(--brand-200); font-weight: 600; border-bottom: 1px solid rgba(255, 209, 128, .45); }

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px -14px rgba(22, 50, 58, .35);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.nav-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-logo img { height: 32px; width: auto; }
.nav-logo .tag {
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-800); background: var(--teal-50);
  padding: 4px 8px; border-radius: 5px; white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 1px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 9px 13px 11px; border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: .92rem; font-weight: 550; color: var(--text-2);
  white-space: nowrap;                /* không cho nhãn menu vỡ thành 2 dòng */
  transition: color .16s;
}
/* Gạch chân báo trang đang xem — rõ hơn nhiều so với nền màu nhạt */
.nav-links a::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--brand));
  transform: scaleX(0); transform-origin: center;
  transition: transform .22s var(--ease), opacity .22s;
  opacity: .55;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(.62); }
.nav-links a.active { color: var(--teal-800); font-weight: 700; }
.nav-links a.active::after { transform: scaleX(1); opacity: 1; }

/* Ở trang chủ không mục nào sáng — đánh dấu ngay dưới logo */
.nav-logo { position: relative; }
.nav-logo.is-home::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: -6px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--brand));
}

.nav-cta { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--ink); font-size: .92rem; white-space: nowrap;
  padding: 9px 12px; border-radius: var(--r-pill);
}
.nav-phone:hover { background: var(--teal-25); }
.nav-phone svg { width: 17px; height: 17px; color: var(--teal-700); }
.nav-cta .btn { padding: 11px 20px; font-size: .9rem; }
/* Đang đứng ở đúng trang mà nút này trỏ tới — không mời bấm nữa, chỉ báo vị trí */
.nav-cta .btn.is-here {
  background: none; color: var(--brand-700);
  border-color: var(--brand-200); box-shadow: none;
}
.nav-cta .btn.is-here::before { content: '✓'; font-weight: 800; margin-right: 2px; }
.nav-cta .btn.is-here:hover { transform: none; background: var(--brand-25); }

.nav-burger {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; align-items: center; justify-content: center; flex: none;
}
.nav-burger span {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: .25s var(--ease);
}
.nav-burger span::before, .nav-burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: .25s var(--ease);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top: 6px; }
.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Chỗ hẹp dần: bỏ số điện thoại trước, rồi mới thu menu vào nút ba gạch */
@media (max-width: 1280px) {
  .nav-phone span { display: none; }
}
@media (max-width: 1160px) {
  .nav-links a { padding: 9px 10px; font-size: .89rem; }
  .nav-logo .tag { display: none; }
}
@media (max-width: 1040px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto; z-index: 59;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 16px 20px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .22s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 16px; font-size: 1rem; border-radius: var(--r-sm); }
  /* Menu dọc: gạch chân đổi thành vạch dọc bên trái cho hợp hướng đọc */
  .nav-links a::after {
    left: 0; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto;
    transform: scaleY(0); transform-origin: center;
  }
  .nav-links a:hover::after { transform: scaleY(.6); }
  .nav-links a.active { background: var(--teal-25); }
  .nav-links a.active::after { transform: scaleY(1); }
  .nav-logo.is-home::after { bottom: -4px; }
  .nav-burger { display: inline-flex; margin-left: auto; }
  .nav-logo .tag { display: inline-block; }
  .nav-phone span { display: inline; }
}
@media (max-width: 720px) {
  .nav-cta .btn { display: none; }
  .nav-phone span { display: none; }
}

/* ---------------- 7. Khối mở đầu ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(255, 209, 128, .34), transparent 60%),
    radial-gradient(760px 520px at 8% 12%, #ffffff 0%, transparent 58%),
    linear-gradient(170deg, var(--teal-50) 0%, #f7fdfe 100%);
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 84px) clamp(60px, 7.5vw, 100px);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 4.5vw, 60px); align-items: center;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(110deg, var(--teal-700), var(--teal) 45%, var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: 20px; font-size: clamp(1.02rem, 1.5vw, 1.17rem); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 7px 6px 14px; border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 24px;
}
.hero-badge b {
  background: var(--brand); color: #4a2f10; font-weight: 800;
  padding: 3px 10px; border-radius: var(--r-pill); font-size: .73rem;
  letter-spacing: .04em;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none;
  box-shadow: 0 0 0 3px rgba(14, 159, 110, .18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero-note {
  margin-top: 26px; font-size: .87rem; color: var(--text-3); max-width: 52ch;
  padding-left: 16px; border-left: 2px solid var(--line-2);
}

/* Cột phải: mascot đứng cạnh, hội thoại mẫu không bị che */
.hero-visual { position: relative; padding-left: clamp(84px, 10.5vw, 152px); }
.hero-mascot {
  position: absolute; left: 0; bottom: 0;
  width: clamp(92px, 10.6vw, 154px);
  height: auto;                       /* giữ đúng tỉ lệ, không bị kéo dẹp */
  z-index: 3;
  filter: drop-shadow(0 20px 28px rgba(22, 50, 58, .22));
  animation: float 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-14px) rotate(1.5deg); }
}

/* ---------------- 7b. Khung hội thoại mẫu ---------------- */
.chatbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.section--deep .chatbox {
  background: rgba(255, 255, 255, .06);
  border-color: var(--line-dark);
  backdrop-filter: blur(6px);
}
.chatbox-head {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 6px 15px; border-bottom: 1px solid var(--line); margin-bottom: 15px;
}
.section--deep .chatbox-head { border-bottom-color: var(--line-dark); }
.chatbox-head .avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .78rem;
}
.chatbox-head .who { font-size: .89rem; font-weight: 650; color: var(--ink); }
.section--deep .chatbox-head .who { color: #fff; }
.chatbox-head .status { font-size: .74rem; color: var(--ok-text); display: flex; align-items: center; gap: 5px; }
.chatbox-head .status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none;
}
.chatbox-head .ch {
  margin-left: auto; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-800); background: var(--teal-50);
  padding: 4px 9px; border-radius: var(--r-pill); white-space: nowrap;
}
.section--deep .chatbox-head .ch { background: rgba(255, 255, 255, .1); color: var(--teal-300); }

.msgs { display: flex; flex-direction: column; gap: 10px; }
.msg {
  max-width: 86%; padding: 11px 15px; border-radius: 16px;
  font-size: .88rem; line-height: 1.55;
  opacity: 0; transform: translateY(10px);
  animation: msgIn .5s var(--ease) forwards;
}
.msg.khach {
  align-self: flex-end;
  background: var(--paper-3); color: var(--ink); border-bottom-right-radius: 5px;
}
.msg.bot {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700));
  color: #f2fbfc; border-bottom-left-radius: 5px;
}
.section--deep .msg.khach { background: rgba(255, 255, 255, .12); color: #eaf6f8; }
.msg .photo {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; padding: 8px 10px;
  background: rgba(255, 255, 255, .55); border-radius: 9px;
  font-size: .77rem; color: var(--text-2);
}
.msg.bot .photo { background: rgba(255, 255, 255, .18); color: #d9f2f6; }
.msg .photo svg { width: 15px; height: 15px; color: var(--brand); }
.msg.bot .photo svg { color: var(--brand-200); }
@keyframes msgIn { to { opacity: 1; transform: none; } }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; padding-left: 0; }
  .hero-mascot { position: static; width: 120px; margin: 0 0 -30px auto; }
}

/* ---------------- 8. Dải số liệu ---------------- */
.statstrip {
  position: relative; z-index: 2;
  margin-top: calc(var(--pad) * -.42);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3vw, 32px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.statstrip .item { text-align: center; padding: 8px 12px; position: relative; }
.statstrip .item + .item::before {
  content: ''; position: absolute; left: 0; top: 16%; height: 68%; width: 1px; background: var(--line);
}
.statstrip .v {
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -.03em;
  color: var(--teal-700);
}
.statstrip .item:nth-child(even) .v { color: var(--brand-700); }
.statstrip .l { font-size: .83rem; color: var(--text-3); margin-top: 4px; line-height: 1.4; }
@media (max-width: 780px) {
  .statstrip { grid-template-columns: repeat(2, 1fr); }
  .statstrip .item:nth-child(odd)::before { display: none; }
}

/* ---------------- 9. Thẻ ---------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.5vw, 28px);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-200); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: .94rem; }

.card--num .no {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--teal-50); color: var(--teal-800);
  font-weight: 800; font-size: .92rem; margin-bottom: 15px;
}
.card--quiet {
  background: linear-gradient(180deg, var(--brand-25), #fff);
  border-color: #f6e0bf;
}
.card--quiet .no { background: var(--brand); color: #fff; }
/* Nhãn cảnh báo — dùng thẻ thật thay vì ::after để (a) trình đọc màn hình đọc được,
   (b) không tranh chấp ::after với lớp giao diện vẽ vạch màu ở mép thẻ. */
.card-flag {
  display: inline-block; margin-top: 14px;
  font-size: .69rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-700);
}

/* Thẻ năng lực: hàng trên là biểu tượng + tiêu đề, mô tả xuống dòng chạy hết
   chiều rộng thẻ. Trước đây mô tả bị bó trong cột cạnh biểu tượng nên chỉ còn
   ~20 ký tự mỗi dòng và vỡ 4–5 dòng. */
.cap { display: block; position: relative; padding-top: 26px; }
.cap-head {
  display: flex; align-items: center; gap: 13px;
  margin-bottom: 14px;
}
.cap .ico {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-800);
}
.cap .ico svg { width: 20px; height: 20px; }
.cap h3 {
  font-size: 1.02rem; margin: 0;
  /* giữ chỗ 2 dòng để mô tả các thẻ cùng hàng bắt đầu ngang nhau */
  min-height: 2.28em; display: flex; align-items: center;
}
.cap p { margin: 0; font-size: .92rem; }
.cap-new { position: absolute; top: 0; right: 0; }

.tag-new {
  font-size: .6rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  background: var(--brand); color: #4a2f10; padding: 3px 8px; border-radius: 5px; white-space: nowrap;
}

/* ---------------- 10. So sánh bot ---------------- */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.versus-col { border: 1px solid var(--line); padding: clamp(22px, 2.8vw, 32px); }
.versus-col:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); background: var(--paper-2); }
.versus-col:last-child  {
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  background: #fff;
  border-color: var(--teal-200); box-shadow: var(--shadow);
}
.versus-mid {
  display: grid; place-items: center; width: 54px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .1em;
}
.versus-mid span { writing-mode: vertical-rl; transform: rotate(180deg); }
.versus h3 {
  font-size: .77rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 20px;
}
.versus-col:last-child h3 { color: var(--teal-700); }
.versus ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.versus li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.versus li .m {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800; margin-top: 2px;
}
.versus-col:first-child li { color: var(--text-3); }
.versus-col:first-child .m { background: var(--line); color: var(--text-3); }
.versus-col:last-child li { color: var(--text); font-weight: 500; }
.versus-col:last-child .m { background: var(--ok); color: #fff; }

@media (max-width: 760px) {
  .versus { grid-template-columns: 1fr; }
  .versus-col:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .versus-col:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .versus-mid { width: auto; height: 42px; }
  .versus-mid span { writing-mode: horizontal-tb; transform: none; }
}

/* ---------------- 11. Máy tính con số ---------------- */
.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(24px, 3.5vw, 44px); align-items: center;
}
.calc-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-sm);
}
.calc-row { margin-bottom: 24px; }
.calc-row:last-child { margin-bottom: 0; }
.calc-row label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: .9rem; font-weight: 600; margin-bottom: 11px;
}
.calc-row label b {
  font-size: 1.04rem; font-weight: 800; color: var(--teal-700);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
input[type=range] {
  width: 100%; height: 6px; border-radius: 3px; appearance: none; -webkit-appearance: none;
  background: linear-gradient(90deg, var(--teal) var(--fill, 40%), var(--line) var(--fill, 40%));
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal-700); cursor: grab;
  box-shadow: 0 3px 10px rgba(0, 128, 143, .3);
  transition: transform .15s;
}
input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal-700); cursor: grab;
}

.calc-out {
  background:
    radial-gradient(560px 320px at 100% 0%, rgba(255, 143, 0, .28), transparent 62%),
    linear-gradient(155deg, #1c4450, var(--ink));
  color: #fff; border-radius: var(--r-lg);
  padding: clamp(26px, 3.2vw, 36px); position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.calc-out .k { font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--teal-300); }
.calc-out .big {
  font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -.035em;
  margin: 10px 0 4px; color: var(--brand-200);
  font-variant-numeric: tabular-nums;
}
.calc-out .sub { color: var(--text-inv-2); font-size: .93rem; }
.calc-out .sub b { color: #fff; }
.calc-out hr { border: 0; border-top: 1px solid var(--line-dark); margin: 22px 0; }
.calc-out .mini { display: flex; justify-content: space-between; gap: 14px; font-size: .87rem; }
.calc-out .mini + .mini { margin-top: 9px; }
.calc-out .mini span { color: var(--text-inv-2); }
.calc-out .mini b { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }

.calc-questions { margin-top: clamp(30px, 4vw, 44px); }
.qcard {
  border: 1px dashed var(--line-2); border-radius: var(--r);
  padding: 20px 24px; background: #fff;
}
.qcard .q { font-weight: 650; font-size: .99rem; }

@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------------- 12. Kênh ---------------- */
/* Ba kênh = ba màu riêng. Màu khai một lần thành biến cục bộ trên chính thẻ,
   các phần bên trong (vạch trên, nhãn, tiêu đề, viền, bóng đổ) đều đọc lại biến đó
   — thêm kênh thứ tư chỉ cần khai thêm một dòng data-color. */
.channel {
  position: relative; overflow: hidden;
  --ch: var(--teal); --ch-ink: var(--teal-800); --ch-soft: var(--teal-50);
  --ch-line: var(--teal-200); --ch-rgb: 0, 172, 193;
  background: linear-gradient(180deg, var(--ch-soft) 0%, #fff 58%);
  border-color: var(--ch-line);
}
.channel[data-color=teal] {
  --ch: #00acc1; --ch-ink: #015b66; --ch-soft: #e4f7fa; --ch-line: #a9e4ec; --ch-rgb: 0, 172, 193;
}
.channel[data-color=blue] {
  --ch: #2b8fe8; --ch-ink: #12609f; --ch-soft: #e9f3fd; --ch-line: #bcd9f7; --ch-rgb: 43, 143, 232;
}
/* Fanpage giữ sắc cam của thương hiệu — chữ dùng #8f4e00 cho đủ tương phản trên nền cam nhạt */
.channel[data-color=violet] {
  --ch: #ff8f00; --ch-ink: #8f4e00; --ch-soft: #fff3e2; --ch-line: #ffd180; --ch-rgb: 255, 143, 0;
}
.channel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--ch);
}
.channel .tag {
  display: inline-block; font-size: .67rem; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill); margin-bottom: 16px;
  background: #fff; color: var(--ch-ink); border: 1px solid var(--ch-line);
}
.channel h3 { color: var(--ch-ink); }
.channel:hover {
  border-color: var(--ch);
  box-shadow: 0 18px 40px -20px rgba(var(--ch-rgb), .6);
}
.channel .fit {
  margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--ch-line);
  font-size: .84rem; color: var(--text-3);
}
.channel .fit b { color: var(--ch-ink); }

/* ---------------- 13. Hồ sơ khách mẫu ---------------- */
.crm-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 52px); align-items: center;
}
.ba { display: grid; gap: 13px; }
.ba-item {
  border-radius: var(--r); padding: 19px 22px; font-size: .94rem;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
}
.ba-item .h {
  font-size: .71rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
  margin-bottom: 9px; color: var(--text-3);
}
.ba-item.good {
  border-color: var(--teal-200); background: var(--teal-25); color: var(--ink);
}
.ba-item.good .h { color: var(--teal-700); }

.section--deep .ba-item {
  border: 1px solid rgba(77, 208, 225, .3);
  background:
    radial-gradient(360px 160px at 0% 0%, rgba(0, 172, 193, .16), transparent 72%),
    rgba(255, 255, 255, .07);
  color: #d3e6ea;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.section--deep .ba-item:hover {
  border-color: var(--teal-300);
  transform: translateX(4px);
}
/* Dòng tiêu đề trong từng khối — trước đây 0.71rem xám nhạt, gần như chìm */
.section--deep .ba-item .h {
  font-size: .84rem; font-weight: 800; letter-spacing: .07em;
  color: var(--teal-300);
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 11px;
}
.section--deep .ba-item .h::before {
  content: ''; width: 20px; height: 2px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--teal-300), var(--brand-200));
}
/* Khối "CÓ …" phải nổi hẳn so với khối "KHÔNG CÓ …" — đây là thông điệp chính */
.section--deep .ba-item.good {
  border: 2px solid var(--teal-300);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(0, 172, 193, .34), transparent 70%),
    rgba(0, 172, 193, .20);
  color: #f2fbfc;
  box-shadow: 0 16px 38px -18px rgba(0, 172, 193, .75);
  position: relative;
}
.section--deep .ba-item.good .h {
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.section--deep .ba-item.good .h::before {
  content: '';
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--teal-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23063b42' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center/12px no-repeat;
}
/* Khối "KHÔNG CÓ" lùi lại một bậc — CHỈ khi nó đứng cạnh khối "CÓ" trong cùng
   một cặp so sánh. Trước đây quy tắc này làm mờ oan mọi .ba-item trên nền đậm. */
.section--deep .ba:has(.ba-item.good) .ba-item:not(.good):not(.warm) {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .09);
  color: #9db4ba;
}
.section--deep .ba-item.warm .h { color: var(--brand-200); }

.profile {
  background: #fff; color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.profile-head {
  padding: 17px 22px; background: linear-gradient(135deg, var(--teal-800), var(--teal-700)); color: #fff;
  display: flex; align-items: center; gap: 12px;
}
.profile-head .ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: rgba(255, 255, 255, .22); display: grid; place-items: center;
}
.profile-head .ic svg { width: 18px; height: 18px; }
.profile-head .t { font-weight: 700; font-size: .96rem; }
.profile-head .s { font-size: .75rem; opacity: .88; }
.profile-body { padding: 6px 22px 20px; }
.prow {
  display: grid; grid-template-columns: 132px 1fr; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--paper-2); font-size: .89rem;
  align-items: baseline;
}
.prow:last-child { border-bottom: 0; }
.prow .k { color: var(--text-3); font-size: .81rem; }
.prow .v { font-weight: 600; }
.prow .v.mono { font-variant-numeric: tabular-nums; }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .73rem; font-weight: 650; background: var(--paper-2); color: var(--text-2);
  margin: 2px 4px 2px 0;
}
.chip.on { background: var(--brand-soft); color: var(--brand-800); }
.chip.stage { background: var(--teal-50); color: var(--teal-800); }
.pauto {
  margin: 14px -22px -20px; padding: 13px 22px;
  background: var(--teal-25); border-top: 1px dashed var(--line);
  font-size: .79rem; color: var(--text-2); display: flex; align-items: center; gap: 8px;
}
.pauto svg { width: 15px; height: 15px; color: var(--ok); }

/* Khối có khung chat bên cạnh cột chữ dài: cho khung cao bằng cột,
   tin nhắn dồn xuống đáy như ứng dụng chat thật — thay vì bỏ trống hai đầu. */
.crm-split--fill { align-items: stretch; }
.crm-split--fill > * { display: flex; flex-direction: column; justify-content: center; }
.crm-split--fill .chatbox { flex: 1; display: flex; flex-direction: column; }
.crm-split--fill .msgs { flex: 1; justify-content: flex-end; }

@media (max-width: 880px) {
  .crm-split { grid-template-columns: 1fr; }
  .crm-split--fill { align-items: stretch; }
  .crm-split--fill .chatbox { flex: none; }
  .crm-split--fill .msgs { flex: none; }
}

/* ---------------- 14. Việc hôm nay + phễu ---------------- */
.task {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 22px;
  color: inherit; text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}
a.task:hover { border-color: var(--teal-200); box-shadow: var(--shadow); }
.task + .task { margin-top: 11px; }
.task .n {
  flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 800;
  background: var(--teal-50); color: var(--teal-800);
}
.task:first-child .n { background: var(--brand); color: #fff; }
.task .t { font-weight: 600; font-size: .97rem; }
.task .h { font-size: .81rem; color: var(--text-3); margin-top: 2px; }
.task .go {
  margin-left: auto; flex: none;
  font-size: .83rem; font-weight: 650; color: var(--teal-800);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 8px 16px;
  transition: background .16s, border-color .16s, color .16s;
}
a.task .go, .task a.go { cursor: pointer; }
a.task:hover .go, .task a.go:hover {
  background: var(--teal-50); border-color: var(--teal); color: var(--teal-800);
}
/* Nhãn nói rõ khối bên dưới là mô phỏng, ảnh chụp thật nằm ở chỗ khác */
.mockup-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-3);
  border: 1px dashed var(--line-2); border-radius: var(--r-pill);
  padding: 7px 15px; margin-bottom: 18px;
}
.mockup-note svg { width: 15px; height: 15px; color: var(--teal); }
.mockup-note a { color: var(--teal-800); font-weight: 650; border-bottom: 1px solid currentColor; }

.funnel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.funnel .st {
  padding: 9px 16px; border-radius: var(--r-pill); font-size: .86rem; font-weight: 600;
  background: #fff; border: 1px solid var(--line); color: var(--text-2);
}
.funnel .st:last-child { background: var(--teal-800); color: #fff; border-color: var(--teal-800); }
.funnel .ar { color: var(--text-3); }

/* ---------------- 15. Biểu đồ chi phí ---------------- */
.bars { display: grid; gap: 20px; }
.bar-row .lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.bar-row .lbl span { font-size: .94rem; font-weight: 550; }
.bar-row .lbl b { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-track { height: 15px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.section--deep .bar-track { background: rgba(255, 255, 255, .12); }
.bar-fill { height: 100%; border-radius: var(--r-pill); width: 0; transition: width 1.1s var(--ease); }
.bar-fill.muted  { background: linear-gradient(90deg, #8ca3a8, #b7c9cd); }
.bar-fill.brand  { background: linear-gradient(90deg, var(--brand), var(--brand-200)); }
.bar-fill.accent { background: linear-gradient(90deg, var(--teal-700), var(--teal-300)); }

.cost-headline {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line);
}
.section--deep .cost-headline { border-top-color: var(--line-dark); }
.cost-headline .big {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -.04em;
  color: var(--brand-700); line-height: 1;
}
.section--deep .cost-headline .big { color: var(--brand-200); }
.cost-headline p { max-width: 34ch; margin: 0; }

.notelist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.notelist li { display: flex; gap: 11px; font-size: .92rem; color: var(--text-2); }
.notelist li::before { content: '—'; color: var(--teal); flex: none; }
.section--deep .notelist li { color: var(--text-inv-2); }
.section--deep .notelist li::before { color: var(--brand-200); }

/* Ô nhấn màu đậm dùng xen trong khối sáng */
.deepcard {
  background:
    radial-gradient(520px 300px at 100% 0%, rgba(0, 172, 193, .28), transparent 62%),
    linear-gradient(155deg, #1c4450, var(--ink));
  color: var(--text-inv-2);
  border: 0; border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-lg);
}
.deepcard .big {
  font-size: clamp(2.4rem, 5.4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em;
  color: var(--brand-200); line-height: 1;
}
.deepcard p { color: var(--text-inv-2); margin-top: 12px; }
.deepcard .notelist li { color: var(--text-inv-2); }
.deepcard .notelist li::before { color: var(--brand-200); }

/* ---------------- 16. Bảng giá ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 30px); position: relative;
  display: flex; flex-direction: column; height: 100%;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.hot {
  border-color: var(--brand); box-shadow: var(--shadow-brand);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .67rem; font-weight: 800;
  letter-spacing: .11em; text-transform: uppercase; padding: 6px 16px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.plan h3 { font-size: 1.28rem; }
.plan .scope { margin-top: 8px; font-size: .83rem; color: var(--teal-700); font-weight: 650; }
.plan .tagline { margin-top: 11px; font-size: .92rem; color: var(--text-2); min-height: 3em; }
.plan .price {
  margin: 20px 0 4px;
  font-size: clamp(1.65rem, 2.8vw, 2.05rem); font-weight: 800; letter-spacing: -.03em;
  color: var(--ink);
}
.plan .price-note { font-size: .83rem; color: var(--text-3); }
.plan .btn { margin-top: 22px; }
.plan ul {
  list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
  display: grid; gap: 11px; font-size: .9rem;
}
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; margin-top: 3px; }
.plan li.yes svg { color: var(--ok); }
.plan li.no { color: var(--text-3); }
.plan li.no svg { color: var(--line-2); }
.plan li.val svg { color: var(--teal); }
.plan li b { font-weight: 650; color: var(--ink); }

@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* Bảng so sánh đầy đủ */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .92rem; }
table.matrix th, table.matrix td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--paper-2); }
table.matrix thead th {
  background: var(--teal-25); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; position: sticky; top: 0;
}
table.matrix thead th.hot { color: var(--brand-800); background: var(--brand-soft); }
table.matrix tbody th { font-weight: 550; color: var(--text-2); width: 34%; }
table.matrix td { text-align: center; font-weight: 600; }
table.matrix tr:last-child td, table.matrix tr:last-child th { border-bottom: 0; }
table.matrix tbody tr:hover { background: var(--teal-25); }
table.matrix .mark-yes, table.matrix .mark-no { display: inline-grid; place-items: center; }
table.matrix .mark-yes svg, table.matrix .mark-no svg { width: 18px; height: 18px; }
table.matrix .mark-yes { color: var(--ok); }
table.matrix .mark-no  { color: var(--line-2); }
table.matrix td.price-row { font-size: 1.08rem; font-weight: 800; color: var(--ink); }
table.matrix tr.row-price { background: var(--paper-2); }

/* ---------------- 17. Lộ trình ---------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.steps::before {
  content: ''; position: absolute; left: 26px; right: 26px; top: 25px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px);
}
.step { position: relative; }
.step .n {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line-2); color: var(--text-3);
  font-weight: 800; font-size: .93rem; margin-bottom: 17px; position: relative; z-index: 1;
}
.step.own .n { border-color: var(--brand); background: var(--brand); color: #fff; }
.step h3 { font-size: 1.02rem; }
.step p { font-size: .89rem; color: var(--text-2); margin-top: 7px; }
.step .time {
  display: inline-block; margin-top: 11px; font-size: .75rem; font-weight: 700;
  padding: 4px 11px; border-radius: var(--r-pill); background: var(--teal-50); color: var(--teal-800);
}
.step.own .time { background: var(--brand-soft); color: var(--brand-800); }

@media (max-width: 940px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 24px; right: auto; top: 20px; bottom: 40px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 16px); }
  .step { padding-left: 72px; padding-bottom: 28px; }
  .step .n { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------------- 18. Mức chuyển tiếp ---------------- */
.level { border-left: 4px solid var(--line-2); padding-left: 22px; }
.level .tag {
  display: inline-block; font-size: .69rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 13px;
}
.level[data-tone=brand]  { border-left-color: var(--brand); }
.level[data-tone=brand] .tag { background: var(--brand-soft); color: var(--brand-800); }
.level[data-tone=accent] { border-left-color: var(--teal); }
.level[data-tone=accent] .tag { background: var(--teal-50); color: var(--teal-800); }
.level[data-tone=danger] { border-left-color: var(--danger); }
.level[data-tone=danger] .tag { background: var(--danger-soft); color: #a52f2f; }
.level .action { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.level p { font-size: .92rem; color: var(--text-2); }

/* ---------------- 19. Nhãn hộp thư ---------------- */
.badges { display: grid; gap: 12px; }
.badge-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); background: #fff;
}
.badge-row .b {
  flex: none; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge-row[data-tone=brand]  .b { background: var(--teal-50); color: var(--teal-800); }
.badge-row[data-tone=accent] .b { background: var(--brand-soft); color: var(--brand-800); }
.badge-row[data-tone=muted]  .b { background: var(--paper-2); color: var(--text-3); }
.badge-row[data-tone=danger] .b { background: var(--danger-soft); color: #a52f2f; }
.badge-row p { font-size: .91rem; color: var(--text-2); margin: 2px 0 0; }

/* ---------------- 20. Đa ngôn ngữ ---------------- */
/* Danh sách ngôn ngữ hỗ trợ — KHÔNG phải bộ chọn.
   Trước đây mục đầu được tô đậm như "đang chọn" nên khách tưởng bấm được. */
.langs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.langs .lg {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem;
  border: 1px dashed var(--line-2); background: transparent; color: var(--text-2);
}
.langs .lg::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--teal); opacity: .8;
}
.section--deep .langs .lg { border-color: rgba(255,255,255,.22); color: #d3e6ea; }
.section--deep .langs .lg::before { background: var(--teal-300); }

/* ---------------- 21. Cảm nhận ---------------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px); position: relative;
}
.quote::before {
  content: '"'; position: absolute; top: 4px; left: 20px;
  font-size: 5rem; line-height: 1; color: var(--teal-50); font-weight: 800;
}
.quote blockquote { margin: 0; position: relative; font-size: 1.04rem; line-height: 1.6; }
.quote .who { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--paper-2); }
.quote .who .n { font-weight: 700; font-size: .94rem; }
.quote .who .r { font-size: .84rem; color: var(--text-3); }
.quote .metric {
  display: inline-block; margin-top: 11px; font-size: .75rem; font-weight: 700;
  padding: 5px 12px; border-radius: var(--r-pill); background: var(--teal-50); color: var(--teal-800);
}

/* ---------------- 22. Câu hỏi thường gặp ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 21px 48px 21px 0; position: relative;
  font-weight: 650; font-size: 1.01rem;
  transition: color .16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-700); }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform .22s var(--ease);
}
.faq details[open] summary { color: var(--teal-700); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { padding: 0 48px 24px 0; color: var(--text-2); font-size: .97rem; max-width: 72ch; }
.faq .a p { margin-bottom: .7em; }
.faq .a strong { color: var(--ink); }

.faq-group + .faq-group { margin-top: clamp(42px, 5vw, 64px); }
/* Tên nhóm là TIÊU ĐỀ, không phải nhãn phụ — trước đây để 0.8rem viết hoa nên
   vừa nhỏ vừa khó đọc (tiếng Việt viết hoa toàn bộ hay bị chồng dấu). */
.faq-group > h3 {
  font-size: clamp(1.28rem, 2.1vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.022em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 16px;
  padding-left: 18px;
  position: relative;
}
.faq-group > h3::before {
  content: '';
  position: absolute; left: 0; top: .16em; bottom: .16em;
  width: 5px; border-radius: 3px;
  background: linear-gradient(180deg, var(--teal), var(--brand));
}

/* ---------------- 23. Bài viết ---------------- */
.postcard {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.postcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.postcard .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--teal-50), var(--brand-25));
  display: grid; place-items: center;
}
.postcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.postcard .thumb .m { width: auto; height: 78%; object-fit: contain; }
.postcard .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.postcard h3 { font-size: 1.1rem; }
.postcard p { font-size: .91rem; color: var(--text-2); margin: 10px 0 0; }
.postcard .meta { margin-top: auto; padding-top: 16px; font-size: .81rem; color: var(--text-3); }

.article { max-width: 720px; margin-inline: auto; }
.article h2 { font-size: 1.58rem; margin-top: 2em; }
.article h3 { font-size: 1.22rem; margin-top: 1.8em; }
.article p { font-size: 1.05rem; line-height: 1.75; color: var(--text-2); }
.article ul, .article ol { color: var(--text-2); font-size: 1.03rem; line-height: 1.75; padding-left: 1.3em; }
.article li { margin-bottom: .5em; }
.article strong { color: var(--ink); }
.article blockquote {
  margin: 1.8em 0; padding: 20px 26px;
  border-left: 3px solid var(--teal); background: var(--teal-25);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.06rem; color: var(--ink);
}
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.article code { background: var(--paper-2); padding: 2px 7px; border-radius: 5px; font-size: .9em; }

/* ---------------- 24. Biểu mẫu ---------------- */
.form { display: grid; gap: 17px; }
.field label { display: block; font-size: .87rem; font-weight: 650; margin-bottom: 7px; }
.field label .req { color: var(--brand); }
.field input[type=text], .field input[type=tel], .field input[type=email],
.field textarea, .field select {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  font: inherit; font-size: .95rem; background: #fff; color: var(--text);
  transition: border-color .16s, box-shadow .16s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 172, 193, .13);
}
.field .err { color: var(--danger); font-size: .83rem; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .err { display: block; }
.field .hint { font-size: .81rem; color: var(--text-3); margin-top: 6px; }

.checks { display: flex; flex-wrap: wrap; gap: 9px; }
.checks label {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 9px 15px; border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 550; margin: 0; transition: .16s;
}
.checks label:hover { border-color: var(--teal-200); }
.checks input { accent-color: var(--teal-700); width: 16px; height: 16px; }
.checks input:checked + span { color: var(--teal-700); font-weight: 650; }
.checks label:has(input:checked) { border-color: var(--teal); background: var(--teal-25); }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { font-size: .83rem; color: var(--text-3); display: flex; gap: 9px; align-items: flex-start; }
.form-note svg { width: 15px; height: 15px; margin-top: 3px; color: var(--ok); }

.form-ok {
  background: linear-gradient(140deg, var(--teal-25), #fff);
  border: 1px solid var(--teal-200); border-radius: var(--r-lg);
  padding: clamp(26px, 3.2vw, 38px); text-align: center;
}
.form-ok .m { width: auto; height: 108px; margin: 0 auto 16px; }
.form-ok h3 { color: var(--teal-800); }
.form-ok p { color: var(--text-2); margin-top: 10px; }

/* ---------------- 25. Dải kêu gọi ---------------- */
.ctaband {
  position: relative; overflow: hidden;
  background:
    radial-gradient(680px 420px at 92% 100%, rgba(255, 143, 0, .3), transparent 62%),
    radial-gradient(520px 340px at 6% 0%, rgba(0, 172, 193, .3), transparent 62%),
    linear-gradient(150deg, #1c4450 0%, var(--ink) 62%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(34px, 4.6vw, 58px);
}
.ctaband-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 44px); align-items: center;
}
.ctaband h2 { color: #fff; }
.ctaband .lead { color: var(--text-inv-2); margin-top: 16px; }
.ctaband .eyebrow { color: var(--teal-300); }
.ctaband-mascot { width: clamp(140px, 18vw, 210px); height: auto; animation: float 5.5s ease-in-out infinite; }
.ctabadges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px; }
.ctabadges .b .v { font-weight: 800; font-size: 1.08rem; color: var(--brand-200); }
.ctabadges .b .l { font-size: .81rem; color: var(--text-inv-2); }
.ctaband .actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
@media (max-width: 820px) {
  .ctaband-grid { grid-template-columns: minmax(0, 1fr); }
  .ctaband-mascot { display: none; }
}

/* Bản sáng dùng trên nền trắng (trang Liên hệ) */
.ctabadges.light .b .v { color: var(--brand-700); font-size: 1.12rem; }
.ctabadges.light .b .l { color: var(--text-3); }

/* ---------------- 26. Chân trang ---------------- */
.footer {
  background: var(--ink); color: var(--text-inv-2);
  padding-block: clamp(46px, 6vw, 70px) 30px;
  margin-top: clamp(52px, 7vw, 92px);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 46px); }
.footer .ft-h {
  font-size: .77rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: #fff; margin: 0 0 17px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a { font-size: .92rem; transition: color .16s; }
.footer a:hover { color: var(--teal-300); }
.footer-logo img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .93; }
.footer .about { font-size: .91rem; margin-top: 17px; max-width: 38ch; line-height: 1.7; }
.footer .contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.footer .contact-item svg { width: 16px; height: 16px; margin-top: 4px; color: var(--teal-300); }
.footer-bottom {
  margin-top: clamp(34px, 4vw, 48px); padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .84rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- 27. Mascot nổi ---------------- */
.mascot-dock {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.mascot-bubble {
  position: relative; max-width: 292px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 6px var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  font-size: .9rem; line-height: 1.55; color: var(--text-2);
  transform-origin: bottom right;
  transform: scale(.9) translateY(8px); opacity: 0; pointer-events: none;
  transition: .22s var(--ease);
}
.mascot-dock.open .mascot-bubble { transform: none; opacity: 1; pointer-events: auto; }
.mascot-bubble .close {
  position: absolute; top: 6px; right: 8px;
  border: 0; background: none; color: var(--text-3); font-size: 1.15rem; line-height: 1; padding: 4px;
}
.mascot-bubble .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.mascot-bubble .acts a {
  font-size: .81rem; font-weight: 650; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--teal-50); color: var(--teal-800); transition: background .16s;
}
.mascot-bubble .acts a:hover { background: var(--teal-100); }
.mascot-bubble .acts a:first-child { background: var(--brand-soft); color: var(--brand-800); }
.mascot-bubble .acts a:first-child:hover { background: var(--brand-200); }

.mascot-btn {
  width: 74px; height: 74px; border-radius: 50%; border: 0; padding: 0;
  background: radial-gradient(circle at 32% 24%, #24596a, var(--ink));
  box-shadow: 0 14px 30px -10px rgba(22, 50, 58, .5), 0 0 0 3px rgba(0, 172, 193, .3);
  display: grid; place-items: center; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.mascot-btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 20px 40px -12px rgba(22,50,58,.55), 0 0 0 4px rgba(0,172,193,.42); }
.mascot-btn img { width: 74%; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.mascot-btn .ping {
  position: absolute; top: 4px; right: 4px;
  width: 13px; height: 13px; border-radius: 50%; background: var(--ok);
  border: 2px solid var(--ink);
}
.mascot-dock.open .mascot-btn .ping { display: none; }

@media (max-width: 620px) {
  .mascot-dock { right: 14px; bottom: 14px; }
  .mascot-btn { width: 60px; height: 60px; }
  .mascot-bubble { max-width: min(78vw, 280px); }
}
@media print { .mascot-dock, .nav, .topbar { display: none !important; } }

/* ---------------- 28. Mascot đặt trong khối ---------------- */
.mascot-inline {
  width: auto; height: auto; max-height: 300px;
  filter: drop-shadow(0 18px 26px rgba(22, 50, 58, .2));
}
.mascot-corner {
  position: absolute; right: -6px; top: -60px; z-index: 2;
  width: 122px; height: auto;
  filter: drop-shadow(0 16px 24px rgba(22, 50, 58, .3));
}
.section--deep .mascot-corner { filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .4)); }
@media (max-width: 940px) { .mascot-corner { display: none; } }


/* Số thứ tự nhỏ trong danh sách bước (khối nền đậm) */
.stepnum {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 800; font-size: .88rem;
  background: rgba(0, 172, 193, .2); color: var(--teal-300);
}
.section--deep .ba-item b { color: #fff; }

/* Khối mở đầu của trang phụ: mascot đứng giữa, không cần chừa lề trái */
.hero-visual--plain { padding-left: 0; text-align: center; }
.hero-visual--plain .mascot-inline { margin-inline: auto; }

/* ---------------- 29. Hoạt ảnh khi cuộn ---------------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-d1.in { transition-delay: .07s; }
.reveal-d2.in { transition-delay: .14s; }
.reveal-d3.in { transition-delay: .21s; }
.reveal-d4.in { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Vùng bấm tối thiểu 44px trên thiết bị cảm ứng */
@media (pointer: coarse) {
  .btn-link { padding-block: 8px; }
  .footer ul { gap: 4px; }
  .footer a, .footer .contact-item { padding-block: 8px; display: flex; }
  .nav-links a { padding-block: 13px; }
  .faq summary { padding-block: 24px; }
  input[type=range] { padding-block: 10px; background-clip: content-box; }
}

/* ---------------- 30. Màn hình hẹp ---------------- */
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding: 15px 22px; font-size: .97rem; }
  .hero-actions .btn, .ctaband .actions .btn { flex: 1 1 240px; }
  .ctabadges { gap: 18px; }
  .kicker { padding: 18px 20px; }
  .versus-col, .card { padding: 20px; }
  .prow { grid-template-columns: 1fr; gap: 4px; }
  .task { flex-wrap: wrap; }
  .task .go { margin-left: 0; width: 100%; text-align: center; }
}

/* ---------------- 31. Trang lỗi ---------------- */
.errpage { text-align: center; padding-block: clamp(66px, 11vw, 130px); }
.errpage .m { width: auto; height: clamp(160px, 26vw, 230px); margin: 0 auto 28px; }
.errpage h1 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); }
.errpage p { color: var(--text-2); margin: 18px auto 30px; max-width: 48ch; }

/* ==================================================================
   32. Bổ sung đợt 2
   ================================================================== */

/* ---- Chỉ đọc bằng trình đọc màn hình ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Logo: tỉ lệ 1000×214, không để thẻ img ép méo ---- */
.nav-logo img { height: 34px; width: auto; }
.footer-logo img { height: 32px; width: auto; filter: none; opacity: 1; }
@media (max-width: 460px) { .nav-logo img { height: 28px; } }

.footer-bottom .claim { font-style: italic; color: var(--teal-300); }

/* ---- Dải báo đang xem bản nháp ---- */
.previewbar {
  background: var(--brand); color: #4a2f10;
  font-size: .85rem; font-weight: 600;
  padding: 9px 20px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 61;
}
.previewbar .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4a2f10;
  animation: pulse 1.8s ease-in-out infinite;
}
.previewbar a {
  font-weight: 700; border-bottom: 1.5px solid rgba(74, 47, 16, .4); padding-bottom: 1px;
}
.previewbar a:hover { border-bottom-color: currentColor; }

/* ---- Ô đồng ý trong biểu mẫu ---- */
.field.consent { margin-top: 2px; }
.consent-box {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 15px 17px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--teal-25); font-size: .89rem; line-height: 1.55; font-weight: 400;
  transition: border-color .16s, background .16s;
}
.consent-box:hover { border-color: var(--teal-200); }
.consent-box:has(input:checked) { border-color: var(--teal); background: #fff; }
.consent-box input { accent-color: var(--teal-700); width: 18px; height: 18px; flex: none; margin-top: 2px; }
.consent-box a { color: var(--teal-800); font-weight: 650; border-bottom: 1px solid currentColor; }
.field.has-error .consent-box { border-color: var(--danger); background: var(--danger-soft); }

/* ---- Khung chat dùng thử ---- */
.demo-wrap {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px); align-items: start;
}
.demo-side { display: grid; gap: 18px; justify-items: start; }
.demo-tips {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; width: 100%;
}
.demo-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.demo-tips li {
  font-size: .89rem; color: var(--text-2);
  padding-left: 20px; position: relative;
}
.demo-tips li::before {
  content: '›'; position: absolute; left: 6px; top: -1px;
  color: var(--teal); font-weight: 800;
}
.ft-lab {
  font-size: .71rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 12px;
}
.demo-warn {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--brand-25); border: 1px solid #f6e0bf; border-radius: var(--r);
  padding: 15px 17px; font-size: .84rem; line-height: 1.55; color: var(--brand-ink);
}
.demo-warn svg { width: 17px; height: 17px; color: var(--brand-700); margin-top: 2px; }
.demo-warn b { color: #43301a; }

.demo-box { display: flex; flex-direction: column; }
.demo-msgs {
  min-height: 320px; max-height: 440px; overflow-y: auto;
  padding-right: 4px; scroll-behavior: smooth;
}
.demo-msgs .msg { animation: msgIn .35s var(--ease) forwards; }

.demo-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 0 12px; }
.demo-chips button {
  font-size: .82rem; font-weight: 600; padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--teal-100); background: var(--teal-25); color: var(--teal-800);
  transition: .15s;
}
.demo-chips button:hover { background: var(--teal-100); border-color: var(--teal-200); }

.demo-input { display: flex; gap: 9px; border-top: 1px solid var(--line); padding-top: 14px; }
.demo-input input {
  flex: 1; min-width: 0; padding: 12px 15px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  font: inherit; font-size: .92rem; background: #fff; color: var(--text);
}
.demo-input input:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 172, 193, .13);
}
.demo-input button {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700)); color: #fff;
  display: grid; place-items: center; transition: transform .16s, box-shadow .16s;
}
.demo-input button:hover { transform: translateY(-2px); box-shadow: var(--shadow-teal); }
.demo-input button:disabled { opacity: .5; transform: none; }
.demo-input button svg { width: 19px; height: 19px; }

/* Thẻ sản phẩm bot gửi trong hội thoại */
.pcards { display: grid; gap: 8px; margin-top: 9px; }
.pcard {
  background: rgba(255, 255, 255, .16); border-radius: 11px; padding: 10px 13px;
  font-size: .83rem; line-height: 1.45;
}
.pcard .n { font-weight: 700; color: #fff; }
.pcard .p { color: var(--brand-200); font-weight: 700; margin-top: 2px; }
.pcard .b { color: #d9f2f6; margin-top: 3px; font-size: .79rem; }

/* Trang báo giá bot lập trong hội thoại */
.qbox {
  background: #fff; color: var(--text); border-radius: 12px;
  padding: 14px 16px; margin-top: 10px; font-size: .84rem;
  box-shadow: 0 6px 18px -8px rgba(22, 50, 58, .4);
}
.qbox .qh {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px dashed var(--line);
}
.qbox .qh .code { font-weight: 800; color: var(--teal-800); font-variant-numeric: tabular-nums; }
.qbox .qh .lb { font-size: .71rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.qbox .qr { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.qbox .qr span { color: var(--text-2); }
.qbox .qr b { font-variant-numeric: tabular-nums; }
.qbox .qtot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line);
  font-size: .95rem;
}
.qbox .qtot b { color: var(--brand-700); font-weight: 800; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .demo-wrap { grid-template-columns: 1fr; }
  .demo-side { justify-items: stretch; }
  .demo-side .mascot-inline { display: none; }
}

/* Chấm nhấp nháy khi bot đang soạn */
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block;
  opacity: .3; animation: blink 1.3s infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .28 } 30% { opacity: 1 } }

/* Vùng bấm còn nhỏ trên thiết bị cảm ứng */
@media (pointer: coarse) {
  .nav-logo { padding-block: 8px; }
  .mascot-bubble .close { width: 34px; height: 34px; top: 4px; right: 4px; font-size: 1.25rem; }
}

/* ---------------- Bảng giá: chống lặp nội dung ---------------- */
/* Dòng "gói nào cũng có" — gom các mục giống nhau ở mọi gói, thay vì in lại trong từng thẻ */
.plans-common {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  background: var(--teal-25); border: 1px solid var(--teal-100);
  border-radius: var(--r-pill); padding: 13px 22px;
  margin-bottom: 22px; font-size: .92rem; color: var(--text-2);
}
.plans-common .lb {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--teal-800); white-space: nowrap;
}
.plans-common .lb svg { width: 17px; height: 17px; }
.plans-common .items { flex: 1; min-width: 0; }
@media (max-width: 620px) { .plans-common { border-radius: var(--r); } }

.plan li.head {
  font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 2px;
}

/* Bảng so sánh đóng mặc định — chỉ mở khi khách muốn soi kỹ */
.matrix-box {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  overflow: hidden;
}
.matrix-box > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 24px; font-weight: 650;
  transition: background .16s;
}
.matrix-box > summary::-webkit-details-marker { display: none; }
.matrix-box > summary:hover { background: var(--teal-25); }
.matrix-box > summary .t { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-800); }
.matrix-box > summary .t svg { width: 18px; height: 18px; }
.matrix-box > summary .n { font-size: .84rem; font-weight: 500; color: var(--text-3); }
.matrix-box > summary::after {
  content: 'Mở bảng'; margin-left: auto;
  font-size: .82rem; font-weight: 650; color: var(--teal-800);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 6px 15px;
  white-space: nowrap;
}
.matrix-box[open] > summary::after { content: 'Đóng bảng'; }
.matrix-box[open] > summary { border-bottom: 1px solid var(--line); }
.matrix-box .matrix-wrap { border: 0; border-radius: 0; }


/* Bản nền sáng của cặp "KHÔNG CÓ / CÓ Mini CRM" — cùng mức tương phản như nền đậm */
.ba-item.good {
  border: 2px solid var(--teal); background: var(--teal-25); color: var(--ink);
  box-shadow: 0 14px 32px -18px rgba(0, 128, 143, .55);
}
.ba-item.good .h { color: var(--teal-800); display: flex; align-items: center; gap: 8px; }
.ba-item.good .h::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--teal-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Ảnh sản phẩm thật trong bong bóng chat — thay cho dòng chữ mô tả suông.
   Vừa thuyết phục hơn, vừa lấp khoảng trống khi khung chat giãn theo cột bên cạnh. */
/* Bong bóng chat co theo dòng chữ, nên phải cho khối ảnh một chiều rộng riêng —
   nếu không ảnh teo lại bằng độ dài câu hỏi. */
.msg .photo--img {
  display: block;          /* .msg .photo là flex ngang — nếu không gỡ, ảnh bị co lại */
  padding: 0; margin: 0 0 9px; overflow: hidden; border-radius: 13px;
  width: 268px; max-width: 100%;
}
.msg .photo--img img { width: 100%; height: auto; display: block; }
.msg .photo--img figcaption {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; font-size: .76rem;
}
.msg.khach .photo--img figcaption { background: rgba(255, 255, 255, .55); color: var(--text-2); }
.msg.bot .photo--img figcaption { background: rgba(255, 255, 255, .18); color: #d9f2f6; }
.section--deep .msg.khach .photo--img figcaption { background: rgba(255, 255, 255, .14); color: #eaf6f8; }
.msg .photo--img figcaption svg { width: 15px; height: 15px; color: var(--brand); }
.msg.bot .photo--img figcaption svg { color: var(--brand-200); }

/* Bản nhỏ dùng cho khung chat ở khối mở đầu — nơi cần gọn */
.msg .photo--sm img { max-height: 168px; object-fit: cover; object-position: center; }

/* Điểm ngắt dòng do người biên tập chỉ định trong tiêu đề (ký tự "|").
   Màn hình hẹp bỏ qua, để trình duyệt tự xuống dòng cho vừa. */
.brk { display: none; }
@media (min-width: 861px) { .brk { display: inline; } }
