/* Font dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-color: #f5f3ef;        /* warna kertas tua */
  --text-primary: #3a3a3a;
  --text-secondary: #6b6863;
  --accent: #8d9f87;          /* hijau jade — warna dominan donghua */
  --highlight: #d4b996;       /* krem tanah liat */
  --paper: #f9f6f0;           /* putih kertas cat air */
  --river: #b8d4d4;           /* biru sungai lembut */
  --shadow: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden; /* aman di html */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f3ef; /* warna kertas tua lembut */
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCA4MDAgNjAwIj4KICA8IS0tIEthYnV0IC0tPgogIDxwYXRoIGQ9Ik0tNTAgNDAwIFE4MDAgNDAwIDg1MCA0MDAgTCA4NTAgNjAwIEwtNTAgNjAwIFoiIGZpbGw9IiM4RDlGO Dc4IiBvcGFjaXR5PSIwLjA4Ii8+CiAgPCEtLSBHdW51bmcgMSAtLT4KICA8cGF0aCBkPSJNMCA0NTAgTDE1MCAzNTAgTDMwMCA0MDAgTDQ1MCAzMjAgTDYwMCA0MDAgTDc1MCAzNTAgTDgwMCA0NTAgTDgwMCA2MDAgTDAsNjAwIFoiIGZpbGw9IiM4RDlGODciIG9wYWNpdHk9IjAuMTIiLz4KICA8IS0tIEd1bnVuZyAyIC0tPgogIDxwYXRoIGQ9Ik0tMTAwIDUwMCBRMjAwIDUwMCAzMDAgNTUwIFQ1MDAgNTI1IFQ3MDAgNTgwIFQ4NTAgNTAwIFQ4NTAgNjAwIFQtMTAwLDYwMCBaIiBmaWxsPSIjQThDMUE3IiBvcGFjaXR5PSIwLjA3Ii8+CiAgPCEtLSBTdW5nYWkgLS0+CiAgPHBhdGggZD0iTTAgNTUwIEw4MDAgNTUwIEw4MDAgNjAwIEwwLDYwMCBaIiBmaWxsPSIjQjhENDQ0IiBvcGFjaXR5PSIwLjEiLz4KICA8IS0tIFBlcG9ob25hbiAtLT4KICA8cGF0aCBkPSJNNzAwIDQ4MCBBMjAgMjAgMCAxIDEgNzIwIDQ4MCBNNzEwIDQ3MCBBNSA1IDAgMSAxIDcxMCA0ODAgWiIgZmlsbD0iIzhEOUZBNyIgb3BhY2l0eT0iMC4xNSIvPgogIDxyZWN0IHdpZHRoPSI4MDAiIGhlaWdodD0iNjAwIiBmaWxsPSJub25lIi8+Cjwvc3ZnPg==");
  background-size: cover;
  background-attachment: fixed;
  background-position: center bottom;
  color: var(--text-primary);
  line-height: 1.7;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(212, 185, 150, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(141, 159, 135, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header - Judul ala Novel */
.hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.hero p.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-style: italic;
}

.lang-switch {
  margin-top: 1.5rem;
}
.lang-switch a {
  text-decoration: none;
  color: var(--text-secondary);
  margin: 0 8px;
  font-weight: 500;
  transition: color 0.2s;
}
.lang-switch a.active, .lang-switch a:hover {
  color: var(--accent);
  font-weight: 600;
}

/* Buku - Desain Minimalis Elegan */
.book-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.book-cover {
  flex: 0 0 220px;
  height: 320px;
  background: var(--paper);
  border: 1px solid #e0d8c9;
  border-radius: 8px;
  box-shadow: 0 10px 30px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.book-cover::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    linear-gradient(120deg, rgba(212,185,150,0.05) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 L20 0 L20 20 Z' fill='%238d9f87' opacity='0.03'/%3E%3C/svg%3E");
}

.book-cover svg {
  max-width: 90%;
  max-height: 90%;
}

.story-blurb {
  flex: 1;
  min-width: 280px;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px var(--shadow);
  border: 1px solid #f0ede7;
}

.story-blurb p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-align: justify;
}

.price-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--accent);
  text-align: center;
  margin: 1.5rem 0;
  font-weight: 600;
}

