/* ==========================================================================
   FixIT Student — giao diện theo DESIGN.md (Slack design system)
   Chỉ dùng token đã trích xuất: 7 màu, thang spacing 4px, 4 mức bo góc,
   thang chữ 12/14/16/18/22/64px, trọng số 400/600/700. Không dùng icon.
   ========================================================================== */

/* Font Be Vietnam Pro (SIL OFL 1.1), thiết kế riêng cho tiếng Việt.
   Lưu ngay trong site (static/fonts), không tải từ Google nên không gửi IP người xem đi đâu. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.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;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-vietnamese-400-normal.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;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-400-normal.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;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-vietnamese-600-normal.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;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-600-normal.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;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-vietnamese-700-normal.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;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro-latin-700-normal.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;
}

:root {
  color-scheme: light;
  /* Bảng màu gốc (hằng số, không đổi theo giao diện) */
  --white: #FFFFFF;
  --black: #000000;
  --c-grey-dark: #444444;
  --c-purple: #730394;
  --c-blue: #0000EE;
  --c-muted: #757575;
  --c-grey: #C9C9C9;

  /* Token ngữ nghĩa: đổi theo giao diện Sáng / Tối */
  --color-bg: #FFFFFF;
  --color-text: #000000;
  --color-text-2: #444444;
  --color-accent: #730394;    /* màu nhấn dùng cho chữ / viền trên nền trang */
  --color-link: #0000EE;
  --color-muted: #757575;
  --color-border: #C9C9C9;
  --fill-accent: #730394;     /* nền nút / dải màu (luôn tím) */
  --on-fill: #FFFFFF;         /* chữ trên nền tím */
  --surface-2: color-mix(in srgb, #C9C9C9 22%, #FFFFFF);
  --footer-line: transparent;

  /* Chữ: Be Vietnam Pro (hiển thị dấu tiếng Việt chuẩn), dự phòng bằng font hệ thống. */
  --font-sans: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-sm: 12px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 22px;
  --text-3xl: 64px;
  --lh-sm: 18px;
  --lh-base: 20px;
  --lh-lg: 24px;
  --lh-xl: 28px;
  --lh-2xl: 28px;
  --lh-3xl: 72px;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Khoảng cách (lưới 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 10px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 18px;
  --space-8: 20px;
  --space-9: 24px;
  --space-11: 32px;
  --space-12: 36px;
  --space-13: 40px;
  --space-14: 50px;
  --space-16: 104px;

  /* Hình khối */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 48px;
  --radius-full: 50%;

  /* Độ nổi và chuyển động */
  --shadow-sm: 0px 0px 0px 1px inset var(--color-accent);
  --shadow-sm-light: rgb(255, 255, 255) 0px 0px 0px 1px inset;
  --lift: 0 10px 30px -12px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition: box-shadow 0.42s var(--ease), color 0.42s var(--ease), background 0.42s var(--ease), border-color 0.42s var(--ease);

  --container: 1200px;
  --measure: 760px;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
main:focus { outline: none; }
strong { font-weight: var(--weight-bold); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-9); }
.narrow { max-width: calc(var(--measure) + var(--space-9) * 2); }

.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-link {
  position: absolute; left: var(--space-5); top: -100px; z-index: 100;
  background: var(--fill-accent); color: var(--on-fill);
  padding: var(--space-4) var(--space-9); border-radius: var(--radius-lg);
  font-weight: var(--weight-semibold); text-decoration: none;
}
.skip-link:focus { top: var(--space-5); }

/* Focus */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--white); }

/* ---------- Chữ ---------- */
h1, h2, h3 { font-weight: var(--weight-bold); color: var(--color-text); }
h2 { font-size: var(--text-2xl); line-height: var(--lh-2xl); }
h3 { font-size: var(--text-xl); line-height: 23.325px; }
.display { font-size: var(--text-3xl); line-height: var(--lh-3xl); font-weight: var(--weight-bold); letter-spacing: 0; max-width: 14em; }
.display-sm { font-size: var(--text-2xl); line-height: var(--lh-2xl); }
.h2-sm { font-size: var(--text-xl); line-height: 23.325px; margin: var(--space-11) 0 var(--space-5); }
.split-main > .h2-sm:first-child { margin-top: 0; }
.eyebrow { font-size: var(--text-base); line-height: var(--lh-base); font-weight: var(--weight-semibold); color: var(--color-accent); margin-bottom: var(--space-5); }
.lead { font-size: var(--text-xl); line-height: var(--lh-xl); color: var(--color-text-2); max-width: 36em; margin-top: var(--space-9); }
.muted { color: var(--color-muted); font-size: var(--text-base); line-height: var(--lh-base); margin-top: var(--space-4); }
.text-link { color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; transition: var(--transition); }
.text-link:hover { color: var(--color-accent); }

.on-dark { color: var(--white); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .eyebrow { color: var(--white); }
.on-dark .lead { color: var(--white); }
.on-dark .text-link { color: var(--white); }
.muted-on-dark { color: var(--c-grey); font-size: var(--text-base); line-height: var(--lh-base); margin: var(--space-2) 0 var(--space-9); }

.prose { color: var(--color-text-2); }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { margin-top: var(--space-13); color: var(--color-text); }
.prose h2 + * { margin-top: var(--space-4); }
.prose a { color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--color-text); }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-9);
  border: 1px solid transparent; border-radius: var(--radius-lg);
  font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--weight-semibold);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: var(--transition);
}
.btn--small { padding: var(--space-2) var(--space-5); font-size: var(--text-base); line-height: var(--lh-base); }
.btn--block { width: 100%; }

.btn--primary { background: var(--fill-accent); color: var(--on-fill); border-color: var(--fill-accent); }
.btn--primary:hover { background: var(--color-bg); color: var(--color-accent); box-shadow: var(--shadow-sm); }
.btn--primary:active { background: var(--fill-accent); color: var(--on-fill); }

.btn--secondary { background: var(--color-bg); color: var(--color-accent); border-color: var(--color-accent); }
.btn--secondary:hover { background: var(--fill-accent); color: var(--on-fill); border-color: var(--fill-accent); }

.btn--ghost { background: transparent; color: var(--color-text); }
.btn--ghost:hover { color: var(--color-accent); box-shadow: var(--shadow-sm); }

.btn--on-dark { background: var(--white); color: var(--c-purple); border-color: var(--white); }
.btn--on-dark:hover { background: transparent; color: var(--white); box-shadow: var(--shadow-sm-light); }
.btn--outline-dark { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-dark:hover { background: var(--white); color: var(--c-purple); }

.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--color-bg); color: var(--color-muted); border-color: var(--color-border);
  box-shadow: none; cursor: not-allowed;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 2px solid var(--pill-bg); view-transition-name: site-header; }
