/* Landing page v3 (LANDING-PLAN.md, 3 Okt 2026). Dimuat selepas v2.css (butang .b3, .card, borang).
   Susun atur: hero berwarna penuh + demo boleh tekan, kemudian bahagian berselang putih / tona lembut.
   Tema ikut app: body.l3 = Persediaan Tahun 1 (hijau), body.l3[data-product="math-sains"] = ungu.
   Nota: jangan guna nama .hero / .hint / .price (dipakai v2.css untuk app). */
[hidden] { display: none !important; }
body.l3 {
  --hero: #17803A; --accent: var(--green); --accent-d: var(--green-d); --accent-l: var(--green-l);
  --tint: #EEF9F1; --kick: var(--green-d); --hero-sub: #E6F7EB; --hero-soft: #CFF3DA; --ok-b: #8FDCA8;
  --ink: #2F3A33; --ink2: #66706A; --ink3: #A3ABA6; --line: #E3E8E4; --frame: #10261A;
  background: #fff; color: var(--ink);
}
body.l3[data-product="math-sains"] {
  --hero: #5A3DC8; --accent: var(--purple); --accent-d: var(--purple-d); --accent-l: var(--purple-l);
  --tint: #F4F0FF; --kick: #6A43CF; --hero-sub: #EEE8FF; --hero-soft: #D9CCFF; --frame: #1E1640;
  --ink: #33303D; --ink2: #6B6878; --ink3: #A6A3B0; --line: #E6E4EC;
}
body.l3[data-product="home"] {
  --hero: #1C6FC4; --accent: var(--blue); --accent-d: var(--blue-d); --accent-l: var(--blue-l);
  --tint: #EEF6FE; --kick: #1C6FC4; --hero-sub: #E3F1FE; --hero-soft: #BFE0FC; --frame: #0F2A44;
}
.l3 h1, .l3 h2, .l3 h3 { font-weight: 900; line-height: 1.15; margin: 0; text-wrap: balance; }
.l3 p { margin: 0; }
.l3 img { max-width: 100%; height: auto; }
.l3 .w { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.l3 .link { font-weight: 900; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; color: inherit; }
.l3 .b3:focus-visible, .l3 .link:focus-visible, .l3 button:focus-visible, .l3 summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.l3 .b3 { min-height: 56px; }
.l3 .b3.ghost { --t: var(--accent-d); }

/* Nav */
.l3 .lnav3 { position: sticky; top: 0; z-index: 20; background: var(--hero); }
.l3 .lnav3 .w { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.l3 .brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 900; font-size: 19px; text-decoration: none; }
.l3 .brand img { width: 30px; height: 30px; background: #fff; border-radius: 9px; padding: 3px; display: block; }
.l3 .lnav3 .login { color: #fff; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; opacity: .92; }

/* Hero */
.lhero { background: var(--hero); color: #fff; position: relative; padding-block: 18px 0; overflow: hidden; overflow: clip; } /* clip: bukan bekas skrol, jadi fokus butang demo tak anjakkan hero */
.lhero { background-image: radial-gradient(circle at 92% 6%, rgba(255,255,255,.12), rgba(255,255,255,0) 340px); } /* cahaya hiasan tanpa elemen yang terkeluar dari hero */
.lhero .w { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; position: relative; }
.eyebrow { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--hero-soft); }
.eyebrow b { background: rgba(255,255,255,.14); color: #fff; padding: 4px 10px; border-radius: 99px; letter-spacing: .03em; }
.lhero h1 { font-size: clamp(34px, 9.2vw, 56px); letter-spacing: -.01em; margin: 12px 0; }
.lhero h1 em { font-style: normal; color: var(--yellow); }
.lhero .lsub { font-size: 18px; color: var(--hero-sub); max-width: 36ch; }
.l3 .cta { display: grid; gap: 12px; margin-top: 22px; max-width: 400px; }
.l3 .cta small { font-size: 14px; color: var(--hero-soft); text-align: center; }
.l3 .cta .alt { color: #fff; font-size: 15px; text-align: center; }

/* Telefon demo */
.stage { position: relative; display: flex; justify-content: center; padding-bottom: 46px; }
.phone { width: 290px; max-width: 100%; background: var(--frame); border-radius: 44px; padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.28); position: relative; z-index: 2; }
.scr { background: #fff; color: var(--ink); border-radius: 35px; overflow: hidden; overflow: clip; height: 560px; display: flex; flex-direction: column; position: relative; }
.d-top { display: flex; align-items: center; gap: 10px; padding: 24px 16px 6px; }
.d-x { color: var(--ink3); font-size: 22px; line-height: 1; }
.d-pb { flex: 1; height: 13px; background: var(--line); border-radius: 99px; overflow: hidden; }
.d-pb span { display: block; height: 100%; width: 10%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.d-lang { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 3px 8px; font: 900 12px/1.2 var(--font); color: var(--accent-d); cursor: pointer; }
.d-body { padding: 8px 16px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.d-tagq { align-self: flex-start; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-d); background: var(--accent-l); border-radius: 8px; padding: 3px 8px; margin-bottom: 8px; }
.d-q { font-size: 18px; font-weight: 900; margin-bottom: 8px; line-height: 1.3; }
.d-show { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 110px; margin-bottom: 10px; }
.d-show:empty { display: none; }
.d-show img { width: 92px; height: 92px; object-fit: contain; }
.d-show.many img { width: 52px; height: 52px; }
.d-word { font-size: 30px; font-weight: 900; letter-spacing: .04em; border: 2px solid var(--line); border-radius: 14px; padding: 6px 14px; }
.d-word u { text-decoration: none; color: var(--blue); }
.d-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-bottom: 10px; }
.d-op { border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 14px; background: #fff; padding: 14px 0; text-align: center; font: 900 24px/1 var(--font); color: var(--ink); cursor: pointer; transition: transform .08s; }
.d-op.sm { font-size: 19px; }
.d-op:active { transform: translateY(2px); }
.d-op.ok { border-color: var(--ok-b, #8FDCA8); background: var(--green-l); color: var(--green-d); }
.d-op.no { border-color: #F7A9A9; background: var(--red-l); color: var(--red); animation: l3shake .3s; }
@keyframes l3shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.d-sheet { padding: 12px 16px 16px; background: #F4F6F5; transition: background .2s; }
.d-sheet b { display: block; font-size: 17px; margin-bottom: 10px; color: var(--ink2); }
.d-sheet.good { background: var(--green-l); } .d-sheet.good b { color: var(--green-d); }
.d-sheet.bad { background: var(--red-l); } .d-sheet.bad b { color: var(--red); }
.d-row { display: flex; gap: 8px; }
.d-btn { flex: 1; border: 0; border-radius: 13px; padding: 12px; font: 900 14px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; background: #D9DEDB; color: #fff; box-shadow: 0 4px 0 #C2C8C4; }
.d-sheet.good .d-btn, .d-sheet.bad .d-btn.go { background: var(--green); box-shadow: 0 4px 0 var(--green-d); cursor: pointer; }
.d-why { flex: none; border: 2px solid var(--line); background: #fff; color: var(--accent-d); border-radius: 13px; padding: 10px 12px; font: 900 13px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.d-why[hidden] { display: none; }
.d-exp { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.14); padding: 16px 16px 18px; transform: translateY(105%); transition: transform .25s; z-index: 4; }
.d-exp.on { transform: none; }
.d-exp h4 { margin: 0 0 10px; font-size: 17px; font-weight: 900; color: var(--accent-d); }
.d-exp .ans { background: var(--accent-l); border-radius: 12px; padding: 8px 12px; font-weight: 900; font-size: 20px; margin-bottom: 10px; }
.d-exp ol { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: st; }
.d-exp li { counter-increment: st; display: grid; grid-template-columns: 26px 1fr; gap: 8px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 14px; line-height: 1.4; }
.d-exp li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; display: grid; place-items: center; }
.d-exp .d-btn { background: var(--accent); box-shadow: 0 4px 0 var(--accent-d); cursor: pointer; width: 100%; }
.d-end { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 0 18px 18px; }
.d-end img { width: 130px; }
.d-end h3 { font-size: 22px; }
.d-end p { color: var(--ink2); font-size: 15px; }
.d-end .b3 { min-height: 48px; font-size: 14px; }
.d-again { background: none; border: 0; color: var(--ink2); font: 900 14px var(--font); text-decoration: underline; cursor: pointer; }
.scr.done .d-body, .scr.done .d-sheet, .scr.done .d-top { display: none; }
.scr.done .d-end { display: flex; }
.l3 .lmascot { position: absolute; z-index: 3; width: 112px; left: calc(50% - 205px); bottom: 34px; transition: transform .25s; }
.l3 .lmascot.pop { transform: translateY(-10px) rotate(-4deg); }
.tryme { position: absolute; z-index: 3; right: calc(50% - 200px); top: 92px; background: var(--yellow); color: #5A3D05; font-weight: 900; font-size: 13px; padding: 7px 12px; border-radius: 12px; transform: rotate(4deg); box-shadow: 0 4px 0 var(--yellow-d); }
.wave { display: block; width: 100%; height: 40px; margin-top: -40px; position: relative; z-index: 1; }

/* Jalur bukti */
.proof { padding-block: 26px 8px; }
.proof .w { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.pf b { display: block; font-size: 34px; line-height: 1; color: var(--accent-d); font-variant-numeric: tabular-nums; }
.pf span { font-size: 14px; color: var(--ink2); }
.ssm { grid-column: 1 / -1; font-size: 13px; color: var(--ink2); border-top: 2px solid var(--line); padding-top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ssm i { font-style: normal; background: var(--tint); color: var(--accent-d); border-radius: 8px; padding: 2px 8px; font-weight: 900; }

/* Bahagian umum */
.l3 .sec3 { padding-block: 54px; }
.l3 .sec3.tint { background: var(--tint); }
.kicker { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--kick); }
.l3 .sec3 h2 { font-size: clamp(28px, 6.6vw, 40px); margin: 8px 0 12px; }
.lede { color: var(--ink2); font-size: 18px; max-width: 54ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: center; }
.shot { width: 260px; max-width: 100%; margin: 0 auto; border-radius: 34px; background: var(--frame); padding: 8px; box-shadow: 0 22px 44px rgba(16,38,26,.18); position: relative; }
.shot img { display: block; border-radius: 27px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.shot.short img { aspect-ratio: auto; }
.tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.tag.prem { background: #6A43CF; }
.l3 .ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.l3 .ticks li { display: flex; gap: 10px; align-items: flex-start; }
.l3 .ticks svg { flex: none; margin-top: 3px; }
.after { margin-top: 22px; max-width: 400px; display: grid; gap: 10px; }
.fine { font-size: 13px; color: var(--ink3); margin-top: 14px; }
.fine a { color: inherit; }

/* Rel skrin */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 20px 12px; margin-inline: -20px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; scroll-snap-align: center; }
.rail .shot { width: 100%; padding: 7px; border-radius: 30px; }
.rail .shot img { border-radius: 24px; }
.rail figcaption { margin-top: 12px; font-size: 15px; }
.rail figcaption b { display: block; font-size: 16px; }
.rail figcaption span { color: var(--ink2); }
.swipe { font-size: 13px; color: var(--ink3); text-align: center; }

/* Pulau / unit */
.isles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; margin-top: 22px; }
.isle { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-bottom: 2px solid var(--line); }
.isle:last-child { border-bottom: 0; }
.glyph { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-weight: 900; font-size: 24px; color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.16); }
.glyph.ar { font-family: var(--ar); font-size: 34px; line-height: 1; padding-bottom: 6px; }
.glyph svg { width: 34px; height: 34px; }
.isle h3 { font-size: 19px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.isle h3 small { font-size: 13px; color: var(--ink3); font-weight: 800; }
.isle p { color: var(--ink2); font-size: 15px; }

/* Ibu bapa */
.safe { display: grid; gap: 14px; margin-top: 18px; }
.safe > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.safe .ic3 { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; }
.safe b { display: block; }
.safe span { color: var(--ink2); font-size: 15px; }

/* Harga */
.plans3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 22px; }
.plan3 { background: #fff; border-radius: 22px; padding: 22px; border: 2px solid var(--line); }
.plan3.free { border-color: var(--accent); box-shadow: 0 6px 0 var(--accent-l); }
.plan3 .pt { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan3 h3 { font-size: 20px; }
.pill { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; border-radius: 99px; padding: 4px 10px; background: var(--green-l); color: var(--green-d); }
.pill.soon { background: #F1EAFF; color: #6A43CF; }
.amt { margin: 10px 0 2px; font-size: 40px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.amt small { font-size: 16px; color: var(--ink2); }
.per { color: var(--ink2); font-size: 14px; }
.plan3 .ticks { font-size: 15px; }
.plan3 .b3 { margin-top: 18px; }
.plan3 [data-premium-lead] .card { margin-top: 14px; }
.more { margin-top: 16px; }
.more summary { cursor: pointer; font-weight: 900; color: var(--accent-d); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.tbl-wrap { overflow-x: auto; margin-top: 12px; }
.l3 table.ptab { border-collapse: collapse; width: 100%; min-width: 280px; font-variant-numeric: tabular-nums; background: #fff; border-radius: 14px; overflow: hidden; }
.ptab th, .ptab td { padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--tint); font-size: 15px; }
.ptab th { color: var(--ink2); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

/* FAQ */
.faq3 { margin-top: 18px; display: grid; gap: 10px; }
.faq3 details { border: 2px solid var(--line); border-radius: 16px; padding: 0 16px; background: #fff; }
.faq3 summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 900; position: relative; }
.faq3 summary::-webkit-details-marker { display: none; }
.faq3 summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 3px solid var(--ink3); border-bottom: 3px solid var(--ink3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq3 details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq3 details p { padding-bottom: 16px; color: var(--ink2); font-size: 16px; }
.faq3 details a { color: var(--accent-d); font-weight: 900; }

/* Penutup + footer */
.final3 { background: var(--hero); color: #fff; padding-block: 52px; text-align: center; }
.final3 img { width: 120px; margin: 0 auto 8px; display: block; }
.final3 h2 { font-size: clamp(28px, 7vw, 42px); }
.final3 p { color: var(--hero-sub); margin-top: 8px; }
.final3 .cta { margin: 22px auto 0; }
.lfoot3 { padding-block: 26px 110px; font-size: 13px; color: var(--ink2); }
.lfoot3 .w { display: grid; gap: 8px; }
.lfoot3 nav { display: flex; gap: 8px 14px; flex-wrap: wrap; font-weight: 900; }
.lfoot3 a { color: var(--ink2); }

/* Laman utama: kad pilih umur dalam hero */
.agecards { display: grid; gap: 14px; margin-top: 22px; max-width: 520px; }
.agecard { display: grid; grid-template-columns: 72px minmax(0, 1fr) 40px; gap: 14px; align-items: center; border-radius: 22px; padding: 12px 14px; color: #fff; text-decoration: none; transition: transform .06s, box-shadow .06s; }
.agecard.g { background: #2EBD59; box-shadow: 0 6px 0 #1A8A3F; } .agecard.p { background: #9B6BFF; box-shadow: 0 6px 0 #6E45D6; }
.agecard:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.agecard:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.agecard img { width: 72px; height: 72px; border-radius: 18px; background: rgba(255,255,255,.22); padding: 4px; }
.agecard small { display: block; font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; opacity: .92; }
.agecard b { display: block; font-size: 22px; line-height: 1.15; font-weight: 900; }
.agecard em { display: block; font-style: normal; font-size: 14px; font-weight: 800; opacity: .92; }
.agecard i { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.agecard.g i { color: #1F9A45; } .agecard.p i { color: #7A4FE0; }
.lhero.home .w > div:first-child { padding-bottom: 58px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--hero-sub); max-width: 520px; }
.hero-note .link { color: #fff; }
.home-art { display: none; }
.bigmascot { width: 360px; filter: drop-shadow(0 18px 28px rgba(0,0,0,.22)); }
.safe-grid { grid-template-columns: minmax(0, 1fr); }
.loginrow { display: grid; gap: 12px; margin-top: 18px; max-width: 520px; }

/* Butang melekat (telefon) */
.stick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.97); border-top: 2px solid var(--line); padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateY(110%); transition: transform .25s; }
.stick.on { transform: none; }
.stick .b3 { max-width: 480px; margin: 0 auto; display: flex; }
.stick small { display: block; text-align: center; color: var(--ink2); font-size: 12px; margin-top: 6px; }

@media (min-width: 860px) {
  .lhero { padding-block: 40px 0; }
  .lhero .w { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .stage { padding-bottom: 70px; }
  .proof .w { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.rev > :first-child { order: 2; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 18px 0 0; }
  .isles { grid-template-columns: 1fr 1fr; }
  .isle:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .plans3 { grid-template-columns: 1fr 1fr; align-items: start; }
  .home-art { display: flex; padding-bottom: 60px; }
  .safe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; }
  .loginrow { grid-template-columns: 1fr 1fr; }
  .stick, .swipe { display: none; }
  .lfoot3 { padding-block: 26px 40px; }
}
@media (max-width: 420px) {
  .l3 .lmascot { width: 92px; left: -6px; bottom: 30px; }
  .tryme { right: 6px; top: -14px; }
}
@media (prefers-reduced-motion: reduce) { .l3 * { transition: none !important; animation: none !important; } }
