/* SMP-Elite www "Kedai" — gaya asas. Spec: docs/superpowers/specs/2026-10-05-www-kedai-design.md */

/* ── Fon (dihoskan sendiri) ───────────────────────────────── */
@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/v2/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/v2/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/v2/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/v2/fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-style: normal; font-display: swap; src: url(/assets/v2/fonts/inter-latin-800-normal.woff2) format("woff2"); }

/* ── Token ────────────────────────────────────────────────── */
:root {
  --ink: #0f172a;
  --ink-dalam: #0b1222;
  --oren: #c2410c;
  --oren-logo: #ea580c;
  --oren-muda: #fdba74;
  --oren-tua: #7c2d12;
  --kertas: #f8fafc;
  --garis: #e2e8f0;
  --teks-lembut: #cbd5e1;
  --teks-malap: #94a3b8;

  --jejari-s: 14px;
  --jejari-m: 22px;
  --jejari-l: 36px;

  --lebar: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fon: Inter, "Segoe UI", system-ui, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--fon);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; }
a { color: var(--oren); }
a:hover { color: #9a3412; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.px { display: none; }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 700; text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip:focus { transform: translateY(76px); }

/* ── Butang & kaca ────────────────────────────────────────── */
.kaca {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; border-radius: 999px;
  font-family: inherit; font-weight: 700; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-oren, .btn-oren:hover { background: var(--oren); color: #fff; }
.btn-besar { padding: 16px 26px; font-size: 16px; box-shadow: 0 12px 30px rgba(194, 65, 12, .45); }
.btn-kaca, .btn-kaca:hover { padding: 15px 24px; font-size: 16px; font-weight: 700; color: #fff; border: 2px solid rgba(255, 255, 255, .6); }
.btn-sedang { padding: 12px 20px; font-size: 16px; }

[data-akan-datang] { pointer-events: none; opacity: .6; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn-gelap, .btn-gelap:hover { background: var(--ink); color: #fff; }
.btn-gelap.btn-besar { padding: 14px 22px; border-radius: 14px; font-size: 16px; box-shadow: none; }
.btn-play { display: inline-flex; align-items: center; padding: 12px 16px; border-radius: 14px; border: 1px dashed #cbd5e1; font-size: 14px; font-weight: 600; color: #475569; text-decoration: none; }
.btn-play[data-akan-datang] { opacity: 1; }

/* ── Nav kaca cecair ──────────────────────────────────────── */
.hx-nav {
  position: sticky; top: 0; z-index: 40;
  height: 88px; margin-bottom: -88px;
  display: flex; align-items: center;
  color: #fff;
}
.hx-bar {
  position: relative;
  width: 100%; max-width: var(--lebar); margin: 12px auto 0;
  padding: 12px 14px 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease,
              -webkit-backdrop-filter .4s ease, backdrop-filter .4s ease;
}
.hx-bar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background:
    radial-gradient(120% 160% at 18% -60%, rgba(255, 255, 255, .22), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%);
}
.hx-nav.is-solid .hx-bar,
html:not(.js) .hx-nav .hx-bar {
  background: linear-gradient(180deg, rgba(51, 65, 85, .55), rgba(15, 23, 42, .66));
  border-color: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(255, 255, 255, .06),
              0 12px 32px rgba(2, 6, 23, .3);
}
.hx-nav.is-solid .hx-bar::before,
html:not(.js) .hx-nav .hx-bar::before { opacity: 1; }
.hx-bar a { color: #e2e8f0; text-decoration: none; }
.hx-bar a:hover { color: #fff; }
.hx-bar a:focus-visible { outline: 2px solid var(--oren-muda); outline-offset: 3px; border-radius: 6px; }
.hx-bar .btn-oren, .hx-bar .btn-oren:hover { color: #fff; gap: .28em; }

.hx-jenama { display: flex; align-items: center; gap: 12px; color: #fff; }
.hx-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--oren-logo); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(234, 88, 12, .45);
}
.hx-nama { font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.hx-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.hx-tindakan { display: flex; align-items: center; gap: 16px; }
.hx-masuk { font-size: 15px; font-weight: 600; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 860px; display: flex; flex-direction: column;
  background-image:
    linear-gradient(105deg, rgba(15, 23, 42, .94) 0%, rgba(15, 23, 42, .82) 42%, rgba(15, 23, 42, .45) 100%),
    url(/assets/v2/shots/foto-sekolah.webp);
  background-size: cover; background-position: center 30%;
}
.foto {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, .9), rgba(15, 23, 42, .78)),
    url(/assets/v2/shots/foto-sekolah.webp);
  background-size: cover; background-position: center;
}
.hero-isi {
  flex-grow: 1; width: 100%; max-width: var(--lebar); margin: 0 auto;
  padding: 136px 24px 80px;
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
}
.hero-teks { display: flex; flex-direction: column; gap: 26px; }
.hero-atas {
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--oren-muda);
}
.hero h1 {
  font-size: 60px; line-height: 1.04; font-weight: 800;
  letter-spacing: -.025em; text-wrap: balance;
}
.hero h1 span, .aksen { color: var(--oren-muda); }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--teks-lembut); max-width: 540px; }
.hero-poin { display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: #f1f5f9; }
.hero-poin li { display: flex; gap: 12px; align-items: flex-start; }
.hero-poin svg { flex-shrink: 0; }
.hero-mula { font-size: 19px; font-weight: 700; line-height: 1.45; color: #fff; }
.hero-mula span { color: var(--oren-muda); }
.cip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  font-size: 15px; color: #f1f5f9;
}
.cip-ikon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--oren-muda); display: grid; place-items: center;
}
.cip strong { color: var(--oren-muda); }
.hero-cta { display: flex; flex-direction: column; gap: 14px; }
.hero-cta-baris { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-nota { font-size: 14px; color: var(--teks-malap); }

.hero-visual { position: relative; padding: 12px 0 40px; }
.hero-bingkai {
  border-radius: var(--jejari-m); padding: 10px;
  box-shadow: 0 40px 80px rgba(2, 6, 23, .55);
}
.titik { display: flex; gap: 6px; padding: 4px 6px 10px; }
.titik span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.titik span:nth-child(2) { background: rgba(255, 255, 255, .25); }
.titik span:nth-child(3) { background: rgba(255, 255, 255, .18); }
.zum {
  display: block; position: relative; width: 100%; padding: 0; border: 0;
  background: none; border-radius: 12px; overflow: hidden; cursor: zoom-in;
}
.zum img { display: block; width: 100%; height: auto; border-radius: 12px; transition: transform .35s var(--ease); }
.zum:hover img { transform: scale(1.015); }
.zum:focus-visible { outline: 2px solid var(--oren-muda); outline-offset: 4px; }
.zum-tag {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(15, 23, 42, .8); color: #fff;
  font: 600 14px var(--fon);
}

/* Kad contoh Cikgu AI */
.hx-kad {
  position: absolute; left: -40px; bottom: -36px; width: 320px;
  border-radius: 18px; padding: 14px 16px 12px;
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(15, 23, 42, .78);
  box-shadow: 0 24px 48px rgba(2, 6, 23, .5);
  transition: border-color .18s;
}
.hx-kad:hover { border-color: rgba(253, 186, 116, .4); }
.kad-kepala { display: flex; align-items: center; gap: 8px; }
.kad-ikon {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--oren-muda); display: grid; place-items: center;
}
.kad-kepala strong { font-size: 13px; color: #fff; }
.kad-label {
  margin-left: auto; font-size: 11px; font-weight: 600; color: var(--teks-lembut);
  padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2);
}
.hc-q {
  align-self: flex-end; background: var(--oren); color: #fff;
  font-size: 13px; padding: 7px 12px; border-radius: 14px 14px 4px 14px;
}
.hc-jawab { position: relative; min-height: 40px; }
.hc-dots { position: absolute; left: 2px; top: 6px; display: none; gap: 4px; }
.hc-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--oren-muda); }
.hc-a { font-size: 14px; line-height: 1.45; color: #f1f5f9; }
.hc-a strong { color: var(--oren-muda); }
.hc-carta { display: flex; flex-direction: column; gap: 4px; }
.hc-bar {
  height: 64px; display: grid; gap: 8px; align-items: end;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.hc-b {
  height: 100%; transform-origin: bottom;
  background: rgba(255, 255, 255, .35); border-radius: 4px 4px 0 0;
}
.hc-b.h94 { height: 94%; }
.hc-b.h97 { height: 97%; }
.hc-tiang { position: relative; height: 88%; }
.hc-tiang .hc-b { background: var(--oren-muda); }
.hc-lbl {
  position: absolute; left: 0; right: 0; top: -17px; text-align: center;
  font-size: 11px; font-weight: 700; color: var(--oren-muda);
}
.hc-hari {
  display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr));
  font-size: 11px; color: var(--teks-malap); text-align: center;
}
.hc-ft {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.hc-ft span { font-size: 12px; color: var(--teks-malap); }
.hc-link, .hc-link:hover {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px;
  font-size: 13px; font-weight: 700; color: var(--oren-muda); text-decoration: underline; text-underline-offset: 3px;
}
.hc-link svg { transition: transform .18s; }
.hc-link:hover svg { transform: translateY(2px); }

/* Animasi muat hero — hanya transform/opacity */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hcIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes hcFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes hcBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes hcDots { 0% { opacity: 0; } 15% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes hcPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
  @keyframes hxRise { from { opacity: .6; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes hxGlide { from { opacity: .6; transform: translateY(32px) scale(.97); } to { opacity: 1; transform: none; } }

  .hc-q { animation: hcIn .36s cubic-bezier(.22, 1, .36, 1) 1s both; }
  .hc-dots { display: flex; animation: hcDots .85s linear 1.45s both; }
  .hc-dots span { animation: hcPulse .35s ease-in-out 1.45s 2 both; }
  .hc-dots span:nth-child(2) { animation-delay: 1.57s; }
  .hc-dots span:nth-child(3) { animation-delay: 1.69s; }
  .hc-a { animation: hcIn .32s cubic-bezier(.22, 1, .36, 1) 2.25s both; }
  .hc-b { animation: hcBar .56s var(--ease) 2.6s both; }
  .hc-bar > .hc-b:nth-child(2) { animation-delay: 2.67s; }
  .hc-tiang .hc-b { animation-delay: 2.74s; }
  .hc-bar > .hc-b:nth-child(4) { animation-delay: 2.81s; }
  .hc-bar > .hc-b:nth-child(5) { animation-delay: 2.88s; }
  .hc-lbl { animation: hcFade .22s ease-out 3.45s both; }
  .hc-ft { animation: hcFade .3s ease-out 3.75s both; }

  .hx-r1 { animation: hxRise .6s var(--ease) both; }
  .hx-r2 { animation: hxRise .6s var(--ease) .08s both; }
  .hx-r3 { animation: hxRise .6s var(--ease) .16s both; }
  .hx-r4 { animation: hxRise .6s var(--ease) .24s both; }
  .hx-r5 { animation: hxRise .6s var(--ease) .32s both; }
  .hx-shot { animation: hxGlide .9s var(--ease) .2s both; }
}

/* ── Kepercayaan ──────────────────────────────────────────── */
.trust {
  background: var(--ink); color: var(--teks-lembut);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.trust-isi {
  max-width: var(--lebar); margin: 0 auto; padding: 28px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 32px;
}
.trust-cip { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-cip span {
  font-size: 14px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
}
.trust-ciri { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: #e2e8f0; }
.trust-ciri span { display: flex; align-items: center; gap: 8px; }

.sec { scroll-margin-top: 96px; }

/* ── Seksyen A: sebelum, skrin, Cikgu AI, app ─────────────── */
[hidden] { display: none !important }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.blok { padding: 112px 0 }
.ov { overflow-x: clip }
.t-terang { background: var(--kertas) }
.t-putih { background: #fff }
.t-gelap { background: var(--ink-dalam); color: #fff }
.blok-isi, .blok-bawah { max-width: var(--lebar); margin: 0 auto; padding: 0 24px }
.blok-isi { display: flex; flex-direction: column; gap: 40px }
.blok-isi.lapang { gap: 48px }
.seimbang { text-wrap: balance }
.kol, .kepala-blok { display: flex; flex-direction: column; gap: 22px }
.kepala-blok { gap: 14px; max-width: 720px }
.kol-kecil { display: flex; flex-direction: column; gap: 12px }
.kol-kecil.rapat { gap: 10px }
.mata { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oren) }
.t-gelap .mata { color: var(--oren-muda) }
.h2 { font-size: 46px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em }
.h3 { font-size: 28px; font-weight: 800; letter-spacing: -.01em }
.lead { font-size: 18px; line-height: 1.6; color: #475569 }
.kol .lead, .lead.lega { line-height: 1.65 }
.t-gelap .lead { color: var(--teks-lembut) }
.catatan { font-size: 14px; line-height: 1.6; color: #475569 }
.label-kecil { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teks-malap) }
.senarai { display: flex; flex-direction: column; gap: 14px; font-size: 16px }
.t-gelap .senarai { color: #e2e8f0 }
.tik-li li { display: flex; gap: 12px }
.tik-li svg { flex-shrink: 0 }

.banding { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)) }
.kad-s { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px }
.kad-s h3 { font-size: 18px; font-weight: 700 }
.kad-lama { background: #fff; border: 1px solid var(--garis) }
.kad-lama h3 { color: #64748b }
.kad-lama .senarai { color: #475569 }
.kad-baru .tik-li li { gap: 10px }
.kad-baru { background: var(--ink); color: #fff; box-shadow: 0 30px 60px rgba(15,23,42,.18) }
.kad-baru h3 { color: var(--oren-muda) }
.kad-baru .senarai { color: #f1f5f9 }

.fz:focus-visible { outline: 2px solid var(--oren); outline-offset: 3px }
.t-terang .btn:focus-visible, .t-putih .btn:focus-visible { outline: 3px solid var(--oren); outline-offset: 2px; box-shadow: 0 0 0 5px #fff }
.bingkai-gelap { background: var(--ink); border-radius: var(--jejari-m); padding: 10px; box-shadow: 0 40px 80px rgba(15,23,42,.22) }
.bingkai-gelap .zum, .bingkai-gelap .zum img { border-radius: 14px }

.nota-pdpa { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: rgba(253,186,116,.08); border: 1px solid rgba(253,186,116,.28); font-size: 15px; line-height: 1.6; color: #f1f5f9 }
.nota-pdpa svg { flex-shrink: 0 }
.jalur-ai { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)) }
@media (min-width: 900px) { .jalur-ai { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.jalur-ai .zum::after { content: "Besarkan"; position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(15,23,42,.85); color: #fff; font: 600 13px var(--fon) }
.jalur-ai .zum { border: 1px solid rgba(255,255,255,.15) }
.jalur-ai img { aspect-ratio: 16 / 10; object-fit: cover; object-position: right top; border-radius: 11px }
.chat { display: flex; flex-direction: column; gap: 20px }
.chat-panel { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 26px }
.chat-kepala { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1) }
.chat-kepala .kad-ikon { width: 32px; height: 32px; border-radius: 10px }
.chat-kepala strong { font-size: 15px }
.chat-peranan { font-size: 14px; color: var(--teks-lembut) }
.chat-no { margin-left: auto; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); font-size: 14px; font-weight: 700; color: var(--oren-muda) }
.g-q { align-self: flex-end; max-width: 82%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--oren); color: #fff; font-size: 16px; line-height: 1.5 }
.g-a + .g-q { line-height: normal }
.g-a { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 18px 18px 18px 4px; background: rgba(255,255,255,.07) }
.g-a > p, .g-ol { font-size: 16px; line-height: 1.55; color: #f1f5f9 }
.g-ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; list-style: decimal; color: #e2e8f0 }
.g-ol strong { color: #fff }
.g-fig { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 10px; background: var(--ink); border: 1px solid rgba(255,255,255,.1); border-radius: 14px }
.g-fig figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--teks-lembut) }
.g-fig figcaption span:first-child { font-weight: 600; color: #fff }
.g-fig strong { color: var(--oren-muda) }
.g-bar, .g-pal { padding: 0 4px; display: grid; gap: 14px; align-items: end; grid-template-columns: repeat(5, minmax(0, 1fr)) }
.g-bar { height: 150px; border-bottom: 1px solid rgba(255,255,255,.15) }
.g-bar div { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px }
.g-bar span { font-size: 12px; font-weight: 700; color: #fff }
.g-bar i { display: block; width: 100%; background: var(--oren-muda); border-radius: 6px 6px 0 0; }
.g-bar i.low { background: var(--oren-logo) }
.p64 { height: 64% } .p69 { height: 69% } .p71 { height: 71% } .p74 { height: 74% } .p78 { height: 78% } .p84 { height: 84% } .p87 { height: 87% }
.g-pal { font-size: 12px; color: var(--teks-malap); text-align: center }
.g-pal span { min-width: 0; line-height: 1.25; hyphens: manual }
.g-jad { border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden }
.g-jad table { width: 100%; border-collapse: collapse; font-size: 13px; color: #e2e8f0 }
.g-jad th, .g-jad td { padding: 9px 12px; text-align: left; font-weight: 500 }
.g-jad thead tr { background: rgba(255,255,255,.06); color: var(--teks-malap) }
.g-jad thead th { font-weight: 600 }
.g-jad tbody tr { border-top: 1px solid rgba(255,255,255,.08) }
.g-jad .n { text-align: right }
.g-jad tr.hi { background: rgba(234,88,12,.12); color: var(--oren-muda) }
.g-jad tr.hi th, .g-jad tr.hi td.n { font-weight: 600 }
.g-jad tr.hi td.biasa { color: #e2e8f0; font-weight: 500 }
.g-btns { display: flex; flex-wrap: wrap; gap: 8px }
.g-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #e2e8f0; font: 600 13px var(--fon); cursor: default }
button.g-btn { cursor: pointer }
.g-btn.oren { background: var(--oren-muda); border-color: transparent; color: #431407; font-weight: 700; padding-inline: 14px }
.chat-nota { margin-top: -16px; font-size: 14px; color: var(--teks-lembut) }

.peranan-nota { display: flex; align-items: center; gap: 10px; font-size: 15px }
.ikon-bulat { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #2e7d4f; display: grid; place-items: center }
.kipas { --d: 165px; --w: 250px; position: relative; height: 520px }
.fon { --tx: 0px; --ty: 0%; --rot: 0deg; --sk: 1; position: absolute; left: 50%; top: 50%; z-index: 3; width: var(--w); aspect-ratio: 250 / 430; padding: 10px; border-radius: 38px; background: var(--ink); box-shadow: 0 40px 80px rgba(15,23,42,.35); transform: translate(calc(-50% + var(--tx) * var(--p, 1)), calc(-50% + var(--ty) * var(--p, 1))) rotate(calc(var(--rot) * var(--p, 1))) scale(var(--sk)); transition: opacity .13s ease-out }
/* Tukar peranan: telefon meluncur & berpusing ke kedudukan baharu (bukan pudar) */
.kipas.tukar .fon { transition: transform .7s var(--ease), opacity .45s ease, box-shadow .45s ease }
.fz { display: block; height: 100%; border-radius: 28px; overflow: hidden }
.fz img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 28px }
.fon figcaption { position: absolute; left: 0; right: 0; bottom: -36px; text-align: center; font-size: 14px; font-weight: 700; color: #64748b }
[data-aktif=ai] [data-peranan=guru], [data-aktif=guru] [data-peranan=penjaga],
[data-aktif=penjaga] [data-peranan=guru], [data-aktif=pelajar] [data-peranan=guru] { --tx: calc(var(--d) * -1); --ty: 2%; --rot: -8deg; --sk: .88; z-index: 1; box-shadow: 0 24px 48px rgba(15,23,42,.22) }
[data-aktif=ai] [data-peranan=penjaga], [data-aktif=guru] [data-peranan=pelajar],
[data-aktif=penjaga] [data-peranan=pelajar], [data-aktif=pelajar] [data-peranan=penjaga] { --tx: var(--d); --ty: 2%; --rot: 8deg; --sk: .88; z-index: 2; box-shadow: 0 24px 48px rgba(15,23,42,.22) }
[data-aktif=ai] [data-peranan=pelajar], [data-aktif=guru] [data-peranan=ai],
[data-aktif=penjaga] [data-peranan=ai], [data-aktif=pelajar] [data-peranan=ai] { --sk: .8; z-index: 0; opacity: 0; visibility: hidden; box-shadow: none }
[data-aktif=ai] [data-peranan=ai] figcaption, [data-aktif=guru] [data-peranan=guru] figcaption,
[data-aktif=penjaga] [data-peranan=penjaga] figcaption, [data-aktif=pelajar] [data-peranan=pelajar] figcaption { color: var(--oren) }
.blok-bawah { margin-top: 88px; display: flex; flex-direction: column; gap: 24px }
.pautan, .pautan:hover { color: var(--oren); font-weight: 700; text-decoration: underline; text-underline-offset: 3px }
.t-gelap .pautan, .t-gelap .pautan:hover { color: var(--oren-muda) }
.app-grid { display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) }
.app-grid li { display: flex; flex-direction: column; gap: 8px }
.fr { transition: transform .25s var(--ease), box-shadow .25s }
.fr:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(15,23,42,.12) }
.cta .btn:hover, .jh .btn:hover, .jh-cta-m .btn:hover { transform: none; box-shadow: 0 0 0 3px rgba(253, 186, 116, .45) }
.fr { width: 100%; max-width: 220px; aspect-ratio: 220 / 392; padding: 8px; border-radius: 32px; background: var(--ink); box-shadow: 0 20px 40px rgba(15,23,42,.18) }
.fr .fz, .fr img { border-radius: 24px }
.app-grid strong { margin-top: 6px; font-size: 18px }
.app-grid span { font-size: 16px; line-height: 1.5; color: #334155 }

@media (max-width: 767px) {
  .blok { padding: 72px 0 }
  .h2, .cta .h2 { font-size: 32px }
  [data-aktif=ai] .fon:not([data-peranan=ai]), [data-aktif=guru] .fon:not([data-peranan=guru]),
  [data-aktif=penjaga] .fon:not([data-peranan=penjaga]), [data-aktif=pelajar] .fon:not([data-peranan=pelajar]) { display: none }
}
@media (max-width: 640px) { .chat { padding: 18px } .g-q { max-width: 92% } .g-bar, .g-pal { gap: 4px } .g-pal { font-size: 11px; letter-spacing: -.02em } }

/* ── Seksyen B: modul, langkah, harga, jujur, soalan, CTA ─── */
#modul { background: var(--ink) }
.m-grup { display: flex; flex-direction: column; gap: 16px }
.m-grup-kepala { display: flex; align-items: center; gap: 14px }
.m-grup-kepala h3 { font-size: 22px; font-weight: 800; color: #fff }
.m-garis { flex-grow: 1; height: 1px; background: rgba(255, 255, 255, .12) }
.m-nota { font-size: 16px; font-weight: 600; color: var(--oren-muda); white-space: nowrap }
.m-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)) }
.m-tile, .m-tile:hover { color: #fff; text-decoration: none }
.m-tile { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14); transition: transform .25s var(--ease) }
.m-tile:hover { transform: translateY(-2px); border-color: rgba(253, 186, 116, .45) }
.m-tile:focus-visible { outline: 2px solid var(--oren-muda); outline-offset: 3px }
.m-ic { display: block; margin-bottom: 4px; color: var(--oren-muda) }
.m-ic svg { display: block }
.m-nama { font-size: 18px; font-weight: 700 }
.m-desc { font-size: 16px; line-height: 1.5; color: var(--teks-lembut) }
.m-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px }
.m-lihat { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(253, 186, 116, .5); font-size: 14px; font-weight: 700; color: var(--oren-muda) }
.m-lencana { padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 800 }
.l-percuma { background: #bbf7d0; color: #14532d }
.l-asas { background: var(--oren-muda); color: #431407 }
.l-penuh { background: #fff; color: var(--ink) }
.m-ai { background: linear-gradient(160deg, rgba(253, 186, 116, .16), rgba(255, 255, 255, .04)); border-color: rgba(253, 186, 116, .35) }
.m-ai .m-lihat { font-size: 15px }
.m-kaki { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 16px; color: var(--teks-lembut) }
.m-kaki strong { color: #fff }

.langkah { position: relative; list-style: none; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)) }
.langkah::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: linear-gradient(90deg, var(--oren-muda), var(--oren)); transform-origin: left; transform: scaleX(var(--p, 1)) }
.langkah .no { position: relative; background: #fff }
@media (max-width: 640px) { .langkah::before { display: none } }
.langkah li { display: flex; flex-direction: column; gap: 14px }
.langkah .no { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--oren); color: var(--oren); font-size: 20px; font-weight: 800 }
.langkah h3 { font-size: 20px; font-weight: 700 }
.langkah p { font-size: 16px; line-height: 1.6; color: #475569 }

.btn-garis, .btn-garis:hover { border: 2px solid var(--ink); color: var(--ink); background: #fff }

.kira { display: grid; gap: 36px; padding: 36px; border-radius: 28px; background: #fff; border: 1px solid var(--garis); color: var(--ink); grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); scroll-margin-top: 96px }
.kira-kiri, .kira-kanan { display: flex; flex-direction: column; gap: 20px }
.kira-kanan { justify-content: center; gap: 12px }
.kira h3 { font-size: 26px; font-weight: 800 }
.kira-kiri > p { margin-top: -10px; font-size: 18px; line-height: 1.6; color: #334155 }
.kira-pelajar { display: flex; flex-direction: column; gap: 10px; font-size: 18px; font-weight: 600 }
.kira-pelajar output { font-weight: 800; color: var(--oren) }
.kira input[type=range] { width: 100%; min-height: 32px; accent-color: var(--oren) }
.kira-modul { border: 0; margin: 0; padding: 0 }
.kira-modul legend { margin-bottom: 12px; font-size: 18px; font-weight: 600 }
.kira-cips { display: flex; flex-wrap: wrap; gap: 8px }
.kira-cip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; color: var(--ink); font-size: 16px; cursor: pointer }
.kira-cip:has(input:checked) { border-color: var(--oren); background: #fff7ed }
.kira-cip:focus-within { outline: 3px solid var(--oren); outline-offset: 2px }
.kira-cip input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--oren) }
.kira-baris { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--kertas); border: 1px solid var(--garis) }
.kira-baris.is-best { background: #fff7ed; border-color: var(--oren); box-shadow: inset 4px 0 var(--oren) }
.kira-baris > span { display: flex; flex-direction: column; gap: 4px; font-size: 18px; font-weight: 700 }
.kira-baris small { font-size: 15px; font-weight: 400; color: #475569 }
.kira-baris strong { font-size: 26px; font-weight: 800; white-space: nowrap }
.kira-cadangan { margin-top: 6px; font-size: 18px; font-weight: 700; color: #9a3412 }

.kepala-blok.lebar { max-width: 760px }
.jujur-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)) }
.kad-j { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--jejari-m); border: 1px solid var(--garis) }
.kad-j h3 { font-size: 18px; font-weight: 700 }
.kad-j p { font-size: 15px; line-height: 1.6; color: #475569 }

.faq { max-width: 880px; gap: 32px }
.faq-senarai { display: flex; flex-direction: column; gap: 12px }
.faq-arah { font-size: 18px; color: #334155 }
.faq details { border-radius: 18px; background: #fff; border: 2px solid var(--garis) }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 18px 14px 24px; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--oren); display: grid; place-items: center; font-size: 26px; font-weight: 500; line-height: 1; color: var(--oren) }
.faq details[open] summary::after { content: "\2212" }
.faq summary:focus-visible { outline: 3px solid var(--oren); outline-offset: 2px; border-radius: 16px }
.faq details p { padding: 0 24px 22px; font-size: 18px; line-height: 1.65; color: #334155 }

.cta { padding: 128px 0; color: #fff }
.cta-isi { max-width: 820px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px }
.cta .h2 { font-size: 52px; line-height: 1.06; letter-spacing: -.025em; text-wrap: balance }
.cta .lead { line-height: normal; color: var(--teks-lembut) }
.cta-btn { justify-content: center }
.cta-btn .btn-besar { box-shadow: none }

@media (min-width: 768px) {
  .m-ai { grid-column: span 2; grid-row: span 2 }
  .m-ai .m-nama { font-size: 26px }
  .m-ai .m-desc { font-size: 17px }
}
@media (max-width: 767px) {
  .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .m-ai { grid-column: 1 / -1 }
  .m-tile { padding: 16px; min-height: 0 }
  .m-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
  .cta { padding: 72px 0 }
}
@media (max-width: 640px) {
  .m-grup-kepala { flex-wrap: wrap; row-gap: 4px }
  .m-grup-kepala h3 { white-space: normal }
  .m-nota { white-space: normal; text-align: right }
}

/* ── Suis bahasa kepala (dahulu hanya dlm <style> sesetengah laman) ── */
.hx-bahasa { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: inherit; font-weight: 700; font-size: 14px; text-decoration: none; letter-spacing: .04em; }
.hx-bahasa:hover { border-color: #fdba74; color: #fdba74; }
.hx-bahasa:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }
@media (max-width: 480px) { .hx-tindakan { gap: 6px; } .hx-bahasa { min-height: 28px; padding: 0 7px; font-size: 11px; } .hx-nama { white-space: nowrap; font-size: 17px; } }

/* ── Hero seragam 1:1 dgn halaman awam sistem /ciri (markup: bin/www_hero.py) ──────
   Nilai disalin drpd smp public/assets/css/awam.css (.aw-hero-foto, ::before/::after, .aw-hero-garis, .aw-sheet). */
.hs { position: relative; overflow: hidden; isolation: isolate; background: #0f172a; }
.hs.pg-hero, .hs.alat-hero { padding-bottom: 120px; }
.hs.hero:has(+ .hs-kad) { padding-bottom: 120px; }
.hs-foto { position: absolute; inset: -24px; z-index: -3; background: #334155 url(/assets/img/bg-login-1280.webp) center/cover no-repeat; filter: blur(10px) saturate(120%); }
@media (min-width: 1300px) { .hs-foto { background-image: url(/assets/img/bg-login-1920.webp); } }
.hs-lapis { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(70% 90% at 0% 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%),
              linear-gradient(180deg, rgba(15, 23, 42, .62), rgba(15, 23, 42, .72) 60%, rgba(15, 23, 42, .82)); }
.hs-ombak { position: absolute; left: 0; right: 0; bottom: 56px; width: 100%; height: 90px; z-index: -1; pointer-events: none; }
.hs-kad { padding-top: 0 !important; }
.hs-kad > .blok-isi { position: relative; z-index: 3; margin-top: -72px; background: #fff; border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18); padding: 56px 64px 64px; }
@media (max-width: 767px) { .hs-kad > .blok-isi { margin-top: -56px; padding: 24px 20px; border-radius: 22px; } }

/* ── Kaki (4 lajur; markup dijana bin/www_kaki.py) ──────────── */
body > footer { background: var(--ink-dalam); color: var(--teks-malap); font-size: 15px; line-height: 1.6; }
.kaki a, .kaki a:visited { color: var(--teks-lembut); text-decoration: none; }
.kaki a:hover { color: #fff; text-decoration: underline; }
.kaki a:focus-visible { outline: 2px solid var(--oren-muda); outline-offset: 3px; border-radius: 4px; }
.kaki-grid {
  max-width: var(--lebar); margin: 0 auto; padding: 64px 24px 48px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 48px;
}
.kaki-jenama { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.kaki-jenama p { margin: 0; }
.kaki .kaki-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 20px; font-weight: 800; text-decoration: none; }
.kaki-logo-ikon { width: 40px; height: 40px; border-radius: 10px; background: var(--oren-logo); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.kaki .kaki-cuba { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--oren); color: #fff; font-weight: 700; text-decoration: none; }
.kaki .kaki-cuba:hover { background: var(--oren-tua); text-decoration: none; }
.kaki-sosial { display: flex; gap: 10px; }
.kaki .kaki-sosial a { width: 44px; height: 44px; border-radius: 999px; background: #1e293b; color: #e2e8f0; display: inline-flex; align-items: center; justify-content: center; }
.kaki .kaki-sosial a:hover { background: var(--oren); color: #fff; }
.kaki-kol { display: flex; flex-direction: column; gap: 14px; }
.kaki-h { align-self: flex-start; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 2px solid var(--oren); color: #fff; font-size: 17px; font-weight: 700; }
.kaki-kol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kaki-hub { display: flex; gap: 12px; align-items: flex-start; }
.kaki-hub > svg { flex: none; margin-top: 4px; color: var(--oren-muda); }
.kaki-hub span { display: block; font-size: 13px; }
.kaki .kaki-kuat { color: #fff; font-weight: 600; }
.kaki-bawah {
  max-width: var(--lebar); margin: 0 auto; padding: 20px 24px; border-top: 1px solid #1e293b; font-size: 14px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
}
.kaki-bawah strong { color: #fff; }
.kaki-undang { display: flex; gap: 16px; }
@media (max-width: 960px) { .kaki-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kaki-jenama { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .kaki-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; padding: 48px 20px 32px; }
  .kaki-kol:last-child { grid-column: 1 / -1; }
  .kaki .kaki-cuba { align-self: stretch; justify-content: center; min-height: 48px; }
  .kaki-bawah { flex-direction: column; align-items: flex-start; padding: 20px; }
}

/* ── Lightbox (tingkah laku: Tugasan 5) ───────────────────── */
#lb {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0;
  border: 0; padding: 64px 76px 32px; background: rgba(2, 6, 23, .86); color: var(--teks-lembut);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#lb[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.lb-isi { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; width: 100%; max-width: 1400px; }
.lb-isi figure { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-web { flex: 1 1 560px; min-width: 0; max-width: 1080px; }
.lb-web img { width: 100%; height: auto; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 12px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.lb-fon {
  height: min(calc(100vh - 190px), 640px); aspect-ratio: 9 / 16; max-width: 86vw;
  border-radius: var(--jejari-l); background: var(--ink); padding: 10px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}
.lb-fon img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 27px; display: block; }
#lb figcaption { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--oren-muda); }
.lb-kapsyen { font-size: 15px; text-align: center; max-width: 720px; }
.lb-kira { position: absolute; top: 26px; left: 0; right: 0; text-align: center; font: 600 13px var(--fon); letter-spacing: .08em; color: var(--teks-malap); pointer-events: none; }
.lb-nav, .lb-tutup {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(15, 23, 42, .6);
  color: #fff; font: 400 28px/1 var(--fon); display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
}
.lb-nav:hover, .lb-tutup:hover { background: rgba(255, 255, 255, .18); }
.lb-nav:focus-visible, .lb-tutup:focus-visible { outline: 2px solid var(--oren-muda); outline-offset: 3px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-kiri { left: 16px; }
.lb-kanan { right: 16px; }
.lb-tutup { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 18px; }
@media (max-width: 640px) { #lb { padding: 64px 16px 80px } .lb-nav { top: auto; bottom: 20px; transform: none; width: 48px; height: 48px; } }

/* (enjin muncul + scrub: lihat 'Gerakan skrol' di hujung fail) */

/* ── Responsif ────────────────────────────────────────────── */
@media (max-width: 900px) { .hx-links { display: none; } }
@media (max-width: 767px) {
  .hx-pj { display: none; }
  .hx-tindakan { gap: 10px; }
  .hx-masuk { font-size: 14px; white-space: nowrap; }
  .hx-tindakan .btn-sedang { padding: 10px 14px; font-size: 14px; }
  .hx-bar { margin: 10px 10px 0; padding: 10px 10px 10px 16px; gap: 8px; }
  .hero h1 { font-size: 38px; }
  .hx-kad { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -32px; }
}

/* ── Kurangkan gerakan ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fr, .fr:hover { transition: none; transform: none; }
  .hx-bar, .hx-bar::before, .btn, .zum img, .skip, .hero-turun { transition: none; }
  .fon, .m-tile { transition: none; }
  .m-tile:hover { transform: none; }
}

/* ── Tanpa JS: kawalan interaktif disembunyikan; baris hasil statik kekal ── */
html:not(.js) .kira-pelajar, html:not(.js) .kira-modul { display: none }

/* ── Cikgu AI: mesej muncul berperingkat (hanya dengan JS) ── */
html.js .msg { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease) }
html.js .msg.show { opacity: 1; transform: none }
/* "Cikgu AI sedang menaip" — tiga titik berdenyut (opacity sahaja), hanya antara soalan & jawapan */
.taip { display: none; align-items: center; gap: 5px; font-size: 13px; color: var(--teks-lembut); padding: 4px 2px }
.taip.show { display: flex }
.chat-panel .g-a { transition: opacity .3s ease }
.chat-panel.menaip .g-a { opacity: 0 }
.taip i { width: 7px; height: 7px; border-radius: 50%; background: var(--oren-muda); animation: titik 1s ease-in-out infinite }
.taip i:nth-child(2) { animation-delay: .15s }
.taip i:nth-child(3) { animation-delay: .3s }
.taip span { margin-left: 6px }
@keyframes titik { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { html.js .msg { opacity: 1; transform: none; transition: none } }
@media (max-width: 360px) { .kipas { --d: 66px } }
@media (max-width: 360px) { .hx-nama { display: none } }

/* ── Bar tindakan mudah alih (mockup .w-mbar) ── */
.mbar { display: none }
@media (max-width: 767px) {
  .mbar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 8px; padding: 10px 12px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--garis) }
  .mbar a { border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none }
  .mbar-daftar, .mbar-daftar:hover { flex: 2; padding: 14px; text-align: center; background: var(--oren); color: #fff }
  .mbar-wa, .mbar-wa:hover { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; border: 2px solid var(--ink); color: var(--ink) }
  .mbar a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px }
}

/* ── Carta Cikgu AI tumbuh bila mesej muncul (mockup cBar) ── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  html.js .g-fig.show .g-bar i { transform-origin: bottom; animation: cBar .7s var(--ease) .2s both }
  html.js .g-fig.show .g-bar div:nth-child(2) i { animation-delay: .3s }
  html.js .g-fig.show .g-bar div:nth-child(3) i { animation-delay: .4s }
  html.js .g-fig.show .g-bar div:nth-child(4) i { animation-delay: .5s }
  html.js .g-fig.show .g-bar div:nth-child(5) i { animation-delay: .6s }
}

/* ── Gerakan skrol ─────────────────────────────────────────────
   Muncul sekali: [data-muncul] (IO dlm kedai.js). Keadaan tersembunyi HANYA di bawah html.js;
   jika kedai.js gagal dimuat, animasi 'selamat' memaparkan semuanya selepas 3 s.
   Scrub: [data-scrub] menerima --p 0..1 dari JS; CSS darab --p. Tanpa JS --p = keadaan rehat. */
html.js [data-muncul]:not(.is-in) { opacity: 0; transform: translate3d(0, 16px, 0) }
html.js [data-muncul] { transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--lewat, 0ms) }
html.js [data-muncul="tabir"]:not(.is-in) { opacity: 1; transform: none }
html.js [data-muncul="tabir"]:not(.is-in) .bingkai-gelap { clip-path: inset(-120px 100% -120px -120px) }
html.js [data-muncul="tabir"] .bingkai-gelap { transition: clip-path .9s var(--ease) }
html.js [data-muncul="tabir"]:not(.is-in) .bingkai-gelap img { scale: 1.06 }
html.js [data-muncul="tabir"].is-in .bingkai-gelap { clip-path: inset(-120px) }
html.js [data-muncul="tabir"] .bingkai-gelap img { transition: transform .35s var(--ease), scale 1s var(--ease) }
html.js [data-lewat="80"] { --lewat: 80ms }
html.js [data-lewat="160"] { --lewat: 160ms }
@keyframes selamat { to { opacity: 1; transform: none; clip-path: none; scale: none } }
html.js:not(.gerak-sedia) [data-muncul], html.js:not(.gerak-sedia) [data-muncul] .bingkai-gelap,
html.js:not(.gerak-sedia) [data-muncul] img, html.js:not(.gerak-sedia) .msg { animation: selamat 0s 3s forwards }

/* A. Hero: tangkap layar hanyut ≤24px; teks tidak bergerak */
.hero .hero-bingkai { translate: 0 calc(var(--p, 0) * 24px) }
/* B. Excel → SMP-Elite */
.sec-banding { overflow-x: clip }
.banding .kad-lama { position: relative; translate: calc(var(--p, 1) * -12px) 0; scale: calc(1 - var(--p, 1) * .03); opacity: calc(1 - var(--p, 1) * .3) }
.banding .kad-baru { translate: calc((1 - var(--p, 1)) * 40px) 0; opacity: calc(.15 + var(--p, 1) * .85) }
/* F. Tiga langkah: langkah menyala bila garisan sampai */
@media (min-width: 641px) {
  html.js .langkah[data-scrub] li { transition: opacity .4s var(--ease) }
  html.gerak-sedia .langkah[data-scrub] li:not(.capai) { opacity: .35 }
}
/* H. CTA akhir: foto mendap 1.08 → 1; satu gelang dari butang (butang tidak bergerak) */
.cta.foto { position: relative; overflow: hidden; isolation: isolate; background-image: none; background-color: var(--ink) }
.cta.foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(180deg, rgba(15, 23, 42, .9), rgba(15, 23, 42, .78)), url(/assets/v2/shots/foto-sekolah.webp); background-size: cover; background-position: center; scale: calc(1.08 - var(--p, 1) * .08) }
.cta .btn-oren { position: relative }
.cta .btn-oren::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--oren-muda); opacity: 0; transform: scale(.92); pointer-events: none }
@media (prefers-reduced-motion: no-preference) {
  @keyframes gelang { 30% { opacity: .9 } 100% { opacity: 0; transform: scale(1.3) } }
  .cta .btn-oren.gelang::after { animation: gelang 1s var(--ease) .3s 1 both }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-muncul], html.js [data-muncul] .bingkai-gelap, html.js [data-muncul] img { opacity: 1; transform: none; clip-path: none; scale: none; transition: none }
  [data-scrub] { --p: 1 !important }
  .hero[data-scrub] { --p: 0 !important }
  html.js .langkah[data-scrub] li { opacity: 1; transition: none }
}
@media print {
  html.js [data-muncul], html.js [data-muncul] .bingkai-gelap, html.js [data-muncul] img, html.js .msg { opacity: 1 !important; transform: none !important; clip-path: none !important; scale: none !important; animation: none !important }
  [data-scrub] { --p: 1 !important }
  .hero[data-scrub] { --p: 0 !important }
  html.js .langkah[data-scrub] li { opacity: 1 !important }
}

/* ── Skrol sahaja: petunjuk hero ───────────────────────────── */
.hero-turun { align-self: center; position: relative; margin: -48px auto 32px; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .5); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; transition: opacity .3s }
.hero-turun:hover { color: #fff; border-color: var(--oren-muda) }
.hero-turun:focus-visible { outline: 3px solid var(--oren-muda); outline-offset: 3px }
.dah-skrol .hero-turun { opacity: 0; pointer-events: none }

/* ── Cerita skrol: ASAS = susunan menegak (tanpa JS, telefon, reduced-motion, cetak) ── */
.cerita { display: flex; flex-direction: column; gap: 48px }
.cr-langkah { display: flex; flex-direction: column; gap: 64px; margin: 0; padding: 0; list-style: none }
.cr-item { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 96px }
.cr-no { font-size: 15px; font-weight: 800; letter-spacing: .04em; color: var(--oren) }
.t-gelap .cr-no { color: var(--oren-muda) }
.cr-teks { font-size: 18px; line-height: 1.6; color: #334155 }
.t-gelap .cr-teks { color: var(--teks-lembut) }
.cr-item .bingkai-gelap { margin-top: 8px }
.cr-bingkai, .cr-titik, .cr-kira, .cr-isyarat, .cr-soalan { display: none }
@media (min-width: 900px) {
  .cr-skrin .cr-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 48px; align-content: center }
  .cr-skrin .cr-item > * { grid-column: 1 }
  .cr-skrin .cr-item > .bingkai-gelap { grid-column: 2; grid-row: 1 / span 4; margin: 0 }
}
.ai-atas { display: grid; gap: 32px 56px; align-items: end; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)) }
.ai-arah { font-size: 18px; font-weight: 600; color: #fff }
.cr-ai .chat { max-width: 780px }
.cr-app .cr-pentas { order: -1 }
.cr-app .cr-langkah { gap: 14px }
.peranan { padding: 18px 22px; border-radius: 0 18px 18px 0; border-left: 4px solid var(--oren); background: #fff; gap: 6px }
.peranan h3 { font-size: 22px; font-weight: 800 }
.btn-play { min-height: 48px; font-size: 16px }

/* ── TAMBAHAN melekat: lebar >= 900, tinggi >= 640, JS, tiada reduced-motion. Skrol asli sahaja;
   langkah ditukar oleh IO (kelas), hanya opacity (+ bar oren scaleY) beranimasi. Pin <= 150vh. ── */
@media (min-width: 900px) and (min-height: 860px) and (prefers-reduced-motion: no-preference) {
  html.js .is-cerita { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start }
  html.js .is-cerita .cr-langkah { gap: 0; padding: 10vh 0 40vh }
  html.js .is-cerita .cr-item { position: relative; display: flex; min-height: 24vh; justify-content: center; padding: 16px 0 16px 28px; opacity: .7; transition: opacity .25s ease-out }
  html.js .is-cerita .cr-item.is-aktif { opacity: 1 }
  html.js .is-cerita .cr-item::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--oren); transform: scaleY(0); transition: transform .25s ease-out }
  html.js .t-gelap .is-cerita .cr-item::before { background: var(--oren-muda) }
  html.js .is-cerita .cr-item.is-aktif::before { transform: none }
  html.js .is-cerita .cr-item > .bingkai-gelap { display: none }
  html.js .is-cerita .cr-teks { color: #1e293b }
  html.js .t-gelap .is-cerita .cr-teks { color: #e2e8f0 }
  html.js .is-cerita .cr-pentas { position: sticky; top: 104px; order: 0; display: flex; flex-direction: column; gap: 16px }
  html.js .is-cerita .cr-bingkai { display: grid; cursor: zoom-in }
  html.js .cr-bingkai > img { grid-area: 1 / 1; display: block; width: 100%; height: auto; border-radius: 14px; opacity: 0; transition: opacity .25s ease-out }
  html.js .cr-bingkai > img.is-aktif { opacity: 1 }
  html.js .is-cerita .cr-titik { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
  html.js .is-cerita .cr-kira { display: block; font-size: 16px; font-weight: 800 }
  html.js .is-cerita .cr-titik .cr-kira { flex-basis: 100% }
  html.js .is-cerita .cr-isyarat { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 16px; font-weight: 600; color: #334155; transition: opacity .25s }
  html.js .cr-lepas .cr-isyarat { opacity: 0 }
  html.js .is-cerita .cr-soalan { display: flex }
  html.js .is-cerita .cr-q { font-size: 22px; font-weight: 700; line-height: 1.35; color: #fff }
  html.js .is-cerita .chat { display: grid; max-width: none }
  html.js .is-cerita .chat > .chat-panel { grid-area: 1 / 1; align-self: start; transition: opacity .25s ease-out }
  html.js .is-cerita .chat > .chat-panel:not(.is-aktif) { opacity: 0; pointer-events: none }
  html.js .is-cerita #ai-1 .g-a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px }
  html.js .is-cerita #ai-1 .g-a > :not(.g-fig):not(.g-jad) { grid-column: 1 / -1 }
  html.js .is-cerita #ai-1 .g-bar { height: 120px }
  html.js .is-cerita #ai-1 .g-jad table { font-size: 12px }
  html.js .is-cerita #ai-1 .g-jad :is(th, td) { padding: 6px 8px }
  html.js .is-cerita .chat-panel { padding: 20px }
  html.js .is-cerita .g-a + .g-q { display: none }
  html.js .is-cerita.cr-app .cr-pentas { top: max(96px, calc(50vh - 290px)) }
  html.js .is-cerita .kipas { --w: min(250px, 34vh); --d: calc(var(--w) * .66); height: calc(var(--w) * 1.72 + 90px) }
  html.js .is-cerita .peranan { border-left: 0; border-radius: 18px; background: none }
}
.cr-titik a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 2px solid #cbd5e1; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none }
.cr-titik a:hover { border-color: var(--oren); color: var(--ink) }
.cr-titik a[aria-current] { background: var(--oren); border-color: var(--oren); color: #fff }
.t-gelap .cr-titik a { border-color: rgba(255, 255, 255, .35); color: #fff }
.t-gelap .cr-titik a[aria-current] { background: var(--oren-muda); border-color: var(--oren-muda); color: #431407 }
.cr-titik a:focus-visible { outline: 3px solid var(--oren); outline-offset: 2px }
.t-gelap .cr-kira { color: #fff }

/* ── Harga: jadual banding (sentiasa terbuka; tiada gerakan) ── */
.jh-blok { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 96px }
.jh-kad { background: #fff; border: 1px solid var(--garis); border-radius: var(--jejari-m); box-shadow: 0 24px 48px rgba(15, 23, 42, .08); overflow: clip }
.jh { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 16px; color: var(--ink) }
.jh th, .jh td { padding: 14px 12px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--garis); overflow-wrap: break-word }
.jh tbody tr { height: 56px }
.jh tbody th { text-align: left; font-size: 17px; font-weight: 600; padding-left: 20px }
.jh tbody th small { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; color: #475569 }
.jh thead th { position: sticky; top: 88px; z-index: 2; padding: 12px 8px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 800; border-bottom: 0 }
.jh thead th:first-child { width: 34%; text-align: left; padding-left: 20px }
.jh-apa { font-size: 15px; font-weight: 700; color: var(--teks-lembut) }
.jh-h { display: block; font-size: 14px; font-weight: 600; color: var(--oren-muda) }
.jh-tab { display: block; width: fit-content; max-width: 100%; margin: 0 auto 6px; padding: 3px 10px; border-radius: 999px; background: var(--oren); color: #fff; font-size: 13px; font-weight: 800 }
.jh tbody tr:nth-child(even) > :not(:nth-child(3)) { background: rgba(15, 23, 42, .03) }
.jh-sub > * { height: auto; padding-top: 20px; padding-bottom: 8px; background: var(--kertas) }
.jh .jh-sub th { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--oren) }
.jh :is(th, td):nth-child(3) { background: rgba(194, 65, 12, .06); box-shadow: inset 2px 0 var(--oren), inset -2px 0 var(--oren) }
.jh thead th:nth-child(3) { background: #1e293b; box-shadow: inset 2px 0 var(--oren), inset -2px 0 var(--oren), inset 0 3px var(--oren) }
.jh tfoot td:nth-child(3) { box-shadow: inset 2px 0 var(--oren), inset -2px 0 var(--oren), inset 0 -2px var(--oren) }
.jh-harga > * { padding-top: 22px; padding-bottom: 22px }
.jh-rm { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1 }
.jh-harga td:nth-child(3) .jh-rm { font-size: 36px; color: var(--oren) }
.jh-bln { display: block; font-size: 14px; color: #475569 }
.jh td small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: #334155 }
.jh-pro td { font-weight: 700 }
.jh td.ya::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 28px; border-radius: 50%; background: #15803d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat }
.jh td.tiada::before { content: ""; display: inline-block; vertical-align: middle; width: 16px; height: 3px; border-radius: 2px; background: #64748b }
.jh tfoot :is(th, td) { padding: 20px 12px; border-bottom: 0 }
.jh-btn { width: 100%; justify-content: center; padding: 12px 14px; font-size: 16px; line-height: 1.25; text-align: center }
.jh-cta-m { display: none; flex-direction: column; gap: 10px }
.jh-cta-m .btn { justify-content: center; padding: 12px 18px; font-size: 16px }
.jh-nota { font-size: 18px; line-height: 1.6; color: #334155 }
.jh-nota strong { color: var(--ink) }
@media (max-width: 639px) {
  .jh-blok { margin: 0 -8px }
  .jh thead th:first-child { width: 32%; padding-left: 10px }
  .jh thead th { top: 78px }
  .jh th, .jh td { padding: 10px 3px }
  .jh tbody th { padding-left: 10px; font-size: 15px }
  .jh .jh-sub th { font-size: 12px; letter-spacing: .03em }
  .jh-pro td { font-size: 13px }
  .jh tbody th small { font-size: 14px }
  .jh thead th { font-size: 13px; padding: 8px 2px }
  .jh-apa { font-size: 12px }
  .jh-tab { font-size: 11px; padding: 2px 6px }
  .jh-h { font-size: 12px }
  .jh-rm { font-size: 20px; letter-spacing: -.03em; white-space: nowrap }
  .jh-harga td:nth-child(3) .jh-rm { font-size: 21px }
  .jh-bln, .jh td small { font-size: 13px }
  .jh td.ya::before { width: 24px; height: 24px; background-size: 14px }
  .jh tfoot { display: none }
  .jh-cta-m { display: flex }
  .kira { padding: 24px 18px }
}
/* Telefon: susunan padat supaya halaman tidak terlalu panjang (semua kandungan kekal) */
@media (max-width: 599px) {
  .blok { padding: 56px 0 }
  .app-grid { grid-template-columns: 1fr; gap: 14px }
  .app-grid li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-content: start }
  .app-grid .fr { grid-row: 1 / span 2; padding: 4px; border-radius: 14px; box-shadow: none }
  .app-grid .fr .fz, .app-grid .fr img { border-radius: 10px }
  .app-grid strong { margin-top: 4px }
  .cr-langkah { gap: 44px }
  .cr-item .h3 { font-size: 24px }
  .cr-app .cr-langkah { gap: 10px }
  .peranan { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; padding: 14px 18px }
  .peranan .cr-teks { flex-basis: 100% }
  .kipas { height: 470px }
  .chat-panel { padding: 16px; gap: 10px }
  .chat-panel .g-a { padding: 12px; gap: 10px }
  .chat-panel .g-a + .g-q { display: none }
  .g-bar { height: 110px }
  .m-tile .m-lencana { position: absolute; top: 14px; right: 12px; font-size: 13px; padding: 3px 9px }
  .m-tile { gap: 6px }
  .m-ic { margin-bottom: 0 }
  .kira-cips { display: grid; grid-template-columns: 1fr 1fr }
  .kira-cip { padding: 8px 12px; font-size: 15px; line-height: 1.25 }
}
@media (max-width: 360px) { .g-jad table { font-size: 12px } .g-jad th, .g-jad td { padding: 7px 6px } }
@media (max-width: 360px) { .jh thead th { font-size: 12px } .jh-apa { font-size: 11px } .jh-rm { font-size: 18px } .jh-harga td:nth-child(3) .jh-rm { font-size: 19px } .jh tbody th { font-size: 14px } }
@media (max-width: 640px) {
  .m-grup-kepala { flex-direction: column; align-items: flex-start }
  .m-garis { display: none }
}
@media print {
  .cr-bingkai, .cr-titik, .cr-kira, .cr-isyarat, .cr-soalan, .hero-turun { display: none !important }
  .cr-item > .bingkai-gelap { display: block !important }
  .chat-panel { opacity: 1 !important }
  .jh thead th { position: static }
}
