/* Pastoral Care — kertas off-white, pensil warna pastel. Satu tema terang (sengaja tidak mengikuti mode gelap).
   Layout: satu kolom di ponsel, rel navigasi kiri + layar penuh di desktop. */
:root {
  --paper: #F8F7F3;      /* off-white */
  --paper-2: #FFFFFE;    /* kartu */
  --ink: #3B3632;        /* teks utama, coklat grafit */
  --ink-soft: #6E6761;
  --graphite: #57504A;   /* garis pensil */
  --line: #E8E4DC;
  --rose: #F3C6C4;
  --peach: #F8D5B4;
  --butter: #F6E7A8;
  --mint: #CFE6D2;
  --sage: #B6D4BB;
  --sky: #C9DEF0;
  --lavender: #DCD2EE;
  --accent: #B5535F;     /* pensil merah tua untuk aksi utama */
  --accent-ink: #FFFFFF;
  --focus: #6A86B8;
  --shadow: 0 1px 0 rgba(59,54,50,.05), 0 6px 18px -10px rgba(59,54,50,.28);

  --f-hand: 'Kalam', 'Comic Neue', 'Segoe Print', cursive;
  --f-read: 'Literata', Georgia, 'Times New Roman', serif;
  --f-ui: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --nav-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(110,100,90,.05) 1px, transparent 1.2px);
  background-size: 5px 5px;
}
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-hand); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.muted { color: var(--ink-soft); }
.eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.hand { font-family: var(--f-hand); }
.read { font-family: var(--f-read); font-size: 1.06rem; line-height: 1.75; }

/* Shell */
.app { max-width: 640px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom, 0px)); min-height: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-family: var(--f-hand); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.brand-sub { font-size: .72rem; color: var(--ink-soft); letter-spacing: .04em; }
.icon-btn { border: 1.5px solid var(--line); background: var(--paper-2); border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }

.view { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; animation: fade .25s ease; }
@keyframes fade { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } * { scroll-behavior: auto !important; } }

/* Bottom nav */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper-2); border-top: 1.5px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.nav ul { list-style: none; margin: 0 auto; padding: 0 6px; max-width: 640px; display: grid; grid-template-columns: repeat(6, 1fr); height: var(--nav-h); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; text-decoration: none; color: var(--ink-soft); font-size: .68rem; font-weight: 700; min-width: 0; }
.nav a svg { width: 26px; height: 26px; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] .nav-dot { background: var(--accent); }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; }

/* Cards & buttons */
.card { background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.wash { border-radius: var(--radius); padding: 18px; position: relative; }
.wash-sky { background: color-mix(in srgb, var(--sky) 55%, var(--paper-2)); }
.wash-mint { background: color-mix(in srgb, var(--mint) 55%, var(--paper-2)); }
.wash-rose { background: color-mix(in srgb, var(--rose) 50%, var(--paper-2)); }
.wash-peach { background: color-mix(in srgb, var(--peach) 50%, var(--paper-2)); }
.wash-butter { background: color-mix(in srgb, var(--butter) 55%, var(--paper-2)); }
.wash-lavender { background: color-mix(in srgb, var(--lavender) 55%, var(--paper-2)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--graphite); background: var(--paper-2); color: var(--ink); font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--paper); border: 1.2px solid var(--line); }
.chip-debated { background: color-mix(in srgb, var(--butter) 60%, var(--paper-2)); border-color: transparent; }

