/* =========================================================
   Itavra Ads — estilos
   Mobile first: o que está fora de @media vale para o celular.
   Cores e fontes ficam nas variáveis abaixo.

   Linguagem visual:
   - títulos grandes em Inter, letras juntas, com uma palavra em itálico (Instrument Serif);
   - etiquetas pequenas em Montserrat maiúsculo, como o slogan do logo;
   - a placa inclinada do logo e a "serra" (o recorte da ponta do A) como marcas próprias.
   ========================================================= */

:root {
  --navy: #0B1026;      /* azul-noite */
  --gold: #E8C872;      /* dourado: destaques e botões */
  --gold-hover: #F1D898;
  --gold-dark: #7A5C14; /* dourado escuro: destaque sobre o creme (contraste AA) */
  --cream: #F4F1EA;     /* creme */
  --cream-muted: rgba(244, 241, 234, .72);
  --navy-muted: rgba(11, 16, 38, .74);
  --line-dark: rgba(244, 241, 234, .16);
  --line-light: rgba(11, 16, 38, .16);

  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: 20px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);

  /* forma da placa do logo, usada como marcador */
  --plate: polygon(14.75% 13.4%, 100% 0, 100% 100%, 0 91.5%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 7.4vw + .4rem, 7.25rem);
  line-height: .96;
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(2rem, 3.4vw + .9rem, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  max-width: 20ch;
}

h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
h4 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.015em; }

/* A palavra em destaque de cada título */
h1 em, h2 em, .closing em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -.01em;
  color: var(--gold-dark);
}
.dark h1 em, .dark h2 em { color: var(--gold); }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 1px;
}
.dark :focus-visible, .site-header :focus-visible, .cookie-banner :focus-visible { outline-color: var(--gold); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.dark { background: var(--navy); color: var(--cream); }
.light { background: var(--cream); color: var(--navy); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Etiquetas ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .72rem;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.label-muted { color: var(--cream-muted); }
.label .num { color: var(--gold-dark); }
.dark .label .num { color: var(--gold); }

/* marcador com a forma da placa do logo */
.dot {
  width: 9px;
  height: 12px;
  flex: none;
  background: var(--gold);
  clip-path: var(--plate);
}

/* ---------- Botões e links ---------- */
.arrow {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  transition: transform .2s var(--ease-out);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform .12s var(--ease-out);
}
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn:active { transform: scale(.98); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(244, 241, 234, .4); }
.btn-outline:hover { border-color: var(--cream); }
.btn-small { min-height: 44px; padding: 0 16px; gap: 12px; font-size: .9375rem; }
.btn-small .arrow { width: 16px; height: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  text-decoration: none;
}
.link-arrow:hover .arrow-down { transform: translateY(3px); }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Marca (logo + ADS) ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--cream); }
.brand-mark { height: 24px; width: auto; }
.brand-ads {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1.5px solid rgba(244, 241, 234, .55);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .875rem;
  line-height: 1;
  letter-spacing: .14em;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 16, 38, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--cream);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.header-nav { display: none; }
.site-header .btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 0; }
.hero-inner { display: flex; flex-direction: column; gap: 40px; }
.meta-row { display: flex; flex-direction: column; gap: 8px; }
.meta-row .label-muted { display: none; }
.hero h1 { max-width: 12ch; }
.hero-main { display: grid; gap: 28px; }
.lead { color: var(--cream-muted); font-size: 1.125rem; line-height: 1.55; max-width: 32em; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 28px; }
.hero-actions .btn { width: 100%; }
.hero-plate { display: none; }

.facts { list-style: none; margin: 0 0 64px; padding: 0; display: grid; }
.facts li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
}
.facts strong { font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; }
.facts span { color: var(--cream-muted); font-size: .875rem; line-height: 1.45; }

/* Serra: linha fina dourada com o recorte de montanha da ponta do A */
.serra {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  overflow: visible;
}
.serra path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: miter;
}

/* ---------- Seções ---------- */
.section { padding: 80px 0; }
.section-line { padding-top: 0; }
.section-line::before {
  content: "";
  display: block;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  height: 1px;
  margin: 0 auto 80px;
  background: var(--line-light);
}

/* rótulo à esquerda, conteúdo à direita (no celular: um embaixo do outro) */
.split { display: grid; gap: 22px; }

/* Problema */
.rows { list-style: none; margin: 48px 0 0; padding: 0; }
.rows li { display: grid; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line-light); }
.rows li:last-child { border-bottom: 1px solid var(--line-light); }
.rows p { color: var(--navy-muted); }
.closing { margin-top: 44px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.3; }

/* Como funciona */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 36px; }
.steps li { border-top: 1px solid var(--navy); padding-top: 16px; }
.step-num {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--gold-dark);
}
.steps h3 { margin: 28px 0 10px; }
.steps p { color: var(--navy-muted); }

/* O que está incluso */
.included { list-style: none; margin: 44px 0 0; padding: 0; display: grid; column-gap: 40px; }
.included li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
  font-weight: 500;
}
.included li::before {
  content: "";
  width: 10px;
  height: 13px;
  flex: none;
  background: var(--gold-dark);
  clip-path: var(--plate);
}
.note { margin-top: 24px; color: var(--navy-muted); font-size: .9375rem; max-width: 36em; }

/* Prova (escondida até ter dados reais) */
.proof-grid { display: grid; gap: 24px; margin-top: 40px; }
.proof figcaption { margin-top: 10px; color: var(--navy-muted); font-size: .9375rem; }

