/* MoTeF — trang chủ "Con tự học, nhà bình yên." (13/10/2026).
   Một file duy nhất cho index.html; privacy.html/admin.html không dùng file này.
   Mỗi mục có một màu chủ đạo qua --acc / --acc-soft. */

@property --v {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

:root {
  --ink: #1C1838;
  --muted: #6E6A8E;
  --line: #ECEAF7;
  --bg-soft: #F7F6FE;
  --brand: #6352F5;
  --brand-2: #8B5CF6;
  --pink: #E0559B;
  --deep: #1E1A4D;
  --acc: var(--brand);
  --acc-soft: #EFEDFF;
  --r: 24px;
  --shadow: 0 10px 30px rgba(60, 48, 160, .08);
  --shadow-lg: 0 30px 70px rgba(60, 48, 160, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);

  /* Biến why.js (hình động "Vì sao?") đang dùng */
  --text: var(--ink);
  --primary: var(--brand);
  --primary-dark: #4337C9;
  --secondary: #16C784;
  --grape-soft: #F0EAFF;
  --bg: #F6F4FF;
  --sun: #FFC233;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }
button { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 900; }

h1 { font-size: clamp(44px, 7vw, 88px); }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 20px; letter-spacing: -.01em; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }

.grad {
  background: linear-gradient(90deg, var(--brand) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

.lead {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 19.5px);
  color: var(--muted);
}

.lead b { color: var(--ink); }

.head { text-align: center; margin-bottom: 48px; }
.head .lead { margin-inline: auto; }

section { padding: 110px 0; position: relative; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(99, 82, 245, .3);
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(99, 82, 245, .38); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-ghost {
  background: #fff;
  color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--line);
}

.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--brand); }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  border-radius: 16px;
  background: #15122E;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  font-weight: 800;
  font-size: 18px;
  transition: transform .25s var(--ease-bounce);
}

.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; opacity: .75; }
a.store:hover { transform: translateY(-3px); }
.store.soon { opacity: .45; cursor: default; }
.store.light { background: #fff; color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores.center { justify-content: center; }

/* ---------- Thanh điều hướng ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow .3s;
}

.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(30, 26, 77, .06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 900;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: -.01em;
}

.logo img { border-radius: 10px; }
.logo b { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a:not(.btn) {
  color: var(--ink);
  font-weight: 800;
  font-size: 15.5px;
  text-decoration: none;
  opacity: .78;
  transition: opacity .2s, color .2s;
}

.nav-links a:not(.btn):hover { opacity: 1; color: var(--brand); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}

.nav-toggle span { top: 21px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ''; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 110px; overflow: hidden; }

.hero-bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
}

.hero-bg i:nth-child(1) { width: 560px; height: 560px; right: -120px; top: 40px; background: #CFC6FF; }
.hero-bg i:nth-child(2) { width: 380px; height: 380px; right: 280px; top: 320px; background: #FFD3E8; }
.hero-bg i:nth-child(3) { width: 300px; height: 300px; left: -120px; top: -60px; background: #E5F0FF; }

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 40px;
}

.hero h1 { margin-top: 2px; }
.hero .eyebrow { background: #fff; box-shadow: 0 4px 14px rgba(99, 82, 245, .12); }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}

.hero-art { position: relative; justify-self: center; padding: 20px 70px; }

.phone {
  position: relative;
  width: 300px;
  padding: 10px;
  border-radius: 46px;
  background: #16132F;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2D2858;
  transform: rotate(2deg);
  animation: h-float 6s ease-in-out infinite;
}

.phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 76px;
  height: 20px;
  margin-left: -38px;
  border-radius: 12px;
  background: #16132F;
}

.screen {
  border-radius: 37px;
  overflow: hidden;
  background: linear-gradient(180deg, #F3F0FF 0%, #FFF 46%);
  padding: 44px 14px 20px;
}

.kid-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 8px;
}

.kid-hi { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.kid-hi .mascot-slot { width: 52px; height: 52px; flex: none; }

.kid-hi p {
  margin: 0;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(99, 82, 245, .12);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.kid-hi p b { color: var(--brand); }

.kid-lesson {
  padding: 12px 10px 10px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(99, 82, 245, .12);
}

.kid-lesson small { font-size: 11.5px; font-weight: 800; color: #E07B21; }
.kid-lesson > b { display: block; font-size: 16px; margin: 0 0 6px; }
.kid-why.why { padding: 0; box-shadow: none; }

.kid-foot { display: flex; justify-content: flex-end; margin-top: 12px; min-height: 30px; }

.focus-pill,
.star-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}

.focus-pill { background: #E3F8EF; color: #0E8F63; }
.star-pill { background: #FFF5D6; color: #B07800; }

.focus-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16C784;
  animation: h-pulse 1.6s ease-out infinite;
}

.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  line-height: 1.25;
  animation: h-float 5s ease-in-out infinite;
}

.float small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.float b { display: block; font-size: 15px; }
.float em { display: block; font-style: normal; color: #0E8F63; font-weight: 800; font-size: 13px; }

.f-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--acc-soft);
  font-size: 22px;
  flex: none;
}

.f-parent { left: -56px; bottom: -44px; animation-delay: -1.5s; }
.f-calm { right: -12px; top: -6px; animation-delay: -3s; }
.f-calm b { font-size: 22px; color: var(--brand); }
.f-calm .f-ico { background: #FFF2E6; }

/* ---------- Linh vật ---------- */
.mascot-slot { display: inline-block; }
.mascot { width: 100%; height: 100%; overflow: visible; animation: h-bob 2.4s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(85, 68, 230, .3)); }
.mascot .eyes { transform-box: fill-box; transform-origin: center; animation: h-blink 4.2s infinite; }
.mascot .pupils { transition: transform .15s; }

