/* ==========================================================================
   Tokens de design: troque a identidade do cliente aqui (etapa 3 do fluxo)
   Valores de fonte, espaçamento e raio seguem a landing-page-design (B1–B3),
   traduzidos da escala do Tailwind para custom properties.
   ========================================================================== */
:root {
  /* Cores (semânticas: componentes usam só estas) */
  --color-bg: #fffaf6;
  --color-bg-alt: #f6e9e1;
  --color-text: #2b1f1c;
  --color-text-muted: #5e4b45;
  --color-primary: #8f4a3a;        /* cor do CTA: única ação preenchida */
  --color-primary-hover: #733a2d;
  --color-primary-text: #ffffff;
  --color-accent: #6b7f5e;         /* checks, destaques positivos */
  --color-danger: #b91c1c;         /* lista de dores, erros */
  --color-border: #ead8cd;
  --color-focus: #8f4a3a;

  /* Tipografia: Manrope por padrão; a fonte do cliente prevalece */
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: var(--font-body);

  /* Escala B1 (tamanho / altura de linha) */
  --text-xs: 0.75rem;   --leading-xs: 1rem;
  --text-sm: 0.875rem;  --leading-sm: 1.25rem;
  --text-base: 1rem;    --leading-base: 1.5rem;
  --text-lg: 1.125rem;  --leading-lg: 1.75rem;
  --text-xl: 1.25rem;   --leading-xl: 1.75rem;
  --text-2xl: 1.5rem;   --leading-2xl: 2rem;
  --text-3xl: 1.875rem; --leading-3xl: 2.25rem;
  --text-4xl: 2.25rem;  --leading-4xl: 2.5rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Espaçamento B2: só estes valores */
  --space-25: 2px;
  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
  --space-900: 96px;

  /* Raios (escala do Tailwind) */
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* Layout */
  --container: 1120px;
  --container-narrow: 720px;
  --measure-hero: 680px;
  --section-py: var(--space-700);

  /* Sombras */
  --shadow: 0 1px 2px rgb(15 17 21 / 0.06), 0 8px 24px rgb(15 17 21 / 0.08);

  /* Movimento: tokens únicos do projeto (a skill animate reaproveita, não cria outros) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);  /* curva-base B7 */
  --duration-layout: 500ms;
  --duration-hover: 300ms;
  --duration-press: 150ms;
  --press-scale: 0.96;                          /* better-ui */
}

@media (min-width: 768px) {
  :root { --section-py: var(--space-900); }
}

/* ==========================================================================
   Reset leve
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
a { color: var(--color-primary); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; text-wrap: balance; }
p, li { text-wrap: pretty; }

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

.skip-link {
  position: absolute;
  left: var(--space-200);
  top: var(--space-200);
  z-index: 100;
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-lg);
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-200);
}
.container.narrow { max-width: var(--container-narrow); }
.center { text-align: center; }

.section { padding-block: var(--section-py); }
.section--alt { background: var(--color-bg-alt); }
.section h2 {
  font-size: var(--text-3xl);
  line-height: var(--leading-3xl);
  margin-bottom: var(--space-400);
}
@media (min-width: 768px) {
  .section h2 { font-size: var(--text-4xl); line-height: var(--leading-4xl); }
}

.grid { display: grid; gap: var(--space-300); }
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Componentes
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-75) var(--space-300);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--duration-hover) var(--ease-out),
              transform var(--duration-press) ease-out;
}
.btn:active { transform: scale(var(--press-scale)); }
.btn--small { min-height: 40px; padding: var(--space-75) var(--space-200); font-size: var(--text-sm); }
.btn--block { display: flex; width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--color-primary-hover); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 250 246 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo { font-weight: 700; color: var(--color-text); text-decoration: none; }

.hero { padding-block: var(--space-800); text-align: center; }
.hero__inner { display: grid; justify-items: center; gap: var(--space-300); }
.hero h1 {
  max-width: var(--measure-hero);
  font-size: var(--text-4xl);
  line-height: var(--leading-4xl);
}
@media (min-width: 768px) {
  .hero { padding-block: var(--space-900); }
  .hero h1 { font-size: var(--text-6xl); line-height: 1; }
}
.eyebrow {
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: 600;
  color: var(--color-primary);
}
.lead {
  max-width: var(--measure-hero);
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  color: var(--color-text-muted);
}
.hero__proof { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }

.list-check { list-style: none; padding: 0; display: grid; gap: var(--space-200); }
.list-check li {
  position: relative;
  padding-left: var(--space-400);
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-accent);
}
.list-check--negative li::before { content: "✕"; color: var(--color-danger); }

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-300);
}
.card h3 { font-size: var(--text-xl); line-height: var(--leading-xl); margin-bottom: var(--space-75); }
.card p { color: var(--color-text-muted); }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: var(--space-500);
  height: var(--space-500);
  margin-bottom: var(--space-200);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-primary-text);
  font-weight: 700;
}
.steps h3 { font-size: var(--text-xl); line-height: var(--leading-xl); margin-bottom: var(--space-75); }
.steps p { color: var(--color-text-muted); }

/* Tagline (B11): as palavras acendem uma a uma no scroll (etapa 6) */
.tagline p {
  max-width: var(--measure-hero);
  margin-inline: auto;
  font-size: var(--text-4xl);
  line-height: var(--leading-4xl);
  font-weight: 700;
  text-align: center;
}
@media (min-width: 768px) {
  .tagline p { font-size: var(--text-5xl); line-height: 1; }
}

