/* =========================================================
   Agnus Agency: base do site
   Variáveis de design, reset, tipografia, layout e componentes
   compartilhados por todas as páginas.
   ========================================================= */

/* ---------- Fontes (Banana Grotesk, a partir de /Assets/Fonts) ---------- */
@font-face {
  font-family: "Banana Grotesk";
  src: url("../fonts/banana-grotesk-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Banana Grotesk";
  src: url("../fonts/banana-grotesk-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Banana Grotesk";
  src: url("../fonts/banana-grotesk-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variáveis de design ---------- */
:root {
  /* Cores da marca (amostradas das peças em /Assets) */
  --c-black: #000000;
  --c-white: #ffffff;
  --c-paper: #fcfaf6;
  --c-grey: #909090;
  --c-line: #484848;

  /* Tipografia */
  --font: "Banana Grotesk", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.2rem + 4.2vw, 4.75rem);
  --fs-h2: clamp(2.25rem, 1.3rem + 3.6vw, 4.75rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  /* Espaçamento (base 8) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;
  --sp-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: 1.25rem;
  --col-gap: 1.5rem;
  --max: 90rem;

  /* Formas */
  --r-media: 1.25rem;
  --r-page: 1.75rem;
  --r-field: 0.875rem;
  --r-pill: 999px;
  --panel-margin: 0.5rem;

  /* Movimento */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.5s;

  /* Alturas fixas */
  --header-h: 4rem;
  --header-gap: 0.5rem;
  --wa-bar-h: 5rem;
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
}
@media (min-width: 62rem) {
  :root { --header-h: 5.5rem; --header-gap: 0.75rem; --r-page: 2.5rem; }
}

/* ---------- Temas ---------- */
/* O padrão é o escuro. A página (.t-base) segue o <html data-theme>.
   Os painéis (.t-dark) são sempre escuros. */
:root { --c-lift: #111111; }
.t-light,
[data-theme="light"] .t-base {
  --bg: var(--c-paper);
  --fg: var(--c-black);
  --muted: var(--c-line); /* texto pequeno secundário: 8,7:1 sobre o papel */
  --accent: var(--c-grey); /* só em texto grande */
  --line: var(--c-grey);
  --frame: var(--c-white);
  --btn-bg: var(--c-black);
  --btn-fg: var(--c-white);
  --header-bg: rgb(252 250 246 / 0.92);
  --header-bg-blur: rgb(252 250 246 / 0.8);
  --header-edge: rgb(0 0 0 / 8%);
}
.t-dark,
[data-theme="dark"] .t-base {
  --bg: var(--c-black);
  --fg: var(--c-white);
  --muted: var(--c-grey);
  --accent: var(--c-grey);
  --line: var(--c-line);
  --frame: var(--c-black);
  --btn-bg: var(--c-white);
  --btn-fg: var(--c-black);
  --header-bg: rgb(10 10 10 / 0.92);
  --header-bg-blur: rgb(10 10 10 / 0.72);
  --header-edge: rgb(255 255 255 / 14%);
}
.t-base, .t-light, .t-dark {
  background-color: var(--bg);
  color: var(--fg);
}
[data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
/* No escuro, os painéis sobem um tom para não sumir no fundo preto */
[data-theme="dark"] .panel.t-dark {
  background-color: var(--c-lift);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 7%);
}

/* ---------- Reset ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 300; text-wrap: balance; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

:focus-visible {
  outline: 2px solid var(--fg, var(--c-black));
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--r-field);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* Grade de 12 colunas no desktop. No celular, tudo ocupa a largura toda. */
.grid { display: grid; gap: var(--sp-3) var(--col-gap); }
@media (min-width: 62rem) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid > * { grid-column: 1 / -1; }
  .grid > .col-left { grid-column: 1 / 7; }
  .grid > .col-right { grid-column: 7 / -1; }
}

.section { padding-block: var(--sp-section); }

/* Painel preto arredondado */
.panel {
  margin-inline: var(--panel-margin);
  border-radius: var(--r-page);
  padding-block: var(--sp-section);
}

/* ---------- Tipografia ---------- */
.display {
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.small { font-size: var(--fs-small); }
.label {
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* Texto a preencher: fica visível de propósito */
.ph {
  outline: 1px dashed currentColor;
  outline-offset: 2px;
  border-radius: 2px;
  padding-inline: 0.15em;
}

/* Marcador de seção: ponto e nome */
.marker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-small);
  line-height: 1.2;
}
.marker::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* Cabeçalho de seção: marcador à esquerda, título à direita */
.shead {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
@media (min-width: 62rem) {
  .shead { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-bottom: var(--sp-7); }
  .shead > .marker { grid-column: 1 / 4; align-self: start; padding-top: 1.25rem; }
  .shead > .h2 { grid-column: 4 / -1; max-width: 20ch; }
}

/* ---------- Ícones ---------- */
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: currentColor; }
.arrow {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform 0.3s var(--ease-out);
}
.icon-ne, .icon-down {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform 0.3s var(--ease-out);
}
.icon-up { transform: rotate(180deg); }

/* ---------- Botões ---------- */
/* Pílula com círculo de seta que escorrega ao passar o mouse */
.cta {
  display: inline-flex;
  align-items: stretch;
  gap: 0.25rem;
  max-width: 100%;
  min-height: 3.25rem;
  color: var(--btn-fg);
  -webkit-tap-highlight-color: transparent;
}
.cta__label,
.cta__icon {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  transition: transform 0.35s var(--ease-out);
}
.cta__label {
  padding: 0 1.5rem;
  font-weight: 500;
  padding-block: 0.625rem;
  font-size: var(--fs-small);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.cta__icon {
  justify-content: center;
  width: 3.25rem;
  flex: none;
}
@media (hover: hover) {
  .cta:hover .cta__icon { transform: translateX(3px); }
  .cta:hover .arrow { transform: translate(1px, -1px); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 1px solid var(--btn-bg);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.1;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .btn:hover { background: transparent; color: var(--fg); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: var(--fs-small);
  font-weight: 500;
}
.link-arrow span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.link-arrow:hover .arrow,
.link-arrow:focus-visible .arrow { transform: translate(2px, -2px); }

/* ---------- Cabeçalho ---------- */
/* Fixo. No topo é uma barra transparente em largura total. Ao rolar, encolhe
   numa pílula translúcida; rolando para baixo some, rolando para cima volta. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--fg);
  background-color: transparent;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 0.5rem)); }
.site-header > .container {
  width: calc(100% - 2 * var(--gutter));
  max-width: none;
  pointer-events: auto;
  margin-top: var(--header-gap);
  padding-inline: 0;
  border-radius: var(--r-pill);
  background-color: transparent;
  box-shadow: 0 0 0 1px transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: width 0.5s var(--ease-out), padding 0.5s var(--ease-out),
    background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-condensed > .container {
  width: min(60rem, calc(100% - 2 * var(--gutter)));
  padding-inline: 1.25rem;
  background-color: var(--header-bg);
  box-shadow: 0 0 0 1px var(--header-edge);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header.is-condensed > .container {
    background-color: var(--header-bg-blur);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
  }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: calc(var(--header-h) - var(--header-gap));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
}
.brand__symbol { width: auto; height: 1.375rem; fill: currentColor; }
.brand__name { font-size: 1.125rem; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  font-size: var(--fs-small);
  font-weight: 500;
}
.menu-toggle__bars { position: relative; width: 1.375rem; height: 0.625rem; }
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: calc(100% - 1.5px); }
.is-menu-open .menu-toggle__bars::before { top: calc(50% - 0.75px); transform: rotate(45deg); }
.is-menu-open .menu-toggle__bars::after { top: calc(50% - 0.75px); transform: rotate(-45deg); }

.header-tools { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }
@media (hover: hover) {
  .theme-toggle:hover { border-color: var(--fg); }
}

.nav__list { display: flex; gap: var(--sp-2); padding: 0; list-style: none; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  font-size: var(--fs-small);
  font-weight: 500;
  transition: opacity 0.25s ease;
}
.nav__link[aria-current="page"] { color: var(--c-grey); }
@media (hover: hover) {
  .nav__list:has(.nav__link:hover) .nav__link { opacity: 0.5; }
  .nav__list .nav__link:hover { opacity: 1; }
}

/* Menu no celular: painel em tela cheia */
@media (max-width: 61.99rem) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--sp-5);
    padding: var(--sp-4) var(--gutter) calc(var(--sp-4) + env(safe-area-inset-bottom));
    background: var(--bg);
    color: var(--fg);
    overflow-y: auto;
  }
  .is-menu-open .nav { display: flex; }
  .nav__list .nav__theme { display: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; min-height: 4rem; font-size: 2rem; font-weight: 300; letter-spacing: -0.03em; }
  .nav__link[aria-current="page"] { color: inherit; }
  .nav .cta { width: 100%; }
  .nav .cta__label { flex: 1; justify-content: center; }
  .is-menu-open { overflow: hidden; }
}
@media (min-width: 62rem) {
  .header-tools { display: none; }
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .nav { display: contents; }
  .nav__list { justify-self: center; align-items: center; }
  .nav .cta { justify-self: end; min-height: 2.75rem; }
  .nav .cta__label { padding: 0 1.25rem; }
  .nav .cta__icon { width: 2.75rem; }
}

/* ---------- Abertura: cartão de título sobre o painel de vídeo ---------- */
.hero-shape { padding-block: var(--sp-2) var(--sp-6); }
.hero-shape__wrap { display: grid; gap: var(--sp-3); }
.hero-shape__card { display: grid; gap: var(--sp-3); justify-items: start; }
.hero-shape__card .display { max-width: 13ch; }
.hero-shape__card .lead { max-width: 30ch; }
.hero-shape__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); }

.video-ph {
  display: grid;
  place-items: center;
  padding: var(--sp-3);
  background: var(--c-black);
  color: var(--c-grey);
  font-size: var(--fs-small);
  text-align: center;
  overflow: hidden;
}
.video-ph video, .video-ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-shape__video {
  position: relative;
  min-height: 26rem;
  border-radius: var(--r-page);
}
.hero-shape__video > img,
.hero-shape__video > video {
  position: absolute;
  inset: 0;
  object-position: 28% 32%;
}

.hero-pill {
  position: absolute;
  right: var(--sp-2);
  bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 1.25rem 0.375rem 0.375rem;
  border-radius: var(--r-pill);
  background: var(--c-paper);
  color: var(--c-black);
  font-size: var(--fs-small);
  line-height: 1.25;
  text-align: left;
}
.hero-pill__play {
  position: relative;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 50%;
  background: var(--c-black);
}
.hero-pill__play::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.4rem 0 0.4rem 0.65rem;
  border-color: transparent transparent transparent var(--c-white);
}

@media (min-width: 62rem) {
  .hero-shape { padding-block: var(--sp-3) var(--sp-7); }
  .hero-shape__wrap { position: relative; display: block; }
  .hero-shape__video { min-height: clamp(34rem, 82vh, 46rem); border-radius: var(--r-page); }
  .hero-shape__video > img { transform: scaleX(-1); object-position: 50% 36%; }
  .hero-shape__card {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 0 var(--sp-6) var(--sp-4) 0;
    background: var(--bg);
    border-bottom-right-radius: var(--r-page);
  }
  .hero-shape__card::before,
  .hero-shape__card::after {
    content: "";
    position: absolute;
    width: var(--r-page);
    height: var(--r-page);
    background: radial-gradient(circle at 100% 100%, transparent calc(var(--r-page) - 0.5px), var(--bg) var(--r-page));
  }
  .hero-shape__card::before { top: 0; left: 100%; }
  .hero-shape__card::after { top: 100%; left: 0; }
}

/* ---------- Posicionamento ---------- */
.section--intro { padding-bottom: var(--sp-6); }
.intro { row-gap: var(--sp-4); }
.intro__body { display: grid; gap: var(--sp-4); }
.intro__text {
  max-width: 26ch;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.intro__text .w { color: var(--c-grey); transition: color 0.25s ease; }
.intro__text .w.on { color: var(--fg); }
.intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); }
@media (min-width: 62rem) {
  .grid > .intro__body { grid-column: 4 / -1; }
  .intro .marker { padding-top: 1rem; align-self: start; }
  .intro__text { max-width: 28ch; }
}

.logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: var(--sp-5) var(--sp-3);
  margin-top: var(--sp-7);
  padding: 0;
  list-style: none;
}
.logos li:last-child:nth-child(odd) { grid-column: 1 / -1; }
[data-theme="dark"] .logos img { filter: brightness(0) invert(1); }
.logos img { width: auto; max-width: 100%; height: var(--h, 3.5rem); }
@media (min-width: 48rem) {
  .logos { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4) var(--sp-3); }
}

/* ---------- Linhas em formato de tabela ---------- */
.rows { display: grid; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.row {
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
  row-gap: var(--sp-2);
}
.row__desc { color: var(--muted); max-width: 40ch; }
.row__body { display: grid; gap: var(--sp-2); align-content: start; }
.row__body .link-arrow { justify-self: start; margin-top: var(--sp-1); }
@media (min-width: 62rem) { .row { padding-block: var(--sp-5); } }

.front-name {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.front-tag { color: var(--muted); margin-top: var(--sp-2); }

.section-cta { margin-top: var(--sp-5); }

/* ---------- Depoimento ---------- */
.testimonial-stage { position: relative; display: grid; justify-items: center; padding-block: var(--sp-5); }
.testimonial { display: grid; justify-items: center; gap: var(--sp-3); max-width: 40rem; text-align: center; }
.testimonial__media {
  overflow: hidden;
  border-radius: var(--r-media);
  background: var(--c-black);
  aspect-ratio: 4 / 5;
  width: min(100%, 20rem);
}
.testimonial__media[hidden] { display: none; }
.testimonial__media img,
.testimonial__media video { width: 100%; height: 100%; object-fit: cover; }
.testimonial__play { position: relative; display: block; width: 100%; height: 100%; background: var(--c-black); }
.testimonial__play img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__playicon {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--c-white);
}
.testimonial__playicon::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent var(--c-black);
}
.testimonial__who { display: grid; gap: 0.25rem; }
.testimonial__who span:first-child { font-weight: 500; }
.float-tile {
  display: none;
  place-items: center;
  position: absolute;
  padding: 0.5rem;
  border-radius: var(--r-media);
  background: var(--c-black);
  color: var(--c-grey);
  font-size: var(--fs-label);
  text-align: center;
}
@media (min-width: 62rem) {
  .float-tile:not([hidden]) { display: grid; }
  .float-tile--1 { top: 0; left: 4%; width: 11rem; height: 7.5rem; }
  .float-tile--2 { top: 38%; left: 0; width: 6rem; height: 8rem; }
  .float-tile--3 { top: 6%; right: 6%; width: 8rem; height: 6rem; }
  .float-tile--4 { bottom: 4%; right: 0; width: 9rem; height: 7rem; }
}

