/* =========================================================================
   Astro English Center — site.css
   Brand: xanh #0365D1 + cam #FF6329 (Brand Guideline). CTA dùng cam đậm
   #CF430E để chữ trắng đạt tương phản AA. Motif Astro (quỹ đạo, chấm, sao)
   chỉ dùng tiết chế.
   ========================================================================= */

:root {
  --blue: #0365d1;
  --blue-600: #0457b5;
  --blue-50: #eef5fe;
  --blue-100: #d9e8fc;
  --navy: #17396b;
  --ink: #14243d;
  --muted: #4a5a73;
  --orange: #ff6329;
  --cta: #cf430e;
  --cta-hover: #b23a0c;
  --orange-50: #fff1ea;
  --yellow: #ffd800;
  --yellow-50: #fff8d1;
  --lime: #bcf89e;
  --lime-50: #effce6;
  --cyan: #00d7ff;
  --warm: #fff8f1;
  --soft: #f3f8fe;
  --line: #e2e8f1;
  --white: #ffffff;

  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 36, 61, 0.06), 0 4px 12px rgba(20, 36, 61, 0.05);
  --shadow: 0 2px 4px rgba(20, 36, 61, 0.05), 0 16px 40px rgba(20, 36, 61, 0.09);

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --gutter: 20px;
  --section-y: clamp(64px, 8vw, 112px);
  --header-h: 72px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

h1,
h2,
h3 {
  color: var(--navy);
  margin: 0;
}
h1,
h2 {
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.05rem, 1.25rem + 3.4vw, 3.55rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.18rem;
  line-height: 1.35;
  font-weight: 700;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--blue);
}
strong {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.section-blue :focus-visible,
.offer-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--yellow);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

/* ------------------------------- Buttons ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn .icon {
  flex: none;
  transition: transform 0.2s ease;
}
.btn:hover .icon {
  transform: translateX(2px);
}
.btn-primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(207, 67, 14, 0.25);
}
.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(207, 67, 14, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: #c9d5e6;
}
.btn-ghost:hover {
  background: var(--blue-50);
  border-color: var(--blue);
  color: var(--blue-600);
}
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}
.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-block: 4px;
}
.text-link:hover {
  border-bottom-color: currentColor;
}

/* -------------------------------- Header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(20, 36, 61, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  flex: none;
  display: block;
  border-radius: 8px;
}
.brand img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: none;
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.main-nav a:hover {
  background: var(--blue-50);
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--orange);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 4px;
}
.header-phone:hover {
  color: var(--blue);
}
.header-cta {
  display: none;
}
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.menu-icon-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .menu-icon-close {
  display: block;
}
.mobile-menu {
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 40px rgba(20, 36, 61, 0.12);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.mobile-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu li a .icon {
  color: var(--blue);
}
.mobile-menu li a[aria-current="page"] {
  color: var(--blue);
}
.mobile-menu-cta {
  display: grid;
  gap: 10px;
  padding: 16px 0 24px;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}
@media (min-width: 1040px) {
  .main-nav {
    display: block;
  }
  .header-actions {
    margin-left: 12px;
  }
  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
  .brand img {
    height: 42px;
  }
}
@media (min-width: 1240px) {
  .header-phone {
    display: inline-flex;
  }
}

/* ------------------------------- Sections ------------------------------- */

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section-tight {
  padding-top: clamp(32px, 4vw, 48px);
}
.section-warm {
  background: var(--warm);
}
.section-soft {
  background: var(--soft);
}
.section-blue {
  background: var(--blue);
  color: #fff;
  overflow: hidden;
}
.section-blue h2,
.section-blue h3 {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cta);
}
.eyebrow-on-dark {
  color: var(--yellow);
}
.eyebrow-pill {
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 600;
  letter-spacing: 0;
}
.eyebrow-star {
  width: 18px;
  height: 18px;
  color: var(--orange);
}
.lead {
  margin-top: 16px;
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
}
.section-blue .lead {
  color: #e3eefd;
}
.h2-sm {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  margin-bottom: 28px;
}
.fine-print {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}
.fine-print .icon {
  color: var(--orange);
  margin-top: 4px;
  flex: none;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
}

/* Tones */
.tone-blue {
  --tone: var(--blue);
  --tone-bg: var(--blue-50);
}
.tone-orange {
  --tone: var(--orange);
  --tone-bg: var(--orange-50);
}
.tone-yellow {
  --tone: #e0b800;
  --tone-bg: var(--yellow-50);
}
.tone-lime {
  --tone: #6cc24a;
  --tone-bg: var(--lime-50);
}

