/* Trang giới thiệu (index.html) */
.l-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* thanh trên */
.l-nav { position: sticky; top: 0; z-index: 40; transition: background .25s, box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
.l-nav.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-color: var(--line); box-shadow: 0 6px 20px rgba(60, 40, 10, .05); }
.l-nav .l-wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.l-links { display: flex; gap: 4px; margin-left: 12px; }
.l-links a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none !important; }
.l-links a:hover { background: var(--bg-2); }
.l-nav .spacer { flex: 1; }

/* hero */
.l-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding: 34px 0 30px; }
.l-hero h1 { font-size: 52px; line-height: 1.1; letter-spacing: -.03em; margin-top: 14px; }
.l-hero h1 .hl { background: linear-gradient(transparent 62%, var(--sun-soft) 62%); padding: 0 4px; }
.l-hero .lead { font-size: 17.5px; color: var(--ink-2); margin-top: 16px; max-width: 540px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.cta-row .btn { height: 52px; padding: 0 24px; font-size: 16px; }
.trust { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-2);
  padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); }

/* điện thoại minh hoạ */
.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.stage::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun-soft), var(--primary-soft) 55%, transparent 72%); filter: blur(4px); }
.phone { position: relative; width: 312px; height: 570px; border-radius: 44px; background: var(--surface); border: 11px solid #2A2B3D;
  box-shadow: 0 30px 70px rgba(40, 25, 5, .25); overflow: hidden; padding: 34px 14px 14px; transform: rotate(-2deg); }
