/* Jéssika Ciríaco, psicóloga — style.css
   Direção E "Ciclo, em movimento" (DESIGN.md). Base técnica: skill nova-landing-page.
   Ordem: 1. tokens · 2. base técnica · 3. componentes · 4. seções · 5. movimento · 6. media queries (bloco único no FINAL).
   Contraste medido com scripts/contraste.js (valores ao lado dos tokens). */

/* ── 1. Tokens (DESIGN.md) ── */
:root {
  /* Superfícies */
  --bg:        #F8F5F0;   /* off-white */
  --surface:   #FFFDF9;
  --surface-2: #EAE3D9;   /* areia */
  --dark:      #493D39;   /* marrom profundo: faixa da frase e rodapé */

  /* Texto (contraste contra --bg · --surface-2) */
  --text:        #493D39; /* 9.6 · 8.2 */
  --muted:       #625751; /* 6.4 · 5.5 */
  --accent-text: #5E6658; /* 5.5 · 4.7 — sálvia escura (derivada de #777F70) */
  --on-primary:  #FFFFFF; /* 6.0 sobre --primary · 7.7 sobre --primary-hover */
  --on-dark:        #F8F5F0; /* 9.6 sobre --dark */
  --on-dark-muted:  #D9CFC4; /* 6.8 */
  --on-dark-accent: #E6D3A6; /* 7.1 */

  /* Marca */
  --primary:       #5E6658;
  --primary-hover: #4E5549;
  --salvia:        #777F70; /* só gráfico: traço do ciclo (3.8) */
  --line:          #B89A58; /* só decorativo: dourado */
  --agua-rgb:      169, 217, 210; /* verde-água: só fundo (manchas) */

  /* UI */
  --border:        #E4DBCF;
  --border-strong: #D3C7B8;
  --focus:         var(--primary);
  --shadow-rgb:    73, 61, 57;
  --bg-rgb:        248, 245, 240;
  --on-dark-rgb:   248, 245, 240;

  /* Tipografia */
  --font-title: 'Literata', Georgia, serif;
  --font-body:  'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escalas */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --section-py: 104px;
  --container: 1120px;
  --px: 24px;
  --navbar-h: 76px;
  --tap: 44px;
  --radius-sm: 8px; --radius-md: 14px; --radius-btn: 10px; --radius-full: 9999px;

  /* Movimento: preciso e sereno */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-reveal: 800ms;
  --dur-foto: 1100ms;
  --dur-ciclo: 1800ms;
  --stagger: 90ms;
}

@font-face { font-family: 'Literata'; src: url('assets/fonts/literata-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('assets/fonts/literata-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('assets/fonts/source-sans-3-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('assets/fonts/source-sans-3-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ── 2. Base técnica ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; interpolate-size: allow-keywords; }
body {
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 18px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent-text); -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; padding: 0; }
h1, h2 { text-wrap: balance; }
h3, p { text-wrap: pretty; }
[id] { scroll-margin-top: calc(var(--navbar-h) + var(--space-4)); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; top: var(--space-2); left: var(--space-2); z-index: 1000; padding: var(--space-3) var(--space-4); background: var(--primary); color: var(--on-primary); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus-visible { transform: none; }
.svg-sprite { display: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--px); }

/* Alvos de toque ≥ 44px nos controles fixos */
.navbar-toggle, .navbar-close, .whatsapp-float, .credit-link, .footer-links a, .footer-cookies { min-height: var(--tap); min-width: var(--tap); }

/* ── 3. Componentes ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); padding: 10px 22px;
  border-radius: var(--radius-btn); border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn svg { flex-shrink: 0; }

.eyebrow, .section-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.section-title { margin-top: var(--space-3); font-family: var(--font-title); font-weight: 500; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -.015em; }
.section-title em, .hero-title em { font-style: italic; color: var(--accent-text); }
.section-sub { max-width: 620px; margin-top: var(--space-4); color: var(--muted); }

/* Fotos do ensaio (assets/IMAGENS.md), sempre em círculo */
.foto { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--surface-2); }

/* Manchas de cor (decorativas) */
.mancha { position: absolute; z-index: 0; border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; pointer-events: none; }

