:root {
  --bg: #fbf7f2; --paper: #ffffff; --ink: #2b2622; --muted: #6f655d; --line: #ece4da;
  --accent: #b8664a; --accent-ink: #ffffff; --sage: #6e8b74; --soft: #f3ebe1;
  --serif: "Fraunces", Georgia, serif; --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(30px, 7vw, 46px); letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 5vw, 30px); }
p { margin: 0 0 1em; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; align-items: center; justify-content: space-between; }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .row { height: 56px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 19px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--sage); margin-bottom: .6em; }
.lead { font-size: 18px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin-top: .7em; }
.hero { padding-top: 40px; padding-bottom: 24px; }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; margin: -16px 0 22px; box-shadow: 0 20px 40px -28px rgba(60, 40, 20, .35); }

.btn { appearance: none; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); font: 700 16px var(--sans); padding: 15px 26px; border-radius: 999px; box-shadow: 0 6px 18px -8px var(--accent); transition: transform .1s; }
.btn:active { transform: scale(.98); }
.btn.sm { padding: 9px 16px; font-size: 14px; box-shadow: none; }
.btn.block { width: 100%; padding: 15px 26px; } /* .block (section) ikut menambah padding atas; dikunci di sini */
.btn[disabled] { opacity: .6; cursor: wait; }
.link { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--muted); font: 500 14px var(--sans); text-decoration: underline; cursor: pointer; }