/* Garantia */
.garantia h2 {
  max-width: 26ch;
  font-size: clamp(1.75rem, 2.6vw + .8rem, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}

/* Missão */
.missao-texto { display: grid; gap: 22px; margin-top: 36px; }
.missao-texto p { color: var(--cream-muted); max-width: 34em; }
.verbete-palavra {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--cream);
  margin-right: 6px;
}
.verbete-classe {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px 1px;
  border: 1px solid rgba(232, 200, 114, .6);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: middle;
}
.verbete-def { color: var(--cream); font-weight: 500; }

.principios-titulo { display: flex; margin-top: 80px; color: var(--cream-muted); }
.principios { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 28px; }
.principios li { border-top: 1px solid var(--line-dark); padding-top: 18px; }
.principios h4 { margin-bottom: 8px; }
.principios p { color: var(--cream-muted); }

/* Perguntas */
.faq-title { font-size: clamp(1.75rem, 2.2vw + .9rem, 3rem); margin-top: 22px; max-width: 14ch; }
.faq { margin-top: 20px; border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold-dark);
  transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--navy-muted); max-width: 40em; }

/* CTA final */
.cta-final { position: relative; padding: 104px 0 88px; }
.serra-top { top: 0; bottom: auto; transform: scaleY(-1); }
.cta-inner { display: grid; gap: 32px; }
.cta-final h2 { font-size: clamp(2.5rem, 5.6vw + .5rem, 6rem); line-height: .98; max-width: 13ch; }
.cta-side { display: grid; gap: 28px; align-content: end; }
.cta-final .btn { width: 100%; }

/* ---------- Rodapé ---------- */
.site-footer { padding: 56px 0 112px; border-top: 1px solid var(--line-dark); } /* 112px: espaço para o botão fixo do celular */
.footer-grid { display: grid; gap: 36px; }
.site-footer .brand-mark { height: 28px; }
.slogan {
  margin-top: 16px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-title {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 10px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; }
.footer-links a, .footer-links .link-button {
  display: inline-block;
  padding: 7px 0;
  color: var(--cream);
  text-decoration: none;
}
.footer-links a:hover, .footer-links .link-button:hover { text-decoration: underline; }
.footer-links .link-button { text-decoration: none; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: .8125rem;
  color: rgba(244, 241, 234, .6);
}

/* ---------- Botão fixo do WhatsApp (celular) ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 2px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(11, 16, 38, .35);
  transition: transform .25s var(--ease-out), opacity .2s var(--ease-out);
}
.wa-float .arrow { width: 16px; height: 16px; }
.wa-float.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.cookie-open .wa-float { display: none; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  background: var(--navy);
  color: var(--cream);
  border: 1px solid rgba(232, 200, 114, .4);
  border-radius: 4px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  font-size: .9375rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie-actions .btn { flex: 1; justify-content: center; }

/* ---------- Animação ao rolar ---------- */
.reveal-pending { opacity: 0; transform: translateY(16px); }
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

/* Brilho que passa uma vez pela placa ("pedra que brilha") */
.glint {
  position: absolute;
  inset: 0;
  clip-path: var(--plate);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 130% 0;
  animation: glint 1.8s var(--ease-out) .9s 1 both;
  pointer-events: none;
}
@keyframes glint { to { background-position: -30% 0; } }

@media (prefers-reduced-motion: reduce) {
  .reveal-pending { opacity: 1; transform: none; }
  .glint { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .site-header .btn { display: inline-flex; }
  .meta-row { flex-direction: row; justify-content: space-between; }
  .meta-row .label-muted { display: inline-flex; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
  .link-arrow { white-space: nowrap; }
  .hero-actions .btn, .cta-final .btn { width: auto; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .facts li { grid-template-columns: 1fr; gap: 6px; padding-top: 18px; }
  .facts strong { font-size: 1.5rem; }
  .rows li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; padding: 26px 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 44px 32px; }
  .included { grid-template-columns: 1fr 1fr; }
  .principios { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .cookie-banner { left: 24px; right: auto; bottom: 24px; max-width: 520px; }
}

/* ---------- Computador ---------- */
@media (min-width: 960px) {
  .site-footer { padding-bottom: 32px; }
  .wa-float { display: none; }
  .header-inner { min-height: 72px; }
  .brand-mark { height: 26px; }
  .header-nav { display: flex; gap: 32px; margin-left: auto; }
  .header-nav a { font-size: .9375rem; color: var(--cream-muted); text-decoration: none; padding: 8px 0; }
  .header-nav a:hover { color: var(--cream); }

  .hero { padding-top: 36px; }
  .hero-inner { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); justify-content: space-between; gap: 56px; }
  .hero-main { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 56px; align-items: end; }
  .hero-side { display: flex; flex-direction: column; }
  .hero-plate {
    display: block;
    position: relative;
    align-self: flex-end;
    width: clamp(120px, 11vw, 168px);
    margin-bottom: 40px;
  }
  .hero-plate img { width: 100%; }
  .facts { margin-bottom: 84px; }

  .section { padding: 128px 0; }
  .section-line { padding-top: 0; }
  .section-line::before { margin-bottom: 128px; }
  .split { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
  .split > .label { align-self: start; padding-top: 14px; }
  .steps { grid-template-columns: repeat(4, 1fr); margin-top: 88px; margin-left: calc(220px + 48px); }
  .missao-texto { grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
  .principios-titulo { margin-top: 112px; }
  .principios { grid-template-columns: repeat(4, 1fr); }

  #perguntas .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 80px; }

  .cta-final { padding: 160px 0 120px; }
  .cta-inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; align-items: end; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 960px) and (max-width: 1180px) {
  .steps { margin-left: 0; }
}