/* ── 4. Seções (na ordem do index.html) ── */

/* Banner de cookies (compacto; não cobre o CTA no celular) */
.cookie-banner {
  position: fixed; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: 70;
  display: flex; align-items: center; gap: var(--space-4) var(--space-5);
  max-width: 760px; margin: 0 auto; padding: var(--space-4) var(--space-5);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(var(--shadow-rgb), .14);
  font-size: 15px; line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; gap: var(--space-2); flex-shrink: 0; }
.cookie-actions .btn { min-width: 104px; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--bg-rgb), .94); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.navbar.is-scrolled { box-shadow: 0 6px 24px rgba(var(--shadow-rgb), .07); }
.navbar-inner { display: flex; align-items: center; gap: var(--space-6); height: var(--navbar-h); }
.logo { display: flex; flex-direction: column; justify-content: center; min-height: var(--tap); color: var(--text); text-decoration: none; line-height: 1.15; }
.logo-name { font-family: var(--font-title); font-weight: 500; font-size: 22px; }
.logo-sub { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.navbar-links { display: flex; gap: var(--space-1); margin-left: auto; }
.navbar-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-3); color: var(--text); font-size: 15px; text-decoration: none; }
.navbar-toggle { display: none; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: var(--radius-sm); color: var(--text); }

/* Menu mobile */
.navbar-mobile { position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; padding: var(--space-4) var(--px) var(--space-6); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.navbar-mobile.open { display: flex; }
.navbar-close { display: inline-flex; align-items: center; justify-content: center; align-self: flex-end; margin-bottom: var(--space-4); background: transparent; border: 0; border-radius: var(--radius-sm); color: var(--text); }
.navbar-mobile nav { display: flex; flex-direction: column; }
.navbar-mobile a:not(.btn) { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--border); font-family: var(--font-title); font-size: 22px; color: var(--text); text-decoration: none; }
.navbar-mobile .btn { margin-top: var(--space-5); }

/* Hero: texto | ciclo da TCC em volta da foto redonda */
.hero { position: relative; overflow: clip; padding: var(--space-8) 0; }
.hero .container { position: relative; z-index: 1; }
.mancha--1 { width: 340px; height: 300px; left: -160px; top: 48%; background: var(--surface-2); }
.mancha--2 { width: 220px; height: 190px; right: 4%; top: -80px; background: rgba(var(--agua-rgb), .3); }
.mancha--3 { display: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.hero-title { margin-top: var(--space-4); font-family: var(--font-title); font-weight: 500; font-size: clamp(40px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -.02em; }
.hero-sub { max-width: 560px; margin-top: var(--space-5); color: var(--muted); font-size: 19px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-note { margin-top: var(--space-3); color: var(--muted); font-size: 14px; }
.hero-visual { position: relative; aspect-ratio: 320 / 300; }
.foto--hero { position: absolute; left: 27%; top: 32.8%; width: 46%; }
.ciclo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ciclo-linha { fill: none; stroke: var(--salvia); stroke-width: 1.5; }
.ciclo-no circle { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.ciclo-no text { font-family: var(--font-title); font-style: italic; font-size: 12px; fill: var(--text); text-anchor: middle; }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border-strong); }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; padding-left: var(--space-4); border-left: 2px solid var(--line); }
.hero-facts strong { font-family: var(--font-title); font-weight: 500; font-size: 21px; line-height: 1.2; }
.hero-facts span { color: var(--muted); font-size: 14px; }

/* Frase em faixa escura */
.frase { position: relative; overflow: clip; padding: var(--space-9) 0; background: var(--dark); text-align: center; }
.frase blockquote p { max-width: 860px; margin: 0 auto; font-family: var(--font-title); font-style: italic; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.2; color: var(--on-dark); }
.frase footer { margin-top: var(--space-4); color: var(--on-dark-accent); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }

.section { padding: var(--section-py) 0; }

/* Sobre: foto redonda | texto */
.sobre-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: var(--space-8); align-items: start; }
.sobre-texto > p:not(.section-label):not(.assinatura) { margin-top: var(--space-4); color: var(--muted); }
.sobre-texto h2 + p { margin-top: var(--space-5); }
.sobre-curiosidades { font-style: italic; }
.sobre-subtitulo { margin-top: var(--space-6); color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.formacao { margin-top: var(--space-3); }
.formacao li { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.assinatura { margin-top: var(--space-5); color: var(--muted); font-size: 14px; }

/* Como posso ajudar: duas colunas com fio no topo */
.temas { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--space-8); margin-top: var(--space-7); }
.tema { display: flex; flex-direction: column; padding: var(--space-5) 0; border-top: 1px solid var(--border-strong); }
.tema--casal { grid-column: 1 / -1; }
.tema h3 { font-family: var(--font-title); font-weight: 500; font-size: 23px; line-height: 1.2; }
.tema p { margin-top: var(--space-3); color: var(--muted); font-size: 15px; }
.tema-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap); margin-top: auto; padding-top: var(--space-3); font-size: 15px; font-weight: 600; text-decoration: none; }
.tema-link span { transition: transform var(--dur-base) var(--ease-out); }

