@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

/* ===================== TOKENS (chỉ áp cho .landing) ===================== */
.landing {
  --ld-bg: #f4f7fb;
  --ld-surface: #ffffff;
  --ld-surface-2: #ffffff;   /* card nằm TRÊN section màu surface */
  --ld-text: #0f172a;
  --ld-text-2: #334155;
  --ld-muted: #64748b;
  --ld-border: #e2e8f0;
  --ld-blue: #2563eb;
  --ld-blue-d: #1d4ed8;
  /* Màu NỀN cho nút/badge chữ trắng — ở dark KHÔNG được sáng lên như --ld-blue */
  --ld-blue-fill: #2563eb;
  --ld-blue-fill-h: #1d4ed8;
  --ld-blue-soft: #eff6ff;
  --ld-green: #10b981;
  --ld-green-d: #059669;
  /* Level 3 — vàng hổ phách, phân biệt với L1 xanh dương / L2 xanh lá */
  --ld-amber: #b45309;
  --ld-red: #ef4444;
  --ld-red-soft: #fef2f2;
  --ld-radius: 14px;
  --ld-shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --ld-shadow-lg: 0 4px 12px rgba(15,23,42,.08), 0 20px 48px rgba(15,23,42,.10);
}

/* Chế độ tối: đổi token cho khớp nav/footer tối (trang chủ hợp nhất).
   --ld-muted #94a3b8: đạt ≥4.5:1 trên mọi surface tối (5.8–7.2:1).
   --ld-blue #60a5fa: chữ/icon xanh trên nền tối; --ld-blue-fill giữ #2563eb
   để chữ TRẮNG trên nút xanh vẫn đạt 5.2:1 (nếu fill #60a5fa chỉ còn 2.5:1). */
[data-theme="dark"] .landing {
  --ld-bg: #0e1526; --ld-surface: #171f30; --ld-surface-2: #1e293f;
  --ld-text: #e8ecf3;
  --ld-text-2: #b7c1d1; --ld-muted: #94a3b8; --ld-border: #2a3446;
  --ld-blue: #60a5fa; --ld-blue-d: #93c5fd;
  --ld-blue-soft: #1b2742;
  --ld-amber: #fbbf24;   /* nền tối: sáng lên cho đủ tương phản */
}

/* ===================== BASE ===================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.landing {
  background: var(--ld-bg);
  color: var(--ld-text);
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.landing a { text-decoration: none; color: inherit; }
.landing em { font-style: italic; }

.ld-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ld-narrow { max-width: 960px; }
.ld-center { text-align: center; }

.ld-h1 {
  /* Fallback Cambria/Times: Georgia render sai dấu tiếng Việt (ế -> ê´) */
  font-family: "Playfair Display", Cambria, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
/* Không dùng italic: Playfair Display Italic ghép sai dấu tiếng Việt (ế -> ê´).
   Giữ nhấn bằng nền highlight + màu xanh, chữ vẫn đúng chính tả. */