.header-inner { display: flex; align-items: center; gap: var(--space-9); min-height: 72px; }
.brand { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--color-accent); text-decoration: none; white-space: nowrap; border-radius: var(--radius-sm); }
.nav { flex: 1; }
.nav-list { display: flex; gap: var(--space-2); }
.nav-link {
  display: block; padding: var(--space-2) var(--space-4); border-radius: var(--radius-lg);
  color: var(--color-text); text-decoration: none; font-size: var(--text-base); line-height: var(--lh-base); font-weight: var(--weight-semibold);
  transition: var(--transition);
}
.nav-link:hover { color: var(--color-accent); box-shadow: var(--shadow-sm); }
.nav-link[aria-current="page"] { background: var(--pill-bg); color: var(--pill-fg); }
.nav-link[aria-current="page"]:hover { color: var(--pill-fg); box-shadow: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--black); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-inner { position: relative; padding-block: var(--space-16) 140px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-13); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-13); margin-top: var(--space-16); padding-top: var(--space-9); border-top: 1px solid var(--color-muted); }
.hero-facts dt { font-size: var(--text-base); line-height: var(--lh-base); color: var(--c-grey); }
.hero-facts dd { font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--weight-bold); margin-top: var(--space-1); }
.hero-toggle { position: absolute; left: var(--space-9); bottom: var(--space-9); z-index: 2; }

/* ---------- Section ---------- */
.section { padding-block: var(--space-16); }
.section--tight { padding-block: var(--space-13) var(--space-16); }
.section--border { border-top: 1px solid var(--color-border); }
.section-head { margin-bottom: var(--space-13); }
.section-lead { color: var(--color-text-2); margin-top: var(--space-2); max-width: 36em; }
.section-more { margin-top: var(--space-11); }

.page-hero { position: relative; overflow: hidden; padding-block: var(--space-16) var(--space-13); }
.breadcrumb { font-size: var(--text-base); line-height: var(--lh-base); color: var(--color-muted); margin-bottom: var(--space-5); }

.band { padding-block: var(--space-16); }
.band--accent { background: var(--fill-accent); }
.band--dark { background: var(--black); }
.band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.band-inner .btn { margin-top: var(--space-9); }
.band-inner .muted-on-dark + .btn { margin-top: 0; }
.pack-price { margin-top: var(--space-9); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-4); }
.pack-price-now { font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--weight-bold); }
.pack-price-was { color: var(--c-grey); text-decoration: line-through; }

/* ---------- Card ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-9); }
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-9); background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  transition: var(--transition);
}
.card--link:hover, .card--link:focus-within { background: var(--fill-accent); border-color: var(--fill-accent); }
.card :is(.card-link, .card-text, .card-meta, .card-price) { transition: var(--transition); }
.card--link:is(:hover, :focus-within) :is(.card-link, .card-text, .card-meta, .card-price, .tag) { color: var(--on-fill); }
.card-meta { font-size: var(--text-sm); line-height: var(--lh-sm); color: var(--color-muted); }
.card-title { font-size: var(--text-xl); }
.card-link { color: var(--color-text); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.card-link:focus-visible { outline: none; }
.card--link:has(.card-link:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.card-text { font-size: var(--text-base); line-height: var(--lh-base); color: var(--color-text-2); flex: 1; }
.card-price { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--color-accent); margin-top: var(--space-4); }

/* ---------- Ảnh dịch vụ ---------- */
.media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-bg); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card--link:hover .media img { transform: scale(1.05); }
.media video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--black); }
.media--empty { background: var(--color-border); background: color-mix(in srgb, var(--color-border) 35%, var(--color-bg)); }
.media-hint { position: absolute; inset: 0; display: grid; place-content: center; padding: var(--space-4); text-align: center; font-size: var(--text-sm); line-height: var(--lh-sm); color: var(--color-muted); }
.media-hint code { font-family: inherit; font-weight: var(--weight-semibold); color: var(--color-text-2); word-break: break-all; }
.card .media { margin: calc(var(--space-9) * -1) calc(var(--space-9) * -1) var(--space-5); }
.media--wide { aspect-ratio: 21 / 9; border-radius: var(--radius-md); }
.media-wrap { padding-top: var(--space-13); }

/* ---------- Các bước ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-11); counter-reset: step; }
.steps li { counter-increment: step; padding-top: var(--space-9); border-top: 1px solid var(--color-text); }
.steps li::before { content: "0" counter(step); display: block; font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--weight-bold); color: var(--color-accent); margin-bottom: var(--space-5); }
.steps p { margin-top: var(--space-2); color: var(--color-text-2); font-size: var(--text-base); line-height: var(--lh-base); }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: var(--space-13); }
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  display: flex; justify-content: space-between; gap: var(--space-9); align-items: baseline;
  padding: var(--space-6) 0; cursor: pointer; list-style: none;
  font-weight: var(--weight-semibold); transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "Mở"; flex-shrink: 0; font-size: var(--text-sm); font-weight: var(--weight-regular); color: var(--color-muted); }
.faq-item[open] summary::after { content: "Thu gọn"; }
.faq-item summary:hover { color: var(--color-accent); }
.faq-item p { padding-bottom: var(--space-6); color: var(--color-text-2); max-width: 40em; }
.faq-item p + p { margin-top: calc(var(--space-2) * -1); }

/* ---------- Thông tin ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-11); }
.info-grid dt { font-size: var(--text-base); color: var(--color-muted); }
.info-grid dd { margin-top: var(--space-2); font-size: var(--text-xl); line-height: 23.325px; font-weight: var(--weight-semibold); }

/* ---------- Bố cục 2 cột ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-16); align-items: start; }
.split-side { position: sticky; top: 96px; }
.panel { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-9); }
.panel-label { font-size: var(--text-sm); line-height: var(--lh-sm); color: var(--color-muted); margin-top: var(--space-5); }
.panel-label:first-child { margin-top: 0; }
.panel-price { font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--weight-bold); color: var(--color-accent); }
.panel-value { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.panel-actions { display: grid; gap: var(--space-4); margin-top: var(--space-9); }
.panel-foot { margin-top: var(--space-5); font-size: var(--text-base); text-align: center; }

.check-list { display: grid; gap: var(--space-4); margin-bottom: var(--space-9); }
.check-list li { padding-left: var(--space-5); border-left: 2px solid var(--color-accent); color: var(--color-text-2); }

.notice { margin-top: var(--space-11); padding: var(--space-9); border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); border-radius: var(--radius-md); color: var(--color-text-2); }
.notice + .split { margin-top: var(--space-13); }
.notice-title { font-weight: var(--weight-bold); color: var(--color-text); margin-bottom: var(--space-1); }

/* ---------- Bảng ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); text-align: left; font-weight: var(--weight-regular); }
.table thead th { font-size: var(--text-base); color: var(--color-muted); font-weight: var(--weight-semibold); border-bottom-color: var(--color-text); }
.table .num { text-align: right; white-space: nowrap; font-weight: var(--weight-semibold); }
.table tfoot th, .table tfoot td { font-weight: var(--weight-semibold); }
.table-total th, .table-total td { color: var(--color-accent); font-size: var(--text-xl); font-weight: var(--weight-bold); border-bottom: 0; }

/* ---------- Form ---------- */
.form { display: grid; gap: var(--space-9); margin-top: var(--space-5); }
.form--inline { grid-template-columns: 1fr auto; align-items: end; margin-top: 0; }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-base); line-height: var(--lh-base); font-weight: var(--weight-semibold); }
.input {
  width: 100%; padding: var(--space-4); background: var(--color-bg);
  border: 1px solid var(--color-muted); border-radius: var(--radius-sm);
  font-size: var(--text-lg); line-height: var(--lh-lg); transition: var(--transition);
}
textarea.input { resize: vertical; min-height: 96px; }
.input::placeholder { color: var(--color-muted); }
.input:hover { border-color: var(--color-text); }
.input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 0; border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.input:disabled { color: var(--color-muted); border-color: var(--color-border); cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--color-text); border-width: 2px; padding: calc(var(--space-4) - 1px); }
.field-error { font-size: var(--text-base); line-height: var(--lh-base); font-weight: var(--weight-bold); color: var(--color-text); }