@media (prefers-color-scheme: dark) { .phone { border-color: #090A0E; } }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; border-radius: 999px; background: #2A2B3D; }
.ph-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 12px; }
.ph-class { font-weight: 800; font-size: 17px; }
.ph-sub { font-size: 12px; color: var(--muted); }
.ph-timer { font-weight: 800; font-size: 13px; color: var(--primary-2); background: var(--primary-soft); border-radius: 999px; padding: 4px 10px; min-width: 52px; text-align: center; }
.ph-hint { font-size: 11.5px; background: var(--mint-soft); color: var(--ink-2); border-radius: 10px; padding: 7px 10px; margin-bottom: 8px; }
.ph-row { display: flex; align-items: center; gap: 8px; padding: 8px 5px; border-radius: 14px; transition: background .35s ease; }
.ph-row.absent { background: var(--coral-soft); }
.ph-row .avatar { width: 32px; height: 32px; font-size: 13px; }
.ph-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-btns { display: flex; gap: 4px; flex: none; }
.ph-btns span { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); transition: all .25s ease; }
.ph-btns span.on.p { background: var(--mint); border-color: var(--mint); color: #fff; }
.ph-btns span.on.a { background: var(--coral); border-color: var(--coral); color: #fff; animation: pop-in .3s ease; }
.ph-save { margin-top: 12px; width: 100%; height: 44px; border-radius: 999px; background: var(--primary); color: #fff; border: 0; font: inherit; font-weight: 700; transition: transform .15s ease; }
.ph-save.press { transform: scale(.93); }
.ph-toast { position: absolute; left: 12px; right: 12px; top: 34px; z-index: 3; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 11px 13px; font-weight: 600; font-size: 13px; box-shadow: 0 12px 28px rgba(0, 0, 0, .28); opacity: 0; transform: translateY(-16px) scale(.96); transition: all .35s cubic-bezier(.2, .8, .2, 1); }
.ph-toast.show { opacity: 1; transform: none; }
.ph-toast svg { width: 26px; height: 26px; flex: none; }
.ph-toast circle { fill: var(--mint); }
.ph-toast path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.ph-toast.show path { animation: draw .4s .15s ease forwards; }
.ph-finger { position: absolute; left: 0; top: 0; font-size: 30px; z-index: 4; pointer-events: none; transform-origin: 13px 3px; transition: translate .75s cubic-bezier(.45, .05, .2, 1), opacity .3s; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); opacity: 0; }
.ph-finger.tap { animation: tap .32s ease; }
@keyframes tap { 50% { scale: .78; } }
.float-badge { position: absolute; z-index: 2; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: 13.5px; animation: float-y 4.5s ease-in-out infinite; white-space: nowrap; }
.fb1 { top: 14px; left: -6px; --r: -3deg; }
.fb2 { top: 250px; right: -14px; --r: 3deg; animation-delay: -1.5s; }
.fb3 { bottom: 70px; left: 6px; --r: -2deg; animation-delay: -3s; }

/* khối chung của các phần */
.l-sec { padding-top: 72px; padding-bottom: 8px; }
.l-head { text-align: center; max-width: 680px; margin: 0 auto 34px; }
.l-head h2 { font-size: 38px; line-height: 1.15; letter-spacing: -.025em; margin-top: 14px; }
.l-head p { color: var(--ink-2); margin-top: 12px; font-size: 16.5px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.shown { opacity: 1; transform: none; }

/* ô minh hoạ dùng chung */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; font-size: 13px; }
.mock-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock-dots i:nth-child(1) { background: #FF6B6B; } .mock-dots i:nth-child(2) { background: #FFC53D; } .mock-dots i:nth-child(3) { background: #3DD6A5; }
.m-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 10px; }
.m-row .avatar { width: 26px; height: 26px; font-size: 11px; }
.m-row .nm { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1.5px solid var(--line-2); color: var(--muted); background: var(--surface); white-space: nowrap; }
.pill.ok { background: var(--mint); border-color: var(--mint); color: #fff; }
.pill.bad { background: var(--coral); border-color: var(--coral); color: #fff; }
.pill.info { background: var(--sky); border-color: var(--sky); color: #fff; }
.pill.soft { background: var(--bg-2); border-color: transparent; color: var(--ink-2); }
.big-money { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.qr-fake { width: 78px; height: 78px; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--line); flex: none;
  background-image: linear-gradient(45deg, #222 25%, transparent 25%, transparent 75%, #222 75%), linear-gradient(45deg, #222 25%, transparent 25%, transparent 75%, #222 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px; background-clip: content-box; position: relative; }
.qr-fake::before, .qr-fake::after { content: ""; position: absolute; width: 22px; height: 22px; border: 5px solid #222; background: #fff; border-radius: 4px; }
.qr-fake::before { top: 4px; left: 4px; } .qr-fake::after { bottom: 4px; right: 4px; }

/* clip giới thiệu 1 phút (16:9) */
body.landing .card.vid-card { position: relative; max-width: 1040px; margin: 0 auto; padding: 10px; }
.vid-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #0b1a1f; }
.vid-sound { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: 14.5px;
  color: #fff; background: rgba(11, 26, 31, .78); backdrop-filter: blur(6px); cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); animation: vs-pulse 1.8s ease-in-out infinite; }
.vid-sound:hover { background: rgba(15, 163, 114, .92); }
@keyframes vs-pulse { 50% { transform: translateX(-50%) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .vid-sound { animation: none; } }

/* dải số liệu */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-b { text-align: center; padding: 22px 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat-b .n { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--c); line-height: 1.1; }
.stat-b .t { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* 3 thẻ có hình minh hoạ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.trio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow), 0 18px 40px rgba(70, 45, 10, .12); }
.trio-art { height: 200px; display: grid; place-items: center; background: var(--c-soft); position: relative; overflow: hidden; padding: 18px; }
.trio-art .mock { width: 100%; max-width: 260px; transform: rotate(-1.5deg); transition: transform .35s ease; }
.trio-card:hover .trio-art .mock { transform: rotate(0) scale(1.03); }
.trio-body { padding: 18px 20px 22px; }
.trio-body .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--c); margin-bottom: 12px; }

/* trục các bước */
.tl { position: relative; max-width: 980px; margin: 0 auto; }
.tl-line { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 4px; margin-left: -2px; border-radius: 4px; background: var(--line); }
.tl-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 4px; background: linear-gradient(var(--primary), var(--sun)); }
.tl-step { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; padding: 26px 0; }
.tl-node { justify-self: center; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--surface); border: 3px solid var(--line-2); color: var(--muted); z-index: 1; transition: all .35s ease; }
.tl-step.lit .tl-node { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 8px var(--primary-soft); }
.tl-text .k { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--primary-2); text-transform: uppercase; }
.tl-text h3 { font-size: 23px; margin: 6px 0 8px; }
.tl-text p { color: var(--ink-2); }
.tl-step:nth-child(odd of .tl-step) .tl-text { text-align: right; }
.tl-step .tl-art .mock { max-width: 340px; }
.tl-step.right .tl-text { order: 3; text-align: left; }
.tl-step.right .tl-node { order: 2; }
.tl-step.right .tl-art { order: 1; justify-self: end; }

/* 3 màn hình */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.screen h3 { margin: 16px 0 6px; }
.screen p { color: var(--ink-2); font-size: 14.5px; }
.screen .mock { min-height: 270px; transition: transform .3s ease; }
.screen:hover .mock { transform: translateY(-4px); }
.mini-grid { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 11.5px; }
.mini-grid th { color: var(--muted); font-weight: 700; text-align: center; }
.mini-grid td { text-align: center; padding: 5px 2px; border-radius: 7px; font-weight: 700; }
.mini-grid td.n { text-align: left; font-weight: 600; color: var(--ink); }
.mini-grid td.p { background: var(--mint-soft); color: var(--mint); }
.mini-grid td.a { background: var(--coral-soft); color: var(--coral); }
.mini-grid td.e { background: var(--sky-soft); color: var(--sky); }
.bubble { background: var(--bg-2); border-radius: 16px 16px 16px 4px; padding: 10px 12px; line-height: 1.5; font-size: 12.5px; white-space: pre-line; }

/* dải AI nền tối */
.ai-band { position: relative; margin-top: 80px; padding: 80px 0; background: #1E1F30; color: #F2F1F6; overflow: hidden; }
.ai-band::before, .ai-band::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(70px); opacity: .45; }
.ai-band::before { background: #7B5CF0; top: -200px; left: -120px; }
.ai-band::after { background: #FF7A45; bottom: -260px; right: -140px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.ai-band h2 { font-size: 38px; line-height: 1.15; letter-spacing: -.025em; margin-top: 14px; }
.ai-band .eyebrow { background: rgba(255, 255, 255, .1); color: #FFB592; }
.ai-band p { color: #C9C8D6; margin-top: 12px; font-size: 16px; }
.ai-points { display: grid; gap: 10px; margin-top: 20px; }
.ai-points div { display: flex; gap: 10px; align-items: flex-start; color: #E6E5EE; }
.ai-points div::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #3DD6A5; color: #10241D; font-size: 12px; font-weight: 800; margin-top: 1px; }
.ai-mock { background: #27283C; border: 1px solid #3A3B52; border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); color: #F2F1F6; }
.ai-mock .form { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ai-mock .form span { padding: 5px 10px; border-radius: 999px; background: #34354D; font-size: 12px; font-weight: 600; color: #DAD9E6; }
.ai-q { padding: 10px 12px; border-radius: 14px; background: #30314A; margin-top: 8px; font-size: 13px; opacity: 0; transform: translateY(8px); transition: all .45s ease; }
.ai-q.show { opacity: 1; transform: none; }
.ai-q .ch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; color: #C9C8D6; font-size: 12px; }
.ai-q .ch .r { color: #3DD6A5; font-weight: 700; }
.ai-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #C9C8D6; margin-top: 12px; }
.ai-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #FFC53D; animation: pulse-ring 1.4s infinite; }
.ai-status.done .dot { background: #3DD6A5; animation: none; }

/* tất cả chức năng, đánh số */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat-n { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.feat-n:hover { transform: translateY(-4px); }
.feat-n .num { font-size: 46px; font-weight: 800; letter-spacing: -.04em; color: var(--c-soft); line-height: 1; position: absolute; right: 16px; top: 12px; transition: color .3s; }
.feat-n:hover .num { color: color-mix(in srgb, var(--c) 35%, transparent); }
.feat-n .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; background: var(--c-soft); margin-bottom: 14px; }
.feat-n:hover .ic { animation: wiggle .5s ease; }
.feat-n h3 { margin-bottom: 6px; }
.feat-n p { font-size: 14.5px; color: var(--ink-2); }

/* phía phụ huynh */
.parent-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
.parent-list { display: grid; gap: 16px; }
.parent-list .it { display: flex; gap: 14px; align-items: flex-start; }
.parent-list .it .ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: var(--c-soft); }
.parent-list h3 { margin-bottom: 4px; }
.parent-list p { color: var(--ink-2); font-size: 14.5px; }
.parent-art { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.parent-art .mock:nth-child(2) { margin-top: 40px; }

/* câu hỏi */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: 18px; transition: transform .25s ease, background .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--primary-soft); color: var(--primary-2); }
.faq .ans { padding: 0 22px 18px; color: var(--ink-2); animation: rise .3s ease; }

/* lời mời cuối + đăng nhập */
.cta-band { border-radius: 30px; padding: 46px 40px; background: linear-gradient(120deg, var(--primary), #FF9E5E 55%, var(--sun)); color: #fff; display: grid; grid-template-columns: 1fr 420px; gap: 30px; align-items: center; box-shadow: 0 24px 60px color-mix(in srgb, var(--primary) 35%, transparent); position: relative; overflow: hidden; }
.cta-band h2 { font-size: 36px; line-height: 1.15; letter-spacing: -.02em; }
.cta-band p { margin-top: 10px; font-size: 16.5px; opacity: .95; }
.cta-band .auth-card { color: var(--ink); }
.cta-band::after { content: "📒"; position: absolute; font-size: 200px; opacity: .1; left: -30px; bottom: -70px; transform: rotate(-12deg); }

.l-foot { margin-top: 70px; padding: 40px 20px 30px; border-top: 1px solid var(--line); }
.l-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; }
.l-foot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.l-foot a { display: block; color: var(--ink-2); padding: 3px 0; font-size: 14.5px; }
.l-foot .copy { margin-top: 24px; font-size: 13px; color: var(--muted); }

@media (max-width: 980px) {
  .l-links { display: none; }
  .l-hero, .ai-grid, .parent-grid, .cta-band { grid-template-columns: 1fr; }
  .l-hero h1 { font-size: 36px; }
  .stage { min-height: 520px; transform: scale(.88); margin: -30px 0; }
  .fb2 { right: -4px; }
  .l-head h2, .ai-band h2 { font-size: 28px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .trio, .screens, .feat-grid { grid-template-columns: 1fr; }
  .tl-line { left: 26px; }
  .tl-step, .tl-step.right { grid-template-columns: 52px 1fr; gap: 0 16px; }
  .tl-step .tl-node, .tl-step.right .tl-node { order: 0; grid-row: 1 / span 2; align-self: start; }
  .tl-step .tl-text, .tl-step.right .tl-text { order: 1; text-align: left !important; }
  .tl-step .tl-art, .tl-step.right .tl-art { order: 2; grid-column: 2; justify-self: stretch; margin-top: 12px; }
  .parent-art { grid-template-columns: 1fr; }
  .parent-art .mock:nth-child(2) { margin-top: 0; }
  .cta-band { padding: 30px 20px; }
  .cta-band h2 { font-size: 28px; }
  .l-foot .cols { grid-template-columns: 1fr 1fr; }
  body.landing .card.vid-card { padding: 6px; }
  .vid-sound { bottom: 58px; font-size: 13px; }
  .hide-sm { display: none !important; }
}

/* =========================================================
   Giao diện tối: nền xanh đêm, lưới kẻ mờ, quầng sáng xanh lá
   ========================================================= */
body.landing {
  --bg: #070B14; --bg-2: rgba(255, 255, 255, .05); --surface: #0E1422; --surface-2: #121A2A;
  --ink: #F3F5F9; --ink-2: #C2C9D6; --muted: #8C96A8;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --primary: #2FD08F; --primary-2: #5BE3AC; --primary-ink: #03140C; --primary-soft: rgba(47, 208, 143, .14);
  --sky: #60A5FA; --sky-soft: rgba(96, 165, 250, .14);
  --mint: #34D399; --mint-soft: rgba(52, 211, 153, .14);
  --sun: #FBBF24; --sun-soft: rgba(251, 191, 36, .14);
  --coral: #F87171; --coral-soft: rgba(248, 113, 113, .15);
  --grape: #A78BFA; --grape-soft: rgba(167, 139, 250, .15);
  --pink: #F472B6; --pink-soft: rgba(244, 114, 182, .15);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 40px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
  color-scheme: dark;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 560px at 12% -8%, rgba(47, 208, 143, .16), transparent 62%),
    radial-gradient(900px 640px at 105% 18%, rgba(124, 92, 240, .16), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}
body.landing .card, body.landing .stat-b, body.landing .mock, body.landing .faq details {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border-color: var(--line);
}
body.landing .btn:not(.btn-primary):not(.btn-ghost) { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--ink); }
body.landing .btn:not(.btn-primary):not(.btn-ghost):hover { border-color: var(--primary); }
body.landing .l-nav.scrolled { background: rgba(7, 11, 20, .78); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
body.landing .brand { color: var(--ink); }

.hero-panel {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 34px; padding: 18px 46px 10px; position: relative; overflow: hidden;
  background:
    radial-gradient(720px 420px at 0% 0%, rgba(47, 208, 143, .15), transparent 60%),
    radial-gradient(620px 520px at 100% 100%, rgba(96, 165, 250, .10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
body.landing .l-hero h1 .hl { background: linear-gradient(90deg, #2FD08F, #8BF0C8); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0; }
body.landing .stage::before { background: radial-gradient(circle, rgba(47, 208, 143, .26), rgba(96, 165, 250, .08) 50%, transparent 70%); }
body.landing .phone { border-color: #0A0F1A; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 90px rgba(0, 0, 0, .6); }
body.landing .phone-notch { background: #0A0F1A; }
body.landing .float-badge { background: rgba(14, 20, 34, .9); backdrop-filter: blur(8px); }

.ai-band { background: #03060D; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ai-band::before { background: #2FD08F; opacity: .22; }
.ai-band::after { background: #7C5CF0; opacity: .3; }
.ai-band .eyebrow { background: rgba(47, 208, 143, .14); color: #5BE3AC; }
.ai-mock { background: #0D1320; border-color: rgba(255, 255, 255, .1); }
.ai-mock .form span, .ai-q { background: #151D2D; }

.cta-band { background: linear-gradient(120deg, #0A6E4B, #12A06D 55%, #2FD08F); box-shadow: 0 30px 80px rgba(47, 208, 143, .22); }
.cta-band::after { content: "✓"; font-size: 260px; font-weight: 800; opacity: .08; color: #fff; left: -10px; bottom: -110px; }
body.landing .cta-band .auth-card { background: #0B111D; border-color: rgba(255, 255, 255, .1); }
body.landing .l-foot { border-color: var(--line); }

@media (max-width: 980px) {
  .hero-panel { padding: 14px 16px 6px; border-radius: 26px; }
}

/* cột lưới không bị nội dung đẩy rộng ra */
.tl-step > *, .parent-art > *, .trio > *, .screens > * { min-width: 0; }

/* chừa chỗ cho thanh trên khi cuộn tới một phần */
.l-sec, #dang-nhap { scroll-margin-top: 84px; }

/* lối vào cổng phụ huynh & học sinh dưới khung đăng nhập */
.family-entry { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2);
  border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 13.5px; text-decoration: none !important; transition: border-color .15s, background .15s; }
.family-entry span { flex: 1; }
.family-entry:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); }

/* =========================================================
   Giữ nguyên dáng trang giới thiệu khi app chuyển sang hệ thiết kế mới
   (nút bo tròn, ô nhập và thẻ như cũ)
   ========================================================= */
body.landing { --input: var(--surface-2); --line-3: rgba(255, 255, 255, .24); --shadow-xs: none; font-size: 15px; line-height: 1.5; }
body.landing h1 { font-weight: 800; }
body.landing .btn { height: 42px; padding: 0 18px; border-radius: 999px; border-width: 1.5px; font-size: 14.5px; box-shadow: none; }
body.landing .btn:hover { border-color: var(--primary); }
body.landing .btn:active { transform: scale(.97); }
body.landing .btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent); }
body.landing .btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); color: var(--primary-ink); }
body.landing .btn-ghost { border-color: transparent; }
body.landing .btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
body.landing .input { min-height: 44px; padding: 10px 14px; border-radius: 13px; border-width: 1.5px; font-size: 15px; box-shadow: none; }
body.landing .input:focus { background: var(--surface); }
body.landing .card { border-radius: 20px; padding: 18px; }
body.landing .chip { height: 26px; padding: 0 10px; font-size: 12.5px; box-shadow: none; }
body.landing .avatar { width: 40px; height: 40px; font-size: 15px; background: var(--c, var(--primary)); box-shadow: none; }

/* điện thoại minh hoạ: giữ ảnh đại diện nhỏ để tên học sinh nằm một dòng (đè quy tắc avatar 40px của landing) */
body.landing .ph-row .avatar { width: 32px; height: 32px; font-size: 13px; flex: none; }

/* ---------- Hai trụ cột: nhắc học phí tự động (fee-band) + AI soạn bài (ai-band) liền một dải tối ---------- */
.fee-band::before { background: #FFB020; opacity: .16; top: -220px; left: auto; right: -140px; }
.fee-band::after { background: #2FD08F; opacity: .18; bottom: -280px; right: auto; left: -160px; }
.fee-band .eyebrow { background: rgba(255, 176, 32, .14); color: #FFC861; }
.fee-band + .ai-band { margin-top: 0; border-top: 0; }
.fee-mock { background: #0D1320; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); color: #F2F1F6; }
.fee-event { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #151D2D; font-size: 13px; }
.fee-event .tiny { color: #8B93A7; margin-top: 2px; }
.fe-ic { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #3DD6A5; color: #10241D; font-weight: 800; font-size: 13px; }
.fee-chat { margin-top: 12px; padding: 12px; border-radius: 16px; background: #080C15; border: 1px solid rgba(255, 255, 255, .06); display: grid; gap: 8px; }
.fee-to { font-size: 11.5px; color: #8B93A7; }
.fee-bubble { justify-self: end; max-width: 92%; padding: 11px 13px; border-radius: 16px 16px 4px 16px; background: #0F7A54; color: #EFFFF7;
  font-size: 12.5px; line-height: 1.55; }
.fee-bubble b { color: #fff; }
.fee-lines { margin: 7px 0; padding: 7px 9px; border-radius: 10px; background: rgba(0, 0, 0, .18); display: grid; gap: 3px; }
.fee-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.fee-lines .tot { border-top: 1px dashed rgba(255, 255, 255, .25); margin-top: 3px; padding-top: 4px; }
.fee-qr { display: flex; align-items: center; gap: 10px; }
.fee-qr .qr-fake { width: 60px; height: 60px; background-size: 9px 9px; background-position: 0 0, 4.5px 4.5px; }
.fee-qr .qr-fake::before, .fee-qr .qr-fake::after { width: 16px; height: 16px; border-width: 4px; }
.fee-qr .tiny { color: #C9F3E1; margin-top: 2px; }
[data-fee-step] { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
[data-fee-step].show { opacity: 1; transform: none; }
@media (max-width: 980px) {
  .fee-grid > .fee-mock { order: 2; }   /* điện thoại: chữ trước, minh hoạ sau */
  .fee-band h2 { font-size: 28px; }
}
.fee-sep { opacity: .55; letter-spacing: -.5px; }

/* ---------- Trụ cột 3: phụ huynh theo dõi quá trình học của con ---------- */
.ai-band + .kid-band { margin-top: 0; border-top: 0; }
.kid-band::before { background: #3B82F6; opacity: .18; top: -200px; left: auto; right: -140px; }
.kid-band::after { background: #7C5CF0; opacity: .2; bottom: -260px; right: auto; left: -160px; }
.kid-band .eyebrow { background: rgba(96, 165, 250, .14); color: #8EC1FF; }
.kid-mock { background: #0D1320; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); color: #F2F1F6; }
.kid-top { display: flex; align-items: center; gap: 10px; }
body.landing .kid-top .avatar { width: 38px; height: 38px; font-size: 14px; flex: none; }
.kid-top .tiny { color: #8B93A7; margin-top: 2px; }
.kid-tag { padding: 4px 10px; border-radius: 999px; background: #151D2D; font-size: 12px; font-weight: 700; color: #C9D3E6; }
.kid-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ks { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: #151D2D; min-width: 0; }
.ks b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.ks small { color: #8B93A7; font-weight: 700; margin-left: 1px; }
.ks span { display: block; font-size: 11.5px; color: #A9B2C6; margin-top: 1px; }
.kring { width: 38px; height: 38px; flex: none; transform: rotate(-90deg); }
.kring circle { fill: none; stroke: #26304A; stroke-width: 5; }
.kring .fg { stroke: #3DD6A5; stroke-linecap: round; stroke-dasharray: 0 100.5; transition: stroke-dasharray 1s ease; }
.kid-mock.on .kring .fg { stroke-dasharray: 92 100.5; }
.kid-chart { margin-top: 12px; padding: 12px; border-radius: 14px; background: #080C15; border: 1px solid rgba(255, 255, 255, .06); }
.kid-chart .lbl { font-size: 12px; color: #8B93A7; margin-bottom: 8px; }
.kid-chart .bars { display: flex; align-items: flex-end; gap: 10px; height: 118px; }
.kb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.kb i { display: block; width: 100%; max-width: 30px; height: 0; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #60A5FA, #3B82F6);
  transition: height .7s cubic-bezier(.2, .8, .2, 1) var(--d); }
.kb:last-child i, .kb:nth-last-child(2) i { background: linear-gradient(180deg, #5BE3AC, #2FD08F); }
.kid-mock.on .kb i { height: max(10px, calc(var(--h) * .64)); }
.kb .v { font-size: 11.5px; font-weight: 800; color: #E6E5EE; opacity: 0; transition: opacity .3s calc(var(--d) + .5s); }
.kid-mock.on .kb .v { opacity: 1; }
.kb .d { font-size: 10.5px; color: #8B93A7; }
.kid-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #151D2D; font-size: 12.5px; line-height: 1.5;
  opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.kid-note.show { opacity: 1; transform: none; }
.kid-note .fe-ic { background: #8EC1FF; color: #0D1A33; }
.kid-note div div { color: #C9D3E6; margin-top: 2px; }
@media (max-width: 980px) {
  .fee-grid > .kid-mock { order: 2; }
  .kid-band h2 { font-size: 28px; }
}
@media (max-width: 420px) {
  .ks { flex-direction: column; align-items: flex-start; gap: 4px; padding: 9px; }
  .ks b { font-size: 18px; }
}

/* nút liên hệ nổi góc trái: Zalo, Messenger, gọi (nút tròn .ch-btn ở style.css) */
.fab-contact { position: fixed; left: 18px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fab-contact .ch-btn { width: 50px; height: 50px; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6), 0 0 0 3px rgba(255, 255, 255, .07); animation: fab-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.fab-contact .ch-btn:nth-child(2) { animation-delay: .08s; }
.fab-contact .ch-btn:nth-child(3) { animation-delay: .16s; }
.fab-contact .ch-zalo svg { width: 32px; height: 32px; }
.fab-contact .ch-msgr svg { width: 28px; height: 28px; }
.fab-contact .ch-call svg { width: 22px; height: 22px; }
@keyframes fab-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }
@media (max-width: 600px) {
  .fab-contact { left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); gap: 8px; }
  .fab-contact .ch-btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .fab-contact .ch-btn { animation: none; } }


/* bảng giá */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; align-items: start; }
.price-card { display: grid; gap: 16px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.price-card.featured { border-color: color-mix(in srgb, var(--primary) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent); }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-top h3 { font-size: 18px; font-weight: 600; }
.pc-note { font-size: 14px; color: var(--muted); min-height: 42px; text-wrap: pretty; }
.pc-price { display: flex; align-items: baseline; gap: 6px; }
.pc-price b { font-size: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pc-price span { font-size: 14px; color: var(--muted); }
.pc-list { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.pc-list li { display: flex; align-items: center; gap: 10px; }
.pc-list .i { width: 16px; height: 16px; flex: none; color: var(--primary-2); }
.pc-list li.no { color: var(--muted); }
.pc-list li.no .i { color: var(--muted); opacity: .7; }
.price-foot { max-width: 680px; margin: 20px auto 0; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; } .pc-note { min-height: 0; } }
@media (max-width: 420px) { .l-nav .l-wrap { gap: 8px; } .l-nav .btn { padding: 0 10px; font-size: 13px; } }
@media (max-width: 380px) { .l-nav .brand { font-size: 17px; gap: 6px; } .l-nav .brand .logo { width: 28px; height: 28px; } .l-nav .btn-ghost { padding: 0 8px; } }
@media (max-width: 380px) { .l-nav .btn-primary { padding: 0 8px; } .l-nav .l-wrap { gap: 6px; } }

/* H1 có dòng từ khoá nhỏ phía trên (cùng kiểu nhãn eyebrow cũ) */
.l-hero h1.h1-k { margin-top: 0; }
.l-hero h1.h1-k .eyebrow { display: flex; width: max-content; max-width: 100%; margin-bottom: 14px; line-height: 1.4; letter-spacing: .08em; white-space: normal; }

/* thanh trên: chữ không xuống dòng; thanh rộng hơn phần nội dung; màn vừa thì gọn dần
   (≤1319: bỏ link Câu hỏi · ≤1239: nút Học sinh & phụ huynh chỉ còn biểu tượng · ≤1060: ẩn các link, giống điện thoại) */
.l-nav .l-wrap { max-width: 1320px; }
@media (min-width: 421px) { .l-nav .l-wrap { gap: 12px; } .l-nav .btn-ghost { padding-left: 12px; padding-right: 12px; } }
.l-links { flex: none; gap: 2px; margin-left: 6px; }
.l-links a { padding: 8px 10px; }
.l-links a, .l-nav .btn { white-space: nowrap; }
@media (max-width: 1319px) { .l-links a[href="#hoi-dap"] { display: none; } }
@media (max-width: 1239px) { .l-nav .btn-ghost .hide-sm { display: none; } }
@media (max-width: 1060px) { .l-links { display: none; } }
