/* home.css — gaya khusus Laman Utama ("Cerah Premium", _dev/SPEC-CERAH.md §1 & §4).
 * Komponen kongsi (butang, eyebrow, kad subjek, kad pakej, testimoni, akordion, jalur CTA…) berada dalam base.css.
 * Token sahaja — tiada warna hex kod keras (kecuali #fff). */

/* ============================================================ HERO */
.home-hero {
  --curve-fill: #fff;
  padding: 20px 0 0;
  background:
    radial-gradient(70% 60% at 100% 0%, color-mix(in srgb, var(--c-soft) 70%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--c-softer) 60%, #fff) 100%);
}
/* Gelombang langit → lavender (SVG). Di bawah lengkung putih (::after z-index 1). */
.home-hero__wave { position: absolute; z-index: -1; right: 0; bottom: 0; width: 100%; height: 330px; pointer-events: none; }
.home-hero__wave .hw-s0 { stop-color: color-mix(in srgb, var(--c-soft) 75%, #fff); }
.home-hero__wave .hw-s4 { stop-color: color-mix(in srgb, var(--c-lavender) 80%, var(--c-accent)); }
.home-hero__wave .hw-s1 { stop-color: color-mix(in srgb, var(--c-secondary) 26%, var(--c-soft)); }
.home-hero__wave .hw-s2 { stop-color: color-mix(in srgb, var(--c-accent) 62%, var(--c-soft)); }
.home-hero__wave .hw-s3 { stop-color: color-mix(in srgb, var(--c-accent) 82%, var(--c-primary)); }

.home-hero__grid { gap: 28px; align-items: end; }
.home-hero__copy { min-width: 0; position: relative; z-index: 2; }
.home-hero .eyebrow--chip { margin: 0 0 22px; font-size: 13px; padding: 7px 14px 7px 11px; border-radius: 16px; line-height: 1.35; }
.home-hero__title { margin: 0 0 18px; font-size: clamp(36px, 10.4vw, 46px); line-height: 1.03; letter-spacing: -.045em; }
.home-hero__l1, .home-hero__l2 { display: block; }
.home-hero__l2 { padding-bottom: .06em; }
.home-hero__lead { max-width: 520px; margin: 0 0 26px; font-size: clamp(16.5px, 1.4vw, 19.5px); line-height: 1.6; }

.home-hero__actions { gap: 12px 16px; }
.home-hero__actions .btn { flex: 1 1 100%; }
.home-hero__cta { padding-left: 30px !important; padding-right: 30px !important; }
.home-hero__play { --btn-bd: var(--c-line-strong); gap: 12px; }
.home-hero__play-ico {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; color: #fff; background: var(--c-ink);
  transition: background-color .2s, transform .2s var(--ease);
}
.home-hero__play-ico .ico { margin-left: 2px; fill: currentColor; }
.home-hero__play:hover .home-hero__play-ico { background: var(--c-primary); transform: scale(1.06); }
@media (min-width: 480px) { .home-hero__actions .btn { flex: 0 0 auto; } }

/* Baris manfaat: ikon dwiton + 2 baris teks, dipisahkan garis menegak nipis */
.home-benefits { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-benefit { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 0 10px; font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--c-ink); }
.home-benefit:first-child { padding-left: 0; }
.home-benefit + .home-benefit { border-left: 1px solid var(--c-line-strong); padding-left: 12px; }
.home-benefit__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; color: var(--c-primary);
  background: linear-gradient(145deg, color-mix(in srgb, var(--c-soft) 85%, #fff), color-mix(in srgb, var(--c-lavender) 70%, #fff));
}
.home-benefit__icon .ico { stroke-width: 2.2; }
@media (min-width: 640px) {
  .home-benefits { display: flex; flex-wrap: wrap; align-items: center; row-gap: 14px; margin-top: 40px; }
  .home-benefit { flex-direction: row; align-items: center; gap: 12px; padding: 0 22px; font-size: 15px; }
  .home-benefit + .home-benefit { padding-left: 22px; }
}

/* Visual: foto (topeng organik) di atas gelombang + percikan + anotasi matematik + SATU kad terapung */
.home-hero__visual { position: relative; min-height: 360px; margin: 0 -8px; }
/* Topeng organik (gumpal tidak simetri); bahagian bawah tenggelam di bawah lengkung putih hero. */
.home-hero__photo {
  position: absolute; z-index: 0; left: 42%; bottom: -40px; width: min(270px, 70%); aspect-ratio: 1 / 1.16; margin: 0; transform: translateX(-50%);
  overflow: hidden; border: 6px solid rgba(255, 255, 255, .8);
  border-radius: 47% 53% 50% 50% / 40% 42% 58% 60%;
  background: var(--grad-shape);
  box-shadow: 0 34px 70px -24px color-mix(in srgb, var(--c-primary) 40%, transparent), 0 0 0 1px color-mix(in srgb, var(--c-primary) 6%, transparent);
}
.home-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
/* Lembutkan latar foto yang gelap ke arah warna jenama di tepi (wajah kekal jelas) */
.home-hero__photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(64% 58% at 50% 42%, transparent 58%, color-mix(in srgb, var(--c-soft) 55%, transparent) 100%),
    linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--c-soft) 40%, transparent) 100%);
}
/* Percikan dirujuk dari bawah supaya sentiasa dekat bahagian atas kepala foto */
.home-hero__spark { z-index: 1; bottom: 258px; left: 8%; transform: rotate(-38deg) scale(.85); }
@media (min-width: 480px) and (max-width: 767px) { .home-hero__spark { bottom: 336px; left: 12%; } }
@media (min-width: 768px) and (max-width: 1023px) { .home-hero__spark { bottom: 404px; left: 16%; } }
.home-hero__math { position: absolute; z-index: 1; top: 10%; right: -2px; width: 128px; height: auto; color: #fff; transform: rotate(-11deg); filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--c-ink) 22%, transparent)); }
.home-hero__visual--empty { min-height: 260px; }

/* Kad terapung (bukan berangka) */
.home-float {
  position: absolute; z-index: 3; right: 0; bottom: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 168px; max-width: 46%; padding: 12px 14px 14px; border-radius: 18px; line-height: 1.3;
}
.home-float__icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 4px; border-radius: 11px; color: var(--c-primary); background: color-mix(in srgb, var(--c-soft) 70%, #fff); }
.home-float__icon .ico { stroke-width: 2.4; }
.home-float__title { font-size: 15px; font-weight: 800; letter-spacing: -.015em; color: var(--c-ink); }
.home-float__text { font-size: 13px; font-weight: 500; color: var(--c-muted); line-height: 1.45; }

@media (max-width: 1023px) {
  .home-hero__wave { width: 165%; height: 400px; }
}
@media (max-width: 479px) {
  .home-hero__photo { left: 39%; width: min(256px, 66%); }
  .home-float { width: 150px; bottom: 22px; padding: 12px 14px; }
  .home-float__text { display: none; }
}
@media (max-width: 359px) {
  .home-hero__visual { min-height: 300px; }
  .home-hero__photo { left: 36%; width: 62%; }
  .home-hero__spark { bottom: 178px; left: 4%; }
  .home-hero__math { width: 112px; top: 6%; }
  .home-float { width: 124px; right: -4px; bottom: 16px; padding: 10px 12px; border-radius: 16px; }
  .home-float__icon { width: 30px; height: 30px; }
  .home-float__title { font-size: 13.5px; }
}
@media (min-width: 480px) and (max-width: 1023px) {
  .home-hero__visual { min-height: 440px; }
  .home-hero__photo { width: min(340px, 60%); left: 44%; }
  .home-hero__math { width: 170px; right: 4%; }
  .home-float { right: 4%; bottom: 80px; width: 196px; }
}
/* Tablet: komposisi berpusat (teks di atas, visual di bawah) */
@media (min-width: 640px) and (max-width: 1023px) {
  .home-hero__copy { max-width: 640px; margin: 0 auto; text-align: center; }
  .home-hero__lead { margin-left: auto; margin-right: auto; }
  .home-hero__actions, .home-benefits { justify-content: center; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .home-hero { padding-top: 40px; }
  .home-hero__visual { min-height: 500px; }
  .home-hero__wave { width: 120%; height: 500px; }
  .home-hero__photo { width: 400px; left: 48%; }
  .home-float { right: 5%; bottom: 140px; width: 212px; text-align: left; }
  .home-hero__math { right: 7%; top: 4%; width: 200px; }
}
@media (min-width: 1024px) {
  .home-hero { padding-top: 36px; }
  .home-hero__wave { width: 66%; height: 94%; }
  .home-hero__grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 24px; align-items: stretch; }
  .home-hero__copy { align-self: center; padding: 20px 0 104px; }
  .home-hero__title { font-size: clamp(56px, 5.5vw, 80px); margin-bottom: 22px; }
  .home-hero__lead { margin-bottom: 34px; }
  .home-hero .eyebrow--chip { margin-bottom: 30px; font-size: 14px; padding: 9px 18px 9px 13px; border-radius: var(--pill); }
  .home-hero__visual { min-height: 640px; margin: 0; }
  .home-hero__photo { width: min(450px, 80%); left: 45%; bottom: -70px; aspect-ratio: 1 / 1.3; }
  .home-hero__spark { top: auto; bottom: 500px; left: 3%; transform: rotate(-36deg) scale(1.1); }
  .home-hero__math { top: 11%; right: -56px; width: 220px; }
  .home-float { right: -28px; bottom: auto; top: 42%; width: 212px; max-width: none; padding: 18px 20px 20px; gap: 6px; border-radius: 22px; }
  .home-float__icon { width: 40px; height: 40px; }
  .home-float__title { font-size: 17px; }
  .home-float__text { font-size: 14px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .home-hero__math { right: -24px; width: 180px; top: 6%; }
  .home-hero__visual { min-height: 590px; }
  .home-hero__photo { width: 400px; left: 44%; }
  .home-hero__spark { bottom: 436px; left: 4%; }
  .home-float { right: -18px; top: auto; bottom: 64px; width: 188px; padding: 14px 16px 16px; }
  .home-float__title { font-size: 15.5px; }
  .home-float__text { font-size: 13px; }
  /* Lajur teks sempit: baris kelebihan jadi grid 3 lajur (ikon di atas) */
  .home-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-benefit { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 14px; font-size: 14px; }
  .home-benefit:first-child { padding-left: 0; }
}
@media (min-width: 1280px) {
  .home-hero__visual { min-height: 670px; }
  .home-hero__photo { width: 480px; }
  .home-hero__spark { bottom: 478px; left: 5%; }
  /* Anotasi duduk sepenuhnya di atas gelombang (seperti mockup), bukan di kawasan putih */
  .home-hero__math { top: 16%; right: -44px; }
}

/* Sasaran skrol (fokus program) — tiada cincin fokus pada seluruh seksyen */
#main > section[tabindex="-1"]:focus { outline: none; }

/* ============================================================ PROGRAM KAMI */
.home-program { padding-top: 40px; }
@media (min-width: 1024px) { .home-program { padding-top: 48px; } }
.home-program .section-head { margin-bottom: 36px; max-width: 920px; }
@media (min-width: 1024px) { .home-program .section-head { margin-bottom: 44px; } .home-program .section-head__title { font-size: clamp(34px, 2.9vw, 42px); } }
.home-subjects .subject-card { min-height: 184px; }
/* Tablet: kad lebar bertindan (3 lajur terlalu sempit untuk teks + visual 3D) */
@media (min-width: 640px) and (max-width: 1023px) {
  .home-subjects { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-subjects .subject-card { min-height: 190px; }
  .home-subjects .subject-card__title, .home-subjects .subject-card__text { max-width: 62%; }
  .home-subjects .subject-card__art { width: 36%; max-width: 200px; opacity: 1; }
  .home-why__frame img { aspect-ratio: 16 / 10; }
}
@media (max-width: 639px) { .home-subjects { gap: 14px; } .home-subjects .subject-card { padding: 22px 22px 20px; } .home-subjects .subject-card__text { margin-bottom: 16px; } }
@media (min-width: 1024px) { .home-subjects .subject-card { min-height: 236px; padding: 30px 30px 28px; } .home-subjects .subject-card__art { width: 50%; max-width: 210px; } }
/* Baris subjek mengikut peringkat (Tahun 1 – 3 / Tahun 4 – 6, daripada data) di bawah kad pameran */
/* Satu baris (dengan ikon sendiri) bagi setiap peringkat, bertindan kemas di tengah */
.nowrap { white-space: nowrap; }
.home-subjects__all { list-style: none; display: grid; justify-content: center; gap: 10px; max-width: 760px; margin: 24px auto 0; padding: 0; color: var(--c-text); }
.home-subjects__tier {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm); font-size: 15px; line-height: 1.5; text-align: left;
}
.home-subjects__tier .ico { flex: none; margin-top: 3px; color: var(--c-primary); }
.home-subjects__all strong { color: var(--c-ink); }
@media (max-width: 479px) { .home-subjects__tier { padding: 10px 14px; font-size: 14.5px; } }
.home-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 32px; }
@media (min-width: 1024px) { .home-more { margin-top: 40px; } }

/* ============================================================ KENAPA IBU BAPA PILIH KAMI */
.home-why { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .home-why { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 80px; } }
.home-why--noimg { grid-template-columns: minmax(0, 1fr); }
.home-why__media { position: relative; isolation: isolate; margin: 0 6px 0 0; }
.home-why__shape {
  position: absolute; z-index: -1; inset: 9% -14px -16px 10%; border-radius: 40px 40px 140px 40px; background: var(--grad-shape); opacity: .95;
}
.home-why__frame { overflow: hidden; border-radius: 120px 28px 28px 28px; box-shadow: var(--shadow-lg); background: var(--c-soft); }
.home-why__frame img { width: 100%; aspect-ratio: 5 / 4.2; object-fit: cover; object-position: 55% 50%; }
.home-why__spark { top: -22px; right: 10%; transform: rotate(32deg); }
@media (min-width: 1024px) {
  .home-why__frame { border-radius: 180px 32px 32px 32px; }
  .home-why__frame img { aspect-ratio: 4 / 4.3; }
  .home-why__shape { inset: 12% -26px -26px 14%; border-radius: 48px 48px 180px 48px; }
}
.home-why__copy { min-width: 0; }
.home-why__copy .section-head { margin-bottom: 26px; }
.home-why__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; column-gap: 32px; }
@media (min-width: 640px) { .home-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-why__item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--c-line-strong); }
.home-why__item .icon-tile { width: 46px; height: 46px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.home-why__title { margin: 2px 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
.home-why__text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--c-muted); }