/* ---------- Giỏ hàng ---------- */
.cart-list { border-top: 1px solid var(--color-border); }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: var(--space-9); padding: var(--space-5) 0; border-bottom: 1px solid var(--color-border); }
.cart-item-title { font-weight: var(--weight-semibold); }
.cart-item-price { color: var(--color-accent); font-weight: var(--weight-bold); }
.cart-item-end { display: flex; align-items: center; gap: var(--space-5); }
.qr-box { display: flex; flex-wrap: wrap; gap: var(--space-11); align-items: center; padding: var(--space-9); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-9); }
.qr-img { width: 220px; height: 220px; image-rendering: pixelated; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--white); padding: var(--space-2); }

/* ---------- Theo dõi đơn ---------- */
.track-result { margin-top: var(--space-13); }
.progress { display: grid; gap: 0; margin: var(--space-9) 0; counter-reset: p; }
.progress li { counter-increment: p; display: flex; gap: var(--space-5); padding: var(--space-4) 0; color: var(--color-muted); border-top: 1px solid var(--color-border); }
.progress li::before { content: counter(p); width: var(--space-11); height: var(--space-11); flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-full); font-weight: var(--weight-semibold); }
.progress li.is-done { color: var(--color-text); }
.progress li.is-done::before { background: var(--fill-accent); border-color: var(--fill-accent); color: var(--on-fill); }
.progress li.is-current { color: var(--color-accent); font-weight: var(--weight-bold); }
.progress li.is-current::before { border-color: var(--color-accent); color: var(--color-accent); box-shadow: var(--shadow-sm); }

/* ---------- Find your fix ---------- */
.quiz-step { border: 1px solid var(--color-border); border-top: 4px solid var(--tone-ink); border-radius: var(--radius-md); padding: var(--space-13); }
.quiz-count { font-size: var(--text-base); color: var(--color-muted); margin-bottom: var(--space-4); }
.quiz-question { font-size: var(--text-2xl); line-height: var(--lh-2xl); }
.quiz-question:focus { outline: none; }
.quiz-options { display: grid; gap: var(--space-4); margin-top: var(--space-9); }
.quiz-option {
  width: 100%; text-align: left; padding: var(--space-5) var(--space-9);
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-size: var(--text-lg); font-weight: var(--weight-semibold); cursor: pointer; transition: var(--transition);
}
.quiz-option:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); color: var(--color-accent); }
.quiz-nav { display: flex; gap: var(--space-5); margin-top: var(--space-9); }
.result-card { border: 1px solid var(--color-accent); box-shadow: var(--shadow-sm); border-radius: var(--radius-md); padding: var(--space-9); margin-top: var(--space-9); }
.result-card h3 { font-size: var(--text-2xl); line-height: var(--lh-2xl); }
.result-meta { display: flex; flex-wrap: wrap; gap: var(--space-9); margin: var(--space-5) 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-9); }
.also-list { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.also-list li { display: flex; justify-content: space-between; gap: var(--space-5); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); padding-top: var(--space-16); border-top: 1px solid var(--footer-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: var(--space-13); }
.footer-logo { font-size: var(--text-2xl); font-weight: var(--weight-bold); }
.footer-slogan { margin-top: var(--space-2); font-weight: var(--weight-semibold); }
.footer-text { margin-top: var(--space-5); color: var(--c-grey); font-size: var(--text-base); line-height: var(--lh-base); max-width: 28em; }
.footer-heading { font-size: var(--text-base); line-height: var(--lh-base); color: var(--c-grey); margin-bottom: var(--space-5); font-weight: var(--weight-semibold); }
.footer-list { display: grid; gap: var(--space-3); font-size: var(--text-base); line-height: var(--lh-base); }
.footer-list a { color: var(--white); text-decoration: none; transition: var(--transition); border-radius: var(--radius-sm); }
.footer-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-list--plain li { color: var(--white); }
.footer-legal { margin-top: var(--space-16); padding-block: var(--space-9); border-top: 1px solid var(--c-muted); color: var(--c-grey); font-size: var(--text-sm); line-height: var(--lh-sm); }

/* ---------- Chatbot ---------- */
.chat { position: fixed; right: var(--space-9); bottom: var(--space-9); z-index: 60; }
.chat-launcher { box-shadow: var(--shadow-sm-light); }
.chat-panel {
  position: absolute; right: 0; bottom: calc(100% + var(--space-4));
  display: flex; flex-direction: column;
  width: min(400px, calc(100vw - var(--space-11)));
  height: min(600px, calc(100vh - 140px));
  background: var(--color-bg); color: var(--color-text);
  border: 1px solid var(--color-text); border-radius: var(--radius-md); overflow: hidden;
}
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-5); padding: var(--space-5) var(--space-5) var(--space-5) var(--space-9); background: var(--fill-accent); color: var(--on-fill); }
.chat-title { font-size: var(--text-xl); color: var(--on-fill); }
.chat-sub { font-size: var(--text-sm); line-height: var(--lh-sm); margin-top: var(--space-1); }
.chat-close { color: var(--on-fill); }
.chat-close:hover { color: var(--on-fill); box-shadow: var(--shadow-sm-light); }
.chat-head :focus-visible { outline-color: var(--white); }
.chat-log { flex: 1; overflow-y: auto; padding: var(--space-5) var(--space-9); display: flex; flex-direction: column; gap: var(--space-5); }
.msg { max-width: 92%; font-size: var(--text-base); line-height: var(--lh-base); }
.msg p + p { margin-top: var(--space-2); }
.msg--bot { align-self: flex-start; padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.msg--user { align-self: flex-end; padding: var(--space-4) var(--space-5); background: var(--fill-accent); color: var(--on-fill); border-radius: var(--radius-md); }
.msg--typing { color: var(--color-muted); }
.msg-items { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.msg-item { padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.msg-item-title { font-weight: var(--weight-bold); }
.msg-item-meta { font-size: var(--text-sm); line-height: var(--lh-sm); color: var(--color-muted); margin-top: var(--space-1); }
.msg-item-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); font-size: var(--text-base); }
.msg-link { color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-size: var(--text-base); transition: var(--transition); }
.msg-link:hover { color: var(--color-accent); }
.msg-link:disabled { color: var(--color-muted); text-decoration: none; cursor: not-allowed; }
.msg-links { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); }
.chat-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-9) var(--space-4); max-height: 120px; overflow-y: auto; }
.chip {
  padding: var(--space-1) var(--space-4); background: var(--color-bg); color: var(--color-accent);
  border: 1px solid var(--color-accent); border-radius: var(--radius-lg);
  font-size: var(--text-base); line-height: var(--lh-base); cursor: pointer; transition: var(--transition);
}
.chip:hover, .chip.is-active { background: var(--fill-accent); color: var(--on-fill); border-color: var(--fill-accent); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); padding: var(--space-4) var(--space-9); border-top: 1px solid var(--color-border); }
.chat-note { padding: 0 var(--space-9) var(--space-4); font-size: var(--text-sm); line-height: var(--lh-sm); color: var(--color-muted); }

