/* Teman Umrah
   Ide pokok: perjalanan dari rumah sampai Makkah dan Madinah. Satu elemen
   berani: peta perjalanan dalam bingkai lengkung serambi Nabawi. Nuansa
   Indonesia lewat motif kawung yang samar. Sisanya tenang. */


@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.13d1b429e990.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.cc2090cafea0.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f4f6f3;        /* marmer lantai Haram */
  --surface: #ffffff;
  --sand: #dce8e1;         /* teduh payung Nabawi */
  --ink: #141a18;          /* kiswah */
  --ink-soft: #4b5753;
  --line: #c9d3ce;
  --passport: #0f5a47;     /* hijau Nabawi */
  --passport-ink: #ffffff;
  --passport-soft: #dcebe4;
  --gold: #a87d2f;         /* benang emas, hanya untuk detail */
  --stamp: #7b4a2b;        /* soga batik: cap "selesai" */
  --stamp-soft: #f2e7dc;
  --kawung: rgba(15, 90, 71, 0.07);
  --warn: #8a4b0f;
  --warn-soft: #f6ead8;
  --focus: #2a6df4;
  --error: #b42318;

  /* Plus Jakarta Sans: huruf buatan Jakarta, sama dengan Reels kami. Satu keluarga untuk menu dan bacaan. */
  --font-ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-read: var(--font-ui);

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.4rem + 1.9vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);

  --gutter: clamp(16px, 3vw, 32px);
  --measure: 65ch;
  --radius-s: 6px;
  --radius-m: 12px;
  /* Ubin kawung (batik): empat kelopak lonjong di sekitar titik tengah. */
  /* Footer: hijau Nabawi pekat dengan benang emas, di kedua mode. */
  --foot-bg: #0c4a3b;
  --foot-ink: #eef4f0;
  --foot-soft: #b7cdc4;
  --foot-line: rgba(238, 244, 240, 0.16);
  --foot-gold: #dcb872;
  --foot-kawung: rgba(220, 184, 114, 0.07);
  --kawung-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cellipse cx='22' cy='11' rx='5.5' ry='9'/%3E%3Cellipse cx='22' cy='33' rx='5.5' ry='9'/%3E%3Cellipse cx='11' cy='22' rx='9' ry='5.5'/%3E%3Cellipse cx='33' cy='22' rx='9' ry='5.5'/%3E%3Ccircle cx='22' cy='22' r='1.8' fill='%23000'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1311;        /* malam di Haram */
    --surface: #121d1a;
    --sand: #1b2a25;
    --ink: #e6ece8;
    --ink-soft: #a5b3ae;
    --line: #2a3a35;
    --passport: #5fc2a4;
    --passport-ink: #07201a;
    --passport-soft: #15302a;
    --gold: #d7b06a;
    --stamp: #e0b97a;
    --stamp-soft: #2b2416;
    --kawung: rgba(215, 176, 106, 0.07);
    --warn: #f0b878;
    --warn-soft: #33260f;
    --focus: #8ab4ff;
    --error: #ff9c8f;
    --foot-bg: #0f2620;
    --foot-soft: #a5b8b0;
    --foot-line: rgba(230, 236, 232, 0.12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1311;        /* malam di Haram */
  --surface: #121d1a;
  --sand: #1b2a25;
  --ink: #e6ece8;
  --ink-soft: #a5b3ae;
  --line: #2a3a35;
  --passport: #5fc2a4;
  --passport-ink: #07201a;
  --passport-soft: #15302a;
  --gold: #d7b06a;
  --stamp: #e0b97a;
  --stamp-soft: #2b2416;
  --kawung: rgba(215, 176, 106, 0.07);
  --warn: #f0b878;
  --warn-soft: #33260f;
  --focus: #8ab4ff;
  --error: #ff9c8f;
  --foot-bg: #0f2620;
  --foot-soft: #a5b8b0;
  --foot-line: rgba(230, 236, 232, 0.12);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h, 64px) + 64px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--passport); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; }

