/* Hepifun - halaman publik (landing, harga, legal, bantuan, auth). Di atas tokens.css. Tanpa CDN, tanpa style inline. */
html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-md); background: var(--primary); color: var(--on-primary); font-weight: 600; }
.skip-link:focus { top: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-4); }
@media (min-width: 900px) { .wrap { padding: 0 var(--sp-6); } }
.prose { max-width: 820px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--text); min-height: 40px; }
.logo span em { font-style: normal; font-weight: 500; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-muted); background: transparent; cursor: pointer; list-style: none; }
.theme-btn::-webkit-details-marker { display: none; }
.theme-btn:hover { background: var(--raised); color: var(--text); }
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a.btn { text-decoration: none; }
.btn-lg { min-height: 52px; padding: 0 var(--sp-6); font-size: var(--fs-lg); border-radius: 12px; }
.btn-block { width: 100%; }
.faint { color: var(--text-faint); } .muted { color: var(--text-muted); }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; gap: var(--sp-4); height: 60px; }
.nav-d { display: none; gap: var(--sp-6); margin-left: var(--sp-6); font-size: var(--fs-sm); color: var(--text-muted); }
.nav-d a { display: inline-flex; align-items: center; min-height: 40px; }
.nav-d a:hover { color: var(--text); }
.topbar .right { margin-left: auto; display: flex; gap: var(--sp-2); align-items: center; }
.topbar .hide-s { display: none; }
.lang-link { font-size: var(--fs-sm); color: var(--text-muted); display: none; align-items: center; min-height: 40px; padding: 0 var(--sp-2); }
.lang-link:hover { color: var(--text); }
.menu-m { position: relative; }
.menu-m-list { position: absolute; right: 0; top: 48px; min-width: 220px; display: flex; flex-direction: column; padding: var(--sp-2); background: var(--raised); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.menu-m-list a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--sp-3); border-radius: var(--r-sm); }
.menu-m-list a:hover { background: var(--surface); }
@media (min-width: 800px) { .nav-d { display: flex; } .topbar .hide-s { display: inline-flex; } .menu-m { display: none; } .lang-link { display: inline-flex; } }

/* ---------- Hero & halaman ---------- */
.hero { padding: var(--sp-10) 0 var(--sp-8); text-align: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 56px; } }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.hero .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(32px, 7vw, 60px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin: var(--sp-5) auto var(--sp-4); max-width: 18ch; }
.hero p { font-size: clamp(16px, 2.4vw, 19px); color: var(--text-muted); max-width: 56ch; margin: 0 auto var(--sp-4); }
.hero .cta-row { justify-content: center; margin-top: var(--sp-6); }
.hero p em { font-size: var(--fs-sm); color: var(--text-faint); font-style: normal; }
.page-hero { padding: var(--sp-8) 0 var(--sp-4); }
@media (min-width: 900px) { .page-hero { padding: 56px 0 24px; } }
.page-hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; margin: var(--sp-3) 0 var(--sp-4); }
.page-hero p { color: var(--text-muted); font-size: var(--fs-lg); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); color: var(--text-faint); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-muted); } .crumbs a:hover { color: var(--text); text-decoration: underline; }
.cta-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-4) 0; }

.section-lp { padding: var(--sp-8) 0; }
@media (min-width: 900px) { .section-lp { padding: 56px 0; } }
.section-lp + .section-lp { border-top: 1px solid var(--border); }
.section-lp h2 { font-size: clamp(22px, 3.6vw, 32px); letter-spacing: -.02em; line-height: 1.15; font-weight: 700; margin: 0 0 var(--sp-4); }
.section-lp h3 { font-size: var(--fs-xl); margin: var(--sp-6) 0 var(--sp-2); }
.prose p, .prose li { color: var(--text-muted); line-height: 1.65; }
.prose p { margin: 0 0 var(--sp-4); max-width: 70ch; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 var(--sp-4); padding-left: 1.3em; list-style: revert; max-width: 70ch; }
.prose li { margin: 4px 0; } .prose li ul, .prose li ol { margin: 6px 0; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: var(--on-primary); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--raised); padding: 1px 6px; border-radius: 4px; }
.prose blockquote { border-left: 3px solid var(--border-strong); margin: 0 0 var(--sp-4); padding: 4px var(--sp-4); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }
.prose em { color: var(--text-muted); }
.legal h2 { font-size: var(--fs-xl); margin-top: var(--sp-8); }
.legal h3 { font-size: var(--fs-lg); }
.legal li, .legal p { max-width: 78ch; }
.legal .table-wrap { margin-bottom: var(--sp-4); }
.notice { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--warn); background: var(--warn-bg); color: var(--warn); border-radius: var(--r-md); font-size: var(--fs-sm); margin: var(--sp-3) 0; }

/* placeholder tersamar (penanda copy/legal yang belum final) */
mark.ph, .ph { background: transparent; color: var(--text-muted); border-bottom: 1px dashed var(--text-faint); font-size: .92em; padding: 0 2px; }
.ph-dev { opacity: .85; }
.video-slot { display: grid; place-items: center; width: 100%; max-width: 520px; aspect-ratio: 16/9; margin: var(--sp-3) 0; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: repeating-linear-gradient(135deg, var(--sunken) 0 14px, var(--raised) 14px 28px); color: var(--text-faint); font-size: var(--fs-xs); padding: var(--sp-3); text-align: center; border-bottom: 1px dashed var(--border-strong); }