/* Como a TCC funciona: trilho + três cartões ligados por setas */
.tcc { background: var(--surface-2); }
.trilho { position: relative; height: 24px; margin-top: var(--space-7); }
.trilho::before, .trilho-progresso { content: ""; position: absolute; left: 16.66%; width: 66.66%; top: 11px; height: 2px; border-radius: 2px; }
.trilho::before { background: var(--border-strong); }
.trilho-progresso { background: var(--line); transform: scaleX(0); transform-origin: left center; }
.trilho-ponto { position: absolute; top: 4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border-strong); transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.trilho-ponto--1 { left: 16.66%; } .trilho-ponto--2 { left: 50%; } .trilho-ponto--3 { left: 83.33%; }
.trilho-ponto.is-on { background: var(--line); border-color: var(--line); transform: scale(1.15); }
.tcc-itens { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-4); }
.tcc-itens li { position: relative; padding: var(--space-6); background: var(--surface); border-radius: var(--radius-md); }
.tcc-itens li:not(:last-child)::after { content: "→"; position: absolute; right: -26px; top: 50%; transform: translateY(-50%); color: var(--accent-text); font-size: 22px; }
.tcc-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; color: var(--accent-text); font-family: var(--font-title); font-style: italic; font-size: 20px; }
.tcc-itens h3 { margin-top: var(--space-4); font-family: var(--font-title); font-weight: 500; font-size: 26px; }
.tcc-itens p { margin-top: var(--space-2); color: var(--muted); }
.tcc-fecho { max-width: 680px; margin-top: var(--space-7); font-size: 19px; }

/* Como funciona */
.passos { display: flex; flex-direction: column; margin-top: var(--space-7); }
.passos li { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--border-strong); }
.passo-num { color: var(--accent-text); font-family: var(--font-title); font-style: italic; font-weight: 500; font-size: 34px; line-height: 1; }
.passos h3 { font-family: var(--font-title); font-weight: 500; font-size: 24px; }
.passos p { margin-top: var(--space-2); color: var(--muted); }
.infos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-6); margin-top: var(--space-6); }
.infos li { position: relative; padding-left: 22px; font-size: 15px; }
.infos li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1.5px; background: var(--line); }
.funciona-cta { margin-top: var(--space-6); }

/* Dúvidas */
.duvidas-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-8); align-items: start; }
.faq { border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 64px; padding: var(--space-3) 0; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; color: var(--accent-text); font-size: 24px; font-weight: 400; transition: transform var(--dur-base) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 620px; padding-bottom: var(--space-5); color: var(--muted); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Fechamento */
.fecho { position: relative; overflow: clip; background: var(--surface-2); }
.fecho .container { position: relative; z-index: 1; }
.mancha--4 { width: 280px; height: 240px; left: -100px; top: -80px; background: rgba(var(--agua-rgb), .3); }
.fecho-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.fecho-inner > p { margin: var(--space-4) 0 var(--space-6); color: var(--muted); }
.fecho .fecho-nota { margin: var(--space-4) 0 0; font-size: 15px; }
.fecho-nota a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); }

