/* ===== edookit.my — gaya utama ===== */
:root {
  --blue: #1565e0;
  --blue-d: #0b3fa8;
  --sky: #19a8ff;
  --purple: #7b3fe4;
  --purple-l: #efe6ff;
  --green: #1fae4b;
  --orange: #ff8a00;
  --yellow: #ffd23f;
  --pink: #e8287a;
  --navy: #0b1a4e;
  --ink: #1d2340;
  --muted: #5b6283;
  --bg: #fffdf7;
  --card: #ffffff;
  --line: #e7e9f5;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(21, 40, 120, .10);
  --shadow-lg: 0 18px 50px rgba(21, 40, 120, .18);
  --font-head: "Baloo 2", "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  background: var(--purple-l); color: var(--purple); padding: 4px 16px; border-radius: 99px;
  font-size: .95rem; margin-bottom: 12px;
}
.hl { background: linear-gradient(transparent 55%, var(--yellow) 55%); padding: 0 4px; }

/* ===== Butang ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  padding: 14px 28px; border-radius: 99px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--orange), #ff5e3a); color: #fff; box-shadow: 0 8px 0 #c94a00, 0 14px 24px rgba(255, 110, 0, .35); }
.btn-primary:hover { box-shadow: 0 10px 0 #c94a00, 0 18px 30px rgba(255, 110, 0, .4); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 0 var(--blue-d); }
.btn-ghost { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 6px 0 #189c4a; }
.btn-lg { font-size: 1.3rem; padding: 18px 36px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.nav .logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 700; padding: 8px 14px; border-radius: 99px;
  font-family: var(--font-head); font-size: 1.05rem;
}
.nav-links a:hover, .nav-links a.active { background: var(--purple-l); color: var(--purple); }
.nav-links .btn { padding: 10px 20px; font-size: 1rem; color: #fff; }
.nav-links .btn:hover { background: #20bf5b; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--navy); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav .logo img { height: 32px; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, #dff1ff 0, transparent 40%),
    radial-gradient(circle at 90% 10%, #f1e4ff 0, transparent 40%),
    radial-gradient(circle at 80% 90%, #fff3c4 0, transparent 40%),
    var(--bg);
  padding: 64px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.25rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.badge {
  background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 6px 14px;
  font-weight: 800; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center;
}
.hero-mascot { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-mascot .kiki { width: min(340px, 100%); animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(40, 60, 160, .25)); }
.bubble {
  position: relative; margin: 0 auto 6px; text-align: center; background: #fff; border-radius: 22px; padding: 12px 18px;
  font-family: var(--font-head); font-weight: 700; color: var(--purple); box-shadow: var(--shadow);
  max-width: 220px; font-size: 1.05rem; line-height: 1.25;
}
.bubble::after {
  content: ""; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); border: 12px solid transparent;
  border-top-color: #fff; border-bottom: 0;
}
.float { position: absolute; font-size: 2rem; animation: floaty 6s ease-in-out infinite; opacity: .9; pointer-events: none; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(12deg); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-mascot { order: -1; }
  .hero-mascot .kiki { width: 220px; }
  .bubble { position: static; margin: 0 auto 10px; }
  .bubble::after { left: 50%; right: auto; transform: translateX(-50%); }
  .center-sm { margin-inline: auto; }
}

/* ===== Kad ===== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  border: 2px solid var(--line); position: relative;
}
.feature .icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem;
  margin-bottom: 14px; color: #fff;
}
.bg-blue { background: var(--blue); } .bg-purple { background: var(--purple); } .bg-green { background: var(--green); }
.bg-orange { background: var(--orange); } .bg-pink { background: var(--pink); } .bg-yellow { background: var(--yellow); }
.bg-sky { background: var(--sky); } .bg-navy { background: var(--navy); } .bg-teal { background: #10a5a0; } .bg-red { background: #e5484d; }

/* Kad peperiksaan */
.exam-card {
  display: block; text-decoration: none; color: inherit; border-radius: 28px; padding: 32px; overflow: hidden;
  position: relative; transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow); min-height: 260px;
}
.exam-card:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.exam-card h3 { color: #fff; font-size: 2rem; margin-bottom: 6px; }
.exam-card p { color: rgba(255, 255, 255, .92); max-width: 80%; }
.exam-card .big-emoji { position: absolute; right: 18px; bottom: 6px; font-size: 6.5rem; opacity: .95; transform: rotate(-8deg); }
.exam-card .pill { display: inline-block; background: rgba(255, 255, 255, .25); color: #fff; font-weight: 800; padding: 4px 12px; border-radius: 99px; font-size: .9rem; margin-bottom: 12px; }
.exam-card .go { display: inline-block; margin-top: 10px; background: #fff; color: var(--navy); font-family: var(--font-head); font-weight: 700; padding: 10px 20px; border-radius: 99px; }
.exam-t4 { background: linear-gradient(135deg, #1aa0ff, #1565e0 60%, #3c3bd6); }
.exam-spm { background: linear-gradient(135deg, #a259ff, #7b3fe4 55%, #e8287a); }

/* Kad subjek */
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.subject {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
  background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 22px; cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s; text-align: left; font: inherit; width: 100%;
}
.subject:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c9cdf0; }
.subject .s-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; margin-bottom: 8px; }
.subject h3 { font-size: 1.25rem; margin: 0; }
.subject small { color: var(--muted); font-weight: 700; }
.subject .status {
  position: absolute; top: 16px; right: 16px; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 99px;
}
.status.ready { background: #dcfce4; color: #138a3a; }
.status.soon { background: #f0f1f8; color: #6b7194; }
.subject.locked .s-icon { filter: grayscale(.25); opacity: .8; }
.subject.featured { border: 3px solid var(--green); background: linear-gradient(180deg, #f2fff5, #fff); }
.subject .price-tag { font-family: var(--font-head); font-weight: 800; color: var(--orange); font-size: 1.3rem; margin-top: 4px; }

/* Tab */
.tabs { display: inline-flex; background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 6px; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; justify-content: center; }
.tab { border: 0; background: none; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; padding: 10px 24px; border-radius: 99px; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--purple); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: pop .35s ease; }

/* Page header (halaman dalam) */
.page-hero { padding: 54px 0 40px; background: linear-gradient(135deg, #e3f3ff, #f2e8ff); position: relative; overflow: hidden; }
.page-hero.purple { background: linear-gradient(135deg, #f2e8ff, #ffe4f1); }
.page-hero .kiki-sm { position: absolute; right: 4%; bottom: -10px; width: 150px; animation: bob 3.2s ease-in-out infinite; }
@media (max-width: 720px) { .page-hero .kiki-sm { width: 90px; right: 8px; opacity: .9; } .page-hero h1, .page-hero .lead { padding-right: 70px; } }
.crumbs { font-size: .95rem; margin-bottom: 12px; font-weight: 700; }
.crumbs a { text-decoration: none; }
.crumbs span { color: var(--muted); }

/* Produk */
.product-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.cover-stack { position: relative; height: 460px; }
.cover-stack img { position: absolute; width: 62%; border-radius: 14px; box-shadow: var(--shadow-lg); transition: transform .3s; }
.cover-stack img:first-child { left: 0; top: 30px; transform: rotate(-6deg); z-index: 2; }
.cover-stack img:last-child { right: 0; top: 0; transform: rotate(5deg); }
.cover-stack:hover img:first-child { transform: rotate(-9deg) translateX(-10px); }
.cover-stack:hover img:last-child { transform: rotate(8deg) translateX(10px); }
@media (max-width: 860px) {
  .product-feature { grid-template-columns: 1fr; }
  .cover-stack { height: 380px; max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 420px) { .cover-stack { height: 300px; } }

.price-box { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0 18px; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--orange); line-height: 1; }
.price-note { background: #fff4d6; color: #a15c00; font-weight: 800; border-radius: 99px; padding: 4px 14px; }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li { padding-left: 34px; position: relative; margin-bottom: 10px; font-weight: 600; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 900;
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 18px; margin-bottom: 12px; padding: 0 22px; }
.faq summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; padding: 18px 30px 18px 0;
  list-style: none; position: relative; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--purple); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; border-radius: 32px;
  padding: 48px 32px; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); }

/* Footer */
.site-footer { background: var(--navy); color: #cfd5ff; padding: 56px 0 28px; margin-top: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-logo { background: #fff; border-radius: 16px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 34px; width: auto; }
.site-footer h4 { color: #fff; font-size: 1.15rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .company { font-size: .92rem; color: #aab3e6; }
.site-footer .company b { color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; font-size: .9rem; text-align: center; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp terapung */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(11, 26, 78, .55); padding: 16px; }
.modal.open { display: grid; }
.modal-box { background: #fff; border-radius: 28px; padding: 32px 26px; max-width: 420px; width: 100%; text-align: center; animation: pop .35s ease; position: relative; }
.modal-box .kiki { width: 110px; margin: -80px auto 6px; animation: bob 3s ease-in-out infinite; }
.modal-close { position: absolute; top: 12px; right: 14px; background: #f0f1f8; border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }

/* Sticky buy bar (mudah alih) */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; border-top: 2px solid var(--line);
  padding: 10px 16px; display: none; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
}
.buy-bar .bb-price { font-family: var(--font-head); font-weight: 800; color: var(--orange); font-size: 1.5rem; line-height: 1; }
.buy-bar small { display: block; color: var(--muted); font-weight: 700; }
.buy-bar .btn { padding: 12px 20px; font-size: 1.05rem; box-shadow: 0 5px 0 #c94a00; }
@media (max-width: 760px) {
  .has-buybar .buy-bar.show { display: flex; }
  .has-buybar .wa-float { bottom: 86px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* Utiliti */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; }
.bg-soft { background: linear-gradient(180deg, #f4f8ff, #fbf7ff); }
.bg-yellow-soft { background: #fff8e1; }
.wave-top { position: relative; }
.note { font-size: .9rem; color: var(--muted); }


[hidden] { display: none !important; }
