/**
 * main.css — Phase 1: reset + header + hero.
 * Các section còn lại (how-it-helps, funnel, integration, security,
 * report, pricing, testimonials, faq, final-cta, footer, modals)
 * sẽ nối thêm ở các bước tiếp theo của Phase 1, cùng file này.
 *
 * Nguyên tắc bắt buộc toàn theme:
 *  - Không overflow:auto/scroll ở bất kỳ container nội dung nào.
 *  - Icon là SVG (.chk-icon), không dùng ký tự Unicode trang trí.
 */

/* ── Reset tối thiểu ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--chk-ink);
  font-family: var(--chk-font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chk-gold); text-decoration: none; }
a:hover { color: var(--chk-gold-grad-2); }
button { font-family: inherit; cursor: pointer; }
.chk-page { width: 100%; overflow-x: hidden; }

.chk-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; color: currentColor; }

@keyframes chk-cursor-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* Quyết định sản phẩm: bỏ tôn trọng prefers-reduced-motion — animation
   luôn chạy kể cả khi hệ điều hành bật "Giảm chuyển động" (xem ghi chú
   đầy đủ trong assets/js/animation-engine.js). */

/* ── Header ──────────────────────────────────────────────────── */
.chk-hero-bg { position: relative; background: var(--chk-hero-gradient); }
.chk-hero-bg__dotgrid {
  position: absolute; top: 0; left: 0; width: 100%; height: 600px;
  background-image: radial-gradient(rgba(184, 134, 47, 0.15) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  pointer-events: none;
}
.chk-hero-bg__glow {
  position: absolute; top: -120px; right: -100px; width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 134, 47, 0.16), transparent 70%);
  pointer-events: none;
}

.chk-header { position: sticky; top: 0; z-index: 50; padding: 14px var(--chk-section-px); }
.chk-header__bar {
  max-width: var(--chk-content-max); margin: 0 auto;
  display: flex; flex-wrap: wrap; row-gap: 10px; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border-radius: 24px; padding: 10px 10px 10px 18px;
  box-shadow: var(--chk-shadow-header);
}
.chk-header__brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.chk-header__logo-link { display: flex; align-items: center; gap: 10px; }
.chk-header__logo-tile {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--chk-navy-tile-gradient);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(184, 134, 47, 0.5); flex-shrink: 0; overflow: hidden;
}
.chk-header__logo-tile img {
  width: 22px !important; height: 22px !important; border-radius: 5px;
  object-fit: cover; max-width: none;
}
.chk-header__logo-full { height: 36px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }
.chk-header__wordmark { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; color: var(--chk-ink); white-space: nowrap; }
.chk-header__wordmark-accent { color: var(--chk-gold); }