/* ---------- Hiệu ứng cuộn ---------- */
.js .reveal { opacity: 0; transform: translateY(var(--space-5)); transition: opacity 0.5s linear 0.1s, transform 0.42s var(--ease) 0.1s, border-color 0.42s var(--ease), box-shadow 0.42s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tông màu theo trang và nền động (chỉ dùng 7 màu của design system) ---------- */
body { --pill-bg: var(--tone-a); --pill-fg: #FFFFFF; --tone-a: var(--black); --tone-b: var(--c-purple); --tone-c: var(--c-blue); --tone-ink: var(--color-text); }
body[data-tone="purple"] { --tone-a: var(--c-purple); --tone-b: var(--c-blue); --tone-c: var(--black); --tone-ink: var(--color-accent); }
body[data-tone="blue"] { --tone-a: var(--c-blue); --tone-b: var(--c-purple); --tone-c: var(--black); --tone-ink: var(--color-link); }
body[data-tone="mix"] { --tone-a: var(--c-purple); --tone-b: var(--c-grey-dark); --tone-c: var(--c-blue); --tone-ink: var(--color-accent); }
body[data-tone="dark"] { --tone-a: var(--black); --tone-b: var(--c-purple); --tone-c: var(--c-blue); --tone-ink: var(--color-text); }
.band--accent { --tone-a: var(--c-purple); --tone-b: var(--c-blue); --tone-c: var(--black); }
.band--dark { --tone-a: var(--black); --tone-b: var(--c-purple); --tone-c: var(--c-blue); }

.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 75%); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .hero-video { z-index: 0; }
.page-hero .hero-toggle { z-index: 3; left: auto; right: var(--space-9); }
.hero-video--soft { opacity: 0.25; }
.on-dark .breadcrumb { color: var(--c-grey); }
.on-dark .breadcrumb .text-link { color: var(--white); }
.prose-on-dark > * + * { margin-top: var(--space-5); }
.prose-on-dark p { color: var(--white); max-width: 40em; }
.band .display-sm { margin-bottom: var(--space-5); }

.panel--tone { border: 0; }
.panel--tone .panel-label { color: var(--c-grey); }
.panel--tone .panel-value { color: var(--white); }

.showcase { padding-block: var(--space-16); }
.showcase-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.showcase-price { font-size: var(--text-3xl); line-height: var(--lh-3xl); font-weight: var(--weight-bold); }
.showcase .lead { margin-top: var(--space-5); }

.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.media--portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-md); }
.media--rounded { border-radius: var(--radius-md); }

.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-11) var(--space-9); counter-reset: v; }
.value { counter-increment: v; padding-top: var(--space-9); border-top: 1px solid var(--color-text); }
.value::before { content: "0" counter(v); display: block; margin-bottom: var(--space-5); font-size: var(--text-3xl); line-height: 1; font-weight: var(--weight-bold); color: var(--tone-ink); }
.value p { margin-top: var(--space-2); color: var(--color-text-2); font-size: var(--text-base); line-height: var(--lh-base); }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-11) var(--space-9); }
.member-name { margin-top: var(--space-5); font-size: var(--text-xl); }
.member-role { margin-top: var(--space-1); font-size: var(--text-base); line-height: var(--lh-base); font-weight: var(--weight-semibold); color: var(--tone-ink); }
.member-bio { margin-top: var(--space-2); font-size: var(--text-base); line-height: var(--lh-base); color: var(--color-text-2); }

/* Hiện lần lượt từng thẻ trong lưới */
.js .grid-cards .reveal:nth-child(4n + 2), .js .values .reveal:nth-child(4n + 2), .js .team .reveal:nth-child(4n + 2) { transition-delay: 0.2s; }
.js .grid-cards .reveal:nth-child(4n + 3), .js .values .reveal:nth-child(4n + 3), .js .team .reveal:nth-child(4n + 3) { transition-delay: 0.3s; }
.js .grid-cards .reveal:nth-child(4n + 4), .js .values .reveal:nth-child(4n + 4), .js .team .reveal:nth-child(4n + 4) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .media img { transition: none; }
  .card--link:hover .media img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .band-inner { grid-template-columns: 1fr; gap: var(--space-11); }
  .split { grid-template-columns: 1fr; gap: var(--space-13); }
  .split-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-grid, .steps { grid-template-columns: 1fr; }
  .split-even, .showcase-inner { grid-template-columns: 1fr; gap: var(--space-11); }
}