/* ---------- Painel final: conversa ---------- */
.closing { margin-bottom: var(--panel-margin); padding-block: 0; }
.closing > .section { padding-bottom: var(--sp-6); }
.talk { row-gap: var(--sp-6); }
.talk__intro { display: grid; gap: var(--sp-3); align-content: start; }
.talk__intro .h2 { font-size: clamp(2.25rem, 1.1rem + 3.4vw, 4.25rem); }
.talk__intro .lead { max-width: 30ch; }
.proof-list { display: grid; margin-top: var(--sp-3); padding: 0; list-style: none; }
.proof-list li { padding-block: var(--sp-2); border-top: 1px solid var(--line); }
.proof-list li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 62rem) {
  .grid > .talk__intro { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
  .grid > .talk__form { grid-column: 7 / -1; }
}

/* Formulário */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-1); }
.field__label, .field legend { font-size: var(--fs-small); font-weight: 500; }
.field legend { margin-bottom: var(--sp-1); padding: 0; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  background: transparent;
  font-size: 1.0625rem; /* 17px: evita zoom automático no iOS */
  transition: border-color 0.2s ease;
}
.input::placeholder { color: var(--c-grey); opacity: 1; }
.input:hover { border-color: var(--c-grey); }
.input:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.input[aria-invalid="true"] { border-color: var(--fg); border-width: 2px; padding-inline: calc(1rem - 1px); }