.ld-h1 em {
  font-style: normal;
  color: var(--ld-blue);
  background: linear-gradient(transparent 60%, #dbeafe 60%);
  padding: 0 .06em;
}
/* Dark: dải highlight #dbeafe sáng sẽ nuốt chữ xanh sáng -> đổi sang navy đậm */
[data-theme="dark"] .landing .ld-h1 em {
  background: linear-gradient(transparent 60%, #1e3a8a 60%);
}
.ld-h2 {
  font-family: "Playfair Display", Cambria, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 14px 0 0;
}
.ld-center-sub {
  max-width: 560px; margin: 14px auto 0;
  color: var(--ld-muted); font-size: 15.5px;
}

/* ===================== BUTTONS ===================== */
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; padding: 13px 26px;
  font-family: inherit; font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: background .2s, transform .12s, box-shadow .2s;
  white-space: nowrap;
  text-decoration: none;   /* .ld-btn dùng cho cả <button> lẫn <a> */
}
.ld-btn.blue  { background: var(--ld-blue-fill);  color: #fff; }
.ld-btn.blue:hover  { background: var(--ld-blue-fill-h);  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.ld-btn.green { background: var(--ld-green); color: #fff; }
.ld-btn.green:hover { background: var(--ld-green-d); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,185,129,.26); }
.ld-btn.ghost { background: var(--ld-surface-2); color: var(--ld-text); border: 1px solid var(--ld-border); }
.ld-btn.full  { width: 100%; margin-top: 14px; }
.ld-btn.sm    { padding: 9px 18px; font-size: 13px; border-radius: 10px; }
.ld-btn.xs    { padding: 8px 18px; font-size: 12.5px; border-radius: 9px; }

/* ===================== NAV ===================== */
.ld-navwrap { position: sticky; top: 0; z-index: 50; padding-top: 16px; }
.ld-nav {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 14px; padding: 12px 20px;
  box-shadow: 0 4px 20px rgba(15,23,42,.05);
}
.ld-brand { display: flex; align-items: center; gap: 9px; }
.ld-brand-mark { display: inline-flex; }
.ld-brand-txt { font-weight: 800; font-size: 18px; color: var(--ld-text); }
.ld-brand-txt span { color: var(--ld-muted); }
.ld-nav-links { display: flex; gap: 22px; margin-left: 12px; }
.ld-nav-links a {
  font-size: 13.5px; font-weight: 500; color: rgba(15,23,42,.72);
  transition: color .15s;
}
.ld-nav-links a:hover { color: var(--ld-text); }
.ld-nav > .ld-btn { margin-left: auto; }

/* ===================== HERO ===================== */
.ld-hero { padding: 40px 0 72px; }
.ld-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center; min-height: 78vh;
}
.ld-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ld-blue-soft); color: var(--ld-blue);
  border-radius: 999px; padding: 7px 14px;
  font-size: 12.5px; font-weight: 600;
}
.ld-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ld-blue); }
.ld-sub { margin-top: 20px; max-width: 520px; font-size: 15.5px; color: var(--ld-text-2); }
/* Chữ đậm trong đoạn mở đầu phải sáng hơn nền chữ mờ, không thì đậm mà không nổi. */
.ld-sub b { color: var(--ld-text); font-weight: 700; }
/* Nut duy nhat trong hero — thu MIEN PHI la phong thi, khong phai de. */
.ld-hero-cta { margin-top: 22px; }
.ld-hero-foot { margin-top: 14px; font-size: 12.5px; color: var(--ld-muted); }
.ld-hero-foot .tick { color: var(--ld-green); font-weight: 700; }

