/*
 * Presendika — halaman pemasaran (landing, daftar sekolah).
 * Dirancang mulai dari layar HP, karena sebagian besar pengunjung iklan datang dari HP.
 */

:root {
    --navy: #01377A;
    --navy-deep: #022a5c;
    --blue: #0169B4;
    --blue-dark: #01569A;
    --teal: #02CDCD;
    --teal-dark: #00A9AA;
    --ink: #0F2747;
    --text: #334155;
    --muted: #5A6B80;
    --line: #E2E8F0;
    --bg: #F4F7FB;
    --white: #FFFFFF;
    --success: #15803D;
    --danger: #B42318;
    --radius: 16px;
    --shadow: 0 24px 60px -30px rgba(1, 55, 122, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.container--narrow { max-width: 820px; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color .15s ease, transform .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #CBD5E1; background: #F8FAFC; }
.btn--text { color: var(--ink); padding-inline: 12px; }
.btn--text:hover { color: var(--blue); }
.btn--teal { background: var(--teal); color: var(--navy-deep); }
.btn--teal:hover { background: #3fe0e0; }
.btn--outline-light { color: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.site-header__logo img { height: 36px; width: auto; display: block; }
.site-nav { display: none; gap: 28px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--blue); }
.site-header__actions { display: flex; align-items: center; gap: 4px; }

/* ---------- Umum ---------- */
.pill { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: #E6F1FB; color: var(--blue); font-size: 13px; font-weight: 700; }
.pill--teal { background: #DDF8F8; color: #0B6E6E; }
.eyebrow { margin-bottom: 10px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow--light { color: var(--teal); }
.section { padding: 64px 0; }
.section--white { background: var(--white); }
.section--navy { background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 55%, #014f8f 100%); color: #D6E4F5; }
.section--navy h2 { color: var(--white); }
.section__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section__head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.section__head p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 17px; }
.grid { display: grid; gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section--white .card { background: var(--bg); border-color: transparent; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card--problem { border-top: 4px solid #F3C46B; }
.card__tag { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: #E6F1FB; color: var(--blue); font-size: 12px; font-weight: 700; }
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #DCF5E8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2315803D'%3E%3Cpath d='M8.2 13.6 4.8 10.2l1.2-1.2 2.2 2.2 5.8-5.8 1.2 1.2z'/%3E%3C/svg%3E") center/16px no-repeat; }
.checklist--inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 64px; background: radial-gradient(60rem 30rem at 100% 0%, rgba(2, 205, 205, .14), transparent 60%), radial-gradient(50rem 30rem at 0% 100%, rgba(1, 105, 180, .10), transparent 60%), var(--bg); overflow: hidden; }
.hero__inner { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
.hero h1 span { color: var(--blue); }
.hero__lead { margin-top: 18px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero__checks li::before { content: "✓ "; color: var(--success); font-weight: 800; }

/* Ilustrasi aplikasi (HTML/CSS, tanpa gambar berat) */
.hero__visual { position: relative; min-height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
.mock { position: absolute; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); }
.mock__label { display: block; font-size: 12px; font-weight: 700; color: #8193A8; letter-spacing: .04em; text-transform: uppercase; }
.mock--phone { right: 0; top: 0; width: 270px; height: 400px; padding: 44px 14px 14px; border: 8px solid var(--ink); border-radius: 36px; background: linear-gradient(180deg, #E9F2FC, #F7FAFD); }
.mock__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 18px; border-radius: 10px; background: var(--ink); }
.mock__notif { display: flex; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 18px -10px rgba(15, 39, 71, .4); font-size: 13px; line-height: 1.4; }
.mock__notif + .mock__notif { margin-top: 10px; }
.mock__notif img { border-radius: 7px; flex: none; }
.mock__notif strong { display: block; color: var(--ink); font-size: 14px; }
.mock__notif span { display: block; color: var(--muted); }
.mock__notif .mock__app { font-size: 11px; color: #8193A8; }
.mock__notif--soft { opacity: .7; }
.mock--scan { left: 0; top: 70px; width: 230px; padding: 18px 20px; background: #E8F7EF; border: 2px solid #8FD6AE; z-index: 2; }
.mock__status { display: block; margin-top: 6px; color: #0E5A32; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.mock__name { display: block; color: #0E5A32; font-size: 24px; font-weight: 800; line-height: 1.2; }
.mock__meta { color: #2F7A50; font-weight: 600; font-size: 14px; }
.mock--tally { left: 20px; bottom: 0; width: 300px; padding: 16px 18px; z-index: 3; }
.mock__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.mock__bars span { display: flex; flex-direction: column; padding: 8px; border-radius: 10px; background: var(--bg); font-size: 11px; color: var(--muted); }
.mock__bars b { font-size: 18px; color: var(--ink); }
.mock__bars span:first-child b { color: var(--success); }

/* ---------- Langkah ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: var(--blue); color: var(--white); font-weight: 800; font-size: 18px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Kepercayaan ---------- */
.trust { display: grid; gap: 14px; margin-top: 28px; }
.trust div { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.trust strong { display: block; color: var(--ink); }
.trust span { color: var(--muted); font-size: 14px; }

/* ---------- Harga ---------- */
.pricing { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 20px 50px -40px rgba(1, 55, 122, .4); }
.pricing__label { font-weight: 700; color: var(--ink); }
.pricing__count { margin: 6px 0 14px; font-size: 30px; font-weight: 800; color: var(--ink); }
.pricing__count output { color: var(--blue); }
.pricing input[type=range] { width: 100%; accent-color: var(--blue); height: 28px; }
.pricing__scale { display: flex; justify-content: space-between; font-size: 13px; color: #8193A8; }
.pricing__note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.pricing__plans { display: grid; gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.plan--featured { border: 2px solid var(--blue); background: #F3F8FE; }
.plan__badge { position: absolute; top: -12px; right: 16px; padding: 3px 12px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 700; }
.plan__name { font-weight: 700; color: var(--muted); }
.plan__price { font-size: 32px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__unit { color: var(--muted); font-size: 14px; }
.pricing__footer { display: grid; justify-items: center; gap: 16px; margin-top: 28px; text-align: center; }
.pricing__footer p { color: var(--muted); max-width: 640px; }

/* ---------- Mitra ---------- */
.partner { display: grid; gap: 36px; align-items: center; }
.partner__copy h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.partner__copy > p:not(.eyebrow) { margin-top: 14px; font-size: 17px; }
.partner__benefits { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.partner__benefits li { position: relative; padding-left: 30px; }
.partner__benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(2, 205, 205, .2); color: var(--teal); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.partner__benefits strong { color: var(--white); }
.partner__example { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-radius: 20px; padding: 26px; }
.partner__example .mock__label { color: var(--teal); }
.partner__example > p { margin: 8px 0 16px; }
.partner__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.partner__row strong { color: var(--white); font-variant-numeric: tabular-nums; }
.partner__row--hl strong { color: var(--teal); font-size: 20px; }
.partner__fine { margin-top: 12px; font-size: 13px; opacity: .8; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--bg); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* ---------- Ajakan penutup ---------- */
.cta { padding: 56px 0; background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 70%, #0291B8 100%); color: #DCEAF8; }
.cta__inner { display: grid; gap: 20px; align-items: center; }
.cta h2 { color: var(--white); font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
.cta p { margin-top: 8px; font-size: 17px; }
.cta .hero__actions { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9B6C8; padding: 48px 0 24px; font-size: 14px; }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__logo { filter: brightness(0) invert(1); opacity: .9; height: 32px; width: auto; margin-bottom: 12px; }
.site-footer__links { display: grid; gap: 8px; align-content: start; }
.site-footer__links strong { color: var(--white); margin-bottom: 4px; }
.site-footer__links a { color: #A9B6C8; text-decoration: none; }
.site-footer__links a:hover { color: var(--white); }
.site-footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- Daftar sekolah ---------- */
.register { padding: 40px 0 64px; background: radial-gradient(50rem 24rem at 100% 0, rgba(2, 205, 205, .12), transparent 60%), var(--bg); }
.register__inner { display: grid; gap: 32px; align-items: start; }
.register__aside h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.register__aside > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 17px; }
.register__help { margin-top: 20px; font-size: 15px; }
.register__form { background: var(--white); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.register__form fieldset { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; }
.register__form legend { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; font-weight: 800; color: var(--ink); }
.register__form legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 14px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field-row { display: grid; gap: 14px; }
.field label, .field__label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field select { width: 100%; height: 50px; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); }
.field input:focus, .field select:focus { outline: 2px solid var(--blue); border-color: transparent; }
.field select:disabled { color: var(--muted); background: var(--bg); cursor: not-allowed; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__hint--top { margin: -6px 0 2px; }
.field__error { font-size: 13px; color: var(--danger); font-weight: 600; }
.optional { font-weight: 500; color: var(--muted); }
.choice { display: flex; gap: 10px; }
.choice label { flex: 1; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid #CBD5E1; border-radius: 10px; font-weight: 600; cursor: pointer; }
.choice input { accent-color: var(--blue); width: 18px; height: 18px; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 6px; font-size: 14px; color: var(--text); }
.agree input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.alert { padding: 12px 16px; border-radius: 10px; background: #FDECEC; color: var(--danger); font-weight: 600; font-size: 14px; }
.register__login { text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { background: var(--white); border-radius: 20px; padding: 40px 28px; text-align: center; box-shadow: var(--shadow); display: grid; gap: 14px; justify-items: center; }
.done__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #DCF5E8; color: var(--success); font-size: 32px; font-weight: 800; }
.done h1 { font-size: 28px; font-weight: 800; }
.done p { color: var(--muted); max-width: 520px; }
.done__fine { font-size: 13px; }

/* ---------- Layar lebih lebar ---------- */
@media (min-width: 640px) {
    .grid--3, .trust { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr 1fr; }
    .pricing__plans { grid-template-columns: 1fr 1fr; }
    .site-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .register__form { padding: 32px; }
}

@media (min-width: 960px) {
    .site-nav { display: flex; }
    .section { padding: 88px 0; }
    .hero { padding: 72px 0 88px; }
    .hero__inner { grid-template-columns: 1.1fr 1fr; }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .trust { grid-template-columns: repeat(4, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .pricing { grid-template-columns: 1fr 1.3fr; align-items: center; padding: 36px; }
    .partner { grid-template-columns: 1.2fr 1fr; gap: 56px; }
    .cta__inner { grid-template-columns: 1fr auto; }
    .register__inner { grid-template-columns: 1fr 1.4fr; gap: 56px; }
    .register__aside { position: sticky; top: 100px; }
}

@media (max-width: 480px) {
    .site-header__actions .btn--text { display: none; }
    .hero__visual { min-height: 380px; transform: scale(.9); transform-origin: top center; }
    .mock--phone { width: 240px; }
    .mock--scan { width: 200px; }
    .mock--tally { width: 270px; left: 0; }
    .hero__actions .btn { flex: 1 1 100%; }
}

/* Dokumen hukum */
.legal { padding: 48px 0 72px; }
.legal__head { margin-bottom: 24px; }
.legal__head h1 { font-size: clamp(30px, 5vw, 42px); }
.legal__meta { margin-top: 10px; color: var(--muted); font-size: 14px; }
.legal__summary, .legal__toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.legal__summary { border-left: 4px solid var(--teal); }
.legal__summary strong, .legal__toc strong { color: var(--ink); }
.legal__summary ul, .legal__toc ol { margin: 10px 0 0; padding-left: 20px; }
.legal__summary li + li { margin-top: 6px; }
.legal__toc ol { columns: 2 240px; column-gap: 32px; font-size: 15px; }
.legal__toc li { break-inside: avoid; padding: 2px 0; }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal section { padding-top: 28px; scroll-margin-top: 80px; }
.legal h2 { font-size: 22px; margin-bottom: 10px; }
.legal section p + p, .legal section ul + p, .legal section table + p { margin-top: 12px; }
.legal section > ul { padding-left: 20px; margin: 10px 0 0; }
.legal section > ul li + li { margin-top: 6px; }
.legal__table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.legal__table th { background: var(--bg); color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.legal__table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.legal__table tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .legal__table td:first-child { white-space: normal; min-width: 110px; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
