/* Home page (white background with tinted bands). Shared tokens live in app.css. */
body.theme-light { background: var(--surface); }
main.bleed { padding: 0; }

/* buttons used on light surfaces */
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.02rem; }
.btn .arrow { width: 18px; height: 18px; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid currentColor; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* ghost buttons on the navy call-to-action banner */
.h-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.h-cta .btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* typography */
.h-display, .h-title { font-family: 'DM Serif Display', 'Noto Sans Myanmar', Georgia, serif; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.h-display { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.12; margin: 18px 0 18px; }
.h-display em { font-style: normal; color: var(--pink-ink); }
.h-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.18; margin-bottom: 16px; }
html[lang=my] .h-display, html[lang=my] .h-title { font-family: 'Noto Sans Myanmar', 'Inter', sans-serif; font-weight: 700; line-height: 1.55; letter-spacing: 0; }
html[lang=my] .h-display { font-size: clamp(1.8rem, 4.2vw, 2.8rem); }
html[lang=my] .h-title { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.h-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }
.h-body { color: var(--ink-2); max-width: 36em; margin-bottom: 24px; }
.h-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fde7f8; color: var(--pink-ink); font-weight: 600; font-size: .9rem; }
.h-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.h-actions { margin-top: 30px; gap: 14px; }