.sample { margin-top: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 20px 40px -28px rgba(60, 40, 20, .35); }
.sample h3 { font-size: 26px; margin-bottom: .1em; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--accent); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.arab { font-size: 22px; color: var(--sage); direction: rtl; text-align: left; margin-bottom: .6em; }
.kv { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.kv li { font-size: 15px; }
.kv span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.block { padding-top: 36px; padding-bottom: 8px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.card p { margin: .3em 0 0; font-size: 14px; color: var(--muted); }
.steps { padding-left: 20px; margin: 0; }
.steps li { margin-bottom: 8px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: .6em 0 0; color: var(--muted); font-size: 15px; }
.cta { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.foot a, .logo a { color: inherit; }
.logo a { text-decoration: none; }

/* halaman legal */
.doc { padding-top: 32px; padding-bottom: 40px; }
.doc h2 { font-size: 20px; margin-top: 1.6em; }
.doc li { margin-bottom: 6px; }
.doc .upd { color: var(--muted); font-size: 13px; }

/* overlay quiz */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(43, 38, 34, .45); display: flex; align-items: flex-end; justify-content: center; }
.overlay[hidden] { display: none; }
.sheet { background: var(--bg); width: 100%; max-width: 560px; max-height: 100dvh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 16px 16px 24px; }
@media (min-width: 600px) { .overlay { align-items: center; } .sheet { border-radius: 22px; max-height: 92dvh; } }
.sheet.small { padding: 26px 20px; }
.qhead { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.back { background: none; border: 0; font-size: 20px; width: 36px; height: 36px; cursor: pointer; color: var(--ink); }
.bar { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--sage); transition: width .25s; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-family: var(--serif); font-weight: 700; font-size: 24px; margin-bottom: .4em; padding: 0; }
.hint { color: var(--muted); font-size: 14px; }
.opts { display: grid; gap: 10px; margin-bottom: 14px; }
.opts.row3 { grid-template-columns: repeat(3, 1fr); }
.opts.row4 { grid-template-columns: repeat(4, 1fr); }
.opt input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; text-align: center; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 14px 10px; font-weight: 600; cursor: pointer; }
.opt input:checked + span, .chip input:checked + span { border-color: var(--sage); background: color-mix(in srgb, var(--sage) 12%, var(--paper)); }
.opt input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip span { display: inline-block; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.field { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; font: 16px var(--sans); color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); }
.err { color: #b3261e; font-size: 14px; min-height: 1.2em; margin: 0 0 8px; }
.center { text-align: center; padding: 40px 0; }
.spinner { width: 44px; height: 44px; margin: 0 auto 16px; border: 4px solid var(--line); border-top-color: var(--sage); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.profile { padding-left: 18px; color: var(--muted); }
.pay { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-top: 16px; }
.price { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.price b { font-family: var(--serif); font-size: 28px; }
.check { list-style: none; padding: 0; margin: 0 0 16px; }
.check li { padding-left: 26px; position: relative; margin-bottom: 6px; font-size: 15px; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }

/* landing: pain/gain, bab, slider contoh halaman */
.pain, .gain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pain li, .gain li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 40px; position: relative; font-size: 15px; }
.pain li::before, .gain li::before { position: absolute; left: 14px; top: 11px; font-weight: 700; }
.pain li::before { content: "✕"; color: var(--accent); }
.gain li::before { content: "✓"; color: var(--sage); }
.chapters { padding-left: 22px; margin: 0 0 18px; display: grid; gap: 4px; font-weight: 600; }
.chapters li::marker { color: var(--accent); font-weight: 700; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-height: 280px; }
.slide .pg { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5em; }
.slide h3 { font-size: 22px; }
.slide ul { padding-left: 18px; margin: 0; font-size: 14px; display: grid; gap: 6px; }
.slide .words { padding: 0; }
.slide .ar, .namecard .ar { color: var(--sage); font-size: 18px; margin: 0 6px; }
.slide-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; font-weight: 600; font-size: 14px; }
.namecard { border: 2px solid var(--sage); border-radius: 16px; padding: 18px; text-align: center; display: grid; gap: 4px; background: var(--bg); break-inside: avoid; margin-bottom: 12px; }
.namecard b { font-family: var(--serif); font-size: 22px; }
.namecard i { color: var(--muted); font-size: 14px; }

/* paywall: nama gratis + nama terkunci */
.rep-name.free { border: 2px solid var(--sage); margin-top: 8px; }
.locked { position: relative; display: grid; gap: 8px; margin: 4px 0 6px; }
.ghost { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: grid; gap: 2px; filter: blur(5px); user-select: none; }
.ghost .num { font-size: 12px; font-weight: 700; color: var(--accent); }
.ghost b { font-family: var(--serif); font-size: 20px; }
.ghost i { color: var(--muted); font-size: 14px; }
.lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; font-weight: 700; font-size: 16px; }
.center-note { text-align: center; margin: 8px 0 0; }

/* report */
.rep-name { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; break-inside: avoid; }
.rep-name h3 { font-size: 24px; margin-bottom: .2em; }
.rep-name .num { font-size: 12px; font-weight: 700; color: var(--accent); }
.words { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 4px; font-size: 15px; }
.words .ar { color: var(--sage); font-size: 18px; margin: 0 6px; }
.top3 { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.top3 span { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.pick, .announce { display: block; width: 100%; font: 15px var(--sans); color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.announce { line-height: 1.5; resize: vertical; }
.disclaimer { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 24px; }
/* profil nama keluarga (paywall + laporan) */
.tipe { color: var(--accent); margin-bottom: .2em; }
.bars { display: grid; gap: 10px; margin: 14px 0 6px; }
.barrow { display: grid; grid-template-columns: 96px 1fr 96px; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.barrow span:last-child { text-align: right; }
.barrow b { color: var(--ink); }
.track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--sage); border-radius: 99px; }
ul.ok, ul.no { list-style: none; padding: 0; }
ul.ok li, ul.no li { padding-left: 24px; position: relative; margin-bottom: 6px; }
ul.ok li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
ul.no li::before { content: "✕"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.profile-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 8px 0 16px; }
.profile-card h3 { font-size: 16px; margin: 14px 0 6px; font-family: var(--sans); }
.profile-card ul { margin: 0; font-size: 14px; }
.profile-card p { font-size: 15px; }

/* laporan A4: hanya saat dicetak */
#book { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .top, .noprint, main { display: none !important; }
  #book { display: block; }
  .a4 { width: 210mm; height: 297mm; overflow: hidden; padding: 20mm 20mm 24mm; position: relative; break-after: page; font-size: 12.5pt; line-height: 1.55; }
  .a4:last-child { break-after: auto; }
  .a4 h1 { font-size: 34pt; }
  .a4 h2 { font-size: 24pt; }
  .a4 h3 { font-family: var(--sans); font-size: 10.5pt; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 4px; }
  .a4 .eyebrow { font-size: 10pt; margin-bottom: 1em; }
  .a4 .bars { gap: 16px; margin: 20px 0 10px; }
  .a4 .barrow { grid-template-columns: 150px 1fr 150px; font-size: 11pt; }
  .a4 .track { height: 12px; }
  .a4 .muted { color: var(--muted); }
  .pfoot { position: absolute; bottom: 10mm; left: 18mm; right: 18mm; font-size: 8.5pt; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; margin: 0; }
  .cover { display: flex; flex-direction: column; justify-content: center; background: var(--soft); text-align: center; }
  .cover h1 { font-size: 40pt; margin-bottom: .2em; }
  .cover .fam { font-family: var(--serif); font-size: 20pt; color: var(--accent); }
  .cover .date { color: var(--muted); margin-top: 24px; }
  .cover .brand { position: absolute; bottom: 18mm; left: 0; right: 0; font-family: var(--serif); font-weight: 700; font-size: 14pt; }
  .toc { padding-left: 20px; font-size: 13pt; display: grid; gap: 8px; }
  .toc li span { display: inline-block; width: 85%; border-bottom: 1px dotted var(--line); }
  .favbox { border: 1.5px solid var(--sage); border-radius: 16px; padding: 22px 24px; margin-bottom: 20px; break-inside: avoid; }
  .favbox h2 { font-size: 26pt; }
  .favbox .num, .name .num { font-size: 10pt; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
  .name h1 { font-size: 36pt; margin: 6px 0 4px; }
  .ar.big { font-size: 26pt; color: var(--sage); text-align: left; margin: 0 0 10px; }
  .cmp td, .cmp th { padding: 10px 8px !important; }
  .words-t td { padding: 7px 8px !important; }
  .words-t, .cmp { width: 100%; border-collapse: collapse; margin: 6px 0 4px; }
  .words-t td, .cmp td, .cmp th { border-bottom: 1px solid var(--line); padding: 6px 8px; vertical-align: top; text-align: left; }
  .words-t td.ar { color: var(--sage); font-size: 14pt; white-space: nowrap; }
  .cmp th { font-size: 9pt; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .score td:nth-child(n+2) { color: var(--muted); letter-spacing: 2px; white-space: nowrap; }
  .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
  .grid3 div { background: var(--soft); border-radius: 10px; padding: 8px 10px; }
  .grid3 span { display: block; font-size: 8.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .lines i { display: block; height: 11mm; border-bottom: 1px solid var(--line); }
  ul.spaced li { margin-bottom: 8px; }
  ul.check-p { list-style: none; padding: 0; }
  ul.check-p li { padding-left: 28px; position: relative; margin-bottom: 10px; }
  ul.check-p li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 3px; }
  .namecard.cut { border: 1.5px dashed var(--muted); padding: 36px 24px; margin-bottom: 22px; gap: 8px; }
  .namecard.cut b { font-size: 30pt; }
  .namecard.cut .ar { font-size: 22pt; }
  .announce-p { white-space: pre-wrap; font: 11.5pt/1.6 var(--sans); background: var(--soft); border-radius: 12px; padding: 16px; }
  .brand.end { text-align: center; font-family: var(--serif); font-weight: 700; margin-top: 24px; }
}

/* downsell isi-sama: harga coret + label diskon */
.dprice { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0 14px; }
.dprice s { color: var(--muted); font-weight: 600; font-size: 18px; }
.dprice b { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--sage); }
.badge { background: #f2c14e; color: #3b2a22; font-weight: 800; font-size: 14px; border-radius: 8px; padding: 5px 9px; }
/* QRIS di halaman */
.qamt { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--accent); margin: 4px 0 6px; }
.qimg { display: block; width: 100%; max-width: 280px; height: auto; aspect-ratio: 1; margin: 16px auto; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px; }
.qsteps { padding-left: 20px; font-size: 15px; display: grid; gap: 6px; }
.qwait { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 14px 0; }
.qwait .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); animation: qpulse 1.2s infinite; flex: none; }
.qwait.ok { color: var(--sage); font-weight: 700; }
@keyframes qpulse { 50% { opacity: .25; } }
