/* ==========================================================================
   PortalEBD — site institucional (redesign "limpo e confiante")
   Tokens da marca — troque aqui e o site inteiro acompanha.
   ========================================================================== */

/* Poppins hospedada localmente (subset latin) — evita o bloqueio de render do Google Fonts */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/poppins-700.woff2) format('woff2'); }

:root {
  /* Marca (DNA do app Flutter — lib/main.dart) */
  --brand: #6F275F;            /* plum — assinatura da marca */
  --brand-dark: #5A1F4D;       /* plum escuro (hover) */
  --brand-soft: #F6EEF4;       /* plum lavado p/ fundos sutis */
  --accent: #27A68C;           /* verde do DS do app — acento e sucesso (checks) */
  --warning: #D6B10A;          /* amarelo do DS do app — alerta, destaque (medalha) */

  /* Neutros (superfícies do app) */
  --bg: #F0F2F5;               /* fundo cinza claro do app */
  --surface: #FFFFFF;
  --ink: #1F2328;              /* texto principal */
  --ink-soft: #5D5D5D;         /* texto secundário / ícones (cinza do app) */
  --hairline: #E4E6EA;         /* borda 1px */

  /* Tipografia */
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Forma — nada quadrado: todo elemento tem canto arredondado */
  --radius-sm: 12px;           /* ícones, controles pequenos */
  --radius: 16px;              /* cards, imagens */
  --radius-lg: 24px;           /* blocos grandes (CTA final, popup) */
  --pill: 999px;               /* botões pílula, como no app */
  --shadow: 0 1px 2px rgba(31, 35, 40, .04), 0 8px 24px rgba(31, 35, 40, .06);
  --shadow-float: 0 10px 30px rgba(111, 39, 95, .18);  /* elementos flutuantes */

  /* Espaçamentos de componentes */
  --space-note: 12px;          /* botão → texto de apoio logo abaixo */

  --container: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; overflow-x: clip; } /* conteúdo que sangra até a borda (carrosséis) não cria scroll lateral */
.section.alt { background: var(--bg); }

/* Cabeçalho de seção */
.section-head { max-width: 800px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--pill);
  padding: 4px 14px;
  margin-bottom: 16px;
}
.eyebrow-icon { display: inline-flex; align-items: center; gap: 6px; }
.eyebrow-icon svg { flex: none; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hero-badges .eyebrow { margin-bottom: 0; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-wrap: balance; } /* se quebrar, divide as linhas por igual (sem palavra sozinha) */
.section-head p { max-width: 640px; margin: 0 auto; color: var(--ink-soft); text-wrap: balance; }

/* ==========================================================================
   Botões — pílula, flat, como o elevatedButtonTheme do app
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--pill);
  padding: 14px 28px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--hairline); }
.btn-secondary:hover { border-color: var(--brand); }
.btn-on-brand { background: #fff; color: var(--brand); }
.btn-on-brand:hover { background: var(--brand-soft); }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);   /* branca sólida em todas as telas */
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--brand);         /* mesma cor do símbolo, como no app */
}
.nav-logo:hover { text-decoration: none; }
.nav-logo svg { width: 32px; height: 32px; color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a:not(.btn) { color: var(--ink-soft); font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--brand); text-decoration: none; }
.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.nav-toggle[aria-expanded="true"] { background: var(--brand); color: #fff; }
.nav-toggle-bars { position: relative; width: 18px; height: 14px; }
.nav-toggle-bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: var(--pill);
  background: currentColor;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 6px; }
.nav-toggle-bars i:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 96px 0 0; overflow-x: clip; } /* clip só na horizontal: não corta sombras embaixo */
/* telas largas: a capa ocupa a altura visível (menos a barra do topo), com o conteúdo centralizado.
   limitada a 900px para não sobrar vazio em monitores muito altos */
@media (min-width: 861px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
    padding: 32px 0 112px;   /* mais espaço embaixo: compensa o "Saiba mais" e sobe levemente o conteúdo */
  }
  .hero > .container { width: 100%; }
  .hero + .section { padding-top: 64px; }
  .hero { position: relative; }
}

/* indicador de "tem mais conteúdo abaixo" — só na capa de tela cheia */
.scroll-cue { display: none; }
@media (min-width: 861px) {   /* mesma condição da capa de tela cheia */
  .scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transform: translateX(-50%);
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-soft);
  }
  .scroll-cue:hover { color: var(--brand); text-decoration: none; }
  .scroll-cue svg { animation: cue-bob 1.8s ease-in-out infinite; }
}
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* telas grandes: ilustração da capa maior, aproveitando o espaço */
@media (min-width: 1200px) and (min-height: 760px) {
  .hero .hero-grid { grid-template-columns: minmax(0, 480px) minmax(0, 600px); gap: 40px; }
  .hero .hero-visual { max-width: 600px; }
}
/* telas bem largas: a capa é a única seção mais larga que o resto, com mais espaço entre título e animação */
@media (min-width: 1440px) and (min-height: 760px) {
  .hero > .container { max-width: min(1320px, calc(100vw - 160px)); }   /* mais larga, mas sempre com respiro nas laterais */
  .hero .hero-grid { grid-template-columns: minmax(0, 540px) minmax(0, 660px); justify-content: space-between; gap: 64px; }
  .hero .hero-visual { max-width: 660px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 500px);   /* conteúdo agrupado no centro, sem colar nas bordas */
  justify-content: center;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 460px;
}
/* botão + nota empilhados e centralizados entre si */
.hero-ctas { display: inline-flex; flex-direction: column; align-items: center; }
.hero-ctas .btn { min-width: 300px; }
@media (max-width: 480px) {
  .hero-ctas { display: flex; }
  .hero-ctas .btn { width: 100%; min-width: 0; }
  .cta-ctas { flex-direction: column; }
  .cta-points { gap: 10px; margin-bottom: 32px; }
  .cta-points li { font-size: .92rem; }
  .cta-point-icon { width: 32px; height: 32px; }
  .cta-ctas .btn { width: 100%; }
}

/* ilustração vazada + botão de play (o vídeo abre em popup) */
.hero-visual { position: relative; width: 100%; max-width: 520px; justify-self: center; }
/* --------------------------------------------------------------------------
   Ilustração do hero em HTML/CSS
   Coordenadas num quadro de 520×440 "unidades"; --u escala tudo com a largura.
   -------------------------------------------------------------------------- */
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 520 / 440;
  container-type: inline-size;
  isolation: isolate; /* z-index das peças fica contido aqui — o botão de play fica por cima */
}
.hero-art *, .sede-art * { --u: calc(100cqw / 520); }
.hero-art { --ha-shadow-y: 8; }
.hero-art > *, .ha-screen > *, .ha-card > *, .ha-toast > * { position: absolute; display: block; }