.ld-cards { display: flex; gap: 16px; margin-top: 28px; }
.ld-card {
  flex: 1; background: var(--ld-surface); border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius); padding: 18px; box-shadow: var(--ld-shadow);
}
.ld-card-top { display: flex; align-items: center; justify-content: space-between; }
.ld-lvl { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.ld-lvl.blue { color: var(--ld-blue); }
.ld-lvl.green { color: var(--ld-green); }
.ld-lvl.amber { color: var(--ld-amber); }
.ld-card-meta { font-size: 11px; color: var(--ld-muted); font-family: ui-monospace, "SFMono-Regular", monospace; }
.ld-card-mid { margin-top: 10px; font-size: 13px; color: var(--ld-muted); }
.ld-card-mid b { font-size: 15px; color: var(--ld-text); font-weight: 700; }

/* ---- Mockup phòng thi ---- */
.ld-hero-right { display: flex; justify-content: center; }
.ld-mock {
  width: 100%; max-width: 460px;
  background: var(--ld-surface); border: 1px solid var(--ld-border);
  border-radius: 16px; overflow: hidden; box-shadow: var(--ld-shadow-lg);
  position: relative;   /* mốc toạ độ cho con trỏ giả của demo tự chạy */
}
.ld-mock-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--ld-border);
}
.ld-dots { display: inline-flex; gap: 6px; }
.ld-dots i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ld-mock-status { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--ld-muted); }
.ld-mock-sess { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--ld-blue); letter-spacing: .5px; }
.ld-mock-prog { height: 3px; background: var(--ld-border); }
.ld-mock-prog span { display: block; width: 46%; height: 100%; background: var(--ld-blue); }
.ld-mock-body { padding: 20px 22px; }
.ld-mock-topic { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--ld-muted); }
.ld-mock-q { margin: 10px 0 4px; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ld-text); }
.ld-opt {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--ld-border); border-radius: 12px;
  padding: 12px 14px; margin-top: 10px; font-size: 13.5px; color: var(--ld-text-2);
  /* Là <button> (bấm + bàn phím được) nên phải khử style mặc định của nút */
  width: 100%; background: none; font-family: inherit; line-height: inherit;
  text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.ld-opt:hover { border-color: #c7d7f5; background: var(--ld-blue-soft); }
[data-theme="dark"] .landing .ld-opt:hover { border-color: #33476b; }
.ld-opt:focus-visible { outline: 2px solid var(--ld-blue); outline-offset: 2px; }
.ld-opt-k {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--ld-border); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--ld-muted);
}
.ld-opt.sel {
  border-color: var(--ld-blue); background: var(--ld-blue-soft);
  color: var(--ld-text); font-weight: 600;
}
.ld-opt.sel .ld-opt-k { background: var(--ld-blue-fill); border-color: var(--ld-blue-fill); color: #fff; }

/* ==================== DEMO TỰ CHẠY Ở HERO ====================
   Mockup phòng thi tự diễn ~14 giây khi cuộn tới: chọn đáp án -> tua nhanh ->
   màn kết quả -> lộ ra môn yếu (Fixed Income — đúng môn của câu hỏi mở đầu).
   Khách chạm vào là kịch bản dừng hẳn, mockup thành của khách. Điều khiển ở
   heroDemo() trong landing.js.
   Xanh/vàng/đỏ chấm điểm chưa có trong bảng token nên khai báo cục bộ. Tách
   màu THANH (đồ hoạ, cần ≥3:1) khỏi màu CHỮ (cần ≥4.5:1) để không tụt chuẩn
   tương phản như phần còn lại của trang. */
.ld-mock {
  --sb-ok: #10b981;    --sb-mid: #f59e0b;    --sb-bad: #ef4444;
  --sb-ok-t: #047857;  --sb-mid-t: #b45309;  --sb-bad-t: #b91c1c;
}
[data-theme="dark"] .landing .ld-mock {
  --sb-ok-t: #34d399;  --sb-mid-t: #fbbf24;  --sb-bad-t: #f87171;
}

/* ---- Con trỏ giả: thuần trang trí, đã aria-hidden ở HTML ---- */
.ld-cursor {
  position: absolute; left: 0; top: 0; z-index: 5;
  pointer-events: none; opacity: 0;
  transform: translate(-60px, -60px);
  transition: opacity .28s ease, transform 1.05s cubic-bezier(.34,.03,.18,1);
}
.ld-cursor.show { opacity: 1; }
.ld-cursor svg { display: block; fill: var(--ld-text); stroke: var(--ld-surface); stroke-width: 1.6; }
/* Vòng loé lúc bấm */
.ld-cursor::after {
  content: ""; position: absolute; left: -9px; top: -9px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--ld-blue); opacity: 0; transform: scale(.3);
}
.ld-cursor.tap::after { animation: ld-tap .45s ease-out; }
@keyframes ld-tap {
  from { opacity: .85; transform: scale(.3); }
  to   { opacity: 0;   transform: scale(1.15); }
}