/* ============================================================ CARA PEMBELAJARAN */
.home-steps .steps__item { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
/* Telefon/tablet: penyambung menegak bertitik antara nombor langkah */
@media (max-width: 639px) {
  .home-steps .steps__item:not(:last-child)::after {
    content: ''; position: absolute; z-index: 2; left: 41px; top: 68px; bottom: -32px; width: 2px;
    background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--c-primary) 45%, transparent) 0 5px, transparent 5px 10px);
  }
}
.home-steps .steps__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.home-step__body { min-width: 0; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.home-step__body .steps__link { margin-top: auto; padding-top: 12px; }
.home-steps .steps__title { font-size: 18px; font-weight: 800; }
.steps__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--c-primary); }
.steps__link .ico { transition: transform .2s var(--ease); }
.steps__link:hover .ico { transform: translateX(3px); }
@media (min-width: 640px) and (max-width: 1023px) { .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .home-steps .steps__item { padding: 28px 26px 26px; } }

/* ============================================================ TENAGA PENGAJAR */
.home-note { margin-top: -8px; }
@media (min-width: 1024px) { .home-note { margin-top: -20px; margin-bottom: 28px; } }
.home-tutors { display: grid; gap: 18px; }
@media (min-width: 1024px) { .home-tutors { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px; align-items: stretch; } }
.home-tutors--one { grid-template-columns: minmax(0, 1fr); }
.home-tutor {
  display: grid; overflow: hidden; background: #fff; border: 1px solid color-mix(in srgb, var(--c-line) 80%, transparent);
  border-radius: var(--radius-xl); box-shadow: var(--shadow);
}
@media (min-width: 640px) { .home-tutor { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); } }
.home-tutor__photo { position: relative; min-height: 240px; background: var(--grad-shape); }
.home-tutor__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.home-tutor__photo .avatar { position: absolute; inset: 0; margin: auto; width: 120px; height: 120px; font-size: 36px; }
@media (max-width: 639px) {
  .home-tutor__photo { min-height: 0; aspect-ratio: 4 / 3.2; }
  .home-tutor__photo img { object-position: 50% 8%; }
  .home-tutors__list > li:nth-child(n+5) { display: none; } /* telefon: 4 pengajar lain + pautan "Kenali semua pengajar" */
}
.home-tutor__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px 22px 24px; }
@media (min-width: 1024px) { .home-tutor__body { padding: 32px 30px; } }
.home-tutor__tag { margin-bottom: 8px; }
.home-tutor__name { margin: 0; font-size: clamp(21px, 2vw, 26px); letter-spacing: -.03em; }
.home-tutor__role { margin: 0; font-size: 15px; font-weight: 700; color: var(--c-primary-dark); }
.home-tutor__chips { margin-top: 8px; }
.home-tutor__bio { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--c-muted); }
.home-tutor__btn { margin-top: auto; }
.home-tutor__bio + .home-tutor__btn, .home-tutor__chips + .home-tutor__btn { margin-top: 20px; }
.home-tutors__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
@media (min-width: 640px) { .home-tutors__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .home-tutors__list { gap: 14px; align-content: stretch; } }
/* 1024–1279px: lajur kanan terlalu sempit untuk 2 lajur kad mini (nama pecah 3–4 baris) → kad utama penuh lebar, senarai 3 lajur di bawahnya. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .home-tutors { grid-template-columns: minmax(0, 1fr); }
  .home-tutors__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.home-tutors__list > li { min-width: 0; display: flex; }
.home-tmini {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; text-align: left; background: #fff;
  border: 1px solid color-mix(in srgb, var(--c-line) 80%, transparent); border-radius: 18px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.home-tmini:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c-primary) 28%, var(--c-line)); }
.home-tmini__photo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; flex: none; background: var(--grad-shape); }
.home-tmini__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.home-tmini__photo .avatar { width: 100%; height: 100%; border-radius: 0; }
.home-tmini__body { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.home-tmini__name { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--c-ink); }
.home-tmini__role { margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-tmini__go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; color: var(--c-primary); background: color-mix(in srgb, var(--c-soft) 55%, #fff); transition: background-color .2s, color .2s; }
.home-tmini:hover .home-tmini__go { background: var(--c-primary); color: #fff; }

/* ============================================================ TESTIMONI */
.home-testi .testi-card { box-shadow: var(--shadow); }