/* Decorative */
.deco-star {
  position: absolute;
  color: var(--yellow);
  pointer-events: none;
}
.orbit {
  position: absolute;
  color: var(--blue-100);
  pointer-events: none;
}
.orbit-dot {
  fill: var(--orange);
}

/* --------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(64px, 8vw, 104px);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--soft) 100%);
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin-top: 4px;
}
.hl {
  background: linear-gradient(180deg, transparent 64%, var(--yellow) 64%, var(--yellow) 90%, transparent 90%);
  padding-inline: 0.06em;
}
.hero-lead {
  margin-top: 20px;
  max-width: 560px;
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem);
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  display: grid;
  gap: 2px;
  padding-inline: 20px;
  border-left: 1px solid var(--line);
}
.hero-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}
.hero-facts strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.hero-facts span {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-media {
  position: relative;
  padding: 0 0 32px 0;
  max-width: 620px;
  width: 100%;
  margin-inline: auto;
}
.orbit-hero {
  width: 118%;
  left: -9%;
  top: -12%;
  animation: spin 80s linear infinite;
}
.hero-photo-main {
  position: relative;
  margin: 0 0 0 12%;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.3;
  background: var(--blue-50);
}
.hero-photo-main img,
.hero-photo-sub img,
.framed img,
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-main .pic,
.hero-photo-sub .pic,
.framed .pic,
.gallery .pic {
  height: 100%;
}
.hero-photo-main figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}
.hero-photo-sub {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute;
  top: 18px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}
.hero-badge-dots {
  display: inline-grid;
  grid-template-columns: repeat(3, 8px);
  gap: 3px;
}
.hero-badge-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.hero-badge-dots i:nth-child(n + 5) {
  background: var(--orange);
}
.hero-star {
  width: 54px;
  left: 4%;
  top: -18px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .hero-media {
    padding-bottom: 40px;
  }
}
@media (max-width: 479px) {
  .hero-facts li {
    padding-inline: 12px;
  }
  .hero-facts strong {
    font-size: 1.15rem;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .hero-badge {
    top: 10px;
    right: 0;
    font-size: 0.82rem;
    padding: 8px 12px;
  }
  .hero-photo-main figcaption {
    display: none;
  }
}

/* ---------------------------- Tuần học của con ---------------------------- */

.week-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.week-slot {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--tone-bg);
  border-left: 5px solid var(--tone);
}
.week-slot-num {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.week-slot-label {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.week-cards {
  display: grid;
  gap: 16px;
}
.week-card {
  position: relative;
  overflow: hidden;
  padding-top: 32px;
}
.week-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--tone);
}
.week-count {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tone-bg);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}
.week-card h3 {
  margin-bottom: 10px;
}
.week-card p:last-child {
  color: var(--muted);
}

@media (min-width: 720px) {
  .week-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .week-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* --------------------------------- Split --------------------------------- */

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 88px);
  }
  .split-reverse {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.split-media {
  position: relative;
}
.framed {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  background: var(--blue-50);
}
.split-star {
  width: 64px;
  right: -14px;
  bottom: -22px;
  color: var(--orange);
}

.check-list,
.feature-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.check-list li,
.feature-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}
.check-list li > .icon,
.feature-list li > .icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 14px;
  background: var(--orange-50);
  color: var(--cta);
}
.feature-list li > .icon {
  background: var(--blue-50);
  color: var(--blue);
}
.check-list strong,
.feature-list h3 {
  display: block;
  color: var(--navy);
  font-size: 1.08rem;
  margin-bottom: 2px;
}
.check-list span,
.feature-list p {
  color: var(--muted);
}

/* ------------------------------ Hoạt động (collage) ------------------------------ */
/* Ô ảnh đặt theo slot (a1–a4 mỹ thuật, p1–p3 gốm, trip dã ngoại) — xem `activities` trong site.ts. */

.act-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "head head"
    "a1   a2"
    "a3   a4"
    "p1   p1"
    "p2   p3"
    "trip trip";
  gap: 12px;
}
.act-head {
  grid-area: head;
  margin-bottom: 12px;
}
.act-head h2 {
  color: var(--blue);
}
.act-accent {
  color: var(--cta);
}
.act-a1 { grid-area: a1; }
.act-a2 { grid-area: a2; }
.act-a3 { grid-area: a3; }
.act-a4 { grid-area: a4; }
.act-p1 { grid-area: p1; }
.act-p2 { grid-area: p2; }
.act-p3 { grid-area: p3; }
.act-trip { grid-area: trip; }