@media (max-width: 768px) {
  .container { padding-inline: var(--space-5); }
  .display { font-size: var(--space-13); line-height: 48px; }
  .showcase { padding-block: var(--space-13); }
  .showcase-price { font-size: var(--space-13); line-height: 48px; }
  .hero-inner, .section, .band { padding-block: var(--space-13); }
  .page-hero { padding-block: var(--space-13) var(--space-9); }
  .section--tight { padding-block: var(--space-9) var(--space-13); }
  .hero-facts { margin-top: var(--space-13); gap: var(--space-9); }
  .hero-toggle { position: static; margin: 0 var(--space-5) var(--space-5); }
  .hero { display: flex; flex-direction: column; }

  .header-inner { gap: var(--space-4); }
  .brand { flex: 1; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex: none;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: var(--space-4) var(--space-5) var(--space-9);
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-link { padding: var(--space-4); }

  .media--wide { aspect-ratio: 16 / 10; }
  .quiz-step { padding: var(--space-9) var(--space-5); }
  .form--inline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .chat { right: var(--space-4); bottom: var(--space-4); }
  .chat-panel { height: min(600px, calc(100vh - 100px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .hero-toggle { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .chat, .hero-video, .hero-toggle { display: none !important; }
}

/* ---------- Keyframes ---------- */

/* ==========================================================================
   Giao diện tối (chỉ dùng 7 màu của design system; riêng màu tím và xanh dùng
   làm CHỮ trên nền đen được pha với trắng để đủ độ tương phản)
   ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #000000;
  --color-text: #FFFFFF;
  --color-text-2: #C9C9C9;
  --color-accent: color-mix(in srgb, #730394 45%, #FFFFFF);
  --color-link: color-mix(in srgb, #0000EE 40%, #FFFFFF);
  --color-muted: #757575;
  --color-border: #444444;
  --surface-2: color-mix(in srgb, #444444 28%, #000000);
  --footer-line: #444444;
  --lift: 0 14px 34px -14px rgba(0, 0, 0, 0.9);
}
:root[data-theme="dark"] body[data-tone="dark"] { --pill-bg: #FFFFFF; --pill-fg: #000000; }
:root[data-theme="dark"] .input:hover { border-color: var(--color-text); }
:root[data-theme="dark"] .hero-video--soft { opacity: 0.3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-bg: #000000; --color-text: #FFFFFF; --color-text-2: #C9C9C9;
    --color-accent: color-mix(in srgb, #730394 45%, #FFFFFF);
    --color-link: color-mix(in srgb, #0000EE 40%, #FFFFFF);
    --color-border: #444444; --surface-2: color-mix(in srgb, #444444 28%, #000000); --footer-line: #444444;
  }
}

/* Nút chuyển Sáng / Tối: chữ, không dùng biểu tượng */
.theme-switch { display: inline-flex; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.theme-switch button {
  padding: var(--space-1) var(--space-4); border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--color-text-2);
  font-size: var(--text-base); line-height: var(--lh-base); font-weight: var(--weight-semibold); cursor: pointer; transition: var(--transition);
}
.theme-switch button:hover { color: var(--color-accent); }
.theme-switch button[aria-pressed="true"] { background: var(--fill-accent); color: var(--on-fill); }
.theme-switch button:focus-visible { outline-offset: 0; }
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after { transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease) !important; }

/* ==========================================================================
   Thành phần theo trang gốc
   ========================================================================== */
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-13); align-items: center; }
.hero .hero-inner { padding-block: var(--space-16); }
.badges { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-11); }
.badges li { padding: var(--space-1) var(--space-5); border: 1px solid var(--c-grey); border-radius: var(--radius-lg); font-size: var(--text-base); line-height: var(--lh-base); font-weight: var(--weight-semibold); }
.term { position: relative; border: 1px solid var(--c-muted); border-radius: var(--radius-md); background: rgba(0, 0, 0, 0.65); overflow: hidden; backdrop-filter: blur(6px); }
.term-bar { display: flex; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--c-muted); }
.term-bar span { width: 10px; height: 10px; border-radius: var(--radius-full); border: 1px solid var(--c-grey); }
.term-body { margin: 0; padding: var(--space-9); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: var(--text-base); line-height: 22px; color: var(--white); white-space: pre-wrap; word-break: break-word; }
.t-dim { color: var(--c-grey); }
.t-err { color: var(--white); font-weight: var(--weight-bold); }
.t-ok { color: var(--c-grey); }

.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-9); }
.adv { padding: var(--space-9); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); transition: var(--transition), translate 0.42s var(--ease); }
.adv:hover { translate: 0 -4px; border-color: var(--color-accent); box-shadow: var(--lift); }
.adv-no { font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--weight-bold); color: var(--color-accent); margin-bottom: var(--space-5); }
.adv p:not(.adv-no) { margin-top: var(--space-2); color: var(--color-text-2); font-size: var(--text-base); line-height: var(--lh-base); }
.adv--plain { border-left: 4px solid var(--tone-ink); background: var(--surface-2); }

.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps li { position: relative; }
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 0; background: var(--color-accent); transition: width 0.8s var(--ease) 0.3s; }
.steps li.is-visible::after { width: 100%; }

.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.tag { display: inline-block; padding: 0 var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); font-size: var(--text-sm); line-height: var(--lh-sm); color: var(--color-text-2); transition: var(--transition); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-4); }
.card-foot .card-price { margin-top: 0; }
.card-actions { position: relative; z-index: 2; display: flex; gap: var(--space-2); }
.card--link:is(:hover, :focus-within) .card-actions .btn--primary { background: var(--white); color: var(--c-purple); border-color: var(--white); }
.card--link:is(:hover, :focus-within) .card-actions .btn--secondary { background: transparent; color: var(--white); border-color: var(--white); }
.card--link { transition: var(--transition), translate 0.42s var(--ease); }
.card--link:hover { translate: 0 -4px; box-shadow: var(--lift); }

.filters { margin-bottom: var(--space-11); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-9); margin-top: var(--space-9); }
.filter-row .field { min-width: 200px; }
.filter-count { margin-left: auto; color: var(--color-muted); font-size: var(--text-base); }
.note-line { margin-top: var(--space-9); }
.grid-cards .card[hidden] { display: none !important; }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.way { padding: var(--space-9); border: 1px solid var(--color-border); border-top: 4px solid var(--tone-ink); border-radius: var(--radius-md); }
.way p { margin-top: var(--space-2); color: var(--color-text-2); font-size: var(--text-base); line-height: var(--lh-base); }
.inline-field { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); }
.field-hint { font-size: var(--text-base); line-height: var(--lh-base); color: var(--color-text-2); min-height: var(--lh-base); }

.flow { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-bottom: var(--space-13); }
.flow li { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-2) var(--space-5) var(--space-2) var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); color: var(--color-muted); font-weight: var(--weight-semibold); font-size: var(--text-base); transition: var(--transition); }
.flow li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-full); border: 1px solid var(--color-border); }
.flow li.is-current { color: var(--color-text); border-color: var(--color-accent); }
.flow li.is-current span, .flow li.is-done span { background: var(--fill-accent); color: var(--on-fill); border-color: var(--fill-accent); }
.flow li.is-done { color: var(--color-text-2); }