/* ============================================================ JADUAL KELAS */
.home-tt { padding: 14px; border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); }
@media (min-width: 640px) { .home-tt { padding: 20px; } }
@media (min-width: 1024px) { .home-tt { padding: 26px 28px 24px; } }
.home-tt__tabs { margin: 0; }
.home-tt__levels { display: flex; width: 100%; margin: 0; }
.home-tt__levels .tab { flex: 1 0 auto; justify-content: center; padding: 9px 14px; font-size: 14px; white-space: nowrap; }
.home-tt__panel { padding-top: 4px; }
.home-tt__panel:focus-visible { outline-offset: 4px; }
.home-tt__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 18px 2px 14px; }
.home-tt__filter { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-tt__flabel { flex: none; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.home-tt__chips { gap: 6px; }
.home-tt__chips .chip { min-height: 34px; padding: 4px 12px; font-size: 13.5px; }
.home-tt__status { margin: 0; font-size: 14px; color: var(--c-muted); }
.home-tt__status strong { color: var(--c-ink); }
@media (max-width: 639px) {
  .home-tt__filter { flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
  .home-tt__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
  .home-tt__chips::-webkit-scrollbar { display: none; }
}
.home-tt__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.home-tt__row {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; grid-template-areas: "when main btn" "badges badges badges";
  gap: 10px 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--c-softer); border: 1px solid var(--c-line);
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.home-tt__row:hover { background: #fff; border-color: var(--c-line-strong); box-shadow: var(--shadow-sm); }
.home-tt__when { grid-area: when; display: flex; flex-direction: column; line-height: 1.25; font-variant-numeric: tabular-nums; }
.home-tt__when strong { font-size: 14px; font-weight: 800; color: var(--c-ink); }
.home-tt__when span { font-size: 12.5px; font-weight: 600; color: var(--c-muted); }
.home-tt__main { grid-area: main; display: flex; flex-direction: column; min-width: 0; }
.home-tt__subj { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em; color: var(--c-ink); }
.home-tt__ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none; background: #fff; border: 1px solid var(--c-line); color: var(--c-primary); }
.home-tt__meta { margin-top: 2px; font-size: 13px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.home-tt__badges { grid-area: badges; display: flex; flex-wrap: wrap; gap: 6px; }
.home-tt__btn { grid-area: btn; }
@media (max-width: 479px) {
  /* Telefon: baris 1 = subjek + butang; baris 2 = hari + lencana (masa penuh dalam meta) */
  .home-tt__row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "main main btn" "when badges badges"; gap: 10px; padding: 12px; }
  .home-tt__when { flex-direction: row; align-items: center; }
  .home-tt__when span { display: none; }
  .home-tt__when strong { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: var(--pill); background: #fff; border: 1px solid var(--c-line); font-size: 12.5px; }
  .home-tt__tutor { display: none; }
}
@media (min-width: 768px) {
  .home-tt__row { grid-template-columns: 82px minmax(0, 1fr) auto auto; grid-template-areas: "when main badges btn"; gap: 16px; padding: 12px 14px 12px 18px; }
  .home-tt__badges { justify-content: flex-end; }
  .home-tt__btn { min-width: 96px; }
}
.home-tt__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-line); }

/* ============================================================ YURAN */
/* Yuran ikut tahun: satu kad bagi setiap peringkat (Tahun 1 – 3 / Tahun 4 – 6), sebelah-menyebelah di desktop, bertindan di telefon. */
.home-harga .pkg-note { margin-top: 28px; }
.home-harga__more { margin-top: 24px; }
.home-harga__others { margin-top: 32px; }
.home-harga__chips { list-style: none; margin: -12px auto 32px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; max-width: 760px; }
.home-harga__chips li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: var(--pill); background: #fff;
  border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); font-size: 13.5px; font-weight: 700; color: var(--c-ink);
}
.home-harga__chips .ico { color: var(--c-primary); }
.home-plans {
  position: relative; isolation: isolate; display: grid; gap: 20px; padding: 14px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-soft) 60%, #fff) 0%, #fff 50%, color-mix(in srgb, var(--c-lavender) 85%, #fff) 100%);
  border: 1px solid color-mix(in srgb, var(--c-primary) 10%, var(--c-line)); overflow: hidden;
}
.home-plans::before {
  content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-accent) 38%, transparent), transparent 68%); pointer-events: none;
}
@media (min-width: 640px) { .home-plans { padding: 20px; } }
@media (min-width: 900px) { .home-plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 24px; } }
@media (min-width: 1024px) { .home-plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px; } }
.home-plans--1 { max-width: 560px; margin: 0 auto; }
.home-plan__card {
  position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 0 22px 22px; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--c-primary) 45%, transparent), 0 2px 6px rgba(16, 21, 47, .05);
}
@media (min-width: 1024px) { .home-plan__card { padding: 0 30px 28px; } }
.home-plan__band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 -22px; padding: 14px 22px; background: var(--grad-sky);
  border-bottom: 1px solid color-mix(in srgb, var(--c-primary) 8%, var(--c-line));
}
@media (min-width: 1024px) { .home-plan__band { margin: 0 -30px; padding: 16px 30px; } }
.home-plan__card--lavender .home-plan__band { background: var(--grad-lavender); }
.home-plan__card--mint .home-plan__band { background: var(--grad-mint); }
.home-plan__lv {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: #fff; box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: var(--c-ink);
}
.home-plan__lv .ico { color: var(--c-primary); }
.home-plan__count { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primary-dark); }
.home-plan__top { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.home-plan__ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 15px; background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-btn); }
.home-plan__name { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.home-plan__tag { margin: 3px 0 0; font-size: 14px; color: var(--c-muted); line-height: 1.4; }
.home-plan__price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; line-height: 1; }
.home-plan__price strong { font-size: clamp(48px, 5vw, 62px); font-weight: 800; letter-spacing: -.055em; color: var(--c-ink); }
.home-plan__cur { font-size: .42em; font-weight: 800; letter-spacing: -.01em; vertical-align: .95em; margin-right: 3px; color: var(--c-primary); }
.home-plan__price > span { font-size: 16px; font-weight: 600; color: var(--c-muted); }
.home-plan__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.home-plan__limit, .home-plan__hours {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 10px; border-radius: var(--pill);
  font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--c-primary-dark); background: color-mix(in srgb, var(--c-soft) 55%, #fff);
}
.home-plan__hours { color: #0B6B4F; background: #E3F7EE; }
.home-plan__limit .ico, .home-plan__hours .ico { flex: none; color: var(--c-primary); }
.home-plan__hours .ico { color: #12936B; }
.home-plan__subjects small { font-size: 12px; font-weight: 600; color: var(--c-muted); }
.home-plan__extra { border-style: dashed !important; }
.home-plan__subjects { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-plan__subjects li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: var(--pill); border: 1px solid var(--c-line);
  background: var(--c-softer); font-size: 13.5px; font-weight: 600; color: var(--c-ink);
}
.home-plan__subjects .ico { color: var(--c-primary); }
.home-plan__when { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--c-text); }
.home-plan__when .ico { flex: none; margin-top: 2px; color: var(--c-primary); }
.home-plan__card .check-list { padding-top: 16px; border-top: 1px solid var(--c-line); font-size: 15px; }
.home-plan__fees { padding: 10px 16px; }
.home-plan__fees small { font-size: 12px; color: var(--c-muted); }
.home-plan__regfee > span { min-width: 0; }
.home-plan__regfee em { display: block; margin-top: 2px; font-size: 12.5px; font-style: normal; line-height: 1.45; color: var(--c-muted); }
.home-plan__years { display: grid; gap: 8px; margin-top: auto; }
.home-plan__ylabel { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.home-plan__ylist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home-plan__ylist a {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 10px; border-radius: 14px; background: #fff;
  border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); font-size: 14px; font-weight: 700; color: var(--c-ink); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.home-plan__ylist a .ico { color: var(--c-primary); }
.home-plan__ylist a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-line)); }
.home-plan__cta { display: grid; gap: 10px; }
@media (max-width: 359px) { .home-plan__ylist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .home-plan__ylist a, .home-plan__ylist a:hover { transform: none; } }