/* ---------- Header ---------- */
.wordmark {
  font-weight: 800; font-size: var(--step-1); letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; margin-right: auto;
  display: inline-flex; align-items: center; gap: 8px;
}
.wordmark .logo-mark { width: 30px; height: 30px; flex: none; }
.wordmark-text { display: grid; line-height: 1.1; }
.wordmark-text small { font-size: 0.75rem; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.theme-toggle svg { width: 18px; height: 18px; }

.site-announce {
  font-size: var(--step--1); font-weight: 600; text-align: center;
  background: var(--passport); color: var(--passport-ink); padding: 8px 0;
}
.site-announce a { color: inherit; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--passport);
  background: var(--passport); color: var(--passport-ink); font: 700 var(--step-0)/1.2 var(--font-ui);
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--passport); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: var(--step--1); }
.btn-stamp { background: var(--stamp); border-color: var(--stamp); color: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.form { display: grid; gap: 16px; max-width: 420px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .help { font-size: var(--step--1); color: var(--ink-soft); margin-top: 4px; }
.field ul.errorlist, .form-error { color: var(--error); font-size: var(--step--1); margin: 6px 0 0; padding: 0; list-style: none; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); font: inherit;
}
input:focus, select:focus { border-color: var(--passport); outline: none; box-shadow: 0 0 0 3px var(--passport-soft); }

/* ---------- Messages ---------- */
.messages { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.messages li { padding: 12px 14px; border-radius: var(--radius-s); background: var(--passport-soft); border-left: 4px solid var(--passport); }
.messages li.error { background: var(--warn-soft); border-left-color: var(--warn); }

/* ---------- Page structure ---------- */
main { padding-bottom: 64px; }
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: var(--step-3); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 10px; text-wrap: balance; }
.page-head p { color: var(--ink-soft); margin: 0; max-width: 56ch; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: var(--step-2); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.section { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 52ch; text-wrap: pretty; }

/* ---------- Hero ----------
   Pita hijau Nabawi selebar layar: satu-satunya bagian gelap di beranda. Peta perjalanan
   menggambar rutenya sekali saat halaman dibuka; sisanya tenang. */
.hero-band {
  position: relative; isolation: isolate; overflow: hidden; color: #eef6f2;
  background:
    radial-gradient(800px 520px at 85% 0%, rgba(95, 194, 164, .28), transparent 62%),
    radial-gradient(620px 420px at 0% 100%, rgba(220, 184, 114, .14), transparent 60%),
    linear-gradient(165deg, #0d5444 0%, #08382e 60%, #062b24 100%);
}
.hero-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23dcb872' stroke-opacity='.07' stroke-width='1.5'%3E%3Cellipse cx='28' cy='14' rx='7' ry='12'/%3E%3Cellipse cx='28' cy='42' rx='7' ry='12'/%3E%3Cellipse cx='14' cy='28' rx='12' ry='7'/%3E%3Cellipse cx='42' cy='28' rx='12' ry='7'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask: linear-gradient(100deg, transparent 30%, #000 75%); mask: linear-gradient(100deg, transparent 30%, #000 75%);
}
.hero { padding-block: clamp(36px, 7vw, 88px) clamp(28px, 4vw, 48px); display: grid; gap: 28px; }
@media (max-width: 600px) { .hero .lede { font-size: 1.0625rem; } .hero .btn-row .btn { flex: 1 1 100%; } }
.hero h1 {
  font-size: var(--step-4); line-height: 1; letter-spacing: -0.035em; word-spacing: 0.06em; font-weight: 800;
  margin: 0 0 20px; max-width: 12ch; color: #fff;
}
.hero .lede { margin: 0 0 20px; color: #c4dad1; max-width: 48ch; }
/* Pembeda dari travel: orang sering mengira Teman Umrah menjual paket. */
.hero-not-travel {
  margin: 0 0 28px; padding-left: 12px; border-left: 3px solid var(--glass-gold);
  font-size: var(--step--1); color: #b7cdc4; max-width: 52ch;
}
.hero-not-travel strong { color: #fff; }
.hero-band .btn { background: var(--glass-gold); border-color: var(--glass-gold); color: #10261f; }
.hero-band .btn:hover { filter: brightness(1.07); }
.hero-band .btn-quiet { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.hero-band .btn-quiet:hover { background: rgba(255, 255, 255, .08); filter: none; }
.hero-band .hero-price { color: #a3bfb5; }
.hero-band :focus-visible { outline-color: var(--glass-gold); }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}

/* Tiga tempat di kaki hero: halte bernomor di satu garis putus-putus emas. */
.places { padding-bottom: clamp(32px, 5vw, 56px); }
.hero-band .city-strip { counter-reset: halte; position: relative; gap: 22px; padding-top: 26px; border-top: 1px dashed rgba(220, 184, 114, .45); }
.hero-band .city-strip li { counter-increment: halte; position: relative; padding-left: 44px; border: 0; }
.hero-band .city-strip li::before {
  content: counter(halte); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: #0a3f33; border: 1.5px solid var(--glass-gold); color: var(--glass-gold); font-weight: 800; font-size: 0.875rem;
}
.hero-band .city-strip strong { color: #fff; }
.hero-band .city-strip span { color: #a9c2b8; font-size: var(--step--1); }
.section-first { border-top: 0; }

/* Passport stamp: muncul saat bab selesai. */
.stamp {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  border: 3px double var(--stamp); color: var(--stamp); font-weight: 800; font-size: 0.72rem; line-height: 1.05;
  text-align: center; transform: rotate(-12deg); flex: none;
  background: radial-gradient(circle, transparent 60%, var(--stamp-soft) 61%, transparent 75%);
}
.stamp-sm { width: 44px; height: 44px; font-size: 0.6rem; border-width: 2px; position: absolute; right: 0; top: 4px; }
.stamp.lands { animation: stamp-land 420ms cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp-land {
  from { transform: rotate(-30deg) scale(1.8); opacity: 0; }
  to { transform: rotate(-12deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .stamp.lands { animation: none; } }


.progress { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; font-size: var(--step--1); color: var(--ink-soft); }
.progress-bar { flex: 1; height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; max-width: 320px; }
.progress-bar span { display: block; height: 100%; background: var(--stamp); }

.points { display: grid; gap: 20px; margin: 0; }
.points dt { font-weight: 700; font-size: var(--step-1); }
.points dd { margin: 4px 0 0; color: var(--ink-soft); max-width: 52ch; }
@media (min-width: 760px) { .points { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- Chapter reading ---------- */
.chapter-head { padding: 28px 0 8px; }
.chapter-head .crumb { font-size: var(--step--1); color: var(--ink-soft); }
.chapter-head .crumb a { color: var(--ink-soft); }
.chapter-head h1 { font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.02em; margin: 6px 0 8px; }
.chapter-head p { color: var(--ink-soft); margin: 0; max-width: 56ch; }
.notice {
  margin: 20px 0; padding: 14px 16px; border-radius: var(--radius-s);
  background: var(--warn-soft); border-left: 4px solid var(--warn); max-width: var(--measure);
}
.notice p { margin: 0; }
.prose {
  font-family: var(--font-read); font-size: 1.0625rem; line-height: 1.7; max-width: var(--measure);
  margin-top: 24px;
}
.prose h2 { font-family: var(--font-ui); font-size: var(--step-1); margin: 2em 0 0.4em; letter-spacing: 0; }
.prose h3 { font-family: var(--font-ui); font-size: var(--step-0); margin: 1.4em 0 0.3em; letter-spacing: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.2em 0; padding-left: 16px; border-left: 3px solid var(--sand); color: var(--ink-soft); }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { border-collapse: collapse; font-family: var(--font-ui); font-size: var(--step--1); line-height: 1.4; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; }

/* Isi situs tidak bisa diseleksi untuk disalin; kolom isian tetap bisa. */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; }

/* Mode perjalanan (aplikasi + simpan offline) di halaman Kelas. */
.trip-card {
  display: flex; gap: 14px; align-items: flex-start; margin: 0 0 28px; padding: 16px 18px;
  max-width: var(--measure); background: var(--passport-soft); border-radius: var(--radius-m);
}
.trip-card[hidden], .trip-card [hidden] { display: none; }
.trip-icon { flex: none; width: 32px; height: 32px; color: var(--passport); margin-top: 2px; }
.trip-body { min-width: 0; }
.trip-body h2 { margin: 0 0 4px; font-size: var(--step-1); }
.trip-body p { margin: 0 0 12px; }
.trip-body p:last-child { margin-bottom: 0; }
.trip-note { font-size: var(--step--1); color: var(--ink-soft); }

.locked-cta {
  margin: 28px 0; padding: 20px; max-width: var(--measure);
  border: 2px dashed var(--line); border-radius: var(--radius-m); background: var(--surface);
}
.locked-cta h2 { margin: 0 0 6px; font-size: var(--step-1); }
.locked-cta p { margin: 0 0 16px; color: var(--ink-soft); }

/* Lembar sumber: dibuat seperti dokumen resmi kecil. */
.sources {
  margin: 40px 0 0; max-width: var(--measure); background: var(--surface);
  border: 1px solid var(--line); border-top: 4px solid var(--passport); border-radius: var(--radius-s);
  padding: 16px 18px;
}
.sources h2 { font-size: var(--step-0); margin: 0 0 4px; }
.sources .checked { font-size: var(--step--1); color: var(--ink-soft); margin: 0 0 12px; }
.sources ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: var(--step--1); }
.sources .official { color: var(--passport); font-weight: 700; }
.sources .src-meta { color: var(--ink-soft); }
.review-line { font-size: var(--step--1); color: var(--ink-soft); margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }

.complete-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 32px 0 0; min-height: 72px; }
.chapter-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; max-width: var(--measure); font-size: var(--step--1); }
.chapter-nav a { text-decoration: none; font-weight: 600; max-width: 48%; }
.chapter-nav .next { margin-left: auto; text-align: right; }

/* ---------- Checklist ---------- */
.check-group { margin: 28px 0 0; max-width: var(--measure); }
.check-group h2 { font-size: var(--step-1); margin: 0 0 8px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.check-group h2 a { font-size: var(--step--1); font-weight: 600; }
.check-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.check-row { border-bottom: 1px solid var(--line); }
.check-row form { margin: 0; }
.check-btn {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; width: 100%;
  padding: 14px 4px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.check-box {
  width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--passport); display: grid; place-items: center;
  margin-top: 1px;
}
.check-box svg { width: 16px; height: 16px; opacity: 0; }
.is-checked .check-box { background: var(--passport); }
.is-checked .check-box svg { opacity: 1; color: var(--passport-ink); }
.is-checked .check-text { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1px; }
.check-note { display: block; font-size: var(--step--1); color: var(--ink-soft); margin-top: 2px; text-decoration: none; }
.check-static { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 4px; }
.hidden-count { font-size: var(--step--1); color: var(--ink-soft); padding: 10px 4px; }

/* ---------- Quiz ---------- */
.quiz { display: grid; gap: 28px; max-width: 640px; margin-top: 24px; }
.quiz fieldset { border: 0; margin: 0; padding: 0; }
.quiz legend { font-weight: 700; font-size: var(--step-1); line-height: 1.3; margin-bottom: 10px; padding: 0; }
.quiz legend span { color: var(--passport); margin-right: 6px; }
.choice { display: block; margin-bottom: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); cursor: pointer;
}
.choice input:checked + span { border-color: var(--passport); box-shadow: inset 0 0 0 1px var(--passport); background: var(--passport-soft); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.result-card { max-width: 640px; margin-top: 24px; }
.result-card h2 { font-size: var(--step-3); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.reasons { padding-left: 20px; color: var(--ink-soft); }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 380px; align-items: start; } }
.calc fieldset { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.calc legend { font-weight: 700; font-size: var(--step-1); margin-bottom: 8px; padding: 0; }
.calc .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc .unit { font-weight: 400; color: var(--ink-soft); font-size: var(--step--1); }
.calc-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px; position: sticky; top: 16px; }
.calc-result h2 { font-size: var(--step-1); margin: 0 0 12px; }
.calc-result table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.calc-result td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.calc-result td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.calc-total { display: grid; gap: 4px; margin-top: 16px; }
.calc-total .big { font-size: var(--step-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-total .idr { font-size: var(--step--1); color: var(--ink-soft); }
.verdict { margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--passport); font-weight: 600; }

/* ---------- Pricing ---------- */
.price-block { max-width: 520px; margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
.price { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.price-note { color: var(--warn); font-size: var(--step--1); margin: 4px 0 16px; }
.includes { padding-left: 20px; margin: 0 0 20px; }
.includes li { margin-bottom: 6px; }
.mock-banner { background: var(--warn-soft); border: 2px dashed var(--warn); border-radius: var(--radius-m); padding: 20px; max-width: 520px; margin-top: 24px; }

/* ---------- Devices ---------- */
.device-list { list-style: none; padding: 0; margin: 20px 0; max-width: 560px; border-top: 1px solid var(--line); }
.device-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.device-list small { color: var(--ink-soft); display: block; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 0 0 28px; background: var(--foot-bg); color: var(--foot-soft);
  font-size: var(--step--1); border-top: 3px solid var(--foot-gold);
}
.site-footer::before { background-color: var(--foot-kawung) !important; }
.site-footer a { color: var(--foot-ink); text-decoration-color: color-mix(in srgb, var(--foot-gold) 55%, transparent); text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-color: var(--foot-gold); }
.site-footer :focus-visible { outline-color: var(--foot-gold); }

.foot-feedback {
  display: grid; gap: 16px; align-items: center;
  padding: 32px 0 28px; border-bottom: 1px solid var(--foot-line);
}
.foot-feedback h2 {
  font-family: var(--font-read); font-weight: 600; font-size: var(--step-2); line-height: 1.25;
  color: var(--foot-ink); margin: 0 0 6px; letter-spacing: -0.01em;
}
.foot-feedback p { margin: 0; max-width: 52ch; font-size: var(--step-0); }
.foot-feedback-action { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.foot-mail { display: grid; gap: 8px; justify-items: start; }
.btn-feedback {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--foot-gold); color: #1d1606 !important; font-weight: 700;
  text-decoration: none; font-size: var(--step-0);
}
.btn-feedback svg { width: 20px; height: 20px; flex: none; }
.btn-feedback:hover { background: color-mix(in srgb, var(--foot-gold) 85%, #fff); }
.btn-feedback-quiet { background: transparent; color: var(--foot-ink) !important; box-shadow: inset 0 0 0 2px var(--foot-gold); }
.btn-feedback-quiet:hover { background: color-mix(in srgb, var(--foot-gold) 18%, transparent); }
.foot-address { color: var(--foot-soft); }
.foot-address a { color: var(--foot-ink); }

.foot-main { display: grid; gap: 28px; padding: 28px 0; }
.foot-brand .wordmark { color: var(--foot-ink); margin-bottom: 10px; }
.foot-brand .wordmark .logo-mark { box-shadow: 0 0 0 1px color-mix(in srgb, var(--foot-gold) 45%, transparent); border-radius: 7px; }
.foot-brand p { margin: 0 0 8px; max-width: 46ch; }
.foot-brand strong { color: var(--foot-ink); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.foot-col h3 { margin: 0 0 10px; font-size: var(--step--1); font-weight: 700; color: var(--foot-gold); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }

.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  padding-top: 18px; border-top: 1px solid var(--foot-line);
}
.foot-base p { margin: 0; }
.foot-beta { display: inline-block; padding: 2px 10px; border: 1px solid var(--foot-line); border-radius: 999px; }

@media (min-width: 760px) {
  .foot-feedback { grid-template-columns: minmax(0, 1fr) auto; padding: 40px 0 36px; }
  .foot-feedback-action { justify-content: flex-end; }
  .foot-mail { justify-items: center; text-align: center; }
  .foot-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr); gap: 48px; padding: 36px 0; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nuansa Makkah, Madinah, Indonesia ---------- */

/* Peta perjalanan di hero (elemen utama). */
.journey { margin: 0; max-width: 400px; justify-self: center; width: 100%; }
@media (max-width: 859px) { .journey { max-width: 280px; } }
.journey svg { display: block; width: 100%; height: auto; overflow: visible; }
.j-sky { fill: #e4f1eb; }
.j-kawung { stroke: rgba(15, 90, 71, .2); }
.j-umbrella { fill: rgba(15, 90, 71, .16); }
.j-route { fill: none; stroke: #0f5a47; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.j-route-mask { fill: none; stroke: #fff; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: j-draw 1.5s .25s cubic-bezier(.5, 0, .3, 1) forwards; }
.j-arch { stroke: var(--glass-gold); stroke-width: 2.5; }
.j-pin { fill: #fff; stroke: #0f5a47; stroke-width: 2.5; }
.j-kawung-mark ellipse { fill: none; stroke: #7b4a2b; stroke-width: 3; }
.j-kaaba { fill: #141a18; }
.j-gold { fill: #c79a45; }
.j-dome { fill: #0f5a47; }
.j-label { font: 800 13px var(--font-ui); fill: #141a18; text-anchor: middle; }
.j-stop { transform-box: fill-box; animation: j-appear 420ms var(--ease-out, ease-out) both; }
.j-stop-1 { animation-delay: .15s; }
.j-stop-2 { animation-delay: .95s; }
.j-stop-3 { animation-delay: 1.65s; }
@keyframes j-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes j-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .j-stop { animation: none; }
  .j-route-mask { animation: none; stroke-dashoffset: 0; }
}

/* Motif kawung yang sangat samar: footer dan kotak ajakan. */
.site-footer, .locked-cta { position: relative; isolation: isolate; }
.site-footer::before, .locked-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--kawung);
  -webkit-mask: var(--kawung-tile) repeat; mask: var(--kawung-tile) repeat;
  border-radius: inherit;
}
.locked-cta { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.city-strip { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.city-strip li { padding-left: 16px; border-left: 3px solid var(--stamp); }
.city-strip li:nth-child(2) { border-left-color: var(--passport); }
.city-strip li:nth-child(3) { border-left-color: var(--ink); }
.city-strip strong { display: block; font-size: var(--step-1); }
.city-strip span { color: var(--ink-soft); }
@media (min-width: 760px) { .city-strip { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- Grid kelas: kartu bab berbentuk tiket ---------- */
.ticket-group { margin-top: 28px; }
.ticket-group > summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  list-style: none; cursor: pointer; padding: 10px 0; border-bottom: 2px solid var(--line); margin-bottom: 14px;
}
.ticket-group > summary::-webkit-details-marker { display: none; }
.tg-title { font-weight: 800; font-size: var(--step-1); color: var(--passport); display: inline-flex; align-items: center; gap: 8px; }
.tg-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.tg-count { font-size: var(--step--1); color: var(--ink-soft); white-space: nowrap; }
.ticket-group > summary::after { content: "+"; font-weight: 700; color: var(--ink-soft); margin-left: 4px; }
.ticket-group[open] > summary::after { content: "–"; }

.ticket-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .ticket-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ticket-grid { grid-template-columns: repeat(3, 1fr); } }
.ticket-grid > li { display: flex; }

.ticket {
  --notch: 9px;
  position: relative; display: grid; grid-template-columns: 62px 1fr; width: 100%; min-height: 128px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.ticket:hover { border-color: var(--passport); }
.ticket-stub {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 2px;
  background: var(--passport-soft); border-right: 2px dashed color-mix(in srgb, var(--passport) 35%, var(--line));
}
/* Lekukan sobekan tiket di atas dan bawah garis perforasi. */
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; right: calc(var(--notch) * -1 - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
}
.ticket-stub::before { top: calc(var(--notch) * -1 - 1px); }
.ticket-stub::after { bottom: calc(var(--notch) * -1 - 1px); }
.ticket-no { font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--passport); font-variant-numeric: tabular-nums; }
.ticket-lbl { font-size: 0.72rem; color: var(--ink-soft); }
.ticket-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 14px 18px; min-width: 0; }
.ticket-title { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.ticket-summary {
  color: var(--ink-soft); font-size: var(--step--1); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ticket-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }
.chip svg { width: 12px; height: 12px; }
.chip-paid { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.chip-outline { font-style: italic; }
.chip-now { background: var(--passport); color: var(--passport-ink); border-color: var(--passport); }
.chip-done { background: var(--stamp-soft); color: var(--stamp); border-color: color-mix(in srgb, var(--stamp) 35%, var(--line)); }

.ticket.is-current { border: 2px solid var(--passport); }
.ticket.is-current .ticket-stub { background: var(--passport); }
.ticket.is-current .ticket-no, .ticket.is-current .ticket-lbl { color: var(--passport-ink); }
.ticket.is-done .ticket-stub { background: var(--stamp-soft); }
.ticket.is-done .ticket-no { color: var(--stamp); }
.ticket.is-locked .ticket-stub { background: var(--paper); }
.ticket.is-locked .ticket-no { color: var(--ink-soft); opacity: 0.7; }
.stamp-ticket { position: absolute; right: 12px; bottom: 10px; width: 52px; height: 52px; font-size: 0.62rem; border-width: 2px; opacity: 0.9; }
.ticket.is-done .ticket-meta { padding-right: 60px; min-height: 40px; align-items: flex-end; }

/* ---------- Halaman bab: kepala selebar layar + kolom samping ---------- */
.chapter-hero { position: relative; isolation: isolate; background: var(--passport-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.chapter-hero::after {
  content: ""; position: absolute; inset: 0 0 0 55%; z-index: -1; pointer-events: none;
  background-color: color-mix(in srgb, var(--passport) 12%, transparent);
  -webkit-mask: var(--kawung-tile) repeat; mask: var(--kawung-tile) repeat;
}
.chapter-hero-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.hero-stub {
  display: grid; justify-items: center; align-content: center; width: 76px; height: 92px;
  background: var(--surface); border: 1px solid var(--line); border-right: 3px dashed color-mix(in srgb, var(--passport) 40%, var(--line));
  border-radius: 14px 6px 6px 14px;
}
.hero-stub .ticket-no { font-size: 2.2rem; }
.hero-stub.is-done { background: var(--stamp-soft); }
.hero-stub.is-done .ticket-no { color: var(--stamp); }
.chapter-hero .crumb { font-size: var(--step--1); color: var(--ink-soft); }
.chapter-hero .crumb a { color: var(--ink-soft); }
.chapter-hero h1 { font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.02em; margin: 4px 0 6px; }
.chapter-hero p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 520px) {
  .chapter-hero::after { inset: 0 0 55% 62%; }
  .chapter-hero-inner { grid-template-columns: 1fr; gap: 12px; }
  .hero-stub { width: 64px; height: 64px; }
  .hero-stub .ticket-no { font-size: 1.7rem; }
}

.chapter-layout { display: grid; gap: 32px; padding-top: 8px; }
.chapter-main { min-width: 0; }
.chapter-main .prose { max-width: 70ch; }
.chapter-aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1024px) {
  .chapter-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .chapter-aside { position: sticky; top: 64px; padding-top: 24px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .toc-mobile { display: none; }
}
@media (max-width: 1023px) { .toc-desktop { display: none; } }

.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.aside-card h2 { font-size: var(--step-0); margin: 0 0 10px; }
.aside-note { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.aside-card .complete-box { margin: 0; min-height: 0; }
.aside-position { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: var(--step--1); color: var(--ink-soft); }
.aside-position .progress-bar { max-width: none; }
.aside-group { font-weight: 700; color: var(--passport); }

.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li a {
  display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 6px 8px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: var(--step--1); line-height: 1.35;
}
.toc li a::before { counter-increment: toc; content: counter(toc); font-weight: 700; color: var(--gold); }
.toc li a:hover { background: var(--passport-soft); }
.toc-mobile { margin: 20px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; }
.toc-mobile summary { cursor: pointer; padding: 10px 4px; font-weight: 700; color: var(--passport); }
.toc-mobile ol { padding-bottom: 10px; }

.prose h2[id] { scroll-margin-top: 16px; }

/* ---------- Popup 5 rukun umrah (halaman depan) ---------- */
.rukun-pill {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px 10px 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 60%, var(--line)); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 700 var(--step--1)/1.2 var(--font-ui); cursor: pointer;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--ink) 18%, transparent);
  animation: pill-in 500ms 900ms ease-out both;
}
.rukun-pill svg { width: 26px; height: 26px; fill: var(--ink); }
.rukun-pill .pill-gold { fill: var(--gold); }
.rukun-pill:hover { border-color: var(--passport); }
@keyframes pill-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rukun-pill { animation: none; } }

.rukun-dialog {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: 22px 22px 24px; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 18px;
  background: var(--surface); color: var(--ink);
}
.rukun-dialog::backdrop { background: color-mix(in srgb, var(--ink) 45%, transparent); }
.rukun-dialog[open] { animation: dialog-in 220ms ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rukun-dialog[open] { animation: none; } }
.rukun-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rukun-head h2 { margin: 0; font-size: var(--step-2); }
.rukun-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.rukun-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.rukun-lede { margin: 8px 0 16px; color: var(--ink-soft); font-size: var(--step--1); }
/* Lima rukun sebagai rute kecil bernomor, karena urutannya memang wajib (tertib). */
.rukun-steps { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: rukun; position: relative; }
.rukun-steps::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; border-left: 3px dotted var(--passport); }
.rukun-steps li { position: relative; display: grid; gap: 2px; padding: 8px 0 8px 46px; }
.rukun-steps li::before {
  counter-increment: rukun; content: counter(rukun);
  position: absolute; left: 0; top: 8px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: var(--step--1);
  background: var(--surface); border: 3px solid var(--passport); color: var(--passport);
}
.rukun-steps li:last-child::before { border-color: var(--gold); color: var(--gold); }
.rukun-steps strong { font-size: var(--step-1); }
.rukun-steps span { color: var(--ink-soft); font-size: var(--step--1); }
.rukun-src { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 16px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* ---------- Rute kelas: jalan ular (halaman depan) ---------- */
.snake-frame {
  margin-top: 16px; padding: 16px 12px 6px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--passport-soft); position: relative; isolation: isolate; overflow: hidden;
}
.snake-frame::before { /* hamparan kawung samar di bawah jalan */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: var(--kawung);
  -webkit-mask: var(--kawung-tile) repeat; mask: var(--kawung-tile) repeat;
}
.snake { position: relative; width: 100%; max-width: 1020px; margin: 0 auto; }
.snake-sempit { display: none; }
@media (max-width: 779px) { .snake-lebar { display: none; } .snake-sempit { display: block; } }
.snake-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.snake-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.road-edge { stroke: color-mix(in srgb, var(--ink) 22%, var(--line)); stroke-width: 24; }
.road-asphalt { stroke: color-mix(in srgb, var(--ink) 70%, var(--passport)); stroke-width: 20; }
.road-line { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 10 9; }
.snake-sempit .road-edge { stroke-width: 20; }
.snake-sempit .road-asphalt { stroke-width: 16; }
.snake-sempit .road-line { stroke-width: 1.6; stroke-dasharray: 8 7; }

.road-stops { list-style: none; margin: 0; padding: 0; }
.road-stop { position: absolute; width: var(--cell); height: 0; transform: translateX(-50%); }
.road-stop > a { color: var(--ink); text-decoration: none; }
.road-marker {
  position: absolute; left: 50%; top: -19px; margin-left: -19px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
  background: var(--surface); color: var(--passport); border: 3px solid var(--passport);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--surface) 70%, transparent);
}
/* Label dibuat menonjol: latar solid, tepi tipis, judul tebal. */
.road-label {
  position: absolute; left: 50%; transform: translateX(-50%); width: min(150px, calc(100% - 8px)); top: 24px; display: grid; gap: 1px; text-align: center;
  padding: 4px 6px 5px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--ink) 10%, transparent);
}
.road-group {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 8px); padding: 2px 8px; border-radius: 999px; text-align: center;
  font-size: 0.74rem; font-weight: 800; line-height: 1.2; color: var(--surface);
  background: var(--stamp);
}
.road-title {
  font-weight: 800; font-size: 0.92rem; line-height: 1.22; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.road-state { font-size: 0.74rem; font-weight: 600; color: var(--ink-soft); }
.snake-sempit .road-marker { top: -16px; margin-left: -16px; width: 32px; height: 32px; border-width: 3px; font-size: 0.82rem; }
.snake-sempit .road-label { top: 20px; padding: 3px 4px 4px; width: calc(100% - 6px); }
.snake-sempit .road-title { font-size: 0.75rem; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.snake-sempit .road-state { font-size: 0.68rem; }
.snake-sempit .road-group { bottom: 20px; max-width: calc(100% - 6px); font-size: 0.66rem; padding: 2px 6px; }
.road-stop > a:hover .road-label, .road-stop > a:focus-visible .road-label { border-color: var(--passport); }
.road-stop > a:hover .road-title, .road-stop > a:focus-visible .road-title { color: var(--passport); }
.road-stop > a:focus-visible { outline: none; }
.road-stop > a:focus-visible .road-marker { outline: 3px solid var(--focus); outline-offset: 3px; }
.road-stop.is-current .road-marker { background: var(--passport); color: var(--passport-ink); transform: scale(1.15); }
.road-stop.is-current .road-label { border: 2px solid var(--passport); }
.road-stop.is-current .road-state { color: var(--passport); font-weight: 800; }
.road-stop.is-done .road-marker { border-color: var(--stamp); color: var(--stamp); background: var(--stamp-soft); }
.road-stop.is-done .road-state { color: var(--stamp); }
.road-stop.is-locked .road-marker { border-style: dashed; border-color: color-mix(in srgb, var(--ink-soft) 70%, transparent); color: var(--ink-soft); }
/* Tanda centang kecil di pojok halte yang selesai. */
.road-stop.is-done .road-marker::after {
  content: ""; position: absolute; right: -7px; top: -7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--stamp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.6 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 2px solid var(--surface);
}
.road-landmark { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.road-landmark svg { display: block; width: 36px; height: 36px; padding: 5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); }
.snake-sempit .road-landmark svg { width: 30px; height: 30px; padding: 4px; }
.lm-kawung ellipse { stroke: var(--stamp); }
.lm-kaaba { fill: var(--ink); }
.lm-gold { fill: var(--gold); }

/* ---------- Halaman depan: bagian penjualan ---------- */
.hero-price { margin: 16px 0 0; font-size: var(--step--1); color: var(--ink-soft); max-width: 52ch; }
.hero-price-was { white-space: nowrap; }

/* Risiko: daftar bersumber, bukan kartu. Garis kiri soga = peringatan. */
.risk-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 24px; }
.risk-list li { padding-left: 16px; border-left: 3px solid var(--warn); max-width: 62ch; }
.risk-list strong { display: block; font-size: var(--step-1); }
.risk-list p { margin: 6px 0 0; color: var(--ink-soft); }
.risk-list .risk-src { font-size: var(--step--1); }
.risk-src .official { color: var(--passport); font-weight: 700; }
.risk-checked { margin: 24px 0 0; font-size: var(--step--1); color: var(--ink-soft); }
@media (min-width: 900px) {
  .risk-list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.who-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.who-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.who-list strong { font-size: var(--step-1); }
.who-list span { color: var(--ink-soft); max-width: 60ch; }
@media (min-width: 760px) {
  .who-list li { grid-template-columns: 15rem 1fr; gap: 24px; align-items: baseline; }
}

/* Contoh tampilan: potongan asli kelas, dibingkai seperti layar kecil. */
.demo { margin: 32px 0 0; }
.demo figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 12px; }
.demo-panes {
  display: grid; gap: 16px; padding: 16px; border-radius: var(--radius-m);
  background: var(--sand) var(--kawung-tile); background-blend-mode: soft-light;
}
.demo-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px 4px; }
.demo-title { font-weight: 700; margin: 0 0 4px; }
.demo-pane .check-list { border-top: 0; }
.demo-pane .check-row:last-child { border-bottom: 0; }
.demo .demo-sources { margin: 0; max-width: none; }
@media (min-width: 760px) { .demo-panes { grid-template-columns: 1.2fr 1fr; align-items: start; } }

.update-band { display: grid; gap: 20px; }
.update-band h2 { margin-top: 0; }
.update-date {
  margin: 0; display: grid; gap: 2px; align-self: start; justify-self: start;
  padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--passport);
  border-radius: var(--radius-s); background: var(--surface);
}
.update-date span { font-size: var(--step--1); color: var(--ink-soft); }
.update-date strong { font-size: var(--step-2); letter-spacing: -0.01em; }
.update-date a { font-size: var(--step--1); font-weight: 600; margin-top: 4px; }
@media (min-width: 860px) { .update-band { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } }


/* Penawaran: tabel perbandingan + tiket harga. Elemen berani di bagian ini
   adalah tiket dengan cap "Promo awal". */
.offer { display: grid; gap: 24px; margin-top: 20px; align-items: start; }
.compare { border-collapse: collapse; width: 100%; font-size: var(--step--1); line-height: 1.4; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 700; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 400; }
.compare td { color: var(--ink-soft); }
.compare td.yes { color: var(--passport); font-weight: 700; }
.compare td.no { color: var(--ink-soft); }
.compare th:nth-child(3), .compare td:nth-child(3) { background: var(--passport-soft); }
@media (min-width: 600px) { .compare td { white-space: nowrap; } .compare tbody th { min-width: 12rem; } }
.price-ticket {
  position: relative; display: grid; gap: 10px; padding: 22px 20px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  border-top: 2px dashed var(--line); box-shadow: inset 0 6px 0 var(--passport);
}
.price-ticket p { margin: 0; }
.price-ticket-label { font-weight: 700; font-size: var(--step-1); }
.price-was { color: var(--ink-soft); }
.price-ticket .price { font-size: var(--step-4); line-height: 1; }
.price-terms { color: var(--ink-soft); font-size: var(--step--1); }
.price-ticket .btn { width: 100%; }
.price-stamp { position: absolute; right: 16px; top: 18px; width: 72px; height: 72px; font-size: 0.72rem; }
@media (min-width: 900px) { .offer { grid-template-columns: 1fr 320px; gap: 40px; } }

.trust-cols { display: grid; gap: 16px; }
.trust-cols p { margin: 0; font-family: var(--font-read); line-height: 1.7; max-width: 60ch; }
@media (min-width: 860px) { .trust-cols { grid-template-columns: 1fr 1fr; gap: 40px; } }

.faq { max-width: 70ch; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: var(--step-1); color: var(--ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* Penegasan tanpa refund sebelum membayar. */
.buy-form { display: grid; gap: 16px; }
.no-refund { padding: 14px 16px; border-radius: var(--radius-s); background: var(--warn-soft); border-left: 4px solid var(--warn); }
.no-refund p { margin: 0 0 12px; }
.ack { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-weight: 600; cursor: pointer; }
.ack input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--passport); }
.field .ack { display: grid; font-weight: 400; margin-bottom: 0; }
.no-refund-short { color: var(--warn); font-size: var(--step--1); margin: 0 0 12px; }

/* Dua paket akses. */
.plan-list { list-style: none; margin: 4px 0; padding: 0; border-top: 1px solid var(--line); }
.plan-list li, .plan-option {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.plan-name { font-weight: 700; }
.plan-name small { display: block; font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }
.plan-credit { flex-basis: 100%; font-size: var(--step--1); color: var(--ink-soft); }
.renew-note { padding: 14px 16px; border-radius: var(--radius-s); background: var(--passport-soft); margin-bottom: 20px; }
.renew-note p { margin: 0 0 6px; }
.renew-note p:last-child { margin: 0; }
.plan-price { display: inline-flex; align-items: baseline; gap: 8px; margin-left: auto; }
.plan-price del { color: var(--ink-soft); font-size: var(--step--1); }
.plan-price strong { font-size: var(--step-2); letter-spacing: -0.02em; }
.plan-pick { border: 0; margin: 0; padding: 0; }
.plan-pick legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.plan-pick .price-note { margin: 8px 0 0; }
.plan-option {
  padding: 14px; margin-bottom: 10px; border: 2px solid var(--line); border-radius: var(--radius-s);
  cursor: pointer; align-items: center;
}
.plan-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--passport); }
.plan-option:has(input:checked) { border-color: var(--passport); background: var(--passport-soft); }
.plan-option .plan-name { margin-right: auto; }
.plan-option .plan-price { margin-left: 0; }
.price-ticket .plan-list li { display: grid; gap: 2px; }
.price-ticket .plan-price { margin-left: 0; }
.price-ticket .plan-list li:first-child .plan-name { padding-right: 80px; }

/* Label "Aturan baru" dan halaman Yang berubah. Emas = detail penting. */
.chip-new { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); background: var(--surface); }
.chapter-hero .chapter-new { margin-top: 12px; color: var(--gold); }
.chapter-new a { color: inherit; text-decoration: none; }
.chapter-new a:hover { text-decoration: underline; }
.change-log { list-style: none; margin: 24px 0 32px; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.change-log li { position: relative; padding: 0 0 28px; }
.change-log li::before {
  content: ""; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold);
}
.change-log h2 { font-size: var(--step-1); margin: 2px 0 6px; }
.change-log p { margin: 0 0 8px; max-width: 60ch; }
.change-when { font-size: var(--step--1); font-weight: 700; color: var(--gold); }
.change-meta { font-size: var(--step--1); color: var(--ink-soft); }
.change-meta .official { color: var(--passport); font-weight: 700; }

/* Beli tanpa daftar: email pembeli di formulir beli. */
.buyer { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.buyer legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.buyer-note, .buyer-as, .buyer-login { margin: 0; color: var(--ink-soft); }
.buyer input[type="email"] { width: 100%; }

/* ---------- Bab bergaya panduan ----------
   Langkah adalah rute bernomor; langkah selesai mendapat cap soga, sama
   dengan cap bab selesai. Komponen lain sengaja tenang. */
.guide-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; font-size: var(--step--1); color: var(--ink-soft); }
.guide-meta li { display: inline-flex; align-items: center; gap: 6px; }
.guide-meta li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin-right: 12px; }
.guide-meta .guide-meta-key { color: var(--stamp); font-weight: 700; }

.guide-box {
  display: grid; gap: 4px 28px; margin: 24px 0 0; padding: 18px 20px; max-width: 70ch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.guide-box h2 { font-size: var(--step-0); margin: 0 0 6px; }
.guide-box p, .guide-box ul { margin: 0 0 12px; color: var(--ink-soft); }
.guide-box ul { padding-left: 1.1em; }
.guide-box > div:first-child h2 { color: var(--passport); }
@media (min-width: 700px) { .guide-box { grid-template-columns: 1.1fr 1fr; } }

.path-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 20px 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.route-pick { margin: 0 0 4px; }
.tg-note { margin: 4px 0 12px; max-width: 62ch; font-size: var(--step--1); color: var(--ink-soft); }
.path-options { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sand); }
.path-options button {
  border: 0; background: transparent; color: var(--ink); font: 600 var(--step--1)/1 var(--font-ui);
  padding: 9px 14px; min-height: 36px; border-radius: 999px; cursor: pointer;
}
.path-options button[aria-pressed="true"] { background: var(--surface); color: var(--passport); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 20%, transparent); }
.path-options button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.prose { counter-reset: langkah; }
.prose .step {
  counter-increment: langkah; position: relative; margin: 0; padding: 0 0 28px 56px;
}
.prose .step::before {
  content: counter(langkah); position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--passport);
  background: var(--surface); color: var(--passport); font: 800 var(--step-0)/1 var(--font-ui);
  transition: background 200ms, border-color 200ms, transform 200ms;
}
.prose .step::after {
  content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px;
  border-left: 2px dashed var(--line);
}
.prose .step:has(+ :not(.step))::after, .prose .step:last-child::after { display: none; }
.prose .step.is-done::before {
  content: "✓"; background: var(--stamp); border-color: var(--stamp); color: var(--surface);
  transform: rotate(-8deg);
}
.step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 40px; }
.prose .step-head h3 { font-family: var(--font-ui); font-size: var(--step-1); line-height: 1.3; margin: 0; flex: 1 1 260px; }
.step-tag { font: 600 0.75rem/1 var(--font-ui); color: var(--stamp); background: var(--stamp-soft); padding: 5px 9px; border-radius: 999px; }
.step-body { margin-top: 8px; }
.step-body p:last-child { margin-bottom: 0; }
.step-check {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft);
  font: 600 var(--step--1)/1 var(--font-ui); cursor: pointer;
}
.step-check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.step-check:hover { border-color: var(--passport); color: var(--passport); }
.step-check[aria-pressed="true"] { background: var(--stamp-soft); border-color: var(--stamp); color: var(--stamp); }
.step-check:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 520px) {
  .prose .step { padding-left: 48px; }
  .prose .step::before { width: 34px; height: 34px; }
  .prose .step::after { left: 16px; top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .prose .step::before { transition: none; } }

.callout {
  margin: 0 0 1.4em; padding: 14px 16px; border-radius: var(--radius-s); border-left: 4px solid var(--line);
  background: var(--surface);
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-label { font: 700 var(--step--1)/1.3 var(--font-ui); margin: 0 0 4px !important; }
.callout-penting { border-left-color: var(--passport); background: var(--passport-soft); }
.callout-penting .callout-label { color: var(--passport); }
.callout-peringatan { border-left-color: var(--warn); background: var(--warn-soft); }
.callout-peringatan .callout-label { color: var(--warn); }
.callout-catatan .callout-label { color: var(--ink-soft); }
.callout-pengalaman { border-left-color: var(--gold); background: var(--stamp-soft); }
.callout-pengalaman .callout-label { color: var(--stamp); }
.callout-pengalaman p:not(.callout-label) { font-style: italic; }
.callout-kesalahan { border-left-color: var(--error); }
.callout-kesalahan .callout-label { color: var(--error); }

.copy-tpl {
  margin: -8px 0 1.6em 56px; padding: 16px; border: 1px solid var(--line); border-top: 2px dashed var(--line);
  border-radius: 0 0 var(--radius-m) var(--radius-m); background: var(--surface); font-family: var(--font-ui);
}
.copy-title { font-weight: 700; margin: 0 0 12px !important; font-size: var(--step-0); }
.copy-fields { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .copy-fields { grid-template-columns: 1fr 1fr; } }
.copy-fields .field label { font-size: var(--step--1); margin-bottom: 4px; }
.copy-fields input { width: 100%; }
.copy-text {
  margin: 0; padding: 14px; white-space: pre-wrap; word-break: break-word; border-radius: var(--radius-s);
  background: var(--paper); font: 400 var(--step--1)/1.6 var(--font-ui); color: var(--ink);
}
.copy-text mark { background: var(--stamp-soft); color: var(--stamp); border-radius: 3px; padding: 0 2px; }
.copy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.copy-status { font-size: var(--step--1); color: var(--passport); }
@media (max-width: 520px) { .copy-tpl { margin-left: 0; } }

.trouble { margin: 0 0 1.6em; font-family: var(--font-ui); border-top: 1px solid var(--line); }
.trouble-label { font-size: var(--step--1); color: var(--ink-soft); margin: 12px 0 4px !important; }
.trouble details { border-bottom: 1px solid var(--line); }
.trouble summary {
  cursor: pointer; list-style: none; position: relative; padding: 14px 36px 14px 0; font-weight: 700; line-height: 1.4;
}
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: var(--step-1); color: var(--passport); }
.trouble details[open] summary::after { content: "–"; }
.trouble details > :not(summary) { font-family: var(--font-read); }
.trouble details ul { margin: 0 0 14px; }

.recap { margin: 1.6em 0; padding: 18px 20px; border-radius: var(--radius-m); background: var(--passport-soft); }
.recap-label { font: 700 var(--step-0)/1.3 var(--font-ui); color: var(--passport); margin: 0 0 8px !important; }
.recap ul { margin: 0; }

.quiz-box { margin: 40px 0 0; max-width: 70ch; }
.quiz-box h2 { font-size: var(--step-2); margin: 0 0 4px; }
.quiz-lede { color: var(--ink-soft); margin: 0 0 18px; }
.quiz-q { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); padding: 16px; margin: 0 0 14px; }
.quiz-q legend { display: flex; gap: 10px; font-weight: 700; line-height: 1.4; padding: 0; float: left; width: 100%; margin-bottom: 12px; }
.quiz-q legend + * { clear: both; }
.quiz-no { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sand); color: var(--passport); font-size: var(--step--1); }
.quiz-opt {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 12px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; line-height: 1.45;
}
.quiz-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--passport); }
.quiz-opt:hover { border-color: var(--passport); }
.quiz-q.is-wrong .quiz-opt:has(input:checked) { border-color: var(--error); }
.quiz-q .quiz-opt.is-answer { border-color: var(--passport); background: var(--passport-soft); }
.quiz-why { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-s); background: var(--paper); line-height: 1.5; }
.quiz-q.is-right .quiz-verdict { color: var(--passport); }
.quiz-q.is-wrong .quiz-verdict { color: var(--error); }

.step-nav h2 { font-size: var(--step-0); margin: 0 0 10px; }
.step-nav .progress-bar { max-width: none; }
.step-count { margin: 6px 0 10px; font-size: var(--step--1); color: var(--ink-soft); }
.step-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.step-nav li a {
  display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 6px 8px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: var(--step--1); line-height: 1.35;
}
.step-nav li a::before { content: ""; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line); }
.step-nav li.is-done a { color: var(--ink-soft); }
.step-nav li.is-done a::before { background: var(--stamp); border-color: var(--stamp); }
.step-nav li a:hover { background: var(--passport-soft); }
.step-nav .aside-note { margin-top: 10px; }
.prose .step { scroll-margin-top: 16px; }
@media (max-width: 520px) {
  .guide-meta { flex-direction: column; gap: 4px; }
  .guide-meta li + li::before { display: none; }
}

