/* Garis Lulus v2: lapisan kaca + komponen baru (mockup, ilustrasi, cincin nilai, matematika). Dimuat terakhir. */
/* panel: solid ringan; kaca (blur) hanya di beberapa elemen agar ringan di Android murah */
.panel, .card, .pkg, .pb, .lat, .demo, .note, .table-wrap, .chart, .order-box, .lock-panel, .feature-list, .lesson-path, .facts, .price-grid, .path, .rank, .flashcard, .qa > div {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.glass, .demo, .lock-panel, .price-cell.is-main, .room-nav, .grid-panel {
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass, .demo, .lock-panel, .top, .tabbar, .room-nav, .grid-panel { background: var(--surface-solid); } }
@media (prefers-reduced-transparency: reduce) { .glass, .demo, .lock-panel, .top, .tabbar, .room-nav, .grid-panel, .panel, .card { background: var(--surface-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* label & teks kecil: tanpa huruf kapital/mono */
.bar-head > b, .field-label, .pill, .seg button, .seg a, .foot-links a, .report summary, .status-strip li, .opt-pts, .lp-tag, .verdict, .pg-legend, .score-chip,
.table th, .grid-sec, .room-code, .q-no, .bar-note, .demo-foot, .total small, .kv li > :first-child, .lesson-goal h2, .opt-you, .rank li, .timer, .cell, .opt-k, .pb-no, .lp-no, .chip, .pat-n {
  font-family: var(--sans); text-transform: none; letter-spacing: 0;
}
.bar-head > b { font-weight: 700; font-size: .95rem; }
.field-label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.pill { font-weight: 600; font-size: .78rem; border-radius: 999px; padding: 4px 11px; border: 0; background: var(--surface-2); }
.pill-free, .pill-paid, .pill-benar { background: var(--accent-soft); color: var(--accent); }
.pill-salah, .pill-failed, .pill-expired, .pill-revoked { background: var(--fail-soft); color: var(--fail); }
.pill-cukup, .pill-pending { background: var(--warn-soft); color: var(--warn); }
.pill-lock { background: var(--surface-2); color: var(--ink); }
.seg button, .seg a { border-radius: 999px; font-size: .88rem; font-weight: 500; border: 0; background: var(--surface-2); color: var(--ink); }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--ink); color: var(--bg); }
.foot-links a { font-size: .9rem; }
.verdict { border-radius: 999px; border: 0; background: var(--accent-soft); font-weight: 600; font-size: .9rem; padding: 8px 14px; }
.verdict-fail { background: var(--fail-soft); }
.timer { border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cell { border-radius: 10px; font-weight: 600; }
.opt { border-radius: var(--r-sm); border-color: var(--line-2); background: var(--surface-solid); }
.opt-k { border-radius: 9px; font-weight: 700; }
.pb-no, .lp-no { border-radius: 9px; font-weight: 600; }
.pb-opts li { border-radius: var(--r-sm); }
.status-strip { border-radius: 999px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.status-strip li { font-weight: 500; font-size: .85rem; color: var(--ink-2); }
input:not([type=radio]):not([type=range]), textarea { border-radius: var(--r-sm); background: var(--surface-solid); }
.bar { border-radius: 999px; border: 0; background: var(--surface-2); height: 12px; }
.bar-fill { border-radius: 999px; background: linear-gradient(90deg, var(--fail), color-mix(in oklab, var(--fail) 70%, var(--warn))); }
.is-pass .bar-fill { background: linear-gradient(90deg, var(--accent), var(--sky)); }
.bar-line { border-left: 2px dashed var(--ink-2); }
.bars-big .bar { height: 22px; }
.flash { border-radius: var(--r-sm); border: 0; background: var(--accent-soft); }
.alert { border-radius: var(--r-sm); }
.note { border-left: 1px solid var(--line); }
.table-wrap { overflow-x: auto; padding: 0; }
.path li, .facts > div, .price-cell { background: transparent; }
.path, .facts, .price-grid, .lesson-path, .feature-list, .rank { overflow: hidden; }
.pkg-grid { gap: 14px; border: 0; }
.pkg { border: 1px solid var(--line); border-radius: var(--r); }
.price-cell.is-main { background: linear-gradient(160deg, var(--accent-soft), var(--sky-soft)); box-shadow: none; }
.price-tag, .facts dt, .total, .amount, .pat-n, .bar-val b, .bar-val output, .demo-foot b, .pkg h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -.035em; }
.total { font-size: clamp(4.4rem, 20vw, 7.5rem); }
.lock-panel { box-shadow: var(--shadow); }
.lesson-goal { border-radius: var(--r); border: 0; background: var(--accent-soft); }
.lesson-goal h2 { color: var(--accent); font-weight: 600; font-size: .9rem; }
.prose.tip, .prose.warn { border-radius: var(--r); }
.room-bar { background: color-mix(in oklab, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.room-nav { background: color-mix(in oklab, var(--bg) 72%, transparent); }
.grid-panel { background: color-mix(in oklab, var(--surface-solid) 88%, transparent); border-radius: 26px 26px 0 0; }
@media (min-width: 900px) { .grid-panel { border-radius: var(--r); } }
.chart .ln { stroke: var(--sky); stroke-width: 3; }

/* hero tengah ala halaman produk */
.hero2 { text-align: center; padding: 40px 0 20px; }
.hero2 .display { font-size: clamp(2.9rem, 11vw, 6rem); font-weight: 800; letter-spacing: -.05em; line-height: .98; margin: 6px auto 18px; max-width: 14ch; }
.hero2 .lede { margin-inline: auto; }
.hero2 .cta-row { justify-content: center; }
.hero2 .status-strip { margin: 22px auto 0; }
.hero-stage { position: relative; display: grid; place-items: center; margin: 36px auto 0; min-height: 420px; }
.hero-stage .illus { position: absolute; width: clamp(110px, 22vw, 190px); }
.hero-stage .illus.l { left: 4%; top: 18%; } .hero-stage .illus.r { right: 4%; top: 46%; }
@media (max-width: 640px) { .hero-stage .illus.l { left: -6%; top: 6%; width: 120px; } .hero-stage .illus.r { right: -6%; top: 58%; width: 118px; } }

/* mockup perangkat (CSS) berisi tangkapan layar aplikasi sendiri */
.phone { position: relative; width: min(300px, 74vw); aspect-ratio: 390 / 844; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2b2b30, #0e0e10); box-shadow: 0 0 0 1.5px #4a4a50 inset, 0 40px 80px -30px rgba(0, 0, 0, .55), 0 10px 30px -10px rgba(0, 0, 0, .35); }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: #0a0a0b; border-radius: 999px; z-index: 2; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; background: var(--bg-2); }
.laptop { position: relative; width: min(680px, 92vw); }
.laptop .screen { border-radius: 18px 18px 0 0; padding: 10px; background: linear-gradient(145deg, #2b2b30, #111113); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.laptop img { display: block; width: 100%; aspect-ratio: 1280 / 800; object-fit: cover; object-position: top; border-radius: 8px; }
.laptop .base { height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px; background: linear-gradient(#d6d6da, #a9a9ae); }
[data-theme="dark"] .laptop .base { background: linear-gradient(#4a4a50, #2a2a2e); }

/* bagian fitur bergantian */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; padding: clamp(48px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.feature.flip .f-media { order: -1; }
.feature .f-media { display: grid; place-items: center; position: relative; }
.feature .f-media .illus { position: absolute; width: clamp(92px, 16vw, 150px); right: 2%; bottom: -4%; }
.feature.flip .f-media .illus { right: auto; left: 2%; }
.feature h2 { font-size: clamp(2rem, 5.4vw, 3.2rem); letter-spacing: -.04em; }
.f-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.f-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.f-list li .ico { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.feature.center { grid-template-columns: 1fr; text-align: center; }
.feature.center .lede { margin-inline: auto; }
@media (max-width: 820px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip .f-media { order: 0; } }
.illus { display: block; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); }
.sec-illus { width: 88px; height: auto; float: right; margin: -8px 0 0 12px; }

/* cincin nilai */
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ring { position: relative; display: grid; place-items: center; text-align: center; padding: 14px 6px 10px; }
.ring svg { width: 100%; max-width: 150px; height: auto; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ring .val { fill: none; stroke: var(--fail); stroke-width: 10; stroke-linecap: round; stroke-dasharray: var(--len) 1000; transition: stroke-dasharray 1.2s var(--ease); }
.ring.is-pass .val { stroke: url(#gl-grad); }
.ring .pg { stroke: var(--ink); stroke-width: 3; }
.ring.is-pass .pg { stroke: var(--accent); filter: drop-shadow(0 0 4px var(--glow)); }
.ring .num { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -64%); font: 700 clamp(1.4rem, 6vw, 2rem)/1 var(--sans); letter-spacing: -.03em; }
.ring .cap { font: 600 .85rem var(--sans); margin-top: 6px; }
.ring .cap span { display: block; font-weight: 500; color: var(--ink-2); font-size: .78rem; }
.js .ring .val { animation: ringin 1.3s var(--ease) both; }
@keyframes ringin { from { stroke-dasharray: 0 1000; } }
.progress-ring { width: 120px; height: 120px; }
.sparkline { width: 100%; height: 44px; display: block; }
.sparkline path { fill: none; stroke: var(--sky); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ilustrasi per pos di materi */
.path-sec h2 { display: flex; align-items: center; gap: 14px; }
.path-sec h2 img { width: 56px; height: 56px; }

/* mode baca materi */
.lesson .prose p, .lesson .prose li { font-size: 1.08rem; line-height: 1.72; max-width: 68ch; }

/* matematika: pecahan bertumpuk, pangkat, akar, deret */
.m { font-variant-numeric: tabular-nums; }
.q-stem, .pb-stem, .opt-v, .pb-exp { overflow-wrap: anywhere; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 .12em; font-size: .9em; line-height: 1.1; }
.frac > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 .15em .05em; }
.frac > span:last-child { padding: .05em .15em 0; }
.sqrt { white-space: nowrap; }
.sqrt > span { border-top: 1.5px solid currentColor; padding: 0 .1em; margin-left: .04em; }
.math-box { overflow-x: auto; max-width: 100%; padding: 2px 0; }
.deret { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.deret li { min-width: 46px; height: 46px; padding: 0 10px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); font: 700 1.1rem var(--sans); font-variant-numeric: tabular-nums; }
.deret li.blank { background: transparent; border: 2px dashed var(--accent); color: var(--accent); }
.steps { margin: 6px 0 8px; padding-left: 1.4em; }
.steps li { margin: 3px 0; }
.steps li:last-child { font-weight: 700; color: var(--ink); }
.q-stem .q-ask, .pb-stem .q-ask { display: block; margin-top: .6em; font-weight: 600; }

/* perbaikan v2 */
.status-strip { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; padding: 4px; margin: 22px auto 0; width: fit-content; max-width: 100%; }
.status-strip li { padding: 8px 14px; }
.status-strip li + li { border-left: 1px solid var(--line); }
@media (max-width: 420px) { .status-strip li { padding: 7px 10px; font-size: .8rem; } }
.sec-shield { width: 120px; margin: 0 auto 18px; }
.hero-stage { min-height: 0; }
.hero-stage .illus { z-index: 1; }
@media (max-width: 640px) { .hero-stage .illus.l { left: 0; top: 4%; width: 84px; } .hero-stage .illus.r { right: 0; top: 62%; width: 84px; } }

.trap { color: var(--ink-2); border-left: 3px solid var(--warn); padding-left: 10px; margin: 8px 0; }
.steps li:last-child { background: var(--accent-soft); border-radius: 8px; padding: 2px 6px; margin-left: -6px; }

.jadwal-top { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
@media (max-width: 560px) { .jadwal-top { grid-template-columns: 1fr; justify-items: center; } }
.spark-box { margin: 16px 0 0; max-width: 360px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
