/* ============================================================
   ELO MATERNA — DESIGN SYSTEM
   "Maternidade com vínculo real."
   Editorial · cálido · diário ilustrado
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Lato:wght@300;400;700&family=Lora:ital,wght@0,400;0,500;1,400&family=Kalam:wght@400;700&display=swap');

/* ── TOKENS ── */
:root {
  /* Cores — fundos */
  --bg:           #F9F6F2;
  --bg-alt:       #F2ECE4;
  --warm:         #F2ECE4;
  --bg-dark:      #26180F;
  --dark:         #26180F;

  /* Cores — texto */
  --text:         #2A1A0F;
  --text-mid:     #6B4A36;
  --muted:        #9B7A64;
  --text-light:   #9B7A64;

  /* Cores — bordas */
  --border:       #DDD5C8;
  --border-light: #EDE8E1;

  /* Cores — acentos */
  --terracota:    #C4785A;
  --terracota-bg: rgba(196,120,90,0.08);
  --gold:         #C9A96E;
  --gold-bg:      rgba(201,169,110,0.1);
  --salvia:       #7EA07E;
  --salvia-bg:    rgba(126,160,126,0.1);

  /* Aliases semânticos */
  --color-accent:        var(--terracota);
  --color-accent-soft:   var(--terracota-bg);
  --color-accent-2:      var(--gold);
  --color-accent-2-soft: var(--gold-bg);
  --color-accent-3:      var(--salvia);
  --color-accent-3-soft: var(--salvia-bg);
  --color-surface:       var(--bg);
  --color-surface-alt:   var(--warm);
  --color-surface-dark:  var(--dark);
  --color-on-dark:       #F2ECE4;

  /* Tipografia — famílias */
  --ff-display:  'Cormorant Garamond', Georgia, serif;
  --ff-body:     'Lato', sans-serif;
  --ff-body-alt: 'Lora', Georgia, serif;
  --ff-hand:     'Kalam', cursive;

  /* Tipografia — escala */
  --text-xs:   clamp(0.65rem, 1.5vw, 0.72rem);
  --text-sm:   clamp(0.82rem, 2vw, 0.88rem);
  --text-base: clamp(0.88rem, 2vw, 0.97rem);
  --text-md:   clamp(1rem, 2.5vw, 1.1rem);
  --text-lg:   clamp(1.2rem, 3vw, 1.4rem);
  --text-xl:   clamp(1.6rem, 4vw, 2rem);
  --text-2xl:  clamp(1.8rem, 5vw, 2.8rem);
  --text-3xl:  clamp(2.2rem, 7vw, 3.8rem);
  --text-hero: clamp(2.8rem, 9vw, 5rem);

  /* Espaçamento */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-section: clamp(52px, 9vw, 100px);
  --pad-section:   clamp(52px, 9vw, 100px);
  --pad-x:         clamp(22px, 5vw, 48px);

  /* Layout */
  --width-content: 680px;
  --width-narrow:  480px;
  --width-wide:    960px;

  /* Radius */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Motion */
  --ease-out:    cubic-bezier(0.25, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast:      150ms;
  --dur-base:      280ms;
  --dur-slow:      520ms;
  --dur-very-slow: 800ms;

  /* Shadow */
  --shadow-sm:   0 1px 4px rgba(38,24,15,0.08);
  --shadow-md:   0 4px 16px rgba(38,24,15,0.12);
  --shadow-lg:   0 12px 40px rgba(38,24,15,0.18);
  --shadow-book: 0 20px 60px rgba(0,0,0,0.45), 0 6px 20px rgba(0,0,0,0.25);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--terracota);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--text); }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── LAYOUT ── */
.wrap {
  max-width: var(--width-content);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.wrap--narrow { max-width: var(--width-narrow); }
.wrap--wide   { max-width: var(--width-wide); }

.sec {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  border-bottom: 1px solid var(--border-light);
}
.sec--warm   { background: var(--warm); }
.sec--dark   { background: var(--dark); color: var(--color-on-dark); }
.sec--dark .display-title,
.sec--dark .display-hero { color: var(--color-on-dark); }
.sec--salvia { background: var(--salvia-bg); }

/* ── TIPOGRAFIA UTILITÁRIA ── */
.eyebrow {
  font-family: var(--ff-body);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.display-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.12;
  color: var(--text);
}

.display-hero {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 4.5rem);
  line-height: 1.05;
  color: var(--text);
}

.body-large {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.8;
}

.caption {
  font-size: clamp(0.7rem, 1.8vw, 0.78rem);
  color: var(--muted);
  line-height: 1.5;
}

.hand-note {
  font-family: var(--ff-hand);
  font-size: var(--text-lg);
  color: var(--terracota);
  line-height: 1.4;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.4rem auto 2rem;
}

/* ── BOTÕES ── */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.02em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--dur-base) var(--ease-spring),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

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

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}
.btn-gold:hover { background: #bd9a5a; color: var(--dark); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--terracota);
  color: var(--terracota);
}
.btn-ghost:hover { background: var(--terracota); color: #fff; }

.btn--full { width: 100%; max-width: 360px; }
.btn--lg { padding: 1.15rem 2.6rem; font-size: var(--text-md); }

/* ── MOCKUP 3D DO EBOOK ── */
.book-3d-wrapper {
  perspective: 900px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-8) 0;
}

.book-3d {
  position: relative;
  width: clamp(180px, 42vw, 260px);
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transform: rotateY(-25deg) rotateX(4deg);
  animation: book-float 4s var(--ease-in-out) infinite;
  transition: transform var(--dur-slow) var(--ease-out);
}
.book-3d:hover { transform: rotateY(-18deg) rotateX(2deg); }