.quick { padding: var(--space-11); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--surface-2); }
.eyebrow-dark { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--color-accent); margin-bottom: var(--space-2); }
.quick-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-9); }
.check { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); cursor: pointer; font-size: var(--text-base); transition: var(--transition); }
.check:hover { border-color: var(--color-accent); }
.check input { width: 18px; height: 18px; accent-color: var(--c-purple); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.quick-out { margin-top: var(--space-9); font-weight: var(--weight-semibold); }
.quiz-bar { height: 4px; margin-bottom: var(--space-9); background: var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.quiz-bar::after { content: ""; display: block; height: 100%; width: var(--p, 33%); background: var(--fill-accent); transform-origin: left; animation: bar-in 0.7s var(--ease) both; }
.quiz-step { animation: step-in 0.5s var(--ease) both; }
.quiz-option { transition: var(--transition), transform 0.3s var(--ease); }
.quiz-option:hover { transform: translateX(6px); }

.member-task { margin-top: var(--space-1); font-size: var(--text-base); line-height: var(--lh-base); color: var(--color-text); }
.ai-list { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.ai-list li { padding-left: var(--space-5); border-left: 2px solid var(--white); }

/* ==========================================================================
   Trang chi tiết dịch vụ
   ========================================================================== */
.svc-hero { padding-bottom: var(--space-16); }
.svc-facts { display: flex; flex-wrap: wrap; gap: var(--space-9) var(--space-13); margin-top: var(--space-11); padding-top: var(--space-9); border-top: 1px solid rgba(255, 255, 255, 0.35); }
.svc-facts dt { font-size: var(--text-sm); line-height: var(--lh-sm); color: var(--c-grey); }
.svc-facts dd { margin-top: var(--space-1); font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--weight-bold); }
.svc-media-wrap { position: relative; z-index: 3; margin-top: -72px; }
.svc-media { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--lift); background: var(--color-bg); }
.svc-media .media, .svc-media .media--wide { border-radius: 0; }
.svc-body { padding-top: var(--space-13); }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-13); }
.assure li { padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--surface-2); font-size: var(--text-base); line-height: var(--lh-base); font-weight: var(--weight-semibold); text-align: center; }
.svc-h { margin-top: var(--space-13); }
.inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); counter-reset: inc; }
.inc { counter-increment: inc; position: relative; padding: var(--space-9) var(--space-9) var(--space-9) var(--space-9); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); transition: var(--transition), translate 0.42s var(--ease); overflow: hidden; }
.inc::before { content: "0" counter(inc); display: block; margin-bottom: var(--space-3); font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--weight-bold); color: var(--tone-ink); }
.inc::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone-ink); transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--ease); }
.inc:hover { translate: 0 -3px; border-color: var(--tone-ink); box-shadow: var(--lift); }
.inc:hover::after { transform: scaleY(1); }
.inc p { color: var(--color-text-2); font-size: var(--text-base); line-height: var(--lh-base); }
.fit { display: grid; gap: var(--space-4); padding: var(--space-9); border-radius: var(--radius-md); background: color-mix(in srgb, var(--tone-ink) 7%, var(--color-bg)); border: 1px solid var(--color-border); }
.fit li { position: relative; padding-left: var(--space-9); color: var(--color-text-2); }
.fit li::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 2px; background: var(--tone-ink); }
.flow4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); position: relative; }
.flow4 li { position: relative; padding-top: var(--space-9); border-top: 2px solid var(--color-border); }
.flow4 li::after { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--tone-ink); transition: width 0.8s var(--ease) 0.2s; }
.flow4 li.is-visible::after { width: 100%; }
.flow4 span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-full); border: 1px solid var(--tone-ink); color: var(--tone-ink); font-size: var(--text-base); font-weight: var(--weight-bold); }
.flow4 p { margin-top: var(--space-3); font-size: var(--text-base); line-height: var(--lh-base); font-weight: var(--weight-semibold); }
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.review { margin: 0; padding: var(--space-9); border: 1px solid var(--color-border); border-radius: var(--radius-md); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5); }
.review blockquote { margin: 0; color: var(--color-text-2); }
.review figcaption { font-size: var(--text-base); display: flex; justify-content: space-between; gap: var(--space-4); }
.score { color: var(--tone-ink); font-weight: var(--weight-bold); }
.book { border-top: 4px solid var(--tone-ink); }

/* ==========================================================================
   Chuyển động: chuyển trang, vào trang, chữ tách từ, FAQ, parallax nhẹ
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease) both; }
::view-transition-group(site-header) { animation-duration: 0s; }

.page { animation: page-in 0.6s var(--ease) both; }
.page.is-leaving { animation: page-out 0.2s ease-in both; }

/* Tiêu đề tách từng chữ, hiện lần lượt */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); animation: word-up 0.8s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }

/* Thanh chỉ vị trí trượt theo mục menu (máy tính để bàn) */
@media (min-width: 769px) {
  .nav-list { position: relative; }
  .nav-ind { position: absolute; top: 0; left: 0; height: 100%; border-radius: var(--radius-lg); background: var(--surface-2); z-index: 0; opacity: 0; transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s var(--ease); pointer-events: none; }
  .nav-list li { position: relative; z-index: 1; }
}

/* Parallax nhẹ cho nền hero */
.hero-video, .hero::before { will-change: transform; }
.hero-video { transform: translate3d(0, calc(var(--py, 0) * 1px), 0) scale(1.15); }
.term { transform: translate3d(0, calc(var(--py, 0) * -0.25px), 0); }

/* FAQ mở mượt (trình duyệt hỗ trợ ::details-content) */
:root { interpolate-size: allow-keywords; }
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-item summary::after { transition: var(--transition); }
.faq-item[open] summary { color: var(--color-accent); }

/* Hiện lần lượt, mượt hơn */
.js .reveal { transform: translateY(var(--space-9)); transition: opacity 0.7s var(--ease) 0.05s, transform 0.7s var(--ease) 0.05s, border-color 0.42s var(--ease), box-shadow 0.42s var(--ease), background 0.42s var(--ease), color 0.42s var(--ease), translate 0.42s var(--ease); }
.js .reveal.is-visible { transform: none; }
.js .inc-grid .reveal:nth-child(2n) { transition-delay: 0.14s; }
.js .adv-grid .reveal:nth-child(3n + 2), .js .steps .reveal:nth-child(4n + 2), .js .flow4 .reveal:nth-child(4n + 2) { transition-delay: 0.14s; }
.js .adv-grid .reveal:nth-child(3n + 3), .js .steps .reveal:nth-child(4n + 3), .js .flow4 .reveal:nth-child(4n + 3) { transition-delay: 0.24s; }
.js .steps .reveal:nth-child(4n + 4), .js .flow4 .reveal:nth-child(4n + 4) { transition-delay: 0.34s; }

.btn { transition: var(--transition), transform 0.3s var(--ease); }
.btn:active { transform: scale(0.97); }

