:root {
  --bg: #fffbf4;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --navy: #1b2a4a;
  --text: #334155;
  --muted: #64748b;
  --coral: #f25f4c;
  --coral-dark: #d94836;
  --blue: #2d7ff9;
  --mint: #16a34a;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(27, 42, 74, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: 'Fredoka', sans-serif; color: var(--navy); line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* Announcement */
.announcement-bar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Header */
.site-header {
  background: rgba(255, 251, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; font-family: 'Fredoka', sans-serif; font-size: 1.35rem; color: var(--navy); }
.logo-badge {
  background: var(--coral);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.main-nav { display: flex; gap: 24px; font-weight: 700; font-size: 0.95rem; }
.main-nav a:hover { color: var(--coral); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
  font-family: 'Nunito', sans-serif;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 24px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: start; }

/* 3D Real-Book Presentation */
.book-stage {
  background: linear-gradient(145deg, #e8f1ff 0%, #fff2e8 100%);
  border-radius: 24px;
  padding: 36px 28px;
  position: relative;
  display: flex;
  justify-content: center;
  box-shadow: var(--shadow);
}
.book-3d {
  position: relative;
  width: 280px;
  border-radius: 6px 14px 14px 6px;
  box-shadow: -12px 18px 30px rgba(27, 42, 74, 0.25), 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
  transform: perspective(900px) rotateY(-8deg);
  transition: transform 0.3s ease;
}
.book-3d:hover { transform: perspective(900px) rotateY(0deg); }
.book-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.22), rgba(255,255,255,0.25), rgba(0,0,0,0.08));
  z-index: 2;
}
.book-cover-img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; }
.floating-badge {
  position: absolute;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.badge-pages { top: 18px; right: 18px; }
.badge-age { bottom: 18px; left: 18px; background: var(--navy); color: #fff; }

.preview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.preview-thumb {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  transition: border-color 0.15s;
}
.preview-thumb:hover { border-color: var(--coral); }
.preview-thumb img { width: 100%; aspect-ratio: 210/297; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }

/* Hero Copy */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill { padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; }
.pill-blue { background: #e0edff; color: #1d4ed8; }
.pill-coral { background: #ffe4e0; color: #c0392b; }
.hero h1 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); margin-bottom: 14px; }
.highlight { color: var(--coral); }
.hero-lead { font-size: 1.05rem; margin-bottom: 20px; }

.check-list { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.check-list li { position: relative; padding-left: 28px; font-size: 0.96rem; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px;
  background: #dcfce7; color: var(--mint);
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 0.8rem;
}

.price-box {
  background: #fff;
  border: 2px solid #fde2dd;
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.price-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.price-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); display: block; }
.price-main { display: flex; align-items: baseline; gap: 10px; }
.price-now { font-family: 'Fredoka', sans-serif; font-size: 2.1rem; color: var(--navy); }
.price-old { text-decoration: line-through; color: var(--muted); font-weight: 700; }
.save-tag { background: #dcfce7; color: #15803d; padding: 3px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.instant-tag { background: var(--surface-soft); padding: 6px 12px; border-radius: 10px; font-size: 0.82rem; font-weight: 800; color: var(--navy); }

.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.input-group label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
}
.input-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.12);
}
.channel-picker {
  border: none;
  margin-bottom: 12px;
}
.channel-picker legend {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.channel-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.channel-option {
  position: relative;
  cursor: pointer;
}
.channel-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.channel-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.channel-card strong {
  font-size: 0.86rem;
  color: var(--navy);
}
.channel-card span {
  font-size: 0.74rem;
  color: var(--muted);
}
.channel-option input:checked + .channel-card {
  border-color: var(--coral);
  background: #fff5f3;
  box-shadow: 0 0 0 2px rgba(242, 95, 76, 0.14);
}
.channel-option input:focus-visible + .channel-card {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.consent-label { display: flex; gap: 8px; align-items: flex-start; font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; cursor: pointer; }
.consent-label input { margin-top: 4px; }
.payment-trust { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* Sections */
.catalog-section, .preview-section, .benefits-section, .faq-section { padding: 56px 0; }
.catalog-section, .benefits-section { background: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head h2 { font-size: 1.9rem; margin-bottom: 8px; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.filter-chip {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
}
.filter-chip.active, .filter-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card.hidden { display: none; }
.card-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; color: #fff; z-index: 2; }
.card-badge.live { background: var(--mint); }
.card-badge.free { background: var(--blue); }
.card-badge.soon { background: var(--muted); }
.card-img { width: 100%; height: 220px; object-fit: cover; background: #fff; border-bottom: 1px solid var(--border); }
.card-placeholder { height: 220px; background: #e8f1ff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 800; color: var(--navy); }
.card-placeholder span { font-size: 1rem; margin-top: 6px; }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.card-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card-body p { font-size: 0.9rem; flex: 1; margin-bottom: 16px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: 'Fredoka', sans-serif; font-size: 1.25rem; color: var(--navy); }
.free-text { color: var(--blue); }

/* Preview Gallery */
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.preview-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.preview-card:hover { transform: translateY(-3px); }
.preview-card img { width: 100%; aspect-ratio: 210/297; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 10px; }
.preview-card figcaption { font-size: 0.88rem; }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card { background: var(--bg); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.benefit-icon { font-size: 2rem; margin-bottom: 10px; }
.benefit-card h3 { margin-bottom: 8px; font-size: 1.15rem; }

/* FAQ */
.faq-wrap { max-width: 780px; }
details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
summary { font-weight: 800; color: var(--navy); cursor: pointer; }
details p { margin-top: 10px; font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 48px 0 0; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; padding-bottom: 36px; }
.legal-detail { font-size: 0.86rem; margin-top: 12px; line-height: 1.7; }
.legal-detail a { color: #93c5fd; text-decoration: underline; }
.footer-links { list-style: none; display: grid; gap: 8px; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 0; font-size: 0.82rem; text-align: center; }

/* Modals */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.72); }
.modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  max-width: 680px;
  max-height: 92vh;
  overflow: auto;
  z-index: 2;
  text-align: center;
}
.modal-text { text-align: left; padding: 28px; }
.modal-text h3 { margin-bottom: 12px; }
.modal-text p { margin-bottom: 12px; font-size: 0.94rem; }
.modal-box img { max-height: 76vh; margin: 0 auto 10px; border-radius: 8px; }
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: var(--navy); color: #fff;
  border: none; width: 32px; height: 32px;
  border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}

@media (max-width: 860px) {
  .hero-grid, .product-grid, .preview-grid, .benefits-grid, .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 520px) {
  .checkout-fields, .channel-options { grid-template-columns: 1fr; }
}