.book-face {
  position: absolute;
  inset: 0;
  border-radius: 2px 4px 4px 2px;
  overflow: hidden;
}

.book-front {
  background: var(--warm);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.06);
  transform: translateZ(14px);
}
.book-front img { width: 100%; height: 100%; object-fit: cover; }

.book-spine {
  width: 28px;
  height: 100%;
  left: 0;
  background: linear-gradient(90deg, #1c1109 0%, #3a2516 45%, #281911 100%);
  transform: translateX(-14px) rotateY(-90deg);
  transform-origin: left center;
  border-radius: 2px 0 0 2px;
}

.book-back {
  background: linear-gradient(135deg, #2f2014, #241710);
  transform: translateZ(-14px);
}

.book-top {
  width: 100%;
  height: 28px;
  top: 0;
  background: repeating-linear-gradient(90deg, #efe9e0 0 1px, #d8cfc0 1px 3px);
  transform: rotateX(90deg) translateZ(14px);
  transform-origin: top center;
}

.book-3d::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 78%;
  height: 26px;
  transform: translateX(-50%) rotateX(80deg);
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.34), rgba(0,0,0,0) 70%);
  filter: blur(6px);
  z-index: -1;
}

@keyframes book-float {
  0%, 100% { transform: rotateY(-25deg) rotateX(4deg) translateY(0); }
  50%      { transform: rotateY(-25deg) rotateX(4deg) translateY(-10px); }
}

/* ── CARDS & LISTAS ── */
.pain-list { margin: var(--space-6) 0; }
.pain-list li {
  position: relative;
  padding: var(--space-4) 0 var(--space-4) 1.6rem;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-md);
}
.pain-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--terracota);
  font-weight: 700;
}

.learn-list { margin: var(--space-6) 0; }
.learn-list li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 1.8rem;
  font-size: var(--text-md);
}
.learn-list li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  top: var(--space-3);
  color: var(--gold);
}

.chapter-list { margin: var(--space-6) 0; }
.chapter-item {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-light);
}
.chapter-marker {
  font-family: var(--ff-display);
  font-size: var(--text-xl);
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2ch;
}
.chapter-name {
  font-family: var(--ff-display);
  font-size: var(--text-lg);
  color: var(--text);
  line-height: 1.2;
}
.chapter-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: var(--space-1);
}

.offer-list { margin: var(--space-6) 0; }
.offer-list li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 2rem;
  font-size: var(--text-md);
}
.offer-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: var(--space-3);
  color: var(--gold);
  font-weight: 700;
}

.para-quem { margin: var(--space-6) 0; }
.para-quem ul li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 1.8rem;
  font-size: var(--text-md);
}
.para-quem ul li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  top: var(--space-3);
  color: var(--salvia);
}

/* ── DEPOIMENTOS ── */
.testimonial-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.testimonial {
  background: var(--bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
}
.testimonial-text {
  font-style: italic;
  font-family: var(--ff-body-alt);
  font-size: var(--text-md);
  line-height: 1.7;
}
.testimonial-author {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── BIO CARD ── */
.bio-card {
  background: var(--warm);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.bio-nome {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: var(--space-2);
}

/* ── PREÇO & OFERTA ── */
.price-display { text-align: center; margin: var(--space-8) 0; }
.price-de {
  text-decoration: line-through;
  color: var(--muted);
  font-size: var(--text-md);
}
.price-por {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--gold);
  font-size: clamp(2.6rem, 8vw, 4rem);
  line-height: 1;
  display: block;
  margin: var(--space-2) 0;
}
.price-desc {
  font-size: clamp(0.7rem, 1.8vw, 0.78rem);
  color: var(--muted);
}

/* ── GARANTIA ── */
.garantia-box {
  border: 1.5px solid var(--salvia);
  background: var(--salvia-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}
.garantia-icon {
  font-size: 2rem;
  color: var(--salvia);
  margin-bottom: var(--space-3);
}
.garantia-titulo {
  font-family: var(--ff-display);
  font-size: var(--text-lg);
  color: var(--text);
  margin-bottom: var(--space-2);
}

/* ── PREVIEW DE PÁGINAS INTERNAS ── */
.pages-preview { perspective: 1200px; margin: var(--space-8) 0; }
.page-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.page-card {
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  transform: rotate(-1.5deg);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out);
}
.page-card:nth-child(even) { transform: rotate(1.5deg); }
.page-card:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: var(--shadow-lg);
}
.page-card-inner {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  background: var(--warm);
}
.page-card img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 720px) {
  .page-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── HERO SPECS / BADGE ── */
.badge {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.hero-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}
.trust-line {
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.05em;
  text-align: center;
}

/* ── FAQ ── */
.faq-list { margin: var(--space-6) 0; }
.faq-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-light);
}
.faq-q {
  font-family: var(--ff-display);
  font-size: var(--text-lg);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.faq-a {
  font-size: var(--text-base);
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  color: var(--color-on-dark);
  padding: var(--space-12) var(--pad-x);
  text-align: center;
}
.footer-marca {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--text-lg);
  color: var(--gold);
}

/* ── MOTION UTILITIES ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--scale { transform: scale(0.96) translateY(16px); }
.reveal--left  { transform: translateX(-24px); }
.reveal--right { transform: translateX(24px); }

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0ms;   opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 80ms;  opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: none; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: none; }

/* ── PRINT ── */
@media print {
  @page { size: 5.5in 8.5in; margin: 15mm; }
  .btn, .btn-cta { display: none; }
  .sec--dark, .hero {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .book-3d { animation: none; }
  .reveal, .stagger-children > * { opacity: 1; transform: none; transition: none; }
}
