/* ==========================================================================
   base.css — reset, nền tảng, container/section, button, focus
   Nạp sau typography.css và tokens.css.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);   /* header dính trên cùng không che tiêu đề khi bấm neo */
}
/* Chỉ khi công tắc RESPECT_REDUCED_MOTION (index.html, <head>) bật và máy yêu cầu giảm chuyển động → <html class="reduce-motion"> */
html.reduce-motion { scroll-behavior: auto; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }

body {
  overflow-x: clip;   /* clip (không phải hidden) để header sticky vẫn chạy; chặn tràn ngang khi phần tử đang trượt vào */
  margin: 0;
  color: var(--viai-text);
  background: var(--viai-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

/* Icon line: dùng với <svg class="icon"><use href="#id"/></svg> */
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Focus rõ cho bàn phím */
:focus-visible {
  outline: 3px solid var(--viai-blue-bright);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .cta :focus-visible { outline-color: #fff; }

.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;
}

/* --------------------------------------------------------------------------
   Button
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 12px;
  font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center;
  transition: transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--orange { background: var(--viai-cta-bg); color: #fff; box-shadow: 0 10px 24px rgba(243, 107, 38, 0.28); }
.btn--orange:hover { box-shadow: 0 14px 30px rgba(243, 107, 38, 0.36); filter: brightness(1.04); }

.btn--blue { background: var(--viai-blue-bright); color: #fff; box-shadow: 0 10px 24px rgba(21, 83, 224, 0.25); }

.btn--outline { background: #fff; color: var(--viai-blue-bright); border-color: var(--viai-blue-bright); }
.btn--outline:hover { background: var(--viai-blue-soft); }

.btn--sm { min-height: 42px; padding: 0 22px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn--block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   Typography helper
   -------------------------------------------------------------------------- */
/* Chữ nhấn trong title: gradient cam. `color` đặt trước làm dự phòng khi trình duyệt không hỗ trợ background-clip:text */
.accent {
  color: var(--viai-orange-heading);
  background: var(--viai-grad-orange);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Biến thể đỏ cảnh báo (mục Nỗi đau) */
.accent--alert { color: var(--viai-alert); background: var(--viai-grad-alert); -webkit-background-clip: text; background-clip: text; }
/* Chế độ tương phản cao: bỏ gradient, dùng màu hệ thống để chữ không bị mất */
@media (forced-colors: active) {
  .accent { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; line-height: 1.3;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--viai-orange-strong);
}
.eyebrow::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 3.6px, var(--viai-orange) 4.2px);
}

/* Heading IN HOA căn giữa (tin dùng, dấu ấn, gói giá, FAQ) */
.h-caps {
  text-align: center; text-transform: uppercase;
  font-size: clamp(25px, 2.7vw, 36px); font-weight: 800; letter-spacing: -0.01em; text-wrap: balance;
  color: var(--viai-blue);
}
.section-lead { text-align: center; color: var(--viai-muted-strong); font-size: 16px; margin-top: 10px; }

/* Danh sách check xanh lá */
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.check-list .icon { width: 18px; height: 18px; margin-top: 2px; stroke: var(--viai-success-strong); stroke-width: 2.6; }

/* Hiệu ứng xuất hiện khi cuộn: css/motion.css + js/motion.js */