.choices { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.choice span:hover { border-color: var(--c-grey); }
.choice input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choice input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.field[aria-invalid="true"] .choice span { border-color: var(--fg); }

.field__error { display: none; align-items: center; gap: 0.5rem; font-size: var(--fs-small); }
.field__error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 500;
  flex: none;
}
.field__error.is-visible { display: flex; }

.form__lead { font-size: var(--fs-small); color: var(--c-grey); max-width: 52ch; }
.form__submit { display: grid; gap: var(--sp-2); margin-top: var(--sp-1); justify-items: start; }
.form__submit .cta { width: 100%; }
.form__submit .cta__label { flex: 1; justify-content: center; }
.form__note { color: var(--c-grey); font-size: var(--fs-small); }

.form-done {
  display: grid;
  gap: var(--sp-3);
  justify-items: start;
  padding: var(--sp-4) var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-media);
}
.form-done[hidden] { display: none; }

/* Convite ao quiz */
.quiz {
  margin-top: var(--sp-section);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  row-gap: var(--sp-3);
  align-items: center;
}
.quiz__text { display: grid; gap: var(--sp-2); }
.quiz__text p { color: var(--muted); max-width: 44ch; }
@media (min-width: 62rem) {
  .grid > .quiz__text { grid-column: 1 / 9; }
  .grid > .quiz__action { grid-column: 9 / -1; justify-self: end; }
}