@keyframes page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes word-up { to { transform: none; } }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-9); }
  .hero .hero-inner { padding-bottom: var(--space-9); }
  .term { margin-bottom: var(--space-13); }
  .adv-grid, .ways { grid-template-columns: 1fr; }
  .steps--4, .flow4 { grid-template-columns: 1fr 1fr; }
  .svc-media-wrap { margin-top: -48px; }
}
@media (max-width: 768px) {
  .theme-switch button { padding-inline: var(--space-3); }
  .assure, .inc-grid, .quick-list { grid-template-columns: 1fr; }
  .steps--4, .flow4 { grid-template-columns: 1fr; }
  .filter-count { margin-left: 0; }
  .svc-hero { padding-bottom: var(--space-13); }
  .svc-media-wrap { margin-top: -32px; }
  .inline-field { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .page, .quiz-step, .quiz-bar::after { animation: none; }
  .js [data-split] .w > span { animation: none; transform: none; }
  .hero-video, .term { transform: none; }
  .js .reveal { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .card--link:hover, .adv:hover, .inc:hover { translate: none; }
  .quiz-option:hover { transform: none; }
  .faq-item::details-content { transition: none; }
}

@media (max-width: 480px) {
  .header-inner { gap: var(--space-2); }
  .brand { font-size: var(--text-lg); }
  .header-actions { gap: var(--space-1); }
  .header-actions .btn--small { padding: var(--space-1) var(--space-3); }
  .theme-switch button { padding-inline: var(--space-2); }
}

.hero-video { opacity: 0.9; }
.hero-video--soft { opacity: 0.9; }

/* ==========================================================================
   Thông báo thêm vào giỏ
   ========================================================================== */
.toast-host { position: fixed; top: 88px; right: var(--space-9); z-index: 90; width: min(380px, calc(100vw - var(--space-11))); pointer-events: none; }
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  padding: var(--space-9) var(--space-9) var(--space-11);
  background-color: var(--black); color: var(--white);
  background-image: url("../images/ribbons.svg"); background-size: cover; background-position: 70% 40%;
  border: 1px solid var(--c-muted); border-radius: var(--radius-md); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
  animation: toast-in 0.7s cubic-bezier(0.2, 1.1, 0.3, 1) both;
}
.toast.is-out { animation: toast-out 0.4s var(--ease) both; }
.toast-head { font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--weight-semibold); color: var(--c-grey); letter-spacing: 0.04em; text-transform: uppercase; }
.toast-name { margin-top: var(--space-2); font-size: var(--text-xl); line-height: 23px; font-weight: var(--weight-bold); padding-right: var(--space-13); }
.toast-meta { margin-top: var(--space-2); font-size: var(--text-base); line-height: var(--lh-base); color: var(--c-grey); }
.toast-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.toast-close { position: absolute; top: var(--space-4); right: var(--space-4); padding: var(--space-1) var(--space-3); background: transparent; color: var(--c-grey); border: 0; border-radius: var(--radius-lg); font-size: var(--text-sm); cursor: pointer; transition: var(--transition); }
.toast-close:hover { color: var(--white); box-shadow: var(--shadow-sm-light); }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--c-purple), var(--c-blue)); transform-origin: left; animation: toast-bar 4.5s linear both; }
.toast::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0) 70%); transform: translateX(-120%); animation: toast-shine 1.2s 0.35s var(--ease) both; pointer-events: none; }
[data-cart-count].bump { display: inline-block; animation: bump 0.6s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes toast-in { from { opacity: 0; transform: translateX(60px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px) scale(0.96); } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes toast-shine { to { transform: translateX(120%); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.7); } 100% { transform: scale(1); } }
@media (max-width: 768px) {
  .toast-host { top: auto; bottom: var(--space-5); right: var(--space-5); left: var(--space-5); width: auto; }
  .toast { animation-name: toast-in-m; }
}
@keyframes toast-in-m { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .toast, .toast.is-out { animation: none; }
  .toast::before, [data-cart-count].bump { animation: none; }
  .toast-bar { animation-duration: 4.5s; }
}

.card-actions .btn { white-space: nowrap; }
.card-foot { row-gap: var(--space-3); }

/* ==========================================================
   Nền lót parallax (backdrop): ảnh mờ, mờ nhạt, cố định phía sau nội dung
   Chỉ dùng tông tím và xanh trong palette. Ảnh có kênh trong suốt.
   ========================================================== */
html { background: var(--color-bg); }
body { background: transparent; }
.backdrop {
  position: fixed; inset: -6vh -4vw; z-index: -1; pointer-events: none;
  background: url("../images/backdrop.webp") center 40% / cover no-repeat;
  opacity: .26;
  transform: translate3d(0, calc(var(--by, 0) * -1px), 0) scale(1.08);
  will-change: transform;
}
:root[data-theme="dark"] .backdrop { opacity: .34; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .backdrop { opacity: .34; } }
/* Mờ dần về nền ở mép dưới để chữ luôn dễ đọc */
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--color-bg) 100%);
}
@media (max-width: 720px) { .backdrop { opacity: .2; } }
@media print { .backdrop { display: none; } }
@media (prefers-reduced-motion: reduce) { .backdrop { transform: scale(1.08); } }

/* ==========================================================================
   Nền động .aurora (bản chính thức, thay cho các bản thử trước)
   - Dải lụa (ribbons.svg) nằm trên một lớp riêng ::after và chỉ dịch chuyển bằng transform,
     nên chạy mượt trên GPU, không bị giật và không lộ mép ảnh (lớp này rộng hơn khung 18%).
   - Hai quầng sáng tím và xanh nằm ở nền của chính khối, đi chậm phía dưới lớp dải lụa.
   - Pha chuyển động lấy theo đồng hồ chung (--aurora-t do script ở <head> đặt), nên khi
     chuyển trang nền không bị nhảy về đầu chu kỳ.
   ========================================================================== */
@property --gx1 { syntax: "<percentage>"; inherits: false; initial-value: 18%; }
@property --gy1 { syntax: "<percentage>"; inherits: false; initial-value: 35%; }
@property --gx2 { syntax: "<percentage>"; inherits: false; initial-value: 85%; }
@property --gy2 { syntax: "<percentage>"; inherits: false; initial-value: 70%; }
.aurora {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--black);
  background-image:
    radial-gradient(46% 90% at var(--gx1) var(--gy1), color-mix(in srgb, var(--c-purple) 78%, transparent) 0%, transparent 70%),
    radial-gradient(42% 80% at var(--gx2) var(--gy2), color-mix(in srgb, var(--c-blue) 62%, transparent) 0%, transparent 70%);
  background-repeat: no-repeat;
  animation: glow-drift 16s ease-in-out infinite alternate;
  animation-delay: calc(var(--aurora-t, 0) * -1s);
}
.aurora::after {
  content: ""; position: absolute; inset: -18%; z-index: -1; pointer-events: none;
  background: url("../images/ribbons.svg") center / cover no-repeat;
  mix-blend-mode: screen;
  animation: ribbon-flow 30s ease-in-out infinite alternate;
  animation-delay: calc(var(--aurora-t, 0) * -1s);
  will-change: transform;
}
@keyframes glow-drift {
  0%   { --gx1: 10%; --gy1: 25%; --gx2: 92%; --gy2: 82%; }
  50%  { --gx1: 46%; --gy1: 68%; --gx2: 58%; --gy2: 28%; }
  100% { --gx1: 84%; --gy1: 30%; --gx2: 16%; --gy2: 76%; }
}
@keyframes ribbon-flow {
  0%   { transform: translate3d(-6%, -4%, 0) scale(1.02) rotate(-2deg); }
  100% { transform: translate3d(6%, 4%, 0) scale(1.2) rotate(2deg); }
}
/* Người dùng bật "giảm chuyển động": vẫn trôi nhưng chậm gấp 3 lần, không tắt hẳn */
@media (prefers-reduced-motion: reduce) {
  .aurora { animation-duration: 48s; }
  .aurora::after { animation-duration: 90s; }
}
/* Khung video và ảnh bìa dịch vụ luôn 16:9 để không bị cắt chữ */
.media.media--video, .media.media--poster { aspect-ratio: 16 / 9; }