/* Trạng thái do kịch bản gán — trỏ tới thì sáng như đang rê chuột, bấm thì lún */
.ld-opt.hov { border-color: #c7d7f5; background: var(--ld-blue-soft); }
[data-theme="dark"] .landing .ld-opt.hov { border-color: #33476b; }
.ld-mock .ld-btn.press { transform: translateY(1px); filter: brightness(.94); }

/* ---- Nhịp 2: tua nhanh. Làm mờ phần thân, giữ nét thanh trạng thái để mắt
       bám vào số câu + đồng hồ đang chạy vun vút. ---- */
.ld-mock.is-rush #ldSceneExam,
.ld-mock.is-rush .ld-mock-foot {
  filter: blur(2.2px); opacity: .5; transition: filter .25s, opacity .25s;
}
.ld-mock.is-rush .ld-mock-status { color: var(--ld-blue); font-weight: 700; }

/* ---- Nhịp 3-4: màn kết quả ---- */
.ld-mock-res { padding: 20px 22px 22px; }
.ld-res-head { display: flex; align-items: center; gap: 16px; }
.ld-res-donut { flex: none; transform: rotate(-90deg); }
.ld-donut-bg, .ld-donut-fg { fill: none; stroke-width: 4.2; }
.ld-donut-bg { stroke: var(--ld-border); }
.ld-donut-fg {
  stroke: var(--sb-ok); stroke-linecap: round;
  /* chu vi 2πr ≈ 100 nên dasharray đọc thẳng ra phần trăm */
  stroke-dasharray: 0 100; transition: stroke-dasharray .95s cubic-bezier(.2,.7,.3,1);
}
.ld-res-score {
  font-size: 34px; font-weight: 800; line-height: 1.05; color: var(--ld-text);
  font-variant-numeric: tabular-nums;
}
.ld-res-sub { margin-top: 4px; font-size: 11.5px; color: var(--ld-muted); }

.ld-res-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.ld-rs {
  text-align: center; padding: 9px 4px; border-radius: 10px;
  background: var(--ld-bg); border: 1px solid var(--ld-border);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.ld-res-stats.in .ld-rs { opacity: 1; transform: none; }
.ld-res-stats.in .ld-rs:nth-child(2) { transition-delay: .1s; }
.ld-res-stats.in .ld-rs:nth-child(3) { transition-delay: .2s; }
.ld-res-stats.in .ld-rs:nth-child(4) { transition-delay: .3s; }
.ld-rs b { display: block; font-size: 16px; font-weight: 800; color: var(--ld-text); }
.ld-rs i { display: block; margin-top: 2px; font-size: 10px; font-style: normal; color: var(--ld-muted); }
.ld-rs.ok b  { color: var(--sb-ok-t); }
.ld-rs.bad b { color: var(--sb-bad-t); }

.ld-res-bars { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.ld-sb { display: flex; align-items: center; gap: 10px; transition: opacity .35s; }
.ld-sb-n { flex: none; width: 96px; font-size: 11.5px; color: var(--ld-text-2); }
.ld-sb-t { flex: 1; height: 7px; border-radius: 4px; background: var(--ld-border); overflow: hidden; }
.ld-sb-t i {
  display: block; height: 100%; width: 0; border-radius: 4px;
  transition: width .55s cubic-bezier(.2,.7,.3,1);
}
.ld-res-bars.in .ld-sb-t i { width: var(--w); }
.ld-res-bars.in .ld-sb:nth-child(2) i { transition-delay: .12s; }
.ld-res-bars.in .ld-sb:nth-child(3) i { transition-delay: .24s; }
.ld-res-bars.in .ld-sb:nth-child(4) i { transition-delay: .36s; }
.ld-res-bars.in .ld-sb:nth-child(5) i { transition-delay: .48s; }
.ld-sb-t i.ok { background: var(--sb-ok); }
.ld-sb-t i.mid { background: var(--sb-mid); }
.ld-sb-t i.bad { background: var(--sb-bad); }
.ld-sb-p {
  flex: none; width: 34px; text-align: right;
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ld-sb-p.ok { color: var(--sb-ok-t); }
.ld-sb-p.mid { color: var(--sb-mid-t); }
.ld-sb-p.bad { color: var(--sb-bad-t); }

/* Nhịp 4: mờ các môn khá đi, chỉ chừa môn yếu sáng + nháy viền một nhịp */
.ld-mock-res.focus .ld-sb:not(.weak) { opacity: .32; }
.ld-mock-res.focus .ld-sb.weak .ld-sb-t { animation: ld-weak 1.1s ease-out; }
@keyframes ld-weak {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
  100% { box-shadow: 0 0 0 7px rgba(239,68,68,0); }
}

.ld-res-note {
  margin: 14px 0 0; font-size: 12.5px; color: var(--ld-text-2);
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.ld-res-note.in { opacity: 1; transform: none; }
.ld-res-note b { color: var(--sb-bad-t); }
.ld-res-cta {
  margin-top: 14px; width: 100%;
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.ld-res-cta.in { opacity: 1; transform: none; }

/* Màn cảm ứng không có con trỏ — để con trỏ giả vào là sai ẩn dụ. Bỏ hẳn,
   các bước chọn/bấm vẫn diễn ra nên kịch bản không đứt. */
@media (pointer: coarse) {
  .ld-cursor { display: none; }
}
@media (max-width: 480px) {
  /* Rút còn 3 môn cho đỡ chật; môn yếu vẫn nằm cuối nên thông điệp không đổi */
  .ld-res-bars .ld-sb:nth-child(2), .ld-res-bars .ld-sb:nth-child(3) { display: none; }
  .ld-sb-n { width: 84px; }
  .ld-res-score { font-size: 30px; }
  .ld-rs i { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-cursor, .ld-donut-fg, .ld-rs, .ld-sb-t i, .ld-res-note, .ld-res-cta { transition: none; }
  .ld-cursor.tap::after, .ld-mock-res.focus .ld-sb.weak .ld-sb-t { animation: none; }
}
.ld-mock-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-top: 1px solid var(--ld-border);
}
.ld-mock-prev { font-size: 13px; color: var(--ld-muted); }

/* ===================== REALITY CHECK ===================== */
.ld-reality { background: var(--ld-surface); padding: 88px 0; }
.ld-eyebrow {
  display: inline-block;
  background: var(--ld-blue-soft); color: var(--ld-blue);
  border-radius: 999px; padding: 6px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
}
.ld-seg {
  display: inline-flex; gap: 3px; margin: 18px auto 0;
  background: #f1f5f9; border-radius: 10px; padding: 3px;
}
[data-theme="dark"] .landing .ld-seg { background: var(--ld-bg); }
.ld-seg-btn {
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ld-muted);
  padding: 7px 18px; border-radius: 8px; transition: all .15s;
}
.ld-seg-btn.active { background: var(--ld-surface-2); color: var(--ld-text); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.ld-seg.small .ld-seg-btn { padding: 5px 12px; font-size: 12px; }

.ld-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.ld-tile {
  background: var(--ld-surface-2); border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius); padding: 20px 18px; text-align: center;
}
.ld-tile.active { background: var(--ld-blue-soft); border-color: #bfdbfe; }
[data-theme="dark"] .landing .ld-tile.active { border-color: #2f4a7d; }
.ld-tile .num { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.ld-tile.active .num { color: var(--ld-blue); }
.ld-tile .lab { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ld-text-2); }
.ld-tile .lab span { display: block; font-size: 11.5px; font-weight: 500; color: var(--ld-muted); }
.ld-note { text-align: center; margin-top: 12px; font-size: 11.5px; color: var(--ld-muted); }

.ld-chart-card {
  margin-top: 22px; background: var(--ld-surface-2); border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius); padding: 22px; box-shadow: var(--ld-shadow);
}
.ld-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.ld-chart-title { font-size: 15px; font-weight: 700; }
.ld-chart-sub { font-size: 12.5px; color: var(--ld-muted); margin-top: 2px; }
.ld-chart { width: 100%; position: relative; }   /* mốc cho tooltip absolute */
/* touch-action: pan-y -> trên mobile vẫn cuộn dọc được khi chạm vào chart */
.ld-chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
/* Tooltip dùng token surface/border thay vì nền tối cố định: --ld-text ở theme
   tối là màu SÁNG nên nền tối + chữ trắng sẽ mất chữ. */
.ld-tip {
  position: absolute; z-index: 2; pointer-events: none;
  transform: translate(-50%, -100%);
  background: var(--ld-surface); color: var(--ld-text);
  border: 1px solid var(--ld-border); border-radius: 9px;
  padding: 5px 9px; white-space: nowrap;
  font-size: 13px; font-weight: 700; line-height: 1.3;
  box-shadow: 0 4px 14px rgba(15,23,42,.16);
  opacity: 0; transition: opacity .12s;
}
.ld-tip.show { opacity: 1; }
.ld-tip .yr {
  display: block; font-family: ui-monospace, monospace;
  font-size: 10.5px; font-weight: 500; color: var(--ld-muted);
}

/* ===================== WINDOWS TABLE ===================== */
.ld-windows { padding: 72px 0; }
.ld-table-card {
  background: var(--ld-surface); border: 1px solid var(--ld-border);
  border-radius: var(--ld-radius); padding: 20px 22px; box-shadow: var(--ld-shadow);
}
.ld-table-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.ld-table-scroll { overflow-x: auto; }
.ld-table { width: 100%; border-collapse: collapse; }
.ld-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--ld-muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--ld-border);
}
.ld-table td { font-size: 14px; padding: 13px 10px; border-bottom: 1px solid var(--ld-border); }
.ld-table tr:last-child td { border-bottom: 0; }
.ld-fail {
  display: inline-block; background: var(--ld-red-soft); color: var(--ld-red);
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.ld-table-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; flex-wrap: wrap;
}
.ld-src { font-size: 12.5px; color: var(--ld-muted); text-decoration: underline; }
.ld-src:hover { color: var(--ld-text); }

/* ===================== FAQ ===================== */
.ld-faq { background: var(--ld-surface); padding: 88px 0; }
.ld-faq-grid { display: grid; grid-template-columns: 1fr 1fr 260px; gap: 20px; margin-top: 36px; }
.ld-faq-col { display: flex; flex-direction: column; gap: 12px; }
.ld-q {
  background: var(--ld-surface-2); border: 1px solid var(--ld-border); border-radius: 12px;
}
.ld-q summary {
  list-style: none; padding: 14px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ld-q summary::-webkit-details-marker { display: none; }
.ld-q summary::after {
  content: "▾"; color: var(--ld-muted); font-size: 12px; transition: transform .2s; flex: none;
}
.ld-q[open] summary::after { transform: rotate(180deg); }
.ld-q > div { padding: 0 16px 14px; font-size: 13.5px; color: var(--ld-text-2); }
.ld-faq-side { display: flex; flex-direction: column; gap: 10px; }
.ld-faq-side a { font-size: 13.5px; color: var(--ld-text-2); }
.ld-faq-side a:hover { color: var(--ld-blue); }
.ld-copy { margin-top: 8px; font-size: 12px; color: var(--ld-muted); }
.ld-disclaimer { margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: var(--ld-muted); }

/* ===================== CTA ===================== */
.ld-cta {
  background: linear-gradient(180deg, #f4f7fb 0%, #dbeafe 100%);
  padding: 72px 0; text-align: center;
}
[data-theme="dark"] .landing .ld-cta {
  background: linear-gradient(180deg, var(--ld-bg) 0%, #1b2742 100%);
}
.ld-cta-btns { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.ld-trust { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 12.5px; color: var(--ld-muted); }

/* ===================== FOOTER ===================== */
.ld-footer {
  padding: 20px; text-align: center; font-size: 12px; color: var(--ld-muted);
  border-top: 1px solid var(--ld-border);
}

/* ===================== FLOAT CONTACT (copy từ biz.css) ===================== */
.float-contact { position: fixed; right: 18px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.fc-items { display: flex; flex-direction: column; gap: 10px; }
.float-contact .fc-toggle { display: none; border: 0; padding: 0; cursor: pointer; background: var(--brand); }
.float-contact .fc-ico-close { display: none; }
.fc-btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-weight: 800; font-size: .78rem; box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: transform .12s; }
.fc-btn:hover { transform: scale(1.1); }
/* Phải nâng specificity: `.landing a { color: inherit }` ở trên (0,1,1) thắng
   `.fc-btn` (0,1,0), làm icon currentColor lấy màu chữ body thay vì trắng. */
.float-contact .fc-btn { color: #fff; }
.fc-fb { background: #0084ff; }
.fc-mail { background: #ea4335; }   /* đỏ Gmail */

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1000px) {
  .ld-hero-grid { grid-template-columns: 1fr; gap: 36px; min-height: 0; }
  .ld-hero-right { order: 2; }
  .ld-mock { max-width: 560px; }
  .ld-faq-grid { grid-template-columns: 1fr 1fr; }
  .ld-faq-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 720px) {
  .ld-reality, .ld-faq { padding: 56px 0; }
  .ld-hero { padding: 28px 0 56px; }
  .ld-tiles { grid-template-columns: repeat(2, 1fr); }
  .ld-faq-grid { grid-template-columns: 1fr; }
  .ld-cards { flex-direction: column; }
  .ld-chart-head { flex-direction: column; }
}
@media (max-width: 640px) {
  .ld-nav-links { display: none; }
  .ld-cta-btns { flex-direction: column; }
  .ld-cta-btns .ld-btn { width: 100%; }
}
@media (max-width: 420px) {
  .ld-tiles { grid-template-columns: 1fr; }
}
/* Nút liên hệ nổi CÓ CHUYỂN ĐỘNG: bob nhẹ lên xuống + vòng pulse lan toả */
.float-contact .fc-btn { position: relative; animation: fc-bob 2.6s ease-in-out infinite; }
.float-contact .fc-fb { animation-delay: 0s; }
.float-contact .fc-mail { animation-delay: .4s; }
.float-contact .fc-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; z-index: -1; animation: fc-pulse 2.2s ease-out infinite;
}
.float-contact .fc-mail::before { animation-delay: .4s; }
.float-contact .fc-btn:hover { transform: scale(1.12); animation-play-state: paused; }
@keyframes fc-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fc-pulse {
  0% { transform: scale(1); opacity: .5; }
  75% { transform: scale(2); opacity: 0; }
  100% { transform: scale(2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .float-contact .fc-btn, .float-contact .fc-btn::before { animation: none; }
}
/* MOBILE: gộp 2 nút liên hệ thành 1 — PHẢI copy y hệt khối trong biz.css.
   Trang chủ nạp cả biz.css RỒI landing.css, nên khối .float-contact ở đây luôn
   ghi đè biz.css (cùng specificity, nạp sau). Sửa biz.css mà quên file này thì
   right/bottom/gap và quầng pulse vẫn giữ giá trị desktop. Sửa 1 bên -> sửa cả 2. */
@media (max-width: 700px) {
  .float-contact { right: 12px; bottom: 14px; gap: 8px; }
  .float-contact .fc-btn { width: 44px; height: 44px; }
  .float-contact .fc-toggle { display: flex; }
  .float-contact .fc-items { display: none; }
  .float-contact.open .fc-items { display: flex; }
  .float-contact.open .fc-ico-chat { display: none; }
  .float-contact.open .fc-ico-close { display: block; }
  .float-contact .fc-btn::before { content: none; }
}

/* ============ Mục lục (TOC) + smooth scroll + Bảng giá ============ */
html { scroll-behavior: smooth; }
#top, #passrate, #weights, #pricing, #affiliate, #faq { scroll-margin-top: 84px; }

/* Mục lục: thẻ NỔI bên PHẢI, nằm trong lề phải cạnh nội dung (màn hình rộng) */
.ld-toc {
  position: fixed; top: 50%; left: calc(50% + 590px); z-index: 40;
  width: 174px; background: var(--ld-surface); border: 1px solid var(--ld-border);
  border-radius: 14px; box-shadow: var(--ld-shadow-lg); padding: 14px 12px;
  opacity: 0; visibility: hidden; transform: translateY(-50%) translateX(8px);
  transition: opacity .25s ease, transform .25s ease; display: none;
}
@media (min-width: 1520px) { .ld-toc { display: block; } }
.ld-toc.show { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.ld-toc-title {
  font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ld-muted); padding: 0 8px 10px; margin-bottom: 6px;
  border-bottom: 1px solid var(--ld-border);
}
.ld-toc a {
  display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ld-muted); text-decoration: none;
}
.ld-toc a .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ld-border);
  flex-shrink: 0; transition: background .2s, transform .2s;
}
.ld-toc a .lbl { white-space: nowrap; }
.ld-toc a:hover { color: var(--ld-text); background: var(--ld-blue-soft); }
.ld-toc a.active { color: var(--ld-blue); background: var(--ld-blue-soft); }
.ld-toc a.active .dot { background: var(--ld-blue); transform: scale(1.4); }

.ld-pricing { padding: 64px 0; background: var(--ld-surface); border-top: 1px solid var(--ld-border); }
.ld-price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; align-items: stretch;
}
.ld-price-card {
  position: relative; background: var(--ld-bg); border: 1px solid var(--ld-border);
  border-radius: 16px; padding: 28px 22px 24px; box-shadow: var(--ld-shadow);
  display: flex; flex-direction: column;
}
.ld-price-card.popular {
  background: var(--ld-surface); border-color: var(--ld-blue);
  box-shadow: 0 8px 30px rgba(37,99,235,.16); transform: translateY(-6px);
}
.ld-price-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--ld-blue-fill); color: #fff; font-size: 10.5px; font-weight: 800;
  letter-spacing: .05em; padding: 4px 13px; border-radius: 20px; white-space: nowrap;
}
.ld-price-tag.green { background: var(--ld-green); }
.ld-price-name { font-size: 15px; font-weight: 700; color: var(--ld-text-2); margin-bottom: 6px; }
.ld-price-amt { font-size: 34px; font-weight: 800; color: var(--ld-text); line-height: 1; }
.ld-price-amt span { font-size: 15px; font-weight: 600; color: var(--ld-muted); }
.ld-price-note { font-size: 12.5px; color: var(--ld-muted); margin: 8px 0 16px; }
.ld-price-feats {
  list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column;
  gap: 10px; flex: 1;
}
.ld-price-feats li {
  position: relative; padding-left: 26px; font-size: 13.5px; color: var(--ld-text-2); line-height: 1.4;
}
.ld-price-feats li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px;
  background: var(--ld-blue-soft); color: var(--ld-blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}
@media (max-width: 980px) {
  .ld-toc { display: none; }
  .ld-price-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .ld-price-card.popular { transform: none; }
}

/* ===================== 2026 SUBJECT WEIGHTS ===================== */
.ld-weights { padding: 72px 0; }
.ld-wcard { max-width: 860px; margin: 34px auto 0; }
.ld-wtable th.num, .ld-wtable td.num { text-align: right; white-space: nowrap; }
.ld-wtable td.num { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 13.5px; }
.ld-wtable tr.total td { font-weight: 800; border-top: 2px solid var(--ld-border); }
.ld-weights .ld-note { text-align: left; }

/* ===================== AFFILIATE ===================== */
.ld-affiliate { padding: 88px 0; }
.ld-aff-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px;
  margin-top: 36px; align-items: start;
}
.ld-aff-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ld-aff-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ld-aff-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ld-blue-soft); color: var(--ld-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; margin-top: 2px;
}
.ld-aff-steps b { font-size: 15px; }
.ld-aff-steps p { margin: 4px 0 0; font-size: 13.5px; color: var(--ld-text-2); line-height: 1.55; }
.ld-aff-steps a { color: var(--ld-blue); font-weight: 600; text-decoration: underline; }
.ld-aff-steps code {
  font-family: ui-monospace, "SFMono-Regular", monospace; font-size: 12px;
  background: var(--ld-blue-soft); color: var(--ld-blue);
  padding: 1px 6px; border-radius: 6px; white-space: nowrap;
}
.ld-aff-card {
  background: var(--ld-surface); border: 1.5px solid var(--ld-blue);
  border-radius: 16px; padding: 22px; box-shadow: 0 8px 30px rgba(37,99,235,.14);
}
.ld-aff-card-title { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.ld-aff-table td b { font-size: 15px; }
.ld-aff-pct {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--ld-blue-soft); color: var(--ld-blue);
  font-size: 11px; font-weight: 800;
}
.ld-aff-ex { margin: 12px 0 0; font-size: 13.5px; color: var(--ld-text-2); }
.ld-aff-fine { margin: 12px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ld-muted); }
@media (max-width: 900px) {
  .ld-aff-grid { grid-template-columns: 1fr; }
}