/* ============================================================ SOALAN LAZIM */
.home-faq .section-head { margin-bottom: 24px; }
.home-faq__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
@media (max-width: 1023px) { .home-faq__links { margin-bottom: 8px; } }

/* ============================================================ MODAL VIDEO PENGENALAN */
.home-video { position: relative; aspect-ratio: 16 / 9; background: var(--c-ink); }
.home-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.home-video-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 16 / 9; padding: 24px; text-align: center;
  border-radius: var(--radius-lg); color: var(--c-ink); background: var(--grad-wash); border: 1.5px dashed var(--c-line-strong);
}
a.home-video-ph { border-style: solid; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
a.home-video-ph:hover { color: var(--c-ink); border-color: var(--c-primary); box-shadow: var(--shadow); }
.home-video-ph__play {
  display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 8px; border-radius: 50%; color: #fff; background: var(--grad-primary); box-shadow: var(--shadow-btn);
}
.home-video-ph__play .ico { margin-left: 4px; fill: currentColor; }
.home-video-ph__title { font-size: clamp(17px, 2vw, 21px); font-weight: 800; letter-spacing: -.02em; }
.home-video-ph__text { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--c-muted); }
.home-video-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--c-muted); }
.home-video-note .ico { flex: none; margin-top: 2px; color: var(--c-primary); }
@media (max-width: 479px) { .home-video-ph { aspect-ratio: 4 / 3.4; } }

@media (prefers-reduced-motion: reduce) {
  .home-steps .steps__item, .home-tmini, .home-hero__play-ico { transition: none; }
  .home-steps .steps__item:hover, .home-tmini:hover { transform: none; }
}