.chk-header__nav { min-width: 0; }
.chk-header__nav-list {
  display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 5px;
  background: var(--chk-fill-light); border-radius: var(--chk-radius-pill); flex-wrap: nowrap;
}
.chk-header__nav-list li { flex-shrink: 0; }
.chk-header__nav-list a {
  display: block; padding: 7px 13px; border-radius: var(--chk-radius-pill);
  color: #575c85; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.chk-header__nav-list a.is-active,
.chk-header__nav-list .current-menu-item a {
  color: var(--chk-ink); font-weight: 700; background: #fff; box-shadow: 0 3px 8px rgba(16, 18, 43, 0.08);
}

.chk-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.chk-header__login-link {
  background: none; border: none; color: var(--chk-ink); font-size: 13px; font-weight: 700; white-space: nowrap; padding: 0;
}
.chk-header__cta-link {
  background: var(--chk-gold-btn-gradient); border: none; color: #fff; font-weight: 800; font-size: 13px;
  padding: 10px 18px; border-radius: var(--chk-radius-pill); box-shadow: 0 8px 20px rgba(184, 134, 47, 0.4); white-space: nowrap;
}

.chk-header__cta-short { display: none; }
.chk-header__hamburger {
  display: none; width: 36px; height: 36px; border-radius: 10px; background: var(--chk-fill-light);
  border: none; align-items: center; justify-content: center; flex-shrink: 0; color: var(--chk-ink); position: relative;
}
.chk-header__hamburger-icon-close { display: none; }
.chk-header__hamburger.is-open .chk-header__hamburger-icon-open { display: none; }
.chk-header__hamburger.is-open .chk-header__hamburger-icon-close { display: block; }

.chk-header__mobile-menu {
  margin: 8px 14px 0; background: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(16, 18, 43, 0.14);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
}
.chk-header__mobile-menu[hidden] { display: none !important; }
.chk-header__mobile-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.chk-header__mobile-menu-list a {
  display: block; padding: 12px 14px; border-radius: 10px; color: var(--chk-gray-label);
  font-size: 14.5px; font-weight: 600;
}
.chk-header__mobile-menu-list a.is-active,
.chk-header__mobile-menu-list .current-menu-item a {
  color: var(--chk-ink); font-weight: 700; background: var(--chk-fill-light);
}
.chk-header__mobile-menu-divider { height: 1px; background: var(--chk-border); margin: 6px 4px; }
.chk-header__mobile-menu-login {
  text-align: left; padding: 12px 14px; border-radius: 10px; color: var(--chk-ink);
  font-size: 14.5px; font-weight: 700; background: none; border: none;
}

@media (max-width: 1024px) {
  .chk-header__nav, .chk-header__login-link { display: none; }
  .chk-header__hamburger { display: flex; }
  .chk-header__cta-full { display: none; }
  .chk-header__cta-short { display: inline; }
}
@media (max-width: 520px) {
  .chk-header__cta-link { padding: 9px 16px !important; font-size: 13px !important; }
  .chk-header__logo-full { height: 26px; max-width: 90px; }
  .chk-header__wordmark { font-size: 15px; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.chk-hero { padding: 56px var(--chk-section-px) 0; position: relative; }
.chk-hero__inner { max-width: 1020px; margin: 0 auto; text-align: center; }

.chk-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184, 134, 47, 0.1); border: 1px solid rgba(184, 134, 47, 0.25);
  padding: 7px 16px; border-radius: var(--chk-radius-pill);
  font-size: var(--chk-eyebrow-size); font-weight: 700; color: var(--chk-gold-grad-2);
  margin-bottom: 22px;
}
.chk-hero__eyebrow .chk-icon { color: var(--chk-gold); }

.chk-hero__title {
  font-size: var(--chk-h1-size); line-height: var(--chk-h1-lh); font-weight: 800;
  letter-spacing: var(--chk-h1-ls); margin: 0 0 20px; color: var(--chk-ink);
}
.chk-hero__typed { color: var(--chk-gold); display: inline-block; }
.chk-hero__cursor {
  display: inline-block; width: 3px; height: 0.9em; background: var(--chk-gold);
  margin-left: 2px; vertical-align: -0.12em; animation: chk-cursor-blink 0.8s step-end infinite;
}

.chk-hero__subhead { font-size: 16px; color: var(--chk-gray-body); line-height: 1.6; max-width: 560px; margin: 0 auto 28px; }

.chk-hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.chk-btn { display: inline-flex; align-items: center; gap: 12px; border-radius: var(--chk-radius-btn); border: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
.chk-btn--gold-lg {
  background: var(--chk-gold-btn-gradient-2); color: #fff; font-weight: 800; font-size: 15.5px;
  padding: 13px 26px; box-shadow: 0 10px 24px rgba(184, 134, 47, 0.4);
}
.chk-btn--gold-lg:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(184, 134, 47, 0.5); color: #fff; }
.chk-btn__stack { text-align: left; }
.chk-btn__title { display: block; }
.chk-btn__caption { display: block; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.8); margin-top: 1px; }

.chk-btn--outline {
  background: #fff; color: var(--chk-ink); font-weight: 700; font-size: 15.5px;
  padding: 15px 30px; border: 1.5px solid var(--chk-ink);
}
.chk-btn--outline:hover { background: var(--chk-ink); color: #fff; }

.chk-hero__stats { display: flex; justify-content: center; gap: 40px; margin-bottom: 44px; flex-wrap: wrap; }
.chk-hero__stat { display: flex; align-items: center; gap: 12px; }
.chk-hero__stat-icon {
  width: 52px; height: 52px; border-radius: 13px; background: rgba(184, 134, 47, 0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--chk-gold);
}
.chk-hero__stat-text { text-align: left; }
.chk-hero__stat-value { display: block; font-size: 22px; font-weight: 800; color: var(--chk-ink); line-height: 1.2; }
.chk-hero__stat-label { display: block; font-size: 12.5px; color: var(--chk-gray-muted); line-height: 1.2; }

.chk-hero__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; margin-bottom: 56px; }
.chk-hero__logo-card {
  width: 130px; height: 56px; background: #fff; border: 1px solid var(--chk-border);
  border-radius: var(--chk-radius-btn); display: flex; align-items: center; justify-content: center; padding: 6px;
}
.chk-hero__logo-card img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* ── Hero demo (khung trình duyệt giả lập) ──────────────────────
   Phase 1: chỉ hiển thị ảnh tab đầu tiên tĩnh. Phase 3 gắn JS
   chuyển tab tự động + animation overlay bên trong .chk-hero-demo__overlay. */
.chk-hero-demo { max-width: var(--chk-content-max-narrow); margin: 0 auto; padding: 0 var(--chk-section-px); }
.chk-hero-demo__card {
  margin-top: 32px; border-radius: 16px; overflow: hidden; border: 1px solid #e3e5f0;
  box-shadow: 0 30px 70px rgba(16, 18, 43, 0.12);
}
.chk-hero-demo__tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  background: var(--chk-navy-2); padding: 10px;
}
.chk-hero-demo__tab {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
  background: rgba(255, 255, 255, 0.06); color: #aab1d6;
  border: none; border-radius: 9px; padding: 9px 6px; font-size: 11.5px; font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.chk-hero-demo__tab-label,
.chk-hero-demo__tab-label-mobile { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chk-hero-demo__tab.is-active {
  background: var(--chk-gold-btn-gradient); color: #fff;
  box-shadow: 0 8px 24px rgba(184, 134, 47, 0.45); transform: translateY(-2px) scale(1.03);
}
.chk-hero-demo__tab-icon { display: flex; flex-shrink: 0; }

.chk-hero-demo__frame { position: relative; }
/**
 * Đường viền gradient vàng nhẹ nối liền frame ↔ tabs. Là 1 div thường nằm
 * trong luồng document flow (không position:absolute) — nên LUÔN tự bám
 * đúng ranh giới giữa 2 khối bất kể chiều cao ảnh demo thay đổi thế nào
 * giữa các tab (khach-hang/pipeline/ai/bds có aspect-ratio khác nhau).
 * .chk-hero-demo__card bọc ngoài lo bo góc/viền/shadow chung cho CẢ khối —
 * frame và tabs bên trong không còn tự bo góc riêng, luôn dính liền tuyệt đối.
 */
.chk-hero-demo__divider {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--chk-gold) 20%, var(--chk-gold-light) 50%, var(--chk-gold) 80%, transparent 100%);
}
.chk-hero-demo__chrome {
  display: flex; align-items: center; gap: 16px; padding: 10px 14px;
  background: linear-gradient(#f7f8fa, #ececef); border-bottom: 1px solid #d8dae0;
}
.chk-hero-demo__dot { width: 12px; height: 12px; border-radius: 50%; border: 0.5px solid rgba(0, 0, 0, 0.15); flex-shrink: 0; }
.chk-hero-demo__dot--red { background: #ff5f57; }
.chk-hero-demo__dot--yellow { background: #febc2e; }
.chk-hero-demo__dot--green { background: #28c840; }
.chk-hero-demo__chrome-nav { display: flex; gap: 10px; color: #b8bcc4; flex-shrink: 0; }
.chk-hero-demo__url-bar {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; border: 1px solid #d8dae0; border-radius: 7px; padding: 5px 14px;
  font-size: 12px; color: #5c6069; max-width: 320px; margin: 0 auto;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.chk-hero-demo__screen { position: relative; width: 100%; overflow: hidden; background: #fff; }
.chk-hero-demo__img { width: 100%; height: auto; display: none; }
.chk-hero-demo__img.is-active { display: block; }
.chk-hero-demo__overlay { position: absolute; inset: 0; pointer-events: none; }

@media (max-width: 768px) {
  /* Token mobile theo README: section padding 18px (thay 32px desktop) —
     đổi biến CSS gốc để toàn bộ section kế thừa tự động, không phải sửa
     từng nơi. */
  :root { --chk-section-px: 18px; }

  .chk-hero { padding-top: 32px; }
  .chk-hero__title { font-size: 28px; }
  .chk-hero__ctas { flex-direction: column; align-items: stretch; }

  /* Stat: hàng ngang icon-trái-chữ → 3 cột dọc icon-trên-số-dưới-nhãn */
  .chk-hero__stats { gap: 8px; }
  .chk-hero__stat { flex: 1; flex-direction: column; gap: 6px; text-align: center; }
  .chk-hero__stat-icon { width: 42px; height: 42px; margin: 0 auto; }
  .chk-hero__stat-text { text-align: center; }

  /* Logo đối tác: NGOẠI LỆ DUY NHẤT được cuộn ngang (đúng README — user
     đã xác nhận muốn giữ dạng cuộn thay vì bọc lưới) — mọi chỗ khác trên
     trang vẫn tuyệt đối không cuộn ngang/dọc nội bộ. */
  .chk-hero__logos {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    padding-bottom: 8px; margin-left: calc(-1 * var(--chk-section-px)); margin-right: calc(-1 * var(--chk-section-px));
    padding-left: var(--chk-section-px); padding-right: var(--chk-section-px);
  }
  .chk-hero__logo-card { flex-shrink: 0; }

  /* Demo card: bleed hết chiều ngang (section giữ padding, card âm margin) */
  .chk-hero-demo { padding: 0; margin: 0 calc(-1 * var(--chk-section-px)); max-width: none; }
  .chk-hero-demo__tabs { border-radius: 0; }
  .chk-hero-demo__frame { border-radius: 0; border-left: none; border-right: none; }

  .chk-hero-demo__tab-label { display: none; }
  .chk-hero-demo__tab-label-mobile { display: inline; }

  /* AI Drawer / BDS Panel: 32%/34% (tỉ lệ desktop) quá hẹp trên màn hình
     nhỏ — README yêu cầu 68%/62% cho mobile. */
  .chk-heroAiDrawer { width: 68%; }
  .chk-heroBdsPanel { width: 62%; }

  /* Cỡ chữ H2 các section còn lại theo đúng token mobile README (20-23px) */
  .chk-pricing__title { font-size: 22px; }
  .chk-testimonials__title { font-size: 21px; }
  .chk-faq__title { font-size: 21px; }
  .chk-security__title { font-size: 22px; }
  .chk-integration__title { font-size: 21px; }
  .chk-report__title { font-size: 22px; }
  .chk-final-cta__inner { flex-direction: column; align-items: stretch; }
  .chk-final-cta__actions { flex-direction: column; }

  /* Thu gọn padding dọc cố định (80-100px desktop) — nguyên nhân chính
     gây khoảng trắng lớn bất thường giữa các section trên mobile. */
  .chk-help { padding-top: 40px; padding-bottom: 40px; margin-top: 0; }
  .chk-pricing { padding-top: 48px; padding-bottom: 48px; }
  .chk-security { padding-bottom: 56px; }
  .chk-report { padding-bottom: 56px; }
  .chk-faq { padding-bottom: 56px; }
  .chk-final-cta { padding-bottom: 56px; }
  .chk-integration { padding-top: 8px; padding-bottom: 56px; }
  .chk-testimonials { padding-top: 48px; padding-bottom: 24px; }
  .chk-news { padding-bottom: 56px; }
}
@media (min-width: 769px) {
  .chk-hero-demo__tab-label-mobile { display: none; }
}

/* ── Phase 3: Hero demo overlay animation ───────────────────────
   4 lớp (.chk-heroL) chồng lên ảnh nền, ẩn/hiện theo tab active.
   Chỉ animate transform/opacity (GPU-friendly) — đúng nguyên tắc
   hiệu năng đã thống nhất. Không dùng ảnh phụ nào — toàn bộ mockup
   dựng bằng HTML/CSS thuần để giữ dung lượng nhẹ. */
.chk-heroL {
  position: absolute; inset: 0; display: none; overflow: hidden;
  font-family: var(--chk-font);
}
.chk-heroL.is-active { display: block; }

.chk-heroCursor {
  position: absolute; width: 24px; height: 24px; pointer-events: none; z-index: 5;
  transform: translate(-20%, -15%);
  transition: left 0.9s cubic-bezier(.4,0,.2,1), top 0.9s cubic-bezier(.4,0,.2,1), opacity 0.3s ease, transform 0.15s ease;
}
/* Modifier: di chuyển CHẬM RÃI hơn hẳn — dùng ở tab AI + tab AI Matching để
   người xem kịp thấy rõ thao tác chuột trước khi popup/panel bung ra. */
.chk-heroCursor--slow {
  transition: left 1.7s cubic-bezier(.4,0,.2,1), top 1.7s cubic-bezier(.4,0,.2,1), opacity 0.3s ease, transform 0.15s ease;
}
.chk-heroCursor.is-click { transform: translate(-20%, -15%) scale(0.68); }

/* Tab 1 — form modal */
.chk-heroModal {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; border-radius: 12px; padding: 22px; width: 290px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: opacity 0.35s ease;
}
.chk-heroModal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; font-weight: 800; color: var(--chk-ink); }
.chk-heroModal__head .chk-icon { color: #9aa0c2; }
.chk-heroModal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.chk-heroModal__label { font-size: 9px; color: var(--chk-gray-body); margin-bottom: 4px; }
.chk-heroModal__field {
  border: 1.5px solid #e3e5f0; border-radius: 7px; padding: 0 9px; height: 30px;
  font-size: 10px; color: var(--chk-ink); display: flex; align-items: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Ô "Đánh giá" — dropdown chọn giá trị, KHÔNG phải số điểm tĩnh */
.chk-heroModal__select {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid #e3e5f0; border-radius: 7px; padding: 0 9px; height: 30px; font-size: 10px;
  color: var(--chk-gray-muted); cursor: default; transition: border-color 0.2s ease;
}
.chk-heroModal__select.is-open { border-color: var(--chk-blue); }
.chk-heroModal__select .chk-icon { color: var(--chk-gray-muted); flex-shrink: 0; }
.chk-heroModal__select-value.is-filled {
  color: var(--chk-blue); font-weight: 700; background: rgba(37, 84, 232, 0.1);
  padding: 2px 8px; border-radius: 999px;
}
.chk-heroModal__dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--chk-border); border-radius: 7px; box-shadow: 0 10px 24px rgba(16,18,43,0.15);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}
.chk-heroModal__dropdown.is-open { opacity: 1; transform: translateY(0); }
.chk-heroModal__dropdown-opt { padding: 7px 9px; font-size: 10px; font-weight: 700; color: var(--chk-blue); background: rgba(37, 84, 232, 0.08); }
.chk-heroModal__actions { display: flex; gap: 8px; }
.chk-heroModal__cancel, .chk-heroModal__save {
  flex: 1; text-align: center; border-radius: 7px; padding: 8px; font-size: 10px; font-weight: 700;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.chk-heroModal__cancel { border: 1px solid #e3e5f0; color: var(--chk-gray-label); }
.chk-heroModal__save { color: #fff; background: var(--chk-blue, #2554e8); }
.chk-heroModal__save.is-clicked { transform: scale(0.94); box-shadow: inset 0 2px 6px rgba(0,0,0,0.2); }
.chk-heroModal__save.is-success { background: #1f9b7c; transform: scale(1); }

.chk-heroCard {
  position: absolute; top: 0; left: 50%; width: 240px;
  background: #fff; border-radius: 10px; padding: 10px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: flex; align-items: center; gap: 10px; pointer-events: none; opacity: 0;
}
.chk-heroCard__avatar {
  width: 28px; height: 28px; border-radius: 50%; background: #eef1fb; color: var(--chk-blue);
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chk-heroCard__name { display: block; font-size: 11.5px; font-weight: 800; color: var(--chk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chk-heroCard__meta { display: block; font-size: 10px; color: var(--chk-gray-muted); white-space: nowrap; }

/* Tab 2 — pipeline spotlight (giữ nguyên, đã xác nhận đúng/mượt) */
.chk-heroSpot {
  position: absolute; top: 23%; height: 75%; border-radius: 14px;
  box-shadow: 0 0 0 2000px rgba(9, 11, 28, 0.6); pointer-events: none;
  transition: left 0.9s cubic-bezier(.4,0,.2,1), width 0.9s cubic-bezier(.4,0,.2,1);
}
.chk-heroSpot__label {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  background: #10122b; color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

/* Nền mờ dùng chung cho tab 3 + tab 4 — có backdrop-blur thật, không chỉ tối màu */
.chk-heroScrim {
  position: absolute; inset: 0; background: rgba(9, 11, 28, 0.5);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none;
}

/* Tab 3 — AI Phân tích: drawer trượt từ bên phải (đúng mockup thật) */
.chk-heroAiDrawer {
  position: absolute; top: 0; right: 0; width: 32%; height: 100%;
  background: #fff; box-shadow: -16px 0 40px rgba(0, 0, 0, 0.18);
  display: flex; flex-direction: column; overflow: hidden; opacity: 0; pointer-events: none;
}
.chk-heroAiDrawer__head {
  flex-shrink: 0; padding: 10px 12px; color: #fff;
  background: linear-gradient(135deg, var(--chk-purple), #6d3fb0);
}
.chk-heroAiDrawer__head-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.chk-heroAiDrawer__title { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.chk-heroAiDrawer__badge { font-size: 7.5px; font-weight: 700; background: rgba(255,255,255,0.22); padding: 2px 6px; border-radius: 999px; margin-left: 2px; }
.chk-heroAiDrawer__close { color: #fff; opacity: 0.85; flex-shrink: 0; }
.chk-heroAiDrawer__name { font-size: 9px; opacity: 0.85; margin-top: 3px; }
.chk-heroAiDrawer__body { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.chk-heroAiDrawer__scoreBtn {
  background: rgba(124, 77, 196, 0.1); color: var(--chk-purple); text-align: center;
  font-size: 9px; font-weight: 700; padding: 8px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chk-heroAiDrawer__scoreBtn.is-pulse { transform: scale(0.96); box-shadow: 0 0 0 4px rgba(124, 77, 196, 0.18); }
.chk-heroAiDrawer__section-title { font-size: 8px; font-weight: 800; letter-spacing: 0.4px; color: var(--chk-purple); margin-bottom: 5px; }
.chk-heroAiDrawer__text {
  font-size: 8px; line-height: 1.55; color: var(--chk-gray-para); margin: 0 0 6px;
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
}
.chk-heroAiDrawer__text b { color: var(--chk-ink); }
.chk-heroAiDrawer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chk-heroAiDrawer__grid-btn { border: 1px solid var(--chk-border); border-radius: 7px; padding: 6px; text-align: center; font-size: 8px; font-weight: 700; color: var(--chk-ink); }
.chk-heroAiDrawer__reminder { border-top: 1px solid var(--chk-border); padding-top: 8px; opacity: 0; transition: opacity 0.3s ease; }
.chk-heroAiDrawer__reminder-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.chk-heroAiDrawer__reminder-field { border: 1px solid var(--chk-border); border-radius: 6px; padding: 5px 7px; font-size: 8px; color: var(--chk-gray-muted); }
.chk-heroAiDrawer__copy { margin-top: 8px; text-align: center; font-size: 8.5px; font-weight: 700; color: #fff; background: var(--chk-blue); padding: 7px; border-radius: 7px; }

/* Tab 4 — AI Matching: panel trượt từ bên phải (đúng mockup thật) */
.chk-heroBdsPanel {
  position: absolute; top: 0; right: 0; width: 34%; height: 100%;
  background: #fff; box-shadow: -20px 0 40px rgba(0, 0, 0, 0.15);
  opacity: 0; padding: 10px 11px; display: flex; flex-direction: column; gap: 7px; pointer-events: none;
}
.chk-heroBdsPanel__head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; flex-shrink: 0; }
.chk-heroBdsPanel__title-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chk-heroBdsPanel__title-wrap .chk-icon { color: var(--chk-blue); flex-shrink: 0; }
.chk-heroBdsPanel__title { font-size: 9.5px; font-weight: 800; color: var(--chk-ink); line-height: 1.3; }
.chk-heroBdsPanel__subtitle { font-size: 8px; color: var(--chk-gray-muted); margin-top: 2px; }
.chk-heroBdsPanel__close { color: var(--chk-gray-muted); flex-shrink: 0; }
.chk-heroBdsPanel__filters { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 7px; color: var(--chk-gray-muted); flex-shrink: 0; }
.chk-heroBdsPanel__chip { border: 1px solid var(--chk-border); border-radius: 999px; padding: 2px 6px; font-size: 7px; font-weight: 700; color: var(--chk-gray-label); }
.chk-heroBdsPanel__chip.is-active { background: var(--chk-blue); color: #fff; border-color: var(--chk-blue); }
.chk-heroBdsPanel__scanned { margin-left: auto; font-style: italic; }
.chk-heroBdsPanel__list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }

.chk-heroBdsCard { border: 1px solid var(--chk-border); border-radius: 9px; padding: 8px 9px; opacity: 0; }
.chk-heroBdsCard.is-partial { opacity: 0.7; }
.chk-heroBdsCard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.chk-heroBdsCard__id { display: flex; gap: 6px; align-items: flex-start; min-width: 0; }
.chk-heroBdsCard__score {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 800; background: #fff;
}
.chk-heroBdsCard__name-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chk-heroBdsCard__name { font-size: 9px; font-weight: 700; color: var(--chk-ink); }
.chk-heroBdsCard__tag { font-size: 7px; color: var(--chk-green); display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.chk-heroBdsCard__phone-row { display: flex; gap: 5px; flex-wrap: wrap; font-size: 7.3px; color: var(--chk-gray-muted); margin-top: 2px; }
.chk-heroBdsCard__actions { display: flex; gap: 4px; flex-shrink: 0; }
.chk-heroBdsCard__icon-btn { width: 17px; height: 17px; border-radius: 50%; background: var(--chk-fill-light); color: var(--chk-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chk-heroBdsCard__lines { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.chk-heroBdsCard__line { display: flex; align-items: flex-start; gap: 4px; font-size: 7px; color: var(--chk-gray-para); }
.chk-heroBdsCard__line .chk-icon { color: var(--chk-gold); margin-top: 1px; flex-shrink: 0; }
.chk-heroBdsCard__stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 8px; }
.chk-heroBdsCard__stat-label { font-size: 5.6px; color: var(--chk-gray-muted); text-transform: uppercase; letter-spacing: 0.1px; line-height: 1.2; }
.chk-heroBdsCard__stat-value { font-size: 7.3px; font-weight: 800; color: var(--chk-ink); margin-top: 1px; }
.chk-heroBdsCard__stat-bar { height: 2.5px; border-radius: 2px; background: var(--chk-fill-light); margin-top: 2px; overflow: hidden; }
.chk-heroBdsCard__stat-fill { height: 100%; background: var(--chk-blue); }
.chk-heroBdsCard__analyze-btn {
  margin-top: 8px; background: var(--chk-blue); color: #fff; text-align: center;
  font-size: 7.5px; font-weight: 700; padding: 6px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.chk-heroBdsPanel__foot { flex-shrink: 0; font-size: 9px; color: var(--chk-gray-muted); display: flex; align-items: center; justify-content: center; gap: 4px; padding-top: 4px; border-top: 1px solid var(--chk-border); }


/* ── Phase 4: Campaign promo (top banner, hero badge, popup) ────── */
.chk-promo-bar { background: var(--chk-navy-2); color: #fff; }
.chk-promo-bar__inner {
  max-width: var(--chk-content-max); margin: 0 auto; padding: 8px var(--chk-section-px);
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; text-align: center; position: relative;
}
.chk-promo-bar__icon { color: var(--chk-gold-light); display: flex; }
.chk-promo-bar__countdown { color: var(--chk-gold-light); font-weight: 700; }
.chk-promo-bar__close {
  background: none; border: none; color: #aab1d6; position: absolute; right: var(--chk-section-px);
  top: 50%; transform: translateY(-50%); display: flex; padding: 4px;
}

.chk-hero-promo {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(224, 72, 92, 0.1);
  border: 1px solid rgba(224, 72, 92, 0.25); color: var(--chk-red);
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: var(--chk-radius-pill);
  margin-bottom: 14px;
}

.chk-promo-popup { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.chk-promo-popup__scrim { position: absolute; inset: 0; background: rgba(16, 18, 43, 0.55); }
.chk-promo-popup__card {
  position: relative; background: #fff; border-radius: 18px; padding: 32px 28px; max-width: 380px; width: 100%;
  text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.chk-promo-popup__close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--chk-gray-muted); padding: 4px; }
.chk-promo-popup__icon { color: var(--chk-gold); margin-bottom: 12px; display: flex; justify-content: center; }
.chk-promo-popup__title { font-size: 20px; font-weight: 800; color: var(--chk-ink); margin: 0 0 8px; }
.chk-promo-popup__desc { font-size: 13.5px; color: var(--chk-gray-body); line-height: 1.6; margin: 0 0 16px; }
.chk-promo-popup__discount { font-size: 36px; font-weight: 800; color: var(--chk-red); margin-bottom: 20px; }
.chk-promo-popup__cta { width: 100%; justify-content: center; }

body.chk-no-scroll { overflow: hidden; }

/* ── Bug-fix batch: Tính năng / Bảng giá / Footer / Modal ────────── */

/* Eyebrow dùng chung nhiều section (kim cương nhỏ + label uppercase) */
.chk-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184, 134, 47, 0.1); border: 1px solid rgba(184, 134, 47, 0.25);
  padding: 6px 14px; border-radius: var(--chk-radius-pill);
  font-size: 12px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--chk-gold-grad-2); margin-bottom: 16px;
}
.chk-eyebrow .chk-icon { color: var(--chk-gold); }
.chk-eyebrow--dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); color: var(--chk-gold-light); }

/* ── Tính năng ("How it helps") — nền TRẮNG theo đúng file gốc ─── */
.chk-help { background: #fff; padding: 80px var(--chk-section-px); margin-top: 48px; }
.chk-help__inner {
  max-width: var(--chk-content-max); margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start;
}
.chk-help__left { position: sticky; top: 24px; }
.chk-help__title { font-size: var(--chk-h2-size); font-weight: 800; letter-spacing: var(--chk-h2-ls); color: var(--chk-ink); margin: 0 0 16px; line-height: 1.25; }
.chk-help__desc { font-size: 15.5px; color: var(--chk-gray-para); line-height: 1.7; margin: 0 0 28px; }
.chk-help__cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--chk-gold);
  color: #fff; font-weight: 800; font-size: 14.5px; padding: 13px 24px; border-radius: 9px;
}
.chk-help__cta:hover { color: #fff; background: var(--chk-gold-grad-2); }

.chk-timeline { position: relative; padding-left: 28px; }
.chk-timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: var(--chk-border); }
.chk-timeline__item { position: relative; padding-bottom: 32px; }
.chk-timeline__item:last-child { padding-bottom: 0; }
.chk-timeline__dot { position: absolute; left: -28px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--chk-gold); box-shadow: 0 0 0 4px rgba(184, 134, 47, 0.15); }
.chk-timeline__title { font-size: 16px; font-weight: 800; color: var(--chk-ink); margin: 0 0 6px; }
.chk-timeline__desc { font-size: 13.5px; color: var(--chk-gray-para); line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .chk-help__inner { grid-template-columns: 1fr; }
  .chk-help__left { position: static; }
}

/* ── Bảng giá ─────────────────────────────────────────────────── */
.chk-pricing { padding: 80px var(--chk-section-px); background: var(--chk-fill-light-2); text-align: center; }
.chk-pricing__inner { max-width: var(--chk-content-max); margin: 0 auto; }
.chk-pricing__title { font-size: var(--chk-h2-size); font-weight: 800; letter-spacing: var(--chk-h2-ls); color: var(--chk-ink); margin: 0 0 16px; }
.chk-pricing__promo {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(224, 72, 92, 0.1); color: var(--chk-red);
  border: 1px solid rgba(224, 72, 92, 0.25); padding: 8px 18px; border-radius: var(--chk-radius-pill);
  font-size: 13px; font-weight: 700; margin-bottom: 32px;
}
.chk-pricing__empty { color: var(--chk-gray-body); font-size: 14px; }

.chk-pricing__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; text-align: left; }
.chk-pricing__card {
  background: #fff; border: 1px solid var(--chk-border); border-radius: var(--chk-radius-card);
  padding: 28px 22px; display: flex; flex-direction: column; position: relative;
}
.chk-pricing__card--highlight {
  background: var(--chk-navy-2); border-color: var(--chk-navy-2); transform: scale(1.04);
  box-shadow: 0 20px 50px rgba(16, 18, 43, 0.25); z-index: 1;
}
.chk-pricing__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--chk-gold-btn-gradient); color: #fff; font-size: 11px; font-weight: 800;
  padding: 5px 14px; border-radius: var(--chk-radius-pill); display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.chk-pricing__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(184, 134, 47, 0.12); color: var(--chk-gold); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.chk-pricing__card--highlight .chk-pricing__icon { background: rgba(255, 255, 255, 0.1); }
.chk-pricing__name { font-size: 18px; font-weight: 800; color: var(--chk-ink); margin: 0 0 4px; }
.chk-pricing__card--highlight .chk-pricing__name { color: #fff; }
.chk-pricing__tagline { font-size: 12.5px; color: var(--chk-gray-muted); margin: 0 0 16px; min-height: 32px; }
.chk-pricing__card--highlight .chk-pricing__tagline { color: #aab1d6; }
.chk-pricing__price { font-size: 26px; font-weight: 800; color: var(--chk-ink); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--chk-border); }
.chk-pricing__card--highlight .chk-pricing__price { color: #fff; border-color: rgba(255, 255, 255, 0.15); }
.chk-pricing__price span { font-size: 12px; font-weight: 600; color: var(--chk-gray-muted); }
.chk-pricing__features { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chk-pricing__features li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--chk-gray-para); line-height: 1.4; }
.chk-pricing__card--highlight .chk-pricing__features li { color: #c7cbe8; }
.chk-pricing__features li.is-on .chk-icon { color: var(--chk-green); flex-shrink: 0; margin-top: 2px; }
.chk-pricing__features li.is-off { opacity: 0.5; }
.chk-pricing__features li.is-off .chk-icon { color: var(--chk-gray-muted); flex-shrink: 0; margin-top: 2px; }
.chk-pricing__cta { width: 100%; justify-content: center; }

@media (max-width: 1000px) { .chk-pricing__grid { grid-template-columns: 1fr 1fr; } .chk-pricing__card--highlight { transform: none; } }

/* ── Footer ───────────────────────────────────────────────────── */
.chk-footer { background: var(--chk-navy-2); color: #aab1d6; padding: 64px var(--chk-section-px) 24px; }
.chk-footer__inner { max-width: var(--chk-content-max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.chk-footer__tagline { font-size: 13px; line-height: 1.6; margin-top: 12px; max-width: 260px; }
.chk-footer__col h4 { color: #fff; font-size: 13px; font-weight: 800; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.4px; }
.chk-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chk-footer__col a { color: #aab1d6; font-size: 13.5px; }
.chk-footer__col a:hover { color: var(--chk-gold-light); }
.chk-footer__contact li { font-size: 13.5px; }
.chk-footer__bottom { max-width: var(--chk-content-max); margin: 0 auto; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: #7a82ab; }
.chk-footer__legal { display: flex; gap: 20px; }
.chk-footer__legal a { color: #7a82ab; }
.chk-footer__legal a:hover { color: var(--chk-gold-light); }

@media (max-width: 900px) { .chk-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .chk-footer__inner { grid-template-columns: 1fr; } }

/* ── Modal Login/Signup + Video ──────────────────────────────────── */
.chk-modal-overlay { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 24px; }
.chk-modal-overlay__scrim { position: absolute; inset: 0; background: rgba(16, 18, 43, 0.55); }
.chk-authModal { position: relative; background: #fff; border-radius: 18px; padding: 32px 28px; max-width: 380px; width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); }
.chk-authModal__close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--chk-gray-muted); padding: 4px; }
.chk-authModal__title { font-size: 22px; font-weight: 800; color: var(--chk-ink); margin: 0 0 20px; }
.chk-authForm { display: flex; flex-direction: column; gap: 14px; }
.chk-authForm__field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--chk-gray-label); }
.chk-authForm__field input { border: 1.5px solid var(--chk-border); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: var(--chk-font); color: var(--chk-ink); }
.chk-authForm__field input:focus { outline: none; border-color: var(--chk-gold); }
.chk-authForm__forgot { align-self: flex-end; font-size: 12.5px; color: var(--chk-gray-muted); margin-top: -6px; }
.chk-authForm__terms { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--chk-gray-body); }
.chk-authForm__submit { width: 100%; justify-content: center; margin-top: 4px; }
.chk-authForm__msg { font-size: 12.5px; color: var(--chk-red); min-height: 0; }
.chk-authForm__msg:empty { display: none; }
.chk-authModal__divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 11px; font-weight: 700; color: var(--chk-gray-muted); }
.chk-authModal__divider::before, .chk-authModal__divider::after { content: ''; flex: 1; height: 1px; background: var(--chk-border); }
.chk-authModal__social { display: flex; gap: 10px; }
.chk-authModal__social-btn { flex: 1; text-align: center; border: 1px solid var(--chk-border); border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 700; color: var(--chk-ink); }
.chk-authModal__social-btn:hover { border-color: var(--chk-gold); color: var(--chk-gold); }
.chk-authModal__switch { text-align: center; font-size: 13px; color: var(--chk-gray-body); margin: 20px 0 0; }
.chk-authModal__switch button { background: none; border: none; color: var(--chk-gold); font-weight: 700; padding: 0; }

.chk-video-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 24px; }
.chk-video-modal__scrim { position: absolute; inset: 0; background: rgba(9, 11, 28, 0.75); }
.chk-video-modal__frame { position: relative; width: 100%; max-width: 860px; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.chk-video-modal__close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; padding: 4px; }
.chk-video-modal__ratio { aspect-ratio: 16 / 9; width: 100%; }
.chk-video-modal__ratio iframe { width: 100%; height: 100%; display: block; border: none; }

/* Fix bug: [hidden] bị display:flex của .chk-modal-overlay/.chk-video-modal/
   .chk-promo-popup đè lên (cùng độ ưu tiên CSS, rule sau thắng) — khiến JS
   set hidden=true không ẩn được modal. Ép !important để chắc chắn thắng
   mọi rule display khác bất kể thứ tự khai báo. */
.chk-modal-overlay[hidden],
.chk-video-modal[hidden],
.chk-promo-popup[hidden] {
  display: none !important;
}

/* ── Funnel/Journey ───────────────────────────────────────────── */
.chk-funnel { position: relative; }
.chk-funnel__wave { width: 100%; height: 60px; display: block; }
.chk-funnel__wave--top { margin-bottom: -1px; }
.chk-funnel__wave--bottom { margin-top: -1px; transform: scaleY(-1); }
.chk-funnel__bg { background: #0a0c1f; padding: 56px var(--chk-section-px); }
.chk-funnel__inner { max-width: var(--chk-content-max-narrow); margin: 0 auto; }
.chk-funnel__head { text-align: center; margin-bottom: 24px; }
.chk-funnel__title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; color: #fff; margin: 0 0 12px; }
.chk-funnel__desc { font-size: 15px; color: #aab1d6; line-height: 1.6; max-width: 560px; margin: 0 auto; }

.chk-funnel__diagram { position: relative; height: 420px; margin-top: 24px; }
.chk-funnel__node { position: absolute; width: 170px; text-align: center; transform: translateX(-50%); }
.chk-funnel__node-ring {
  position: relative; width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%;
  background: #12142f; border: 2.5px solid rgba(224, 178, 92, 0.6);
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.4s ease;
}
.chk-funnel__node--final .chk-funnel__node-ring { background: #fff; border: none; }
.chk-funnel__node-kpi { font-size: 22px; font-weight: 800; color: var(--chk-gold); }
.chk-funnel__node-ripple {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid; opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chk-funnel__node-label { font-weight: 800; font-size: 13.5px; color: #fff; margin-bottom: 4px; }
.chk-funnel__node-desc { display: inline-flex; flex-direction: column; gap: 4px; align-items: flex-start; min-height: 1.5em; }
.chk-funnel__node-desc span { display: flex; align-items: flex-start; gap: 5px; font-size: 11px; color: #7a82ab; text-align: left; }
.chk-funnel__node-desc span[hidden] { display: none !important; }
.chk-funnel__node-desc .chk-icon { color: var(--chk-gold-light); margin-top: 2px; flex-shrink: 0; }
.chk-funnel__walker { position: absolute; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 2px solid var(--chk-gold-light); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); transform: translate(-50%, -50%); z-index: 5; }
.chk-funnel__walker img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .chk-funnel__diagram { height: auto; display: flex; flex-direction: column; gap: 40px; padding: 20px 0; }
  .chk-funnel__node { position: static; transform: none; width: 100%; }
  .chk-funnel__walker { display: none; }
}

/* ── Integration grid ─────────────────────────────────────────── */
.chk-integration { padding: 20px var(--chk-section-px) 90px; text-align: center; }
.chk-integration__inner { max-width: 900px; margin: 0 auto; }
.chk-integration__title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 36px; color: var(--chk-ink); }
.chk-integration__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chk-integration__item {
  background: var(--chk-fill-light); border-radius: 16px; padding: 18px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chk-integration__item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16, 18, 43, 0.09); }
.chk-integration__icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(184, 134, 47, 0.12); display: flex; align-items: center; justify-content: center; color: var(--chk-gold); overflow: hidden; }
.chk-integration__icon img { width: 100%; height: 100%; object-fit: cover; }
.chk-integration__name { font-size: 11.5px; font-weight: 700; color: #20264d; line-height: 1.3; }

@media (max-width: 700px) { .chk-integration__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .chk-integration__icon { width: 36px; height: 36px; } .chk-integration__name { font-size: 9.5px; } }

/* ── Security ─────────────────────────────────────────────────── */
.chk-security { padding: 0 var(--chk-section-px) 100px; }
.chk-security__inner { max-width: var(--chk-content-max-narrow); margin: 0 auto; }
.chk-security__top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.chk-security__title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 16px; color: var(--chk-ink); }
.chk-security__desc { font-size: 15px; color: var(--chk-gray-body); line-height: 1.65; margin: 0 0 24px; }
.chk-security__cta { background: var(--chk-ink); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 22px; }

.chk-security__demo { border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: var(--chk-fill-light-2); }
.chk-security__demo-frame { position: relative; width: 100%; height: 100%; }
.chk-security__demo-placeholder {
  width: 100%; height: 100%; background-color: #e9ebf5;
  background-image: linear-gradient(135deg, #e9ebf5, #f6f7fc);
  background-size: cover; background-position: top left; background-repeat: no-repeat;
  transition: filter 0.6s ease;
}
.chk-security__cursor { position: absolute; pointer-events: none; transform: translate(-20%, -15%) rotate(-90deg); transition: left 0.8s cubic-bezier(.4,0,.2,1), top 0.8s cubic-bezier(.4,0,.2,1); z-index: 5; }
.chk-security__click { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: rgba(37, 84, 232, 0.3); transform: translate(-50%, -50%); pointer-events: none; z-index: 4; }
.chk-security__popup {
  position: absolute; top: 50%; left: 50%; width: min(230px, 70%); opacity: 0;
  transform: translate(-50%, -50%) scale(0.9); transition: opacity 0.4s ease, transform 0.4s ease;
  background: #fff; border-radius: 16px; padding: 20px 18px; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); z-index: 3;
}
.chk-security__popup-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--chk-blue); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.chk-security__popup-title { font-size: 13px; font-weight: 800; color: var(--chk-ink); margin-bottom: 6px; }
.chk-security__popup-desc { font-size: 10px; color: #8a8fb0; line-height: 1.5; margin-bottom: 13px; }
.chk-security__popup-input { display: flex; align-items: center; border: 1.5px solid #e3e5f0; border-radius: 8px; padding: 0 10px; height: 34px; margin-bottom: 11px; text-align: left; transition: border-color 0.2s ease; }
.chk-security__popup-input span { font-size: 11px; color: var(--chk-gray-label); flex: 1; letter-spacing: 2px; }
.chk-security__popup-btn { background: var(--chk-blue); color: #fff; font-size: 11.5px; font-weight: 700; padding: 8px; border-radius: 7px; text-align: center; transition: background 0.2s ease; }

.chk-security__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.chk-security__card { background: #fff; border: 1px solid var(--chk-border); border-radius: 16px; padding: 24px; }
.chk-security__card-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(37, 84, 232, 0.1); color: var(--chk-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.chk-security__card h3 { font-size: 15.5px; font-weight: 800; margin: 0 0 8px; color: var(--chk-ink); }
.chk-security__card p { font-size: 13.5px; color: var(--chk-gray-para); line-height: 1.6; margin: 0; }

@media (max-width: 900px) { .chk-security__top { grid-template-columns: 1fr; } .chk-security__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .chk-security__grid { grid-template-columns: 1fr; } }

/* ── Report ───────────────────────────────────────────────────── */
.chk-report { padding: 0 var(--chk-section-px) 100px; }
.chk-report__inner { max-width: var(--chk-content-max-narrow); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chk-report__image { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; }
.chk-report__title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 16px; color: var(--chk-ink); }
.chk-report__desc { font-size: 15px; color: var(--chk-gray-body); line-height: 1.65; margin: 0 0 24px; }
.chk-report__ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.chk-report__link { display: inline-flex; align-items: center; gap: 6px; color: var(--chk-ink); font-weight: 700; font-size: 14px; }

@media (max-width: 900px) { .chk-report__inner { grid-template-columns: 1fr; } }

/* ── Testimonials ─────────────────────────────────────────────── */
.chk-testimonials { padding: 88px var(--chk-section-px) 40px; text-align: center; }
.chk-testimonials__inner { max-width: var(--chk-content-max-narrow); margin: 0 auto; }
.chk-testimonials__title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 44px; color: var(--chk-ink); }
.chk-testimonials__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: left; }
.chk-testimonials__avatar { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: var(--chk-fill-light); display: flex; align-items: center; justify-content: center; }
.chk-testimonials__avatar img { width: 100%; height: 100%; object-fit: cover; }
.chk-testimonials__avatar-placeholder { font-size: 28px; font-weight: 800; color: var(--chk-gold); }
.chk-testimonials__quote { font-size: 12.5px; color: var(--chk-gray-label); line-height: 1.5; margin: 0 0 8px; }
.chk-testimonials__name { font-weight: 800; font-size: 12.5px; color: var(--chk-ink); }
.chk-testimonials__role { font-size: 11.5px; color: var(--chk-gray-muted); }

@media (max-width: 900px) { .chk-testimonials__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .chk-testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .chk-testimonials__card:nth-child(5) { display: none; } /* mobile: đúng 4 thẻ chia đều 2×2 theo README */
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.chk-faq { padding: 0 var(--chk-section-px) 100px; }
.chk-faq__inner { max-width: var(--chk-content-max-narrow); margin: 0 auto; }
.chk-faq__head { text-align: center; margin-bottom: 36px; }
.chk-faq__title { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin: 0; color: var(--chk-ink); }
.chk-faq__list { display: flex; flex-direction: column; gap: 10px; }
.chk-faq__item { border: 1px solid var(--chk-border); border-radius: 12px; padding: 16px 18px; background: #fff; }
.chk-faq__question { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 14.5px; color: var(--chk-ink); cursor: pointer; list-style: none; }
.chk-faq__question::-webkit-details-marker { display: none; }
.chk-faq__caret { color: var(--chk-gold); flex-shrink: 0; transition: transform 0.2s ease; }
.chk-faq__item[open] .chk-faq__caret { transform: rotate(180deg); }
.chk-faq__answer { font-size: 13.5px; color: var(--chk-gray-para); line-height: 1.6; margin: 10px 0 0; }

/* ── Final CTA ────────────────────────────────────────────────── */
.chk-final-cta { padding: 0 var(--chk-section-px) 100px; }
.chk-final-cta__inner {
  max-width: var(--chk-content-max-narrow); margin: 0 auto; border-radius: 16px;
  background: linear-gradient(135deg, #10122b, #1c2050); padding: 36px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #fff;
}
.chk-final-cta__title { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.chk-final-cta__sub { font-size: 13px; color: #aab1d6; }
.chk-final-cta__actions { display: flex; gap: 10px; flex-shrink: 0; }
.chk-final-cta__secondary { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; font-weight: 700; font-size: 14px; padding: 13px 24px; border-radius: 9px; white-space: nowrap; }

/* Funnel: đường nối dashed + waver (giữ im phát sáng ở node cuối) */
.chk-funnel__connector { position: absolute; left: 0; top: 20px; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.chk-funnel__waver {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  border: 2.5px solid var(--chk-gold-light); transform: translate(-50%, -50%); z-index: 5;
  box-shadow: 0 0 0 6px rgba(224, 178, 92, 0.2), 0 6px 16px rgba(0, 0, 0, 0.3);
  opacity: 0; transition: opacity 0.4s ease;
}
.chk-funnel__waver img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) { .chk-funnel__connector { display: none; } }

/* ── Funnel MOBILE — hệ toạ độ dọc riêng (README) ────────────────
   Mặc định ẩn trên desktop; hiện ở ≤768px, đồng thời ẩn diagram desktop. */
.chk-funnel__diagram-mobile { display: none; position: relative; height: 680px; margin-top: 8px; }
.chk-funnel__connector-mobile { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

.chk-funnel__node-m { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.chk-funnel__node-m-ring {
  position: relative; border-radius: 50%; background: #12142f; border: 2.5px solid;
  display: flex; align-items: center; justify-content: center; transition: box-shadow 0.4s ease;
}
.chk-funnel__node-m[data-chk-node-m="0"] .chk-funnel__node-m-ring,
.chk-funnel__node-m[data-chk-node-m="2"] .chk-funnel__node-m-ring,
.chk-funnel__node-m[data-chk-node-m="3"] .chk-funnel__node-m-ring { border-color: currentColor; }
.chk-funnel__node-m[data-chk-node-m="1"] .chk-funnel__node-m-ring { background: linear-gradient(135deg, #e0b25c, #b8862f); border: none; }
.chk-funnel__node-m--final .chk-funnel__node-m-ring { border: none; }
.chk-funnel__node-m-kpi { font-size: 17px; font-weight: 800; color: var(--chk-gold); }
.chk-funnel__node-m-icon { display: flex; }

.chk-funnel__node-m-text { position: absolute; transform: translateY(-50%); width: 34%; }
.chk-funnel__node-m-text--right { left: 66%; right: 12px; text-align: left; }
.chk-funnel__node-m-text--left { right: 66%; left: 12px; text-align: right; }
.chk-funnel__node-m-label { font-weight: 800; font-size: 13px; color: #fff; margin-bottom: 3px; }
.chk-funnel__node-m-desc { display: flex; flex-direction: column; gap: 3px; min-height: 1.4em; }
.chk-funnel__node-m-text--right .chk-funnel__node-m-desc { align-items: flex-start; }
.chk-funnel__node-m-text--left .chk-funnel__node-m-desc { align-items: flex-end; }
.chk-funnel__node-m-desc span { display: flex; align-items: flex-start; gap: 4px; font-size: 10px; color: #7a82ab; }
.chk-funnel__node-m-desc span[hidden] { display: none !important; }
.chk-funnel__node-m-text--left .chk-funnel__node-m-desc span { flex-direction: row-reverse; }
.chk-funnel__node-m-desc .chk-icon { flex-shrink: 0; margin-top: 2px; color: currentColor; }

.chk-funnel__walker-m {
  position: absolute; width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--chk-gold-light); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%); z-index: 5;
}
.chk-funnel__walker-m img { width: 100%; height: 100%; object-fit: cover; }
.chk-funnel__waver-m {
  position: absolute; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  border: 2.5px solid var(--chk-gold-light); transform: translate(-50%, -50%); z-index: 5;
  box-shadow: 0 0 0 6px rgba(224, 178, 92, 0.2), 0 6px 16px rgba(0, 0, 0, 0.3);
  opacity: 0; transition: opacity 0.4s ease;
}
.chk-funnel__waver-m img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .chk-funnel__diagram { display: none; }
  .chk-funnel__diagram-mobile { display: block; }
  .chk-funnel__title { font-size: 21px; }
  .chk-funnel__bg { padding: 40px 0; }
  .chk-funnel__inner { padding: 0 var(--chk-section-px); }
}

/* ── Tin tức & Kiến thức ──────────────────────────────────────── */
.chk-news { padding: 0 var(--chk-section-px) 90px; }
.chk-news__inner { max-width: var(--chk-content-max-narrow); margin: 0 auto; }
.chk-news__head { margin-bottom: 32px; }
.chk-news__title { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; margin: 0; color: var(--chk-ink); }
.chk-news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chk-news__card { background: #fff; border: 1px solid var(--chk-border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.chk-news__card--mobile-only { display: none; } /* desktop: 3 bài, đúng README */
.chk-news__image { width: 100%; aspect-ratio: 16 / 10; background: var(--chk-fill-light); }
.chk-news__image img { width: 100%; height: 100%; object-fit: cover; }
.chk-news__image-placeholder { display: block; width: 100%; height: 100%; background: var(--chk-fill-light-2); }
.chk-news__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.chk-news__tag { font-size: 11px; font-weight: 800; color: var(--chk-gold); }
.chk-news__card-title {
  font-size: 15px; font-weight: 800; color: var(--chk-ink); margin: 0; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.chk-news__desc {
  font-size: 12.5px; color: var(--chk-gray-para); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.chk-news__read-more { font-size: 12.5px; font-weight: 700; color: var(--chk-gold); margin-top: 2px; display: inline-flex; align-items: center; gap: 4px; }
.chk-news__footer { text-align: center; margin-top: 28px; }
.chk-news__view-all {
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--chk-gold);
  color: var(--chk-gold); font-weight: 700; font-size: 14px; padding: 11px 24px; border-radius: 9px;
}

@media (max-width: 768px) {
  .chk-news__grid { grid-template-columns: repeat(2, 1fr); }
  .chk-news__card--mobile-only { display: flex; }
  .chk-news__title { font-size: 20px; }
  .chk-news__card-title { font-size: 12px; }
  .chk-news__desc { font-size: 10.5px; }
}

/* ── Footer accordion mobile ──────────────────────────────────── */
.chk-footer__col--desktop-only { display: flex; }
.chk-footer__accordion-wrap { display: none; }
.chk-footer__accordion { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0; }
.chk-footer__accordion summary {
  font-weight: 800; font-size: 14px; color: #fff; list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
}
.chk-footer__accordion summary::-webkit-details-marker { display: none; }
.chk-footer__accordion summary .chk-icon { color: #8891bd; transition: transform 0.2s ease; }
.chk-footer__accordion[open] summary .chk-icon { transform: rotate(180deg); }
.chk-footer__accordion-body { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.chk-footer__accordion-body a { color: #8891bd; font-size: 13px; }
.chk-footer__contact-heading { display: block; }

@media (max-width: 768px) {
  .chk-footer__col--desktop-only { display: none; }
  .chk-footer__accordion-wrap { display: block; }
  .chk-footer__inner { grid-template-columns: 1fr; }
}

/* ── Modal bottom-sheet mobile (đúng README) ─────────────────────
   Desktop: card giữa màn hình (giữ nguyên .chk-authModal hiện có).
   Mobile: bottom-sheet full-width, bo góc trên, có drag-handle, scroll
   nội bộ CHỈ khi nội dung form thực sự vượt quá màn hình (max-height
   92vh + overflow-y:auto) — đây là ngoại lệ hợp lý duy nhất tương tự
   logo đối tác, vì content 1 form dài trên màn hình rất thấp (landscape
   nhỏ) không có cách nào khác để không bị cắt mất nút Đăng ký. */
@media (max-width: 640px) {
  .chk-modal-overlay { align-items: flex-end; padding: 0; }
  .chk-authModal {
    max-width: none; width: 100%; border-radius: 20px 20px 0 0;
    max-height: 92vh; overflow-y: auto; padding-top: 20px;
  }
  .chk-authModal::before {
    content: ''; display: block; width: 36px; height: 4px; background: var(--chk-border);
    border-radius: 999px; margin: 0 auto 20px;
  }
  .chk-authModal__close { top: 20px; }
}
