
/* ==================================================
   PUTERI PERTIWI SURABAYA 2027
   LUXURY BURGUNDY • MAROON • GOLD
   ================================================== */

:root {
  --burgundy: #4A0E1D;
  --maroon: #650D20;
  --wine: #811D34;
  --wine-light: #9C3046;
  --gold: #C6A15B;
  --gold-light: #E8D5A0;
  --gold-dark: #9D7535;
  --ivory: #FFF9F0;
  --paper: #FFFDF9;
  --ink: #351820;
  --muted: #77656A;
  --line: rgba(198, 161, 91, 0.48);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  background:
    radial-gradient(ellipse at 50% 0%, #6B2030 0%, transparent 55%),
    linear-gradient(145deg, #350611, #4A0E1D 60%, #2C0711);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ==================================================
   HEADER
   ================================================== */

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px clamp(15px, 4vw, 54px);
  background: linear-gradient(
    110deg,
    #350611,
    #650D20 58%,
    #4A0E1D
  );
  color: var(--ivory);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 6px 24px rgba(20, 0, 5, 0.2);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ivory);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mini-brand img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
  padding: 1px;
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.15);
}

.mini-brand small {
  display: block;
  margin-top: 3px;
  color: var(--gold-light);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}

.top-note {
  color: var(--gold-light);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

.top-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  color: var(--burgundy);
  background: linear-gradient(135deg, #E8D5A0, #B88B3E);
  border: 1px solid #F1DCA6;
  border-radius: 2px;
  font-size: 0.76rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.top-register:hover {
  background: #F2DFAD;
  transform: translateY(-2px);
}

/* ==================================================
   JUDUL WEBSITE
   ================================================== */

.reader {
  max-width: 1320px;
  margin: auto;
  padding: 30px 20px 42px;
}

.reader-heading {
  text-align: center;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--wine);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.reader-heading .eyebrow {
  color: var(--gold-light);
}

.reader-heading h1 {
  margin: 0;
  color: var(--ivory);
  font: 500 clamp(2rem, 4vw, 3.1rem)/1.08 var(--serif);
}

.reader-heading h1 span {
  color: var(--gold);
}

.reader-heading > p:last-child {
  margin: 9px 0 0;
  color: #E7D4D1;
  font-size: 0.8rem;
}

/* ==================================================
   AREA FLIPBOOK
   ================================================== */

.book-stage {
  display: grid;
  grid-template-columns: 42px minmax(0, 1000px) 42px;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.book {
  position: relative;
  width: 100%;
  aspect-ratio: 1.48 / 1;
  min-height: 480px;
  max-height: 680px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow:
    0 25px 65px rgba(20, 0, 5, 0.25),
    0 5px 15px rgba(20, 0, 5, 0.12);
}

.page {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: clamp(26px, 4vw, 48px);
  color: var(--ink);
  background:
    radial-gradient(
      ellipse at top right,
      rgba(198, 161, 91, 0.08),
      transparent 42%
    ),
    linear-gradient(145deg, #FFFEFC, #FBF5EF);
  animation: pageIn 0.22s ease;
}

.page.active {
  display: block;
}

.page::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(198, 161, 91, 0.48);
  pointer-events: none;
}

.page > * {
  position: relative;
}

.page-number {
  position: absolute !important;
  right: 25px;
  bottom: 17px;
  color: var(--wine);
  font: 600 0.9rem var(--serif);
}

.page-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 9px;
  color: var(--wine);
  border-bottom: 1px solid var(--line);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.page-kicker span {
  color: var(--gold-dark);
  font: 600 0.95rem var(--serif);
}

.page h2 {
  margin: 0 0 15px;
  color: var(--burgundy);
  font: 600 clamp(1.9rem, 3.6vw, 3.1rem)/1.05 var(--serif);
}

.page h2 em {
  color: var(--wine);
  font-weight: 500;
}

.page h3 {
  color: var(--burgundy);
  font-family: var(--serif);
}

.page p {
  overflow-wrap: break-word;
}

/* ==================================================
   HALAMAN 01 — COVER
   ================================================== */

.cover-page {
  color: var(--ivory);
  background:
    radial-gradient(
      ellipse at 85% 15%,
      rgba(198, 161, 91, 0.17),
      transparent 38%
    ),
    linear-gradient(130deg, #350611, #4A0E1D 54%, #74172A);
  border: 2px solid var(--gold);
}

.cover-page::before {
  border-color: rgba(232, 213, 160, 0.48);
}

.cover-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 12px 14px 24px;
}

.cover-copy {
  min-width: 0;
  padding-left: 14px;
}

.cover-overline {
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.cover-page h2,
.cover-page .cover-copy h2 {
  margin: 0;
  color: var(--ivory);
  font: 600 clamp(2.3rem, 4.5vw, 4.2rem)/0.98 var(--serif);
  letter-spacing: -0.035em;
}

.cover-page h2 span {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 0.52em;
  letter-spacing: 0.02em;
}

.red-rule {
  width: 62px;
  height: 3px;
  margin: 22px 0 18px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
}

.cover-theme {
  margin: 0;
  color: var(--ivory);
  font: 600 clamp(1.15rem, 2.4vw, 2rem)/1.12 var(--serif);
}

.cover-theme em {
  color: var(--gold-light);
  font-weight: 500;
}

.cover-values {
  margin-top: 22px;
  color: #E6D1C7;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.cover-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

/* Logo cover: ukuran besar dan bingkai emas */
.cover-page .cover-logo {
  display: block;
  width: clamp(125px, 15vw, 175px);
  height: clamp(125px, 15vw, 175px);
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  background: #FFFDF8;
  border: 3px solid var(--gold);
  border-radius: 50%;
  padding: 2px;
  box-shadow:
    0 0 0 5px rgba(198, 161, 91, 0.15),
    0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Foto cover: menjaga foto utuh dalam bingkai */
.cover-page .cover-finalists {
  display: block;
  width: 100%;
  height: clamp(230px, 31vw, 340px);
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  background: #F3EAE3;
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 0;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.cover-page .page-number {
  color: var(--gold-light);
}

/* ==================================================
   HALAMAN 02 — WELCOME
   ================================================== */

.welcome-layout {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: center;
  gap: 25px;
  height: calc(100% - 40px);
  min-width: 0;
}

.welcome-layout p:not(.eyebrow) {
  color: #554348;
  font-size: clamp(0.7rem, 1vw, 0.86rem);
  line-height: 1.75;
}

.welcome-layout > img {
  display: block;
  width: 100%;
  height: 78%;
  max-height: 350px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--gold);
  border-radius: 3px;
  box-shadow: 0 14px 30px rgba(55, 9, 22, 0.12);
}

.signature {
  margin-top: 20px;
  color: var(--wine);
  font: italic 1.25rem var(--serif);
}

.photo-note {
  margin: 8px 0 0;
  color: #806D67;
  font-size: 0.58rem !important;
  font-style: italic;
}

/* ==================================================
   HALAMAN 03 — ABOUT THE EVENT
   ================================================== */

.about-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.8fr;
  align-items: center;
  gap: 24px;
  height: calc(100% - 40px);
  min-width: 0;
}

.about-layout p:not(.eyebrow) {
  color: #554348;
  font-size: clamp(0.7rem, 1vw, 0.86rem);
  line-height: 1.75;
}

.about-layout .about-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 390px;
  object-fit: contain;
  object-position: center;
  background: #F3EAE3;
  border: 1px solid var(--gold);
  border-radius: 3px;
  box-shadow: 0 14px 32px rgba(55, 9, 22, 0.14);
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.values span {
  padding: 5px 9px;
  color: var(--burgundy);
  background: rgba(198, 161, 91, 0.09);
  border: 1px solid var(--line);
  font-size: 0.56rem;
}

/* ==================================================
   HALAMAN KATEGORI
   ================================================== */

.page-title {
  margin-bottom: 20px !important;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.category-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(145deg, #FFFCF7, #F5E9DF);
  border: 1px solid var(--gold);
  box-shadow: 0 10px 24px rgba(60, 10, 24, 0.07);
}

.category-dark {
  color: var(--ivory);
  background:
    radial-gradient(circle at top right, #8B3444, transparent 48%),
    linear-gradient(135deg, #74172A, #350611);
  border-color: var(--gold);
}

.category-number {
  position: absolute;
  top: 9px;
  left: 15px;
  color: var(--gold-dark);
  font: 1.2rem var(--serif);
}

.category-symbol {
  color: var(--wine);
  font: 2.7rem var(--serif);
}

.category-dark .category-symbol {
  color: var(--gold-light);
}

.category-box h3 {
  margin: 0;
  color: var(--burgundy);
  font: 600 2.2rem var(--serif);
}

.category-dark h3 {
  color: var(--ivory);
}

.category-box .eyebrow {
  margin: 7px 0 0;
}

.age {
  margin: 0;
  color: var(--wine);
  font: 500 1rem var(--serif);
}

.category-dark .age {
  color: var(--gold-light);
}

.small-note {
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.6rem;
}

/* ==================================================
   HALAMAN THE JOURNEY
   ================================================== */

.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 18px;
  margin-top: 15px;
}

.journey-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
}

.journey-item > b {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: var(--gold-light);
  background: var(--burgundy);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font: 600 0.9rem var(--serif);
}

.journey-item h3 {
  margin: 0;
  color: var(--burgundy);
  font: 600 1.05rem var(--serif);
}

.journey-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.63rem;
}

/* ==================================================
   HALAMAN IMPORTANT DATES
   ================================================== */

.dates-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 25px;
  height: calc(100% - 40px);
  min-width: 0;
}

.dates-layout > div:first-child > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.date-photo {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center 30%;
  margin-top: 10px;
  border: 1px solid var(--gold);
  border-radius: 3px;
}

.date-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.date-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #FFFCF7;
  border: 1px solid var(--line);
}

.date-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 10px;
  color: var(--wine);
  border-right: 1px solid var(--line);
  line-height: 1;
}

.date-number small {
  font-size: 0.53rem;
  letter-spacing: 0.1em;
}

.date-number strong {
  margin: 4px 0;
  color: var(--burgundy);
  font: 600 2.2rem/0.98 var(--serif);
}

.date-card > div:last-child > span {
  color: var(--wine);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
}

.date-card h3 {
  margin: 3px 0 0;
  color: var(--burgundy);
  font: 600 1.25rem var(--serif);
}

/* ==================================================
   HALAMAN REGISTRATION & INVESTMENT
   ================================================== */

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 16px;
}

.price-box {
  padding: 22px 20px;
  background: linear-gradient(145deg, #FFFCF7, #F5E9DF);
  border: 1px solid var(--gold);
  box-shadow: 0 12px 28px rgba(60, 10, 24, 0.07);
}

.price-box h3 {
  margin: 0 0 8px;
  color: var(--burgundy);
  font: 600 1.35rem var(--serif);
}

.price {
  margin: 0;
  color: var(--wine);
  font: 600 clamp(1.8rem, 3.2vw, 2.8rem) var(--serif);
  letter-spacing: -0.035em;
}

.price-box-dark {
  color: var(--ivory);
  background:
    radial-gradient(circle at top right, #8B3444, transparent 55%),
    linear-gradient(135deg, #74172A, #350611);
  border-color: var(--gold);
}

.price-box-dark h3,
.price-box-dark .eyebrow {
  color: var(--gold-light);
}

.price-box-dark .price {
  color: var(--gold-light);
}

.price-explainer {
  max-width: 600px;
  color: var(--muted);
  font-size: 0.75rem;
}

.book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 18px;
  color: var(--burgundy);
  background: linear-gradient(135deg, #E8D5A0, #B88B3E);
  border: 1px solid #E8D5A0;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: 0.25s ease;
}

.book-button:hover {
  background: #F3E1B0;
  transform: translateY(-2px);
}

/* ==================================================
   HALAMAN BENEFITS
   ================================================== */

.benefit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 10px;
}

.benefit-columns h3 {
  margin: 10px 0 4px;
  padding-bottom: 5px;
  color: var(--burgundy);
  border-bottom: 1px solid var(--gold);
  font: 600 1.23rem var(--serif);
}

.benefit-columns ul {
  margin: 4px 0;
  padding-left: 17px;
  color: #554348;
  font-size: 0.66rem;
}

.benefit-columns li {
  padding: 2px 0;
}

.benefit-columns li::marker {
  color: var(--gold-dark);
}

/* ==================================================
   HALAMAN SPECIAL REWARDS
   ================================================== */

.reward-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 28px;
  height: calc(100% - 40px);
  min-width: 0;
}

.reward-layout > img {
  display: block;
  width: 100%;
  height: min(62vh, 390px);
  max-height: 390px;
  object-fit: contain;
  object-position: center;
  background: #F3EAE3;
  border: 1px solid var(--gold);
  border-radius: 3px;
  box-shadow: 0 14px 30px rgba(55, 9, 22, 0.13);
}

.reward-layout > div {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.reward-layout p:not(.eyebrow) {
  color: #554348;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  line-height: 1.8;
}

.reward-layout h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.12;
}

/* ==================================================
   HALAMAN PENUTUP
   ================================================== */

.closing-page {
  text-align: center;
  color: var(--ivory);
  background:
    radial-gradient(
      ellipse at 50% 12%,
      rgba(198, 161, 91, 0.2),
      transparent 42%
    ),
    linear-gradient(145deg, #350611, #650D20 55%, #811D34);
  border: 2px solid var(--gold);
}

.closing-page::before {
  border-color: rgba(232, 213, 160, 0.5);
}

.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 5px 0 12px;
}

.closing-logo {
  width: clamp(110px, 15vw, 165px);
  height: clamp(110px, 15vw, 165px);
  object-fit: contain;
  background: #FFFDF8;
  border: 2px solid var(--gold);
  border-radius: 50%;
  padding: 2px;
  margin-bottom: 12px;
}

.closing-page h2 {
  margin-bottom: 10px;
  color: var(--ivory);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.closing-page h2 em,
.closing-page .eyebrow {
  color: var(--gold-light);
}

.closing-page p:not(.eyebrow) {
  color: #F0DFD8;
  font-size: 0.78rem;
}

.contacts {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 13px auto;
}

.contacts a {
  min-width: 115px;
  padding: 9px 12px;
  color: var(--gold-light);
  background: rgba(53, 6, 17, 0.65);
  border: 1px solid var(--gold);
  font-weight: 700;
  transition: 0.2s ease;
}

.contacts a:hover {
  color: var(--burgundy);
  background: var(--gold-light);
}

.contacts small {
  display: block;
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 500;
}

.instagram {
  color: var(--gold-light);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* ==================================================
   NAVIGASI FLIPBOOK
   ================================================== */

.arrow {
  width: 42px;
  height: 54px;
  color: var(--gold-light);
  background: linear-gradient(145deg, #811D34, #350611);
  border: 1px solid var(--gold);
  box-shadow: 0 6px 18px rgba(20, 0, 5, 0.18);
  font: 2.2rem var(--serif);
  cursor: pointer;
  transition: 0.2s ease;
}

.arrow:hover {
  color: var(--burgundy);
  background: linear-gradient(145deg, #E8D5A0, #B88B3E);
  transform: translateY(-2px);
}

.arrow:disabled,
.control-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.reader-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 700px;
  margin: 18px auto 0;
  color: var(--gold-light);
}

.control-button {
  padding: 9px 13px;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid var(--gold);
  font-size: 0.7rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.control-button:hover:not(:disabled) {
  color: var(--burgundy);
  background: var(--gold-light);
}

.progress-area {
  width: 160px;
  text-align: center;
}

.progress-area > span {
  color: var(--gold-light);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
}

.progress-track {
  height: 3px;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.18);
}

.progress-track div {
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, var(--wine-light), var(--gold));
  transition: width 0.2s;
}

.keyboard-hint {
  margin: 12px 0 0;
  color: #E4CFCA;
  font-size: 0.64rem;
  text-align: center;
}

/* ==================================================
   FOOTER
   ================================================== */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 19px;
  color: var(--gold-light);
  background: #26040D;
  border-top: 1px solid var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
}

.footer small {
  color: #D9C0B7;
  font-size: 0.53rem;
}

/* ==================================================
   RESPONSIVE TABLET
   ================================================== */

@media (min-width: 1200px) {
  .book {
    height: min(62vw, 650px);
    aspect-ratio: 1.48 / 1;
  }

  .page {
    padding: 42px 48px;
  }
}

@media (max-width: 850px) {
  .book-stage {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 7px;
  }

  .book {
    height: 590px;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }

  .page {
    padding: 28px 25px;
  }

  .top-note {
    display: none;
  }

  .cover-grid {
    gap: 13px;
  }

  .cover-page h2 {
    font-size: clamp(2.2rem, 6vw, 3.7rem);
  }

  .cover-page .cover-logo {
    width: clamp(95px, 15vw, 140px);
    height: clamp(95px, 15vw, 140px);
  }

  .about-layout {
    gap: 16px;
  }

  .reward-layout {
    gap: 18px;
  }
}

/* ==================================================
   RESPONSIVE HP
   ================================================== */

@media (max-width: 600px) {
  .topbar {
    min-height: 67px;
    padding: 7px 11px;
  }

  .mini-brand {
    gap: 7px;
    font-size: 0.61rem;
  }

  .mini-brand img {
    width: 50px;
    height: 50px;
  }

  .mini-brand small {
    font-size: 0.5rem;
  }

  .top-register {
    padding: 10px 11px;
    font-size: 0.65rem;
  }

  .reader {
    padding: 21px 8px 30px;
  }

  .reader-heading {
    padding: 0 10px;
  }

  .reader-heading .eyebrow {
    font-size: 0.48rem;
    letter-spacing: 0.08em;
  }

  .reader-heading h1 {
    font-size: 2.1rem;
  }

  .reader-heading > p:last-child {
    font-size: 0.68rem;
  }

  .book-stage {
    grid-template-columns: 25px minmax(0, 1fr) 25px;
    gap: 4px;
  }

  .book {
    height: 650px;
    aspect-ratio: auto;
  }

  .page {
    padding: 25px 18px 35px;
  }

  .page::before {
    inset: 7px;
  }

  .page-kicker {
    margin-bottom: 17px;
    font-size: 0.49rem;
  }

  .page h2 {
    font-size: 2.15rem;
  }

  /* Cover HP */
  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 6px 8px 22px;
    text-align: center;
  }

  .cover-copy {
    padding: 0;
  }

  .cover-overline {
    margin-bottom: 10px;
    font-size: 0.49rem;
  }

  .cover-page h2 {
    font-size: 2.35rem;
    line-height: 0.95;
  }

  .red-rule {
    width: 46px;
    margin: 12px auto;
  }

  .cover-theme {
    font-size: 1.25rem;
  }

  .cover-values {
    margin-top: 10px;
    font-size: 0.42rem;
  }

  .cover-image {
    gap: 10px;
  }

  .cover-page .cover-logo {
    width: 92px;
    height: 92px;
  }

  .cover-page .cover-finalists {
    width: 100%;
    height: 210px;
    max-height: 210px;
    object-fit: contain;
  }

  /* Welcome dan About */
  .welcome-layout,
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    height: calc(100% - 35px);
    align-content: start;
  }

  .welcome-layout > img {
    order: -1;
    height: 190px;
    max-height: 190px;
    object-fit: cover;
  }

  .about-layout .about-photo {
    order: -1;
    height: 185px;
    max-height: 185px;
    object-fit: contain;
  }

  .welcome-layout p:not(.eyebrow),
  .about-layout p:not(.eyebrow) {
    margin-top: 7px;
    font-size: 0.72rem;
  }

  .signature {
    font-size: 1.1rem;
  }

  .values {
    gap: 5px;
    margin-top: 9px;
  }

  /* Kategori */
  .category-grid {
    gap: 9px;
    margin-top: 17px;
  }

  .category-box {
    min-height: 180px;
    padding: 12px 5px;
  }

  .category-box h3 {
    font-size: 1.8rem;
  }

  .category-symbol {
    font-size: 2.2rem;
  }

  .category-box .eyebrow {
    font-size: 0.48rem;
  }

  .age {
    font-size: 0.92rem;
  }

  .small-note {
    margin-top: 10px;
    font-size: 0.56rem;
  }

  /* Journey */
  .journey-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 7px;
  }

  .journey-item {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 0;
  }

  .journey-item > b {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }

  .journey-item h3 {
    font-size: 1rem;
  }

  .journey-item p {
    margin-top: 1px;
    font-size: 0.6rem;
  }

  /* Important Dates */
  .dates-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    height: calc(100% - 40px);
    align-content: start;
  }

  .dates-layout > div:first-child > p:not(.eyebrow) {
    margin: 5px 0;
    font-size: 0.68rem;
  }

  .date-photo {
    height: 120px;
    max-height: 120px;
    margin-top: 8px;
  }

  .date-list {
    gap: 7px;
  }

  .date-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 10px;
  }

  .date-number strong {
    font-size: 1.9rem;
  }

  .date-card h3 {
    font-size: 1.12rem;
  }

  .date-card > div:last-child > span {
    font-size: 0.48rem;
  }

  /* Biaya */
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-top: 15px;
  }

  .price-box {
    padding: 17px 15px;
  }

  .price-box h3 {
    font-size: 1.2rem;
  }

  .price {
    font-size: 2rem;
  }

  .price-explainer {
    margin: 9px 0;
    font-size: 0.68rem;
  }

  .book-button {
    padding: 11px 13px;
    font-size: 0.58rem;
  }

  /* Benefits */
  .benefit-columns {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 4px;
  }

  .benefit-columns h3 {
    margin: 7px 0 3px;
    font-size: 0.98rem;
  }

  .benefit-columns ul {
    margin: 3px 0;
    padding-left: 13px;
    font-size: 0.54rem;
  }

  .benefit-columns li {
    padding: 1px 0;
  }

  /* Rewards */
  .reward-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    height: calc(100% - 35px);
    align-content: start;
  }

  .reward-layout > img {
    height: 220px;
    max-height: 220px;
    object-fit: contain;
  }

  .reward-layout h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
  }

  .reward-layout p:not(.eyebrow) {
    font-size: 0.72rem;
    line-height: 1.65;
  }

  /* Closing */
  .closing-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
  }

  .closing-page h2 {
    font-size: 2rem;
  }

  .closing-page p:not(.eyebrow) {
    font-size: 0.7rem;
  }

  .contacts {
    gap: 7px;
    margin: 10px auto;
  }

  .contacts a {
    min-width: 0;
    flex: 1;
    padding: 8px 6px;
    font-size: 0.78rem;
  }

  /* Kontrol flipbook */
  .reader-controls {
    gap: 7px;
    margin-top: 14px;
  }

  .control-button {
    padding: 9px 7px;
    font-size: 0.59rem;
  }

  .progress-area {
    width: 80px;
  }

  .progress-area > span {
    font-size: 0.54rem;
  }

  .keyboard-hint {
    padding: 0 12px;
    font-size: 0.57rem;
  }

  .arrow {
    width: 25px;
    height: 45px;
    font-size: 1.8rem;
  }

  .page-number {
    right: 17px;
    bottom: 12px;
    font-size: 0.8rem;
  }
}

