:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #24302C;
  --muted: #5C6B65;
  --sage: #6E9277;
  --sage-dark: #54755C;
  --terra: #D9824C;
  --slate: #5B7888;
  --amber: #C9943E;
  --border: #E8E1D5;
  --radius: 18px;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', sans-serif;
  line-height: 1.2;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.pebble-dot {
  display: inline-block;
  border-radius: 50% 45% 55% 48%;
}
.p1 { width: 16px; height: 14px; background: var(--sage); }
.p2 { width: 11px; height: 10px; background: var(--terra); margin-left: -4px; }

.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--sage-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--sage);
  color: #fff;
}
.btn-primary:hover { background: var(--sage-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--sage);
  color: var(--sage-dark);
}
.btn-outline:hover { background: rgba(110, 146, 119, 0.1); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--terra);
  margin-bottom: 10px;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.book-showcase-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 40px rgba(36, 48, 44, 0.08);
}

.book-showcase-card img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.age-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  background: var(--terra);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.cover-fallback {
  aspect-ratio: 8.5 / 11;
  background: linear-gradient(155deg, #F6EFE4 0%, #E7EFE8 100%);
  border-radius: 12px;
  padding: 28px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--sage);
}
.cf-tag { font-size: 0.75rem; font-weight: 800; color: var(--terra); letter-spacing: 0.1em; }
.cover-fallback h3 { font-size: 1.9rem; margin: 14px 0 8px; }
.cf-brand { margin-top: 24px; font-weight: 800; color: var(--sage-dark); }

/* Lead Magnet */
.lead-section { padding: 36px 0 64px; }

.lead-card {
  background: var(--surface);
  border: 2px solid var(--sage);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 16px 36px rgba(110, 146, 119, 0.1);
}

.lead-info h2 { font-size: 1.9rem; margin-bottom: 12px; }
.lead-info p { color: var(--muted); margin-bottom: 16px; }
.lead-bullets { list-style: none; display: grid; gap: 6px; font-weight: 700; color: var(--sage-dark); }
.lead-bullets li::before { content: "• "; color: var(--terra); }

.lead-form {
  background: var(--bg);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.lead-form label { font-size: 0.85rem; font-weight: 800; }
.lead-form input, .lead-form select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #D8CFC0;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.form-feedback {
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 1.2em;
  color: var(--sage-dark);
}

/* Catalog */
.catalog-section { padding: 48px 0 72px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head h2 { font-size: 2.1rem; margin-bottom: 10px; }
.section-head p { color: var(--muted); }

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.filter-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.book-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.book-card.hidden { display: none; }

.book-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--sage);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-terra { background: var(--terra); }
.tag-slate { background: var(--slate); }
.tag-amber { background: var(--amber); }

.book-thumb {
  padding: 48px 20px 28px;
  text-align: center;
  color: var(--ink);
}
.thumb-sage { background: #E9F0EA; }
.thumb-terra { background: #F8EAE0; }
.thumb-slate { background: #E6EEF2; }
.thumb-amber { background: #F7EFE0; }

.thumb-age {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(255,255,255,0.85);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.book-thumb h4 { font-size: 1.2rem; margin-bottom: 4px; }
.book-thumb p { font-size: 0.85rem; color: var(--muted); }

.book-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.book-body h3 { font-size: 1.12rem; }
.book-desc { font-size: 0.9rem; color: var(--muted); flex: 1; }

.book-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.price { color: var(--sage-dark); }

.book-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.book-actions .btn { flex: 1; text-align: center; }

/* About Pillars */
.about-section {
  padding: 64px 0;
  background: #F3EDE3;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}
.pillar-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  color: var(--terra);
  margin-bottom: 10px;
}
.pillar-card h3 { margin-bottom: 8px; }
.pillar-card p { color: var(--muted); font-size: 0.94rem; }

/* Club */
.club-section { padding: 64px 0; }
.club-box {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.club-box p { color: #CBD4D0; max-width: 600px; margin-top: 8px; }

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .hero-grid, .lead-card { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .lead-card { padding: 24px; }
}