.act-tile {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--blue-50);
  box-shadow: var(--shadow-sm);
}
/* Ảnh không góp chiều cao: ô tự cao theo aspect-ratio (hoặc theo hàng, với .act-trip) */
.act-tile .pic {
  position: absolute;
  inset: 0;
  display: block;
}
.act-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.act-tile figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}
/* Mobile: ảnh gốm đầu và ảnh dã ngoại nằm ngang, full hàng */
.act-p1,
.act-trip {
  aspect-ratio: 4 / 3;
}
.act-p1 img {
  object-position: 50% 30%;
}
.act-trip img {
  object-position: 50% 75%;
}

@media (min-width: 640px) {
  .act-collage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "head head head"
      "a1   a2   a3"
      "a4   p1   p2"
      "trip trip p3";
    gap: 16px;
  }
  .act-p1 {
    aspect-ratio: 3 / 4;
  }
  /* Ảnh dã ngoại cao bằng ảnh dọc cùng hàng */
  .act-trip {
    aspect-ratio: auto;
  }
}
@media (min-width: 1024px) {
  .act-collage {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "head head a1 a2"
      "a3   a4   p1 p2"
      "trip trip trip p3";
    gap: 18px;
  }
  .act-head {
    align-self: center;
    padding-right: 24px;
    margin-bottom: 0;
  }
}

/* ------------------------------ Method path ------------------------------ */

.path {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.path-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 18px;
  padding-bottom: 20px;
}
.path-step::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: -8px;
  border-left: 2px dashed var(--blue-100);
}
.path-step:last-child::before {
  display: none;
}
.path-step .path-dot {
  grid-row: span 2;
}
.path-step h3 {
  align-self: center;
  margin-top: 10px;
}
.path-step p {
  color: var(--muted);
  margin-top: 4px;
}
.path-dot {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.path-step:last-child .path-dot {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

@media (min-width: 640px) and (max-width: 899px) {
  .path {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
  }
  .path-step::before {
    display: none;
  }
}

/* Bố cục: 6 bước (trái) + video dọc (phải). Dưới 900px video xuống dưới các bước. */
.method-layout {
  display: grid;
  gap: 32px;
}
.method-video {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.method-video-frame {
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.method-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ink);
}
.video-picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.video-pick {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue-100);
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.video-pick:hover {
  border-color: var(--blue);
}
.video-pick[aria-current="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

@media (min-width: 900px) {
  .method-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
  }
  .method-video {
    margin: 0;
  }
  .path-step {
    padding-bottom: 14px;
  }
}
@media (min-width: 1100px) {
  .method-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 72px;
  }
  .method-video {
    max-width: 380px;
  }
}

/* ------------------------------- Small class ------------------------------- */

.chain {
  counter-reset: chain;
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.chain li {
  counter-increment: chain;
  position: relative;
  padding-left: 52px;
  color: #e3eefd;
}
.chain li::before {
  content: counter(chain);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.95rem;
}
.chain li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 38px;
  bottom: -14px;
  border-left: 2px dotted rgba(255, 255, 255, 0.4);
}
.chain strong {
  color: #fff;
}
.orbit-figure {
  max-width: 400px;
  width: 100%;
  margin-inline: auto;
}
.orbit-figure svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.orbit-figure .ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}
.orbit-figure .ring-inner {
  stroke: rgba(255, 255, 255, 0.18);
}
.orbit-figure .kid {
  fill: var(--yellow);
}
.orbit-figure .kid-optional {
  fill: rgba(255, 216, 0, 0.18);
  stroke: var(--yellow);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}
.orbit-kids {
  transform-origin: 160px 160px;
  animation: spin 90s linear infinite;
}
.orbit-figure .teacher {
  fill: #fff;
}
.teacher-label {
  font: 800 20px var(--font);
  fill: var(--blue);
}
.orbit-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 600;
  color: #e3eefd;
}
.lg-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
}
.lg-teacher {
  background: #fff;
  margin-left: 8px;
}

/* --------------------------------- Trust --------------------------------- */

.trust-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1100px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .trust-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.trust-card > .icon {
  width: 52px;
  height: 52px;
  padding: 13px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue);
  margin-bottom: 18px;
}
.trust-card h3 {
  margin-bottom: 8px;
}
.trust-card p {
  color: var(--muted);
}