/* ==================================================
   AKSESIBILITAS ANIMASI
   ================================================== */

@keyframes pageIn {
  from {
    opacity: 0.65;
    transform: translateX(7px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =====================================
   FIX COVER PUTERI PERTIWI 2027
   Fokus: judul tidak terpotong dan foto
   memenuhi bingkai
===================================== */

/* Mencegah elemen cover melebar keluar */
.cover-page {
  overflow: hidden;
  box-sizing: border-box;
}

/* Area teks cover */
.cover-page .cover-copy {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Judul PUTERI PERTIWI agar tidak terpotong */
.cover-page .cover-copy h2 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
}

/* Bingkai foto finalis */
.cover-page .cover-finalists {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  border: 1px solid #C6A15B;
  border-radius: 3px;
}

/* Bingkai foto tidak menambah ruang di dalamnya */
.cover-page .cover-image {
  min-width: 0;
  box-sizing: border-box;
}

/* Logo tetap proporsional */
.cover-page .cover-logo {
  box-sizing: border-box;
}

/* Tampilan HP */
@media (max-width: 600px) {
  .cover-page .cover-copy h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .cover-page .cover-finalists {
    width: 100%;
    max-width: 100%;
  }
}


/* FIX KHUSUS FOTO SLIDE 2 */
.page[data-page="1"] .welcome-layout > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center top !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Bingkai menyesuaikan tinggi foto */
.page[data-page="1"] .welcome-layout {
    align-items: center !important;
}

.page[data-page="1"] .welcome-layout > img {
    min-width: 0 !important;
    border-radius: 3px;
}


/* FIX FOTO SLIDE 3 - ABOUT THE EVENT */
.page[data-page="2"] .about-layout .about-photo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.page[data-page="2"] .about-layout {
    align-items: center !important;
}


/* FINAL POLISH — SLIDE 6: IMPORTANT DATES */
.page[data-page="5"] .dates-layout {
    display: grid !important;
    grid-template-columns: 0.78fr 1.22fr !important;
    gap: 28px !important;
    align-items: center !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 22px !important;
}

.page[data-page="5"] .dates-layout > div:first-child {
    min-width: 0 !important;
}

.page[data-page="5"] .dates-layout h2 {
    font-size: clamp(2.4rem, 3.5vw, 3.5rem) !important;
    line-height: 0.98 !important;
    margin: 12px 0 16px !important;
}

.page[data-page="5"] .dates-layout > div:first-child > img {
    display: block !important;
    width: 100% !important;
    height: 210px !important;
    object-fit: cover !important;
    object-position: center 35% !important;
    border-radius: 4px !important;
    margin-top: 18px !important;
}

.page[data-page="5"] .dates-layout > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.page[data-page="5"] .dates-layout > div:last-child > div {
    min-height: 92px !important;
    padding: 15px 18px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}

.page[data-page="5"] .dates-layout > div:last-child h3 {
    margin: 0 !important;
    line-height: 1.15 !important;
}

.page[data-page="5"] .dates-layout > div:last-child p {
    margin-top: 0 !important;
    margin-bottom: 7px !important;
}

.page[data-page="5"] .dates-layout + p {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
}

@media (max-width: 700px) {
    .page[data-page="5"] .dates-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 18px !important;
    }

    .page[data-page="5"] .dates-layout > div:first-child > img {
        height: 190px !important;
    }

    .page[data-page="5"] .dates-layout > div:last-child > div {
        min-height: 82px !important;
    }
}


/* RAPIIKAN SLIDE 9 — SPECIAL REWARDS */
.page[data-page="8"] .reward-layout {
    display: grid !important;
    grid-template-columns: 0.95fr 1.05fr !important;
    align-items: center !important;
    gap: 26px !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 22px !important;
}

/* Bingkai foto mengikuti rasio foto */
.page[data-page="8"] .reward-layout > img {
    display: block !important;
    width: 100% !important;
    height: 390px !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid #C6A15B !important;
    border-radius: 4px !important;
    background: transparent !important;
}

/* Teks sejajar dengan foto */
.page[data-page="8"] .reward-layout > div {
    min-width: 0 !important;
    align-self: center !important;
}

.page[data-page="8"] .reward-layout h2 {
    font-size: clamp(2rem, 3.2vw, 3rem) !important;
    line-height: 1.05 !important;
    margin: 12px 0 16px !important;
    overflow-wrap: break-word !important;
}

.page[data-page="8"] .reward-layout p {
    line-height: 1.7 !important;
    margin-top: 0 !important;
}

/* Tampilan HP */
@media (max-width: 700px) {
    .page[data-page="8"] .reward-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page[data-page="8"] .reward-layout > img {
        height: 340px !important;
        object-fit: contain !important;
    }

    .page[data-page="8"] .reward-layout h2 {
        font-size: 2rem !important;
    }
}

/* PERBAIKAN FINAL FOTO SLIDE 9 */
.page[data-page="8"] .reward-layout {
    grid-template-columns: 0.9fr 1.1fr !important;
    align-items: center !important;
    gap: 32px !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 24px !important;
}

.page[data-page="8"] .reward-layout > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 460px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #C6A15B !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.page[data-page="8"] .reward-layout > div {
    min-width: 0 !important;
}

.page[data-page="8"] .reward-layout h2 {
    font-size: clamp(2rem, 3vw, 3rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: normal !important;
    margin: 12px 0 16px !important;
}

@media (max-width: 700px) {
    .page[data-page="8"] .reward-layout {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .page[data-page="8"] .reward-layout > img {
        width: 100% !important;
        height: auto !important;
        max-height: 420px !important;
        object-fit: contain !important;
    }
}

/* HILANGKAN GARIS TEPI FOTO SLIDE 9 */
.page[data-page="8"] .reward-layout > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 460px !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* Hilangkan garis atau padding dari pembungkus foto */
.page[data-page="8"] .reward-layout > div:has(img) {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* PERBAIKAN TAMPILAN HP */
@media (max-width: 600px) {
  .page {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    padding: 24px 18px 32px;
  }

  .cover-grid {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 18px;
    padding: 10px 8px 24px;
  }

  .cover-copy {
    padding: 0;
    width: 100%;
  }

  .cover-grid img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    position: relative;
  }

  .cover-page h2 {
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.05;
  }

  .page img {
    max-width: 100%;
  }

  .dates-layout {
    height: auto;
    align-content: start;
  }
}


/* Perbaikan khusus slide 3 di HP */
@media (max-width: 600px) {
  .page[data-page="2"] .cover-grid {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 16px;
    padding: 8px 4px 24px;
  }

  .page[data-page="2"] .cover-grid img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
  }

  .page[data-page="2"] .cover-copy {
    position: relative;
    padding: 0;
    width: 100%;
  }

  .page[data-page="2"] .cover-copy h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    line-height: 1.08;
    margin-top: 8px;
  }
}



/* PERBAIKAN FOTO SLIDE 3 DI HP */
@media (max-width: 600px) {
  .page[data-page="2"] .cover-grid img {
    width: 100%;
    height: 180px;
    max-height: 180px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto 16px;
  }
}


/* Slide 3 - foto lebih lembut dan tidak dominan */
@media (max-width: 600px) {
  .page[data-page="2"] .cover-grid img {
    opacity: 0.25 !important;
  }
}


/* FIX SLIDE 3 HP - FOTO LEBIH PENDEK */
@media (max-width: 600px) {
  .page[data-page="2"] .cover-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 0 24px !important;
  }

  .page[data-page="2"] .cover-grid img {
    position: relative !important;
    width: 100% !important;
    height: 180px !important;
    max-height: 180px !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    opacity: 1 !important;
    margin: 0 !important;
  }

  .page[data-page="2"] .cover-copy {
    position: relative !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .page[data-page="2"] .cover-copy h2 {
    margin-top: 8px !important;
    font-size: clamp(1.8rem, 7vw, 2.3rem) !important;
    line-height: 1.08 !important;
  }
}


/* PERBAIKAN TEKS SLIDE 2 */
.page[data-page="1"] {
  overflow-y: auto;
  padding-bottom: 38px;
}

.page[data-page="1"] p {
  overflow-wrap: break-word;
  line-height: 1.65;
}

.page[data-page="1"] .page-number {
  z-index: 5;
}



/* FIX SLIDE 2 - ruang teks lebih lega */
.page[data-page="1"] .cover-grid > img,
.page[data-page="1"] .cover-grid .cover-image,
.page[data-page="1"] .cover-grid img {
  max-height: 300px !important;
  height: 300px !important;
  object-fit: cover !important;
  object-position: center 35% !important;
}


/* FIX FOTO SLIDE 3 - tidak menimpa judul */
.page[data-page="2"] .cover-grid img,
.page[data-page="2"] .cover-image,
.page[data-page="2"] .intro-image {
  position: relative !important;
  width: 100% !important;
  height: 230px !important;
  max-height: 230px !important;
  object-fit: cover !important;
  object-position: center 25% !important;
  margin: 0 auto 18px !important;
  z-index: 0 !important;
}

.page[data-page="2"] .cover-grid,
.page[data-page="2"] .cover-copy {
  position: relative !important;
  min-height: 0 !important;
}

.page[data-page="2"] h1,
.page[data-page="2"] h2 {
  position: relative !important;
  z-index: 1 !important;
}


/* FIX FOTO SLIDE 3 DI HP */
@media (max-width: 600px) {
  .page[data-page="2"] .about-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    height: auto !important;
  }

  .page[data-page="2"] .about-layout .about-photo {
    order: 0 !important;
    width: 100% !important;
    height: 145px !important;
    min-height: 0 !important;
    max-height: 145px !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    margin: 8px 0 4px !important;
  }

  .page[data-page="2"] .about-layout h2 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    font-size: 1.8rem !important;
    line-height: 1.1 !important;
  }
}


/* PERBAIKAN FOTO SLIDE 3 - WAJAH JANGAN TERPOTONG */
@media (max-width: 600px) {
  .page[data-page="2"] .about-layout .about-photo {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    object-fit: cover !important;
    object-position: center 15% !important;
    margin: 12px 0 !important;
  }
}

/* RAPIIKAN FOTO SLIDE 9 DI HP */
@media (max-width: 600px) {
  .page[data-page="8"] .reward-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .page[data-page="8"] .reward-layout > img {
    width: 100% !important;
    height: 280px !important;
    min-height: 0 !important;
    max-height: 280px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
  }

  .page[data-page="8"] .reward-layout > div {
    min-width: 0 !important;
  }

  .page[data-page="8"] .reward-layout h2 {
    font-size: clamp(1.8rem, 7vw, 2.3rem) !important;
    line-height: 1.15 !important;
  }
}