.ha-bg { left: calc(75 * var(--u)); top: calc(20 * var(--u)); width: calc(400 * var(--u)); height: calc(400 * var(--u)); border-radius: 50%; background: var(--brand-soft); }
.ha-dot { border-radius: 50%; }
.ha-dot-1 { left: calc(84 * var(--u)); top: calc(64 * var(--u)); width: calc(16 * var(--u)); height: calc(16 * var(--u)); background: var(--accent); }
.ha-dot-2 { left: calc(464 * var(--u)); top: calc(222 * var(--u)); width: calc(12 * var(--u)); height: calc(12 * var(--u)); background: var(--brand); opacity: .3; }
.ha-dot-3 { left: calc(113 * var(--u)); top: calc(325 * var(--u)); width: calc(10 * var(--u)); height: calc(10 * var(--u)); background: var(--brand); opacity: .3; }

/* celular */
.ha-phone {
  z-index: 2;
  left: calc(190 * var(--u)); top: calc(38 * var(--u)); width: calc(170 * var(--u)); height: calc(348 * var(--u));
  padding: calc(8 * var(--u));
  border-radius: calc(30 * var(--u));
  background: #2A2530;
  box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(111, 39, 95, .16);
}
.ha-screen { position: relative; height: 100%; border-radius: calc(23 * var(--u)); background: #fff; overflow: hidden; }
.ha-screen::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(72 * var(--u)); background: var(--brand); }
.ha-notch { left: calc(54 * var(--u)); top: calc(8 * var(--u)); width: calc(46 * var(--u)); height: calc(9 * var(--u)); border-radius: var(--pill); background: #2A2530; }
.ha-title { left: calc(16 * var(--u)); top: calc(34 * var(--u)); width: calc(72 * var(--u)); height: calc(9 * var(--u)); border-radius: var(--pill); background: #fff; }
.ha-sub { left: calc(16 * var(--u)); top: calc(50 * var(--u)); width: calc(44 * var(--u)); height: calc(7 * var(--u)); border-radius: var(--pill); background: rgba(255, 255, 255, .5); }
.ha-btn { left: calc(16 * var(--u)); top: calc(298 * var(--u)); width: calc(122 * var(--u)); height: calc(22 * var(--u)); border-radius: var(--pill); background: var(--brand); }

.ha-screen > .ha-row {
  display: flex;
  align-items: center;
  left: calc(14 * var(--u));
  top: calc((84 + 44 * var(--i)) * var(--u));
  width: calc(126 * var(--u));
  height: calc(24 * var(--u));
}
.ha-avatar { flex: none; width: calc(24 * var(--u)); height: calc(24 * var(--u)); border-radius: 50%; background: var(--brand); }
.ha-line { width: calc(var(--w) * var(--u)); height: calc(8 * var(--u)); margin-left: calc(8 * var(--u)); border-radius: var(--pill); background: #D5DAE0; }
.ha-check { position: relative; flex: none; width: calc(20 * var(--u)); height: calc(20 * var(--u)); margin-left: auto; border-radius: 50%; box-shadow: inset 0 0 0 calc(2.5 * var(--u)) #D5DAE0; }
/* check verde "marcando" por cima do aro vazio */
.ha-check:not(.is-absent)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  animation: ha-check 7s cubic-bezier(.3, 1.4, .5, 1) var(--d, 0s) infinite both;
}

/* cards flutuantes */
.ha-float { z-index: 3; animation: ha-float 4s ease-in-out infinite alternate; }
.ha-card, .ha-toast { position: relative; height: 100%; background: #fff; box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(111, 39, 95, .14); }
.ha-card { border-radius: calc(20 * var(--u)); }

.ha-presence { left: calc(58 * var(--u)); top: calc(128 * var(--u)); width: calc(124 * var(--u)); height: calc(124 * var(--u)); }
.ha-ring { left: calc(24 * var(--u)); top: calc(16 * var(--u)); width: calc(76 * var(--u)); height: calc(76 * var(--u)); transform: rotate(-90deg); overflow: visible; }
.ha-ring circle { fill: none; stroke: #EADCE6; stroke-width: 10; }
.ha-ring .ha-ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 176 176;
  stroke-dashoffset: 36;
  animation: ha-ring 7s ease-in-out infinite both;
}
.ha-card-line { left: calc(30 * var(--u)); top: calc(98 * var(--u)); width: calc(64 * var(--u)); height: calc(8 * var(--u)); border-radius: var(--pill); background: var(--hairline); }

.ha-rank { left: calc(372 * var(--u)); top: calc(72 * var(--u)); width: calc(130 * var(--u)); height: calc(94 * var(--u)); animation-delay: -1.3s; }
.ha-medal {
  left: calc(17 * var(--u)); top: calc(19 * var(--u)); width: calc(26 * var(--u)); height: calc(26 * var(--u));
  border-radius: 50%;
  background: var(--warning) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M13 6.5l2 4.1 4.5.6-3.3 3.1.8 4.4-4-2.1-4 2.1.8-4.4-3.3-3.1 4.5-.6z' fill='%23fff'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ha-medal.is-silver { left: calc(20 * var(--u)); top: calc(54 * var(--u)); width: calc(20 * var(--u)); height: calc(20 * var(--u)); background: #C3CAD3; }
.ha-bar { left: calc(52 * var(--u)); height: calc(10 * var(--u)); border-radius: var(--pill); transform-origin: left center; animation: ha-bar 7s ease-out infinite both; }
.ha-bar-1 { top: calc(27 * var(--u)); width: calc(58 * var(--u)); background: var(--brand); }
.ha-bar-2 { top: calc(59 * var(--u)); width: calc(42 * var(--u)); background: var(--accent); animation-delay: .25s; }

/* balão: sai de trás do celular e vem pra frente */
.ha-toast-wrap { z-index: 1; left: calc(346 * var(--u)); top: calc(304 * var(--u)); width: calc(150 * var(--u)); height: calc(54 * var(--u)); animation: ha-float 4s ease-in-out -2.6s infinite alternate, ha-toast-layer 7s step-end infinite; }
.ha-toast { border-radius: var(--pill); transform-origin: left center; animation: ha-toast 7s linear infinite both; }
.ha-toast-check {
  left: calc(12 * var(--u)); top: calc(12 * var(--u)); width: calc(30 * var(--u)); height: calc(30 * var(--u));
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M8.5 15.5l4.5 4.5 9-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ha-toast-line-1 { left: calc(52 * var(--u)); top: calc(17 * var(--u)); width: calc(72 * var(--u)); height: calc(8 * var(--u)); border-radius: var(--pill); background: var(--brand); }
.ha-toast-line-2 { left: calc(52 * var(--u)); top: calc(30 * var(--u)); width: calc(46 * var(--u)); height: calc(7 * var(--u)); border-radius: var(--pill); background: var(--hairline); }

/* Ciclo de 7s: checks marcando → gráficos enchendo → balão → reinicia */
@keyframes ha-float { from { transform: translateY(0); } to { transform: translateY(calc(-8 * var(--u))); } }
@keyframes ha-check {
  0% { transform: scale(0); opacity: 0; }
  6%, 82% { transform: scale(1); opacity: 1; }
  88%, 100% { transform: scale(0); opacity: 0; }
}
@keyframes ha-ring {
  0%, 18% { stroke-dashoffset: 176; }
  40%, 84% { stroke-dashoffset: 36; }
  92%, 100% { stroke-dashoffset: 176; }
}
@keyframes ha-bar {
  0%, 22% { transform: scaleX(0); }
  38%, 84% { transform: scaleX(1); }
  92%, 100% { transform: scaleX(0); }
}
/* balão: desliza pra direita até sair inteiro de trás do celular,
   passa pra frente e volta um pouco pra esquerda, ficando por cima do celular */
@keyframes ha-toast {
  0%, 38% { transform: translateX(-60%); opacity: 0; animation-timing-function: ease-out; }
  42% { transform: translateX(-45%); opacity: 1; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  54% { transform: translateX(20%); opacity: 1; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  64%, 84% { transform: translateX(0); opacity: 1; animation-timing-function: ease-in; }
  92%, 100% { transform: translateX(0) scale(.85); opacity: 0; }
}
/* atrás do celular enquanto sai; troca de camada quando está 100% visível (≈54%) */
@keyframes ha-toast-layer {
  0% { z-index: 1; }
  55% { z-index: 4; }
  94% { z-index: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ha-float, .ha-toast-wrap, .ha-toast, .ha-check::after, .ha-ring-fill, .ha-bar { animation: none !important; }
  .ha-toast-wrap { z-index: 4; }
}

.play-cta {
  position: absolute;
  left: 2%;
  bottom: 6%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 8px;
  border: 0;
  border-radius: var(--pill);
  background: #fff;
  box-shadow: var(--shadow-float);
  font: 600 .95rem/1 var(--font);
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.play-cta-text { display: grid; gap: 4px; text-align: left; }
.play-cta-text small { font-size: .78rem; font-weight: 500; color: var(--ink-soft); }
.play-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(111, 39, 95, .24); }
.play-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.play-cta-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
/* anel pulsando pra chamar atenção */
.play-cta-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: play-pulse 2s ease-out infinite;
}
@keyframes play-pulse {
  from { transform: scale(1); opacity: .6; }
  to { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .play-cta-icon::after { animation: none; }
}

/* popup do vídeo (<dialog> nativo: Esc fecha, foco preso dentro) */
.video-modal {
  width: min(960px, 92vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.video-modal::backdrop { background: rgba(31, 35, 40, .8); }
.video-modal-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.video-modal-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute;
  top: -52px;
  right: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

/* ==========================================================================
   Pilares (3 cards)
   ========================================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
}
/* como funciona: 3 passos numerados */
.steps { list-style: none; padding: 0; margin: 0; }
/* 3 em linha enquanto couber; empilhados só em telas estreitas, com largura máxima e centralizados */
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .pillars { gap: 16px; }
  .step-card { padding: 24px; }
  .step-card h3 { font-size: 1.05rem; }
  .step-card p { font-size: .92rem; }
}
.step-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}
.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pillar-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; }
.card :where(p) { color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   Benefícios (texto ↔ imagem alternados)
   ========================================================================== */
.benefit {
  display: grid;
  grid-template-columns: minmax(0, 520px) 360px;   /* texto e ilustração agrupados no centro, */
  justify-content: center;                          /* mesmo espaço entre eles nos dois blocos (espelhados) */
  gap: 72px;
  align-items: center;
  max-width: 1040px;          /* mais respiro nas laterais do que o container */
  margin-inline: auto;
  padding: 56px 0;
}
/* texto sempre começa no topo do bloco: mesma distância do divisor/título da seção em todos os blocos */
.benefit-copy { align-self: start; }
.section-head + .benefit { padding-top: 8px; }
.benefit + .benefit { border-top: 1px solid var(--hairline); }
.benefit h3 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: var(--brand); }
.benefit .lead { font-size: 1.1rem; font-weight: 500; color: var(--ink); margin: 0 0 12px; }
.benefit p { color: var(--ink-soft); }
.benefit-media { display: flex; justify-content: center; }
.benefit-media img { max-height: 340px; width: auto; }
.benefit-media .benefit-illustration { width: 100%; max-width: 360px; max-height: none; }
@media (min-width: 861px) {
  /* ilustração à esquerda, texto à direita — alterna com o bloco anterior */
  .benefit.reverse .benefit-media { order: -1; }
  .benefit.reverse { grid-template-columns: 360px minmax(0, 520px); }
}


/* --------------------------------------------------------------------------
   Ilustrações das personas (SVG no HTML + cards em HTML), quadro de 400×400
   Animação: roda uma vez ao entrar na tela (.is-visible, via main.js) e depois só "respira"
   -------------------------------------------------------------------------- */
.scene { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; container-type: inline-size; isolation: isolate; }
.scene * { --u: calc(100cqw / 400); }
.scene-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-front { z-index: 2; pointer-events: none; }
.sc-float { position: absolute; z-index: 1; }
.sc-card { position: relative; width: 100%; height: 100%; background: #fff; box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(111, 39, 95, .12); }
.sc-card > i { position: absolute; display: block; }
.sc-line { height: calc(7 * var(--u)); border-radius: var(--pill); background: var(--hairline); }

/* secretária: card do gráfico + balão de chamada recebida */
.sc-chart-pos { left: calc(34 * var(--u)); top: calc(88 * var(--u)); width: calc(112 * var(--u)); height: calc(86 * var(--u)); }
.sc-chart { border-radius: calc(16 * var(--u)); }
.sc-chart .sc-line { left: calc(18 * var(--u)); top: calc(16 * var(--u)); width: calc(46 * var(--u)); }
.sc-bar { width: calc(16 * var(--u)); border-radius: calc(4 * var(--u)); transform-origin: bottom center; }
.sc-bar-1 { left: calc(20 * var(--u)); top: calc(48 * var(--u)); height: calc(22 * var(--u)); background: var(--accent); }
.sc-bar-2 { left: calc(44 * var(--u)); top: calc(38 * var(--u)); height: calc(32 * var(--u)); background: var(--brand); }
.sc-bar-3 { left: calc(68 * var(--u)); top: calc(30 * var(--u)); height: calc(40 * var(--u)); background: var(--accent); }
.sc-toast-pos { left: calc(250 * var(--u)); top: calc(64 * var(--u)); width: calc(124 * var(--u)); height: calc(48 * var(--u)); }
.sc-toast { border-radius: var(--pill); }
.sc-toast-check {
  left: calc(10 * var(--u)); top: calc(10 * var(--u)); width: calc(28 * var(--u)); height: calc(28 * var(--u));
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M8 14.5l4 4 8.5-8.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.sc-toast .sc-line { left: calc(46 * var(--u)); }
.sc-toast .sc-line-brand { top: calc(15 * var(--u)); width: calc(58 * var(--u)); background: var(--brand); }
.sc-toast .sc-line-short { top: calc(27 * var(--u)); width: calc(38 * var(--u)); }

/* professor: quadro do ranking */
.sc-board-pos { left: calc(160 * var(--u)); top: calc(72 * var(--u)); width: calc(200 * var(--u)); height: calc(156 * var(--u)); }
.sc-board { border-radius: calc(16 * var(--u)); }
.sc-board .sc-line { left: calc(24 * var(--u)); top: calc(20 * var(--u)); width: calc(72 * var(--u)); height: calc(8 * var(--u)); }
.sc-medal { left: calc(27 * var(--u)); width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: 50%; }
.sc-medal-gold {
  top: calc(43 * var(--u));
  background: var(--warning) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 5.5l1.7 3.5 3.8.5-2.8 2.6.7 3.8-3.4-1.8-3.4 1.8.7-3.8-2.8-2.6 3.8-.5z' fill='%23fff'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.sc-medal-gold::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 calc(3 * var(--u)) var(--warning); opacity: 0; }
.sc-medal-silver { top: calc(77 * var(--u)); background: #C3CAD3; }
.sc-medal-bronze { top: calc(111 * var(--u)); background: #D9905B; }
.sc-rank { left: calc(58 * var(--u)); height: calc(12 * var(--u)); border-radius: var(--pill); transform-origin: left center; }
.sc-rank-1 { top: calc(48 * var(--u)); width: calc(120 * var(--u)); background: var(--brand); }
.sc-rank-2 { top: calc(82 * var(--u)); width: calc(92 * var(--u)); background: var(--accent); }
.sc-rank-3 { top: calc(116 * var(--u)); width: calc(64 * var(--u)); background: var(--accent); opacity: .55; }

/* estado inicial (só com JS ativo e sem "reduzir movimento"; sem JS, a ilustração aparece pronta) */
@media (prefers-reduced-motion: no-preference) {
  .js-anim .scene:not(.is-visible) .sc-card { opacity: 0; transform: translateY(calc(10 * var(--u))) scale(.96); }
  .js-anim .scene:not(.is-visible) .sc-bar { transform: scaleY(0); }
  .js-anim .scene:not(.is-visible) .sc-rank { transform: scaleX(0); }
  .js-anim .scene:not(.is-visible) .sc-medal-gold { transform: scale(0); }

  /* sequência única ao entrar na tela */
  .scene.is-visible .sc-card { animation: sc-pop .55s cubic-bezier(.3, 1.3, .5, 1) both; }
  .scene.is-visible .sc-toast { animation-delay: 1.1s; }
  .scene.is-visible .sc-bar { animation: sc-grow-y .6s cubic-bezier(.3, 1.2, .5, 1) both; }
  .scene.is-visible .sc-bar-1 { animation-delay: .45s; }
  .scene.is-visible .sc-bar-2 { animation-delay: .6s; }
  .scene.is-visible .sc-bar-3 { animation-delay: .75s; }
  .scene.is-visible .sc-rank { animation: sc-grow-x .7s cubic-bezier(.3, 1, .5, 1) both; }
  .scene.is-visible .sc-rank-1 { animation-delay: .45s; }
  .scene.is-visible .sc-rank-2 { animation-delay: .6s; }
  .scene.is-visible .sc-rank-3 { animation-delay: .75s; }
  .scene.is-visible .sc-medal-gold { animation: sc-pop-medal .5s cubic-bezier(.3, 1.6, .5, 1) 1.15s both; }
  .scene.is-visible .sc-medal-gold::after { animation: sc-shine .9s ease-out 1.5s both; }

  /* depois, só um respiro leve */
  .scene.is-visible .sc-float { animation: sc-float 5s ease-in-out 1.8s infinite alternate; }
  .scene.is-visible .sc-toast-pos { animation-delay: 2.6s; }
}
@keyframes sc-pop { from { opacity: 0; transform: translateY(calc(10 * var(--u))) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sc-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sc-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sc-pop-medal { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes sc-shine { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes sc-float { from { transform: translateY(0); } to { transform: translateY(calc(-5 * var(--u))); } }

/* capa fora da tela: pausa a animação (economiza bateria) */
.hero-art.is-paused *, .hero-art.is-paused *::after { animation-play-state: paused !important; }

/* ==========================================================================
   Vídeos (antes/depois + case)
   ========================================================================== */
/* case em destaque: vídeo grande + contexto da igreja */
.case-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
/* no desktop o vídeo estica até a altura do texto (a imagem cobre, sem faixas) */
.case-feature .case-video { aspect-ratio: auto; height: 100%; min-height: 340px; }
.case-body { padding: 40px; }
.case-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 16px; }
.case-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .85rem;
  font-weight: 600;
}
/* número de destaque (ex.: tempo de uso) */
.case-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--brand-soft);
}
.case-stat strong { flex: none; font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--brand); }
.case-stat span { font-size: .9rem; line-height: 1.4; color: var(--ink-soft); }
.case-stat + .check-list { margin-top: 0; }
/* conteúdo centralizado no box, com divisória entre o número e o texto */
.case-stat { justify-content: center; }
.case-stat > span { padding-left: 16px; border-left: 1px solid rgba(111, 39, 95, .2); }
.case-stat > span > .nowrap { display: block; white-space: nowrap; }   /* sempre 2 linhas */
@media (max-width: 480px) {
  /* celular: número e texto diminuem juntos para as 2 linhas caberem ao lado */
  .case-stat { gap: 10px; padding: 14px; }
  .case-stat > span { padding-left: 10px; }
  .case-stat strong { font-size: clamp(1.3rem, 6.4vw, 2rem); }
  .case-stat span { font-size: clamp(.66rem, 3vw, .9rem); }
}
.case-more { margin: 32px 0 0; text-align: center; color: var(--ink-soft); }

/* botão com cara de link (ações secundárias em texto) */
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.yt-lite {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
}
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.yt-lite .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;             /* branco com ícone roxo: contrasta melhor sobre fotos */
  color: var(--brand);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}
.yt-lite:hover .play { transform: scale(1.06); }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Carrosséis (depoimentos e prints) — scroll-snap, JS só nas setas
   ========================================================================== */
.carousel-wrap { position: relative; }
/* ocupa a largura toda da tela (sem cortes nas bordas do container);
   o padding lateral alinha o 1º card com o conteúdo do site */
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  /* sem scroll-snap: brigaria com a rotação automática (main.js) */
  margin-inline: calc(50% - 50vw);
  padding: 8px max(24px, calc(50vw - 536px)) 20px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
/* avaliações em loop: preenche a linha de ponta a ponta desde o início */
.carousel-quotes { padding-inline: 0; }
.carousel > * { flex: 0 0 auto; }
.carousel img {
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
}
/* nota nas lojas, acima dos comentários */
.store-ratings { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: -16px 0 40px; }
.store-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.store-logo { flex: none; width: 32px; height: 32px; fill: var(--ink); }
.store-name { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-soft); line-height: 1.2; }
.store-score { display: flex; align-items: center; gap: 10px; }
.store-score strong { font-size: 1.8rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.store-count { display: block; font-size: .8rem; color: var(--ink-soft); line-height: 1.2; }
@media (max-width: 480px) {
  .store-ratings { flex-direction: column; align-items: center; }   /* empilhados, cada um só com a largura do conteúdo */
  .store-rating { min-width: 260px; }
}

/* avaliações das lojas em HTML (texto real, nítido e indexável) */
.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 360px;
  margin: 0;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head strong { display: block; font-weight: 600; line-height: 1.3; }
.review-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .9rem;
  font-weight: 600;
}
.review-meta { display: block; font-size: .8rem; color: var(--ink-soft); }
.review-stars { color: var(--warning); font-size: 1.05rem; letter-spacing: 2px; line-height: 1; }
.review-card blockquote { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
@media (max-width: 480px) {
  .review-card { width: 82vw; padding: 24px; }
  .carousel-quotes { align-items: flex-start; }
}

/* telas reais do app: grade fixa (sem rotação), moldura de celular em CSS */
.app-shots { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 32px; row-gap: 20px; }
/* subgrid: legenda e celular de todos os itens compartilham as mesmas linhas da grade,
   então os celulares ficam alinhados mesmo quando uma legenda quebra em mais linhas */
.app-shot {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  justify-items: center;
  margin: 0;
  text-align: center;
}
.app-shot figcaption { align-self: end; }
.app-shot h3 { font-size: 1.1rem; margin: 0 0 4px; color: var(--brand); }
.app-shot p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); text-wrap: balance; }
/* moldura clara e leve (não compete com o conteúdo da tela) */
.phone-frame {
  width: 100%;
  max-width: 240px;
  padding: 6px;
  border-radius: 34px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 40px rgba(111, 39, 95, .10);
}
.phone-frame img { width: 100%; height: auto; border-radius: 28px; }
@media (max-width: 980px) {
  /* 2 colunas juntas e centralizadas, com respiro nas laterais em qualquer largura */
  .app-shots { grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; column-gap: clamp(24px, 6vw, 56px); padding-inline: clamp(8px, 4vw, 40px); }
  .app-shot .phone-frame { max-width: 220px; }
  .app-shot:nth-child(n + 3) { margin-top: 36px; }
}
@media (max-width: 560px) {
  /* celular: arrasta de lado, sem rotação automática */
  .app-shots {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;   /* anula as 2 colunas do tablet */
    grid-auto-columns: 70vw;
    grid-template-rows: auto auto;   /* legendas numa linha, celulares na outra: todos alinhados */
    column-gap: 12px;
    row-gap: 20px;   /* próximo card aparece na borda, indicando que dá para arrastar */
    overflow-x: auto;
    margin-inline: calc(50% - 50vw);   /* ocupa a largura toda da tela, encostando nas bordas */
    padding: 8px 15vw 64px;   /* espaço para a sombra do celular não ser cortada pela rolagem */
    margin-bottom: -40px;     /* compensa o espaço extra, sem aumentar a seção */
    justify-content: flex-start;   /* sobrescreve o centralizado do tablet: sem isso o 1º card fica fora da tela */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .app-shots::-webkit-scrollbar { display: none; }
  .app-shot { display: grid; grid-row: span 2; grid-template-rows: subgrid; justify-items: center; margin: 0 !important; scroll-snap-align: center; }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2;
}
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }
.carousel-btn:hover { color: var(--brand); }

/* ==========================================================================
   Planos
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
  align-items: start;
}
/* card do teste: branco com elevação suave, sem borda (mesma linguagem dos outros cards) */
.plan-card { padding: 40px; }
.plan-card.featured {
  border-color: transparent;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(111, 39, 95, .12);
}
.plan-card h3 { font-size: 1.25rem; text-align: center; }
.plan-card .check-list { margin: 24px 0 32px; }
.plan-card .btn { width: 100%; }

/* ==========================================================================
   FAQ — accordion
   ========================================================================== */
/* cada pergunta é um card arredondado; a resposta abre com animação de altura */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border-radius: var(--radius);
  background: var(--bg);
  transition: background .25s ease, box-shadow .25s ease;
}
.faq-item.open { background: var(--surface); box-shadow: var(--shadow); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  padding: 18px 18px 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.faq-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  transition: transform .3s ease, background .25s ease, color .25s ease;
}
.faq-item.open .faq-icon { transform: rotate(180deg); background: var(--brand); color: #fff; }
/* grid 0fr → 1fr anima a altura real do conteúdo, sem medir em JS */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--ink-soft);
  transition: grid-template-rows .35s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 24px;
  opacity: 0;
  transition: opacity .25s ease, padding .35s ease;
}
.faq-item.open .faq-a-inner { padding-bottom: 20px; opacity: 1; }
.faq-a-inner > :first-child { margin-top: 0; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: 72px 32px;
  text-align: center;
  color: #fff;
  box-shadow: 0 24px 60px rgba(111, 39, 95, .28);   /* descola o bloco do fundo */
}
.cta-final h2 { font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.15; margin-bottom: 20px; color: #fff; } /* último convite: título maior que os itens abaixo */
.cta-final :where(p) { color: rgba(255, 255, 255, .82); max-width: 460px; margin: 0 auto 32px; }
.cta-final .btn-note { color: rgba(255, 255, 255, .68); }
/* benefícios rápidos do cadastro, com ícone */
.cta-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  list-style: none;
  padding: 0;
  margin: 8px 0 36px;
}
.cta-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.cta-point-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-whats {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn-whats:hover { border-color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: space-between;   /* colunas na largura do conteúdo, espaços iguais entre elas */
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { color: var(--ink-soft); margin: 0; max-width: 300px; }
/* selo próprio (roseta com check): "original / pioneiro", sem imitar selos de terceiros */
.seal-icon { flex: none; color: var(--brand); }

/* botões das lojas (padrão dos selos oficiais, no estilo arredondado do site) */
.store-buttons { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px; margin: 20px 0; } /* 2 por linha, na largura do conteúdo */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  white-space: nowrap;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);          /* cinza, no mesmo peso visual das formas de pagamento */
  line-height: 1.1;
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s ease, border-color .15s ease;
}
.store-btn:hover { text-decoration: none; color: var(--ink); border-color: #C9CDD3; }
.store-btn svg { flex: none; width: 22px; height: 22px; fill: currentColor; }
.store-btn small { display: block; font-size: .68rem; font-weight: 500; opacity: .8; }
.store-btn svg.store-btn-stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.footer-brand .footer-signup { max-width: none; margin: 20px 0 0; font-size: .85rem; color: var(--ink-soft); }
.footer-signup a { font-weight: 600; }

/* coluna da marca em grupos: logo + pioneirismo · baixe o app · segurança */
.footer-brand .footer-pioneer { margin: 6px 0 0; font-size: .85rem; font-weight: 500; line-height: 1.35; color: var(--ink-soft); }
.footer-pioneer small { display: block; font-size: .78rem; font-weight: 400; opacity: .85; }
.site-footer .footer-subtitle { margin: 28px 0 12px; }
.footer-brand .store-buttons { margin: 0; }

/* sinais de confiança (LGPD, infraestrutura) */
.footer-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-trust li, .footer-trust a { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.footer-trust svg { flex: none; color: var(--ink-soft); }
.footer-trust a:hover { color: var(--brand); text-decoration: none; }
.footer-hint { display: block; font-size: .8rem; color: var(--ink-soft); opacity: .85; margin-top: 2px; }

.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  transition: color .15s ease, border-color .15s ease;
}
.social-links a:hover { color: var(--brand); border-color: var(--brand); }

/* ícone de "abre em nova guia" ao lado de links externos */
.ext-icon { display: inline-block; margin-left: 5px; vertical-align: -1px; opacity: .6; }
.btn .ext-icon { margin-left: 2px; }

/* texto só para leitores de tela */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.site-footer h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 5px 0; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--brand); }
.payment-flags { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; max-width: 260px; } /* quebra em 2 linhas: não alarga a coluna */
.payment-flags img { height: 26px; width: auto; filter: grayscale(1); opacity: .7; }
.footer-legal {
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  color: var(--ink-soft);
  font-size: .82rem;
  text-align: center;
}
.footer-legal p { margin: 4px 0; }

/* ==========================================================================
   Páginas internas (privacidade, termos, ajuda)
   ========================================================================== */
.page-hero { padding: 64px 0 8px; }
.page-hero .container { max-width: 800px; }
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.page-hero .updated { color: var(--ink-soft); font-size: .9rem; margin: 0; }

.page { max-width: 800px; margin: 0 auto; padding: 24px 24px 96px; }
.page h2 { font-size: 1.4rem; margin-top: 56px; scroll-margin-top: 96px; }
.page h2:first-child { margin-top: 24px; }
.page h3 { font-size: 1.08rem; margin-top: 32px; }
.page p { color: var(--ink-soft); }
.page b, .page strong { color: var(--ink); font-weight: 600; }
.page a { overflow-wrap: anywhere; }

/* indentação preservando os marcadores originais do texto legal (a., i., •) */
.ind { margin-left: 1.5rem; }
.ind2 { margin-left: 3rem; }

/* índice / sumário */
.toc {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 8px;
  font-size: .92rem;
}
.toc strong { display: block; margin-bottom: 8px; }
.toc a { display: inline-block; color: var(--ink-soft); padding: 2px 0; margin-right: 14px; }
.toc a:hover { color: var(--brand); }

/* abas (ajuda: Secretário / Professor) */
.tabs { display: flex; gap: 10px; justify-content: center; margin: 8px 0 24px; flex-wrap: wrap; }
.tab-btn {
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: var(--pill);
  padding: 10px 24px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.role-intro { color: var(--ink-soft); }

/* vídeo dentro de um item da ajuda */
.help-video { max-width: 640px; margin: 16px auto; }
.help-video .yt-lite { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hairline); }

/* ==========================================================================
   WhatsApp flutuante
   ========================================================================== */
/* Mesmo SVG do legado/Flutter web (círculo verde + glifo branco) */
.whats-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.whats-float:hover { text-decoration: none; transform: scale(1.05); }
.whats-float svg { width: 60px; height: 60px; display: block; }

/* ==========================================================================
   Seção escura — gestores de sede
   ========================================================================== */
.section-dark {
  --check-bg: rgba(255, 255, 255, .12);
  background: #2A1024;           /* roxo profundo da marca */
  color: #fff;
  overflow-x: clip;
}
.section-dark .eyebrow { background: rgba(255, 255, 255, .1); color: #F2D5EA; }
.section-dark h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: #fff; }
.section-dark .lead { font-size: 1.1rem; color: rgba(255, 255, 255, .72); margin: 0; }
.section-dark .check-list li { color: #fff; }
.section-dark .check-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.sede-grid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 480px); justify-content: center; gap: 64px; align-items: center; }
.sede-copy .check-list { margin-top: 28px; }

/* ilustração: mesmo sistema de unidades do hero (quadro 520×440) */
.sede-art { position: relative; width: 100%; max-width: 520px; justify-self: center; aspect-ratio: 520 / 440; container-type: inline-size; isolation: isolate; }
.sede-art > *, .sa-panel > *, .sa-total > *, .sa-toast > * { position: absolute; display: block; }

.sa-panel {
  left: calc(20 * var(--u)); top: calc(30 * var(--u)); width: calc(470 * var(--u)); height: calc(370 * var(--u));
  border-radius: calc(24 * var(--u));
  background: #fff;
  box-shadow: 0 calc(24 * var(--u)) calc(60 * var(--u)) rgba(0, 0, 0, .35);
}
.sa-title { left: calc(28 * var(--u)); top: calc(30 * var(--u)); width: calc(130 * var(--u)); height: calc(12 * var(--u)); border-radius: var(--pill); background: var(--brand); }
.sa-sub { left: calc(28 * var(--u)); top: calc(50 * var(--u)); width: calc(86 * var(--u)); height: calc(8 * var(--u)); border-radius: var(--pill); background: var(--hairline); }
.sa-live {
  display: flex !important; align-items: center; gap: calc(7 * var(--u));
  left: calc(352 * var(--u)); top: calc(26 * var(--u)); height: calc(28 * var(--u)); padding: 0 calc(12 * var(--u));
  border-radius: var(--pill);
  background: rgba(39, 166, 140, .12);
  color: var(--accent);
  font-size: calc(12 * var(--u)); font-weight: 600; white-space: nowrap;
}
.sa-live i { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--accent); animation: sa-pulse 1.6s ease-in-out infinite; }

.sa-total { left: calc(28 * var(--u)); top: calc(78 * var(--u)); width: calc(414 * var(--u)); height: calc(62 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--brand-soft); }
.sa-total-label { left: calc(18 * var(--u)); top: calc(15 * var(--u)); width: calc(96 * var(--u)); height: calc(8 * var(--u)); border-radius: var(--pill); background: rgba(111, 39, 95, .3); }
.sa-total-track { left: calc(18 * var(--u)); top: calc(34 * var(--u)); width: calc(300 * var(--u)); height: calc(12 * var(--u)); border-radius: var(--pill); background: #fff; overflow: hidden; }
.sa-total-fill { display: block; height: 100%; border-radius: inherit; background: var(--brand); transform-origin: left center; animation: sa-total 8s ease-in-out infinite both; }
.sa-total-value { left: calc(336 * var(--u)); top: calc(22 * var(--u)); width: calc(60 * var(--u)); height: calc(20 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--brand); }

.sa-panel > .sa-row {
  display: flex; align-items: center;
  left: calc(28 * var(--u)); top: calc((160 + 40 * var(--i)) * var(--u));
  width: calc(414 * var(--u)); height: calc(30 * var(--u));
}
.sa-icon { flex: none; width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--brand-soft); position: relative; }
.sa-icon::after { content: ""; position: absolute; inset: calc(9 * var(--u)); border-radius: calc(4 * var(--u)); background: var(--brand); }
.sa-name { width: calc(var(--w) * var(--u)); height: calc(8 * var(--u)); margin-left: calc(12 * var(--u)); border-radius: var(--pill); background: #D5DAE0; }
.sa-track { width: calc(150 * var(--u)); height: calc(8 * var(--u)); margin-left: auto; border-radius: var(--pill); background: #EEF0F3; overflow: hidden; }
.sa-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left center; transform: scaleX(var(--f)); animation: 8s cubic-bezier(.4, 0, .2, 1) infinite both; }
.sa-check { position: relative; flex: none; width: calc(22 * var(--u)); height: calc(22 * var(--u)); margin-left: calc(16 * var(--u)); border-radius: 50%; box-shadow: inset 0 0 0 calc(2.5 * var(--u)) #D5DAE0; }
.sa-check::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; animation: 8s cubic-bezier(.3, 1.4, .5, 1) infinite both; }

.sa-toast {
  z-index: 2;
  left: calc(290 * var(--u)); top: calc(372 * var(--u)); width: calc(200 * var(--u)); height: calc(58 * var(--u));
  border-radius: var(--pill);
  background: #fff;
  box-shadow: 0 calc(12 * var(--u)) calc(32 * var(--u)) rgba(0, 0, 0, .3);
  animation: sa-toast 8s cubic-bezier(.3, 1.2, .5, 1) infinite both;
}
.sa-toast-check { left: calc(12 * var(--u)); top: calc(12 * var(--u)); width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M8.5 15.5l4.5 4.5 9-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.sa-toast-line-1 { left: calc(58 * var(--u)); top: calc(19 * var(--u)); width: calc(110 * var(--u)); height: calc(8 * var(--u)); border-radius: var(--pill); background: var(--brand); }
.sa-toast-line-2 { left: calc(58 * var(--u)); top: calc(33 * var(--u)); width: calc(70 * var(--u)); height: calc(7 * var(--u)); border-radius: var(--pill); background: var(--hairline); }

/* Ciclo de 8s: filiais enviando (barra enche → check) → total sobe → "relatório consolidado" → reinicia */
@keyframes sa-fill-0 { 0%, 6% { transform: scaleX(0); } 15%, 86% { transform: scaleX(var(--f)); } 92%, 100% { transform: scaleX(0); } }
@keyframes sa-check-0 { 0%, 15% { transform: scale(0); opacity: 0; } 19%, 86% { transform: scale(1); opacity: 1; } 92%, 100% { transform: scale(0); opacity: 0; } }
.sa-row:nth-of-type(2) .sa-fill { animation-name: sa-fill-0; }
.sa-row:nth-of-type(2) .sa-check::after { animation-name: sa-check-0; }
@keyframes sa-fill-1 { 0%, 13% { transform: scaleX(0); } 22%, 86% { transform: scaleX(var(--f)); } 92%, 100% { transform: scaleX(0); } }
@keyframes sa-check-1 { 0%, 22% { transform: scale(0); opacity: 0; } 26%, 86% { transform: scale(1); opacity: 1; } 92%, 100% { transform: scale(0); opacity: 0; } }
.sa-row:nth-of-type(3) .sa-fill { animation-name: sa-fill-1; }
.sa-row:nth-of-type(3) .sa-check::after { animation-name: sa-check-1; }
@keyframes sa-fill-2 { 0%, 20% { transform: scaleX(0); } 29%, 86% { transform: scaleX(var(--f)); } 92%, 100% { transform: scaleX(0); } }
@keyframes sa-check-2 { 0%, 29% { transform: scale(0); opacity: 0; } 33%, 86% { transform: scale(1); opacity: 1; } 92%, 100% { transform: scale(0); opacity: 0; } }
.sa-row:nth-of-type(4) .sa-fill { animation-name: sa-fill-2; }
.sa-row:nth-of-type(4) .sa-check::after { animation-name: sa-check-2; }
@keyframes sa-fill-3 { 0%, 27% { transform: scaleX(0); } 36%, 86% { transform: scaleX(var(--f)); } 92%, 100% { transform: scaleX(0); } }
@keyframes sa-check-3 { 0%, 36% { transform: scale(0); opacity: 0; } 40%, 86% { transform: scale(1); opacity: 1; } 92%, 100% { transform: scale(0); opacity: 0; } }
.sa-row:nth-of-type(5) .sa-fill { animation-name: sa-fill-3; }
.sa-row:nth-of-type(5) .sa-check::after { animation-name: sa-check-3; }
@keyframes sa-fill-4 { 0%, 34% { transform: scaleX(0); } 43%, 86% { transform: scaleX(var(--f)); } 92%, 100% { transform: scaleX(0); } }
@keyframes sa-check-4 { 0%, 43% { transform: scale(0); opacity: 0; } 47%, 86% { transform: scale(1); opacity: 1; } 92%, 100% { transform: scale(0); opacity: 0; } }
.sa-row:nth-of-type(6) .sa-fill { animation-name: sa-fill-4; }
.sa-row:nth-of-type(6) .sa-check::after { animation-name: sa-check-4; }
@keyframes sa-total { 0%, 8% { transform: scaleX(.04); } 48%, 86% { transform: scaleX(.78); } 92%, 100% { transform: scaleX(.04); } }
@keyframes sa-toast {
  0%, 50% { transform: translateY(calc(16 * var(--u))) scale(.9); opacity: 0; }
  56%, 86% { transform: translateY(0) scale(1); opacity: 1; }
  92%, 100% { transform: translateY(calc(16 * var(--u))) scale(.9); opacity: 0; }
}
@keyframes sa-pulse { 50% { opacity: .35; transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) {
  .sa-fill, .sa-check::after, .sa-total-fill, .sa-toast, .sa-live i { animation: none !important; }
  .sa-total-fill { transform: scaleX(.78); }
}

/* ==========================================================================
   Componentes compartilhados — use estes em vez de criar variações por seção
   ========================================================================== */

/* Texto de apoio logo abaixo de um botão (ex.: "15 dias grátis · sem cartão") */
.btn-note {
  margin: var(--space-note) auto 0;
  font-size: .85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Lista com check em círculo. O fundo do círculo contrasta com a superfície:
   lilás sobre branco, branco sobre as seções cinza. */
.section.alt { --check-bg: #fff; }
.card { --check-bg: var(--brand-soft); }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); font-weight: 400; } /* itens mais leves que os títulos */
.check-list li::before {
  content: "";
  flex: 0 0 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--check-bg, var(--brand-soft)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%236F275F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ==========================================================================
   Banner de cookies (minimalista, LGPD)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 70;
  width: min(360px, calc(100% - 40px));
  padding: 16px 18px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 48px rgba(31, 35, 40, .16);
  animation: cookie-in .35s ease both;
}
.cookie-banner p { margin: 0 0 12px; font-size: .85rem; line-height: 1.5; color: var(--ink-soft); text-align: center; text-wrap: balance; }
.cookie-banner p a { font-weight: 600; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }   /* mesmo destaque para recusar e aceitar */
.cookie-actions .btn { padding: 10px 12px; font-size: .85rem; }
.cookie-banner [hidden] { display: none !important; }   /* o display dos itens não pode anular o atributo hidden */
/* links do banner juntos, na linha do texto: Saiba mais · Personalizar */
.cookie-links { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; white-space: nowrap; color: var(--ink-soft); }
.cookie-links a, .cookie-customize { font-size: inherit; font-weight: 600; color: var(--brand); }

/* popup da Política de cookies, no estilo do banner */
.cookie-policy {
  width: min(560px, calc(100% - 32px));
  max-height: min(80vh, 640px);
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(31, 35, 40, .22);
  overflow: hidden;
}
.cookie-policy[open] { display: flex; flex-direction: column; }
.cookie-policy::backdrop { background: rgba(31, 35, 40, .4); }
.cookie-policy-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.cookie-policy-head strong { font-size: 1rem; }
.cookie-policy-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--brand-soft); color: var(--brand); cursor: pointer; }
.cookie-policy-close:focus { outline: none; }
.cookie-policy-close:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.cookie-policy-body { padding: 4px 20px 8px; overflow-y: auto; font-size: .88rem; line-height: 1.6; color: var(--ink-soft); }
.cookie-policy-body h3 { font-size: .95rem; margin: 18px 0 4px; color: var(--ink); }
.cookie-policy-body p { margin: 0 0 8px; }
.cookie-policy-body .ind { margin-left: 12px; }
.cookie-policy-foot { padding: 12px 20px 16px; border-top: 1px solid var(--hairline); text-align: right; }
.cookie-policy-foot .btn { padding: 10px 24px; font-size: .88rem; }
.cookie-options { display: grid; margin: 0 0 12px; }
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
  cursor: pointer;
}
.cookie-option.is-locked { cursor: default; }
.cookie-option strong { display: block; font-size: .85rem; color: var(--ink); }
.cookie-option small { display: block; font-size: .75rem; line-height: 1.4; color: var(--ink-soft); }
/* botão de liga/desliga arredondado */
.cookie-switch {
  appearance: none;
  flex: none;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: var(--pill);
  background: #D5DAE0;
  cursor: pointer;
  transition: background .2s ease;
}
.cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}
.cookie-switch:checked { background: var(--brand); }
.cookie-switch:checked::after { transform: translateX(18px); }
.cookie-switch:disabled { opacity: .5; cursor: default; }
.cookie-switch:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } .nav-links, .nav-toggle-bars i, body::after { transition: none !important; } }
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
  body.cookie-open .whats-float { bottom: calc(var(--cookie-h, 0px) + 24px); }
}
.whats-float { transition: bottom .25s ease; }

/* link do rodapé que é botão (preferências de cookies) */
.footer-link-btn { font-weight: 400; color: var(--ink-soft); }
.footer-link-btn:hover { color: var(--brand); text-decoration: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 980px) {
  .case-feature { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } /* empilhado: não estica em telas médias */
  .case-feature .case-video { aspect-ratio: 16 / 9; min-height: 0; }
  .case-body { padding: 28px; }
}

@media (max-width: 1080px) {
  /* espaço no fim do rodapé para o botão flutuante do WhatsApp não cobrir o endereço */
  .site-footer { padding-bottom: 104px; }
  .container { padding-inline: 40px; }
  .hero-grid, .sede-grid { gap: 40px; }
  .benefit { gap: 48px; }
  .footer-grid { gap: 32px; }
  /* menu suspenso: card flutuante arredondado, abre/fecha com animação */
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;            /* colado na barra do topo */
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 4px 24px 24px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);   /* só os cantos de baixo arredondados */
    background: var(--surface);
    border: 0;
    box-shadow: 0 28px 36px -16px rgba(31, 35, 40, .22);   /* sombra só para baixo: não escurece a barra */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .22s ease, transform .22s ease, visibility 0s;
  }
  /* escurece o fundo enquanto o menu está aberto */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;   /* abaixo do header (50), acima do conteúdo */
    background: rgba(31, 35, 40, .3);   /* só escurece, sem desfoque */
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility 0s linear .22s;
  }
  body.menu-open .site-header { border-bottom-color: transparent; }   /* sem divisor entre barra e menu */
  body.menu-open .whats-float { opacity: 0; visibility: hidden; }
  body.menu-open::after { opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s; }
  .nav-links li { padding: 10px 4px; }
  .nav-links li + li:not(.nav-cta) { border-top: 1px solid var(--hairline); }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: flex; }
}

@media (max-width: 960px) {
  /* 3 colunas não cabem: rodapé em 2 colunas (Contato desce para a 2ª linha) */
  .footer-grid { grid-template-columns: repeat(2, max-content); justify-content: start; gap: 40px 96px; }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { max-width: 440px; }

  .benefit { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .sede-grid { grid-template-columns: 1fr; gap: 48px; }
  .benefit-media { order: -1; }
  .benefit-media img { max-height: 260px; }
  .benefit-media .benefit-illustration { max-width: 280px; }

  .carousel-btn { display: none; }
  .cta-final { padding: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
