/* Study Chinese — homepage-specific layout. Depends on site.css + ui.css. */

/* HERO */
.hero { position: relative; overflow: clip; padding: clamp(40px, 6vw, 84px) 0 clamp(30px, 5vw, 70px); }
.hero-glow { position: absolute; inset: -14% -10% auto -10%; height: 90%; pointer-events: none; z-index: -1;
  background: radial-gradient(54% 62% at 26% 0%, rgba(24, 178, 87, .16), transparent 70%),
              radial-gradient(42% 52% at 86% 14%, rgba(244, 183, 64, .13), transparent 72%),
              radial-gradient(40% 46% at 62% 40%, rgba(14, 159, 110, .08), transparent 72%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); border-radius: var(--r-pill); padding: 7px 18px 7px 8px; font-weight: 700; font-size: .88rem; color: var(--ink2); margin-bottom: 24px; }
.hero-copy h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; margin-bottom: 20px; max-width: 15ch; }
.hero-copy h1 em { font-style: normal; color: var(--jade-deep); position: relative; }
.hero-copy h1 em::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .05em; height: .32em; background: var(--gold); border-radius: 6px; z-index: -1; opacity: .5; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--ink2); max-width: 52ch; margin-bottom: 30px; }

/* hero stage: phone + portal cards + Bao */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 480px; }
.hero-hanzi { position: absolute; top: -6%; right: 0; font-family: var(--f-hanzi); font-weight: 700; font-size: clamp(9rem, 16vw, 15rem); color: var(--jade); opacity: .07; line-height: 1; pointer-events: none; }
.hero-phone { width: clamp(220px, 24vw, 280px); z-index: 1; }
.hero-mc { position: absolute; width: min(260px, 74vw); z-index: 2; }
.hero-mc-sched { top: 4%; left: 0; }
.hero-mc-hw { bottom: 20%; right: 0; }
.hero-mc-prog { bottom: -2%; left: 4%; width: 220px; }
.hero-prog-note { color: var(--muted); font-size: .78rem; display: block; margin-top: 8px; }
.hero-bao { position: absolute; bottom: -3%; right: 6%; width: clamp(96px, 12vw, 150px); z-index: 3; pointer-events: none; }
.hero-bao img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(9, 52, 30, .26)); animation: bao-bob 5.5s var(--ease-in-out) infinite alternate; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; margin-top: 8px; padding-bottom: 40px; }
  .hero-mc-sched { left: -2%; top: 0; }
  .hero-mc-hw { right: -2%; }
}
@media (max-width: 480px) {
  .hero-mc-prog { display: none; }
  .hero-bao { right: 0; }
}

/* JadeClass grid tweaks */
.prog-grid { align-items: stretch; }
.prog-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; font-weight: 600; color: var(--muted); font-size: .93rem; }
.prog-more .badge { transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.prog-more .badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.prog-more .link-arrow { margin-left: 6px; }

/* student split: two overlapping phones */
.home-shots { position: relative; display: grid; place-items: center; padding: 10px 0 26px; }
.home-shots .phone { z-index: 1; }
.home-shots .phone-back { position: absolute; z-index: 0; transform: translateX(52%) rotate(5deg) scale(.9); opacity: .9; }
@media (max-width: 480px) { .home-shots .phone-back { display: none; } }

/* dark section extras */
.cta-row-center { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: clamp(26px, 4vw, 40px); }
.dark-note { text-align: center; color: var(--on-dark2); font-size: .87rem; margin-top: 16px; }
.section-dark .dash { max-width: 900px; margin-inline: auto; }

/* school tiles — padding-right reserves room for the stair offsets so nothing overflows */
.school-tiles { display: grid; gap: 14px; padding-right: 44px; }
.school-tiles .card:nth-child(2) { transform: translateX(22px); }
.school-tiles .card:nth-child(3) { transform: translateX(44px); }
@media (max-width: 700px) { .school-tiles { padding-right: 0; } .school-tiles .card { transform: none !important; } }

/* outcomes */
.quote-strip { display: flex; justify-content: center; margin-top: 26px; }

/* final conversion */
.final-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; background: linear-gradient(160deg, var(--mint) 0%, var(--paper) 60%); border: 1px solid var(--border-mint); border-radius: var(--r-xl); padding: clamp(26px, 4.5vw, 60px); }
@media (max-width: 900px) { .final-grid { grid-template-columns: 1fr; } }
.final-copy h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 14px; }
.final-copy > p { color: var(--ink2); margin-bottom: 20px; max-width: 46ch; }
.final-copy .checks { margin-bottom: 20px; }
.final-bao { display: block; width: clamp(84px, 9vw, 120px); margin-bottom: 14px; }
.final-bao img { width: 100%; filter: drop-shadow(0 14px 24px rgba(9, 52, 30, .22)); }
.final-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(22px, 3.5vw, 36px); }
.final-form h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 18px; }
.full-btn { width: 100%; margin-top: 18px; }
.lead-success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lead-success h3 { margin-bottom: 0; }
.lead-success p { color: var(--ink2); font-size: .96rem; max-width: 40ch; }

/* mobile trim: the homepage app rail shows a taste; the full set lives on /app */
@media (max-width: 560px) {
  #aplikasi .shots-rail figure:nth-child(n+5) { display: none; }
}