/* Rodapé */
.site-footer { padding: var(--space-8) 0 var(--space-5); background: var(--dark); color: var(--on-dark-muted); font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); }
.footer-marca .logo-name { margin-bottom: var(--space-2); color: var(--on-dark); font-size: 26px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 0 var(--space-6); align-content: start; }
.footer-links a, .footer-cookies { display: inline-flex; align-items: center; padding: 0; background: none; border: 0; color: var(--on-dark-accent); font-size: 15px; text-decoration: none; text-align: left; }
.footer-cookies[hidden] { display: none; }
.footer-emergencia { grid-column: 1 / -1; padding: var(--space-4) var(--space-5); border: 1px solid rgba(var(--on-dark-rgb), .2); border-radius: var(--radius-md); font-size: 14px; }
.footer-emergencia strong { color: var(--on-dark); }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid rgba(var(--on-dark-rgb), .2); font-size: 13px; }
.site-footer :focus-visible { outline-color: var(--on-dark-accent); }

/* Crédito Senhorini: discreto, na cor do rodapé (símbolo monocromático) */
.credit-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--on-dark-muted); text-decoration: none; }
.credit-mark rect { fill: currentColor; }
.credit-mark path { stroke: var(--dark); }

/* WhatsApp: flutuante (computador) e barra fixa (celular), depois que o CTA do hero sai da tela */
.whatsapp-float {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 24px rgba(var(--shadow-rgb), .25);
  opacity: 0; transform: scale(.85); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.whatsapp-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.barra-cta { display: none; }

/* Página legal (privacidade.html) */
.navbar--legal .navbar-inner { justify-content: space-between; gap: var(--space-4); }
.legal { padding: var(--space-8) 0 var(--section-py); }
.legal .container { max-width: 800px; }
.legal .back { display: inline-flex; align-items: center; min-height: var(--tap); margin-bottom: var(--space-4); font-weight: 600; }
.legal h1 { font-family: var(--font-title); font-weight: 500; font-size: clamp(34px, 4vw, 46px); line-height: 1.12; letter-spacing: -.015em; }
.legal h2 { margin-top: var(--space-6); font-family: var(--font-title); font-weight: 500; font-size: 24px; line-height: 1.25; }
.legal p, .legal li { margin-top: var(--space-3); color: var(--muted); }
.legal .updated { margin-top: var(--space-2); font-size: 14px; }
.legal table { width: 100%; margin-top: var(--space-4); border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: var(--space-3); border-bottom: 1px solid var(--border-strong); text-align: left; vertical-align: top; }
.legal th { color: var(--text); font-weight: 600; }
.legal .table-wrap { overflow-x: auto; }

/* ── 5. Movimento (DESIGN.md, seção 6) ── */
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes revelar-circulo { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(50% at 50% 50%); } }
@keyframes desenhar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes acender { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes flutuar { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(18px, -14px) rotate(8deg); } }

/* Ao abrir: rótulo, subtítulo, nota e fatos em sequência; a foto se abre do centro; o ciclo se desenha em
   velocidade constante e cada ponto acende quando a linha passa (pensamento → emoção → ação).
   O H1 e os botões do hero não animam. */
.seq { animation: subir var(--dur-reveal) var(--ease-out) both; }
.seq--2 { animation-delay: calc(var(--stagger) * 1); }
.seq--3 { animation-delay: calc(var(--stagger) * 2); }
.seq--4 { animation-delay: calc(var(--stagger) * 6); }
.seq--foto { animation: none; }
.seq--foto .foto--hero { animation: revelar-circulo var(--dur-foto) var(--ease-out) 100ms both; }
.ciclo-linha { stroke-dasharray: 1; animation: desenhar var(--dur-ciclo) linear 300ms both; }
.ciclo-no { transform-box: fill-box; transform-origin: center; animation: acender 520ms var(--ease-out) both; }
.ciclo-no--1 { animation-delay: 250ms; }
.ciclo-no--2 { animation-delay: calc(300ms + var(--dur-ciclo) / 3 - 100ms); }
.ciclo-no--3 { animation-delay: calc(300ms + var(--dur-ciclo) * 2 / 3 - 100ms); }

