/* ═══════════════════════════════════════════════════════════════
   RBV BOOKLY | BOOKBOUND EDITORIAL LANDING PAGE
   Palet brand: burgundy #7B1113 + ivory #FAF8F3 (PRD v1.7)
   Display: Playfair Display · Body: Inter
   ═══════════════════════════════════════════════════════════════ */

:root {
  --burgundy: #7B1113;
  --burgundy-deep: #5C0C0E;
  --burgundy-soft: #A94A4C;
  --rose-soft: #F5DDDE;
  --ivory: #FAF8F3;
  --ivory-warm: #F4F1EA;
  --ivory-bright: #FFFDF9;
  --ink: #24211F;
  --ink-soft: #6F6962;
  --line: #E8E2D8;
  --gold: #C9A96A;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(92, 12, 14, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1120px, 92%); margin-inline: auto; }

.skip {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--burgundy); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 10px; transition: top .2s;
}
.skip:focus { top: 0; }

/* ─── Reveal on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay { transition-delay: .12s; }

/* ═══════════ NAV ═══════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .25s;
}
.nav.nav--scrolled { box-shadow: 0 10px 30px -18px rgba(36, 33, 31, 0.25); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--burgundy); color: var(--ivory-bright);
  box-shadow: 0 6px 16px -6px rgba(123, 17, 19, 0.55);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__mark--img img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; display: block; }
.brand__text { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .2px; color: var(--burgundy); }
.brand__text em { font-style: normal; color: var(--ink); }

.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav__links a { color: var(--ink-soft); transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--burgundy); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
  background: var(--burgundy); transition: width .25s;
}
.nav__links a:hover::after { width: 100%; }
.nav__links .nav__cta {
  color: var(--burgundy); border: 1.5px solid var(--burgundy);
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.nav__links .nav__cta:hover { background: var(--burgundy); color: #fff; }
.nav__links .nav__cta::after { display: none; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; border-radius: 10px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4.5px 0; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__backdrop {
  position: fixed; inset: 68px 0 0; z-index: 98;
  background: rgba(36, 33, 31, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.nav__backdrop.show { opacity: 1; pointer-events: auto; }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
  padding: 84px 0 40px;
}
.hero__copy { position: relative; z-index: 2; }
.hero__eyebrow, .section-head__eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--burgundy-soft);
  margin-bottom: 18px;
}
.hero__eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 1.5px;
  background: var(--gold); vertical-align: middle; margin-right: 10px;
}
.hero__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 62px); line-height: 1.08;
  letter-spacing: -0.5px; color: var(--ink);
}
.hero__title em { font-style: italic; color: var(--burgundy); }
.hero__sub {
  margin-top: 22px; font-size: 17px; color: var(--ink-soft);
  max-width: 46ch; line-height: 1.7;
}
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15.5px; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--burgundy); color: #fff; box-shadow: 0 14px 30px -12px rgba(123, 17, 19, 0.6); }
.btn--primary:hover { background: var(--burgundy-deep); box-shadow: 0 18px 36px -12px rgba(123, 17, 19, 0.65); }

.btn--ghost { border-color: var(--burgundy); color: var(--burgundy); background: transparent; }
.btn--ghost:hover { background: var(--rose-soft); }

.hero__points { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.hero__points li { font-size: 14px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; }
.hero__check {
  position: relative; display: inline-block; width: 19px; height: 19px; flex: none;
  border-radius: 50%; background: var(--rose-soft);
}
.hero__check::after {
  content: ''; position: absolute; left: 5px; top: 3px;
  width: 6px; height: 10px;
  border: solid var(--burgundy); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Phone mockup */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 272px; border-radius: 40px;
  padding: 11px; background: var(--ink);
  box-shadow: var(--shadow), 0 0 0 1px rgba(36, 33, 31, 0.08);
}
.phone__screen {
  border-radius: 30px; overflow: hidden; aspect-ratio: 9 / 19.5;
  background: var(--ivory);
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__shadow {
  position: absolute; inset: 6% -14% -16%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(123,17,19,.28), transparent 65%);
  filter: blur(6px);
}
.phone--sm { width: 208px; border-radius: 30px; padding: 8px; box-shadow: 0 16px 40px -18px rgba(92,12,14,.4); }
.phone--sm .phone__screen { border-radius: 22px; }