.mini-roadmap {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--soft);
}
.mini-roadmap-title {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.mini-roadmap ol {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.mini-roadmap li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
}
.mr-age {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cta);
}
.mr-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
}
.mr-name em {
  font-style: normal;
  color: var(--blue);
}
.mr-levels {
  font-size: 0.92rem;
  color: var(--muted);
}
@media (min-width: 820px) {
  .mini-roadmap ol {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .mini-roadmap li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -22px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border-top: 2px solid var(--blue);
    border-right: 2px solid var(--blue);
    transform: rotate(45deg);
  }
}

/* ------------------------------ Progress loop ------------------------------ */

.loop ol {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.loop ol::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 30px;
  border-left: 2px dashed #b8cff0;
}
.loop-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 16px 20px 16px 0;
  background: transparent;
}
.loop-step strong {
  grid-column: 2;
  color: var(--navy);
  font-size: 1.08rem;
}
.loop-step span:last-child {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.97rem;
}
.loop-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 0 6px var(--soft);
}
.loop-step:last-child .loop-num {
  background: var(--blue);
  color: #fff;
}
@media (min-width: 900px) {
  .loop {
    padding: 32px;
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
  }
  .loop .loop-num {
    box-shadow: 0 0 0 6px #fff;
  }
}

/* ------------------------------ Học sinh tỏa sáng ------------------------------ */

.shine {
  display: grid;
  gap: 48px;
}
.shine-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shine-main h2 {
  color: var(--blue);
  text-transform: uppercase;
}
.shine-main .lead {
  margin-bottom: 32px;
}
.shine-feature,
.shine-photo {
  margin: 0;
  padding: 8px;
  background: #fff;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
}
.shine-feature {
  /* Khối cam lệch phía sau ảnh chính, như mẫu */
  box-shadow: var(--shadow), 14px 14px 0 var(--orange);
  margin-right: 14px;
}
.shine-feature img,
.shine-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(var(--r-sm) - 6px);
}
.shine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.shine-photo:first-child,
.shine-photo:last-child:nth-child(even) {
  grid-column: span 2;
}
.shine-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}
@media (min-width: 900px) {
  .shine {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }
}

/* ------------------------------ Facilities ------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.stats li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--soft);
}
.stats strong {
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--blue);
}
.stats span {
  color: var(--muted);
  font-size: 0.95rem;
}
.stat-safety {
  grid-column: 1 / -1;
  grid-template-columns: 40px 1fr;
  align-items: center;
  background: var(--lime-50) !important;
}
.stat-safety .icon {
  color: #3f8f22;
  width: 32px;
  height: 32px;
}
.stat-safety span {
  color: var(--ink) !important;
  font-weight: 600;
}
@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(3, 1fr) 1.4fr;
  }
  .stat-safety {
    grid-column: auto;
  }
}

.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 8px;
  scrollbar-width: thin;
}
.gallery figure {
  position: relative;
  flex: 0 0 78%;
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  background: var(--blue-50);
}
.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
}
@media (min-width: 720px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(140px, 15vw, 190px);
    gap: 16px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }
  .gallery figure {
    aspect-ratio: auto;
  }
  .g-a {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
  }
  .g-b {
    grid-column: 8 / 10;
    grid-row: 1 / 3;
  }
  .g-c {
    grid-column: 10 / 13;
    grid-row: 1 / 3;
  }
  .g-d {
    grid-column: 1 / 7;
    grid-row: 3 / 5;
  }
  .g-e {
    grid-column: 7 / 13;
    grid-row: 3 / 5;
  }
}
.address-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 24px;
  font-weight: 600;
  color: var(--navy);
}
.address-line > .icon {
  color: var(--cta);
}
.address-line-lg {
  font-size: 1.15rem;
  margin: 8px 0 20px;
}

/* ------------------------------ Offer band ------------------------------ */

.offer-band {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.offer-band h2 {
  color: #fff;
}
.offer-band .lead {
  color: #dbe5f3;
}
.offer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .offer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}
.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.orbit-offer {
  width: 560px;
  right: -180px;
  top: -160px;
  color: rgba(255, 255, 255, 0.14);
}
.offer-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.offer-card-light {
  background: var(--warm);
  border: 1px solid #f6dfcc;
  box-shadow: none;
}
.offer-card-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.offer-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.offer-card li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-sm);
  background: var(--soft);
}
.offer-card-light li {
  background: #fff;
}
.offer-card li .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--orange-50);
  color: var(--cta);
}
.offer-card strong {
  color: var(--cta);
}

