/* Halaman publik CBT ilmuve (unduh aplikasi, kebijakan privasi, 404). Token sama dengan antarmuka peserta. */
:root {
  --navy-950: #061430; --navy-900: #0a1f47; --navy-800: #0e2a5f; --navy-700: #15397a;
  --teal-400: #3cc6b7; --teal-500: #22ada3; --teal-ink: #0b6f68; --teal-50: #e8f7f5;
  --ink: #0b1b3a; --ink-2: #34425e; --muted: #66718a; --faint: #98a1b4;
  --ground: #f3f5f9; --surface: #fff; --line: #e2e7ef;
  --font: "Jakarta", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "CBT Mono", ui-monospace, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: min(1160px, 100% - 2 * clamp(16px, 5vw, 56px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--font); letter-spacing: -.008em; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: var(--navy-700); }
h1, h2, h3 { letter-spacing: -.03em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid rgba(34, 173, 163, .55); outline-offset: 2px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }
/* Plus Jakarta Sans memberi ruang kiri lebar pada titik/koma; dirapatkan pada judul besar. */
.tp { margin-left: -.08em; }

/* Kepala */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(243, 245, 249, .82); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid rgba(11, 27, 58, .06); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.site-brand img { width: 34px; height: 34px; border-radius: 10px; }
.site-brand span span { color: var(--teal-ink); }
.site-nav { display: flex; gap: 6px; }
.site-nav a { padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 650; font-size: .92rem; color: var(--ink-2); }
.site-nav a:hover { background: rgba(14, 42, 95, .06); }
.site-nav a.cta { background: var(--navy-800); color: #fff; }
.site-nav a.cta:hover { background: var(--navy-700); }

/* Hero unduh */
.dl-hero { position: relative; overflow: hidden; isolation: isolate; color: #e9effa; background: radial-gradient(110% 90% at 100% 100%, rgba(34, 173, 163, .3), transparent 55%), radial-gradient(80% 70% at 0% 0%, rgba(41, 92, 170, .55), transparent 60%), linear-gradient(165deg, var(--navy-800), var(--navy-900) 55%, var(--navy-950)); }
.dl-hero::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -200px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 0 0 140px rgba(255, 255, 255, .015); }
.dl-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(56px, 9vw, 120px); }
.overline { margin: 0 0 14px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-400); }
.dl-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: .98; font-weight: 800; letter-spacing: -.04em; color: #fff; }
.dl-hero h1 > span:not(.tp) { color: var(--teal-400); }
.lead { max-width: 54ch; margin: 22px 0 32px; color: #b9c7e2; font-size: clamp(1.02rem, 1.2vw, 1.15rem); }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-btn { display: inline-flex; align-items: center; gap: 14px; min-height: 62px; padding: 10px 22px 10px 16px; border-radius: 16px; text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, .16); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s; }
.dl-btn b { display: block; font-size: 1.02rem; line-height: 1.2; }
.dl-btn small { display: block; font-size: .8rem; opacity: .78; font-weight: 500; }
.dl-btn-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; background: rgba(255, 255, 255, .14); }
.dl-btn-primary { background: var(--teal-500); border-color: var(--teal-500); color: #032521; box-shadow: 0 14px 34px rgba(34, 173, 163, .35); }
.dl-btn-primary .dl-btn-icon { background: rgba(3, 37, 33, .12); }
.dl-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(34, 173, 163, .42); background: var(--teal-400); }
.dl-btn-ghost:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.dl-btn-disabled { opacity: .7; }
.dl-meta { margin: 18px 0 0; font-size: .85rem; color: #8ea1c5; }
.dl-btn-play .dl-btn-icon svg { display: block; }
/* Versi tersaji + catatan rilis dari super admin (lipat). */
.dl-release { margin-top: 16px; max-width: 520px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .04); }
.dl-release summary, .dl-release-plain { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; list-style: none; font-size: .88rem; color: #dce5f5; }
.dl-release summary { cursor: pointer; }
.dl-release summary::-webkit-details-marker { display: none; }
.dl-release span { font: 700 .8rem/1.4 var(--mono); letter-spacing: .04em; color: var(--teal-400); }
.dl-release small { color: #8ea1c5; font-size: .82rem; }
.dl-release summary::after { content: "Yang baru ▾"; margin-left: auto; font-size: .78rem; font-weight: 600; color: #b9c6df; }
.dl-release[open] summary::after { content: "Tutup ▴"; }
.dl-release summary:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 2px; border-radius: 12px; }
.dl-release-notes { padding: 0 14px 12px; font-size: .88rem; color: #c9d4ea; }
.dl-release-notes b { display: block; margin-bottom: 4px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #8ea1c5; }
.dl-release-notes ul { margin: 0; padding-left: 18px; }
.dl-release-notes p { margin: 0; }

/* Ponsel tiruan (CSS) */
.phone { justify-self: center; width: min(300px, 78vw); aspect-ratio: 9 / 19; padding: 11px; border-radius: 44px; background: linear-gradient(160deg, #1d2a44, #0b1222); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 50px 90px rgba(0, 0, 0, .45), 0 0 0 10px rgba(255, 255, 255, .03); transform: rotate(-4deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-4deg) translateY(-10px); } }
.phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: var(--ground); display: flex; flex-direction: column; }
.phone-band { padding: 34px 18px 54px; text-align: center; background: radial-gradient(120% 90% at 100% 100%, rgba(34, 173, 163, .35), transparent 60%), linear-gradient(165deg, var(--navy-800), var(--navy-950)); }
.phone-band img { width: 62px; height: auto; }
.phone-band p { margin: 8px 0 0; color: #fff; font-weight: 800; font-size: .92rem; letter-spacing: -.02em; }
.phone-card { margin: -34px 14px 0; padding: 16px 14px; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(11, 27, 58, .12); display: grid; gap: 9px; }
.phone-card b { font-size: .95rem; letter-spacing: -.02em; }
.phone-qr { height: 34px; border-radius: 10px; border: 1.5px dashed #9ed9d2; background: var(--teal-50); }
.phone-field { height: 30px; border-radius: 9px; border: 1.5px solid #d4dbe6; display: flex; align-items: center; padding-left: 10px; font: 700 .7rem var(--mono); letter-spacing: .2em; color: #8b95a8; }
.phone-btn { height: 34px; border-radius: 10px; background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); }
.phone-lock { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 27, 58, .86); color: #fff; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.phone-lock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 3px rgba(60, 198, 183, .25); }

/* Bagian */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 620px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.05; font-weight: 800; }
.section-head p { color: var(--muted); margin: 14px 0 0; }
.section .overline { color: var(--teal-ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.steps li { position: relative; padding: 22px 20px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font: 700 .85rem/1 var(--mono); color: var(--teal-ink); letter-spacing: .08em; }
.steps b { display: block; font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -.015em; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.tile.wide { grid-column: span 2; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); color: #dce5f5; border-color: transparent; }
.tile.wide h3 { color: #fff; }
.tile.wide p { color: #aab9d6; }
.tile .glyph { width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-ink); font-weight: 800; }
.tile.wide .glyph { background: rgba(60, 198, 183, .16); color: var(--teal-400); }
.tile h3 { font-size: 1.12rem; font-weight: 750; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.3rem/1 var(--mono); color: var(--teal-ink); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

/* Dokumen (kebijakan privasi) */
.doc { padding-block: clamp(40px, 7vw, 88px); }
.doc article { max-width: 760px; margin-inline: auto; padding: clamp(24px, 5vw, 56px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11, 27, 58, .04), 0 18px 48px rgba(11, 27, 58, .06); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.05; }
.doc .updated { margin: 12px 0 28px; color: var(--muted); font-size: .9rem; }
.doc h2 { font-size: 1.2rem; font-weight: 750; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .94rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 650; font-size: .85rem; }

/* 404 */
.lost { min-height: calc(100vh - 140px); display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.lost .code { font: 700 clamp(5rem, 18vw, 10rem)/.9 var(--mono); letter-spacing: -.06em; background: linear-gradient(160deg, var(--navy-800), var(--teal-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 18px 0 8px; }
.lost p { color: var(--muted); margin: 0 0 26px; }
.lost a { display: inline-flex; padding: 12px 22px; border-radius: 12px; background: var(--navy-800); color: #fff; text-decoration: none; font-weight: 700; }

/* Tentang (spesifikasi, keamanan, akuntabilitas, penelitian) */
.about-hero { color: #e9effa; background: radial-gradient(110% 90% at 100% 100%, rgba(34, 173, 163, .28), transparent 55%), radial-gradient(80% 70% at 0% 0%, rgba(41, 92, 170, .5), transparent 60%), linear-gradient(165deg, var(--navy-800), var(--navy-900) 55%, var(--navy-950)); }
.about-hero .wrap { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.about-hero h1 { max-width: 16ch; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; color: #fff; }
.about-hero h1 > span:not(.tp) { color: var(--teal-400); }
.about-hero .lead { margin-bottom: 36px; }
.facts-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); }
.facts-row div { padding: 18px 18px 16px; background: rgba(6, 20, 48, .55); }
.facts-row b { display: block; font: 700 .78rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-400); margin-bottom: 6px; }
.facts-row span { font-size: .9rem; color: #c7d3ea; line-height: 1.45; }
.about-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-block: clamp(40px, 6vw, 80px); }
.toc { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; font-size: .9rem; }
.toc p { margin: 0 0 8px; font: 700 .72rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.toc a { padding: 7px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); border-left: 2px solid transparent; }
.toc a:hover { background: rgba(14, 42, 95, .05); border-left-color: var(--teal-500); }
.about-body section { scroll-margin-top: 84px; padding-bottom: clamp(40px, 6vw, 72px); }
.about-body section + section { padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.about-body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.08; font-weight: 800; margin-bottom: 14px; }
.about-body h2 small { display: block; margin-bottom: 10px; font: 700 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.about-body h3 { font-size: 1.12rem; font-weight: 750; margin: 30px 0 10px; letter-spacing: -.015em; }
.about-body p, .about-body li { color: var(--ink-2); }
.about-body > section > p:first-of-type { font-size: 1.05rem; max-width: 68ch; }
.spec { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: .94rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.spec tr:last-child td, .spec tr:last-child th { border-bottom: 0; }
.spec thead th { background: #eef2f8; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.spec tbody th { width: 26%; font-weight: 700; color: var(--ink); }
.spec td small { display: block; margin-top: 4px; color: var(--muted); font-size: .84rem; }
.table-scroll { overflow-x: auto; border-radius: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.callout { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.callout h4 { margin: 0 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.callout h4::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--teal-500); }
.callout.researcher h4::before { background: #d99400; }
.callout ul { margin: 0; padding-left: 18px; }
.callout li { font-size: .93rem; }
.callout li + li { margin-top: 6px; }
.formula { margin: 14px 0; padding: 16px 20px; border-radius: 14px; background: var(--navy-900); color: #e2eafa; font: 500 .95rem/1.7 var(--mono); overflow-x: auto; }
.formula span { color: var(--teal-400); }
.cite { padding: 16px 20px; border-left: 3px solid var(--teal-500); border-radius: 0 12px 12px 0; background: var(--teal-50); font-size: .95rem; color: var(--ink); }
.check-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 7px; background: var(--teal-50); border: 1px solid #a9ddd6; }
.check-list li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 4px; border: 2px solid var(--teal-ink); border-top: 0; border-right: 0; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc p { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .facts-row { grid-template-columns: 1fr; } .spec tbody th { width: auto; } .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; } .spec thead { display: none; } .spec tbody th { border-bottom: 0; padding-bottom: 2px; } }

/* Kaki */
.site-foot { padding: 28px 0 max(28px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-foot nav { display: flex; gap: 18px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dl-hero .wrap { grid-template-columns: 1fr; padding-block: 48px 64px; }
  .phone { width: min(250px, 70vw); transform: none; animation: none; }
  .site-nav a:not(.cta) { display: none; }
  .steps, .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .dl-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