/* Home */
.hero { display: grid; gap: 12px; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero h1 { margin-top: -4px; }
.greet { font-family: var(--f-hand); font-size: 1.15rem; color: var(--ink-soft); }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: grid; gap: 6px; text-decoration: none; color: var(--ink); align-content: start; }
.tile svg { height: 78px; width: auto; justify-self: start; }
.tile strong { font-family: var(--f-hand); font-size: 1.25rem; }
.tile span { font-size: .86rem; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.split svg { width: 110px; height: auto; }
.verse-quote { font-family: var(--f-read); font-size: 1.1rem; line-height: 1.6; }
.ref-link { background: none; border: 0; padding: 0; font-weight: 800; color: var(--accent); cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

/* Bible reader */
.reader-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); padding-block: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.picker-btn { font-family: var(--f-hand); font-size: 1.3rem; font-weight: 700; border: 1.5px solid var(--graphite); background: var(--paper-2); border-radius: 12px; padding: 4px 14px; cursor: pointer; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper-2); }
.seg button { border: 0; background: transparent; padding: 8px 12px; font-weight: 800; font-size: .82rem; cursor: pointer; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--sky); color: var(--ink); }
.notice { font-size: .88rem; border-radius: 12px; padding: 10px 14px; background: color-mix(in srgb, var(--butter) 55%, var(--paper-2)); }
.chapter h2 { margin-bottom: 8px; }
.verses { font-family: var(--f-read); line-height: 1.85; font-size: calc(1.05rem * var(--fs, 1)); }
.v { cursor: pointer; border-radius: 4px; padding: 1px 0; }
.v sup { font-family: var(--f-ui); font-size: .62em; font-weight: 800; color: var(--ink-soft); margin-right: 3px; }
.v.sel { background: color-mix(in srgb, var(--sky) 70%, transparent); }
.v.hl-butter { background: color-mix(in srgb, var(--butter) 80%, transparent); }
.v.hl-mint { background: color-mix(in srgb, var(--mint) 80%, transparent); }
.v.hl-rose { background: color-mix(in srgb, var(--rose) 80%, transparent); }
.v-missing { color: var(--ink-soft); font-style: italic; }
.chapter-nav { display: flex; justify-content: space-between; gap: 10px; }
.jump { display: flex; gap: 8px; }
.jump input { flex: 1; min-width: 0; }
.input, .textarea { width: 100%; border: 1.5px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 10px 12px; }
.textarea { min-height: 84px; resize: vertical; }
label.lbl { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 6px; }

/* Sheet (bottom drawer) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(30,25,22,.4); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 82vh; overflow: auto; background: var(--paper-2); border-radius: 20px 20px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px)); max-width: 640px; margin: 0 auto; box-shadow: 0 -10px 30px -10px rgba(0,0,0,.35); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.book-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.book-list button, .ch-grid button { border: 1.2px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 10px; text-align: left; cursor: pointer; font-weight: 700; font-size: .9rem; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.ch-grid button { text-align: center; }
.testament { margin: 14px 0 8px; }
.popup-verses { font-family: var(--f-read); line-height: 1.75; }

/* Quiz */
.progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--sage); border-radius: 999px; transition: width .3s; }
.scenario { font-family: var(--f-read); font-size: 1.18rem; line-height: 1.6; }
.options { display: grid; gap: 10px; }
.opt { text-align: left; border: 1.5px solid var(--line); background: var(--paper-2); border-radius: 14px; padding: 14px 16px; cursor: pointer; font-weight: 600; line-height: 1.4; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.opt:hover { border-color: var(--graphite); }
.opt[aria-pressed="true"] { border-color: var(--graphite); background: color-mix(in srgb, var(--mint) 60%, var(--paper-2)); }
.opt .ltr { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--graphite); display: grid; place-items: center; font-family: var(--f-hand); font-weight: 700; }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.likert button { border: 1.5px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 10px 4px; cursor: pointer; font-size: .74rem; font-weight: 700; line-height: 1.2; display: grid; gap: 4px; justify-items: center; }
.likert button b { font-family: var(--f-hand); font-size: 1.3rem; }
.likert button[aria-pressed="true"] { border-color: var(--graphite); background: color-mix(in srgb, var(--sky) 70%, var(--paper-2)); }
.choice-list { display: grid; gap: 8px; }

