/* CodeJunior Academy - demo tĩnh, không JavaScript */

:root {
  --bg: #F7F7FF;
  --bg-tint: #EFEDFF;
  --surface: #FFFFFF;
  --ink: #1E1B4B;
  --muted: #4A4D75;
  --line: #D7D3F3;
  --violet: #6D28D9;
  --violet-d: #4C1D95;
  --violet-l: #EDE9FE;
  --teal: #14B8A6;
  --teal-d: #0F766E;
  --teal-l: #CCFBF1;
  --sun: #FBBF24;
  --sun-d: #78350F;
  --sun-l: #FEF3C7;
  --coral: #F43F5E;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6rem;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --shadow-sm: 0 2px 0 rgba(30, 27, 75, .08), 0 6px 16px rgba(76, 29, 149, .08);
  --shadow-md: 0 4px 0 rgba(30, 27, 75, .1), 0 18px 40px rgba(76, 29, 149, .14);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s5); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(109, 40, 217, .16) 1.2px, transparent 1.5px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 var(--s3); letter-spacing: -.01em; }
h1 { font-size: clamp(2.15rem, 1.35rem + 3.8vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.65rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--violet); text-underline-offset: .18em; }
a:hover { color: var(--violet-d); }
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.demo-day :focus-visible, .site-footer :focus-visible, .price-hot :focus-visible { outline-color: var(--sun); }

.skip-link {
  position: absolute; left: var(--s4); top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s3) var(--s4);
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s3); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s4); }
.wrap-narrow { max-width: 820px; }