/* ---------- Transfer manual ---------- */
.transfer-box { display: grid; gap: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.transfer-row { display: grid; gap: 6px; padding: 18px 20px; border-bottom: 1px solid var(--line); justify-items: start; }
.transfer-row:last-child { border-bottom: 0; }
.transfer-label { font-size: var(--step--1); color: var(--ink-soft); }
.transfer-value { font-size: var(--step-2); font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.transfer-amount { color: var(--passport); font-size: var(--step-3); }
.transfer-note { font-size: var(--step--1); color: var(--ink-soft); max-width: 52ch; }
.transfer-done { margin: 24px 0 16px; display: grid; gap: 8px; justify-items: start; }
.transfer-done .help, .transfer-abroad + .help { font-size: var(--step--1); color: var(--ink-soft); }
.transfer-abroad { margin: 16px 0; padding: 12px 16px; border-radius: var(--radius-s); background: var(--sand); }
.transfer-abroad summary { cursor: pointer; font-weight: 600; }
.transfer-abroad p { margin: 8px 0 0; }

/* ---------- Bar "Akses semua kelas" di bawah layar ---------- */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; pointer-events: none;
  padding: 0 var(--gutter) calc(10px + env(safe-area-inset-bottom));
}
.buy-bar-inner {
  pointer-events: auto; max-width: 560px; margin: 0 auto; display: flex; align-items: center;
  background: var(--passport); color: var(--passport-ink); border-radius: 999px;
  box-shadow: 0 6px 24px color-mix(in srgb, var(--ink) 22%, transparent);
}
.buy-bar-link {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 6px 6px 6px 20px; color: inherit; text-decoration: none; border-radius: 999px;
}
.buy-bar-text { display: grid; line-height: 1.2; }
.buy-bar-text strong { font-size: var(--step-0); }
.buy-bar-text span { font-size: var(--step--1); opacity: 0.85; }
.buy-bar-btn {
  flex: none; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: var(--step--1);
  background: var(--passport-ink); color: var(--passport);
}
.buy-bar-link:hover .buy-bar-btn { filter: brightness(1.05); }
.buy-bar-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 999px; }
/* "Simpan di HP" menempel di sisi kiri bar beli, dipisah garis tipis;
   untuk pembeli (tanpa bar beli) tombol ini mengisi seluruh bar. */