/* tabel */
.table-wrap { overflow-x: auto; margin: 0 0 var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-md); }
.rates { width: 100%; font-size: var(--fs-sm); border-collapse: collapse; }
.rates th, .rates td { padding: 10px var(--sp-3); border-bottom: 1px solid var(--border); text-align: left; font-variant-numeric: tabular-nums; vertical-align: top; color: var(--text-muted); }
.rates th { font-size: var(--fs-xs); color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--surface); }
.rates tr:last-child td { border-bottom: 0; }
.rates td:first-child { color: var(--text); }
@media (max-width: 599px) {
  .table-wrap { border: 0; overflow: visible; }
  .rates thead { display: none; }
  .rates, .rates tbody, .rates tr, .rates td { display: block; width: 100%; }
  .rates tr { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-2); background: var(--surface); }
  .rates td { display: flex; justify-content: space-between; gap: var(--sp-3); border: 0; padding: 4px 0; text-align: right; }
  .rates td::before { content: attr(data-label); color: var(--text-faint); font-size: var(--fs-xs); text-align: left; }
}

/* FAQ */
details.faq { border-bottom: 1px solid var(--border); }
details.faq summary { list-style: none; cursor: pointer; padding: var(--sp-3) 0; display: flex; justify-content: space-between; gap: var(--sp-3); font-weight: 600; color: var(--text); min-height: 48px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 22px; color: var(--text-faint); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { padding: 0 0 var(--sp-3); margin: 0; }

.cta-band-sec .wrap { text-align: center; margin-inline: auto; }
.cta-band-sec .wrap > * { margin-inline: auto; }
.cta-band-sec .cta-row { justify-content: center; }
.cta-band-sec { background: var(--surface); border-block: 1px solid var(--border); }
.plans-live:empty { display: none; }
.plans-live { margin-top: var(--sp-4); }
.plans-live .plan { cursor: default; }
.post-list { display: grid; gap: var(--sp-4); padding: 0; list-style: none; }
.post-list li { padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.plain { list-style: none; padding: 0; } .plain a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: var(--sp-8) 0 var(--sp-10); font-size: var(--fs-sm); color: var(--text-muted); margin-top: auto; }
.footer .cols-f { display: grid; gap: var(--sp-6); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .footer .cols-f { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer .fh { color: var(--text); font-size: var(--fs-sm); margin: 0 0 var(--sp-2); font-weight: 600; }
.footer ul { list-style: none; padding: 0; } .footer li a { display: inline-flex; align-items: center; min-height: 36px; } .footer a:hover { color: var(--text); text-decoration: underline; }
.footer .disclaimer { margin-top: var(--sp-6); font-size: var(--fs-xs); color: var(--text-faint); max-width: 70ch; }
.footer .copy { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-faint); }
.footer p { margin: var(--sp-2) 0 0; }

/* ---------- Auth ---------- */
.auth-page main { display: grid; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-4); }
.auth-col { display: flex; flex-direction: column; gap: var(--sp-5); align-items: center; width: 100%; }
.auth { width: 100%; max-width: 400px; padding: var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
@media (max-width: 479px) { .auth { padding: var(--sp-4) 0; border: 0; background: transparent; } }
.auth-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.auth-form h1 { font-size: var(--fs-xl); font-weight: 600; margin: 0; }
.auth-form .sub { color: var(--text-muted); font-size: var(--fs-sm); margin: -8px 0 0; }
.auth-form .foot { text-align: center; font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.auth-form .end { align-self: flex-end; font-size: var(--fs-sm); min-height: 32px; display: inline-flex; align-items: center; }
.auth-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); color: var(--text-muted); cursor: pointer; }
.check input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.ok-box { padding: 12px 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r-md); font-size: var(--fs-sm); }
.btn-google { gap: 10px; }
.form-error { margin: 0; }
.bad-link { display: flex; flex-direction: column; gap: var(--sp-3); }
.link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); display: inline-block; padding: 8px 0; }
.link:hover { text-decoration-color: var(--accent); }
.auth-form .foot .link { padding: 8px 2px; }
.check .link { padding: 0; }
.auth-page .auth-form[data-busy] { opacity: .7; pointer-events: none; }
.auth-form .end { min-height: 40px; padding: 0 4px; }
.prose .crumbs ol, .crumbs ol { list-style: none; padding: 0; margin: 0 0 var(--sp-2); display: flex; flex-wrap: wrap; gap: 6px; max-width: none; }
.prose .crumbs li { margin: 0; color: var(--text-faint); }

/* Contoh video nyata (build_public: [SAMPLE slug]) */
.sample { margin: var(--sp-5) 0; max-width: 640px; }
.sample-video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: var(--sunken); border-radius: var(--r-lg); object-fit: cover; }
.sample figcaption { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--text-muted); }
.sample-prompt { color: var(--text-faint); }
.sample-hero { margin: var(--sp-6) auto 0; max-width: 760px; }
.sample-hero .sample-video { box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.hero .sample figcaption { text-align: center; }
@media (prefers-reduced-motion: reduce) { .sample-hero .sample-video { animation: none; } }
.crumbs li { display: inline-flex; align-items: center; min-height: 32px; }
