/* ===== ROOT ===== */
:root {
  --bg: #FFFAF5;
  --bg-alt: #F5EFE6;
  --fg: #2D2D2D;
  --fg-muted: #6B6B6B;
  --accent: #D4714E;
  --accent-warm: #E8956F;
  --sage: #6A9E6B;
  --sage-light: #EBF3EB;
  --cream: #FFF8F0;
  --border: #E5D9CC;
  --card-bg: #FFFFFF;
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--fg); font-family: 'Nunito', sans-serif; line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Josefin Sans', sans-serif; line-height: 1.2; }

/* ===== NAV ===== */
.top-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 100;
}
.nav-logo { font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: 0.02em; text-decoration: none; color: inherit; }
.nav-tagline { font-size: 0.85rem; color: var(--fg-muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--fg-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: color 0.15s; }
.nav-link:hover { color: var(--fg); }
.nav-cart-link { position: relative; }
.nav-cart-count { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 0.65rem; font-weight: 700; margin-left: 4px; }

/* ===== HERO ===== */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; padding: 80px 48px 100px;
  min-height: 72vh; position: relative; overflow: hidden;
  background: var(--bg);
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block; background: var(--sage-light); color: var(--sage);
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 24px;
}
.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 700;
  color: var(--fg); letter-spacing: -0.02em; margin-bottom: 24px; line-height: 1.1;
}
.hero-sub { font-size: 1.1rem; color: var(--fg-muted); max-width: 420px; margin-bottom: 0; line-height: 1.7; }
.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }

/* Geometric shapes */
.hero-shapes { position: absolute; top: 0; left: 0; width: 300px; height: 300px; pointer-events: none; }
.shape-dot { position: absolute; border-radius: 50%; background: var(--accent); opacity: 0.12; }
.shape-dot-1 { width: 200px; height: 200px; bottom: -20px; left: -40px; }
.shape-ring { position: absolute; border-radius: 50%; border: 2px solid var(--accent); opacity: 0.15; }
.shape-ring-1 { width: 160px; height: 160px; top: -20px; right: 40px; }
.shape-ring-2 { width: 80px; height: 80px; bottom: 60px; left: 20px; border-color: var(--sage); }

/* Mockup cards */
.mockup-stack { position: relative; width: 340px; height: 280px; }
.mockup-card {
  background: var(--card-bg); border: 1.5px solid var(--border); border-radius: 16px;
  padding: 20px; position: absolute; box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
.mockup-card-back { width: 220px; top: 20px; left: 0; transform: rotate(-4deg); opacity: 0.7; z-index: 1; }
.mockup-card-front { width: 240px; top: 40px; right: 0; transform: rotate(2deg); z-index: 2; }
.mock-label { font-family: 'Josefin Sans', sans-serif; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px; }
.mock-line { height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 8px; width: 100%; }
.mock-line.short { width: 60%; }
.mock-checklist { display: flex; flex-direction: column; gap: 6px; }
.mock-check { width: 12px; height: 12px; border: 1.5px solid var(--sage); border-radius: 3px; display: inline-block; flex-shrink: 0; margin-right: 8px; }
.mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.mock-block { height: 28px; background: var(--sage-light); border-radius: 4px; }
.mock-block:nth-child(odd) { background: var(--accent-warm); opacity: 0.3; }
.mock-accent-bar { height: 4px; background: var(--accent); border-radius: 2px; width: 60%; }

/* ===== CATEGORIES ===== */
.categories {
  background: var(--bg-alt); padding: 100px 48px;
}
.categories-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.categories-header h2 { font-size: 2.4rem; font-weight: 700; margin-bottom: 16px; color: var(--fg); }
.section-sub { color: var(--fg-muted); font-size: 1rem; line-height: 1.7; }
.categories-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  max-width: 900px; margin: 0 auto;
}
.cat-card {
  background: var(--card-bg); border: 1.5px solid var(--border); border-radius: 16px;
  padding: 32px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.cat-card-mtom { --card-accent: var(--accent); }
.cat-icon { color: var(--accent); margin-bottom: 16px; }
.cat-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--fg); }
.cat-card p { color: var(--fg-muted); font-size: 0.9rem; line-height: 1.6; }
.cat-card:nth-child(3), .cat-card:nth-child(4) { grid-column: span 1; }
/* Full width last row — 2x2 but if odd, last spans 2 */
.categories-grid .cat-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 420px; justify-self: center; }

/* ===== BEDTIME STORIES SPOTLIGHT ===== */
.bedtime-stories {
  background: linear-gradient(180deg, #FFF8F0 0%, #FFEFE0 100%);
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.bs-inner { max-width: 900px; margin: 0 auto; }
.bs-header { text-align: center; margin-bottom: 48px; }
.bs-eyebrow {
  display: inline-flex; align-items: center;
  background: rgba(212,113,78,0.1); color: var(--accent);
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
}
.bs-headline { font-size: 2rem; font-weight: 700; color: var(--fg); margin-bottom: 12px; }
.bs-tagline { color: var(--fg-muted); font-size: 1rem; font-style: italic; }

.bs-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 36px;
}
.bs-card {
  background: var(--card-bg); border: 1.5px solid var(--border); border-radius: 20px;
  overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bs-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.1); }
