/* =========================================================
   Histórias de Luz — clone de landing page
   Tokens de design
   ========================================================= */
:root {
  --cream: #fff7e8;
  --cream-deep: #f7e8c7;
  --navy: #1f3a5f;
  --navy-deep: #142639;
  --gold: #efa53d;
  --coral: #e4573d;
  --coral-dark: #c9432b;
  --green: #3d8f5b;
  --ink: #2b2a28;
  --paper-border: #e7d5ab;

  --font-display: 'Baloo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 14px 30px rgba(31, 58, 95, 0.12);
}

/* =========================================================
   Reset básico
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   Botões
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-size: 1.05rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 22px rgba(228, 87, 61, 0.35);
}

.btn-coral:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.05rem 2.4rem;
  font-size: 1.15rem;
}

.btn-small {
  padding: 0.55rem 1.3rem;
  font-size: 0.95rem;
}

.btn-full {
  display: block;
  text-align: center;
  width: 100%;
}

/* =========================================================
   Placeholders de imagem
   ========================================================= */
.placeholder {
  --stripe: rgba(31, 58, 95, 0.06);
  background-color: #fffdf7;
  background-image: repeating-linear-gradient(
    45deg,
    var(--stripe),
    var(--stripe) 10px,
    transparent 10px,
    transparent 20px
  );
  border: 2px dashed var(--paper-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  color: #8a7a55;
  padding: 1rem;
}

.ph-icon {
  font-size: 2rem;
  opacity: 0.7;
}

.ph-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  max-width: 14ch;
}

.ph-square {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
}

.ph-book {
  aspect-ratio: 3 / 4;
  width: 100%;
}

.book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #fffdf7;
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--paper-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-icon {
  color: var(--gold);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-lead {
  font-size: 1.1rem;
}

.book-fan {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.book-fan li {
  width: 150px;
  margin: 0 -14px;
  transition: transform 0.2s ease;
  background: #fffdf7;
  border-radius: var(--radius-md);
}

.book-fan li:nth-child(1) { transform: rotate(-9deg); }
.book-fan li:nth-child(2) { transform: rotate(-5deg) translateY(-6px); }
.book-fan li:nth-child(3) { transform: rotate(-1deg) translateY(-10px); }
.book-fan li:nth-child(4) { transform: rotate(3deg) translateY(-8px); }
.book-fan li:nth-child(5) { transform: rotate(7deg) translateY(-4px); }
.book-fan li:nth-child(6) { transform: rotate(11deg); }

.book-fan li:hover {
  transform: translateY(-14px) scale(1.04);
  z-index: 2;
}

/* =========================================================
   Seções gerais
   ========================================================= */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--cream-deep);
}

/* =========================================================
   Checklist
   ========================================================= */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

/* =========================================================
   Como funciona — passos
   ========================================================= */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0;
  margin: 2.5rem 0 0;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fffdf7;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.5rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.step-icon {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.step h3 { margin-bottom: 0.5rem; }
.step p { margin: 0; font-size: 0.98rem; }

/* =========================================================
   Grade de conteúdo do kit
   ========================================================= */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* =========================================================
   Preço em destaque
   ========================================================= */
.price-section {
  background: linear-gradient(180deg, var(--cream) 0%, #fdeecb 100%);
}

.price-old {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #8a7a55;
  margin-bottom: 0.2rem;
}

.price-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.price-big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--coral);
  font-weight: 800;
  margin: 0.1rem 0 0.8rem;
}

.price-guarantee {
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1.5rem;
}

/* =========================================================
   Bônus
   ========================================================= */
.bonus-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.bonus-row:last-child { margin-bottom: 0; }

.bonus-row.reverse .placeholder { order: 2; }
.bonus-row.reverse .bonus-text { order: 1; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  background: rgba(239, 165, 61, 0.15);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.price-tag {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* =========================================================
   Ticket / plano
   ========================================================= */
.ticket {
  background: #fffdf7;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-top: 2rem;
  overflow: hidden;
}

.ticket-top,
.ticket-bottom {
  padding: 2rem;
}

.ticket-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.3rem;
}

.ticket-top h3 {
  text-align: center;
  margin-bottom: 1.2rem;
}

.ticket-divider {
  position: relative;
  height: 0;
  border-top: 2px dashed var(--paper-border);
  margin: 0 2rem;
}

.ticket-divider::before,
.ticket-divider::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 24px;
  height: 24px;
  background: var(--cream);
  border-radius: 50%;
}

.ticket-divider::before { left: -2rem; margin-left: -12px; }
.ticket-divider::after { right: -2rem; margin-right: -12px; }

.ticket-bottom {
  text-align: center;
}

.urgency {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--coral-dark);
  font-weight: 700;
}

/* =========================================================
   Blockquote
   ========================================================= */
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--gold);
  background: rgba(239, 165, 61, 0.08);
  font-style: italic;
  color: var(--navy);
}

/* =========================================================
   FAQ (details/summary)
   ========================================================= */
.faq {
  background: #fffdf7;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
}

.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.05rem;
  padding: 0.2rem 0;
}

.faq[open] summary {
  margin-bottom: 0.8rem;
}

.faq .btn {
  margin-top: 0.5rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-deep);
  color: #cfd9e6;
  padding: 2.5rem 0 6rem;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

.footer-links {
  font-weight: 700;
}

.footer-warning {
  color: #ff9d8a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.footer-disclaimer {
  max-width: 640px;
  margin: 1rem auto;
  font-size: 0.8rem;
  color: #8fa0b5;
}

/* =========================================================
   CTA fixo (mobile)
   ========================================================= */
.sticky-cta {
  display: none;
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bonus-row,
  .bonus-row.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bonus-row .placeholder,
  .bonus-row.reverse .placeholder {
    max-width: 220px;
    margin: 0 auto;
    order: 0;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 4.5rem; }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .book-fan li {
    width: 100px;
    margin: 0 -10px;
  }

  .ticket-top, .ticket-bottom {
    padding: 1.4rem;
  }

  .header-inner .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.7rem 1rem;
    background: #fffdf7;
    border-top: 1px solid var(--paper-border);
    z-index: 30;
  }
}