.cta-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--paper);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}
.cta-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(141, 159, 135, 0.2);
}

/* Form - Elegan & Fungsional */
.form-section {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  border: 1px solid #f0ede7;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.form-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}

.form-section p.form-note {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  font-style: italic;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.input-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #d5d0c7;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
  background: #fdfcf9;
}
.input-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.hint {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.captcha-box {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.submit-btn:hover {
  background: #7a8b75;
  transform: translateY(-2px);
}

.disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1.2rem;
}

/* Footer */
.epilogue {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 2rem 0;
  font-style: italic;
}

.book-cover {
    max-width: 300px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Animasi lembut untuk ilustrasi */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* Responsif */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .book-section { flex-direction: column; align-items: center; }
  .book-cover { flex: 0 0 200px; height: 280px; }
  .form-section { padding: 1.8rem; }
}
.price-section {
  text-align: center;
  margin: 1.8rem 0;
}

.original-price {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  color: #a0a0a0;
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.discount-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 600;
  position: relative;
}

.mie-badge {
  display: inline-block;
  background: var(--highlight);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-left: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  vertical-align: top;
}
.benefits-section {
  margin: 2rem 0;
}

.benefits-section h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  background: white;
  padding: 1rem 1.5rem;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  border-left: 4px solid var(--highlight);
  position: relative;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.benefits-list li::before {
  content: "✨";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--paper);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent);
}

/* ========== ANIMASI DONGHUA: AWAN & DAUN (EDGE-COMPATIBLE) ========== */



.cloud, .leaf {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

/* --- AWAN (SVG INLINE) --- */
.cloud {
  width: 80px;
  height: 40px;
  top: 12%;
  right: -100px;
  opacity: 0.22;
}
.cloud-2 {
  width: 100px;
  height: 50px;
  top: 22%;
  right: -120px;
  opacity: 0.18;
}

.cloud svg {
  width: 100%;
  height: 10  0%;
  fill: #d4b996;
}

.cloud-1 { animation: drift 110s linear infinite; }
.cloud-2 { animation: drift 160s linear infinite; }

/* --- DAUN (SVG INLINE) --- */
.leaf {
  width: 24px;
  height: 24px;
  top: -50px;
  opacity: 0;
}
.leaf-1 { left: 8%;  animation: fall 8s 0s linear infinite; }
.leaf-2 { left: 28%; animation: fall 10s 2s linear infinite; }
.leaf-3 { left: 58%; animation: fall 12s 1s linear infinite; }
.leaf-4 { left: 82%; animation: fall 9s 3s linear infinite; }

.leaf svg { width: 100%; height: 100%; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100vw - 100px)); }
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.35;
  }
  90% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* Ilustrasi mengambang lama (mie, hati, gunung) — opsional */
.floating {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  animation: float 10s ease-in-out infinite;
}
.floating.mie { top: 15%; right: 10%; font-size: 28px; }
.floating.heart { top: 25%; left: 8%; font-size: 20px; color: #d4b996; }
.floating.mountain { bottom: 20%; left: 15%; font-size: 24px; color: #8d9f87; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(3deg); }
}


/* ========== FAQ INTERAKTIF ========== */
.faq-section {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.faq-section h2 {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  color: var(--accent);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.faq-item {
  background: white;
  border-radius: 14px;
  margin-bottom: 1.2rem;
  box-shadow: 0 5px 15px var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 20px rgba(141, 159, 135, 0.15);
}

.faq-question {
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.05rem;
  position: relative;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(212, 185, 150, 0.05);
}

.faq-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  margin-right: 12px;
  min-width: 28px;
  color: var(--highlight);
}

.faq-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.faq-item.active .faq-arrow {
  transform: rotate(90deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.3rem;
  max-height: 500px; /* cukup untuk teks panjang */
}

body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, rgba(184, 212, 212, 0.06), transparent);
  z-index: 0;
  pointer-events: none;
}