.hero__float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ivory-bright); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 15px;
  font-size: 13px; font-weight: 600; color: var(--burgundy);
  box-shadow: 0 16px 34px -14px rgba(92, 12, 14, 0.35);
  animation: floaty 5.5s ease-in-out infinite;
}
.hero__float svg { width: 18px; height: 18px; }
.hero__float--a { top: 6%; left: 2%; }
.hero__float--b { bottom: 12%; right: 0; animation-delay: 2.2s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
  width: min(1120px, 92%); margin-inline: auto;
}

/* ═══════════ SECTIONS COMMON ═══════════ */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 56px; }
.section-head__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.3px;
}
.section-head__title em { font-style: italic; color: var(--burgundy); }
.section-head__sub { margin-top: 14px; color: var(--ink-soft); font-size: 16px; }

/* ═══════════ FITUR ═══════════ */
.features { background: var(--ivory-bright); border-top: 1px solid var(--line); }
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature {
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -22px rgba(92, 12, 14, 0.28);
  border-color: rgba(123, 17, 19, 0.3);
}
.feature__icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--rose-soft); color: var(--burgundy);
  margin-bottom: 18px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

/* ═══════════ GALERI ═══════════ */
.gallery { overflow: hidden; }
.gallery__row {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
}
.gallery .phone--sm { transition: transform .25s; }
.gallery .phone--sm:hover { transform: translateY(-8px) rotate(-1deg); }
.gallery__dots {
  display: none; justify-content: center; gap: 7px; margin-top: 20px;
}
.gallery__dots span {
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--line); transition: width .3s ease, background .3s ease;
}
.gallery__dots span.active {
  width: 22px; background: var(--burgundy);
}

/* ═══════════ CERITA ═══════════ */
.story { background: var(--burgundy); color: var(--ivory-warm); position: relative; overflow: hidden; }
.story::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 320px at 90% -10%, rgba(169,74,76,.35), transparent 60%),
    radial-gradient(520px 300px at 0% 110%, rgba(201,169,106,.18), transparent 60%);
}
.story__inner { position: relative; max-width: 720px; margin-inline: auto; }
.story .section-head__title { color: var(--ivory-bright); }
.story__quote {
  font-family: var(--serif); font-size: 96px; line-height: 1; color: var(--gold);
  height: 40px; margin-bottom: 6px;
}
.story__body { margin-top: 10px; display: grid; gap: 20px; }
.story__body p { font-size: 16.5px; line-height: 1.85; color: rgba(250, 248, 243, 0.92); }
.story__sign {
  font-family: var(--serif); font-style: italic; font-size: 18px !important;
  color: var(--gold) !important; margin-top: 8px;
}

/* ═══════════ UNDUH ═══════════ */
.download .download__card {
  max-width: 640px; margin-inline: auto; text-align: center;
  background: var(--ivory-bright); border: 1px solid var(--line);
  border-radius: 26px; padding: 56px 44px;
  box-shadow: 0 30px 70px -30px rgba(92, 12, 14, 0.35);
  position: relative; overflow: hidden;
}
.download__card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold), var(--burgundy));
}
.download__title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.6vw, 38px);
}
.download__sub { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }
.download__actions { margin-top: 30px; }
.btn--lg { padding: 18px 38px; font-size: 17px; }
.btn__meta {
  font-size: 12px; font-weight: 500; opacity: .75;
  border-left: 1px solid rgba(255,255,255,.35); padding-left: 10px; margin-left: 2px;
}
.download__note { margin-top: 18px; font-size: 13px; color: var(--ink-soft); }