/* ---------- Rodapé ---------- */
.site-footer { padding-block: var(--sp-4) var(--sp-3); }
.footer__grid { row-gap: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.footer__brand { display: grid; gap: var(--sp-3); align-content: start; }
.footer__brand img { width: 11rem; }
.footer__brand p { color: var(--c-grey); max-width: 24ch; }
.footer__col { display: grid; gap: var(--sp-1); align-content: start; }
.footer__col .label { color: var(--c-grey); }
.footer__links { display: grid; padding: 0; list-style: none; }
.footer__links a { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin-top: var(--sp-2); color: var(--c-grey); font-size: var(--fs-small); }
.to-top:hover { color: var(--c-white); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  color: var(--c-grey);
  font-size: var(--fs-label);
}
@media (min-width: 48rem) and (max-width: 61.99rem) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 62rem) {
  .grid > .footer__brand { grid-column: 1 / 7; }
  .grid > .footer__nav { grid-column: 7 / 10; }
  .grid > .footer__contact { grid-column: 10 / -1; }
}

/* ---------- Barra fixa de WhatsApp (celular) ---------- */
.wa-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.wa-bar .btn { width: 100%; }
@media (max-width: 61.99rem) {
  body { padding-bottom: calc(var(--wa-bar-h) + env(safe-area-inset-bottom)); }
  .is-menu-open .wa-bar { display: none; }
}
@media (min-width: 62rem) {
  .wa-bar { display: none; }
}

/* ---------- Troca de tema ---------- */
@media (prefers-reduced-motion: no-preference) {
  .is-theming, .is-theming *, .is-theming *::before, .is-theming *::after {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease,
      fill 0.35s ease, stroke 0.35s ease, box-shadow 0.35s ease !important;
  }
}

/* ---------- Animações de entrada ---------- */
/* Só ativam com JavaScript e sem preferência por movimento reduzido. */
@media (prefers-reduced-motion: no-preference) {
  .js-motion [data-reveal] {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 60ms);
  }
  .js-motion [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Cabeçalho fixo: o conteúdo começa abaixo dele */
main { padding-top: var(--header-h); }

/* Pílula no celular: só o logo e o ícone do menu */
@media (max-width: 61.99rem) {
  .site-header.is-condensed > .container { width: min(19.5rem, calc(100% - 2 * var(--gutter))); padding-inline: 1rem; }
  .site-header.is-condensed .brand { gap: 0.5rem; }
  .site-header.is-condensed .header-tools { gap: 0.25rem; }
  .site-header.is-condensed .menu-toggle [data-menu-label] {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 20.99rem) {
  .site-header.is-condensed .brand__name { display: none; }
}

/* Com o menu aberto o cabeçalho volta ao estado de topo */
.is-menu-open .site-header > .container {
  width: calc(100% - 2 * var(--gutter));
  padding-inline: 0;
  background-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.is-menu-open .site-header { transform: none; }
.is-menu-open .site-header { background-color: var(--bg); }