/* Result / report */
.report { display: grid; gap: 22px; }
.report-cover { display: grid; gap: 10px; }
.report-cover .pola-art svg { width: 130px; height: 130px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 96px 1fr 44px; gap: 10px; align-items: center; font-weight: 700; font-size: .92rem; }
.bar-track { height: 16px; border-radius: 999px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; }
.fill-sky { background: var(--sky); } .fill-mint { background: var(--mint); } .fill-peach { background: var(--peach); } .fill-rose { background: var(--rose); } .fill-lavender { background: var(--lavender); }
.gift { display: grid; gap: 10px; }
.gift-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.gift-rank { font-family: var(--f-hand); font-size: 2rem; line-height: 1; color: var(--accent); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-col > div { min-width: 0; }
ul.tick { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.gift-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gift-table td { padding: 7px 4px; border-bottom: 1px dashed var(--line); }
.gift-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }
.plan { display: grid; gap: 10px; }
.plan-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.plan-num { font-family: var(--f-hand); font-size: 1.5rem; line-height: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--butter); }
.disclaimer { font-size: .86rem; color: var(--ink-soft); border-top: 1.5px dashed var(--line); padding-top: 12px; }

/* Devotion & prayer */
.dev-head { display: grid; gap: 6px; }
.dev-body { display: grid; gap: 14px; }
.reflect { border-left: 4px solid var(--sage); padding-left: 14px; }
.prayer-text { font-family: var(--f-hand); font-size: 1.22rem; line-height: 1.5; }
.archive { display: grid; gap: 8px; }
.archive button { display: grid; grid-template-columns: 1fr auto; gap: 8px; text-align: left; border: 1.2px solid var(--line); background: var(--paper-2); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.archive button[aria-current="true"] { border-color: var(--graphite); }
.steps { display: grid; gap: 10px; counter-reset: s; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.journal { display: grid; gap: 10px; }
.jitem { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.jitem.answered .jtext { text-decoration: line-through; text-decoration-color: var(--sage); text-decoration-thickness: 2px; }
.jitem input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--sage); margin-top: 2px; }
.jtext { min-width: 0; overflow-wrap: anywhere; }
.jdate { font-size: .76rem; color: var(--ink-soft); }
.timer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.timer-face { font-family: var(--f-hand); font-size: 2.4rem; font-variant-numeric: tabular-nums; min-width: 4ch; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; z-index: 60; max-width: calc(100% - 32px); }
.install { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot { font-size: .78rem; color: var(--ink-soft); text-align: center; padding-block: 8px; }

@media (max-width: 420px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile { grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
  .tile svg { height: 64px; grid-row: span 2; }
  .two-col { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 84px 1fr 40px; }
  .likert button span { display: none; }
  .split svg { width: 84px; }
}

/* ---- PDF report (render offscreen at A4 width) ---- */
.pdf-root { position: fixed; left: -10000px; top: 0; width: 794px; background: #F8F7F3; color: #3E3631; font-family: var(--f-ui); }
.pdf-page { width: 794px; min-height: 1123px; padding: 64px 70px 80px; position: relative; background: #F8F7F3; }
.pdf-root .pdf-page { --paper: #F8F7F3; --paper-2: #FFFDF8; --ink: #3E3631; --ink-soft: #6F655D; --graphite: #5B524C; --line: #E7DED0;
  --rose: #F3C6C4; --peach: #F8D5B4; --butter: #F6E7A8; --mint: #CFE6D2; --sage: #B6D4BB; --sky: #C9DEF0; --lavender: #DCD2EE; --accent: #B5535F; }
.pdf-page h1 { font-size: 44px; } .pdf-page h2 { font-size: 30px; margin-bottom: 10px; } .pdf-page h3 { font-size: 22px; }
.pdf-page p, .pdf-page li { font-size: 14.5px; line-height: 1.65; }
.pdf-cover { display: grid; align-content: center; gap: 18px; text-align: center; justify-items: center; }
.pdf-cover .pola-art svg { width: 220px; height: 220px; }
.pdf-section { display: grid; gap: 14px; margin-bottom: 26px; break-inside: avoid; }
/* html2canvas tidak mengenal color-mix(): pakai warna padat di PDF */
.pdf-root .wash-sky { background: #DDE9F5; } .pdf-root .wash-mint { background: #E1EFE2; } .pdf-root .wash-rose { background: #F8DEDC; }
.pdf-root .wash-peach { background: #FAE5D2; } .pdf-root .wash-butter { background: #F9F0CC; } .pdf-root .wash-lavender { background: #E9E3F4; }
.pdf-root .chip-debated { background: #F9F0CC; } .pdf-root .bar-track { background: #EFE8DC; } .pdf-root .card { box-shadow: none; }

/* =========================================================
   DESKTOP: layar penuh dengan rel navigasi di kiri
   ========================================================= */
.nav .nav-brand, .nav .nav-acct, .nav .nav-prod { display: none; }
@media (min-width: 900px) {
  :root { --rail: 232px; }
  .app { max-width: none; margin: 0; padding: 8px clamp(28px, 4vw, 64px) 56px calc(var(--rail) + clamp(28px, 4vw, 64px)); }
  .topbar { display: none; }
  .view { padding-top: 28px; gap: 28px; }

  .nav { top: 0; right: auto; width: var(--rail); border-top: 0; border-right: 1.5px solid var(--line); padding: calc(24px + env(safe-area-inset-top, 0px)) 14px 24px; display: flex; flex-direction: column; gap: 28px; }
  .nav .nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 0 8px; }
  .nav-brand svg { width: 44px; height: 44px; flex: none; }
  .nav-brand b { font-family: var(--f-hand); font-size: 1.35rem; line-height: 1; }
  .nav-brand small { color: var(--ink-soft); font-size: .72rem; }
  .nav ul { display: flex; flex-direction: column; gap: 4px; height: auto; padding: 0; max-width: none; margin: 0; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 12px; height: auto; padding: 11px 14px; border-radius: 12px; font-size: .98rem; }
  .nav a svg { width: 24px; height: 24px; }
  .nav a:hover { background: color-mix(in srgb, var(--line) 55%, transparent); color: var(--ink); }
  .nav a[aria-current="page"] { background: color-mix(in srgb, var(--sky) 55%, var(--paper-2)); }
  .nav-dot { display: none; }
  .toast { bottom: 28px; left: calc(50% + var(--rail) / 2); }
  .sheet { left: var(--rail); max-width: 760px; }

  h1 { font-size: clamp(2.4rem, 3.6vw, 3.4rem); }

  /* Beranda */
  .view[data-view="home"] { display: grid; grid-template-columns: repeat(12, 1fr); }
  .view[data-view="home"] > * { grid-column: 1 / -1; min-width: 0; }
  .view[data-view="home"] > a.card { grid-column: 1 / span 5; }
  .view[data-view="home"] > .tile-grid { grid-column: 6 / -1; grid-template-columns: 1fr 1fr; }
  .view[data-view="home"] > .install { grid-column: 1 / -1; }

  /* Alkitab: dua kolom seperti Alkitab cetak */
  .view[data-view="alkitab"] .reader-bar { padding-block: 14px; }
  .view[data-view="alkitab"] .chapter { padding: 32px clamp(24px, 3vw, 48px); }
  .view[data-view="alkitab"] .chapter h2 { font-size: 2.2rem; }
  .view[data-view="alkitab"] .chapter-nav, .view[data-view="alkitab"] .jump { max-width: none; }

  /* Peta Pelayanan */
  .view[data-view="peta"] .options { grid-template-columns: 1fr 1fr; }
  .view[data-view="peta"] .scenario { font-size: 1.5rem; max-width: 40em; }
  .view[data-view="peta"] .likert { max-width: 820px; }
  .view[data-view="peta"] .likert button span { display: block; }
  .view[data-view="peta"] > .split { grid-template-columns: 1fr 340px; }
  .view[data-view="peta"] > .split svg { width: 340px; }

  /* Laporan */
  .report { grid-template-columns: repeat(6, 1fr); }
  .report > * { grid-column: 1 / -1; min-width: 0; }
  .report > .card:first-child .report-cover { grid-template-columns: auto 1fr; column-gap: 32px; align-items: center; }
  .report > .card:first-child .pola-art { grid-row: 1 / span 4; }
  .report > .sec-map, .report > .sec-pola, .report > .sec-plan, .report > .sec-confirm { grid-column: span 3; }
  .report > .gift { grid-column: span 2; align-content: start; }
  .report > .gift .two-col { grid-template-columns: 1fr; }
  .report.has-sign > .sec-table { grid-column: span 4; }
  .report > .sec-sign { grid-column: span 2; }

  /* Renungan: artikel + arsip di samping */
  .view[data-view="renungan"] { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 48px; align-items: start; }
  .view[data-view="renungan"] > * { grid-column: 1; min-width: 0; max-width: 820px; }
  .view[data-view="renungan"] > .dev-archive { grid-column: 2; grid-row: 1 / span 7; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }

  /* Doa: panduan di kiri, jurnal di kanan */
  .view[data-view="doa"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .view[data-view="doa"] > * { grid-column: 1; min-width: 0; }
  .view[data-view="doa"] > .split { grid-column: 1 / -1; }
  .view[data-view="doa"] > .journal { grid-column: 2; grid-row: 2 / span 3; }
}
@media (min-width: 1200px) {
  .verses { column-count: 2; column-gap: 56px; column-rule: 1.5px dashed var(--line); }
  .view[data-view="home"] > .tile-grid { grid-template-columns: repeat(4, 1fr); grid-column: 1 / -1; }
  .view[data-view="home"] > a.card { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .report > .gift { grid-column: 1 / -1; }
  .report > .gift .two-col { grid-template-columns: 1fr 1fr; }
}

/* ---------- Akun & login Google ---------- */
.acct-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--paper-2); border-radius: 999px; padding: 4px 12px 4px 4px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: .86rem; min-height: 40px; }
.acct-btn.out { padding: 6px 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--sky); display: grid; place-items: center; font-family: var(--f-hand); font-weight: 700; flex: none; }
.avatar.lg { width: 72px; height: 72px; font-size: 2rem; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid #747775; background: #FFFFFF; color: #1F1F1F; font-family: 'Roboto', var(--f-ui); font-weight: 600; font-size: .98rem; cursor: pointer; }
.gbtn:hover { background: #F7F8F8; }
.gbtn svg { width: 20px; height: 20px; }
.gbtn[disabled] { opacity: .6; cursor: progress; }
.acct-card { display: grid; gap: 16px; }
.acct-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acct-head > div { min-width: 0; }
.acct-head .email { color: var(--ink-soft); overflow-wrap: anywhere; }
.sync { font-size: .86rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .nav .nav-acct { display: flex; flex-direction: row; justify-content: flex-start; margin-top: auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); background: var(--paper-2); font-weight: 800; font-size: .9rem; min-width: 0; }
  .nav-acct span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-acct[aria-current="page"] { border-color: var(--graphite); }
  .view[data-view="akun"] { max-width: 760px; }
}

/* ---------- Hero ilustrasi (Higgsfield, pensil warna) ---------- */
.hero-photo { --hero-bg: #F9F5E9; position: relative; margin-inline: -16px; background: var(--hero-bg); overflow: hidden; display: grid; }
.hero-copy { position: relative; z-index: 1; padding: 26px 22px 4px; display: grid; gap: 8px; text-align: center; justify-items: center; }
.hero-copy .greet { font-size: 1.1rem; }
.hero-copy h1 { max-width: 15ch; font-size: clamp(2rem, 8.4vw, 2.7rem); }
.hero-copy .btn { margin-top: 6px; }
.hero-img { position: relative; overflow: hidden; }
.hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 74% 60%;
  animation: breathe 18s ease-in-out infinite alternate; transform-origin: 70% 70%; }
.hero-img::before { content: ""; position: absolute; inset: 0 0 auto; height: 22%; z-index: 1; background: linear-gradient(var(--hero-bg), transparent); pointer-events: none; }
.hero-img::after { content: ""; position: absolute; inset: auto 0 0; height: 12%; z-index: 1; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero-img img { animation: none; } }
@media (min-width: 900px) {
  .hero-photo { margin-inline: 0; border-radius: 24px; border: 1.5px solid var(--line); display: block; }
  .hero-img img { aspect-ratio: 1344 / 752; object-position: center; }
  .hero-img::before, .hero-img::after { display: none; }
  .hero-copy { position: absolute; inset: 0 auto 0 0; width: 48%; padding: 0 0 0 clamp(32px, 4vw, 64px); text-align: left; justify-items: start; align-content: center; gap: 12px; }
  .hero-copy h1 { font-size: clamp(2.3rem, 3.3vw, 3.6rem); max-width: 15ch; }
}

.id-wait { display: grid; gap: 12px; padding-top: 6px; max-width: 60ch; }

/* ---------- Jelajahi ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.topic { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--ink); border-radius: 16px; padding: 10px 10px 16px; min-height: 120px; transition: transform .2s; }
.topic > strong, .topic > span:not(.topic-thumb) { padding-inline: 6px; }
.topic-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--paper-2) 55%, transparent); margin-bottom: 6px; }
.topic-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.topic:hover .topic-thumb img { transform: scale(1.05); }
.topic-thumb b { font-family: var(--f-hand); font-size: 3.4rem; font-weight: 700; color: var(--ink); opacity: .35; }
.art-cover { display: block; width: 100%; height: auto; aspect-ratio: 800 / 603; object-fit: contain; border-radius: 14px; margin-bottom: 6px; }
.topic:hover { transform: translateY(-3px) rotate(-.5deg); }
.topic strong { font-family: var(--f-hand); font-size: 1.4rem; line-height: 1.1; }
.topic span { font-size: .86rem; color: var(--ink-soft); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ink-soft); text-decoration: none; }
.back-link svg { width: 18px; height: 18px; }
.art-head { display: grid; gap: 8px; padding: 24px; }
.art-hook { font-family: var(--f-hand); font-size: 1.3rem; }
.article { display: grid; gap: 26px; max-width: 760px; }
.article > section { display: grid; gap: 12px; }
.article h2 { font-size: 1.5rem; }
.article p { font-family: var(--f-read); font-size: 1.04rem; line-height: 1.8; }
.article .muted { font-family: var(--f-ui); font-size: .84rem; line-height: 1.5; }
.verse-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.verse-chips .ref-link { background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; }
.art-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 1rem; }
.help-box { border: 2px solid var(--accent); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; background: var(--paper-2); }
.help-box p { font-family: var(--f-ui) !important; font-size: .95rem !important; line-height: 1.55 !important; }
.sources ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: .84rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.sources a { color: var(--accent); }
.art-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (min-width: 900px) { .view[data-view="jelajahi"] .topic-grid { grid-template-columns: repeat(5, 1fr); } }

/* Renungan di artikel Jelajahi */
.art-renungan { display: grid; gap: 12px; }
.art-renungan > p { font-family: var(--f-read, inherit); line-height: 1.75; }
.art-renungan h3 { font-family: var(--f-hand); font-size: 1.2rem; margin-top: 6px; }
.reflect-q { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.reflect-q li { font-family: var(--f-hand); font-size: 1.12rem; line-height: 1.45; }
.art-renungan .muted { font-size: .9rem; }

/* Ruang Pulih: produk */
.promo, .art-promo { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.promo img, .art-promo img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(60,40,60,.18); }
.promo strong, .art-promo strong { display: block; font-family: var(--f-hand); font-size: 1.6rem; line-height: 1.1; margin: 2px 0 4px; }
.promo span, .art-promo span { display: block; }
.promo .promo-go { margin-top: 6px; font-weight: 700; color: var(--accent); }
.art-promo { border: 2px dashed color-mix(in srgb, var(--ink, #3a3a3a) 22%, transparent); border-radius: 18px; padding: 14px 16px; }
.view > .promo { grid-column: 1 / -1; }
.shop-hero { display: grid; gap: 22px; align-items: center; }
.shop-cover img { width: min(300px, 78%); height: auto; display: block; margin: 0 auto; border-radius: 8px; box-shadow: 0 18px 40px rgba(60,40,60,.22); transform: rotate(-2deg); }
.shop-copy h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.shop-sub { font-size: 1.1rem; }
.shop-tag { font-size: 1.3rem; color: var(--accent); }
.shop-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.shop-price b { font-size: 1.8rem; } .shop-price s { opacity: .55; } .shop-price span { font-size: .85rem; opacity: .75; }
.shop-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }
.shop-cta .is-soon { opacity: .6; cursor: default; }
.shop-cta-end { justify-content: center; }
.shop-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.shop-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shop-previews figure { margin: 0; } .shop-previews img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(60,40,60,.15); }
.shop-previews figcaption { font-size: .8rem; text-align: center; margin-top: 6px; opacity: .8; }
.faq { border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); padding: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; } .faq p { margin-top: 6px; }
.view[data-view="ruang-pulih"] > * { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .shop-hero { grid-template-columns: 2fr 3fr; }
  .view[data-view="ruang-pulih"] { max-width: 1100px; }
}

/* Produk */
.top-acts { display: flex; align-items: center; gap: 8px; }
.prod-btn { font-weight: 800; text-decoration: none; color: var(--accent); padding: 8px 12px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.prod-btn[aria-current] { background: var(--accent); color: #fff; }
.prod-head { display: grid; gap: 8px; }
.prod-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.prod-tag { font-size: 1.3rem; color: var(--accent); }
.prod-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.prod { display: grid; gap: 8px; align-content: start; text-decoration: none; color: inherit; }
.prod strong { font-family: var(--f-hand); font-size: 1.7rem; line-height: 1; }
.prod-art { aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.prod-art img { width: 42%; height: auto; border-radius: 4px; box-shadow: 0 8px 20px rgba(60,40,60,.2); transform: rotate(-2deg); }
.prod-art svg { width: 56%; height: auto; }
.prod-badge { justify-self: start; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1.5px solid currentColor; }
.prod-badge.ok { color: #3F7A4E; } .prod-badge.soon { color: #8A5A9C; } .prod-badge.free { color: #2F6E8E; }
.prod-go { font-weight: 800; color: var(--accent); }
.view[data-view="produk"] > * { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .nav .nav-prod { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 800; font-size: .95rem; color: var(--accent); border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
  .nav .nav-prod svg { width: 20px; height: 20px; }
  .nav .nav-prod[aria-current] { background: color-mix(in srgb, var(--accent) 12%, var(--paper-2)); border-style: solid; }
}

/* ilustrasi pensil warna untuk pola hasil */
.pola-art img { display: none; }
.pola-art.has-img img { display: block; width: 168px; height: 168px; object-fit: cover; border-radius: 22px; box-shadow: 0 10px 26px rgba(70,50,40,.18); border: 4px solid #fff; }
.pola-art.has-img svg { display: none !important; }
.pdf-cover .pola-art.has-img img { width: 260px; height: 260px; border-radius: 28px; }