/* ═══════════ DUKUNG ═══════════ */
.support { background: var(--ivory-warm); border-top: 1px solid var(--line); }
.support__inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center;
}
.support__copy p:not(.section-head__eyebrow) { color: var(--ink-soft); font-size: 15.5px; margin-top: 14px; line-height: 1.75; }
.support__action { text-align: center; }
.btn--support {
  background: #f7c948; color: #4a3300; font-size: 16.5px; padding: 16px 30px;
  box-shadow: 0 16px 34px -14px rgba(201, 169, 106, 0.8);
  border: none;
}
.btn--support:hover { background: #ffd75e; transform: translateY(-2px); }
.support__note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--ink); color: rgba(250, 248, 243, 0.75); padding: 44px 0; }
.footer__inner { text-align: center; display: grid; gap: 10px; justify-items: center; }
.footer .brand__text { color: var(--ivory-warm); }
.footer .brand__text em { color: var(--gold); }
.footer__note { font-size: 13px; max-width: 60ch; }
.footer__meta { font-size: 12.5px; color: rgba(250, 248, 243, 0.5); }
.footer__meta span { color: var(--burgundy-soft); }
.footer__heart {
  width: 14px; height: 14px; vertical-align: -2px;
  fill: var(--burgundy-soft);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding-top: 56px; gap: 56px; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__points { justify-content: center; }
  .hero__eyebrow::before { display: none; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .support__inner { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .nav__links {
    position: fixed; top: 68px; right: 0; left: 0; z-index: 99;
    flex-direction: column; gap: 2px; padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
    background: var(--ivory-bright); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px -28px rgba(36, 33, 31, 0.35);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .32s cubic-bezier(.22,.9,.28,1), opacity .28s ease;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a {
    width: 100%; padding: 13px 6px; font-size: 16px; border-radius: 12px;
    opacity: 0; transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s ease, background .2s;
  }
  .nav__links.open a { opacity: 1; transform: none; }
  .nav__links.open a:nth-child(1) { transition-delay: .04s; }
  .nav__links.open a:nth-child(2) { transition-delay: .08s; }
  .nav__links.open a:nth-child(3) { transition-delay: .12s; }
  .nav__links.open a:nth-child(4) { transition-delay: .16s; }
  .nav__links a:hover, .nav__links a:active { background: var(--rose-soft); }
  .nav__links .nav__cta { text-align: center; margin-top: 8px; }
  .nav__toggle { display: block; }
  .features__grid { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 26px 22px; }
  .gallery__row {
    display: flex; gap: 14px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 4px 4px 18px;
    margin-inline: -6%;
    padding-inline: 6%;
    scrollbar-width: none;
  }
  .gallery__row::-webkit-scrollbar { display: none; }
  .gallery .phone--sm {
    flex: 0 0 62%;
    max-width: 232px;
    scroll-snap-align: center;
  }
  .gallery .phone--sm:last-child { margin-right: 6%; }
  .gallery__dots { display: flex; }
  .hero { padding-top: 8px; }
  .hero__inner { padding-top: 40px; gap: 44px; }
  .hero__title { font-size: clamp(34px, 9.5vw, 44px); line-height: 1.12; }
  .hero__sub { font-size: 15.5px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__points { gap: 14px; margin-top: 22px; }
  .hero__float { display: none; }
  .phone { width: 244px; }
  .story__body p { font-size: 15.5px; }
  .download__card { padding: 40px 22px; border-radius: 22px; }
  .download__actions .btn--lg { width: 100%; justify-content: center; padding: 17px 22px; }
  .support__inner { gap: 30px; }
  .support__action .btn--support { width: 100%; justify-content: center; }
  .footer { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
  .footer__note { font-size: 12.5px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__float { animation: none; }
  * { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