/* shared decorative shapes */
.shape { position: absolute; pointer-events: none; }
.shape-circle { width: 78%; aspect-ratio: 1; right: 0; top: 8%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6ae6, var(--pink) 45%, #d600b8); }
.shape-dots { width: 150px; height: 150px; left: 2%; top: 0; background-image: radial-gradient(var(--ink) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .18; }
.shape-ring { width: 64px; height: 64px; right: 4%; bottom: 6%; border-radius: 50%; border: 10px solid var(--ink); }
.shape-dots-pink { width: 72%; aspect-ratio: 1; left: -4%; top: -6%; border-radius: 50%; background-image: radial-gradient(var(--pink) 3px, transparent 3.5px); background-size: 18px 18px; opacity: .55; }
.shape-corner { width: 90px; height: 90px; right: 6%; bottom: -14px; background-image: radial-gradient(var(--ink) 1.6px, transparent 2px); background-size: 9px 9px; opacity: .35; }

/* hero */
.h-hero { padding: 56px 0 76px; overflow: hidden; }
.h-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.h-hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.h-photo { position: relative; z-index: 1; width: min(400px, 92%); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px rgba(11, 21, 51, .18); }
.h-photo-rect { aspect-ratio: 5 / 4; width: 100%; }
.h-float-badge { position: absolute; z-index: 2; left: 0; bottom: 6%; display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(11, 21, 51, .14); font-size: .92rem; color: var(--ink); max-width: 80%; }
.h-float-badge .badge-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.h-float-badge svg { width: 20px; height: 20px; }

/* product illustration: lesson player */
.mock-player { position: relative; z-index: 1; width: min(380px, 92%); background: var(--ink); border-radius: 22px; padding: 14px; box-shadow: 0 36px 70px rgba(11, 21, 51, .32); transform: rotate(-2deg); }
.mock-bar { display: flex; gap: 6px; padding: 2px 4px 12px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mock-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 85% 10%, rgba(255, 43, 214, .55), transparent 55%), linear-gradient(135deg, #1c2d66, #0a1433); }
.mock-play { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-btn); color: #fff; box-shadow: 0 0 0 10px rgba(255, 43, 214, .18); }
.mock-play svg { width: 26px; height: 26px; margin-left: 3px; }
.mock-caption { position: absolute; left: 14px; bottom: 18px; color: rgba(255, 255, 255, .9); font-size: .78rem; font-weight: 600; }
.mock-progress { position: absolute; left: 14px; right: 14px; bottom: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.mock-progress span { display: block; width: 42%; height: 100%; border-radius: 4px; background: var(--pink); }
.mock-list { list-style: none; margin: 14px 0 2px; padding: 0; display: grid; gap: 9px; }
.mock-list li { display: flex; align-items: center; gap: 10px; }
.mock-list span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }
.mock-list .done span { background: rgba(61, 220, 151, .2); color: #3ddc97; }
.mock-list .current span { background: var(--pink); color: #fff; }
.mock-list b { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); width: 70%; }
.mock-list b.w2 { width: 55%; } .mock-list b.w3 { width: 78%; background: rgba(255, 255, 255, .35); } .mock-list b.w4 { width: 48%; }

/* trust strip */
.h-strip { background: var(--mist); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); padding: 26px 0; }
.h-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.h-trust { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.h-trust svg { flex: none; width: 30px; height: 30px; color: var(--pink-ink); }

/* generic sections */
.h-section { padding: 88px 0; }
.h-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.h-split-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.h-split-reverse > :first-child { order: 0; }

/* product illustration: wallet */
.mock-wallet { position: relative; z-index: 1; width: min(400px, 100%); padding: 26px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 100% at 100% 0%, rgba(255, 43, 214, .45), transparent 50%), linear-gradient(140deg, #1c2d66, #0a1433 70%); box-shadow: 0 30px 60px rgba(11, 21, 51, .28); }
.mw-head { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.mw-amount { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1.1; margin: 10px 0 18px; }
.mw-amount small { font-size: .95rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.mw-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; }
.mw-row span:nth-child(2) { flex: 1; color: rgba(255, 255, 255, .85); }
.mw-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.mw-dot.ok { background: #3ddc97; }
.mock-wallet .plus { color: #3ddc97; } .mock-wallet .minus { color: #ff9fb0; }

/* steps */
.h-steps-section { background: var(--mist); }
.h-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.h-step { position: relative; display: block; padding: 30px 28px 56px; background: #fff; border: 1px solid var(--edge); border-radius: 20px; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.h-step:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 24px 50px rgba(11, 21, 51, .1); }
.h-step.featured { box-shadow: 0 24px 50px rgba(11, 21, 51, .12); border-color: transparent; }
.h-step.featured::before { content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--pink); }
.h-step-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fde7f8; color: var(--pink-ink); }
.h-step.featured .h-step-icon { background: var(--pink-btn); color: #fff; }
.h-step-icon svg { width: 26px; height: 26px; }
.h-step-num { position: absolute; top: 26px; right: 28px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.6rem; color: #eceef6; }
.h-step h3 { margin: 20px 0 8px; font-size: 1.2rem; }
.h-step p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.h-step-go { position: absolute; right: 24px; bottom: 20px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); }
.h-step.featured .h-step-go, .h-step:hover .h-step-go { background: var(--ink); color: #fff; }
.h-step-go .arrow { width: 16px; height: 16px; }

/* catalog */
.h-catalog { background: #fff; }
.h-catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.h-nav-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--edge); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.h-nav-btn:hover { border-color: var(--ink); }
.h-nav-btn svg { width: 18px; height: 18px; }
.h-course-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 20px; scrollbar-width: thin; }
.h-course { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--edge); border-radius: 18px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.h-course:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11, 21, 51, .1); }
.h-course-thumb { position: relative; display: block; aspect-ratio: 16 / 10; margin: 10px 10px 0; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #1c2d66, #0a1433); }
.h-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.h-course-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: #fff; font-family: 'Montserrat', 'Noto Sans Myanmar', sans-serif; font-weight: 700; }
.h-course-thumb .ph::after { content: ''; position: absolute; right: 14px; bottom: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); }
.h-course-thumb .badge { position: absolute; top: 10px; left: 10px; }
.h-course-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.h-course h3 { margin: 0; font-size: 1.02rem; line-height: 1.4; }
.h-course h3 a { color: var(--ink); }
.h-course-meta { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink-3); font-size: .85rem; }
.h-course-meta svg { width: 12px; height: 12px; }
.h-course-price { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--ink-2); font-size: .9rem; }
.h-course-price strong { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; color: var(--ink); }
.h-money { color: var(--pink-ink); font-weight: 600; }
.h-owned { color: #0b8a55; font-weight: 600; }
.h-empty { padding: 40px; text-align: center; color: var(--ink-2); border: 1px dashed var(--edge); border-radius: 16px; }

/* instructor */
.h-instructor-name { font-weight: 700; color: var(--pink-ink); margin-top: -6px; }
.h-instructor-visual { min-height: 440px; }

/* call to action */
.h-cta { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 48px; border-radius: 28px; color: #fff;
  background: radial-gradient(60% 120% at 100% 0%, rgba(255, 43, 214, .45), transparent 60%), linear-gradient(135deg, #13214f, #0a1433); }
.h-cta h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); }
.h-cta p { margin: 0; color: rgba(255, 255, 255, .8); }
.h-section:last-child { padding-top: 0; }

/* responsive */
@media (max-width: 960px) {
  .h-hero-grid, .h-split { grid-template-columns: 1fr; gap: 40px; }
  .h-hero { padding: 32px 0 48px; }
  .h-hero-visual { min-height: 380px; }
  .h-split-reverse > :first-child { order: 1; }
  .h-steps { grid-template-columns: 1fr; }
  .h-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .h-section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .h-hero-visual { min-height: 330px; }
  .shape-circle { width: 86%; }
  .h-float-badge { bottom: 0; font-size: .85rem; }
  .h-strip-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .h-trust { font-size: .88rem; gap: 8px; }
  .h-trust svg { width: 24px; height: 24px; }
  .h-cta { padding: 30px 22px; }
  .h-actions .btn { flex: 1 1 100%; }
}

/* Student pages share the home page's heading style (admin keeps the plain sans headings). */
main h1, main h2 { font-family: 'DM Serif Display', 'Noto Sans Myanmar', Georgia, serif; font-weight: 400; letter-spacing: -0.005em; color: var(--ink); }
html[lang=my] main h1, html[lang=my] main h2 { font-family: 'Noto Sans Myanmar', 'Inter', sans-serif; font-weight: 700; line-height: 1.55; letter-spacing: 0; }
main .h-cta h2 { color: #fff; }

/* Zoom Class band on Home: full content width, compact height */
.h-zoom { padding: 0 0 56px; }
@media (max-width: 960px) { .h-zoom { padding-bottom: 40px; } }

/* Instructors on Home */
.h-instructors { background: var(--mist); }
.h-ins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 28px; }
.h-ins { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 18px; background: #fff; border: 1px solid var(--edge); border-radius: 20px; }
.h-ins .av-xl { width: 112px; height: 112px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--pink); margin-bottom: 8px; }
.h-ins h3 { margin: 0; font-size: 1.1rem; }
.h-ins .ins-headline { margin: 0; }
.h-course-body .ins-chips { font-size: .8rem; }