/* Manchas flutuando devagar (só transform) */
.mancha { animation: flutuar 24s ease-in-out infinite alternate; }
.mancha--2, .mancha--4 { animation-duration: 30s; animation-direction: alternate-reverse; }

/* Ao rolar: blocos aparecem em sequência curta. Só esconde quando há JS (main.js põe .js no <html>). */
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity var(--dur-reveal) var(--ease-out) var(--d, 0s), transform var(--dur-reveal) var(--ease-out) var(--d, 0s); }
.temas > .reveal:nth-child(2n), .tcc-itens > .reveal:nth-child(2), .passos > .reveal:nth-child(2) { --d: var(--stagger); }
.tcc-itens > .reveal:nth-child(3), .passos > .reveal:nth-child(3) { --d: calc(var(--stagger) * 2); }
/* O tema mantém o hover (translate) separado do revelar (transform) */
.tema.reveal { transition: opacity var(--dur-reveal) var(--ease-out) var(--d, 0s), transform var(--dur-reveal) var(--ease-out) var(--d, 0s), translate var(--dur-base) var(--ease-out); }

/* ── 6. Media queries — bloco único, sempre no final ── */

/* Hover só com ponteiro de verdade (sem hover "grudado" no toque) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .whatsapp-float:hover { background: var(--primary-hover); }
  .btn-ghost:hover { border-color: var(--text); }
  .navbar-links a:hover { color: var(--accent-text); }
  .tema:hover { translate: 0 -3px; }
  .tema-link:hover { text-decoration: underline; text-underline-offset: 4px; }
  .tema-link:hover span { transform: translateX(3px); }
  .footer-links a:hover, .footer-cookies:hover, .credit-link:hover span { text-decoration: underline; text-underline-offset: 4px; }
}

/* Movimento reduzido: tudo pronto, sem deslocamento nem animação longa */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .seq, .seq--foto .foto--hero, .ciclo-linha, .ciclo-no, .mancha { animation: none !important; }
  .ciclo-linha { stroke-dasharray: none; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}

/* Os 4 links + botão deixam de caber → ☰ */
@media (max-width: 1000px) {
  .navbar-links { display: none; }
  .navbar-cta { margin-left: auto; }
  .navbar-toggle { display: inline-flex; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --section-py: 72px; }
  .hero-grid, .sobre-grid, .duvidas-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero-visual { width: 100%; max-width: 400px; }
  .foto--sobre { max-width: 280px; }
  .trilho { display: none; }
  .tcc-itens { grid-template-columns: 1fr; gap: var(--space-7); margin-top: var(--space-7); }
  .tcc-itens li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -34px; transform: translateX(-50%); }
  .whatsapp-float { display: none; }
  .barra-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(var(--bg-rgb), .96); border-top: 1px solid var(--border);
    transform: translateY(110%); transition: transform 320ms var(--ease-out);
  }
  .barra-cta.is-on { transform: none; }
  .barra-cta .btn { width: 100%; }
  .site-footer { padding-bottom: 104px; }
  /* No celular o aviso fica no topo: embaixo ele cobria o botão do WhatsApp do hero (guia, seção 11) */
  .cookie-banner { top: calc(var(--navbar-h) + var(--space-2)); bottom: auto; flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .cookie-actions .btn { flex: 1; }
}

@media (max-width: 640px) {
  :root { --px: 20px; --navbar-h: 64px; }
  .logo-name { font-size: 20px; }
  .logo-sub { font-size: 11px; }
  .navbar-cta { padding: 8px 14px; font-size: 14px; }
  .hero { padding-top: var(--space-6); }
  .hero-sub { font-size: 17px; }
  .hero-btns .btn { width: 100%; }
  .hero-visual { max-width: 340px; margin: 0 auto; }
  .hero-facts { gap: var(--space-4); }
  .mancha--1 { width: 220px; height: 200px; left: -120px; }
  .temas, .infos { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-banner { left: var(--space-3); right: var(--space-3); padding: var(--space-3) var(--space-4); font-size: 14px; }
}

/* Telas muito estreitas: o botão do topo sai (a barra fixa do WhatsApp aparece depois do hero) */
@media (max-width: 420px) {
  .navbar-cta { display: none; }
  .navbar-toggle { margin-left: auto; }
}