/* Icons */
.ic { width: 1.35rem; height: 1.35rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.ic-star { width: 1.2rem; height: 1.2rem; color: #B45309; }
.ic-star.off { color: #C9C4E8; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: .7rem 1.4rem;
  font: 600 1rem/1.2 var(--font-head);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 4px 0 var(--violet-d); }
.btn-primary:hover { color: #fff; background: #5B21B6; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 #B45309; }
.btn-sun:hover { color: var(--ink); background: #FCD34D; }
.btn-ghost { background: var(--surface); color: var(--violet-d); border-color: var(--violet); }
.btn-ghost:hover { background: var(--violet-l); color: var(--violet-d); }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; box-shadow: 0 3px 0 #B45309; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: relative; z-index: 20; background: rgba(247, 247, 255, .94); border-bottom: 2px solid var(--line); }
.header-inner { display: flex; flex-direction: column; gap: var(--s2); padding-block: var(--s3); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { font: 700 1.25rem/1 var(--font-head); display: flex; flex-direction: column; }
.brand-text small { font: 500 .7rem/1.4 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-d); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--s1); }
.nav li a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3);
  font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; border-radius: 999px;
}
.nav li a:not(.btn):hover { background: var(--violet-l); color: var(--violet-d); }

/* Hero */
.hero {
  position: relative;
  padding-block: var(--s6) var(--s8);
  background-image:
    linear-gradient(rgba(20, 184, 166, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, .14) 1px, transparent 1px),
    radial-gradient(60% 60% at 85% 10%, rgba(251, 191, 36, .28), transparent 70%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
.eyebrow { font-size: .875rem; font-weight: 500; letter-spacing: .04em; color: var(--teal-d); margin-bottom: var(--s3); }
.eyebrow-light { color: #5EEAD4; }
.hl { color: var(--violet); background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding-inline: .1em; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-block: var(--s5); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); padding-top: var(--s4); border-top: 2px dashed var(--line); }
.stat-row strong { display: block; font-size: clamp(1.15rem, 1rem + 1vw, 1.7rem); color: var(--violet); line-height: 1.2; }
.stat-row span { display: block; font-size: .875rem; color: var(--muted); line-height: 1.4; margin-top: var(--s1); }

.hero-art { position: relative; padding-bottom: var(--s2); }
.editor {
  margin: 0; background: var(--ink); color: #E0E7FF; border-radius: var(--r-md);
  box-shadow: 8px 8px 0 var(--violet), 0 24px 50px rgba(30, 27, 75, .3); overflow: hidden;
}
.editor-bar { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); background: #2B2775; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.d1 { background: var(--coral); } .d2 { background: var(--sun); } .d3 { background: var(--teal); }
.tab { margin-left: var(--s3); padding: .2rem .8rem; font-size: .8rem; background: var(--ink); border-radius: 8px 8px 0 0; color: #C7D2FE; }
.code { font-size: .875rem; line-height: 1.75; padding: var(--s4) var(--s4) var(--s4) 2.8rem; margin: 0; counter-reset: none; list-style: decimal; }
.code li { min-height: 1.75em; padding-left: var(--s2); white-space: pre-wrap; overflow-wrap: anywhere; }
.code li::marker { color: #8B8DD0; font-size: .8rem; }
.kw { color: #F0ABFC; } .fn { color: #5EEAD4; } .str { color: #FCD34D; } .num { color: #FDBA74; } .com { color: #A5B4FC; font-style: italic; }
.console { padding: var(--s3) var(--s4) var(--s4); background: #14113A; font-size: .85rem; line-height: 1.7; }
.console .prompt { color: #5EEAD4; }
.run-ok { display: block; color: #86EFAC; }

.mascot { display: flex; align-items: flex-end; justify-content: flex-end; gap: var(--s3); margin-top: calc(var(--s5) * -1); position: relative; padding-right: var(--s2); }
.mascot-svg { width: 96px; height: auto; filter: drop-shadow(0 8px 10px rgba(30, 27, 75, .25)); }
.bubble {
  position: relative; margin: 0 0 var(--s6); max-width: 13rem; padding: var(--s3) var(--s4);
  background: var(--sun); color: var(--ink); font: 600 .9rem/1.4 var(--font-head);
  border-radius: var(--r-md); border-bottom-right-radius: 4px; box-shadow: var(--shadow-sm);
}
.float-chip { display: none; }

/* Sections */
.section { padding-block: var(--s8); }
.section-tint {
  background-color: var(--bg-tint);
  background-image:
    linear-gradient(rgba(109, 40, 217, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 40, 217, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  border-block: 2px solid var(--line);
}
.section-head { max-width: 46rem; margin-bottom: var(--s7); }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

/* Roadmap */
.roadmap { position: relative; display: grid; gap: var(--s5); }
.roadmap::before {
  content: ""; position: absolute; left: 24px; top: 8px; bottom: 8px; width: 0;
  border-left: 4px dashed var(--teal);
}
.stage { position: relative; padding-left: 64px; }
.stage-badge {
  position: absolute; left: 0; top: var(--s4); z-index: 1;
  width: 52px; height: 52px; display: grid; place-items: center;
  font-weight: 500; font-size: 1.05rem; color: #fff; background: var(--violet);
  border: 4px solid var(--bg); border-radius: 16px; box-shadow: 0 0 0 3px var(--violet);
}
.s2 .stage-badge { background: var(--teal-d); box-shadow: 0 0 0 3px var(--teal-d); }
.s3 .stage-badge { background: #B45309; box-shadow: 0 0 0 3px #B45309; }
.s4 .stage-badge { background: var(--ink); box-shadow: 0 0 0 3px var(--ink); }
.stage-card {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md);
  padding: var(--s5); box-shadow: var(--shadow-sm);
}
.stage-card > p:not(.stage-meta):not(.outcome) { color: var(--muted); }
.stage-meta { font-size: .8rem; color: var(--violet); font-weight: 500; margin-bottom: var(--s2); text-transform: uppercase; letter-spacing: .05em; }
.outcome {
  display: flex; gap: var(--s2); align-items: flex-start; margin: var(--s4) 0 0; padding: var(--s3);
  background: var(--sun-l); border-radius: var(--r-sm); color: var(--sun-d); font-size: .95rem; line-height: 1.5;
}
.outcome .ic { margin-top: .1rem; }

/* Courses */
.course-grid { display: grid; gap: var(--s5); }
.course {
  position: relative; padding: var(--s5); border-radius: var(--r-lg); border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column;
}
.c-violet { background: var(--violet-l); }
.c-teal { background: var(--teal-l); }
.c-sun { background: var(--sun-l); }
.age-chip { align-self: flex-start; background: var(--ink); color: #fff; font-size: .8rem; padding: .25rem .8rem; border-radius: 999px; margin-bottom: var(--s4); }
.course-ic {
  width: 56px; height: 56px; padding: 12px; margin-bottom: var(--s3);
  background: #fff; border: 2px solid var(--ink); border-radius: 16px; color: var(--violet);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.c-teal .course-ic { color: var(--teal-d); }
.c-sun .course-ic { color: #B45309; }
.course p { color: #33365E; }
.meta { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: .8rem; margin-top: auto; padding-top: var(--s3); }
.meta li { background: rgba(255, 255, 255, .75); border: 1px solid rgba(30, 27, 75, .25); border-radius: 8px; padding: .15rem .55rem; }
.level { display: flex; gap: var(--s1); margin: var(--s3) 0 0; }
.level i { flex: 1; height: 8px; border-radius: 4px; background: var(--ink); }
.level i.off { background: rgba(30, 27, 75, .18); }

/* Projects */
.project-grid { display: grid; gap: var(--s5); }
.project { margin: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: 6px 6px 0 var(--teal); }
.project svg { display: block; width: 100%; height: auto; border-bottom: 2px solid var(--ink); }
.project figcaption { display: grid; gap: var(--s1); padding: var(--s4) var(--s5) var(--s5); }
.project strong { font: 700 1.15rem/1.3 var(--font-head); }
.project small { color: var(--muted); font-size: .9rem; }
.tag { justify-self: start; font-size: .75rem; padding: .1rem .6rem; background: var(--teal-l); color: #115E59; border-radius: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

/* Teachers */
.teacher-grid { display: grid; gap: var(--s5); }
.teacher { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.avatar { width: 88px; height: 88px; margin-bottom: var(--s3); }
.teacher .role { color: var(--teal-d); font-size: .85rem; font-weight: 500; margin-bottom: var(--s3); }
.teacher p:last-child { color: var(--muted); margin-bottom: 0; font-size: .97rem; }
.av-bg { fill: var(--av-bg); } .av-shirt { fill: var(--av-shirt); } .av-skin { fill: var(--av-skin); } .av-hair { fill: var(--av-hair); }
.t1 { --av-bg: #EDE9FE; --av-shirt: #6D28D9; --av-skin: #F3C9A5; --av-hair: #1E1B4B; }
.t2 { --av-bg: #CCFBF1; --av-shirt: #0F766E; --av-skin: #E8B48C; --av-hair: #7C2D12; }
.t3 { --av-bg: #FEF3C7; --av-shirt: #1E1B4B; --av-skin: #D9A47A; --av-hair: #292524; }
.t4 { --av-bg: #FCE7F3; --av-shirt: #BE185D; --av-skin: #F5D0B0; --av-hair: #44403C; }

/* Tables */
.table-scroll { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--surface); box-shadow: 6px 6px 0 var(--violet); }
.table-scroll:focus-visible { outline-offset: 4px; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.compare { min-width: 680px; }
.schedule { min-width: 700px; }
th, td { padding: var(--s3) var(--s4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { background: var(--ink); color: #fff; font: 600 .95rem/1.3 var(--font-head); border-bottom: 0; white-space: nowrap; }
thead th .ic { margin-right: var(--s1); color: var(--sun); }
tbody th { font-weight: 600; background: var(--violet-l); color: var(--violet-d); width: 9rem; }
.compare td { color: #33365E; }
.schedule td, .schedule tbody th { vertical-align: middle; }
.schedule tbody th { width: 9.5rem; font-size: .85rem; }
.slot { display: inline-block; padding: .3rem .7rem; border-radius: 8px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.s-violet { background: var(--violet-l); color: var(--violet-d); }
.s-teal { background: var(--teal-l); color: #115E59; }
.s-sun { background: var(--sun-l); color: var(--sun-d); }
.empty { color: #5B5E86; font-size: .9rem; }

/* Demo day */
.demo-day {
  position: relative; padding-block: var(--s9) var(--s8); color: #EDE9FE;
  background:
    radial-gradient(50% 60% at 90% 0%, rgba(20, 184, 166, .35), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(251, 191, 36, .16), transparent 70%),
    linear-gradient(160deg, #2E1065, #4C1D95 60%, #3B0F8C);
}
.demo-day h2 { color: #fff; }
.bunting {
  position: absolute; left: 0; right: 0; top: 0; height: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='44' viewBox='0 0 160 44'%3E%3Cpath d='M0 4Q20 12 40 4' stroke='%23FBBF24' stroke-width='2' fill='none'/%3E%3Cpath d='M40 4Q60 12 80 4' stroke='%23FBBF24' stroke-width='2' fill='none'/%3E%3Cpath d='M80 4Q100 12 120 4' stroke='%23FBBF24' stroke-width='2' fill='none'/%3E%3Cpath d='M120 4Q140 12 160 4' stroke='%23FBBF24' stroke-width='2' fill='none'/%3E%3Cpath d='M6 7l14 30 14-27z' fill='%23FBBF24'/%3E%3Cpath d='M46 9l14 28 14-26z' fill='%232DD4BF'/%3E%3Cpath d='M86 9l14 28 14-26z' fill='%23F0ABFC'/%3E%3Cpath d='M126 8l14 29 14-27z' fill='%23FFFFFF'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 160px 44px;
}
.demo-grid { display: grid; gap: var(--s7); }
.lead-light { font-size: 1.1rem; color: #DDD6FE; }
.demo-facts { display: grid; gap: var(--s3); margin-top: var(--s5); }
.demo-facts li { display: flex; gap: var(--s3); align-items: flex-start; color: #fff; }
.demo-facts .ic { color: var(--sun); margin-top: .2rem; }
.demo-steps { display: grid; gap: var(--s3); counter-reset: none; }
.demo-steps li {
  display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s4);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-md);
}
.demo-steps span { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--sun); color: var(--ink); font-weight: 500; }
.demo-steps h3 { color: #fff; margin-bottom: var(--s1); font-size: 1.1rem; }
.demo-steps p { margin: 0; color: #DDD6FE; font-size: .95rem; }

/* Testimonials */
.quote-grid { display: grid; gap: var(--s5); }
.quote {
  margin: 0; padding: var(--s5); background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--r-lg); position: relative; display: flex; flex-direction: column;
}
.quote::before { content: "\201C"; position: absolute; right: var(--s5); top: var(--s2); font: 700 4.5rem/1 var(--font-head); color: var(--violet-l); }
.stars { display: flex; gap: 2px; margin-bottom: var(--s3); }
.quote > p:not(.stars) { color: #33365E; }
.quote footer { margin-top: auto; padding-top: var(--s3); border-top: 2px dashed var(--line); font-size: .92rem; color: var(--muted); }
.quote footer strong { color: var(--ink); }

/* Pricing */
.price-grid { display: grid; gap: var(--s5); align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: var(--s5); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--ink); }
.price .btn { margin-top: auto; }
.amount { margin: var(--s2) 0 var(--s4); }
.amount strong { display: block; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); line-height: 1.2; color: var(--violet); }
.amount span { color: var(--muted); font-size: .95rem; }
.ticks { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.ticks li { display: flex; gap: var(--s2); align-items: flex-start; }
.ticks .ic { color: var(--teal-d); margin-top: .15rem; stroke-width: 3; }
.price-hot { background: var(--violet); color: #fff; box-shadow: 6px 6px 0 var(--sun); }
.price-hot h3, .price-hot .amount strong { color: #fff; }
.price-hot .amount span { color: #DDD6FE; }
.price-hot .ticks .ic { color: var(--sun); }
.ribbon { position: absolute; top: -14px; left: var(--s5); margin: 0; padding: .2rem .9rem; background: var(--sun); color: var(--ink); font-size: .78rem; font-weight: 500; border-radius: 999px; border: 2px solid var(--ink); }

/* FAQ */
.faq { display: grid; gap: var(--s3); }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq details[open] { border-color: var(--violet); }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 56px; cursor: pointer;
  padding: var(--s3) 3.25rem var(--s3) var(--s4); font: 600 1.05rem/1.4 var(--font-head); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: var(--s3); top: 50%; margin-top: -16px; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%; background: var(--violet-l); color: var(--violet-d); font: 500 1.4rem/1 var(--font-mono);
}
.faq details[open] summary::after { content: "\2212"; background: var(--violet); color: #fff; }
.faq summary:hover { background: var(--violet-l); }
.faq details p { margin: 0; padding: 0 var(--s4) var(--s4); color: var(--muted); }

/* Trial form */
.trial { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); border-top: 2px solid var(--line); }
.trial-grid { display: grid; gap: var(--s6); align-items: start; }
.trial-copy > p { color: var(--muted); font-size: 1.05rem; }
.trial-robot { display: none; width: 150px; margin-top: var(--s4); }
.form { padding: var(--s5); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--sun); display: grid; gap: var(--s4); }
.field { display: grid; gap: var(--s1); min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; gap: var(--s4); }
.form label, .form legend { font-weight: 600; font-size: .95rem; padding: 0; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 48px; padding: .65rem var(--s3); font: inherit; color: var(--ink);
  background: var(--bg); border: 2px solid #6B66A3; border-radius: var(--r-sm);
}
.form textarea { resize: vertical; min-height: 96px; }
.form ::placeholder { color: #6B6E96; opacity: 1; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-color: var(--violet); }
.radios { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.radios legend { margin-bottom: var(--s2); }
.radios label { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s3); border: 2px solid var(--line); border-radius: 999px; font-weight: 500; cursor: pointer; }
.radios input { width: 20px; height: 20px; accent-color: var(--violet); }
.form-note { margin: 0; font-size: .875rem; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { background: var(--ink); color: #C7D2FE; padding-top: var(--s8); }
.footer-grid { display: grid; gap: var(--s6); padding-bottom: var(--s6); }
.brand-footer { color: #fff; }
.brand-footer .brand-text small { color: #5EEAD4; }
.foot-note { margin-top: var(--s3); max-width: 22rem; }
.foot-title { font: 700 1rem/1.3 var(--font-head); color: #fff; margin-bottom: var(--s3); }
.foot-list { display: grid; gap: var(--s3); }
.foot-list li { display: flex; gap: var(--s2); align-items: flex-start; }
.foot-list .ic { color: var(--sun); margin-top: .2rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: #E0E7FF; }
.foot-links a:hover { color: var(--sun); }
.footer-bottom { display: flex; flex-direction: column; gap: var(--s2); padding-block: var(--s5); border-top: 1px solid rgba(255, 255, 255, .15); font-size: .875rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #E0E7FF; display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom a:hover { color: var(--sun); }

/* Tablet */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .course-grid, .project-grid, .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .code { font-size: 1rem; }
  .bubble { max-width: 16rem; font-size: 1rem; }
  .mascot-svg { width: 120px; }
}

/* Desktop */
@media (min-width: 900px) {
  html { scroll-padding-top: 5.5rem; }
  .site-header { position: sticky; top: 0; backdrop-filter: blur(10px); }
  .header-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .nav { flex-wrap: nowrap; gap: var(--s4); }
  .section { padding-block: var(--s9); }
  .hero { padding-block: var(--s8) var(--s9); }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: var(--s7); }
  .mascot { position: absolute; right: -28px; bottom: -92px; margin: 0; padding: 0; }
  .float-chip {
    display: block; position: absolute; padding: .35rem .8rem; font-size: .8rem; font-weight: 500;
    background: var(--surface); border: 2px solid var(--ink); border-radius: 10px; color: var(--ink); box-shadow: 3px 3px 0 var(--teal);
  }
  .chip-1 { top: -22px; right: 16px; transform: rotate(3deg); }
  .chip-2 { bottom: -26px; left: -18px; transform: rotate(-4deg); }

  .roadmap { gap: var(--s6); }
  .roadmap::before { left: 50%; margin-left: -2px; }
  .stage { padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .stage-badge { left: 50%; margin-left: -26px; top: var(--s5); width: 56px; height: 56px; }
  .stage:nth-child(odd) .stage-card { grid-column: 1; margin-right: var(--s7); }
  .stage:nth-child(even) .stage-card { grid-column: 2; margin-left: var(--s7); }
  .stage-card { position: relative; }
  .stage:nth-child(odd) .stage-card::after, .stage:nth-child(even) .stage-card::after {
    content: ""; position: absolute; top: calc(var(--s5) + 26px); width: var(--s7); border-top: 3px dashed var(--teal);
  }
  .stage:nth-child(odd) .stage-card::after { right: calc(var(--s7) * -1 + 28px); width: calc(var(--s7) - 28px); }
  .stage:nth-child(even) .stage-card::after { left: calc(var(--s7) * -1 + 28px); width: calc(var(--s7) - 28px); }

  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
  .teacher-grid { grid-template-columns: repeat(4, 1fr); }
  .demo-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--s8); }
  .quote-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .price-hot { transform: translateY(-14px); }
  .trial-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s8); }
  .trial-robot { display: block; }
  .form { padding: var(--s6); }
}

@media (min-width: 1200px) {
  .course-grid { gap: var(--s6); }
}

/* Chuyển động: chỉ bật khi người dùng không tắt hiệu ứng */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .course, .project, .teacher, .quote { transition: transform .2s ease; }
  .btn:hover { transform: translateY(-2px); }
  .course:hover, .project:hover, .teacher:hover, .quote:hover { transform: translateY(-4px); }
  .mascot-svg { animation: bob 3.2s ease-in-out infinite; }
  .float-chip.chip-1 { animation: drift 5s ease-in-out infinite; }
  .float-chip.chip-2 { animation: drift 6s ease-in-out infinite reverse; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Màn hình rất nhỏ (360px) */
@media (max-width: 400px) {
  .wrap { padding-inline: var(--s3); }
  .brand-text { font-size: 1.15rem; }
  .nav li a:not(.btn) { padding: 0 .6rem; font-size: .9rem; }
  .stat-row { gap: var(--s2); }
  .code { font-size: .8rem; padding-left: 2.4rem; }
  .stage { padding-left: 58px; }
  .stage-badge { width: 46px; height: 46px; }
  .roadmap::before { left: 21px; }
  .stage-card, .course, .price, .form { padding: var(--s4); }
  .radios label { padding: 0 var(--s2); }
}

/* Màn hình lớn */
@media (min-width: 1400px) {
  :root { --maxw: 1260px; }
  .hero-grid { gap: var(--s8); }
}

/* Chế độ tương phản cao */
@media (forced-colors: active) {
  body, .section-tint, .hero { background-image: none; }
  .btn, .course, .project, .price, .stage-card, .form { border: 2px solid CanvasText; }
  .level i { background: CanvasText; }
  .level i.off { background: GrayText; }
}

/* In ra giấy */
@media print {
  .site-header, .cta-row, .form, .float-chip, .skip-link, .bunting { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .demo-day, .site-footer, .price-hot { background: #fff !important; color: #000 !important; }
  .demo-day h2, .demo-day h3, .demo-day p, .lead-light, .price-hot h3, .price-hot .amount strong { color: #000 !important; }
  .course, .project, .price, .stage-card, .quote { break-inside: avoid; }
}
