@font-face {
  font-family: 'FD Sectra';
  src: url('../fonts/GT-Sectra-LCGV-Display-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FD Sectra';
  src: url('../fonts/GT-Sectra-LCGV-Display-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FD Sectra';
  src: url('../fonts/GT-Sectra-LCGV-Display-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FD Sectra';
  src: url('../fonts/GT-Sectra-LCGV-Display-Super.otf') format('opentype');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-Medium.woff2') format('woff2'),
       url('https://font.fedu.vn/fonts/FDAeonik-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FD Aeonik';
  src: url('../fonts/FDAeonik-Bold.woff2') format('woff2'),
       url('https://font.fedu.vn/fonts/FDAeonik-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --tint: #f6f8fb;
  --blue: #1a73e8;
  --blue-bg: #eaf2fe;
  --green: #047857;
  --green-bg: #e8f7f0;
  --amber: #b45309;
  --amber-bg: #fff6e5;
  --rose: #b42318;
  --rose-bg: #fdecec;
  --font-head: 'FD Sectra', 'GT Sectra', Georgia, 'Times New Roman', serif;
  --font: 'FD Aeonik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; font-size: 18px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-weight: 500; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

html:not(.is-admin) [data-admin] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
section { padding: 68px 0; }
section.alt { background: var(--tint); }

.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
h1, h2, h3, .stat b, .mentor-mini__name, .rm-title { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
h1, h2 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.45rem); }
.lead { font-size: 1.08rem; color: var(--ink-2); margin-top: 12px; max-width: 40em; }
.head { margin-bottom: 32px; }

/* ── Thanh điều hướng sticky ── */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.nav__brand { font-family: var(--font); font-weight: 700; font-size: 1.04rem; text-decoration: none; white-space: nowrap; letter-spacing: -0.01em; }
.nav__brand b { color: #d97706; }
.nav__links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a { padding: 7px 13px; border-radius: 99px; font-size: .88rem; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.nav__links a:hover, .nav__links a.on { background: var(--amber-bg); color: var(--amber); }

.mode-wrap { position: relative; flex-shrink: 0; }
.mode-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.mode-btn:hover { border-color: var(--amber); color: var(--amber); }
.mode-pop { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; box-shadow: 0 12px 28px rgba(15,23,42,.14); z-index: 1200; width: 184px; }
.mode-pop label { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.mode-pin-input { width: 100%; height: 36px; border: 1.5px solid #cbd5e1; border-radius: 8px; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; font-weight: 700; letter-spacing: .25em; outline: none; }
.mode-pin-input:focus { border-color: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,.16); }
@keyframes modeShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.mode-pop.shake { animation: modeShake .25s ease; }
.mode-pop.shake .mode-pin-input { border-color: #ef4444; background: #fef2f2; }

/* ── Nút bấm ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 99px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; font-size: .94rem; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.14); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--sm { padding: 8px 16px; font-size: .86rem; }
.btn--amber { background: #d97706; border-color: #d97706; color: #fff; }
.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--green { background: var(--green); border-color: var(--green); color: #fff; }

/* ── Hero & Stats ── */
.hero { padding: 54px 0 38px; background: linear-gradient(180deg, var(--tint), #fff); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); max-width: 18em; line-height: 1.18; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { font-size: 1.12rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.stat { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.52rem; line-height: 1.22; color: var(--ink); }
.stat span { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.42; }

.mentor-mini { margin-top: 22px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px 20px; display: flex; align-items: center; gap: 16px; max-width: 820px; box-shadow: 0 4px 14px rgba(15,23,42,.04); }
.mentor-mini__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #d97706; }
.mentor-mini__body { font-size: .94rem; color: var(--ink-2); line-height: 1.5; }
.mentor-mini__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.mentor-mini__name { font-family: var(--font-head); font-weight: 700; font-size: 1.14rem; color: var(--ink); }
.mentor-mini__role { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); background: var(--amber-bg); padding: 2px 9px; border-radius: 99px; }

/* ── Flow & Steps ── */
.flow { display: flex; align-items: stretch; }
.flow > .step { flex: 1; min-width: 0; }
.arr { flex: 0 0 30px; display: grid; place-items: center; color: var(--amber); font-weight: 700; font-size: 1.25rem; }
.step { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 20px 18px; display: flex; flex-direction: column; }
.step__no { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; margin-bottom: 10px; }
.step h3 { font-family: var(--font-head); font-size: 1.18rem; line-height: 1.28; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: .92rem; }
.split { margin-top: 12px; display: grid; gap: 8px; }
.role { padding: 10px 12px; border-radius: 12px; font-size: .88rem; line-height: 1.45; }
.role b { display: block; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 2px; }
.role--old { background: var(--rose-bg); color: #7a1c14; }
.role--old b { color: var(--rose); }
.role--new { background: var(--green-bg); color: #064e3b; }
.role--new b { color: var(--green); }
.summary-pill { margin-top: 22px; display: flex; gap: 12px; align-items: center; background: var(--amber-bg); border-radius: var(--r); padding: 16px 22px; color: #7c3a06; font-size: .98rem; }

/* ── Cards, 4 Buổi học & Danh mục ── */
.sessions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.session { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; }
.session__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.time { padding: 4px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; }
.day-tag { font-size: .8rem; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .05em; }
.session h3 { font-family: var(--font-head); font-size: 1.32rem; line-height: 1.26; }
.session__desc { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.take { margin-top: 14px; display: flex; gap: 10px; align-items: baseline; background: var(--green-bg); color: var(--green); border-radius: 14px; padding: 11px 15px; font-size: .92rem; }
.take b { white-space: nowrap; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
details.slide-box { margin-top: 14px; }
details.slide-box summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--ink-2); user-select: none; }
details.slide-box summary::-webkit-details-marker { display: none; }
details.slide-box summary:hover, details.slide-box[open] > summary { border-color: var(--amber); color: var(--amber); background: var(--amber-bg); }
details.slide-box summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
details.slide-box[open] > summary::after { content: "−"; }
.lessons { margin-top: 12px; display: grid; gap: 8px; list-style: none; counter-reset: l; }
.lessons li { counter-increment: l; position: relative; padding: 10px 13px 10px 34px; border-radius: 12px; background: var(--tint); font-size: .92rem; color: var(--ink-2); line-height: 1.48; }
.lessons li::before { content: counter(l) "."; position: absolute; left: 12px; top: 10px; font-weight: 700; color: var(--amber); font-size: .85rem; }

/* ── Strip 6 cảnh & Dual Cards ── */
.kb-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.kb-strip figure { cursor: zoom-in; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kb-strip img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.kb-strip figcaption { font-size: .75rem; padding: 6px 8px; color: var(--ink-2); font-weight: 700; text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h3 { font-family: var(--font-head); font-size: 1.24rem; margin-bottom: 8px; }
.card p, .card li { font-size: .94rem; color: var(--ink-2); }
.card ul, .card ol { padding-left: 18px; display: grid; gap: 6px; margin-top: 8px; }

/* ── Roadmap 5 bước & Logic Tabs ── */
.roadmap-5 { display: flex; align-items: stretch; margin-bottom: 28px; }
.roadmap-5 .rm-step { flex: 1; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 15px 13px; }
.roadmap-5 .rm-num { font-weight: 700; font-size: .74rem; letter-spacing: .06em; color: var(--amber); margin-bottom: 4px; }
.roadmap-5 .rm-title { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.25; color: var(--ink); }
.roadmap-5 .rm-sub { font-size: .84rem; color: var(--muted); margin-top: 4px; line-height: 1.38; }
.roadmap-5 .arr { flex: 0 0 24px; font-size: 1rem; }
.logic-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.logic-tab { padding: 10px 18px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.logic-tab:hover { border-color: var(--amber); color: var(--amber); }
.logic-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.logic-panel[hidden] { display: none; }
.qa-list { display: grid; gap: 12px; }
.qa-card { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 0 20px; }
.qa-card summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 700; font-size: 1rem; color: var(--ink); }
.qa-card summary::-webkit-details-marker { display: none; }
.q-badge { display: inline-block; font-weight: 700; font-size: .75rem; padding: 3px 9px; border-radius: 99px; background: var(--amber-bg); color: var(--amber); margin-right: 8px; }
.qa-card summary::after { content: "+"; font-size: 1.25rem; color: var(--amber); flex-shrink: 0; }
.qa-card[open] > summary::after { content: "−"; }
.qa-body { padding: 14px 0 20px; color: var(--ink-2); font-size: .94rem; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.qa-lead { font-weight: 700; color: var(--ink); font-size: .98rem; }
.compare-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-box { padding: 13px 15px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.cmp-box b.cmp-head { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.cmp-box--bad { background: var(--rose-bg); color: #7a1c14; }
.cmp-box--bad b.cmp-head { color: var(--rose); }
.cmp-box--good { background: var(--green-bg); color: #064e3b; }
.cmp-box--good b.cmp-head { color: var(--green); }
.cmp-box--neutral { background: var(--tint); color: var(--ink-2); border: 1px solid var(--line); }
.cmp-box--neutral b.cmp-head { color: var(--blue); }

/* ── Bảng dữ liệu, Sơ đồ ASCII & Hộp quote ── */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mini-table th, .mini-table td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini-table th { background: #f1f5f9; font-weight: 700; color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.mini-table tr:last-child td { border-bottom: 0; }
.ascii-box { background: #0f172a; color: #f8fafc; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.48; padding: 16px 18px; border-radius: 14px; overflow-x: auto; white-space: pre; }
.quote-box { border-left: 4px solid #d97706; background: #fff; border-radius: 0 14px 14px 0; padding: 16px 20px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .96rem; color: var(--ink); }

/* ── Script Builder & Teleprompter ── */
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.field-box label { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.field-box input { width: 100%; padding: 9px 11px; border: 1.5px solid #f59e0b; background: #fffbeb; border-radius: 10px; font-weight: 700; color: #92400e; outline: none; font-size: .92rem; }
.field-box input:focus { border-color: #b45309; background: #fff; }
.prompt-overlay { position: fixed; inset: 0; background: #0b0f19; color: #f8fafc; z-index: 9999; display: none; flex-direction: column; padding: 20px; }
.prompt-overlay.open { display: flex; }
.prompt-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #334155; flex-wrap: wrap; }
.prompt-body { flex: 1; overflow-y: auto; max-width: 820px; width: 100%; margin: 20px auto; display: grid; gap: 16px; align-content: start; }
.prompt-line { background: #161e2e; border-left: 4px solid #f59e0b; border-radius: 12px; padding: 16px 20px; }
.prompt-line small { display: block; color: #fbbf24; font-size: .78rem; font-weight: 700; margin-bottom: 4px; }
.prompt-line p { font-size: var(--tp-size, 28px); line-height: 1.38; font-weight: 700; color: #fff; }

/* ── Lightbox, FAQ & Footer ── */
.lightbox { position: fixed; inset: 0; background: rgba(15,23,42,.88); z-index: 9000; display: none; place-items: center; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 82vh; border-radius: 14px; }
.lightbox p { color: #fff; text-align: center; margin-top: 10px; font-size: .92rem; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 15px; color: var(--ink-2); font-size: .94rem; }
footer { border-top: 1px solid var(--line); padding: 28px 0; background: #fff; font-size: .88rem; color: var(--muted); }
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--tint); font-size: .92rem; }
.check-item input { margin-top: 4px; width: 18px; height: 18px; accent-color: #047857; flex-shrink: 0; }

@media (max-width: 900px) {
  .stats, .grid-3, .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sessions-grid, .grid-2, .compare-2 { grid-template-columns: 1fr; }
  .flow, .roadmap-5 { flex-direction: column; gap: 10px; }
  .arr { transform: rotate(90deg); flex: 0 0 22px; }
  .kb-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  html { font-size: 16px; }
  .nav__brand span { display: none; }
  .stats, .field-grid { grid-template-columns: 1fr; }
  .kb-strip { grid-template-columns: repeat(2, 1fr); }
}
@media print {
  .nav, .hero__cta, .mode-wrap, footer button { display: none !important; }
  section { padding: 24px 0; }
}