.testimonial {
  background: var(--color-bg-alt);
  border-radius: var(--radius-2xl);
  padding: var(--space-300);
  display: grid;
  gap: var(--space-200);
}
.testimonial blockquote { font-size: var(--text-lg); line-height: var(--leading-lg); }
.testimonial figcaption { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600; color: var(--color-text-muted); }

.offer {
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow);
  padding: var(--space-400) var(--space-300);
  display: grid;
  gap: var(--space-300);
}
.offer h2 { margin-bottom: 0; text-align: center; }
.offer__price { display: grid; justify-items: center; gap: var(--space-50); }
.offer__price s { color: var(--color-text-muted); }
.offer__price strong { font-size: var(--text-5xl); line-height: 1; }
.offer__price span { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }
.offer__guarantee { text-align: center; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }

.faq { border-bottom: 1px solid var(--color-border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-200);
  padding-block: var(--space-200);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: var(--text-2xl);
  line-height: 1;
  transition: transform var(--duration-hover) var(--ease-out);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: var(--space-200); color: var(--color-text-muted); }

.cta-final h2 { margin-bottom: var(--space-300); }

/* Demo: componentes próprios */
.demo-bar {
  padding: var(--space-75) var(--space-200);
  background: var(--color-text);
  color: var(--color-bg);
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  text-align: center;
}
.btn--small { white-space: nowrap; min-height: 48px; }
.btn--long { display: none; }
@media (min-width: 480px) {
  .btn--long { display: inline; }
  .btn--short { display: none; }
}
.btn--wa { gap: var(--space-75); }
.btn--wa svg { flex: none; }
.icon-wrap {
  display: grid;
  place-items: center;
  width: var(--space-600);
  height: var(--space-600);
  margin-bottom: var(--space-200);
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  color: var(--color-primary);
}
.hero { background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg)); }
.place { display: flex; align-items: center; gap: var(--space-100); font-size: var(--text-lg); line-height: var(--leading-lg); }
.place svg { flex: none; color: var(--color-primary); }
.site-footer .demo-bar { margin-top: var(--space-200); border-radius: var(--radius-lg); }

.site-footer {
  padding-block: var(--space-400);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--color-text-muted);
  text-align: center;
}
.site-footer .container { display: grid; gap: var(--space-75); }
.site-footer a { color: inherit; }

.whatsapp-float {
  position: fixed;
  right: var(--space-200);
  bottom: var(--space-200);
  z-index: 20;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-400) var(--space-200);
}
.error-page__inner { display: grid; justify-items: center; gap: var(--space-300); max-width: var(--measure-hero); }
.error-page h1 { font-size: var(--text-4xl); line-height: var(--leading-4xl); }

/* ==========================================================================
   Acessibilidade: respeita quem pediu menos movimento
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
