/* Mini tryout Paham Pola. Mobile-first, gaya FLAT (design/DESIGN.md): tanpa garis tepi pada kartu, callout,
   badge, dan opsi; pakai isian lembut + radius. Warna subtes lewat [data-subtest] dari tokens.css. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  src: local('Plus Jakarta Sans'), url('../assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--pp-ink);
  background: var(--pp-paper);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--pp-accent-dark); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--pp-accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 720px; margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 640px) { .wrap { padding-inline: var(--space-6); } }

/* ---- wordmark (sama dengan landing) */
.wm {
  font-weight: 800; letter-spacing: var(--track-wordmark); line-height: 0.88; position: relative;
  display: inline-block; padding-right: 0.95em; color: var(--pp-ink); text-decoration: none;
}
.wm i { font-style: normal; color: var(--pp-accent); }
.mk { position: absolute; right: 0; top: -0.02em; width: 0.78em; height: 0.78em; }
.mk b { position: absolute; width: 0.22em; height: 0.22em; background: var(--pp-accent); }
.mk b:nth-child(1) { left: 0; bottom: 0; }
.mk b:nth-child(2) { left: 0.28em; bottom: 0.28em; }
.mk b:nth-child(3) { left: 0.56em; bottom: 0.56em; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(24, 48, 63, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 60px; }
.header-tag { font-size: var(--text-xs); font-weight: 800; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--pp-muted); }

.site-footer { margin-top: var(--space-12); background: var(--pp-surface); color: var(--pp-muted); font-size: var(--text-sm); }
.footer-inner { padding-block: var(--space-6); display: grid; gap: var(--space-2); }
.footer-meta { font-size: var(--text-xs); }

/* ---- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0.7rem 1.35rem; border: 0; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pp-accent); color: #fff; }
.btn-primary:hover { background: var(--pp-accent-dark); }
.btn-soft { background: var(--pp-surface); color: var(--pp-ink); }
.btn-soft:hover { background: var(--pp-soft); }
.btn-ghost { background: transparent; color: var(--pp-muted); }
.btn-ghost:hover { background: var(--pp-surface); color: var(--pp-ink); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---- generic */
.screen { padding-block: var(--space-6) var(--space-4); }
@media (min-width: 640px) { .screen { padding-block: var(--space-10) var(--space-6); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3);
  font-size: var(--text-xs); font-weight: 800; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--pp-accent-dark);
}
.eyebrow-squares { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eyebrow-squares i { display: block; width: 4px; background: var(--pp-accent); }
.eyebrow-squares i:nth-child(1) { height: 4px; }
.eyebrow-squares i:nth-child(2) { height: 8px; }
.eyebrow-squares i:nth-child(3) { height: 12px; }
.hl { background: linear-gradient(to top, var(--pp-soft) 42%, transparent 42%); }
.muted { color: var(--pp-muted); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--subtest-soft); color: var(--subtest-dark); font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.02em;
}
.chip-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--subtest-accent); }