/* ---------- Bớt kèm cặp ---------- */
.shift { background: var(--bg-soft); }
.shift h2 { margin-bottom: 48px; }

.shift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.shift-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px 22px;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow);
}

.shift-card s {
  color: #A5A1BF;
  font-weight: 700;
  font-size: 15px;
  text-decoration-color: #F07A9C;
  text-decoration-thickness: 2px;
}

.shift-card .arrow { color: var(--brand); font-weight: 900; }
.shift-card b { font-size: 18px; line-height: 1.35; }

/* ---------- Phương pháp ---------- */
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.m-card {
  padding: 30px 24px;
  border-radius: var(--r);
  background: var(--s);
  transition: transform .35s var(--ease-bounce);
}

.m-card:hover { transform: translateY(-6px); }

.m-ico {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: #fff;
  font-size: 32px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
  margin-bottom: 18px;
}

.m-card small {
  display: block;
  color: var(--c);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.m-card h3 { margin: 4px 0 8px; font-size: 21px; }
.m-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Toán / Tiếng Anh ---------- */
.subject { overflow: hidden; }
.math { --acc: #F07A1F; --acc-soft: #FFF2E3; background: linear-gradient(180deg, #FFF8F0, #fff); }
.math .grad { background-image: linear-gradient(90deg, #FF8A3D, #F5487F); }
.english { --acc: #0FA678; --acc-soft: #E2F7EF; background: linear-gradient(180deg, #F0FBF7, #fff); }
.english .grad { background-image: linear-gradient(90deg, #12B886, #1FA9E0); }

.subject-in {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.subject-in.flip { grid-template-columns: 1.1fr .9fr; }
.subject-in.flip .subject-copy { order: 2; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }

.tags li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--acc-soft);
  font-weight: 800;
  font-size: 14.5px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--muted);
}

.steps li { display: inline-flex; align-items: center; gap: 4px; }
.steps li:not(:last-child)::after { content: '→'; margin-left: 6px; color: #D5D1E8; }
.steps i { font-style: normal; }
.steps .on { padding: 4px 10px; border-radius: 999px; background: var(--acc); color: #fff; }

.fine { margin: 18px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }

.studio {
  padding: 16px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.studio-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.studio-tabs button {
  flex: 1 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--bg-soft);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease-bounce);
}

.studio-tabs button small { display: block; font-size: 11px; font-weight: 800; opacity: .7; }
.studio-tabs button:hover { transform: translateY(-2px); }
.studio-tabs button.on { background: var(--acc); color: #fff; }

/* ---------- Sân khấu khẩu hình ---------- */
.mouth {
  padding: 16px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.mouth-phrases { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }

.mouth-phrases button,
.mouth-ctrl button {
  flex: none;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-soft);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.mouth-phrases button.on { background: var(--acc); color: #fff; }

.mouth-board {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 70% 40%, #FFFFFF 0%, #F1FAF6 60%, #E4F5EE 100%);
}

.mouth-side { display: block; width: 100%; aspect-ratio: 10 / 7; }

.mouth-ipa {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 64px;
  padding: 6px 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--acc);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 6px 18px rgba(15, 166, 120, .18);
  transition: opacity .2s;
}

.mouth-ipa.pop { animation: h-pop .35s var(--ease-bounce); }
.mouth-ipa.off { opacity: 0; }

.mouth-front {
  position: absolute;
  left: 14px;
  bottom: 34px;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(0, 0, 0, .14);
}

.mouth-front canvas { display: block; width: 100%; height: 100%; }

.mouth-front-tag {
  position: absolute;
  left: 14px;
  bottom: 10px;
  width: 30%;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.mouth-cap {
  min-height: 1.5em;
  margin: 14px 4px 0;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.mouth-cap.in { animation: h-cap .4s var(--ease-bounce); }

.mouth-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 8px; }

.mouth-words span { text-align: center; line-height: 1.2; transition: color .2s, transform .2s var(--ease-bounce); color: #B4B0CC; }
.mouth-words b { display: block; font-size: 24px; font-weight: 900; }
.mouth-words small { font-size: 13px; font-weight: 700; }
.mouth-words span.on { color: var(--ink); transform: translateY(-2px); }
.mouth-words span.on small { color: var(--acc); }

.mouth-sounds { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 14px; }

.mouth-sounds button {
  min-width: 38px;
  padding: 5px 8px;
  border: 0;
  border-radius: 11px;
  background: var(--bg-soft);
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .2s var(--ease-bounce);
}

.mouth-sounds button.gap { margin-left: 10px; }
.mouth-sounds button:hover { transform: translateY(-2px); }
.mouth-sounds button.on { background: var(--acc); color: #fff; transform: translateY(-2px); }

.mouth-ctrl { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.mouth-ctrl small { display: none; }
.mouth-ctrl .mc-play { background: var(--acc); color: #fff; padding: 10px 20px; font-weight: 900; }
.mouth-ctrl .mc-slow[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc); box-shadow: inset 0 0 0 2px var(--acc); }

.feats { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.feats li { display: flex; align-items: center; gap: 14px; }

.feats i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--acc-soft);
  font-style: normal;
  font-size: 24px;
  flex: none;
}

.feats b { display: block; font-size: 17px; line-height: 1.3; }
.feats small { color: var(--muted); font-size: 14.5px; font-weight: 600; }

.vocab {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 64px;
  padding: 0;
  list-style: none;
}

.vocab li { animation: h-float 4.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s); }

.vocab span {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 128px;
  padding: 16px 10px 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease-bounce);
}

.vocab span:hover { transform: rotate(-3deg) scale(1.05); }
.vocab img { width: 64px; height: 64px; }
.vocab em { margin-top: 8px; font-style: normal; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.25; }
.vocab em b { display: block; color: var(--ink); font-size: 17px; }

/* ---------- Bố mẹ (nền tối) ---------- */
.parents {
  --acc: #B9AAFF;
  --acc-soft: rgba(185, 170, 255, .14);
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(139, 92, 246, .35), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgba(224, 85, 155, .22), transparent 70%),
    var(--deep);
  color: #fff;
}

.parents .grad { background-image: linear-gradient(90deg, #B9AAFF, #FF9CCB); }
.eyebrow.on-dark { background: rgba(255, 255, 255, .1); color: #D8D0FF; }

.parents-in { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }

.flow { display: grid; gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: s; }

.flow li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.flow i {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  font-style: normal;
  font-size: 26px;
  flex: none;
}

.flow b { display: block; font-size: 18px; }
.flow small { color: #BDB7E3; font-size: 15px; }

.report {
  justify-self: center;
  width: min(400px, 100%);
  padding: 22px;
  border-radius: 30px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
  transform: rotate(-2deg);
}

.r-head b { display: block; font-size: 19px; }
.r-head small { color: var(--muted); font-weight: 700; font-size: 13.5px; }

.r-main { display: flex; align-items: center; gap: 22px; margin: 18px 0; }

.ring {
  --v: 0;
  display: grid;
  place-items: center;
  align-content: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #fff 76%, transparent 77%),
    conic-gradient(#16C784 calc(var(--v) * 1%), #EDEBF7 0);
  flex: none;
  transition: --v 1.6s var(--ease);
}

.report.in .ring { --v: var(--p); }
.ring b { font-size: 36px; line-height: 1; }
.ring small { font-size: 10.5px; font-weight: 900; color: var(--muted); letter-spacing: .08em; }

.r-stats { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 700; color: var(--muted); }
.r-stats b { color: var(--ink); }

.bars { display: grid; gap: 10px; }

.bars div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  font-size: 13.5px;
  font-weight: 700;
}

.bars i {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 8px;
  border-radius: 8px;
  background: #EDEBF7;
  position: relative;
  overflow: hidden;
}

.bars i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 1.4s var(--ease) .3s;
}

.report.in .bars i::after { width: var(--w); }

.r-tip {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #F4F1FF;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.r-tip b { color: var(--brand); }

.privacy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 80px 0 0;
  padding: 0;
  list-style: none;
}

.privacy li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.privacy i { grid-row: span 2; font-style: normal; font-size: 28px; }
.privacy b { font-size: 16.5px; }
.privacy small { color: #BDB7E3; font-size: 14px; line-height: 1.4; }
.privacy-link { margin: 18px 0 0; text-align: center; }
.privacy-link a { color: #D8D0FF; font-weight: 800; }

/* ---------- Bảng giá ---------- */
.plans {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  border-radius: 30px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line);
}

.plan h3 { font-size: 22px; }
.amount { margin: 8px 0 2px; font-size: 48px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.amount small { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.save { color: #0E8F63; font-weight: 800; font-size: 14.5px; }

.plan ul { flex: 1; display: grid; align-content: start; gap: 10px; margin: 22px 0 26px; padding: 0; list-style: none; }

.plan li { position: relative; padding-left: 30px; font-weight: 700; font-size: 15.5px; }

.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E3F8EF;
  color: #0E8F63;
  font-size: 12px;
  font-weight: 900;
}

.plan.pro {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--brand), var(--pink)) border-box;
  border: 3px solid transparent;
  box-shadow: var(--shadow-lg);
}

.badge {
  position: absolute;
  top: -15px;
  right: 26px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--pink));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.sub { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; font-weight: 700; }

.pay {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 40px;
  max-width: 860px;
  margin: 32px auto 0;
  padding: 34px;
  border-radius: 30px;
  background: var(--bg-soft);
}

.pay-head h3 { font-size: 22px; }
.pay-head p { margin: 10px 0 0; color: var(--muted); }
.pay-head b { color: var(--ink); }

.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.plan-pick label { cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }

.plan-pick span {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 900;
  line-height: 1.3;
  transition: box-shadow .2s, background .2s;
}

.plan-pick small { display: block; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.plan-pick input:checked + span { background: #F3F0FF; box-shadow: inset 0 0 0 2px var(--brand); }
.plan-pick input:focus-visible + span { outline: 3px solid rgba(99, 82, 245, .35); outline-offset: 2px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; font-weight: 800; font-size: 14.5px; }

.field input {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line);
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: box-shadow .2s;
}

.field input:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }

.form-msg { display: none; margin: 10px 0 0; color: #D6336C; font-weight: 800; font-size: 14.5px; }

.qr { display: none; margin-top: 18px; padding: 18px; border-radius: 20px; background: #fff; text-align: center; }
.qr img { width: min(280px, 100%); margin: 0 auto 10px; }
.qr p { margin: 6px 0 0; font-size: 14.5px; }
.qr .note { color: var(--muted); font-size: 13.5px; }
.qr .note b { color: var(--ink); font-size: 16px; }
.help { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; text-align: center; }

/* ---------- Hỏi đáp ---------- */
.faq { background: var(--bg-soft); }
.faq h2 { margin-bottom: 36px; }
.faq-list { display: grid; gap: 10px; }

.faq details {
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--brand);
  font-size: 20px;
  font-weight: 900;
  transition: transform .3s var(--ease-bounce);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .answer { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq .answer strong,
.faq .answer em { color: var(--ink); }

/* ---------- Kêu gọi cuối ---------- */
.final {
  padding: 100px 0;
  background:
    radial-gradient(500px 300px at 15% 0%, rgba(255, 255, 255, .18), transparent 70%),
    linear-gradient(135deg, #6352F5 0%, #8B5CF6 55%, #E0559B 100%);
  color: #fff;
  text-align: center;
}

.final-in { display: flex; flex-direction: column; align-items: center; }
.mascot-slot.big { width: 110px; height: 110px; margin-bottom: 18px; }
.final .grad { background-image: linear-gradient(90deg, #FFE8A3, #FFFFFF); }
.final p { margin: 16px 0 0; opacity: .85; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { padding: 54px 0 30px; background: #fff; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer p { margin: 8px 0 0; color: var(--muted); font-weight: 700; }
.footer nav,
.footer .contact { display: flex; flex-direction: column; gap: 6px; }

.footer nav a,
.footer .contact a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; opacity: .8; }

.footer nav a:hover,
.footer .contact a:hover { opacity: 1; color: var(--brand); }

.copy { margin-top: 36px !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.copy a { color: inherit; }

/* ---------- Xuất hiện khi cuộn ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .report.reveal.in { transform: rotate(-2deg); }

/* ---------- Hình động "Vì sao?" (why.js) — chép từ learn.css ---------- */
.why { background: #fff; border-radius: 24px; padding: 14px; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.why-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.why-tag { flex: none; padding: 5px 12px; border-radius: 999px; background: var(--grape-soft); color: var(--primary); font-weight: 900; font-size: 14px; }
.why-dots { display: flex; gap: 5px; flex: 1; }
.why-dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--line); transition: width .35s var(--ease-bounce), background .3s; }
.why-dots i.on { background: var(--secondary); }
.why-dots i.cur { width: 22px; background: var(--primary); }
.why-pp { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg); font-size: 14px; cursor: pointer; }
.why-board { position: relative; border-radius: 18px; background: #FBFAFF; box-shadow: inset 0 0 0 2px #EFEBFF; overflow: hidden; }
.why-board canvas { display: block; width: 100%; touch-action: pan-y; }
.why-board.can-drag canvas { cursor: grab; touch-action: none; }
.why-board.can-drag canvas:active { cursor: grabbing; }

.why-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.why-board.hinting .why-hint { opacity: 1; transform: none; animation: l-nudge 1.4s ease-in-out infinite; }
.why-cap { min-height: 3.1em; margin: 12px 4px 0; font-size: 17.5px; font-weight: 700; line-height: 1.45; }
.why-cap.in { animation: l-cap .5s var(--ease-bounce); }
.why-ctrl { display: flex; justify-content: flex-end; margin-top: 10px; }

.why-next {
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s var(--ease-bounce), background .2s;
}

.why-next:hover { background: var(--primary-dark); transform: translateY(-2px); }
.why-mini { padding: 8px; border-radius: 18px; }
.why-mini .why-top { margin-bottom: 6px; }
.why-mini .why-tag { padding: 3px 9px; font-size: 11.5px; }
.why-mini .why-dots i { width: 6px; height: 6px; }
.why-mini .why-dots i.cur { width: 14px; }
.why-mini .why-board { border-radius: 12px; }
.why-mini .why-cap { height: 4.2em; min-height: 0; margin: 7px 2px 0; overflow: hidden; font-size: 12.5px; line-height: 1.38; }
.studio .why { padding: 4px 2px 2px; box-shadow: none; }
.c-pos { color: #1FA9E0; }
.c-neg { color: #F57C1F; }
.c-num { color: #16A06E; }
.c-x { color: #6352F5; }
.c-acc { color: #E0559B; }

/* ---------- Keyframes ---------- */
@keyframes h-float { 50% { translate: 0 -10px; } }
@keyframes h-bob { 50% { transform: translateY(-4px); } }
@keyframes h-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes h-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 199, 132, .55); } 100% { box-shadow: 0 0 0 9px rgba(22, 199, 132, 0); } }
@keyframes h-pop { from { transform: scale(.7); } }
@keyframes h-cap { from { opacity: 0; transform: translateY(6px); } }
@keyframes l-cap { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes l-nudge { 50% { transform: translateX(-8px); } }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1080px) {
  .shift-grid,
  .m-grid { grid-template-columns: repeat(2, 1fr); }
  .vocab li:nth-child(n+5) { display: none; }
}

@media (max-width: 960px) {
  section { padding: 84px 0; }
  .hero { padding: 120px 0 80px; }
  .hero-in,
  .subject-in,
  .subject-in.flip,
  .parents-in { grid-template-columns: 1fr; gap: 48px; }
  .subject-in.flip .subject-copy { order: 0; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero .stores,
  .trust { justify-content: center; }
  .pay { grid-template-columns: 1fr; gap: 20px; }
  .privacy { grid-template-columns: 1fr; margin-top: 56px; }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }

  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { padding: 12px 14px; border-radius: 12px; }
  .nav-links .btn { margin-top: 6px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero-art { padding: 10px 0 40px; }
  .phone { width: 270px; }
  .f-parent { left: -10px; bottom: 4px; }
  .f-calm { right: -10px; top: 0; padding: 10px 12px 10px 10px; }
  .f-calm .f-ico { width: 32px; height: 32px; font-size: 18px; }
  .f-calm b { font-size: 18px; }
  .shift-grid { grid-template-columns: 1fr; gap: 12px; }
  .shift-card { padding: 20px; }
  .m-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .m-card { padding: 20px 16px; }
  .m-ico { width: 48px; height: 48px; font-size: 26px; border-radius: 16px; margin-bottom: 12px; }
  .m-card h3 { font-size: 17px; }
  .m-card p { font-size: 14px; }
  .studio,
  .mouth { padding: 10px; border-radius: 24px; margin-inline: -6px; }
  .why-cap { font-size: 16px; }
  .mouth-ipa { font-size: 22px; padding: 4px 10px; min-width: 50px; top: 10px; right: 10px; }
  .mouth-front { width: 32%; left: 10px; bottom: 28px; }
  .mouth-front-tag { left: 10px; bottom: 6px; width: 32%; font-size: 11px; }
  .mouth-words b { font-size: 20px; }
  .mouth-phrases { flex-wrap: wrap; justify-content: center; }
  .vocab { gap: 10px; margin-top: 44px; flex-wrap: wrap; }
  .vocab li:nth-child(n+4) { display: none; }
  .vocab span { width: 100px; padding: 12px 6px 10px; }
  .vocab img { width: 52px; height: 52px; }
  .plans { grid-template-columns: 1fr; }
  .pay { padding: 22px 18px; }
  .r-main { gap: 16px; }
  .ring { width: 108px; height: 108px; }
  .ring b { font-size: 30px; }
  .footer-in { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; }
}