/* --------------------------------- FAQ --------------------------------- */

.faq-wrap {
  max-width: 860px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy);
  border-radius: 8px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--blue);
}
.faq-chevron {
  flex: none;
  color: var(--blue);
  transition: transform 0.25s ease;
}
.faq details[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq details p {
  padding: 0 4px 22px;
  color: var(--muted);
  max-width: 720px;
}

/* ------------------------------ Page hero ------------------------------ */

.page-hero {
  position: relative;
  padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, var(--soft), #fff);
  overflow: hidden;
}
.page-hero .lead {
  max-width: 720px;
}
.page-hero h1 {
  max-width: 900px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.pill-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.pill-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--navy);
}
.pill-facts .icon {
  color: var(--blue);
}

/* --------------------------------- Tabs --------------------------------- */

.tab-list {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
}
.tab {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tab:hover {
  background: #fff;
}
.tab[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
}
.js [data-hidden-by-tabs] {
  display: none;
}
.tab-panel:focus-visible {
  outline-offset: 8px;
}
.track-intro {
  max-width: 760px;
  color: var(--muted);
  margin-bottom: 24px;
}
@media (max-width: 560px) {
  .tab-list {
    width: 100%;
    border-radius: 20px;
  }
  .tab {
    padding: 8px 10px;
    font-size: 0.9rem;
    line-height: 1.3;
    border-radius: 14px;
    white-space: normal;
  }
}

/* -------------------------------- Stages -------------------------------- */

.stages {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stage {
  display: grid;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.stage-head {
  padding: 22px 24px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.stage-age {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cta);
}
.stage-head h3 {
  font-size: 1.45rem;
  font-weight: 800;
}
.stage-tag {
  color: var(--blue);
}
.stage-body {
  display: grid;
  gap: 16px;
  padding: 22px 24px 24px;
}
.level-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.levels li {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1.5px solid #c5d6ee;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  background: #fff;
}
.duration {
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
}
.group-note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.93rem;
}
.stage-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
}
.stage-details li {
  position: relative;
  padding-left: 14px;
}
.stage-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.milestone {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--blue-600);
  font-weight: 600;
}
.milestone .icon {
  flex: none;
  margin-top: 3px;
}
@media (min-width: 860px) {
  .stage {
    grid-template-columns: 260px 1fr;
  }
  .stage-head {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 28px;
  }
  .stage-body {
    padding: 28px;
  }
}

.week-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.week-list li {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-radius: var(--r);
  background: #fff;
  border-left: 5px solid var(--tone);
  box-shadow: var(--shadow-sm);
}
.week-list .week-count {
  width: fit-content;
  margin-bottom: 4px;
}
.week-list strong {
  color: var(--navy);
  font-size: 1.1rem;
}
.week-list span:last-child {
  color: var(--muted);
}
.center-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
  margin-top: 40px;
}

/* --------------------------------- IELTS --------------------------------- */

.ladder {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rung {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  column-gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--soft);
  overflow: hidden;
}
.rung-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--h);
  background: linear-gradient(90deg, var(--blue-100), rgba(217, 232, 252, 0.3));
}
.rung > span:not(.rung-bar) {
  position: relative;
}
.rung-band {
  grid-row: span 2;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
}
.rung-name {
  font-weight: 700;
  color: var(--navy);
}
.rung-note {
  font-size: 0.9rem;
  color: var(--muted);
}
.rung:last-child .rung-band {
  color: var(--cta);
}
@media (min-width: 900px) {
  .ladder {
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 14px;
    height: 360px;
  }
  .rung {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 4px;
    height: calc(30% + var(--h) * 0.7);
    padding: 18px;
    background: var(--blue-50);
    border-top: 4px solid var(--blue);
  }
  .rung:last-child {
    border-top-color: var(--orange);
    background: var(--orange-50);
  }
  .rung-bar {
    display: none;
  }
  .rung-band {
    font-size: 2rem;
    margin-bottom: auto;
  }
}
.table-wrap {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.map-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.map-table th,
.map-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.map-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}
.map-table tr:last-child td {
  border-bottom: 0;
}
.map-table td strong {
  color: var(--blue);
}

/* --------------------------------- Trial --------------------------------- */

