/* Ra Khách design tokens — Hướng 1 (chủ duyệt 13/10/2026, docs/brief-huong-1.md): nền kem, xanh lục bảo #0F4D3F + hổ phách #F2B13A,
   tiêu đề serif (Playfair Display), thân chữ Be Vietnam Pro. Thiết kế tham chiếu: ../output/rakhach-ui-review/huong-1.html.
   File này CHỈ chứa: @font-face và biến CSS. Không có style nào khác. Một bảng màu sáng (color-scheme: light), như bản mẫu.

   Font tự host (SIL OFL 1.1), subset latin + vietnamese, phục vụ ở /fonts/<file>.woff2 kèm giấy phép:
     Be Vietnam Pro 400/600/700  — docs/design/concepts/fonts/ (giấy phép /fonts/OFL.txt)
     Playfair Display normal + italic (biến thiên 400–900) — ads/fanpage/final/fonts/ (giấy phép /fonts/OFL-PlayfairDisplay.txt)
   build/build.mjs chép các tệp này; không tải font từ máy chủ nào khác (CSP font-src 'self'). */
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/BeVietnamPro-400-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/BeVietnamPro-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/BeVietnamPro-600-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/BeVietnamPro-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/BeVietnamPro-700-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/BeVietnamPro-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/PlayfairDisplay-normal-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/PlayfairDisplay-normal-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/PlayfairDisplay-italic-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/PlayfairDisplay-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallbacks sized like the web fonts (measured widths: Be Vietnam Pro ≈ 108.7% of Arial, Playfair Display ≈ 101% of Georgia), so the
   text keeps its line breaks when the self-hosted fonts arrive (font-display: swap) — no layout shift (CLS). Local system fonts only. */
@font-face {
  font-family: 'Be Vietnam Pro Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('Roboto');
  size-adjust: 108.7%;
}
@font-face {
  font-family: 'Playfair Display Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 101%;
}

