/* Token desain dari aksi_purnabakti_design_system.md */
:root {
  --navy: #0F2B46; --amber: #D9822B; --amber-hover: #C47120; --gold: #E5A93C; --teal: #1F6E6C; --teal-tint: #E6F2F1;
  --coral: #C94A38; --coral-text: #A93A2B; --coral-tint: #FDF1EF; --bg: #F8F9FA; --card: #FFFFFF; --text: #1A2433;
  --muted: #4B5563; --input: #6B7280; --line: #E2E8F0; --shadow: 0 2px 8px rgba(15, 43, 70, .08);
  --h: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --b: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--b); }
h1, h2, h3 { font-family: var(--h); color: var(--navy); line-height: 1.3; margin: 0 0 12px; }
h1 { font-size: clamp(26px, 5.4vw, 38px); font-weight: 800; letter-spacing: -.3px; }
h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 12px; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
section { padding: 40px 0; }
.white { background: var(--card); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.6; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 10px;
  border: 1.5px solid transparent; background: var(--amber); color: var(--navy); font: 700 16px/1.35 var(--b); text-align: center; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--amber-hover); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--bg); }
.btn--block { width: 100%; }
.btn--sm { min-height: 48px; padding: 8px 16px; font-size: 15px; }
.link { background: none; border: 0; padding: 0; min-height: 48px; color: var(--teal); font: 600 15px var(--b); text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Header & hero */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 15px var(--h); color: var(--navy); }
.brand img { height: 48px; width: auto; }
.hero { background: var(--navy); color: #fff; padding: 28px 0 40px; }
.hero h1 { color: #fff; }
.eyebrow { color: var(--gold); font: 700 14px/1.5 var(--b); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.hero .grid { display: grid; gap: 28px; }
.hero p { color: #E7EDF4; }
.hero .eyebrow { color: var(--gold); }
.hero .btn { width: 100%; }
.hero .note { font-size: 14px; font-weight: 600; margin-top: 12px; text-align: center; }
@media (min-width: 900px) {
  .hero { padding: 56px 0; }
  .hero .grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .hero .btn { width: auto; }
  .hero .note { text-align: left; }
}

/* Kartu & grafik contoh */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); color: var(--text); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font: 600 14px var(--b); color: var(--muted); }
.badge { display: inline-block; background: var(--navy); color: #fff; border-radius: 6px; padding: 3px 10px; font-size: 14px; font-weight: 700; }
.bar-row { margin-top: 10px; font-size: 14px; font-weight: 600; }
.bar-row div:first-child { display: flex; justify-content: space-between; }
.bar { position: relative; height: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal); width: calc(var(--v) * 20%); }
.bar.low i { background: repeating-linear-gradient(45deg, var(--coral), var(--coral) 6px, #E08A7C 6px, #E08A7C 12px); }
.bar::after { content: ""; position: absolute; left: 60%; top: 0; bottom: 0; border-left: 2px dashed var(--navy); }
.low-text { color: var(--coral-text); }

.grid-cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.logos span { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; font: 600 14px var(--b); color: var(--muted); }
@media (min-width: 720px) { .logos { grid-template-columns: repeat(4, 1fr); } }
.pain h3 { color: var(--navy); }
.pain::before { content: ""; display: block; width: 36px; height: 6px; border-radius: 9px; background: var(--coral); margin-bottom: 14px; }
.highlight { background: var(--navy); color: var(--gold); border-radius: 12px; padding: 22px; margin-top: 18px; }
.highlight strong { display: block; font: 700 18px/1.45 var(--h); margin-bottom: 8px; }
.highlight p { color: #E7EDF4; margin: 0; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 66px; min-height: 86px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.person { display: flex; gap: 14px; align-items: flex-start; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 16px var(--h); }
blockquote { margin: 12px 0 0; font-style: italic; font-size: 15px; line-height: 1.65; }
blockquote.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.price { width: 100%; border-collapse: collapse; font-size: 15px; }
.price td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price td:last-child { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 12px; }
.total { background: var(--navy); color: #fff; border-radius: 10px; text-align: center; padding: 18px; margin-top: 16px; }
.total s { color: #CBD5E1; } .total b { display: block; color: var(--gold); font: 800 26px var(--h); }
.guarantee { border-left: 5px solid var(--teal); }
.quota { border: 2px dashed var(--input); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
summary { min-height: 56px; padding: 15px 18px; font-weight: 700; color: var(--navy); cursor: pointer; }
details p { padding: 0 18px 6px; }
.final { background: var(--navy); color: #E7EDF4; border-radius: 16px; padding: 30px 20px; text-align: center; }
.final h2 { color: #fff; } .final .gold { color: var(--gold); font-weight: 700; margin-top: 16px; }
footer { padding: 28px 0 96px; font-size: 15px; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15,43,70,.12);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); font-weight: 700; font-size: 14px; }
@media (min-width: 900px) { .sticky { display: none !important; } footer { padding-bottom: 28px; } }

/* Dialog */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 20px 60px rgba(15,43,70,.3); color: var(--text); }
dialog::backdrop { background: rgba(15,43,70,.65); }
.dlg { padding: 22px; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.x { flex: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 24px; cursor: pointer; color: var(--navy); }

/* Form */
.field { margin-bottom: 16px; }
.field > label, .legend { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--input); border-radius: 10px; background: #fff; font: 17px var(--b); color: var(--text); }
.input[aria-invalid="true"] { border-color: var(--coral); background: var(--coral-tint); }
.error { color: var(--coral-text); font-weight: 600; font-size: 15px; margin: 6px 0 0; }
.alert { background: var(--coral-tint); color: var(--coral-text); border: 1px solid var(--coral); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.opt input:checked + span { border: 2px solid var(--teal); background: var(--teal-tint); font-weight: 700; }
.opt input:checked + span::after { content: "✓"; color: var(--teal); font-weight: 800; }
.opt input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.seg .opt span { justify-content: center; }
.seg .opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg .opt input:checked + span::after { content: none; }
.opts { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tes */
.progress { height: 8px; background: var(--line); border-radius: 9px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--teal); transition: width .25s; }
.quiz-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 14px 0 16px; }
.quiz-head img { height: 40px; }
.q { margin-bottom: 16px; }
.card.q { margin-left: 0; margin-right: 0; padding: 18px 16px; }
.q legend { float: left; width: 100%; font: 700 18px/1.45 var(--h); color: var(--navy); padding: 0; margin-bottom: 4px; }
.q > .opt { clear: both; }
.nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 6px; }
.saved { text-align: center; color: var(--teal); font-size: 15px; font-weight: 600; min-height: 24px; }
.ok-mark { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 38px; }
.info { background: var(--teal-tint); border-radius: 12px; padding: 14px 16px; margin: 16px 0; text-align: left; }
.stack { display: grid; gap: 10px; }
.spinner { width: 20px; height: 20px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 2s !important; scroll-behavior: auto !important; transition: none !important; } }
.preview-flag { background: #FEF9C3; color: #854D0E; text-align: center; font-size: 14px; font-weight: 600; padding: 6px 12px; }