/* ---- intro */
.intro h1 { font-size: clamp(2rem, 7vw, 2.875rem); font-weight: 800; letter-spacing: var(--track-display); line-height: 1.06; margin-bottom: var(--space-4); }
.intro .lead { font-size: var(--text-lg); color: var(--pp-muted); max-width: 54ch; margin-bottom: var(--space-6); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin-bottom: var(--space-6); }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--pp-surface); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.fact b { display: block; font-size: var(--text-xl); font-weight: 800; letter-spacing: var(--track-heading); line-height: 1.2; }
.fact span { font-size: var(--text-xs); font-weight: 600; color: var(--pp-muted); }
.mix { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }
.mix-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--subtest-soft); }
.mix-row b { min-width: 2.6em; font-weight: 800; color: var(--subtest-dark); }
.mix-row span { font-size: var(--text-sm); color: var(--pp-ink-soft); }
.mix-row em { margin-left: auto; font-style: normal; font-size: var(--text-xs); font-weight: 700; color: var(--subtest-dark); white-space: nowrap; }
.note {
  display: flex; gap: var(--space-3); padding: var(--space-4); border-radius: 14px; background: var(--pp-trap-bg);
  color: var(--pp-trap-ink); font-size: var(--text-sm); margin-bottom: var(--space-6);
}
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.toggle { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; margin-bottom: var(--space-5); cursor: pointer; font-size: var(--text-sm); font-weight: 600; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .sw { position: relative; width: 44px; height: 26px; flex: none; border-radius: var(--radius-pill); background: var(--pp-line); transition: background-color 140ms ease; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(24, 48, 63, 0.25); transition: transform 160ms ease; }
.toggle input:checked + .sw { background: var(--pp-accent); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw { outline: 2.5px solid var(--pp-accent); outline-offset: 2px; }
.toggle small { display: block; font-weight: 500; color: var(--pp-muted); font-size: var(--text-xs); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.actions .btn-primary { flex: 1 1 220px; }
@media (min-width: 560px) { .actions .btn-primary { flex: 0 1 auto; } }

/* ---- question */
.qbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.qcount { font-size: var(--text-sm); font-weight: 800; }
.qcount span { color: var(--pp-muted); font-weight: 600; }
.timer { font-size: var(--text-sm); font-weight: 700; color: var(--pp-muted); display: inline-flex; align-items: center; gap: 6px; }
.timer svg { width: 16px; height: 16px; }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: var(--space-5); }
.dot { height: 30px; padding: 0; border: 0; border-radius: 6px; cursor: pointer; background: var(--pp-surface); display: grid; place-items: end center; }
.dot i { display: block; width: 100%; height: 6px; border-radius: 6px; background: var(--pp-line); }
.dot.done i { background: var(--subtest-accent); }
.dot.now i { background: var(--pp-ink); height: 8px; }
.dot.now.done i { background: var(--subtest-dark); }
.qcard { background: var(--pp-paper); border-radius: 18px; box-shadow: 0 6px 24px rgba(24, 48, 63, 0.08); padding: var(--space-5) var(--space-4); }
@media (min-width: 640px) { .qcard { padding: var(--space-6); } }
.qmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.qmeta .pat { font-size: var(--text-xs); font-weight: 700; color: var(--pp-muted); }
.stem { font-size: 1.0625rem; line-height: 1.55; margin-bottom: var(--space-5); }
.stem b { font-weight: 800; }
.stem.big { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.02em; }

.figrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: var(--space-4); }
.figrow .fig, .fopt .fig { display: block; width: 100%; height: auto; background: var(--pp-surface); border-radius: 10px; }
.figrow .fig:last-child { background: var(--pp-soft); }

.opts { display: grid; gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.opts legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.opt { position: relative; display: flex; align-items: flex-start; gap: var(--space-3); min-height: 52px; padding: var(--space-3); border-radius: 12px; background: var(--pp-surface); cursor: pointer; transition: background-color 120ms ease; }
.opt:hover { background: var(--subtest-soft); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .lt { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--pp-paper); color: var(--subtest-dark); font-size: var(--text-sm); font-weight: 800; }
.opt .tx { padding-top: 2px; font-size: 0.98rem; line-height: 1.45; }
.opt:has(input:checked) { background: var(--subtest-soft); }
.opt:has(input:checked) .lt { background: var(--subtest-accent); color: #fff; }
.opt:has(input:checked) .tx { font-weight: 600; }
.opt:has(input:focus-visible) { outline: 2.5px solid var(--pp-accent); outline-offset: 2px; }
.opts.fig5 { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.opts.fig5 .opt { flex-direction: column; align-items: center; gap: 6px; padding: 6px 6px 8px; }
.opts.fig5 .lt { width: 24px; height: 24px; font-size: var(--text-xs); }
.opts.fig5 .tx { padding: 0; width: 100%; }
.opts.fig5 .fig { background: var(--pp-paper); }

.qnav { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.qnav .btn-primary { flex: 1; }
.qhint { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--pp-muted); text-align: center; }
.confirm { margin-top: var(--space-4); padding: var(--space-4); border-radius: 14px; background: var(--pp-trap-bg); color: var(--pp-trap-ink); font-size: var(--text-sm); }
.confirm p { margin-bottom: var(--space-3); }
.confirm .actions .btn { min-height: 44px; }

/* ---- result */
.result h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 800; letter-spacing: var(--track-display); line-height: 1.08; margin-bottom: var(--space-3); }
.result .lead { color: var(--pp-muted); font-size: var(--text-base); margin-bottom: var(--space-6); max-width: 58ch; }
.total { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-2); }
.total b { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.total span { font-weight: 700; color: var(--pp-muted); }
.scores { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
@media (min-width: 560px) { .scores { grid-template-columns: repeat(3, 1fr); } }
.sc { background: var(--subtest-soft); border-radius: var(--radius-md); padding: var(--space-4); }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-2); }
.sc-head b { font-weight: 800; color: var(--subtest-dark); }
.sc-head span { font-size: var(--text-xs); font-weight: 600; color: var(--pp-ink-soft); }
.sc-num { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.sc-num small { font-size: var(--text-base); font-weight: 700; color: var(--pp-muted); }
.bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.85); margin-top: var(--space-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 8px; background: var(--subtest-accent); }
.weights { font-size: var(--text-xs); color: var(--pp-muted); margin-bottom: var(--space-8); }

.block { margin-bottom: var(--space-8); }
.block h2 { font-size: var(--text-xl); font-weight: 800; letter-spacing: var(--track-heading); line-height: 1.25; margin-bottom: var(--space-2); }
.block > p { color: var(--pp-muted); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.weak { display: grid; gap: var(--space-2); list-style: none; padding: 0; }
.weak a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--pp-surface); text-decoration: none; color: var(--pp-ink); }
.weak a:hover { background: var(--subtest-soft); }
.weak .w-name { font-weight: 700; flex: 1; line-height: 1.3; }
.weak .w-name small { display: block; font-weight: 500; font-size: var(--text-xs); color: var(--pp-muted); }
.weak .w-pts { font-size: var(--text-sm); font-weight: 800; color: var(--subtest-dark); white-space: nowrap; }
.allgood { padding: var(--space-4); border-radius: var(--radius-md); background: var(--pp-good-soft); color: var(--pp-good); font-size: var(--text-sm); font-weight: 600; }

.review { display: grid; gap: var(--space-3); }
.rv { background: var(--pp-paper); border-radius: 16px; box-shadow: 0 4px 18px rgba(24, 48, 63, 0.07); scroll-margin-top: 76px; }
.rv summary { list-style: none; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); min-height: 56px; cursor: pointer; }
.rv summary::-webkit-details-marker { display: none; }
.rv .no { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--pp-ink); color: #fff; font-size: var(--text-sm); font-weight: 800; }
.rv .sum { flex: 1; min-width: 0; line-height: 1.3; }
.rv .sum b { display: block; font-size: var(--text-sm); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv .sum span { font-size: var(--text-xs); color: var(--pp-muted); font-weight: 600; }
.verdict { flex: none; padding: 3px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 800; white-space: nowrap; }
.verdict.v-ok { background: var(--pp-good-soft); color: var(--pp-good); }
.verdict.v-no { background: var(--pp-draft-bg); color: var(--pp-draft-ink); }
.verdict.v-mid { background: var(--pp-trap-bg); color: var(--pp-trap-ink); }
.verdict.v-empty { background: var(--pp-surface); color: var(--pp-muted); }
.chev { flex: none; width: 18px; height: 18px; color: var(--pp-muted); transition: transform 160ms ease; }
.rv[open] .chev { transform: rotate(180deg); }
.rv-body { padding: 0 var(--space-4) var(--space-5); }
@media (min-width: 640px) { .rv-body { padding-inline: var(--space-5); } }
.rv-body .stem { font-size: var(--text-base); margin-bottom: var(--space-4); }
.rv-body .stem.big { font-size: 1.25rem; }
.ropts { display: grid; gap: 6px; list-style: none; padding: 0; margin-bottom: var(--space-4); }
.ropts li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-2) var(--space-3); border-radius: 10px; background: var(--pp-surface); font-size: var(--text-sm); line-height: 1.45; }
.ropts .lt { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--pp-paper); font-size: var(--text-xs); font-weight: 800; color: var(--pp-ink-soft); }
.ropts .tx { flex: 1; padding-top: 1px; }
.ropts .tag { flex: none; font-size: var(--text-xs); font-weight: 800; padding-top: 3px; white-space: nowrap; }
.ropts li.key { background: var(--pp-good-soft); }
.ropts li.key .lt { background: var(--pp-good); color: #fff; }
.ropts li.key .tag { color: var(--pp-good); }
.ropts li.picked:not(.key) { background: var(--pp-draft-bg); }
.ropts li.picked:not(.key) .lt { background: var(--pp-draft-ink); color: #fff; }
.ropts li.picked:not(.key) .tag { color: var(--pp-draft-ink); }
.ropts.tkp li.picked:not(.key) { background: var(--pp-trap-bg); }
.ropts.tkp li.picked:not(.key) .lt { background: var(--pp-trap-border); }
.ropts.tkp li.picked:not(.key) .tag { color: var(--pp-trap-ink); }
.ropts.fig5 { grid-template-columns: repeat(5, 1fr); }
.ropts.fig5 li { flex-direction: column; align-items: center; gap: 4px; padding: 6px; }
.ropts.fig5 .tx { width: 100%; padding: 0; }
.ropts.fig5 .fig { display: block; width: 100%; height: auto; background: var(--pp-paper); border-radius: 8px; }
.ropts.fig5 .tag { padding: 0; font-size: 10px; }
.bahas { font-size: var(--text-sm); line-height: 1.6; margin-bottom: var(--space-3); }
.bahas-label, .trap-label { display: block; font-size: var(--text-xs); font-weight: 800; letter-spacing: var(--track-label); text-transform: uppercase; margin-bottom: 4px; }
.bahas-label { color: var(--subtest-dark); }
.trap { padding: var(--space-3) var(--space-4); border-radius: 12px; background: var(--pp-trap-bg); color: var(--pp-trap-ink); font-size: var(--text-sm); line-height: 1.5; margin-bottom: var(--space-3); }
.trap-label { display: flex; align-items: center; gap: 6px; }
.trap-label svg { width: 14px; height: 14px; }
.bab { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: 12px; background: var(--subtest-soft); font-size: var(--text-sm); line-height: 1.45; color: var(--pp-ink-soft); }
.bab svg { flex: none; width: 18px; height: 18px; color: var(--subtest-dark); margin-top: 1px; }
.bab b { color: var(--pp-ink); }

.cta { border-radius: 20px; padding: var(--space-6) var(--space-5); background: linear-gradient(180deg, var(--pp-soft), var(--pp-paper) 75%); box-shadow: 0 10px 32px rgba(46, 111, 216, 0.14); margin-bottom: var(--space-8); }
@media (min-width: 640px) { .cta { padding: var(--space-8); } }
.cta h2 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: var(--track-display); line-height: 1.15; margin-bottom: var(--space-3); }
.cta > p { color: var(--pp-ink-soft); margin-bottom: var(--space-5); max-width: 56ch; }
.cta ul { margin: 0 0 var(--space-5); padding: 0; list-style: none; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.cta li { display: flex; gap: var(--space-2); }
.cta li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; background: var(--pp-accent); }
.launch { padding: var(--space-4); border-radius: 14px; background: var(--pp-paper); margin-bottom: var(--space-4); }
.launch p { font-weight: 700; margin-bottom: var(--space-3); }
.social { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lead-form { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.lead-form label { display: grid; gap: 4px; font-size: var(--text-sm); font-weight: 700; }
.lead-form label small { font-weight: 500; color: var(--pp-muted); }
.lead-form input { min-height: 48px; padding: 0 var(--space-4); border: 1.5px solid var(--pp-line); border-radius: 12px; background: var(--pp-paper); font: inherit; font-size: var(--text-base); color: var(--pp-ink); }
.lead-form input:focus { border-color: var(--pp-accent); outline: none; }
.lead-form .fine { font-size: var(--text-xs); color: var(--pp-muted); }
.lead-ok { padding: var(--space-4); border-radius: 14px; background: var(--pp-good-soft); color: var(--pp-good); font-weight: 700; font-size: var(--text-sm); margin-top: var(--space-5); }
.share-note { font-size: var(--text-xs); color: var(--pp-muted); margin-top: var(--space-2); min-height: 1.2em; }
.share-fallback { width: 100%; min-height: 96px; margin-top: var(--space-2); padding: var(--space-3); border: 1.5px solid var(--pp-line); border-radius: 12px; font: inherit; font-size: var(--text-sm); }
h1:focus, .stem:focus { outline: none; }
/* grid item tidak boleh melebar mengikuti teks nowrap di dalamnya */
.review, .weak, .scores, .mix, .facts { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .scores { grid-template-columns: repeat(3, minmax(0, 1fr)); } .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rv, .rv summary { min-width: 0; }
@media (hover: none) { .kbd-hint { display: none; } }
.weak .chip { min-width: 62px; justify-content: center; }
.cta > :last-child, .cta .launch:last-child { margin-bottom: 0; }
.opts.fig5 .fig { background: transparent; }