.dock-install {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; padding: 6px 10px 6px 14px;
  border: 0; border-right: 1px solid color-mix(in srgb, var(--passport-ink) 28%, transparent);
  border-radius: 999px 0 0 999px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.dock-install[hidden] { display: none; }
.install-copy { justify-self: start; margin-top: 6px; }
.dock-install svg { width: 22px; height: 22px; flex: none; }
.dock-install-label { font-size: 0.7rem; font-weight: 700; line-height: 1.1; text-align: center; }
.dock-install:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.is-install-only .dock-install {
  flex: 1; flex-direction: row; justify-content: space-between; gap: 12px; border-right: 0; border-radius: 999px; padding: 6px 6px 6px 18px;
}
.is-install-only .dock-install svg { order: -1; }
.is-install-only .dock-install .buy-bar-text { flex: 1; }
.dock-install:not([hidden]) + .buy-bar-link { gap: 8px; padding-left: 12px; border-radius: 0 999px 999px 0; }
.dock-install:not([hidden]) + .buy-bar-link .buy-bar-btn { padding: 10px 13px; }
.dock-install:not([hidden]) + .buy-bar-link .buy-bar-text strong { white-space: nowrap; }
@media (max-width: 380px) {
  .dock-install:not([hidden]) + .buy-bar-link .buy-bar-text strong { font-size: 0.92rem; }
  .dock-install:not([hidden]) + .buy-bar-link .buy-bar-btn { padding: 10px 11px; }
}
@media (max-width: 340px) { .dock-install:not([hidden]) + .buy-bar-link .buy-bar-text strong { white-space: normal; } }
/* Ruang di bawah halaman supaya bar tidak menutupi isi terakhir. */
body:has(.buy-bar:not([hidden])) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media print { .buy-bar { display: none; } }

/* ---------- Halaman harga: paket, isi kelas, dan tanya jawab ---------- */
.pricing-layout { display: grid; gap: 32px; align-items: start; }
.pricing-page .price-block { max-width: none; margin-top: 8px; }
.pricing-aside h2, .pricing-faq h2 { font-size: var(--step-1); margin: 0 0 12px; }
.pricing-chapters { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line); }
.pricing-chapters li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pricing-chapters a { color: var(--ink); text-decoration: none; flex: 1; }
.pricing-chapters a:hover { color: var(--passport); text-decoration: underline; }
.pc-num { flex: none; width: 1.6em; color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.pc-free { flex: none; font-size: 0.75rem; font-weight: 700; color: var(--passport); background: var(--passport-soft); padding: 2px 8px; border-radius: 999px; }
.pricing-aside .help, .pricing-faq .help { font-size: var(--step--1); color: var(--ink-soft); }
.pricing-faq { margin-top: 40px; max-width: 760px; }
.pricing-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.pricing-faq summary { cursor: pointer; font-weight: 600; }
.pricing-faq details p { margin: 8px 0 0; color: var(--ink-soft); }
@media (min-width: 900px) {
  .pricing-layout { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 48px; }
  .pricing-aside { position: sticky; top: 20px; }
}

/* ---------- Artikel ---------- */
.article-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.article-list li { border-bottom: 1px solid var(--line); }
.article-list a { display: grid; gap: 4px; padding: 18px 0; color: var(--ink); text-decoration: none; }
.al-title { font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.article-list a:hover .al-title { color: var(--passport); text-decoration: underline; }
.al-summary { color: var(--ink-soft); }
.al-meta, .article-meta, .article-crumb { font-size: var(--step--1); color: var(--ink-soft); }
.article { padding-top: 24px; }
.article h1 { font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.02em; margin: 4px 0 8px; }
.article-crumb { margin: 0; }
.article-crumb a { color: var(--passport); }
.article-poster { margin: 28px 0 0; }
.article-poster img { display: block; width: 100%; max-width: 480px; height: auto; border-radius: var(--radius-m); border: 1px solid var(--line); }
.article-poster figcaption { margin-top: 8px; font-size: var(--step--1); }
.article-cta { margin: 32px 0; padding: 20px; border-radius: var(--radius-m); background: var(--passport-soft); display: grid; gap: 12px; justify-items: start; }
.article-cta p { margin: 0; max-width: 60ch; }
.article-cta .help { font-size: var(--step--1); color: var(--ink-soft); }
.article-more { margin: 32px 0; }
.article-more h2 { font-size: var(--step-1); }
.article-more ul { padding-left: 20px; }
.article-more li { margin-bottom: 8px; }

/* ---------- Doa: teks Arab, latin, arti, dan sumber ---------- */
.prose .doa { margin: 1.4em 0; padding: 18px 20px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.prose .doa p { margin: 0; }
.prose .doa-title { font-weight: 700; font-size: var(--step--1); color: var(--passport); margin-bottom: 10px; }
.prose .doa-arab {
  font-family: "Amiri", "Scheherazade New", "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif;
  font-size: 1.7rem; line-height: 2.1; text-align: right; color: var(--ink); margin-bottom: 10px;
}
.prose .doa-latin { font-style: italic; margin-bottom: 8px; }
.prose .doa-arti { color: var(--ink-soft); }
.prose .doa-src { margin-top: 10px; font-size: 0.75rem; line-height: 1.5; color: var(--ink-soft); }
.prose .doa-src a { color: inherit; }

/* ---------- Jadwal persiapan ----------
   Rute vertikal seperti halte: garis putus-putus hijau, tanggal di kiri seperti cap tiket.
   Halte yang dicentang berubah jadi cap (soga), tenggat terlewat bertanda warna peringatan. */
.jadwal-form { display: grid; gap: 16px; margin: 24px 0 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.jadwal-form input[type="date"] { max-width: 220px; }
.jadwal-jalur { border: 0; padding: 0; margin: 0; }
.jadwal-jalur legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.jadwal-jalur .path-options label { display: inline-flex; margin: 0; cursor: pointer; }
.jadwal-jalur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jadwal-jalur span { padding: 9px 14px; min-height: 36px; border-radius: 999px; font: 600 var(--step--1)/1.3 var(--font-ui); color: var(--ink); }
.jadwal-jalur input:checked + span { background: var(--surface); color: var(--passport); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 20%, transparent); }
.jadwal-jalur input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.jadwal-form .btn { justify-self: start; }

.jadwal { margin-top: 32px; }
.jadwal-count { display: grid; gap: 4px; padding: 20px 0 8px; border-top: 3px solid var(--passport); }
.jadwal-count p { margin: 0; color: var(--ink-soft); }
.jadwal-days { font-size: var(--step-1); }
.jadwal-days strong { display: block; font-size: var(--step-4); line-height: 1; letter-spacing: -0.04em; font-weight: 800; color: var(--passport); font-variant-numeric: tabular-nums; }
.jadwal-warn { margin: 16px 0 0; }
.jadwal-fase { font-size: var(--step-0); margin: 32px 0 8px; color: var(--ink-soft); }
.jadwal-list { list-style: none; margin: 0; padding: 0; position: relative; }
.jadwal-list::before { content: ""; position: absolute; left: 47px; top: 8px; bottom: 8px; border-left: 2px dashed color-mix(in srgb, var(--passport) 45%, transparent); }
.jadwal-item { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 10px 0; }
.jadwal-date {
  position: relative; z-index: 1; align-self: start; display: grid; gap: 2px; text-align: center;
  padding: 8px 6px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: var(--step--1); line-height: 1.25; font-variant-numeric: tabular-nums;
}
.jadwal-date small { font-weight: 500; font-size: 0.6875rem; color: var(--ink-soft); }
.jadwal-body p { margin: 4px 0; color: var(--ink-soft); max-width: 60ch; }
.jadwal-body a { font-size: var(--step--1); font-weight: 600; }
.jadwal-check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; margin-right: 8px; }
.jadwal-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--stamp); flex: none; }
.jadwal-item.is-terlewat .jadwal-date { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.chip-warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.jadwal-item.is-segera .jadwal-date { border-color: var(--passport); }
.jadwal-item.is-done .jadwal-date { background: var(--stamp-soft); border-color: var(--stamp); color: var(--stamp); }
.jadwal-item.is-done .jadwal-check strong { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.jadwal-note, .jadwal-share { font-size: var(--step--1); color: var(--ink-soft); max-width: 62ch; }
.jadwal-note { margin-top: 28px; }
@media (max-width: 520px) {
  .jadwal-list::before { left: 35px; }
  .jadwal-item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .jadwal-date { font-size: 0.75rem; padding: 6px 4px; }
}


/* ---------- Kerangka situs ----------
   Bilah atas tipis yang menempel (logo, menu, cari, akun), halaman digulir biasa, footer.
   Di HP: tab bawah seperti aplikasi, dan "Menu" membuka lembar dari bawah.
   Variabel kaca dipakai kartu hijau tua (Kelasku, bab berikutnya, akun). */
:root {
  --topbar-h: 64px;
  --glass-edge: rgba(255, 255, 255, .14);
  --glass-ink: #e3efe9;
  --glass-quiet: #a3bfb5;
  --glass-gold: #dcb872;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --shadow-pop: 0 24px 60px -24px color-mix(in srgb, #06231d 55%, transparent), 0 2px 6px -2px color-mix(in srgb, #06231d 18%, transparent);
}

/* Bilah atas */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
}
/* Garis bawah muncul setelah halaman digulir sedikit (browser yang mendukung scroll-driven animation). */
@supports (animation-timeline: scroll()) {
  .topbar { animation: topbar-edge linear both; animation-timeline: scroll(root); animation-range: 0 80px; }
  @keyframes topbar-edge { to { border-bottom-color: var(--line); } }
}
@supports not (animation-timeline: scroll()) { .topbar { border-bottom-color: var(--line); } }
.topbar-in { display: flex; align-items: center; gap: 6px; max-width: 1240px; height: var(--topbar-h); margin: 0 auto; padding: 0 clamp(14px, 3vw, 32px); }
.top-brand { display: inline-flex; align-items: center; gap: 10px; margin: 0 18px 0 0; color: var(--ink); font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.top-brand .logo-mark { width: 32px; height: 32px; border-radius: 9px; }

.topnav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.topnav > a, .topnav-more {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-soft); font: 600 0.9063rem/1 var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.topnav > a:hover, .topnav-more:hover, .topnav-more:has(+ :popover-open) { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.topnav > a[aria-current="page"], .topnav-more[aria-current="page"] { color: var(--passport); background: var(--passport-soft); }
.topnav-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.topnav a.topnav-price { margin-left: 6px; color: var(--stamp); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gold) 55%, transparent); }
.topnav a.topnav-price:hover, .topnav a.topnav-price[aria-current="page"] { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--stamp); }