/* Video đang phát: dừng các hiệu ứng nền nặng để không giật */
.video-playing .aurora, .video-playing .aurora::after { animation-play-state: paused; }
.video-playing .backdrop { will-change: auto; }

/* Student Pack: hero và khối giá dùng chung một nền, không còn hai dải gradient cạnh nhau */
.page-hero:has(+ .showcase--flat)::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, var(--black) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 75%);
}
.showcase--flat {
  background-color: var(--black);
  background-image: radial-gradient(55% 90% at 88% 55%, color-mix(in srgb, var(--c-purple) 34%, transparent) 0%, transparent 72%);
}
.stat-list { margin: 0; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-9); padding-block: var(--space-6); border-top: 1px solid color-mix(in srgb, var(--white) 22%, transparent); }
.stat-row:last-child { border-bottom: 1px solid color-mix(in srgb, var(--white) 22%, transparent); }
.stat-row dt { color: var(--c-grey); font-size: var(--text-lg); line-height: var(--lh-lg); }
.stat-row dd { margin: 0; color: var(--white); font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--weight-bold); }

/* Phản hồi dạng bình luận: ảnh đại diện chữ cái, thích, và trả lời từ cửa hàng */
.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-9); }
.comment { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-5); align-items: start; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--color-accent); background: color-mix(in srgb, var(--c-purple) 14%, var(--color-bg)); border: 1px solid color-mix(in srgb, var(--c-purple) 35%, var(--color-bg)); }
.avatar--shop { color: var(--white); background: var(--c-purple); border-color: var(--c-purple); }
.comment-body { min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); font-size: var(--text-base); line-height: var(--lh-base); color: var(--color-muted); }
.comment-meta strong { color: var(--color-text); font-weight: var(--weight-bold); }
.comment-meta .score { margin-left: auto; }
.comment-text { margin: var(--space-2) 0 0; color: var(--color-text); line-height: var(--lh-lg); }
.comment-actions { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-3); font-size: var(--text-base); }
.comment-like { background: none; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-1) var(--space-5); color: var(--color-text-2); font: inherit; font-weight: var(--weight-semibold); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.comment-like:hover { border-color: var(--color-accent); color: var(--color-accent); }
.comment-like[aria-pressed="true"] { background: var(--c-purple); border-color: var(--c-purple); color: var(--white); }
.comment-like:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.comment-reply-label { color: var(--color-text-2); font-weight: var(--weight-semibold); }
.replies { margin-top: var(--space-4); }
.replies summary { display: inline-block; cursor: pointer; list-style: none; color: var(--color-accent); font-weight: var(--weight-bold); font-size: var(--text-base); padding-block: var(--space-1); }
.replies summary::-webkit-details-marker { display: none; }
.replies summary:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.replies .replies-close { display: none; }
.replies[open] .replies-open { display: none; }
.replies[open] .replies-close { display: inline; }
.comment--reply { margin-top: var(--space-4); }
.badge-owner { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--white); background: var(--c-purple); border-radius: var(--radius-lg); padding: 0 var(--space-3); line-height: var(--lh-sm); }

/* Khẩu hiệu hai dòng cân đối, không để một từ lẻ ở dòng cuối */

/* Khẩu hiệu: font riêng (Plus Jakarta Sans), cỡ lớn, hai từ khóa đổ màu tím xanh */
.display { text-wrap: balance; }
.slogan {
  font-family: "Plus Jakarta Sans", var(--font-sans);
  font-weight: 800; font-size: clamp(46px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.03em;
  max-width: 9em; color: var(--white);
}
.slogan::after {
  content: ""; display: block; width: 104px; height: 5px; margin-top: var(--space-9); border-radius: 5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c-purple) 55%, var(--white)), color-mix(in srgb, var(--c-blue) 45%, var(--white)));
  transform-origin: left center; animation: slogan-bar .9s var(--ease) .75s both;
}
.slogan .sw { display: inline-block; animation: sw-in .8s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 120ms); }
.slogan .hl {
  background-image: linear-gradient(95deg, color-mix(in srgb, var(--c-purple) 55%, var(--white)) 0%, color-mix(in srgb, var(--c-blue) 45%, var(--white)) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  padding-inline: .02em; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--c-purple) 70%, transparent));
}
@keyframes sw-in { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
@keyframes slogan-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .slogan .sw, .slogan::after { animation: none; } }
@media (max-width: 720px) { .slogan { font-size: clamp(40px, 12vw, 56px); } }
.footer-slogan { font-family: "Plus Jakarta Sans", var(--font-sans); font-weight: 700; letter-spacing: -0.01em; }
.slogan .cm { margin-left: -0.1em; }

/* Logo: biểu tượng tròn Fi cạnh tên thương hiệu (đầu trang và chân trang) */
.brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.brand-mark { display: block; width: 36px; height: 36px; border-radius: 50%; flex: none; }
.footer-logo { display: flex; align-items: center; gap: var(--space-4); }
.footer-logo .brand-mark { width: 40px; height: 40px; }
@media (max-width: 720px) { .brand-mark { width: 32px; height: 32px; } }

/* Khung "Câu chuyện của nhóm": hiện logo khi chưa có ảnh cả nhóm */
.logo-panel {
  display: grid; place-items: center; background-color: var(--black);
  background-image: radial-gradient(60% 110% at 50% 50%, color-mix(in srgb, var(--c-purple) 55%, transparent) 0%, transparent 72%), radial-gradient(40% 80% at 90% 90%, color-mix(in srgb, var(--c-blue) 40%, transparent) 0%, transparent 70%);
}
.logo-panel img { width: clamp(96px, 11vw, 132px); height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--white) 14%, transparent), 0 18px 48px color-mix(in srgb, var(--c-purple) 60%, transparent); object-fit: contain; }
.logo-panel:hover img { transform: none; }
.split-even .display-sm { margin-bottom: var(--space-5); }
