/* Garis Lulus v2: gaya halaman produk yang tenang. Inter, judul besar rapat, panel kaca (blur + saturate) di atas
   bidang warna lembut, tombol pil, sudut 22px. Aksen mint/emerald + biru langit untuk grafik.
   Momen utama tetap: batang/cincin nilai menuju garis lulus. Terang & gelap setara; bawaan ikut sistem. */
@font-face { font-family: 'Inter'; src: url('/static/fonts/inter-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root, [data-theme="light"] {
  --bg: #f5f5f7; --bg-2: #ffffff; --surface: rgba(255, 255, 255, .72); --surface-solid: #ffffff; --surface-2: rgba(0, 0, 0, .045);
  --ink: #1d1d1f; --ink-2: #5f5f66; --ink-3: #86868b; --line: rgba(0, 0, 0, .08); --line-2: rgba(0, 0, 0, .14); --grid: transparent;
  --accent: #07855a; --accent-2: #066e4b; --accent-ink: #ffffff; --accent-soft: rgba(7, 133, 90, .1); --glow: rgba(16, 185, 129, .35);
  --sky: #1f7ae0; --sky-soft: rgba(31, 122, 224, .1);
  --fail: #c2412d; --fail-soft: rgba(194, 65, 45, .09); --warn: #a15c00; --warn-soft: rgba(161, 92, 0, .1);
  --shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 12px 32px -12px rgba(0, 0, 0, .14);
  --blob1: rgba(52, 211, 153, .28); --blob2: rgba(96, 165, 250, .24);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0b0d; --bg-2: #141416; --surface: rgba(30, 30, 33, .66); --surface-solid: #1c1c1f; --surface-2: rgba(255, 255, 255, .06);
  --ink: #f5f5f7; --ink-2: #a8a8ae; --ink-3: #7d7d84; --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16); --grid: transparent;
  --accent: #34d399; --accent-2: #6ee7b7; --accent-ink: #032016; --accent-soft: rgba(52, 211, 153, .13); --glow: rgba(52, 211, 153, .45);
  --sky: #6cb4ff; --sky-soft: rgba(108, 180, 255, .13);
  --fail: #ff8a73; --fail-soft: rgba(255, 138, 115, .13); --warn: #f5b84a; --warn-soft: rgba(245, 184, 74, .14);
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .7);
  --blob1: rgba(52, 211, 153, .16); --blob2: rgba(96, 165, 250, .14);
  color-scheme: dark;
}
:root {
  --serif: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Inter', system-ui, sans-serif;
  --r: 22px; --r-sm: 14px; --ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); background: var(--bg); padding-bottom: calc(66px + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
body::before { content: ''; position: fixed; inset: -20vh -20vw auto auto; width: 70vw; height: 70vh; background: radial-gradient(closest-side, var(--blob1), transparent); pointer-events: none; z-index: -1; }
body::after { content: ''; position: fixed; inset: auto auto -25vh -25vw; width: 75vw; height: 70vh; background: radial-gradient(closest-side, var(--blob2), transparent); pointer-events: none; z-index: -1; }
body.bare { padding-bottom: 0; }
@media (min-width: 761px) { body { padding-bottom: 0; } }
h1, h2, h3 { margin: 0 0 .45em; text-wrap: balance; font-family: var(--sans); color: var(--ink); }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(1.65rem, 4.4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
h1 em, h2 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
p { margin: 0 0 .9em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
img, svg { max-width: 100%; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.label, .kicker { font: 600 .82rem/1.4 var(--sans); color: var(--accent); letter-spacing: 0; text-transform: none; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface-solid); padding: 8px 12px; z-index: 99; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap-wide { width: min(1280px, 100% - 32px); }
main.wrap { padding: 28px 0 72px; }
.lede { font-size: clamp(1.08rem, 2.3vw, 1.28rem); color: var(--ink-2); max-width: 60ch; line-height: 1.55; }

/* nav kaca */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--bg) 72%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 14px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; margin: 0; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 18px; color: var(--ink); flex: none; }
.logo-dot { fill: var(--accent); }
.wordmark { font: 700 1.08rem/1 var(--sans); letter-spacing: -.025em; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.topnav a { color: var(--ink-2); text-decoration: none; padding: 7px 12px; font: 500 .92rem var(--sans); border-radius: 999px; }
.topnav a[aria-current="page"], .topnav a:hover { color: var(--ink); background: var(--surface-2); }
.topnav .btn { margin-left: 8px; color: var(--accent-ink); background: var(--accent); }
.theme-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 760px) { .topnav { display: none; } .theme-btn { margin-left: auto; } }

/* tab bar kaca */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 30; display: none; grid-template-columns: repeat(5, 1fr); background: color-mix(in oklab, var(--bg) 70%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; min-height: 56px; color: var(--ink-3); text-decoration: none; font: 500 .68rem var(--sans); }
.tabbar a[aria-current="page"] { color: var(--accent); }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .tabbar { display: grid; } }

/* tombol pil */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), background .2s, box-shadow .2s; }
.btn:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 0 15px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: color-mix(in oklab, var(--ink) 10%, transparent); color: var(--ink); }
.btn-flag { background: var(--warn-soft); color: var(--warn); }
.btn-flag:hover { background: color-mix(in oklab, var(--warn) 22%, transparent); color: var(--warn); }
.btn-flag[aria-pressed="true"] { background: var(--warn); color: #1d1300; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ' \203A'; font-size: 1.15em; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }

/* reveal halus */
.js .rise { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.js .rise-2 { animation-delay: .1s; } .js .rise-3 { animation-delay: .2s; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js .rise, .js .reveal { opacity: 1; transform: none; } }