:root {
  color-scheme: light;
  /* màu (Hướng 1) */
  --c-bg: #FFFDF7;          /* giấy */
  --c-surface: #F6EFE2;     /* kem */
  --c-ink: #163D32;         /* chữ chính, xanh rất đậm */
  --c-muted: #56625A;       /* chữ phụ: ≥ 5:1 trên giấy và kem */
  --c-line: #D9DDCF;
  --c-brand: #0F4D3F;       /* xanh lục bảo */
  --c-brand-deep: #0A3A30;
  --c-brand-ink: #FFFFFF;
  --c-accent: #F2B13A;      /* hổ phách: làm NỀN nút và chữ trên nền xanh, không làm chữ trên nền sáng */
  --c-accent-ink: #7A4E08;  /* hổ phách đậm: chữ nhấn trên nền sáng (≥ 6:1 trên kem) */
  --c-on-dark: #F6EFE2;     /* chữ trên nền xanh */
  --c-on-dark-muted: #D9E1D3;
  --c-ok: #1E6B45;
  --c-warn: #8F5200;
  --c-danger: #B42318;

  /* chữ */
  --f-display: "Playfair Display", "Playfair Display Fallback", Georgia, serif;
  --f-body: "Be Vietnam Pro", "Be Vietnam Pro Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-num: "Playfair Display", "Playfair Display Fallback", Georgia, serif;

  /* khoảng cách */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 96px;

  /* bo góc, bóng, độ rộng đọc */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 9px;
  --shadow-1: 0 14px 40px rgba(10, 58, 48, .10);
  --shadow-2: 0 22px 50px rgba(9, 43, 34, .16);
  --max-read: 62ch;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Ra Khách — components.css, Hướng 1 (chủ duyệt 13/10/2026; docs/brief-huong-1.md).
   Ported from the owner's design mock ../output/rakhach-ui-review/ (style.css, funnel.css, readability.css, motion.css):
   cream / paper background, emerald #0F4D3F + amber #F2B13A, Playfair Display headings, Be Vietnam Pro text, hairline rules,
   square-ish cards, green hero band, serif numbers. Loaded AFTER build/tokens.css; only var(--…) from tokens.css plus a few
   tints mixed from them. Text is never smaller than 14px and body text is 16px (design check). No glyph outside the two font
   subsets: ticks, arrows and "+" marks are drawn with borders/SVG. Motion is light, finite, and off under prefers-reduced-motion. */

/* ---------- 0. derived tints (private) ---------- */
:root {
  --_edge: #7F8A7D;                                                     /* input borders: ≥ 3:1 on paper and cream */
  --_tint-brand: color-mix(in srgb, var(--c-brand) 8%, var(--c-bg));
  --_tint-ok: color-mix(in srgb, var(--c-ok) 12%, var(--c-bg));
  --_line-dark: color-mix(in srgb, var(--c-on-dark) 26%, var(--c-brand));
  --_card-before: #F2F0E9;
  --_card-after: #EDF3E9;
  --_card-after-edge: #A8BEA4;
  --_featured: #EDF1E8;
  --_featured-edge: #A3B4A1;
  --_zalo-bar-h: 72px;                                                  /* room kept for the floating bar: 58 + 10 + gap */
  --_header-h: 64px;
}
@media (min-width: 900px) { :root { --_header-h: 80px; } }

/* ---------- 1. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--_header-h) + 12px); scroll-padding-bottom: calc(var(--_zalo-bar-h) + var(--s-4)); }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 16px/1.7 var(--f-body); -webkit-font-smoothing: antialiased; }
body.has-zalo-bar, body:has(.zalo-bar) { padding-bottom: calc(var(--_zalo-bar-h) + env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand); text-underline-offset: 3px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }

h1, h2, h3 { margin: 0 0 var(--s-3); color: inherit; }
h1, h2 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.025em; line-height: 1.13; }
h1 { font-size: clamp(30px, 7.4vw, 58px); }
h2 { font-size: clamp(28px, 6.2vw, 44px); }
h3 { font: 600 18px/1.4 var(--f-body); }
p { margin: 0 0 var(--s-3); }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
@media (min-width: 900px) { .wrap { width: min(1200px, 100% - 96px); } }
.wrap--narrow { width: min(680px, 100% - 40px); }
.num { font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; }
.eyebrow { display: block; margin: 0 0 var(--s-3); font: 600 14px/1.5 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-ink); }
.muted { color: var(--c-muted); }
.small { font-size: 14px; line-height: 1.55; }
.lede { font-size: 17px; line-height: 1.7; color: var(--c-muted); max-width: var(--max-read); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--c-accent); color: var(--c-brand-deep); font-weight: 600; }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid #B37416; outline-offset: 3px; }
.arw { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; }

/* offer state: <body data-state="na|t1|t2|t3"> (static HTML ships "na"; site.js sets it from GET /api/slots) */
[data-state="t1"] [data-show]:not([data-show~="t1"]),
[data-state="t2"] [data-show]:not([data-show~="t2"]),
[data-state="t3"] [data-show]:not([data-show~="t3"]),
[data-state="na"] [data-show]:not([data-show~="t1"]):not([data-show~="na"]),
[data-state="na"] [data-show~="-na"] { display: none !important; }
[data-state="na"] [data-slot] { color: inherit; }

/* ---------- 2. buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 4px; font: 600 16px/1.3 var(--f-body); text-decoration: none; text-align: center; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s; }
.btn-main { background: var(--c-brand); color: var(--c-brand-ink); }
.btn-main:hover { background: var(--c-brand-deep); }
.btn-gold { background: var(--c-accent); color: var(--c-brand-deep); }
.btn-gold:hover { background: color-mix(in srgb, var(--c-accent) 88%, var(--c-brand-deep)); }
.btn-line { background: transparent; color: var(--c-brand); border-color: var(--c-brand); }
.btn-line:hover { background: var(--_tint-brand); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { background: var(--c-line); color: var(--c-muted); border-color: transparent; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[data-cta="main"] { scroll-margin-bottom: calc(var(--_zalo-bar-h) + var(--s-4)); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } .btn:active { transform: translateY(0) scale(.98); } }

/* ---------- 3. header (sticky, paper) + brand ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--c-bg); border-bottom: 1px solid var(--c-line); transition: box-shadow .25s ease; }
.top.is-scrolled { box-shadow: 0 8px 25px rgba(10, 58, 48, .06); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--_header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--c-ink); text-decoration: none; }
.brand__name { font: 500 21px/1.1 var(--f-display); letter-spacing: .02em; }
.monogram { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid #B07B21; border-radius: 50%; font: 500 18px/1 var(--f-display); letter-spacing: -.04em; color: var(--c-accent-ink); }
.monogram::after { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; border-radius: 50%; opacity: .4; }
.top__nav { display: none; }
@media (min-width: 900px) {
  .monogram { width: 46px; height: 46px; font-size: 21px; }
  .brand__name { font-size: 23px; }
  .top__nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; }
  .top__nav a { color: var(--c-ink); text-decoration: none; }
  .top__nav a:hover { color: var(--c-accent-ink); }
  .top__nav a:last-child { padding: 10px 18px; background: var(--c-accent); color: var(--c-brand-deep); border-radius: 4px; font-weight: 600; }
}
.top__zalo { white-space: nowrap; }
@media (max-width: 899px) { .top__zalo { min-height: 40px; padding: 6px 12px; font-size: 14px; } }
@media (max-width: 380px) { .brand__name { font-size: 19px; } }

/* ---------- 4. hero (green band) ---------- */
.hero { background: var(--c-brand); color: var(--c-on-dark); padding: var(--s-4) 0 var(--s-7); }
.hero a:not(.btn) { color: var(--c-accent); }
.hero-grid { display: grid; gap: var(--s-6); }
.hero .eyebrow { color: var(--c-accent); margin-bottom: var(--s-2); }
.hero h1 { margin-bottom: var(--s-3); color: var(--c-on-dark); }
.hero .lede { color: var(--c-on-dark-muted); margin-bottom: var(--s-2); }
.hero :focus-visible { outline-color: var(--c-accent); }
.price-chip { display: inline-block; margin: var(--s-1) 0 0; padding: 2px var(--s-3); border: 1px solid color-mix(in srgb, var(--c-accent) 70%, var(--c-brand)); border-radius: 999px; font: 600 15px/1.7 var(--f-body); color: var(--c-on-dark); }
.pitch__after { margin: var(--s-3) 0 0; font-size: 16px; line-height: 1.55; color: var(--c-on-dark-muted); }
.cta-after { margin: var(--s-2) 0 0; font-size: 15px; line-height: 1.5; color: var(--c-on-dark-muted); }
.pitch [data-cta="main"] { margin-top: var(--s-3); min-height: 54px; font-size: 17px; }
/* phones: the offer, its conditions and the main button share the first screen (390×844). The pitch is a column; the price chip
   moves under the button and the hero's second line (the lead table, said again in the Logic section) waits for wider screens. */
.pitch { display: flex; flex-direction: column; }
.pitch > * { min-width: 0; }
@media (max-width: 699px) {
  .pitch > .price-chip { order: 5; align-self: flex-start; margin-top: var(--s-3); }
  .pitch > template { order: 6; }
  [data-hero-main] .lede ~ .lede, .hero-probe .lede ~ .lede { display: none; }
  .hero .lede { font-size: 16px; line-height: 1.6; }
  .hero .offer-box__cond { font-size: 15px; line-height: 1.45; padding-left: 18px; }
  .hero { padding-top: var(--s-3); }
  html[data-nghe] .picker { margin-bottom: var(--s-3); }
  html[data-nghe] .picker__opt { min-height: 44px; padding: 4px 6px; font-size: 14px; }
  .hero h1 { font-size: 29px; }
  .hero h1 { margin-bottom: var(--s-2); }
  .hero .offer-box { margin-top: var(--s-3); padding: var(--s-3) 14px; }
  .hero .offer-box__kicker { display: none; }                               /* the headline says it; room for the button */
  .hero .offer-box__title { font-size: 24px; margin-bottom: 6px; }
  .hero .offer-box__more { margin-top: 6px; }
  .hero .offer-box__count { margin-top: var(--s-2); padding-top: var(--s-2); }
  .pitch [data-cta="main"] { margin-top: var(--s-3); min-height: 52px; }
}
@media (min-width: 900px) {
  .hero { padding: var(--s-8) 0 var(--s-8); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
  .hero .lede { font-size: 18px; }
}

/* picker: two pills in the hero; the chosen one is amber. No trade chosen: bigger, the first thing to do on the page. */
.picker { margin: 0 0 var(--s-4); }
.picker__label { margin: 0 0 var(--s-2); font: 600 15px/1.4 var(--f-body); color: var(--c-on-dark-muted); }
html[data-nghe] .picker__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.picker__opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2); }
.picker__opt { min-height: 44px; padding: 6px var(--s-3); border: 1px solid color-mix(in srgb, var(--c-on-dark) 45%, var(--c-brand)); border-radius: 999px; background: transparent; color: var(--c-on-dark); font: 600 15px/1.25 var(--f-body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.picker__opt:hover { border-color: var(--c-accent); }
.picker__opt[aria-pressed="true"],
html[data-nghe="sales"] .picker__opt[data-pick="sales"],
html[data-nghe="khoa-hoc"] .picker__opt[data-pick="khoa-hoc"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-brand-deep); }
html:not([data-nghe]) .picker__label { font-size: 18px; color: var(--c-on-dark); }
html:not([data-nghe]) .picker__opt { min-height: 56px; font-size: 17px; }
html:not([data-nghe]) .picker { margin-bottom: var(--s-5); }

/* ---------- 5. .offer-box — the program in the hero: headline, its conditions right under it, the live counter ---------- */
.offer-box { margin: var(--s-4) 0 0; padding: var(--s-4); background: var(--c-brand-deep); border: 2px solid var(--c-accent); border-radius: var(--r-md); box-shadow: 0 15px 40px rgba(4, 30, 24, .25); color: var(--c-on-dark); }
.offer-box__kicker { display: inline-block; margin: 0 0 var(--s-2); padding: 2px 10px; background: var(--c-accent); color: var(--c-brand-deep); font: 600 14px/1.6 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.offer-box__title { margin: 0 0 var(--s-2); font: 500 26px/1.18 var(--f-display); letter-spacing: -.02em; color: var(--c-on-dark); }
.offer-box__cond { margin: 0; padding: 0 0 0 20px; display: grid; gap: 2px; font-size: 16px; line-height: 1.5; color: var(--c-on-dark-muted); }
.offer-box__cond li::marker { color: var(--c-accent); }
.offer-box__more { margin: var(--s-2) 0 0; font-size: 15px; }
.offer-box__more a { color: var(--c-accent); font-weight: 600; }
.offer-box__count { margin: var(--s-3) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--_line-dark); font: 600 15px/1.5 var(--f-body); color: var(--c-on-dark); }
.offer-box__count [data-slot] { font: 600 26px/1 var(--f-num); font-variant-numeric: lining-nums tabular-nums; color: var(--c-accent); }
@media (min-width: 900px) {
  .offer-box { padding: var(--s-5) var(--s-5) var(--s-4); }
  .offer-box__title { font-size: 32px; }
}

/* ---------- 6. carousel of sample pages (hero art) ---------- */
.hero-art { min-width: 0; }
.art-caption { margin: 0 0 var(--s-3); font: 600 14px/1.5 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-on-dark-muted); }
.art-foot { margin: var(--s-3) 0 0; font-size: 14px; color: var(--c-on-dark-muted); }
.carousel { position: relative; }
.carousel__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--s-4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); }
.carousel__track::-webkit-scrollbar { display: none; }
.sample { scroll-snap-align: start; min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--c-bg); color: var(--c-ink); border: 1px solid #D4D9D0; border-radius: var(--r-lg); }
.sample__chrome { display: flex; align-items: center; gap: var(--s-3); padding: 6px 14px; background: #E8EADF; color: #4F6153; font-size: 14px; }
.sample__dots { display: flex; gap: 4px; }
.sample__dots i { width: 7px; height: 7px; border-radius: 50%; background: #9EAA9D; }
.sample__photo { aspect-ratio: 16 / 9; background: #E5E7DD; overflow: hidden; }
.sample__photo img { width: 100%; height: 100%; object-fit: cover; }
.sample__copy { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; padding: var(--s-4); }
.sample__copy p { margin: 0; }
.sample__label { font: 500 24px/1.2 var(--f-display); letter-spacing: -.02em; }
.sample__text { font-size: 16px; line-height: 1.55; color: var(--c-muted); }
.sample .btn { align-self: flex-start; margin-top: auto; }
.carousel__nav { display: flex; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-3); }
.carousel__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid color-mix(in srgb, var(--c-on-dark) 45%, var(--c-brand)); border-radius: 50%; background: transparent; color: var(--c-on-dark); cursor: pointer; }
.carousel__btn svg { width: 16px; height: 16px; }
.carousel__btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.carousel__btn[data-playing] [data-icon="play"], .carousel__btn:not([data-playing]) [data-icon="pause"] { display: none; }
@media (min-width: 900px) {
  .sample { box-shadow: var(--shadow-2); }
  .sample__copy { padding: var(--s-5); }
  .sample__label { font-size: 30px; }
}

/* ---------- 7. sections ---------- */
section.block { padding: var(--s-7) 0; }
@media (min-width: 900px) { section.block { padding: var(--s-9) 0; } }
section.block > .wrap > p, section.block > .wrap > div > p { max-width: var(--max-read); color: var(--c-muted); }
section.block h3 { font: 500 24px/1.25 var(--f-display); letter-spacing: -.015em; margin-top: var(--s-6); }
#vi-sao, #bang-gia, .contact { background: var(--c-surface); }
.lines { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 6px; }
.lines li { display: flex; gap: var(--s-3); font-size: 16px; line-height: 1.6; }
.lines li::before { content: ""; flex: none; width: 13px; height: 7px; margin-top: 8px; border-left: 2px solid var(--c-accent-ink); border-bottom: 2px solid var(--c-accent-ink); transform: rotate(-45deg); }

/* Story: Trước / Sau (comparison cards; the inner frames are sample pages drawn in HTML/CSS) */
.ba { margin: var(--s-5) 0 0; }
.ba__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); align-items: stretch; }
.ba__col { min-width: 0; display: flex; flex-direction: column; padding: var(--s-3); border: 1px solid var(--c-line); background: var(--_card-before); }
.ba__col--after { background: var(--_card-after); border-color: var(--_card-after-edge); }
.ba__tag { margin: 0 0 var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px solid var(--c-line); font: 600 14px/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.ba__col--after .ba__tag { color: var(--c-brand); border-color: var(--_card-after-edge); }
.ba__phone { flex: 1; padding: var(--s-2); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.ba__col--after .ba__phone { border-color: #C6D2BF; }
.ba__cap { margin: var(--s-3) 0 0; font-size: 15px; line-height: 1.5; }
.ba__note { margin: var(--s-3) 0 0; font-size: 14px; line-height: 1.5; color: var(--c-muted); }
@media (min-width: 700px) { .ba__grid { gap: var(--s-6); } .ba__col { padding: var(--s-5); } .ba__phone { padding: var(--s-4); } }
.mini { display: grid; gap: 6px; font-size: 14px; line-height: 1.35; }
.mini p { margin: 0; }
.mini__avatar { display: block; width: 44px; height: 44px; border-radius: 50%; background: #B8BCB0; }
.mini__avatar--sm { width: 30px; height: 30px; flex: none; }
.mini__person { display: flex; align-items: center; gap: var(--s-2); }
.mini__name { font-weight: 700; overflow-wrap: anywhere; }
.mini__label { font-weight: 700; color: var(--c-muted); }
.mini__line { color: var(--c-muted); }
.mini__bar { display: block; height: 8px; border-radius: 99px; background: var(--c-line); }
.mini__bar--short { width: 60%; }
.mini__price { padding: 6px var(--s-2); border-left: 3px solid var(--c-brand); background: var(--c-surface); }
.mini__amount { font: 600 17px/1.25 var(--f-num); overflow-wrap: anywhere; }
.mini__btn { padding: 3px var(--s-2); border: 1px solid var(--c-ink); border-radius: 3px; text-align: center; font-weight: 600; line-height: 1.25; }
.mini__btn--main { background: var(--c-brand); color: var(--c-brand-ink); border-color: var(--c-brand); }
.mini__rows { list-style: none; margin: 0; padding: 0; display: grid; }
.mini__rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; padding: 5px 0; border-bottom: 1px dashed var(--c-line); }
.mini__rows li > :first-child { flex: 1 1 auto; font-weight: 700; }
.mini__memo { flex-basis: 100%; color: var(--c-muted); overflow-wrap: anywhere; }
.mini__mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--c-warn); border-radius: 50%; color: var(--c-warn); font: 700 14px/1 var(--f-body); }
.mini__mark--ok { border-color: var(--c-ok); }
.mini__mark--ok::before { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid var(--c-ok); border-bottom: 2px solid var(--c-ok); transform: rotate(-45deg); }
.mini__qr { width: 64px; aspect-ratio: 1; border: 4px solid var(--c-bg); outline: 1px solid var(--c-line); background: repeating-conic-gradient(var(--c-ink) 0 25%, var(--c-bg) 0 50%) 0 0 / 12px 12px; }
.mini__status { justify-self: start; padding: 2px var(--s-2); border-radius: 999px; background: var(--_tint-ok); color: var(--c-ok); font-weight: 700; }
.mini__paid { color: var(--c-ok); font-weight: 700; }

/* steps: serif numbers over a hairline (Hướng 1 "process") */
.steps { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid #C7C9B6; font-size: 16px; line-height: 1.6; }
.steps li::before { content: "0" counter(s); font: 500 28px/1 var(--f-display); color: #8A6A2E; }
.steps-note { margin-top: var(--s-4); max-width: var(--max-read); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .steps li { grid-template-columns: 1fr; padding-top: var(--s-5); }
  .steps li::before { font-size: 38px; margin-bottom: var(--s-3); }
}

/* prices */
.prices { display: grid; gap: var(--s-4); margin-top: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.price-card { display: flex; flex-direction: column; padding: var(--s-5); background: #FFFFFF; border: 1px solid var(--c-line); }
.price-card--featured { background: var(--_featured); border-color: var(--_featured-edge); }
.price-card--aside { background: transparent; border-style: dashed; border-color: #C9C3B2; }
.price-card__top h3 { margin: 0; font: 500 26px/1.2 var(--f-display); letter-spacing: -.015em; }
.price-card__for { margin: var(--s-1) 0 0; font-size: 15px; line-height: 1.5; color: var(--c-muted); }
.price-card__amount { margin: var(--s-3) 0 0; font: 500 34px/1.2 var(--f-num); letter-spacing: -.01em; }
.price-card__amount small { font: 400 15px/1 var(--f-body); color: var(--c-muted); }
.price-card__alt { margin: var(--s-1) 0 0; font-size: 15px; color: var(--c-muted); }
.price-card > .lines { padding-top: var(--s-3); margin-top: var(--s-3); border-top: 1px solid var(--c-line); }
.price-card > .lines li::before { border-color: var(--c-brand); }
.price-card__more { margin-top: var(--s-1); }
.price-card__more > summary { display: flex; align-items: flex-start; gap: var(--s-2); min-height: 44px; padding-top: var(--s-2); cursor: pointer; list-style: none; font-weight: 600; color: var(--c-brand); }
.price-card__more > summary::-webkit-details-marker { display: none; }
.price-card__more > summary::before { content: "+"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; font: 500 18px/1 var(--f-display); }
.price-card__more[open] > summary::before { content: "\2212"; }
.price-card__more > summary > span { flex: 1; }
.price-card__more .lines { margin-top: 0; }
.price-card .btn { margin-top: var(--s-4); }
.price-card__note { margin: var(--s-3) 0 0; font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.prices-foot { margin: var(--s-3) 0 0; max-width: var(--max-read); }

/* trust row */
.trust-row { display: grid; gap: var(--s-3); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid #D3CBB6; }
.trust-row > div { display: flex; align-items: center; gap: var(--s-3); font: 600 15px/1.4 var(--f-body); }
.trust-row svg { width: 24px; height: 24px; flex: none; color: var(--c-accent-ink); }
@media (min-width: 700px) { .trust-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* FEAR: real limits + FAQ on the green band */
#gioi-han { background: var(--c-brand); color: var(--c-on-dark); }
#gioi-han h2, #gioi-han h3 { color: var(--c-on-dark); }
#gioi-han p, #gioi-han .lines li { color: var(--c-on-dark-muted); }
#gioi-han .lines li::before { border-color: var(--c-accent); }
#gioi-han [data-slot], #gioi-han [data-o="free_total"], #gioi-han [data-o="coupon_total"] { font-weight: 700; color: var(--c-accent); }
#gioi-han a { color: var(--c-accent); }
#gioi-han :focus-visible { outline-color: var(--c-accent); }

/* FAQ (details with a serif +/−) */
.faq { display: grid; max-width: 820px; margin-top: var(--s-3); }
.faq details { border-bottom: 1px solid var(--c-line); padding: var(--s-4) 0; }
.faq summary { position: relative; padding-right: 36px; cursor: pointer; list-style: none; font: 600 16px/1.5 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font: 400 26px/1 var(--f-display); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: var(--s-3) 0 0; max-width: 680px; }
#gioi-han .faq details { border-color: var(--_line-dark); }

/* ---------- 8. lead form (contact section) ---------- */
.contact-grid { display: grid; gap: var(--s-5); }
.contact__intro .lead-form__title { margin-bottom: var(--s-3); }
.contact__sub { font-size: 17px; color: var(--c-ink); }
.contact__note { display: flex; gap: var(--s-3); align-items: baseline; color: var(--c-muted); }
.contact__note::before { content: ""; flex: none; width: 13px; height: 7px; border-left: 2px solid var(--c-accent-ink); border-bottom: 2px solid var(--c-accent-ink); transform: translateY(-3px) rotate(-45deg); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } .contact__intro { position: sticky; top: calc(var(--_header-h) + 24px); } }
.lead-form { padding: var(--s-5) var(--s-4); background: var(--c-bg); border: 1px solid #DED8C6; border-radius: var(--r-md); box-shadow: 0 14px 50px rgba(36, 53, 37, .05); }
@media (min-width: 700px) { .lead-form { padding: var(--s-6); } }
.field { margin-bottom: var(--s-4); min-width: 0; }
.field-row { display: grid; gap: 0 var(--s-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field > label, .field > .lbl, .lbl { display: block; margin-bottom: 6px; font: 600 15px/1.45 var(--f-body); color: var(--c-ink); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--_edge); border-radius: var(--r-sm); background: #FFFFFF; color: var(--c-ink); font: 400 16px/1.4 var(--f-body); transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--c-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 14%, transparent); outline: none; }
.field input:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 1px; }
.field__hint { margin: var(--s-1) 0 0; font-size: 14px; line-height: 1.5; color: var(--c-muted); }
.opt { font-weight: 400; color: var(--c-muted); font-size: 14px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--s-4); }
fieldset.field legend { padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 var(--s-4); border: 1px solid var(--_edge); border-radius: 999px; background: #FFFFFF; font-weight: 600; font-size: 15px; }
.chips input:checked + span { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-brand-ink); }
.chips input:focus-visible + span { outline: 3px solid #B37416; outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin-bottom: var(--s-4); font-size: 14px; line-height: 1.55; color: var(--c-muted); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c-brand); }
.field input[aria-invalid="true"], .chips[aria-invalid="true"] span { border-color: var(--c-danger); border-width: 2px; }
.field__error, .form-error { margin: 6px 0 0; font: 600 14px/1.5 var(--f-body); color: var(--c-danger); }
.form-error { margin: 0 0 var(--s-4); padding: var(--s-3); border: 2px solid var(--c-danger); border-radius: var(--r-sm); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* end of page */
.endcta { text-align: left; }
.endcta p { max-width: var(--max-read); }
.endcta__btns { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-3) 0 0; }
.endcta__btns .btn { flex: 1 1 160px; }

/* ---------- 9. floating bar (phones only): Zalo + the state's main action ---------- */
.zalo-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 5px; border-radius: 8px; background: var(--c-brand-deep); box-shadow: 0 4px 25px rgba(25, 54, 35, .25); }
.zalo-bar .btn { min-height: 48px; padding: 0 var(--s-2); font-size: 15px; line-height: 1.15; }
.zalo-bar .btn-line { color: var(--c-on-dark); border-color: color-mix(in srgb, var(--c-on-dark) 50%, var(--c-brand-deep)); }
.zalo-bar :focus-visible { outline-color: var(--c-accent); }
/* Audit P0-4: hidden until the hero's main button (or, with no trade chosen, the picker) has left the screen, and hidden again while
   the lead form is on screen (build/site.js sets [data-shown]). Fixed, so showing it never moves the page. Without JavaScript it
   stays hidden at the first screen (where scroll-driven animations exist it slides in after one screen of scrolling). */
.zalo-bar { transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s; }
.zalo-bar:not([data-shown]) { visibility: hidden; opacity: 0; transform: translateY(calc(100% + 10px)); }
.zalo-bar[data-shown] { transition: transform .2s ease, opacity .2s ease, visibility 0s; }
@keyframes zalo-bar-in { from { visibility: hidden; opacity: 0; transform: translateY(calc(100% + 10px)); } to { visibility: visible; opacity: 1; transform: none; } }
@media (scripting: none) {
  @supports (animation-timeline: scroll()) {
    .zalo-bar:not([data-shown]) { animation: zalo-bar-in linear both; animation-timeline: scroll(root); animation-range: 100vh 110vh; }
  }
}
@media (min-width: 900px) {
  .zalo-bar { display: none; }
  body.has-zalo-bar, body:has(.zalo-bar) { padding-bottom: 0; }
}

/* ---------- 10. footer (deep green) ---------- */
.foot { padding: var(--s-7) 0 var(--s-5); background: var(--c-brand-deep); color: var(--c-on-dark); font-size: 15px; }
.foot a { color: var(--c-on-dark); }
.foot .brand { color: var(--c-on-dark); }
.foot .monogram { color: var(--c-accent); border-color: var(--c-accent); }
.foot__top { display: grid; gap: var(--s-4); }
.foot__tag { margin: 0; font: 400 22px/1.4 var(--f-display); color: var(--c-on-dark-muted); }
.foot__contact { margin: 0; line-height: 1.9; }
.foot__bottom { display: grid; gap: var(--s-2); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid #345548; font-size: 14px; color: var(--c-on-dark-muted); }
.foot__bottom p { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.foot :focus-visible { outline-color: var(--c-accent); }
@media (min-width: 900px) {
  .foot__top { grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-7); }
  .foot__bottom { grid-template-columns: 1fr auto; }
}

/* ---------- 11. narrow pages: /cam-on, /coc, /thanh-toan, return pages, policies ---------- */
.page { padding: var(--s-5) 0 var(--s-7); }
.page h1 { font-size: clamp(28px, 6.4vw, 42px); }
.page h2 { margin-top: var(--s-6); font-size: clamp(24px, 5vw, 32px); }
.page p, .page li { max-width: var(--max-read); }
.page > .wrap > p { color: var(--c-muted); }
.brand-card { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-3); align-items: center; margin: var(--s-4) 0; padding: var(--s-4); background: var(--c-surface); border: 1px solid #E1DCCB; }
.brand-card .monogram { width: 48px; height: 48px; font-size: 21px; }
.brand-card p { margin: 0; }
.brand-card__lead { font-weight: 600; line-height: 1.45; }
.zalo-cta { margin: var(--s-5) 0; }
.page .steps { margin: var(--s-4) 0; }
.page .trust-row { margin-top: var(--s-6); }
.table { overflow-x: auto; }
.table table { border-collapse: collapse; width: 100%; }
.table th, .table td { text-align: left; padding: var(--s-2); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.panel { --_pad: var(--s-4); margin-bottom: var(--s-4); padding: var(--_pad); background: #FFFFFF; border: 1px solid #DED8C6; border-radius: var(--r-md); }
@media (min-width: 700px) { .panel { --_pad: var(--s-5); } }
.pick { display: grid; gap: var(--s-3); }
.pick label { display: grid; grid-template-columns: 24px 1fr auto; gap: var(--s-3); align-items: center; min-height: 56px; padding: var(--s-3) var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-bg); cursor: pointer; }
.pick input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-brand); }
.pick label:has(input:checked) { border-color: var(--c-brand); background: var(--_tint-brand); }
.pick label:has(input:focus-visible) { outline: 3px solid #B37416; outline-offset: 2px; }
.pick .num { font-size: 18px; }
.code-box > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--c-brand); }
.code { display: flex; gap: var(--s-2); }
.code input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--_edge); border-radius: var(--r-sm); background: #FFFFFF; color: var(--c-ink); font: 700 16px/1.4 var(--f-body); letter-spacing: .04em; text-transform: uppercase; }
.code-msg { margin: var(--s-2) 0 0; font: 600 14px/1.5 var(--f-body); }
.code-msg--ok { color: var(--c-ok); }
.code-msg--err { color: var(--c-danger); }
.ledger { margin-top: var(--s-4); padding: var(--s-4) var(--s-5); background: var(--c-surface); border-radius: var(--r-md); }
.ledger p { display: flex; align-items: baseline; gap: var(--s-2); margin: 0; padding: 6px 0; font-size: 16px; }
.ledger p span:nth-child(2) { flex: 1; min-width: var(--s-3); border-bottom: 1px dotted var(--_edge); transform: translateY(-6px); }
.ledger p > b { font: 600 18px/1.5 var(--f-num); white-space: nowrap; }
.ledger p.is-total > span:first-child { font-weight: 700; }
.ledger p.is-total > b { font-size: 23px; }
.ledger--compact { margin-top: var(--s-3); padding: var(--s-2) var(--s-4); }
.ledger--compact p { padding: 3px 0; }
.qr-pay { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.qr-pay .field { margin-bottom: 0; }
.qr-pay__payee { margin: 0; font-weight: 600; }
.qr-pay__bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-4) calc(-1 * var(--_pad, var(--s-4))) calc(-1 * var(--_pad, var(--s-4))); padding: var(--s-2) var(--s-4) calc(var(--s-2) + env(safe-area-inset-bottom, 0px)); background: #FFFFFF; border-top: 1px solid var(--c-line); box-shadow: 0 -10px 24px -16px rgba(22, 61, 50, .35); border-radius: 0 0 var(--r-md) var(--r-md); }
.qr-pay__bar .btn { flex: 1 1 auto; min-width: 0; padding: 0 var(--s-3); }
.qr-pay__due { display: flex; flex-direction: column; flex: none; line-height: 1.2; white-space: nowrap; }
.qr-pay__due small { font-size: 14px; color: var(--c-muted); }
.qr-pay__due b { font: 600 23px/1.3 var(--f-num); }
.qr-pay__qr { width: 220px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; padding: var(--s-2); border: 1px solid var(--c-line); border-radius: var(--r-md); background: #FFFFFF; display: grid; place-items: center; }
.qr-pay__qr img { width: 100%; height: 100%; object-fit: contain; }
.qr-pay__copy { min-height: 44px; padding: 0 var(--s-3); font-size: 14px; }
.bank-pay__payee { margin: 0; font-weight: 600; }
.bank-pay .ledger p { flex-wrap: wrap; align-items: center; }
.bank-pay .ledger p > b { white-space: normal; overflow-wrap: anywhere; }
.bank-pay .qr-pay__copy { margin-left: auto; }
.status { display: flex; gap: var(--s-2); align-items: center; margin: 0; padding: var(--s-2) 14px; border-radius: var(--r-md); background: var(--c-surface); font-weight: 600; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c-warn); }
.dot--ok { background: var(--c-ok); }
.dot--danger { background: var(--c-danger); }
.ticket { padding: var(--s-4); border: 2px solid var(--c-accent); border-radius: var(--r-md); background: color-mix(in srgb, var(--c-accent) 14%, var(--c-bg)); text-align: center; color: var(--c-ink); }
.ticket .num { display: block; margin: var(--s-1) 0; font-size: 32px; font-weight: 600; }

/* ---------- 12. motion (light, finite; site.js adds the scroll reveals with the Web Animations API) ---------- */
details[open] > :not(summary) { animation: rk-fade .3s var(--ease); }
@keyframes rk-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .btn:active { transform: none; }
}

/* ---------- 13. .email — 600px email frame (web preview only; real emails are built by functions/_lib/mail.mjs) ---------- */
.email { width: 100%; max-width: 600px; margin: 0 auto; background: var(--c-bg); color: var(--c-ink); border: 1px solid var(--c-line); border-collapse: collapse; font: 400 16px/1.6 var(--f-body); }
.email td { padding: var(--s-5); }
.email__head { border-bottom: 1px solid var(--c-line); padding: var(--s-4) var(--s-5); }
.email__brand { font: 500 20px/1.4 var(--f-display); }
.email__tag { float: right; font: 600 14px/1.6 var(--f-body); color: var(--c-muted); }
.email__code { border: 2px solid var(--c-accent); background: var(--c-surface); border-radius: var(--r-md); padding: var(--s-4); text-align: center; }
.email__code b { display: block; font: 600 24px/1.4 var(--f-num); }
.email__btn { display: inline-block; background: var(--c-brand); color: var(--c-brand-ink); text-decoration: none; font-weight: 600; padding: var(--s-4) 22px; border-radius: 4px; }
.email__row { display: block; padding: 6px 0; border-bottom: 1px solid var(--c-line); }
.email__row .num { float: right; }
.email__foot { font-size: 14px; color: var(--c-muted); background: var(--c-surface); }
.email__foot a { color: var(--c-muted); }

/* Ra Khách — pages.css: page-level state and visibility rules for build/build.mjs output. Loaded after tokens.css + components.css.
   Layout and visibility only: every colour, font and size comes from var(--…) or components.css. */

/* Offer box before GET /api/slots answers ("na", also with no JavaScript): headline and conditions are the build-time defaults;
   the counter keeps its space but stays hidden, so no wrong number ever shows and the switch na -> t1/t2 moves nothing (CLS). */
[data-state="na"] .offer-box__count { visibility: hidden; }
/* No offer to show: nothing left (t3) or no program running (data-offer="off", GET /api/slots says active:false). The main button
   stays, with the state's own label. */
[data-state="t3"] .offer-box, [data-offer="off"] .offer-box { display: none !important; }
/* :::offstate on|off — lines for a running program vs none (site.js sets <body data-offer="off">) */
body:not([data-offer="off"]) [data-offshow="off"],
[data-offer="off"] [data-offshow="on"] { display: none !important; }

/* page states set by site.js on <body data-cstate>: /cam-on (c-t1, c-t2a, c-t2b, c-t3, c-dup), /thanh-toan(-xong) (con-lai, duy-tri) */
[data-cstate="c-t1"] [data-cshow]:not([data-cshow~="c-t1"]),
[data-cstate="c-t2a"] [data-cshow]:not([data-cshow~="c-t2a"]),
[data-cstate="c-t2b"] [data-cshow]:not([data-cshow~="c-t2b"]),
[data-cstate="c-t3"] [data-cshow]:not([data-cshow~="c-t3"]),
[data-cstate="c-dup"] [data-cshow]:not([data-cshow~="c-dup"]),
[data-cstate="con-lai"] [data-cshow]:not([data-cshow~="con-lai"]),
[data-cstate="duy-tri"] [data-cshow]:not([data-cshow~="duy-tri"]) { display: none !important; }
/* the single sales page /: <html data-nghe="sales|khoa-hoc"> (set on the server for links naming a trade, functions/index.js; then site.js); no attribute = no trade
   chosen yet ("none"). data-nshow="none sales" shows only for the trades listed. */
html:not([data-nghe]) [data-nshow]:not([data-nshow~="none"]),
html[data-nghe="sales"] [data-nshow]:not([data-nshow~="sales"]),
html[data-nghe="khoa-hoc"] [data-nshow]:not([data-nshow~="khoa-hoc"]) { display: none !important; }
/* branch-specific lines: <body data-branch="sales|khoa-hoc">; unknown branch hides both */
body:not([data-branch="sales"]) [data-bshow="sales"],
body:not([data-branch="khoa-hoc"]) [data-bshow="khoa-hoc"] { display: none !important; }
/* PayOS return pages: <body data-pay="pending|slow|paid">, set by site.js from GET /api/pay/status (never from the redirect) */
[data-pay="pending"] [data-payshow]:not([data-payshow~="pending"]),
[data-pay="slow"] [data-payshow]:not([data-payshow~="slow"]),
[data-pay="paid"] [data-payshow]:not([data-payshow~="paid"]) { display: none !important; }

/* draft markers ([số Zalo]…): visible on review builds; `npm run build:release` refuses to ship them */
.draft { outline: 2px dashed var(--c-warn); outline-offset: 2px; border-radius: var(--r-sm); }

/* /cam-on: no sticky bar there, so the "Mở Zalo" button must stay in the 390×844 first screen in every C-T state:
   tighter steps, ticket and margins on this page only. */
[data-page="cam-on"] .page { padding-top: var(--s-4); }
[data-page="cam-on"] .page h1 { font-size: clamp(26px, 6vw, 40px); margin-bottom: var(--s-2); }
[data-page="cam-on"] .page .steps { margin: var(--s-3) 0; gap: var(--s-2); }
[data-page="cam-on"] .page .steps li { grid-template-columns: 32px 1fr; gap: var(--s-2); padding-top: var(--s-2); font-size: 15px; line-height: 1.5; }
[data-page="cam-on"] .page .steps li::before { font-size: 22px; }
[data-page="cam-on"] .page .ticket { margin: var(--s-3) 0; padding: var(--s-3) var(--s-4); }
[data-page="cam-on"] .page .ticket .num { margin: 0; font-size: 28px; }
[data-page="cam-on"] .page .lines { margin-top: var(--s-2); gap: 2px; }
[data-page="cam-on"] .zalo-cta { margin: var(--s-4) 0; }

/* the single sales page / on phones: two trades' worth of selling on one page stays ≤ 7.500px per trade (brief §8, 13/10/2026),
   so blocks sit closer than on other pages; desktop keeps the Hướng 1 spacing */
@media (max-width: 699px) {
  [data-page="home"] section.block { padding: 28px 0; }
  [data-page="home"] section.block h2 { font-size: 27px; }
  [data-page="home"] .hero { padding-bottom: var(--s-5); }
  [data-page="home"] .hero-grid { gap: var(--s-5); }
  [data-page="home"] section.block h3 { margin-top: var(--s-4); font-size: 22px; }
  [data-page="home"] .faq { margin-top: 0; }
  [data-page="home"] .faq details { padding: 10px 0; }
  [data-page="home"] .lines { gap: 2px; }
  /* sample pages: a shorter photo, no browser bar, controls beside the caption line */
  [data-page="home"] .sample__chrome { display: none; }
  [data-page="home"] .sample__photo { aspect-ratio: 2 / 1; }
  [data-page="home"] .sample__copy { padding: var(--s-3) var(--s-4) var(--s-4); gap: 6px; }
  [data-page="home"] .sample__label { font-size: 22px; }
  [data-page="home"] .sample__text { font-size: 15px; line-height: 1.5; }
  [data-page="home"] .art-caption { margin-bottom: var(--s-2); }
  [data-page="home"] .carousel__nav { margin-top: var(--s-2); }
  [data-page="home"] .art-foot { margin-top: var(--s-2); }
  /* prices: tighter cards */
  [data-page="home"] .prices { gap: var(--s-3); margin-top: var(--s-3); }
  [data-page="home"] .price-card { padding: var(--s-4); }
  [data-page="home"] .price-card__top h3 { font-size: 23px; }
  [data-page="home"] .price-card__amount { margin-top: var(--s-2); font-size: 30px; }
  [data-page="home"] .price-card > .lines { margin-top: var(--s-2); padding-top: var(--s-2); }
  [data-page="home"] .price-card .btn { margin-top: var(--s-3); }
  [data-page="home"] .price-card__more > summary { min-height: 40px; }
  [data-page="home"] .trust-row { margin-top: var(--s-4); gap: var(--s-2); }
  [data-page="home"] .steps { gap: var(--s-3); margin-top: var(--s-3); }
  [data-page="home"] .steps li { padding-top: var(--s-2); }
  [data-page="home"] .ba { margin-top: var(--s-4); }
  /* contact + form */
  [data-page="home"] .contact-grid { gap: var(--s-3); }
  [data-page="home"] .contact__intro p { margin-bottom: var(--s-2); }
  [data-page="home"] .lead-form { padding: var(--s-4) 14px; }
  [data-page="home"] .field, [data-page="home"] fieldset.field { margin-bottom: var(--s-3); }
  [data-page="home"] .endcta__btns { margin-top: var(--s-2); }
  /* reading rhythm a touch tighter on phones */
  [data-page="home"] main { line-height: 1.6; }
  [data-page="home"] .lines li, [data-page="home"] .steps li { line-height: 1.5; }
  [data-page="home"] .art-caption { letter-spacing: .05em; }
  [data-page="home"] .carousel { padding-bottom: 0; }
  [data-page="home"] .carousel__nav { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; }
  [data-page="home"] .art-foot { min-height: 44px; margin-top: 6px; padding-right: 150px; display: flex; align-items: center; line-height: 1.4; }
  /* footer */
  .foot { padding: var(--s-5) 0 var(--s-4); }
  .foot__top { gap: var(--s-2); }
  .foot__tag { font-size: 19px; }
  .foot__bottom { margin-top: var(--s-4); padding-top: var(--s-3); }
}
