/* ============================================================
   Até que Floresça! Planner — folha de estilos principal
   Mobile-first. Variáveis de cor em :root. Sem !important.
   ============================================================ */

:root {
  /* Paleta extraída do planner — fundos e cards */
  --cream: #fcf9f0;
  --lilac: #eae4f0;
  --blue: #e2eef0;
  --sage: #e6ebdd;
  --blush: #f1e1de;

  /* Texto e botões principais */
  --ink: #4a332a;
  /* variante mais clara, só para legendas/rótulos secundários — testada em 6.75:1 sobre --cream (AA) */
  --ink-soft: #6b5347;

  /* Acentos da capa — decorativos apenas (bordas, divisores, ícones), nunca texto */
  --accent-lago: #a8c0c3;
  --accent-nevoa: #c6d4d1;
  --accent-musgo: #7f8e7e;
  --accent-rosa-poeira: #e5d6d9;

  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.5rem;

  --border-soft: 1px solid rgba(74, 51, 42, 0.12);
  --shadow-soft: 0 8px 24px rgba(74, 51, 42, 0.06);

  --container-width: 40rem;
  --space-section: clamp(3rem, 8vw, 5.5rem);
}

/* ---------- Reset básico ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 1rem;
}

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

a {
  color: inherit;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 8vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
}

h3 {
  font-size: clamp(1.3rem, 4.5vw, 1.6rem);
}

p {
  margin: 0 0 1em;
}

/* ---------- Acessibilidade ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding-block: var(--space-section);
}

.section-lilac {
  background: var(--lilac);
}
.section-blue {
  background: var(--blue);
}
.section-sage {
  background: var(--sage);
}
.section-blush {
  background: var(--blush);
}
.section-cream {
  background: var(--cream);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.section-intro {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: #5c4034;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: rgba(74, 51, 42, 0.06);
}

.btn-block {
  width: 100%;
}

/* ---------- Cabeçalho ---------- */

.site-header {
  padding: 1.25rem 0;
  background: var(--cream);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 1rem;
  text-align: center;
}

.hero-cover {
  max-width: 20rem;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-nevoa);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-cover img {
  width: 100%;
  height: auto;
}

.hero h1 {
  margin-bottom: 0.25rem;
}

.hero-tagline {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.hero-support {
  max-width: 30rem;
  margin: 0 auto 1.75rem;
  color: var(--ink-soft);
}

.hero-price {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.hero-divider {
  width: 3rem;
  height: 2px;
  background: var(--accent-lago);
  border: none;
  margin: 2.5rem auto 0;
}

/* ---------- Para quem é ---------- */

.feel-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feel-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feel-item .mark {
  color: var(--accent-musgo);
  font-size: 1.2rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ---------- Cards "o que está incluso" ---------- */

.include-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.include-card {
  border-radius: var(--radius-md);
  border: var(--border-soft);
  padding: 1.5rem;
}

.include-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.include-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.include-card:nth-child(4n + 1) {
  background: var(--lilac);
}
.include-card:nth-child(4n + 2) {
  background: var(--blue);
}
.include-card:nth-child(4n + 3) {
  background: var(--sage);
}
.include-card:nth-child(4n + 4) {
  background: var(--blush);
}

/* ---------- Carrossel de prévia ---------- */

.preview-wrapper {
  position: relative;
}

.preview-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
  margin: 0 -1.5rem;
  padding-inline: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-lago) transparent;
}

.preview-slide {
  flex: 0 0 78%;
  max-width: 18rem;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--accent-nevoa);
  background: #fff;
}

.preview-slide img {
  width: 100%;
  height: auto;
}

.preview-caption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

.preview-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.preview-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent-lago);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.preview-controls button:hover {
  background: var(--blue);
}

/* ---------- Como usar ---------- */

.steps-list {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  counter-increment: step;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.1rem;
}

.step-number::before {
  content: counter(step);
}

.step-text h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.step-text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Preço / selos ---------- */

.pricing-box {
  text-align: center;
  border-radius: var(--radius-lg);
  border: var(--border-soft);
  background: var(--cream);
  padding: 2.5rem 1.5rem;
}

.pricing-box .price {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 2.4rem;
  margin-bottom: 0.25rem;
}

.pricing-box .price-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.trust-badges {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
  text-align: left;
}

.trust-badge {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.trust-badge .mark {
  color: var(--accent-musgo);
  flex-shrink: 0;
}

/* ---------- Depoimentos (oculto até a autora preencher casos reais) ---------- */

.testimonials[hidden] {
  display: none;
}

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: var(--border-soft);
  background: var(--cream);
  padding: 0.25rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--accent-musgo);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: var(--ink-soft);
  padding-bottom: 1rem;
  margin: 0;
}

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 2.5rem 6rem;
}

.site-footer a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(252, 249, 240, 0.4);
}

.footer-brand {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-fineprint {
  font-size: 0.8rem;
  color: rgba(252, 249, 240, 0.7);
}

/* ---------- CTA fixo mobile ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--cream);
  border-top: 1px solid var(--accent-nevoa);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

@media (min-width: 64rem) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- Páginas simples (privacidade/termos/404) ---------- */

.legal-content {
  max-width: 42rem;
}

.legal-content h2 {
  margin-top: 2rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1em;
}

.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 48rem) {
  .include-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .trust-badges {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 80rem) {
  :root {
    --container-width: 64rem;
  }

  .include-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