.trial-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 960px) {
  .trial-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
  }
  .trial-grid aside {
    margin-top: 96px;
  }
}
.channels {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.channel {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.channel:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.channel-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue);
}
.channel-zalo {
  border-color: #b9d3f5;
  background: linear-gradient(90deg, var(--blue-50), #fff 70%);
}
.channel-zalo .channel-icon {
  background: #0068ff;
  color: #fff;
}
.zalo-mark {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}
.channel-call .channel-icon {
  background: var(--orange-50);
  color: var(--cta);
}
.channel-text {
  display: grid;
  line-height: 1.35;
}
.channel-text strong {
  color: var(--navy);
  font-size: 1.05rem;
}
.channel-text span {
  color: var(--muted);
  font-size: 0.93rem;
}
.channel-arrow {
  color: var(--blue);
}
.channels-sm .channel {
  padding: 10px 14px 10px 10px;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
}
.channels-sm .channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.msg-template {
  margin-top: 24px;
}
.msg-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.msg-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px dashed #b9cbe4;
  background: var(--soft);
}
.msg-box p {
  font-size: 0.98rem;
  color: var(--ink);
}
.btn-copy {
  justify-self: start;
  min-height: 42px;
  padding: 0 16px;
  background: #fff;
  border-color: #c9d5e6;
  color: var(--navy);
  font-size: 0.93rem;
}
.btn-copy:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-copy.is-done {
  border-color: #3f8f22;
  color: #2f6f18;
}
.msg-status {
  min-height: 1.4em;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #2f6f18;
  font-weight: 600;
}

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  padding: 24px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
}
.steps h3 {
  margin: 16px 0 6px;
}
.steps p {
  color: var(--muted);
}
.steps li:last-child .path-dot {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.not-found {
  text-align: center;
  padding-block: 96px;
}
.not-found .lead {
  margin-inline: auto;
  margin-bottom: 28px;
}
.nf-mascot {
  width: 120px;
  margin: 0 auto 24px;
}

/* -------------------------------- Dialog -------------------------------- */

.trial-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(20, 36, 61, 0.3);
  overflow: auto;
}
.trial-dialog::backdrop {
  background: rgba(20, 36, 61, 0.55);
  backdrop-filter: blur(3px);
}
.trial-dialog[open] {
  animation: dialog-in 0.25s ease-out;
}
.dialog-inner {
  position: relative;
  padding: 28px;
}
.dialog-inner h2 {
  font-size: 1.6rem;
  padding-right: 96px;
}
.dialog-lead {
  margin-top: 10px;
  color: var(--muted);
  padding-right: 40px;
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--soft);
  color: var(--navy);
  cursor: pointer;
}
.dialog-close:hover {
  background: var(--blue-50);
}
.dialog-mascot {
  position: absolute;
  top: 22px;
  right: 66px;
  width: 44px;
  height: auto;
}
.dialog-more {
  margin-top: 8px;
  font-size: 0.95rem;
}
.dialog-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}
.dialog-more a:hover {
  text-decoration: underline;
}
@media (max-width: 639px) {
  .trial-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
  }
  .trial-dialog[open] {
    animation: sheet-in 0.28s ease-out;
  }
  .dialog-inner {
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  }
  .dialog-inner h2 {
    font-size: 1.4rem;
  }
}

/* ------------------------------ Mobile bar ------------------------------ */

.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(20, 36, 61, 0.2);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-bar.is-hidden {
  transform: translateY(140%);
  opacity: 0;
}
.mobile-bar-cta {
  flex: 1;
  min-height: 50px;
}
.mobile-bar-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
}
body.has-mobile-bar {
  padding-bottom: 84px;
}
@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
  body.has-mobile-bar {
    padding-bottom: 0;
  }
}

/* -------------------------------- Footer -------------------------------- */

.site-footer {
  background: var(--navy);
  color: #cfdbec;
  padding: 64px 0 24px;
  font-size: 0.98rem;
}
.footer-grid {
  display: grid;
  gap: 36px;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
    gap: 48px;
  }
}
.footer-logo {
  display: inline-block;
  border-radius: 8px;
}
.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
}
.footer-brand p {
  max-width: 340px;
}
.footer-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list a {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding-block: 6px;
  color: #cfdbec;
  text-decoration: none;
}
.footer-list a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-list .icon {
  flex: none;
  margin-top: 3px;
  color: var(--yellow);
}
.footer-list .icon-ext {
  color: #9fb3cf;
  margin-top: 5px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  color: #9fb3cf;
}

/* ------------------------------- Motion ------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 559px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}
