/* Buku Tamu Digital — halaman produk. Mobile-first; diuji untuk Chrome Android dan Safari iOS.
   Tanpa gaya inline & tanpa sumber luar (sesuai CSP situs). */
:root {
  --paper: #fbf6f3; --card: #ffffff; --ink: #211a1b; --ink-2: #524345; --line: #e3d3d3; --alt: #f4e9e6;
  --brand: #8e4457; --brand-deep: #5e2434; --brand-soft: #fadde3; --on-brand: #ffffff;
  --gold: #ffd27a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", "Droid Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #181213; --card: #211a1b; --ink: #f1e6e6; --ink-2: #cdbcbe; --line: #3b2f31; --alt: #1f1819;
          --brand: #ffb1c1; --on-brand: #561d2c; --brand-soft: #4a2230; }
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { max-width: 100%; overflow-x: clip; overflow-wrap: break-word; }
.hero-in, .grid, .plans, .steps, .cta, .foot .wrap { grid-template-columns: minmax(0, 1fr); }
.hero-copy, .hero-shot, .grid li, .plan, .steps li, .os, .callout { min-width: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 720px; }

/* bilah atas */
.top { position: sticky; top: 0; z-index: 10; background: var(--brand-deep); color: #fff; padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand img { border-radius: 8px; }
.top-link { display: inline-flex; align-items: center; min-height: 48px; font-size: .9rem; text-decoration: none; opacity: .85; padding: 0 0 0 12px; }

/* hero */
.hero { background: linear-gradient(180deg, #8e4457 0%, #5e2434 100%); color: #fff; overflow: hidden; }
.hero-in { display: grid; gap: 32px; padding-top: 36px; padding-bottom: 0; }
.app-icon { border-radius: 22px; box-shadow: 0 10px 30px rgb(0 0 0 / .3); margin-bottom: 20px; }
.hero h1 { font: 600 clamp(2.4rem, 9vw, 4rem)/1.05 var(--serif); letter-spacing: -.01em; }
.lead { margin-top: 14px; font-size: 1.125rem; max-width: 34ch; opacity: .92; }
.cta { margin-top: 24px; display: grid; gap: 14px; justify-items: start; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; }
.btn-main { background: #fff; color: var(--brand-deep); }
.btn-ghost { border: 2px solid rgb(255 255 255 / .55); color: #fff; }
.btn:active { transform: translateY(1px); }
.note { margin-top: 10px; font-size: .9rem; opacity: .85; max-width: 38ch; }
.callout { background: rgb(255 255 255 / .14); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; max-width: 42ch; }
.callout span { font-size: .93rem; opacity: .92; }

/* tampilan per sistem operasi: tanpa JS semuanya tampil, dengan JS hanya yang cocok */
html[data-os="android"] .os-ios, html[data-os="android"] .os-other,
html[data-os="ios"] .os-android, html[data-os="ios"] .os-other,
html[data-os="other"] .os-android, html[data-os="other"] .os-ios { display: none; }

/* bingkai HP */
.phone { background: #111; border-radius: 34px; padding: 8px; box-shadow: 0 24px 50px -16px rgb(0 0 0 / .55); }
.phone img { border-radius: 27px; width: 100%; }
.hero-shot { display: flex; justify-content: center; align-items: flex-end; }
.hero-shot .phone { width: min(264px, 70vw); border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.hero-shot .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* bagian */
.sec { padding: 56px 0; }
.alt { background: var(--alt); }
h2 { font: 600 clamp(1.6rem, 5.5vw, 2.3rem)/1.15 var(--serif); letter-spacing: -.005em; }
.sub { margin-top: 10px; color: var(--ink-2); max-width: 56ch; }
.tag { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.fine { margin-top: 18px; font-size: .9rem; color: var(--ink-2); }

/* tangkapan layar: satu HP penuh per layar, geser ke samping; layar panjang digulir DI DALAM bingkai */
.pager { margin-top: 24px; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; outline-offset: -3px; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; justify-items: center; align-content: start; gap: 14px; padding: 4px 20px 8px; }
.slide figcaption { font-size: .95rem; color: var(--ink-2); text-align: center; max-width: 30ch; }
.slide figcaption b { display: block; color: var(--ink); font-size: 1.05rem; }
.slide .phone { position: relative; width: min(280px, 100%); }
.screen { border-radius: 27px; overflow: hidden; background: #000; }
.screen img { width: 100%; height: auto; border-radius: 0; }
.screen.scroll { height: min(540px, 72vh); height: min(540px, 72svh); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; touch-action: pan-y; scrollbar-width: thin; }
.hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); background: rgb(0 0 0 / .72); color: #fff; font-size: .82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; pointer-events: none; transition: opacity .4s; white-space: nowrap; }
.hint.gone { opacity: 0; }
.pager-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
.pager-nav[hidden] { display: none; }
.pn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.pn:active { transform: scale(.96); }
.count { min-width: 56px; text-align: center; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .slide { flex-basis: 50%; } }
@media (min-width: 1000px) { .slide { flex-basis: 33.3333%; } }
/* fitur */
.grid { margin-top: 28px; display: grid; gap: 14px; }
.grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.grid svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.grid h3 { margin-top: 12px; font-size: 1.1rem; }
.grid p { margin-top: 6px; color: var(--ink-2); font-size: .97rem; }

/* langkah */
.steps { margin-top: 26px; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; gap: 2px; padding-left: 58px; position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 600 1.25rem/42px var(--serif); text-align: center; }
.steps b { font-size: 1.08rem; }
.steps span { color: var(--ink-2); }

/* harga */
.plans { margin-top: 26px; display: grid; gap: 14px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.plan-hi { border: 2px solid var(--brand); }
.plan h3 { font-size: 1.05rem; color: var(--ink-2); }
.price { margin-top: 6px; font: 600 2rem/1.1 var(--serif); }
.price span { font: 400 1rem var(--sans); color: var(--ink-2); margin-left: 6px; }
.plan-note { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }

/* tanya jawab */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; list-style: none; position: relative; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--brand); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 18px; color: var(--ink-2); }

/* kaki */
.foot { background: var(--brand-deep); color: #fff; padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot .wrap { display: grid; gap: 12px; justify-items: start; }
.foot img { border-radius: 10px; }
.foot .fine { margin: 0; color: rgb(255 255 255 / .75); }

/* layar lebar */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; padding-top: 64px; }
  .hero-copy { padding-bottom: 64px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
