/* Gaya khusus halaman publik (beranda, pendaftaran, legal). Muat setelah tokens.css + components.css. */

.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 68px; }
.site-header nav { display: none; gap: var(--space-1); }
.site-header nav a { color: #D5DEE7; text-decoration: none; font-size: var(--text-sm); font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); }
.site-header nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
@media (min-width: 900px) { .site-header nav { display: flex; } }
.site-header .brand { color: #F4F7FA; }
.site-header .brand img { height: 30px; }
@media (max-width: 380px) { .site-header .btn { padding: 0 var(--space-3); } }

/* Header solid untuk halaman tanpa hero (pendaftaran, legal) */
.site-header.solid { position: sticky; top: 0; background: var(--navy-900); border-bottom: 1px solid var(--navy-700); }

.section { padding-block: var(--space-8); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark { background: var(--navy-900); color: #E6EEF5; }
.section-dark .muted, .section-dark p { color: #B4C1CE; }
.section-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); max-width: 720px; }
.section-head p { color: var(--ink-muted); font-size: var(--text-lg); }
.section-dark .section-head p { color: #B4C1CE; }

/* Tiga pilar */
.pillars { display: grid; gap: var(--space-4); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.pillar-num { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--primary-text); }
.pillar h3 { font-size: var(--text-xl); }
.pillar p { color: var(--ink-muted); }

/* Dimensi tes */
.dims { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dim { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill); background: rgba(25, 211, 236, .1); color: #CFF7FC; font-weight: 600; font-size: var(--text-sm); border: 1px solid rgba(25, 211, 236, .25); }
.dim::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); }

/* Fase program */
.phases { display: grid; gap: var(--space-3); counter-reset: fase; }
@media (min-width: 800px) { .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.phase { position: relative; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--navy-800); border: 1px solid var(--navy-700); display: grid; gap: var(--space-2); }
.phase-tag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-300); }
.phase h3 { color: #fff; }
.phase-bar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--orange-500), var(--orange-400)); width: var(--w); }

/* Paket */
.packages { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.package { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.package-price { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; line-height: 1; }
.package-price small { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--ink-muted); }

/* FAQ */
.faq { display: grid; gap: var(--space-2); max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 var(--space-4); }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; color: var(--primary-text); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: var(--space-4); color: var(--ink-muted); }

/* Ajakan akhir */
.cta-final { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: var(--space-7) var(--space-5); background: var(--navy-900) url("../assets/brand/tekstur-lapangan-512.webp") center / 320px; color: #F4F7FA; display: grid; gap: var(--space-4); justify-items: start; }
.cta-final h2 { font-size: var(--text-3xl); max-width: 18ch; }
.cta-final p { color: #B4C1CE; max-width: 52ch; }

/* Footer */
.site-footer { background: var(--navy-950); color: #8B9BAE; padding-block: var(--space-7) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); font-size: var(--text-sm); }
.site-footer .container { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: #D5DEE7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { font-family: var(--font-body); font-size: var(--text-sm); color: #F4F7FA; margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer .brand { color: #F4F7FA; }
.site-footer .legal-line { grid-column: 1 / -1; border-top: 1px solid var(--navy-700); padding-top: var(--space-4); font-size: var(--text-xs); }

/* Tautan WhatsApp mengambang (HP) */
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1F7A50; color: #fff; box-shadow: var(--shadow-lg); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Formulir pendaftaran ---------- */
.form-page { padding-block: var(--space-6) var(--space-8); }
.form-shell { max-width: var(--w-form); margin-inline: auto; display: grid; gap: var(--space-5); }
.progress { display: grid; gap: var(--space-2); }
.progress-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.progress-steps li { display: grid; gap: 6px; font-size: var(--text-xs); font-weight: 600; color: var(--ink-muted); }
.progress-steps li::before { content: ""; height: 6px; border-radius: 3px; background: var(--surface-3); }
.progress-steps li.done::before, .progress-steps li[aria-current="step"]::before { background: var(--primary); }
.progress-steps li[aria-current="step"] { color: var(--ink); }
.form-card fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-4); min-width: 0; }
.form-card legend { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; padding: 0; margin-bottom: var(--space-1); }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.choice-row .check-card { justify-content: center; align-items: center; font-weight: 600; font-size: var(--text-md); }
.age-note { font-size: var(--text-sm); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--data-soft); color: var(--ink); }
.slots { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: 6px; align-items: center; font-size: var(--text-xs); }
.slots .slot-h { text-align: center; color: var(--ink-muted); font-weight: 600; }
.slots .slot-d { font-weight: 600; font-size: var(--text-sm); padding-right: var(--space-2); }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot span { display: grid; place-items: center; min-height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--input-border); background: var(--bg-elevated); color: var(--ink-muted); font-weight: 700; }
.slot input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.slot input:focus-visible + span { box-shadow: var(--focus-ring); }
.form-nav { display: flex; gap: var(--space-3); justify-content: space-between; }
.form-nav .btn-primary { flex: 1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary { display: grid; gap: 4px; font-size: var(--text-sm); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-2); }
.summary b { font-weight: 600; }
.success { text-align: center; justify-items: center; }
.success .ref { font-family: var(--font-mono); font-size: var(--text-2xl); font-weight: 600; letter-spacing: .12em; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary-text); }

/* ---------- Halaman legal ---------- */
.legal { max-width: 760px; margin-inline: auto; padding-block: var(--space-6) var(--space-8); }
.legal article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5) clamp(var(--space-4), 5vw, var(--space-7)); line-height: 1.7; }
.legal h1 { margin-bottom: var(--space-2); }
.legal h2 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; margin: var(--space-6) 0 var(--space-2); }
.legal p, .legal li { color: var(--ink); }
.legal ul, .legal ol { padding-left: 1.3em; display: grid; gap: 6px; }
.legal .draft { margin-bottom: var(--space-5); }
.slot input:checked + span::after { content: "✓"; font-size: var(--text-md); }
