/* ==========================================================================
   Education landing — "warm classroom" theme
   Paper, highlighter yellow, red pen. Loaded after base.css (tokens are overridden here).
   ========================================================================== */
html:has(body.edu) { background: #fff9f2; overflow-x: clip; }
/* component display rules (grid, inline-flex) must not override the hidden attribute */
.edu [hidden] { display: none !important; }

body.edu {
  --bg: #fff9f2;
  --bg-soft: #fff1e6;
  --peach: #ffe8dc;
  --ink: #1d2433;
  --ink-2: #39404f;
  --muted: #5e6574;
  --line: #eadfd3;
  --line-strong: #d9c9b8;
  --accent: #2e62f0;
  --accent-hover: #1f4fd6;
  --accent-soft: #e6edff;
  --accent-glow: #2e62f0;
  --yellow: #ffc83d;
  --yellow-soft: #ffeaa8;
  --red: #e5484d;
  --red-ink: #c42b32;
  --green-ink: #1e7a52;
  --green-soft: #ddf3e8;
  --zalo: #0068ff;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
  --shadow-card: 0 1px 0 rgba(29, 36, 51, .04), 0 24px 50px -30px rgba(29, 36, 51, .35);

  background: var(--bg);
  color: var(--ink);
}
.edu h1, .edu h2, .edu h3 { line-height: 1.2; }
.edu .btn { white-space: normal; text-align: center; }
.edu .container { max-width: calc(1160px + var(--gutter) * 2); }

/* ---------- buttons ---------- */
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-zalo { background: var(--zalo); color: #fff; box-shadow: 0 10px 26px -12px rgba(0, 104, 255, .9); }
.btn-zalo:hover { background: #0057d6; }

/* ---------- header ---------- */
.edu .header-pill {
  color: var(--ink);
  background: rgba(255, 249, 242, .78);
  border-color: rgba(29, 36, 51, .08);
  box-shadow: 0 12px 30px -22px rgba(29, 36, 51, .45);
}
.edu .site-header.is-scrolled .header-pill { background: rgba(255, 249, 242, .95); box-shadow: 0 16px 40px -24px rgba(29, 36, 51, .55); }
.edu .nav a:not(.btn) { color: var(--ink-2); }
.edu .nav a:not(.btn):hover { color: var(--ink); background: rgba(29, 36, 51, .06); }
.edu .nav-toggle { border-color: rgba(29, 36, 51, .2); }
.logo-sub {
  margin-left: 4px; padding: 2px 8px; border-radius: 6px; vertical-align: 2px;
  font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft);
}
.edu :focus-visible { outline-color: var(--accent); }

/* ---------- shared section scaffolding ---------- */
.e-section { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.e-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.e-head h2 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -0.03em; font-weight: 800; }
.e-eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft);
}
.e-lead { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 640px; }
.ph { color: var(--accent-hover); background: var(--accent-soft); border-color: #a9bdf6; }

/* ==========================================================================
   Hero
   ========================================================================== */
.e-hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 14vw, 160px) 0 clamp(64px, 8vw, 96px);
  background:
    radial-gradient(55% 55% at 88% 30%, var(--peach), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.e-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.e-kicker {
  display: inline-flex; padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.e-hero h1 { margin-top: 22px; font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.16; }
.marker {
  background-image: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%);
  background-repeat: no-repeat; background-size: 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: marker 1.1s var(--ease-out) .9s forwards;
}
@keyframes marker { to { background-size: 100% 100%; } }
.e-sub { margin-top: 22px; max-width: 560px; font-size: clamp(17px, 1.5vw, 19.5px); color: var(--ink-2); }
.e-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.e-promises { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.e-promises li { display: inline-flex; align-items: center; gap: 8px; }
.e-promises li::before {
  content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--green-ink);
}
.e-in { opacity: 0; transform: translateY(18px); animation: e-rise .9s var(--ease-out) forwards; animation-delay: calc(var(--d) * 110ms + 100ms); }
@keyframes e-rise { to { opacity: 1; transform: none; } }

/* ---------- 3D desk ---------- */
.desk { position: relative; --px: 0; --py: 0; }
/* absolute so the fixed-size stage never widens the grid column; edu.js sets the desk height */
.desk { min-width: 0; height: 520px; }
.desk-inner { position: absolute; left: 0; top: 0; width: 560px; height: 520px; perspective: 1400px; transform-origin: top left; }
.desk-layer {
  position: absolute;
  translate: calc(var(--px) * (var(--z) + 1) * 9px) calc(var(--py) * (var(--z) + 1) * 7px);
  transition: translate .5s var(--ease-out);
}
.desk-caption { position: absolute; right: 0; bottom: -28px; font-size: 12px; color: var(--muted); }

.paper {
  left: 0; top: 84px; width: 322px; height: 320px; padding: 22px 22px 22px 52px;
  border-radius: 6px; background-color: #fff;
  background-image:
    linear-gradient(90deg, transparent 38px, rgba(229, 72, 77, .45) 38px, rgba(229, 72, 77, .45) 40px, transparent 40px),
    repeating-linear-gradient(transparent 0 33px, #dbe5fb 33px 34px);
  background-position: 0 0, 0 52px;
  box-shadow: 0 30px 60px -28px rgba(29, 36, 51, .45);
  transform: rotate(-6deg);
  animation: float-a 7s ease-in-out infinite;
}
.paper-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.paper-text { font-family: var(--font-hand); font-size: 21px; line-height: 34px; color: #2b3a67; }
.hl-err, .g-err {
  color: inherit; padding: 0 2px;
  background-image: linear-gradient(var(--yellow-soft), var(--yellow-soft));
  background-repeat: no-repeat; background-size: 0% 100%; background-color: transparent;
}
.hl-err { animation: marker .6s var(--ease-out) forwards; animation-delay: calc(1.4s + var(--n) * .55s); }
.pen-fix {
  display: inline-block; margin: 0 4px; font-family: var(--font-hand); font-size: 19px;
  color: var(--red-ink); transform: rotate(-4deg) translateY(-6px);
  opacity: 0; animation: pop .4s var(--ease-out) forwards; animation-delay: calc(1.75s + var(--n) * .55s);
}
.paper-grade {
  position: absolute; right: 18px; bottom: 14px; width: 64px; height: 64px; display: grid; place-items: center;
  font-family: var(--font-hand); font-size: 30px; color: var(--red-ink);
  border: 2.5px solid var(--red); border-radius: 50%; transform: rotate(-10deg);
  opacity: 0; animation: pop .5s var(--ease-out) 3.4s forwards;
}
@keyframes pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }

.rubric {
  left: 336px; top: 0; width: 200px; padding: 16px 18px; border-radius: 18px;
  background: #fff; box-shadow: 0 26px 50px -26px rgba(29, 36, 51, .5);
  transform: rotate(5deg); animation: float-b 6s ease-in-out infinite;
}
.rubric-title { font-size: 12px; font-weight: 600; color: var(--muted); }
.rubric-score { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.rubric-score small { font-size: 16px; color: var(--muted); font-weight: 600; }
.rubric ul { display: grid; gap: 7px; margin-top: 6px; }
.rubric li { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.rubric li i, .bars li i { height: 8px; border-radius: 6px; background: var(--bg-soft); position: relative; overflow: hidden; }
.rubric li i::after, .bars li i::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--accent);
  transform-origin: left; transform: scaleX(0);
}
.rubric li i::after { animation: grow 1s var(--ease-out) 1.2s forwards; transform: scaleX(0); }
@keyframes grow { to { transform: scaleX(var(--v)); } }

.phone {
  left: 340px; top: 132px; width: 206px; height: 380px; padding: 12px 10px;
  border-radius: 34px; background: #1d2433; box-shadow: 0 40px 70px -30px rgba(29, 36, 51, .7);
  transform: rotate(4deg); animation: float-c 8s ease-in-out infinite;
}
.phone::before { content: ""; position: absolute; inset: 10px; border-radius: 26px; background: #eef2fa; }
.phone > * { position: relative; }
.phone-notch { width: 70px; height: 18px; margin: 0 auto 10px; border-radius: 10px; background: #1d2433; }
.chat-name { padding: 0 10px 8px; font-size: 10.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid #dfe5f1; margin-bottom: 10px; }
.bubble { margin: 0 8px 10px; padding: 10px 12px; border-radius: 14px; font-size: 11.5px; background: #fff; box-shadow: 0 6px 14px -10px rgba(29, 36, 51, .5); }
.report-mini { display: grid; gap: 8px; opacity: 0; animation: pop .5s var(--ease-out) 2.2s forwards; }
.report-mini b { font-size: 11.5px; }
.report-mini span { color: var(--muted); font-size: 10.5px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; }
.mini-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, var(--accent), #7fa1ff); transform-origin: bottom; transform: scaleY(0); animation: grow-y .8s var(--ease-out) 2.5s forwards; }
@keyframes grow-y { to { transform: scaleY(1); } }
.phone .reply { margin-left: 40px; background: var(--accent); color: #fff; opacity: 0; animation: pop .4s var(--ease-out) 3.1s forwards; }

.sticky {
  left: 190px; top: 392px; width: 150px; padding: 16px 14px; border-radius: 4px;
  font-family: var(--font-hand); font-size: 22px; line-height: 1.15; color: #5a4300;
  background: var(--yellow); box-shadow: 0 20px 30px -20px rgba(29, 36, 51, .6);
  transform: rotate(-7deg); animation: float-b 7s ease-in-out infinite reverse;
}
.stamp {
  left: 28px; top: 350px; padding: 8px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--red-ink); border: 3px solid var(--red); background: rgba(255, 255, 255, .7);
  transform: rotate(-12deg); opacity: 0; animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) 3.8s forwards;
}
@keyframes stamp { from { opacity: 0; scale: 2.2; } to { opacity: .95; scale: 1; } }
@keyframes float-a { 50% { transform: rotate(-5deg) translateY(-8px); } }
@keyframes float-b { 50% { transform: rotate(4deg) translateY(-10px); } }
@keyframes float-c { 50% { transform: rotate(3deg) translateY(-12px); } }

/* ==========================================================================
   Pains
   ========================================================================== */
.e-pains { background: #fff; }
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pain { padding: 14px 14px 26px; border-radius: 24px; background: var(--bg); border: 1px solid var(--line); }
.pain h3 { margin: 22px 12px 8px; font-size: 20px; font-weight: 700; }
.pain p { margin: 0 12px; color: var(--ink-2); font-size: 15.5px; }
.pain-art { position: relative; height: 160px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.badge { position: absolute; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--ink); }
.badge.red { background: var(--red-ink); }
.art-clock { background: #1d2433; }
.art-clock .clock { position: absolute; left: 20px; top: 18px; font: 500 34px var(--font-mono); color: #ff8a80; letter-spacing: .04em; }
.art-clock .stack { position: absolute; right: 26px; bottom: 18px; width: 120px; height: 90px; }
.art-clock .stack i { position: absolute; inset: 0; border-radius: 4px; background: #fff; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .6); }
.art-clock .stack i:nth-child(1) { transform: rotate(-8deg); }
.art-clock .stack i:nth-child(2) { transform: rotate(5deg) translate(4px, -6px); }
.art-clock .stack i:nth-child(3) { transform: rotate(-3deg) translate(-4px, -12px); }
.art-clock .stack i:nth-child(4) { transform: rotate(2deg) translate(2px, -18px); background: repeating-linear-gradient(#fff 0 10px, #dbe5fb 10px 11px); }
.art-clock .badge { left: 20px; bottom: 18px; background: var(--red-ink); }
.art-plans { background: var(--bg-soft); }
.plan { position: absolute; top: 34px; width: 110px; height: 96px; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 700; background: #fff; box-shadow: 0 10px 20px -12px rgba(29, 36, 51, .5); }
.plan::after { content: ""; position: absolute; left: 10px; right: 10px; top: 36px; height: 40px; background: repeating-linear-gradient(var(--line) 0 2px, transparent 2px 12px); }
.p1 { left: 18px; transform: rotate(-8deg); border-top: 5px solid var(--accent); }
.p2 { left: 50%; margin-left: -55px; top: 22px; transform: rotate(3deg); border-top: 5px solid var(--yellow); }
.p3 { right: 18px; transform: rotate(10deg); border-top: 5px solid var(--red); }
.art-chat { background: var(--accent-soft); }
.chat-icon { position: absolute; left: 50%; top: 40px; width: 92px; height: 70px; margin-left: -46px; border-radius: 20px; background: var(--accent); }
.chat-icon::after { content: ""; position: absolute; left: 18px; bottom: -12px; border: 8px solid transparent; border-top: 12px solid var(--accent); }
.art-chat .badge { left: 50%; top: 26px; margin-left: 30px; font-size: 14px; animation: jiggle 2.4s ease-in-out infinite; }
.chat-line { position: absolute; left: 50%; height: 8px; border-radius: 4px; background: #fff; }
.chat-line.l1 { top: 62px; width: 56px; margin-left: -30px; }
.chat-line.l2 { top: 78px; width: 40px; margin-left: -30px; }
@keyframes jiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }

/* ==========================================================================
   Demo
   ========================================================================== */
.e-demo {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(29, 36, 51, .08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.demo-tabs {
  display: flex; gap: 6px; padding: 6px; margin-bottom: 20px; overflow-x: auto;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card);
  scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tabs button {
  flex: 1 0 auto; min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 15px var(--font-sans); color: var(--ink-2); background: transparent; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.demo-tabs button:hover { background: var(--bg-soft); }
.demo-tabs button[aria-selected="true"] { color: #fff; background: var(--ink); }
.demo-panel { padding: clamp(16px, 2.5vw, 28px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.demo-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.demo-panel { position: relative; }
.replay {
  position: absolute; right: 16px; bottom: 12px; z-index: 2; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 600 13px var(--font-sans); color: var(--ink-2); background: var(--bg); border: 1px solid var(--line-strong);
}
.replay::before { content: "↻"; margin-right: 6px; }
.replay:hover { border-color: var(--ink); color: var(--ink); }
.demo-panel:not(.is-playing) *, .demo-panel:not(.is-playing) *::before, .demo-panel:not(.is-playing) *::after { transition: none !important; }

/* grading */
.grade { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; }
.essay {
  padding: 20px 22px 18px 54px; border-radius: 10px;
  background-color: #fffdf8;
  background-image:
    linear-gradient(90deg, transparent 38px, rgba(229, 72, 77, .4) 38px, rgba(229, 72, 77, .4) 40px, transparent 40px),
    repeating-linear-gradient(transparent 0 35px, #dbe5fb 35px 36px);
  background-position: 0 0, 0 58px;
  border: 1px solid var(--line);
}
.essay-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.essay-text { font-family: var(--font-hand); font-size: 22px; line-height: 36px; color: #2b3a67; }
.g-err, .g-good { position: relative; transition: background-size .6s var(--ease-out); transition-delay: calc(var(--s, 0) * 650ms + 300ms); }
.g-good { color: inherit; background-image: linear-gradient(var(--green-soft), var(--green-soft)); background-repeat: no-repeat; background-size: 0% 100%; background-color: transparent; padding: 0 2px; }
.is-playing .g-err, .is-playing .g-good { background-size: 100% 100%; }
.g-err::after, .g-good::after {
  content: attr(data-label); position: absolute; top: -10px; right: -10px; width: 18px; height: 18px; display: grid; place-items: center;
  font: 700 11px var(--font-sans); color: #fff; background: var(--red-ink); border-radius: 50%;
  opacity: 0; scale: .5; transition: opacity .3s, scale .3s var(--ease-out); transition-delay: inherit;
}
.g-good::after { background: var(--green-ink); }
.is-playing .g-err::after, .is-playing .g-good::after { opacity: 1; scale: 1; }
.margin-notes { margin-top: 14px; display: grid; gap: 8px; counter-reset: note; }
.margin-notes li {
  counter-increment: note; position: relative; padding: 8px 12px 8px 38px; border-radius: 10px;
  font-size: 14px; color: var(--ink-2); background: #fff; border: 1px solid var(--line);
  opacity: 0; translate: -8px 0; transition: opacity .4s, translate .5s var(--ease-out);
  transition-delay: calc(var(--s, 0) * 650ms + 550ms);
}
.margin-notes li::before {
  content: counter(note); position: absolute; left: 10px; top: 9px; width: 20px; height: 20px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--red-ink); border-radius: 50%;
}
.margin-notes li.good::before { background: var(--green-ink); }
.margin-notes b { color: var(--red-ink); margin-right: 6px; }
.margin-notes li.good b { color: var(--green-ink); }
.is-playing .margin-notes li { opacity: 1; translate: 0 0; }

.grade-side { position: relative; overflow: clip; padding: 20px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.grade-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.grade + .grade { margin-top: 0; }
.side-title { font-size: 13px; font-weight: 600; color: var(--muted); }
.big-score { margin-top: 4px; font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.big-score small { font-size: 20px; color: var(--muted); }
.bars { display: grid; gap: 10px; margin-top: 10px; }
.bars li { display: grid; grid-template-columns: 80px 1fr 22px; align-items: center; gap: 10px; font-size: 14px; }
.bars li b { text-align: right; }
.bars li i::after { transition: transform 1s var(--ease-out) 3.4s; }
.is-playing .bars li i::after { transform: scaleX(var(--v)); }
.comment { margin-top: 18px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.comment-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ai-text { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.ai-text s {
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 55% / 0% 2px;
  transition: background-size .6s var(--ease-out) 4.4s;
}
.is-playing .ai-text s { background-size: 100% 2px; color: var(--muted); }
.teacher-text {
  margin-top: 8px; font-family: var(--font-hand); font-size: 21px; line-height: 1.3; color: var(--accent-hover);
  clip-path: inset(0 100% 0 0); transition: clip-path 1.2s steps(40) 5s;
}
.is-playing .teacher-text { clip-path: inset(0 0 0 0); }
.comment-sign { margin-top: 6px; font-size: 12.5px; color: var(--muted); opacity: 0; transition: opacity .4s 6.2s; }
.is-playing .comment-sign { opacity: 1; }
.approve-stamp {
  position: absolute; right: 16px; top: 18px; padding: 6px 12px; border: 3px solid var(--green-ink); border-radius: 8px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--green-ink);
  transform: rotate(8deg); opacity: 0; scale: 1.3; transition: opacity .3s 6.6s, scale .45s cubic-bezier(.3, 1.6, .5, 1) 6.6s;
}
.is-playing .approve-stamp { opacity: .95; scale: 1; }

/* lesson plan */
.plan-demo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; }
.plan-controls { display: grid; gap: 16px; align-content: start; }
.plan-controls fieldset { border: 0; margin: 0; padding: 0; }
.plan-controls legend { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 600 14.5px var(--font-sans); color: var(--ink-2); background: #fff; border: 1.5px solid var(--line-strong);
  transition: all .2s;
}
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.plan-output { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fffdf8; min-height: 380px; }
.doc-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.doc-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.doc-bar span { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.doc-body { padding: 18px 20px; font-size: 15px; line-height: 1.6; }
.doc-body p + p { margin-top: 6px; }
.doc-hint { color: var(--muted); }
.doc-title { font-size: 18px; font-weight: 800; }
.doc-sec { font-weight: 700; color: var(--accent-hover); margin-top: 12px !important; }
.doc-warn { padding: 8px 12px; border-radius: 10px; background: var(--yellow-soft); color: #5a4300; font-weight: 600; margin-top: 12px !important; }
.doc-caret { display: inline-block; width: 8px; height: 18px; margin-left: 2px; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: 0; } }

/* parent report */
.report-demo, .alert-demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.phone-lg { position: relative; width: min(100%, 340px); margin-inline: auto; padding: 14px 12px 18px; border-radius: 44px; background: #1d2433; box-shadow: 0 40px 70px -34px rgba(29, 36, 51, .75); }
.phone-lg::before { content: ""; position: absolute; inset: 12px; border-radius: 34px; background: #eef2fa; }
.phone-lg > * { position: relative; }
.phone-lg .chat-name { font-size: 12.5px; }
.chat { min-height: 470px; padding: 0 4px; }
.typing { display: inline-flex; gap: 4px; margin: 6px 12px; padding: 10px 12px; border-radius: 14px; background: #fff; transition: opacity .3s 1.4s; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-4px); opacity: .4; } }
.is-playing .typing { opacity: 0; }
.chat .bubble { font-size: 13px; }
.bubble.report { margin-top: -38px; opacity: 0; translate: 0 12px; transition: opacity .4s 1.6s, translate .5s var(--ease-out) 1.6s; }
.is-playing .bubble.report { opacity: 1; translate: 0 0; }
.r-title { font-weight: 700; font-size: 13px; }
.r-chart { display: flex; align-items: flex-end; gap: 10px; height: 86px; margin: 12px 0 6px; }
.r-chart div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.r-chart i { width: 100%; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, var(--accent), #8aa9ff); transform-origin: bottom; transform: scaleY(0); transition: transform .8s var(--ease-out) 2s; }
.r-chart span { font-size: 10.5px; color: var(--muted); }
.is-playing .r-chart i { transform: scaleY(1); }
.r-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 12px; margin: 8px 0; }
.r-stats b { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.r-teacher { padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); font-family: var(--font-hand); font-size: 17px; line-height: 1.3; color: #2b3a67; }
.r-teacher span { display: block; margin-top: 2px; font-size: 15px; text-align: right; }
.r-foot { margin-top: 8px; font-size: 10.5px; font-weight: 600; color: var(--green-ink); }
.chat .reply { position: relative; margin-left: 70px; background: var(--accent); color: #fff; opacity: 0; translate: 0 10px; transition: opacity .4s 3.6s, translate .5s var(--ease-out) 3.6s; }
.is-playing .chat .reply { opacity: 1; translate: 0 0; }
.heart { position: absolute; left: -12px; bottom: -8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); scale: 0; transition: scale .4s cubic-bezier(.3, 1.8, .5, 1) 4.3s; }
.heart::after { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--red); font-size: 13px; }
.is-playing .heart { scale: 1; }
.report-points { display: grid; gap: 14px; }
.report-points li { position: relative; padding-left: 34px; font-size: 16px; color: var(--ink-2); }
.report-points li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; color: #fff; background: var(--green-ink); }
.report-points b { color: var(--ink); }

/* early warning */
.board { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.board-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 14px 18px; background: var(--ink); color: #fff; font-size: 14px; }
.board-head span { color: #c4cad6; }
.board table { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { text-align: left; padding: 10px 16px; font-size: 12px; color: var(--muted); background: var(--bg-soft); }
.board td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.board tbody tr { opacity: 0; translate: 0 10px; transition: opacity .4s, translate .5s var(--ease-out); }
.board tbody tr:nth-child(1) { transition-delay: .3s; }
.board tbody tr:nth-child(2) { transition-delay: .7s; }
.board tbody tr:nth-child(3) { transition-delay: 1.1s; }
.board tbody tr:nth-child(4) { transition-delay: 1.5s; }
.is-playing .board tbody tr { opacity: 1; translate: 0 0; }
.flag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.flag.red { color: var(--red-ink); background: #fde3e3; }
.flag.amber { color: #7a5200; background: var(--yellow-soft); }
.flag.green { color: var(--green-ink); background: var(--green-soft); }

/* ==========================================================================
   Flow
   ========================================================================== */
.e-flow { background: #fff; }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.flow li { padding: 22px 18px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.flow-no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; color: #fff; background: var(--accent); }
.flow h3 { margin: 14px 0 10px; font-size: 18px; }
.f-ai, .f-human { font-size: 14.5px; color: var(--ink-2); }
.f-ai::before, .f-human::before { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.f-ai::before { content: "AI giúp"; color: var(--accent); }
.f-human { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.f-human::before { content: "Giáo viên chốt"; color: var(--green-ink); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.e-pricing { background: var(--bg-soft); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.tier-featured { border: 2px solid var(--accent); box-shadow: 0 30px 60px -30px rgba(46, 98, 240, .55); transform: translateY(-8px); }
.tier-badge { position: absolute; top: -14px; left: 24px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #5a4300; background: var(--yellow); }
.tier-for { font-size: 13px; font-weight: 700; color: var(--accent); }
.tier h3 { margin-top: 4px; font-size: 24px; font-weight: 800; }
.tier-price { margin-top: 14px; font-size: 24px; font-weight: 800; }
.tier-price small { margin-left: 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
.tier-promise { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-weight: 600; font-size: 15px; }
.tier ul { display: grid; gap: 10px; margin: 18px 0 24px; flex: 1; }
.tier li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.tier li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--green-ink); }
.price-foot { margin-top: 28px; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }

/* ==========================================================================
   Pilot
   ========================================================================== */
.e-pilot { background: #fff; }
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.timeline { position: relative; display: grid; gap: 22px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.timeline span { font-size: 13px; font-weight: 800; color: var(--accent); }
.timeline p { margin-top: 2px; font-size: 16px; color: var(--ink-2); }
.timeline b { color: var(--ink); }
.metrics { padding: 24px; border-radius: 24px; background: var(--bg); border: 1px solid var(--line); }
.metrics-title { font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.metrics ul { display: grid; gap: 12px; }
.metrics li { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.metrics li b { display: block; font-size: 16px; }
.metrics li span { font-size: 14px; color: var(--muted); }
.metrics-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* ==========================================================================
   People
   ========================================================================== */
.e-people { background: var(--bg); }
.people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: stretch; }
.advisor-card { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 26px; border-radius: 26px; background: #fff; border: 2px solid var(--yellow); box-shadow: var(--shadow-card); }
.advisor-photo { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; border: 2px dashed var(--line-strong); background: var(--bg-soft); color: var(--muted); font-size: 13px; }
.advisor-photo.is-icon { border-style: solid; border-color: transparent; background: var(--accent-soft); color: var(--accent-hover); }
.advisor-photo.is-icon svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.advisor-role { font-size: 13px; font-weight: 800; color: #7a5200; }
.advisor-card h3 { margin: 4px 0 8px; font-size: 22px; }
.advisor-card p { font-size: 15px; color: var(--ink-2); }
.advisor-card p + p { margin-top: 8px; }
.team-strip { padding: 26px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.team-mission { font-size: clamp(18px, 1.8vw, 21px); font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; }
.ceo { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.ceo-avatar { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), #6f8ff7); box-shadow: 0 10px 24px -12px rgba(46, 98, 240, .9); }
.ceo-name { font-size: 18px; font-weight: 800; }
.ceo-role { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.team-label { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--muted); }
.names { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.names li { padding: 6px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); }
.team-note { margin-top: 16px; font-size: 14px; }

/* ==========================================================================
   Safety
   ========================================================================== */
.e-safety { background: #f2f6ff; }
.safety-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; }
.safety-list { display: grid; gap: 14px; }
.safety-list li { position: relative; padding: 16px 18px 16px 58px; border-radius: 18px; background: #fff; border: 1px solid #dbe4fb; font-size: 16px; color: var(--ink-2); }
.safety-list li::before {
  content: ""; position: absolute; left: 18px; top: 16px; width: 26px; height: 28px;
  background: var(--accent); clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%);
}
.safety-list b { color: var(--ink); }
.safety-facts { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid #dbe4fb; }
.facts-title { font-weight: 800; margin-bottom: 12px; }
.safety-facts dl { margin: 0 0 16px; display: grid; gap: 10px; }
.safety-facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.safety-facts dd { margin: 2px 0 0; }

/* ==========================================================================
   Compare
   ========================================================================== */
.e-compare { background: var(--bg); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vs-col { padding: 26px; border-radius: 24px; }
.vs-them { background: #fff; border: 1px solid var(--line); }
.vs-us { background: var(--accent); color: #fff; box-shadow: 0 30px 60px -30px rgba(46, 98, 240, .6); }
.vs-title { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.vs ul { display: grid; gap: 12px; }
.vs li { position: relative; padding-left: 30px; font-size: 16px; }
.vs-them li { color: var(--ink-2); }
.vs-them li::before { content: "×"; position: absolute; left: 4px; top: -2px; font-size: 20px; font-weight: 700; color: var(--red-ink); }
.vs-us li::before { content: "✓"; position: absolute; left: 2px; top: 0; font-weight: 800; color: var(--yellow); }
.notfor { margin-top: 18px; padding: 20px 24px; border-radius: 20px; background: #fff; border: 1px dashed var(--line-strong); }
.notfor-title { font-weight: 800; margin-bottom: 8px; }
.notfor li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-2); }
.notfor li + li { margin-top: 6px; }
.notfor li::before { content: "–"; position: absolute; left: 4px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.e-faq { background: #fff; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-wrap .e-head { position: sticky; top: calc(var(--header-h) + 16px); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { padding: 0 22px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.faq-list details[open] { background: #fff; border-color: rgba(46, 98, 240, .45); box-shadow: var(--shadow-card); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: var(--accent); background: var(--accent-soft); transition: transform .3s, background-color .3s, color .3s; }
.faq-list details[open] summary::after { transform: rotate(135deg); color: #fff; background: var(--accent); }
.faq-a { padding: 0 0 20px; color: var(--ink-2); }

/* ==========================================================================
   CTA + form
   ========================================================================== */
.e-cta { background: var(--bg); }
.cta-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 36px; background: var(--ink); color: #fff;
}
.cta-grid .e-eyebrow { color: #5a4300; background: var(--yellow); }
.cta-grid h2 { color: #fff; }
.cta-grid .e-lead { color: #c9cfdb; }
.steps { margin-top: 24px; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; align-items: start; font-size: 15.5px; color: #e4e8f0; }
.step-text { padding-top: 1px; }
.steps li > span:first-child { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 800; color: #5a4300; background: var(--yellow); }
.cta-grid .ph { color: #dfe7ff; background: rgba(46, 98, 240, .3); border-color: rgba(160, 185, 255, .6); }
.cta-direct { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-direct .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta-direct .btn-ghost .ph { font-family: var(--font-sans); }

.e-form { position: relative; display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: 26px; background: #fff; color: var(--ink); }
.e-form::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), var(--yellow), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.e-form:hover::before { opacity: 1; }
.field label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 16px/1.4 var(--font-sans); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46, 98, 240, .18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { margin-top: 6px; font-size: 13.5px; color: var(--red-ink); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.more-fields summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.more-fields[open] summary { margin-bottom: 8px; }
.more-fields .field + .field { margin-top: 14px; }
.form-status { min-height: 1.4em; font-size: 14.5px; color: var(--muted); }
.form-status.is-ok { color: var(--green-ink); font-weight: 600; }
.form-status.is-error { color: var(--red-ink); }

/* ---------- pricing extras ---------- */
.tier-date { margin: -8px 0 14px; font-size: 14px; }
.li-cta::before { content: none !important; }
.li-cta { padding-left: 0 !important; }


/* ---------- savings calculator ---------- */
.roi {
  margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0;
  border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.roi-inputs { padding: clamp(22px, 3vw, 34px); }
.roi-title { font-size: clamp(19px, 1.8vw, 22px); font-weight: 800; letter-spacing: -0.015em; }
.roi-hint { margin-top: 4px; font-size: 14px; color: var(--muted); }
.roi-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.roi-card { margin: 0; padding: 14px 16px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.roi-card legend { padding: 0 6px; margin-left: -6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.roi-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.roi-input {
  display: flex; align-items: center; min-height: 46px; padding: 0 12px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--line-strong); transition: border-color .2s, box-shadow .2s;
}
.roi-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46, 98, 240, .16); }
.roi-input input { flex: 1; width: 100%; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; font: 700 17px var(--font-sans); color: var(--ink); }
.roi-input i { flex: none; margin-left: 8px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }

.roi-slider { display: block; margin-top: 22px; }
.roi-slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; font-weight: 700; }
.roi-slider-head small { font-weight: 500; color: var(--muted); }
.roi-slider output { padding: 2px 10px; border-radius: 999px; font-size: 15px; font-weight: 800; color: #fff; background: var(--accent); }
.roi-slider input[type="range"] {
  --fill: 20%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 4px 0 0; background: transparent; cursor: pointer;
}
.roi-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--fill), var(--line) var(--fill));
}
.roi-slider input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line); }
.roi-slider input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--accent); }
.roi-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 10px -2px rgba(46, 98, 240, .5);
}
.roi-slider input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.roi-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.roi-result {
  display: grid; align-content: start; gap: 14px; padding: clamp(22px, 3vw, 34px);
  color: #fff; background:
    radial-gradient(80% 60% at 100% 0%, rgba(46, 98, 240, .45), transparent 70%),
    var(--ink);
}
.roi-stat { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.roi-ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: var(--yellow); }
.roi-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; line-height: 1; }
.roi-num span { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.035em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.roi-num small { font-size: 14px; font-weight: 600; color: #c9cfdb; }
.roi-cap { margin-top: 6px; font-size: 14px; color: #c9cfdb; }
.roi-cap b { color: #fff; }
.roi-compare { padding: 16px; border-radius: 18px; border: 1px dashed rgba(255, 255, 255, .22); }
.roi-price { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 13.5px; font-weight: 700; color: #e4e8f0; }
.roi-input.on-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.roi-input.on-dark input { color: #fff; }
.roi-input.on-dark input::placeholder { color: #8f97a6; font-weight: 500; }
.roi-input.on-dark i { color: #aeb5c3; }
.roi-meter { height: 8px; margin-top: 12px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.roi-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--yellow); transition: width .5s var(--ease-out); }
.roi-cover { margin-top: 10px; font-size: 13.5px; color: #e4e8f0; }
.roi-note { font-size: 12.5px; line-height: 1.55; color: #9aa3b2; }

.metrics-sub { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.metrics-method { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; color: var(--ink-2); background: #fff; border: 1px dashed var(--line-strong); }

/* ---------- footer ---------- */
.e-footer { padding: 40px 0 48px; background: var(--bg); border-top: 1px solid var(--line); }
.e-footer-inner { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.e-footer .logo { color: var(--ink); }
.e-legal { font-size: 12.5px; }

/* ---------- sticky mobile bar ---------- */
.mobile-bar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 961px) {
  .demo-panel { min-height: 640px; }
}

@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:last-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 84px; }
  .header-pill { position: relative; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; display: none;
    padding: 8px 18px 20px; border-radius: 16px; background: #fff9f2; border: 1px solid var(--line);
    box-shadow: 0 30px 60px -24px rgba(29, 36, 51, .45);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .edu .nav a:not(.btn) { width: 100%; min-height: 54px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 18px; }

  .e-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* show the desk right under the headline instead of after all the copy */
  .e-hero-copy { display: contents; }
  .e-kicker { order: 1; justify-self: start; }
  .e-hero h1 { order: 2; }
  .desk { order: 3; margin: 22px 0 34px; }
  .e-sub { order: 4; margin-top: 0; }
  .e-actions { order: 5; }
  .e-promises { order: 6; }
  .grade-side { order: -1; }
  .roi { grid-template-columns: minmax(0, 1fr); }
  .desk { margin-top: 8px; }
  .pain-grid, .tiers, .grade, .plan-demo, .report-demo, .alert-demo, .pilot-grid, .people, .safety-grid, .vs, .faq-wrap, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .tier-featured { order: -1; transform: none; }
  .faq-wrap .e-head { position: static; }
  .pain-grid { gap: 14px; }
}

@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 75;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px;
    border-radius: 18px; background: rgba(255, 249, 242, .94); border: 1px solid var(--line);
    box-shadow: 0 18px 40px -16px rgba(29, 36, 51, .5);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    translate: 0 140%; transition: translate .4s var(--ease-out);
  }
  .mobile-bar.is-shown { translate: 0 0; }
  .mobile-bar .btn { min-height: 48px; padding: 8px 10px; font-size: 15px; }
  .mobile-bar .btn-zalo { background: #fff; color: var(--zalo); border: 1.5px solid var(--zalo); box-shadow: none; }
  body.edu { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .e-actions .btn { width: 100%; }
  .flow { grid-template-columns: 1fr; }
  .advisor-card { grid-template-columns: 1fr; }
  .advisor-photo { width: 88px; height: 88px; }
  .essay { padding-left: 46px; }
  .essay-text { font-size: 20px; }
  .bars li { grid-template-columns: 70px 1fr 20px; }
  .roi-cards { grid-template-columns: minmax(0, 1fr); }
  .roi-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; align-items: end; }
  .roi-field { font-size: 12.5px; }
  .roi-input { padding: 0 10px; }
  .roi-input i { font-size: 11.5px; margin-left: 4px; }
  .board td, .board th { padding: 10px; }
  .board table { font-size: 13px; }
  .cta-grid { border-radius: 26px; }
  .demo-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; overflow: visible; }
  .demo-tabs button { white-space: normal; padding: 6px 10px; line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  .e-in, .marker, .hl-err, .pen-fix, .paper-grade, .report-mini, .mini-bars i, .phone .reply, .stamp,
  .rubric li i::after { animation: none !important; opacity: 1; transform: none; background-size: 100% 100%; }
  .rubric li i::after { transform: scaleX(var(--v)); }
  .stamp { transform: rotate(-12deg); }
  .paper, .rubric, .phone, .sticky, .art-chat .badge, .btn-shine::after { animation: none !important; }
  .demo-panel *, .demo-panel *::before, .demo-panel *::after { transition: none !important; }
  .mobile-bar { transition: none; }
}