/* Menu turun (popover). Posisi menempel ke tombolnya lewat CSS anchor; kalau tidak didukung, app.js menghitungnya. */
.topnav-pop {
  position: fixed; inset: auto; margin: 0; top: calc(anchor(bottom) + 8px); left: anchor(left);
  min-width: 270px; padding: 6px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop);
}
.topnav-pop:popover-open { display: grid; gap: 2px; animation: pop-in .18s var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
.topnav-pop a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.topnav-pop a:hover, .topnav-pop a:focus-visible { background: var(--passport-soft); }
.topnav-pop a .nav-icon { margin-top: 1px; color: var(--passport); }
.topnav-pop small { display: block; margin-top: 2px; font-weight: 500; font-size: 0.8125rem; color: var(--ink-soft); }
.pop-akun { left: auto; right: anchor(right); }
.pop-hello { margin: 6px 12px 8px; font-size: 0.875rem; color: var(--ink-soft); }
.pop-hello strong { color: var(--ink); }
.topnav-pop a.pop-progress { align-items: center; margin-bottom: 4px; background: var(--passport-soft); }
.pop-progress strong { display: block; }
.pop-progress small { max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-ring {
  flex: none; width: 42px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), color-mix(in srgb, var(--passport) 16%, transparent) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent 64%, #000 66%); mask: radial-gradient(farthest-side, transparent 64%, #000 66%);
}

/* Cari, mode, dan akun */
.top-search {
  display: flex; align-items: center; gap: 8px; flex: 0 1 240px; min-width: 0; height: 40px; padding: 0 6px 0 12px; margin-left: 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font: 500 0.875rem var(--font-ui); cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.top-search:hover { border-color: color-mix(in srgb, var(--passport) 45%, var(--line)); color: var(--ink); }
.top-search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.top-search span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-search kbd, .search-close kbd { font: 600 0.6875rem/1 var(--font-ui); padding: 4px 7px; border-radius: 7px; background: var(--sand); color: var(--ink-soft); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.top-login { color: var(--ink); font-size: 0.9063rem; font-weight: 700; text-decoration: none; padding: 9px 12px; border-radius: 999px; }
.top-login:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.top-avatar {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--passport); color: var(--passport-ink); font: 800 0.9375rem var(--font-ui);
}
.top-avatar:hover { box-shadow: 0 0 0 4px var(--passport-soft); }
.site-announce { max-width: 1240px; margin: 10px auto 0; border-radius: 14px; padding: 10px 16px; }

/* Footer pendek di halaman selain beranda */
.slim-footer { margin-top: 64px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-soft); }
.slim-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.slim-footer p { margin: 0; }
.slim-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.slim-footer a { color: var(--ink-soft); text-decoration: none; }
.slim-footer a:hover { color: var(--passport); text-decoration: underline; }

/* Lembar menu (HP). Di layar lebar tidak dipakai. */
.app-side { display: none; }
.app-tabs, .side-scrim { display: none; }
.nav-icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Perpindahan halaman (View Transitions antar dokumen): bilah atas dan tab bawah diam, isi berganti halus. */
@view-transition { navigation: auto; }
.topbar { view-transition-name: top; }
.app-tabs { view-transition-name: tabs; }
main { view-transition-name: page; }
::view-transition-group(top), ::view-transition-group(tabs), ::view-transition-group(page) { animation: none; }
::view-transition-old(top), ::view-transition-old(tabs) { display: none; }
::view-transition-new(top), ::view-transition-new(tabs) { animation: none; }
::view-transition-old(page) { animation: page-out 120ms ease both; }
::view-transition-new(page) { animation: page-in 320ms var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
.progress-bar span { transform-origin: left; animation: bar-grow .9s var(--ease-out) both; }
@keyframes bar-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .progress-bar span, .topnav-pop:popover-open { animation: none; }
}

/* Layar menengah: sembunyikan teks tombol cari dulu, baru menu pindah ke tab bawah. */
@media (max-width: 1500px) {
  .top-search { flex: none; width: 40px; padding: 0; margin-left: auto; justify-content: center; }
  .top-search span, .top-search kbd { display: none; }
}
@media (max-width: 1000px) {
  :root { --topbar-h: 58px; }
  .topnav { display: none; }
  .top-brand { margin-right: auto; }
  .site-announce { margin: 8px 10px 0; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.buy-bar:not([hidden])) { padding-bottom: calc(152px + env(safe-area-inset-bottom)); }

  .app-tabs {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; position: fixed; z-index: 45;
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
    backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .app-tabs a, .app-tabs button {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border: 0; border-radius: 16px;
    background: transparent; color: var(--ink-soft); font: 600 0.6875rem/1.1 var(--font-ui); text-decoration: none; cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
  }
  .app-tabs .nav-icon { width: 22px; height: 22px; }
  .app-tabs [aria-current="page"] { color: var(--passport); background: var(--passport-soft); }
  .buy-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* Lembar menu: naik dari bawah. */
  .app-side {
    display: flex; flex-direction: column; gap: 8px; position: fixed; z-index: 60; left: 8px; right: 8px; bottom: 8px; max-height: min(86vh, 760px);
    padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; border-radius: 26px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
    transform: translateY(calc(100% + 24px)); visibility: hidden;
    transition: transform .36s var(--ease-out), visibility 0s linear .36s;
  }
  .app-side::before { content: ""; align-self: center; flex: none; width: 40px; height: 5px; margin: 2px 0 4px; border-radius: 99px; background: var(--line); }
  body.is-menu-open .app-side { transform: none; visibility: visible; transition: transform .36s var(--ease-out); }
  body.is-menu-open { overflow: hidden; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: color-mix(in srgb, #02100c 45%, transparent); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
  .side-scrim[hidden] { display: none; }
}
@media (max-width: 420px) {
  .top-login { display: none; }
  .top-brand span { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .app-side { transition: none !important; } }
@media print {
  .topbar, .app-tabs, .side-scrim, .app-side, .slim-footer { display: none; }
  body { background: #fff; padding: 0; }
}

/* Isi lembar menu */
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; border-bottom: 1px solid var(--line); }
.side-brand { margin: 0; color: var(--ink); font-size: 1.0625rem; }
.side-brand .wordmark-text small { color: var(--ink-soft); }
.side-close { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.side-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.side-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.side-group { grid-column: 1 / -1; margin: 10px 4px 0; font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); }
.side-nav a {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 12px; border-radius: 14px;
  background: var(--paper); color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 600; line-height: 1.25;
}
.side-nav a .nav-icon { color: var(--passport); }
.side-nav a[aria-current="page"] { background: var(--passport-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--passport) 40%, transparent); }
.side-nav a.side-cta { grid-column: 1 / -1; color: #10261f; background: linear-gradient(135deg, #e6c98a 0%, var(--glass-gold) 55%, #c9a24f 100%); font-weight: 700; }
.side-nav a.side-cta span { flex: 1; }
.side-nav a.side-cta .nav-icon { color: #10261f; }
.side-cta-go { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.side-card { display: grid; gap: 4px; padding: 14px; border-radius: 18px; background: var(--passport-soft); color: var(--ink); text-decoration: none; }
.side-card strong { font-size: 0.9375rem; }
.side-card small { font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.4; }
.side-progress { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.side-card-text { display: grid; gap: 2px; min-width: 0; }
.side-card-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-join .btn { margin-top: 8px; }
.side-login { justify-self: center; margin-top: 4px; font-size: 0.875rem; font-weight: 700; }
.side-price { justify-self: center; font-size: 0.8125rem; color: var(--stamp); text-decoration: none; }
.side-account { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 700; }
.side-account small { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); }
.side-avatar { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--passport); color: var(--passport-ink); font-weight: 800; }
.side-install {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--line);
  background: transparent; color: var(--ink); font: 600 0.875rem/1.2 var(--font-ui); cursor: pointer; text-align: left;
}
.side-install svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.side-install[hidden] { display: none; }
.side-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 4px 2px; border-top: 1px solid var(--line); }
.side-foot a { font-size: 0.8125rem; color: var(--ink-soft); text-decoration: none; }

/* ---------- Kelasku (halaman Kelas setelah masuk) ---------- */
.learn { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; margin: 18px 0 26px; }
.learn-next {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; align-content: space-between;
  min-height: 210px; padding: 22px 22px 18px; border-radius: 24px; text-decoration: none; color: #eef6f2;
  background: linear-gradient(150deg, #0f5a47 0%, #0a3f32 70%, #082f26 100%);
  box-shadow: 0 18px 40px -24px rgba(6, 43, 37, .9);
}
.learn-next::after {
  content: ""; position: absolute; inset: 0 0 0 45%; z-index: -1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23dcb872' stroke-opacity='.18' stroke-width='1.5'%3E%3Cellipse cx='28' cy='14' rx='7' ry='12'/%3E%3Cellipse cx='28' cy='42' rx='7' ry='12'/%3E%3Cellipse cx='14' cy='28' rx='12' ry='7'/%3E%3Cellipse cx='42' cy='28' rx='12' ry='7'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask: linear-gradient(90deg, transparent, #000 60%); mask: linear-gradient(90deg, transparent, #000 60%);
}
.learn-next-no { display: grid; justify-items: center; align-content: center; width: 76px; height: 92px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(220, 184, 114, .4); }
.learn-next-no span { font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--glass-gold); }
.learn-next-no small { font-size: 0.75rem; color: #b9d2c8; }
.learn-next-text { display: grid; gap: 4px; align-content: start; }
.learn-next-text small { font-size: 0.8125rem; font-weight: 600; color: var(--glass-gold); }
.learn-next-text strong { font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.02em; }
.learn-next-text span { font-size: var(--step--1); color: #b9d2c8; max-width: 46ch; }
.learn-next-go {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 10px 16px; border-radius: 999px; background: var(--glass-gold); color: #10261f; font-weight: 700; font-size: var(--step--1); text-decoration: none;
}
.learn-next-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.learn-next:hover .learn-next-go svg { transform: translateX(3px); }
.learn-next.is-done { grid-template-columns: minmax(0, 1fr); }
.learn-next:focus-visible { outline: 3px solid var(--glass-gold); outline-offset: 3px; }

@media (max-width: 860px) {
  .learn { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .learn-next { padding: 18px 16px 16px; gap: 6px 14px; min-height: 0; }
  .learn-next-no { width: 60px; height: 74px; }
  .learn-next-no span { font-size: 2.1rem; }
  .learn-next-text strong { font-size: var(--step-1); }
}
.app-side .logo-mark, .top-brand .logo-mark { border-radius: 8px; }

/* ---------- Pemutar pelajaran (halaman bab) ---------- */
.lesson-bar {
  position: sticky; top: var(--topbar-h); z-index: 20; display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: var(--step--1);
}
.lesson-bar svg, .lesson-end svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lesson-back { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 6px 6px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lesson-back:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.lesson-pos { margin: 0 auto; font-weight: 700; color: var(--ink); }
.lesson-pos span { font-weight: 500; color: var(--ink-soft); }
.lesson-steps { display: flex; gap: 6px; }
.lesson-steps a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.lesson-steps a:hover { border-color: var(--passport); color: var(--passport); }

.lesson-end { display: grid; gap: 10px; margin: 36px 0 0; }
.lesson-next {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 22px;
  background: linear-gradient(150deg, #0f5a47 0%, #0a3f32 80%); color: #eef6f2; text-decoration: none;
  box-shadow: 0 16px 34px -24px rgba(6, 43, 37, .9);
}
.lesson-next-no { width: 52px; height: 60px; display: grid; place-items: center; border-radius: 14px; border: 1px solid rgba(220, 184, 114, .4); background: rgba(255, 255, 255, .08); color: var(--glass-gold); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.lesson-next-text { display: grid; gap: 2px; }
.lesson-next-text small { font-size: 0.8125rem; font-weight: 600; color: var(--glass-gold); }
.lesson-next-text strong { font-size: var(--step-1); line-height: 1.2; }
.lesson-next svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--glass-gold); color: #10261f; transition: transform .25s var(--ease-out); }
.lesson-next:hover svg { transform: translateX(3px); }
.lesson-prev { display: grid; gap: 2px; justify-self: start; padding: 10px 14px; border-radius: 16px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step--1); border: 1px solid var(--line); background: var(--surface); }
.lesson-prev small { font-weight: 500; color: var(--ink-soft); font-size: 0.75rem; }
.lesson-prev:hover { border-color: var(--passport); }
@media (max-width: 1000px) {
  .lesson-back span { display: none; }
  .lesson-back { padding: 6px; }
}

/* Huruf bacaan bab sedikit lebih besar dari antarmuka. */
.prose { --step--1: 0.9375rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.5rem; }
main:focus { outline: none; }
.chapter-hero { border-radius: 0; }

/* Dialog cari */
.search-dialog {
  width: min(640px, calc(100vw - 24px)); max-height: none; margin: 12vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); overflow: hidden;
}
.search-dialog::backdrop { background: rgba(2, 15, 12, .5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.search-dialog[open] { animation: search-in .22s var(--ease-out); }
@keyframes search-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.search-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.search-box svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; }
.search-box input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: 400 1.0625rem var(--font-ui); padding: 0; }
.search-box input:focus { outline: none; box-shadow: none; }
.search-close { border: 0; background: none; padding: 4px; cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: min(60vh, 460px); overflow-y: auto; }
.search-results:empty { display: none; }
.search-results a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.search-kind { grid-row: span 2; align-self: start; margin-top: 1px; padding: 3px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; white-space: nowrap; color: var(--passport); background: var(--passport-soft); }
.search-results strong { font-size: 0.9375rem; line-height: 1.3; }
.search-results small { font-size: 0.8125rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results [aria-selected="true"] a, .search-results a:hover { background: var(--passport-soft); }
.search-empty { margin: 0; padding: 14px 20px 18px; font-size: 0.875rem; color: var(--ink-soft); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* Notifikasi singkat */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px;
  background: #0a3f32; color: #eef6f2; font: 600 0.875rem var(--font-ui); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  border: 1px solid rgba(220, 184, 114, .35); animation: toast-in .25s var(--ease-out); transition: opacity .25s ease, transform .25s ease;
}
.toast.is-out { opacity: 0; transform: translate(-50%, 6px); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (max-width: 1000px) {
  .toast { top: 70px; bottom: auto; }
  .search-dialog { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .search-dialog[open], .toast { animation: none; }
}

/* Tombol "Kenali 5 rukun umrah": pojok kanan bawah layar. Di HP naik di atas bar beli dan tab bawah. */
@media (min-width: 1001px) { .rukun-pill { right: 28px; bottom: 28px; } }
@media (max-width: 1000px) {
  .rukun-pill { right: 14px; bottom: calc(150px + env(safe-area-inset-bottom)); }
  body:not(:has(.buy-bar:not([hidden]))) .rukun-pill { bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* Pertanyaan sebelum membeli: dua kolom di layar lebar. */
@media (min-width: 761px) {
  .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; align-items: start; max-width: none; border-top: 0; border-bottom: 1px solid var(--line); }
  .faq details { border-top: 1px solid var(--line); border-bottom: 0; }
}

/* ---------- Kelasku: kesiapan umrah dan hitung mundur ---------- */
.ready {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; padding: 20px 22px; border-radius: 24px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.ready-ring {
  --size: 132px; position: relative; width: var(--size); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--passport) calc(var(--p) * 1%), var(--sand) 0);
}
.ready-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface); }
.ready-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ready-ring strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ready-ring small { font-size: 0.75rem; color: var(--ink-soft); }
.ready-title { margin: 0 0 8px; font-weight: 700; font-size: var(--step-1); }
.ready-list { margin: 0; display: grid; gap: 6px; }
.ready-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.ready-list div:last-child { border-bottom: 0; }
.ready-list dt { color: var(--ink-soft); font-size: var(--step--1); }
.ready-list dt a { color: inherit; }
.ready-list dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.ready-list dd small { font-weight: 600; color: var(--ink-soft); }
.ready-text { font-size: var(--step--1); }
@media (max-width: 480px) {
  .ready { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 18px; }
  .ready-body { width: 100%; text-align: left; }
  .ready-title { text-align: center; }
}

.countdown { margin: -12px 0 26px; }
.countdown-empty, .countdown-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px; border-radius: 20px;
  background: var(--surface); border: 1px dashed color-mix(in srgb, var(--passport) 35%, var(--line));
}
.countdown-empty p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); max-width: 60ch; }
.countdown-empty strong { color: var(--ink); }
.countdown-card { border-style: solid; border-color: color-mix(in srgb, var(--line) 60%, transparent); justify-content: flex-start; }
.countdown-days { display: grid; justify-items: center; min-width: 84px; padding: 8px 12px; border-radius: 16px; background: var(--passport); color: var(--passport-ink); }
.countdown-days strong { font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.countdown-days small { font-size: 0.6875rem; font-weight: 600; opacity: .85; }
.countdown-main { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.countdown-main small { font-size: 0.75rem; color: var(--ink-soft); }
.countdown-next { font-weight: 700; }
.countdown-next a { color: var(--ink); }
.countdown-chip { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; background: var(--passport-soft); color: var(--passport); vertical-align: 1px; }
.countdown-chip.is-late { background: var(--warn-soft); color: var(--warn); }
.countdown-link { font-size: var(--step--1); font-weight: 600; }

/* ---------- Checklist sebagai papan kartu ---------- */
.check-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.check-top .progress-bar { flex: 1 1 220px; max-width: 360px; }
.check-filter button { font-size: var(--step--1); }
.check-board { columns: 2 420px; column-gap: 16px; margin-top: 18px; }
.check-board .check-group {
  break-inside: avoid; margin: 0 0 16px; max-width: none; padding: 16px 18px 6px; border-radius: 20px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.check-group h2 { align-items: center; }
.check-group h2 a { margin-left: auto; }
.check-count { flex: none; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--passport-soft); color: var(--passport); font-variant-numeric: tabular-nums; }
.check-meter { height: 4px; margin: 0 0 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.check-meter span { display: block; height: 100%; background: var(--passport); border-radius: 999px; transition: width .4s var(--ease-out); }
.check-board .check-list { border-top: 0; }
.check-board .check-row:last-child { border-bottom: 0; }
[data-filter="belum"] .check-row.is-checked, [data-filter="sudah"] .check-row:not(.is-checked) { display: none; }
[data-filter] .check-group.is-empty { display: none; }

/* ---------- Sambutan setelah daftar ---------- */
.welcome { max-width: 720px; margin: 28px auto 0; }
.welcome-head h1 { font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.02em; margin: 4px 0 8px; }
.welcome-head p { margin: 0; color: var(--ink-soft); }
.welcome-hello { font-weight: 700; color: var(--passport) !important; }
.welcome-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.welcome-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.welcome-no { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--passport); color: var(--passport-ink); font-weight: 800; }
.welcome-step fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.welcome-step legend, .welcome-step label[for], .welcome-label { display: block; margin: 6px 0 10px; padding: 0; font-weight: 700; font-size: var(--step-1); }
.welcome-options { display: flex; flex-wrap: wrap; gap: 8px; }
.welcome-option input { position: absolute; opacity: 0; pointer-events: none; }
.welcome-option span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.welcome-option input:checked + span { background: var(--passport); border-color: var(--passport); color: var(--passport-ink); }
.welcome-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.welcome-help { margin: 10px 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.welcome-step input[type="date"] { max-width: 260px; }

/* ---------- Halaman bab: tab di kartu samping dan garis progres baca ---------- */
.aside-tablist { display: flex; gap: 4px; padding: 3px; margin: -4px -6px 12px; border-radius: 999px; background: var(--sand); }
.aside-tablist [role="tab"] {
  flex: 1; border: 0; background: transparent; padding: 7px 10px; border-radius: 999px; cursor: pointer;
  font: 700 var(--step--1)/1.2 var(--font-ui); color: var(--ink-soft); transition: background-color .2s ease, color .2s ease;
}
.aside-tablist [aria-selected="true"] { background: var(--surface); color: var(--passport); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 18%, transparent); }
.toc-panel h2 { font-size: var(--step-0); margin: 0 0 10px; }
@media (max-width: 1023px) {
  .aside-tablist, .aside-tabs .toc-panel { display: none; }
  .aside-tabs .step-nav[hidden] { display: block; }
  .aside-tabs:not(:has(.step-nav)) { display: none; }
}
.lesson-read { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.lesson-read span { display: block; height: 100%; background: var(--passport); transform: scaleX(0); transform-origin: left; }

/* ---------- HP: bagian bawah layar lebih ringkas ---------- */
@media (max-width: 1000px) {
  .buy-bar { bottom: calc(80px + env(safe-area-inset-bottom)); padding: 0 10px; }
  .buy-bar-inner { max-width: none; border-radius: 16px; }
  .buy-bar-link { min-height: 44px; padding: 4px 4px 4px 14px; }
  .buy-bar-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
  .buy-bar-text strong { font-size: 0.875rem; }
  .buy-bar-text span { font-size: 0.75rem; }
  .buy-bar-btn { padding: 8px 12px; font-size: 0.8125rem; }
  .dock-install { min-height: 44px; padding: 4px 10px 4px 12px; flex-direction: row; gap: 6px; }
  .dock-install-label br { display: none; }
  body:has(.buy-bar:not([hidden])) .app-shell { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  .rukun-pill { transition: translate .25s var(--ease-out), filter .25s ease; }
  body.is-scrolling .rukun-pill { translate: 0 14px; filter: opacity(0); pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .rukun-pill { transition: none; } }

/* ---------- Profil & akses ---------- */
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; align-items: start; }
.account-card { padding: 20px 22px; border-radius: 22px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.account-card h2 { font-size: var(--step-1); margin: 0 0 10px; }
.account-card .form { margin: 0; max-width: none; }
.account-big { margin: 0; font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; }
.account-sub { margin: 6px 0 14px; font-size: var(--step--1); color: var(--ink-soft); }
.account-access { background: linear-gradient(150deg, #0f5a47 0%, #0a3f32 85%); color: #eef6f2; border: 0; }
.account-access .account-sub { color: #b9d2c8; }
.account-access .btn { background: var(--glass-gold); border-color: var(--glass-gold); color: #10261f; }
.account-access .btn.btn-quiet { background: transparent; color: var(--glass-gold); }
.account-devices { margin-top: 16px; }
.trip-card { margin-top: 16px; max-width: none; }
.account-danger { margin: 24px 0 0; font-size: var(--step--1); }
@media (max-width: 760px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }

/* Bilah atas di HP: nama dan tombol tetap satu baris. */
.top-brand span, .top-signup { white-space: nowrap; }
@media (max-width: 1000px) { .top-signup { padding: 8px 14px; } }
@media (max-width: 400px) { .top-brand span { display: none; } }

/* ---------- Kode referal mitra ---------- */
.ref-field { margin: 18px 0 4px; }
.ref-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.ref-field label small { font-weight: 500; color: var(--ink-soft); }
.ref-row { display: flex; gap: 8px; align-items: stretch; max-width: 420px; }
.ref-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ref-row .btn { flex: none; }
.ref-ok { margin: 8px 0 0; font-size: var(--step--1); font-weight: 600; color: var(--passport); }
.ref-help { margin: 8px 0 0; font-size: var(--step--1); color: var(--ink-soft); }

.partner-share { margin: 18px 0; padding: 18px 20px; border-radius: 22px; color: #eef6f2; background: linear-gradient(150deg, #0f5a47 0%, #0a3f32 85%); }
.partner-share h2 { margin: 0 0 10px; font-size: var(--step-1); color: var(--glass-gold); }
.partner-share p { margin: 10px 0 0; font-size: var(--step--1); color: #b9d2c8; }
.partner-link { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.partner-link code { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-size: var(--step--1); }
.partner-link .btn { background: var(--glass-gold); border-color: var(--glass-gold); color: #10261f; }
.partner-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.partner-stats div { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.partner-stats span { font-size: 0.75rem; color: var(--ink-soft); }
.partner-stats strong { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.partner-stats .is-owed { border-color: var(--passport); background: var(--passport-soft); }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.partner-card { margin-bottom: 16px; padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); min-width: 0; }
.partner-card h2 { margin: 0 0 10px; font-size: var(--step-1); }
.partner-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.partner-table th { text-align: left; font-weight: 600; color: var(--ink-soft); font-size: 0.75rem; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.partner-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-variant-numeric: tabular-nums; }
.partner-empty, .partner-note { font-size: var(--step--1); color: var(--ink-soft); }
@media (max-width: 860px) {
  .partner-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-stats .is-owed { grid-column: 1 / -1; }
  .partner-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Metode bayar dan tombol di halaman tambahan ---------- */
.prose .pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 1.2em; max-width: 440px; }
.prose .pay-logo {
  display: flex; align-items: center; justify-content: center; height: 64px; padding: 14px 18px;
  border-radius: var(--radius-m); border: 1px solid var(--line);
  /* Logo merek dibuat untuk latar terang, jadi kotaknya tetap putih di mode gelap. */
  background: #fff center / auto 30px no-repeat; background-origin: content-box;
}
.prose .pay-va { grid-column: 1 / -1; font: 700 var(--step--1)/1.2 var(--font-ui); color: #141a18; }
.prose .pay-qris { background-image: url("../img/bayar/qris.7d5b82f370e5.svg"); }
.prose .pay-gopay { background-image: url("../img/bayar/gopay.cb0ea0ede897.svg"); }
.prose .pay-ovo { background-image: url("../img/bayar/ovo.c3c8c623f42b.svg"); background-size: auto 24px; }
.prose .pay-dana { background-image: url("../img/bayar/dana.917283598f9b.svg"); background-size: auto 26px; }
.prose .pay-shopeepay { background-image: url("../img/bayar/shopeepay.e5d8971d332c.svg"); background-size: contain; }
.prose .pay-linkaja { background-image: url("../img/bayar/linkaja.503a89276467.svg"); background-size: auto 34px; }
.prose .pay-visa { background-image: url("../img/bayar/visa.3763fafd1d16.svg"); background-size: auto 22px; }
.prose .pay-mastercard { background-image: url("../img/bayar/mastercard.a85bf6e71786.svg"); background-size: auto 34px; }
.prose .pay-alfamart { background-image: url("../img/bayar/alfamart.155ed9bb53e0.svg"); background-size: contain; }
.prose .pay-indomaret { background-image: url("../img/bayar/indomaret.a363fcc6c7ab.png"); background-size: auto 28px; }
.prose .cta-row { margin: 1.4em 0; }
.prose .cta-row a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid var(--passport); background: var(--passport); color: var(--passport-ink);
  font: 700 var(--step-0)/1.2 var(--font-ui); text-decoration: none;
}
.prose .cta-row a:hover { filter: brightness(1.08); }

/* Layar lebar: harga sudah ada di bilah atas, jadi bar beli melayang hanya untuk HP. */
@media (min-width: 1001px) { .buy-bar { display: none; } body:has(.buy-bar:not([hidden])) { padding-bottom: 0; } }

/* Beranda di HP: daftar panjang jadi baris geser (scroll-snap), supaya halaman tidak memanjang. */
@media (max-width: 760px) {
  .risk-list, .who-list {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 320px); gap: 12px;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; border: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .risk-list::-webkit-scrollbar, .who-list::-webkit-scrollbar { display: none; }
  .risk-list li, .who-list li {
    scroll-snap-align: start; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  }
  .risk-list li { border-top: 3px solid var(--warn); }
  .who-list li { align-content: start; }
}