.bs-cover {
  position: relative; aspect-ratio: 3/2; overflow: hidden;
  background: #E8F4F8;
}
.bs-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-cover-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 16px; background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, transparent 100%);
}
.bs-pages {
  color: rgba(255,255,255,0.95); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.bs-card-body { padding: 20px 24px 20px; }
.bs-title { font-family: 'Josefin Sans', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--fg); margin-bottom: 6px; }
.bs-card-tagline { color: var(--fg-muted); font-size: 0.85rem; margin-bottom: 16px; }
.bs-card-footer { display: flex; align-items: center; justify-content: space-between; }
.bs-price { font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.bs-btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 20px; text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bs-btn:hover { background: #c0623e; transform: scale(1.03); }

.bs-cta { text-align: center; }
.bs-cta-link {
  display: inline-flex; align-items: center;
  color: var(--accent); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; padding: 10px 24px;
  border: 2px solid var(--accent); border-radius: 24px;
  transition: background 0.15s ease, color 0.15s ease;
}
.bs-cta-link:hover { background: var(--accent); color: #fff; }

/* ===== PHILOSOPHY ===== */
.philosophy { background: var(--cream); padding: 100px 48px; }
.philosophy-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1100px; margin: 0 auto; }
.philosophy-left .section-label { display: block; }
.philosophy-left h2 { font-size: 2rem; font-weight: 700; margin-bottom: 20px; margin-top: 12px; color: var(--fg); }
.philosophy-left p { color: var(--fg-muted); line-height: 1.75; font-size: 0.95rem; margin-bottom: 16px; }
.philosophy-values { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.value-item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.9rem; }
.value-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.quote-card {
  background: var(--card-bg); border: 1.5px solid var(--border); border-radius: 20px;
  padding: 40px; box-shadow: 0 8px 40px rgba(0,0,0,0.06); position: relative;
}
.quote-mark { font-size: 5rem; color: var(--accent); opacity: 0.2; font-family: Georgia, serif; line-height: 0.5; margin-bottom: 16px; }
.quote-text { font-size: 1.05rem; line-height: 1.7; color: var(--fg); font-style: italic; margin-bottom: 20px; }
.quote-author { font-size: 0.8rem; color: var(--fg-muted); font-weight: 600; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--bg); padding: 100px 48px; }
.hiw-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.hiw-header h2 { font-size: 2.4rem; font-weight: 700; margin-top: 12px; color: var(--fg); }
.hiw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 900px; margin: 0 auto; }
.hiw-step { text-align: center; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: var(--accent); color: #fff;
  border-radius: 50%; font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 1.2rem;
  margin-bottom: 20px;
}
.hiw-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: var(--fg); }
.hiw-step p { color: var(--fg-muted); font-size: 0.9rem; line-height: 1.65; }

/* ===== CLOSING ===== */
.closing {
  background: linear-gradient(135deg, #2D2D2D 0%, #3D2D2D 100%);
  padding: 100px 48px; text-align: center; position: relative; overflow: hidden;
}
.closing-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.closing-shape { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.closing-ring-lg { width: 300px; height: 300px; border: 2px solid rgba(255,255,255,0.08); border-radius: 50%; position: absolute; top: -150px; left: -150px; }
.closing-ring-sm { width: 180px; height: 180px; border: 2px solid rgba(212,113,78,0.3); border-radius: 50%; position: absolute; top: -90px; left: -90px; }
.closing-text h2 { font-size: 2.4rem; font-weight: 700; color: #fff; margin-bottom: 20px; line-height: 1.2; }
.closing-text p { color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 48px 40px; }
.footer-inner { display: flex; gap: 80px; margin-bottom: 40px; }
.footer-logo { font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 1.3rem; display: block; margin-bottom: 12px; }
.footer-brand p { color: var(--fg-muted); font-size: 0.85rem; line-height: 1.6; max-width: 220px; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-head { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg); margin-bottom: 4px; }
.footer-col span:not(.footer-col-head) { color: var(--fg-muted); font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom span { color: var(--fg-muted); font-size: 0.8rem; font-style: italic; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .top-nav { padding: 16px 24px; }
  .nav-tagline { display: none; }
  .hero { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; min-height: auto; }
  .hero-visual { order: -1; }
  .mockup-stack { width: 260px; height: 220px; }
  .categories { padding: 70px 24px; }
  .categories-grid { grid-template-columns: 1fr; }
  .philosophy { padding: 70px 24px; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 40px; }
  .hiw-steps { grid-template-columns: 1fr; gap: 24px; }
  .how-it-works { padding: 70px 24px; }
  .closing { padding: 70px 24px; }
  .site-footer { padding: 50px 24px 30px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 32px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .categories-header h2, .hiw-header h2, .closing-text h2 { font-size: 1.8rem; }
  .footer-links { flex-direction: column; }
}