/* =========================================================
   Ouvidoria — Landing page
   Família visual Rede Caiçara: azul-marinho institucional e dourado,
   com o coral como cor própria da Ouvidoria (a voz do cidadão).
   Títulos em Bricolage Grotesque, texto em Inter, números em JetBrains Mono.
   ========================================================= */

:root {
  --navy-950: #061630;
  --navy-900: #0a2147;
  --navy-800: #10307a;
  --blue: #1a4fb4;
  --blue-500: #2f6fe0;
  --blue-100: #d8e4fa;
  --blue-50: #edf3fe;

  /* coral: --coral sobre fundo escuro, --coral-700 para texto sobre claro */
  --coral: #ff8a65;
  --coral-500: #f2683f;
  --coral-700: #bf3f1c;
  --coral-50: #fff0ea;

  --gold: #f2c14e;
  --gold-600: #d9a12a;

  --ink: #0d1830;
  --text: #3a4560;
  --muted: #5f6a82;
  --bg: #f4f6f9;
  --paper: #fbf8f4;
  --surface: #ffffff;
  --line: #e1e6ef;
  --line-soft: #ebeff6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 24, 46, 0.06), 0 2px 8px rgba(15, 24, 46, 0.04);
  --shadow: 0 18px 40px -18px rgba(11, 37, 87, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(6, 22, 48, 0.55), 0 12px 24px -12px rgba(6, 22, 48, 0.25);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 32px);
  --header-h: 74px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--head); color: var(--ink); letter-spacing: -0.03em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-700);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.25);
}
.eyebrow-light { color: var(--coral); }

.section-title {
  margin-top: 16px;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.03;
  max-width: 18ch;
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  color: var(--blue);
  background: linear-gradient(transparent 62%, rgba(255, 138, 101, 0.38) 62%, rgba(255, 138, 101, 0.38) 92%, transparent 92%);
  padding: 0 0.06em;
}
.section-lead {
  margin-top: 16px;
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--muted);
}
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.center .section-title { max-width: 20ch; }

/* ---------- Botões e links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease-out), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn i { font-size: 1.2em; transition: transform 0.3s var(--ease-out); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 16px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* brilho que atravessa o botão ao passar o mouse ou focar */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn:focus-visible::after { transform: translateX(120%); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 12px 28px -12px rgba(242, 193, 78, 0.75);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-whatsapp {
  background: #25d366;
  color: #04260f;
  box-shadow: 0 14px 34px -12px rgba(37, 211, 102, 0.7);
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::after { transform: translateX(120%); }
  .btn:hover .ph-arrow-right, .btn:hover .ph-arrow-up-right { transform: translateX(4px); }
  .btn:hover .ph-arrow-down { transform: translateY(3px); }
  .btn:hover .ph-whatsapp-logo { transform: rotate(-12deg) scale(1.1); }
  .btn-gold:hover { background: #f6cd67; box-shadow: 0 18px 34px -12px rgba(242, 193, 78, 0.9); }
  .btn-outline:hover { border-color: var(--coral); background: rgba(255, 138, 101, 0.1); }
  .btn-whatsapp:hover { background: #33e077; }
}
.btn:focus-visible { transform: translateY(-2px); outline-color: var(--coral); }
.btn:active { transform: scale(0.96); transition-duration: 0.1s; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.site-header.is-floating {
  background: rgba(6, 22, 48, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.08);
}
.site-header.is-scrolled {
  background: rgba(244, 246, 249, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  color: var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 8px 20px -8px rgba(255, 138, 101, 0.7);
  transition: transform 0.4s var(--ease-out);
}
.brand:hover .brand-mark, .brand:focus-visible .brand-mark { transform: rotate(-10deg) scale(1.06); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.brand small {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--coral);
  transition: color 0.3s ease;
}
.is-scrolled .brand small, .site-footer .brand small { color: var(--coral-700); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  opacity: 0.86;
  transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.is-current { opacity: 1; }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.is-current::after { transform: scaleX(1); }
.is-scrolled .main-nav a::after { background: var(--coral-500); }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.is-scrolled .menu-toggle { border-color: var(--line); background: #fff; }
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ---------- Animações de entrada ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.intro {
  opacity: 0;
  animation: rise 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 100ms);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  --hp: 0;
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + clamp(28px, 5vh, 64px));
  padding-bottom: clamp(70px, 11vh, 120px);
  overflow: hidden;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.74);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.g-1 {
  width: 760px; height: 760px; right: -200px; top: -220px;
  background: radial-gradient(circle, rgba(47, 111, 224, 0.55), transparent 65%);
  translate: 0 calc(var(--hp) * 140px);
}
.g-2 {
  width: 620px; height: 620px; left: -260px; bottom: -260px;
  background: radial-gradient(circle, rgba(242, 104, 63, 0.42), transparent 65%);
  translate: 0 calc(var(--hp) * -90px);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 60% 40%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 60% at 60% 40%, #000 15%, transparent 75%);
}
/* ondas sonoras concêntricas: a voz que se propaga */
.hero-wave {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 138, 101, 0.22);
  will-change: transform;
}
.w-1 { right: 4%; bottom: 6%; width: 280px; height: 280px; box-shadow: 0 0 0 40px rgba(255, 138, 101, 0.03), 0 0 0 80px rgba(255, 138, 101, 0.02); }
.w-2 { left: 38%; top: 10%; width: 120px; height: 120px; border-color: rgba(242, 193, 78, 0.22); }

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  transform: translateY(calc(var(--hp) * -60px));
  opacity: calc(1 - var(--hp) * 0.9);
}
.hero-title {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-size: clamp(2.6rem, 4.6vw, 4.7rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: #fff;
}
.hero-title .line { display: block; }
.hero-title mark {
  position: relative;
  background: none;
  color: var(--navy-950);
  white-space: nowrap;
  padding: 0 0.12em;
}
.hero-title mark::before {
  content: "";
  position: absolute;
  inset: 0.08em -0.02em 0.02em;
  z-index: -1;
  border-radius: 0.14em;
  background: var(--coral);
  transform-origin: left;
  animation: wipe 0.9s var(--ease-out) 0.95s both;
}
@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-lead {
  max-width: 52ch;
  margin-top: 26px;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stats dt { margin-top: 6px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.62); }

/* Palco com a tela real */
@keyframes stage-in {
  from { opacity: 0; transform: translateY(80px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
.hero-stage {
  position: relative;
  perspective: 1600px;
  opacity: 0;
  animation: stage-in 1.3s var(--ease-out) 0.55s forwards;
}
.stage-inner {
  position: relative;
  transform-origin: 30% 50%;
  transform:
    rotateY(calc((1 - var(--hp)) * -16deg))
    rotateX(calc((1 - var(--hp)) * 6deg))
    translateX(calc(var(--hp) * -4%))
    scale(calc(0.94 + var(--hp) * 0.16));
  will-change: transform;
}

.browser {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #eef1f6;
  border-bottom: 1px solid var(--line-soft);
}
.browser-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #d3d9e4; flex: none; }
.browser-bar > span:first-child { background: #f08b7d; }
.browser-bar > span:nth-child(2) { background: #f2c14e; }
.browser-bar > span:nth-child(3) { background: #6cc49a; }
.browser-bar p {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  color: var(--muted);
  max-width: 76%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-bar p > span { overflow: hidden; text-overflow: ellipsis; }

.hero-browser { border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04); }

/* pontos que pulsam sobre os botões reais de manifestação */
.pulse-dot {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 138, 101, 0.7);
  animation: ping-dot 2.2s ease-out 2s infinite;
  opacity: 0;
}
.pd-1 { left: 30%; top: calc(34px + (100% - 34px) * 0.882); }
.pd-2 { left: 70%; top: calc(34px + (100% - 34px) * 0.882); animation-delay: 3.1s; }
@keyframes ping-dot {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 138, 101, 0.7); }
  70% { opacity: 1; box-shadow: 0 0 0 18px rgba(255, 138, 101, 0); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 138, 101, 0); }
}

.float-card {
  position: absolute;
  left: -9%;
  bottom: -14%;
  z-index: 3;
  width: min(280px, 60%);
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  transform: translateY(calc(var(--hp) * -40px));
  animation: rise 1s var(--ease-out) 1.2s both;
}
.fc-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.86rem; color: var(--ink); }
.fc-label i { color: var(--coral-500); font-size: 1.1rem; }
.fc-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--blue);
  font-size: 0.82rem;
}
.fc-field small { color: var(--muted); font-size: 0.72rem; }
.fc-field b { color: var(--ink); display: inline-block; transition: opacity 0.25s ease, transform 0.35s var(--ease-out); }
.fc-field b.is-swapping { opacity: 0; transform: translateY(6px); }
.fc-field i { margin-left: auto; color: var(--blue); }
.fc-lines { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.fc-lines span { height: 6px; border-radius: 3px; background: #dbe1ec; }
.fc-lines span:nth-child(2) { width: 80%; }
.fc-lines span:nth-child(3) { width: 55%; }
.fc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #033e8a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 33, 71, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6);
  animation: rise 0.9s var(--ease-out) both, bob 6s ease-in-out 2s infinite;
}
.chip i { color: var(--coral); font-size: 1rem; }
.chip-1 { right: -4%; top: -6%; animation-delay: 1.3s, 2.2s; }
.chip-2 { right: 6%; bottom: -7%; animation-delay: 1.45s, 2.8s; }
.chip-3 { right: -7%; top: 40%; animation-delay: 1.6s, 3.3s; }
.chip-3 i { color: #25d366; }
@keyframes bob { 50% { translate: 0 -8px; } }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  opacity: calc(1 - var(--hp) * 3);
  transition: border-color 0.25s ease;
}
.scroll-hint:hover, .scroll-hint:focus-visible { border-color: var(--coral); }
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--coral);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: none; opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Faixa dos tipos ---------- */
.marquee {
  position: relative;
  padding: 18px 0;
  background: var(--navy-900);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  white-space: nowrap;
}
.marquee-track i { color: var(--coral); font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto {
  position: relative;
  padding: clamp(80px, 12vh, 130px) 0;
  overflow: hidden;
  background: var(--paper);
}
.manifesto-layers { position: absolute; inset: 0; pointer-events: none; }
.ml {
  position: absolute;
  font-family: var(--head);
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  opacity: 0.06;
  will-change: transform;
}
.ml-1 { font-size: clamp(180px, 24vw, 340px); right: -2%; top: 4%; }
.ml-2 { font-size: clamp(220px, 26vw, 400px); left: -1%; bottom: -18%; color: var(--coral-500); opacity: 0.12; }
.ml-3 { font-size: clamp(90px, 10vw, 150px); left: 52%; top: -2%; color: var(--gold-600); opacity: 0.16; }

.manifesto .container { position: relative; }
.manifesto-kicker {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--muted);
}
.manifesto-kicker.accent { margin-top: 28px; color: var(--coral-700); }
.manifesto-text {
  margin-top: 22px;
  max-width: 21ch;
  font-family: var(--head);
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.manifesto-text .w { opacity: 0.13; transition: opacity 0.4s ease; }
.manifesto-text .w.on { opacity: 1; }

/* ---------- Scrollytelling ---------- */
.story {
  position: relative;
  padding: clamp(90px, 13vh, 140px) 0 clamp(32px, 5vh, 56px);
  background:
    radial-gradient(800px 500px at 10% 20%, rgba(255, 138, 101, 0.12), transparent 60%),
    radial-gradient(700px 500px at 95% 85%, rgba(47, 111, 224, 0.1), transparent 60%),
    var(--bg);
}
.story-head { margin-bottom: clamp(12px, 2vh, 24px); }
.story .section-title { max-width: 20ch; }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.story-sticky {
  position: sticky;
  top: calc(var(--header-h) + 3vh);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 2vh;
}
.story-frame { --r: -4deg; position: relative; perspective: 1500px; }
.story-browser {
  border-color: rgba(13, 24, 48, 0.1);
  box-shadow: 0 50px 100px -40px rgba(6, 22, 48, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.7);
  transform-origin: 50% 50%;
  transform: rotateY(var(--r)) rotateX(2deg);
  transition: transform 1.1s var(--ease-out);
}

/* janela que reenquadra a tela inteira */
.viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}
.viewport img {
  --tx: 0%;
  --ty: 0%;
  --z: 1;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  max-width: none;
  transform-origin: 0 0;
  transform: translate(var(--tx), var(--ty)) scale(var(--z));
  transition: transform 1.2s var(--ease-out), opacity 0.7s ease;
  will-change: transform;
}
/* camadas da tela fixa: troca de página com fade, mais o reenquadramento */
.story-viewport img { opacity: 0; }
.story-viewport img.is-on { opacity: 1; }
.story-viewport img.no-anim { transition: opacity 0.7s ease; }

.focus-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(6, 22, 48, 0.9);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
}
.focus-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 101, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(255, 138, 101, 0); } }
.focus-tag.is-swapping { opacity: 0; transform: translateY(8px); }

/* camadas flutuantes de cada etapa */
.overlay {
  position: absolute;
  z-index: 3;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out);
  pointer-events: none;
}
.overlay.is-on { opacity: 1; transform: none; transition-delay: 0.35s; }

.ov-subjects {
  right: -5%;
  top: 14%;
  width: 230px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
}
.ov-subjects p { display: flex; align-items: center; gap: 8px; padding: 2px 6px 8px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.ov-subjects p i { color: var(--coral-500); }
.ov-subjects ul { display: grid; gap: 2px; margin-top: 6px; }
.ov-subjects li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--text);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out), background-color 0.3s ease;
}
.ov-subjects li i { color: var(--blue); }
.ov-subjects.is-on li { opacity: 1; transform: none; }
.ov-subjects.is-on li:nth-child(1) { transition-delay: 0.45s; }
.ov-subjects.is-on li:nth-child(2) { transition-delay: 0.52s; }
.ov-subjects.is-on li:nth-child(3) { transition-delay: 0.59s; }
.ov-subjects.is-on li:nth-child(4) { transition-delay: 0.66s; }
.ov-subjects.is-on li:nth-child(5) { transition-delay: 0.73s; }
.ov-subjects.is-on li:nth-child(6) { transition-delay: 0.8s; }
.ov-subjects li.is-hot { background: var(--coral-50); color: var(--ink); font-weight: 600; }
.ov-subjects li.is-hot i { color: var(--coral-500); }

.ov-contact, .ov-channels, .ov-anon {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.ov-contact { right: -4%; top: 12%; }
.ov-channels { right: -5%; top: 10%; }
.ov-anon { right: -5%; top: 38%; }
.ov-contact span, .ov-channels span, .ov-anon span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--navy-950);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6);
}
.ov-contact i, .ov-channels i { color: var(--coral); font-size: 1.05rem; }
.ov-channels span:first-child i { color: #25d366; }
.ov-contact span:nth-child(2), .ov-channels span:nth-child(2) { margin-right: 18px; }
.ov-channels span:nth-child(3) { margin-right: 4px; }
.ov-anon .ov-file { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ov-anon .ov-file i:first-child { color: var(--blue); font-size: 1.1rem; }
.ov-anon .ov-file i:last-child { color: #1f9d55; }
.ov-anon .ov-check { margin-right: 18px; }
.ov-anon .ov-check i { color: var(--gold); font-size: 1.1rem; }

.story-meter {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 4px;
  border-radius: 4px;
  background: rgba(13, 24, 48, 0.08);
  overflow: hidden;
}
.story-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral-500), var(--blue));
  transform-origin: left;
  transform: scaleX(var(--sp, 0));
}

.story-progress { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.story-progress li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}
.story-progress li span { font-family: var(--mono); font-size: 0.7rem; }
.story-progress li.is-active { color: #fff; border-color: var(--navy-950); background: var(--navy-950); }
.story-progress li.is-active span { color: var(--coral); }

.step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.22;
  transform: translateX(18px);
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out);
}
.step.is-active { opacity: 1; transform: none; }
.step:first-child { min-height: 62vh; justify-content: flex-start; padding-top: 4vh; }
.step:last-child { min-height: 58vh; justify-content: flex-start; padding-top: 6vh; }
.step-num {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--coral-700);
}
.step-num::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 2px;
  margin-left: 12px;
  vertical-align: middle;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0.3);
  transition: transform 0.8s var(--ease-out);
}
.step.is-active .step-num::after { transform: scaleX(1); }
.step h3 { margin-top: 14px; font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.06; }
.step p { margin-top: 14px; font-size: 1.04rem; max-width: 46ch; }
.step-points { margin-top: 22px; display: grid; gap: 10px; }
.step-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.step-points i {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--coral-50);
  color: var(--coral-700);
  font-size: 1.05rem;
}
.step-media { display: none; }

/* ---------- Manifestações ---------- */
.types { padding: clamp(80px, 11vh, 120px) 0 clamp(90px, 13vh, 140px); background: #fff; }
.types-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.mode-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.mode-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s ease, transform 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.mode-btn i { font-size: 1.15rem; }
.mode-btn:hover { color: var(--ink); }
.mode-btn.is-active { color: #fff; }
.mode-btn:active { transform: scale(0.96); }
.mode-btn:focus-visible { outline-offset: 2px; border-radius: 999px; }
.mode-pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--navy-950);
  box-shadow: 0 10px 22px -10px rgba(6, 22, 48, 0.7);
  transition: transform 0.5s var(--ease-out);
}
.mode-switch[data-active="anonimo"] .mode-pill { transform: translateX(100%); }

.types-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.type {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s ease, border-color 0.3s ease, opacity 0.8s var(--ease-out), filter 0.5s ease;
}
@media (hover: hover) {
  .type.is-visible:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255, 138, 101, 0.5); }
  .type.is-visible:hover .type-icon { transform: rotate(-8deg) scale(1.08); background: var(--coral-500); color: #fff; border-color: var(--coral-500); }
}
.type-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--coral-700);
  font-size: 1.4rem;
  transition: transform 0.5s var(--ease-out), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.type h3 { margin-top: 16px; font-size: 1.2rem; line-height: 1.15; }
.type p { margin-top: 6px; font-size: 0.93rem; }
.type-lock {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--navy-950);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
}
/* modo anônimo: tipos e campos que não se aplicam ficam esmaecidos */
[data-mode="anonimo"] .type[data-only="identificado"].is-visible { opacity: 0.45; filter: grayscale(1); transform: scale(0.97); }
[data-mode="anonimo"] .type[data-only="identificado"] .type-lock { opacity: 1; transform: none; }

.form-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  color: rgba(255, 255, 255, 0.8);
}
.form-card-title { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: #fff; }
.form-card-title i { color: var(--coral); font-size: 1.3rem; }
.field-list { display: grid; gap: 6px; margin-top: 16px; }
.field-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}
.field-list i { color: var(--coral); font-size: 1.05rem; }
.field-list b { margin-left: auto; color: var(--gold); }
[data-mode="anonimo"] .field-list li[data-only="identificado"] { opacity: 0.28; transform: translateX(8px); text-decoration: line-through; }
.form-card-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  transition: opacity 0.25s ease;
}
.form-card-foot.is-swapping { opacity: 0; }

/* ---------- Legislação ---------- */
.laws {
  position: relative;
  padding: clamp(90px, 13vh, 140px) 0;
  overflow: hidden;
  background:
    radial-gradient(700px 500px at 0% 0%, rgba(242, 104, 63, 0.26), transparent 60%),
    var(--navy-950);
  color: rgba(255, 255, 255, 0.76);
}
.laws-layers { position: absolute; inset: 0; pointer-events: none; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); will-change: transform; }
.r-1 { width: 620px; height: 620px; right: -180px; top: -140px; }
.r-2 { width: 380px; height: 380px; right: 10%; bottom: -160px; border-color: rgba(255, 138, 101, 0.18); }
.laws-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.laws .section-title { color: #fff; }
.laws .section-title em { color: var(--coral); background: none; }
.laws-copy > p:not(.eyebrow) { margin-top: 18px; max-width: 48ch; font-size: 1.05rem; }
.laws-copy .laws-note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}
.laws-note i { color: var(--gold); font-size: 1.2rem; flex: none; margin-top: 2px; }

.law-list { display: grid; gap: 12px; }
.law {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.5s var(--ease-out), opacity 0.8s var(--ease-out);
}
.law:hover { background: rgba(255, 138, 101, 0.08); border-color: rgba(255, 138, 101, 0.4); }
.law-code {
  grid-row: span 2;
  align-self: center;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--coral);
}
.law strong { font-family: var(--head); font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; line-height: 1.2; }
.law p { font-size: 0.92rem; }

/* ---------- Cliente ---------- */
.client { padding: clamp(90px, 13vh, 140px) 0; background: var(--paper); overflow: hidden; }
.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.client-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 14px 12px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s var(--ease-out), opacity 0.8s var(--ease-out);
}
.client-badge img { width: 52px; height: 52px; object-fit: contain; }
.client-badge > span { display: flex; flex-direction: column; line-height: 1.15; }
.client-badge small { font-size: 0.78rem; color: var(--muted); }
.client-badge strong { font-family: var(--head); font-size: 1.25rem; color: var(--ink); }
.client-badge i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-out), border-color 0.3s ease;
}
.client-badge:hover, .client-badge:focus-visible { border-color: var(--coral-500); box-shadow: var(--shadow); }
.client-badge:hover i, .client-badge:focus-visible i { background: var(--coral-500); border-color: var(--coral-500); color: #fff; transform: rotate(45deg); }

.client-shots {
  position: relative;
  display: block;
  padding: 0 0 12% 10%;
  border-radius: var(--radius-lg);
}
.client-shots .viewport, .client-shots .browser-bar { display: flex; }
.client-shots .viewport { display: block; }
.shot-back {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  opacity: 0.95;
  box-shadow: var(--shadow);
}
.shot-front {
  position: relative;
  z-index: 1;
  transform: rotate(1.5deg);
  transition: transform 0.6s var(--ease-out), box-shadow 0.5s ease;
}
.client-shots:hover .shot-front, .client-shots:focus-visible .shot-front { transform: translateY(-8px) rotate(0deg); }

/* ---------- Como funciona ---------- */
.process { padding: clamp(90px, 13vh, 140px) 0; background: var(--bg); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.steps li {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line-soft);
}
.s-num { font-family: var(--mono); font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.steps li > i {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-top: 18px;
  border-radius: 14px;
  background: var(--navy-950);
  color: var(--coral);
  font-size: 1.4rem;
}
.steps h3 { margin-top: 18px; font-size: 1.25rem; }
.steps p { margin-top: 8px; font-size: 0.95rem; }

/* ---------- Dúvidas ---------- */
.faq {
  padding: clamp(90px, 13vh, 140px) 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.faq-list { display: grid; gap: 10px; }
.faq details {
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.faq details[open] { background: #fff; border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s ease;
}
.faq summary:hover { color: var(--coral-700); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral-50);
  color: var(--coral-700);
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}
.faq details[open] summary i { transform: rotate(45deg); background: var(--coral-500); color: #fff; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(90px, 13vh, 130px); background: #fff; }
.cta-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(520px 320px at 85% 10%, rgba(242, 193, 78, 0.18), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(242, 104, 63, 0.4), transparent 60%),
    linear-gradient(135deg, var(--navy-800) 0%, var(--navy-950) 100%);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.cta-layers { position: absolute; inset: 0; pointer-events: none; }
.cta-layers span {
  position: absolute;
  width: 480px;
  height: 480px;
  left: -160px;
  bottom: -240px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: pulse-ring 6s ease-out infinite;
}
.cta-layers span:nth-child(2) { animation-delay: 2s; }
.cta-layers span:nth-child(3) { animation-delay: 4s; }
@keyframes pulse-ring { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.cta-copy, .wa-card { position: relative; }
.cta-copy h2 { margin-top: 16px; font-size: clamp(2rem, 4vw, 3.3rem); color: #fff; line-height: 1.04; max-width: 16ch; }
.cta-copy h2 em { font-style: normal; color: var(--coral); }
.cta-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.08rem; max-width: 44ch; }
.cta-points { display: grid; gap: 12px; margin-top: 26px; }
.cta-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.cta-points i { color: var(--gold); font-size: 1.2rem; }

.wa-card {
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
  transform: rotate(1.5deg);
  transition: transform 0.6s var(--ease-out);
}
.wa-card:hover, .wa-card:focus-within { transform: none; }
.wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.wa-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral-500), var(--blue));
  color: #fff;
  font-size: 1.2rem;
  flex: none;
}
.wa-head strong { display: block; font-family: var(--head); font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.wa-head small { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.online { width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2); }
.wa-logo { margin-left: auto; font-size: 1.7rem; color: #25d366; }

.wa-chat {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 18px 14px;
  border-radius: var(--radius);
  background: #eef1f6;
}
.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.bubble.in { background: #fff; color: var(--text); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.bubble.out { justify-self: end; background: #d9fdd3; color: #14361f; border-bottom-right-radius: 4px; }
.cta-box.is-visible .bubble { opacity: 1; transform: none; }
.cta-box.is-visible .bubble.in { transition-delay: 0.45s; }
.cta-box.is-visible .bubble.out { transition-delay: 1s; }
.wa-note { margin-top: 12px; text-align: center; font-size: 0.82rem; color: var(--muted); }

/* ---------- Rodapé ---------- */
.site-footer { padding: 44px 0 36px; border-top: 1px solid var(--line); background: #fff; color: var(--ink); }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 40px;
  align-items: center;
}
.footer-inner > p { color: var(--muted); font-size: 0.92rem; }
.footer-inner > p a { color: var(--coral-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; transition: color 0.25s ease; }
.footer-inner > p a:hover { color: var(--blue); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-inner nav a { font-size: 0.92rem; color: var(--text); transition: color 0.25s ease; }
.footer-inner nav a:hover, .footer-inner nav a:focus-visible { color: var(--coral-700); }
.footer-inner > small { grid-column: 1 / -1; font-size: 0.8rem; color: var(--muted); }

/* ---------- CTA fixo no celular ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  transform: translateY(150%);
  transition: transform 0.45s var(--ease-out);
}
.mobile-cta .btn { box-shadow: 0 16px 40px -10px rgba(6, 22, 48, 0.6); }
.mobile-cta.is-visible { transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero-stage { width: min(760px, 100%); margin: 30px auto 0; }
  .float-card { left: -2%; }
  .chip-1 { right: 0; }
  .chip-3 { right: -2%; }
  .types-layout { grid-template-columns: minmax(0, 1fr); }
  .form-card { position: relative; top: 0; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-subjects { right: -2%; }
}

@media (max-width: 960px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--pad) 20px;
    background: rgba(244, 246, 249, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 4px; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); opacity: 1; }
  .main-nav a::after { left: 4px; right: auto; width: 32px; bottom: 8px; background: var(--coral-500); }
  .site-header:has(.main-nav.is-open) { background: rgba(244, 246, 249, 0.98); color: var(--ink); }
  .site-header:has(.main-nav.is-open) .brand small { color: var(--coral-700); }
  .site-header:has(.main-nav.is-open) .menu-toggle { border-color: var(--line); background: #fff; }

  /* Scrollytelling vira blocos verticais */
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-sticky { display: none; }
  .story-steps { display: grid; gap: 64px; }
  .step, .step:first-child, .step:last-child { min-height: 0; padding-top: 0; opacity: 1; transform: none; }
  .step-num::after { transform: scaleX(1); }
  .step.reveal { opacity: 0; transform: translateY(28px); }
  .step.reveal.is-visible { opacity: 1; transform: none; }
  .step-media {
    display: block;
    margin-top: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  /* o recorte de cada etapa entra com um leve zoom de aproximação */
  .step-media img { transform: translate(var(--tx), var(--ty)) scale(calc(var(--z) * 1.08)); transition-duration: 1.4s; }
  .step.is-visible .step-media img { transform: translate(var(--tx), var(--ty)) scale(var(--z)); }

  .laws-grid, .faq-grid, .client-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-box { grid-template-columns: minmax(0, 1fr); }
  .wa-card { transform: none; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }

  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: 80px; }
  .hero .eyebrow { font-size: 0.68rem; letter-spacing: 0.08em; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; white-space: normal; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-stats dt { font-size: 0.7rem; line-height: 1.3; }
  .hero-stage { margin-top: 20px; }
  .stage-inner { transform: scale(calc(0.98 + var(--hp) * 0.04)); }
  .browser-bar { height: 26px; padding: 0 10px; }
  .browser-bar > span { width: 7px; height: 7px; }
  .browser-bar p { font-size: 0.6rem; }
  .pd-1, .pd-2 { top: calc(26px + (100% - 26px) * 0.882); width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .float-card { position: relative; left: auto; bottom: auto; width: 88%; margin: -26px auto 0; padding: 14px; }
  .chip { font-size: 0.7rem; padding: 6px 10px; }
  .chip-1 { right: 2%; top: -9%; }
  .chip-2, .chip-3 { display: none; }
  .scroll-hint { display: none; }

  .ml { opacity: 0.04; }

  .types-head { align-items: stretch; }
  .mode-switch { width: 100%; }
  .mode-btn { padding: 11px 8px; font-size: 0.84rem; gap: 6px; }
  .type-grid { grid-template-columns: minmax(0, 1fr); }
  .type { padding: 20px; }
  .law { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .law-code { grid-row: auto; }
  .client-badge { width: 100%; }
  .client-badge i { margin-left: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cta-box .btn { white-space: normal; }
  .cta-box { padding: 28px 20px; }
}

/* Telas estreitas (320–400px) */
@media (max-width: 400px) {
  :root { --pad: 16px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .hero .eyebrow { font-size: 0.6rem; }
  .hero-lead { font-size: 0.95rem; }
  .hero-stats dd { font-size: 1.6rem; }
  .btn-lg { padding: 14px 18px; font-size: 0.93rem; }
  .section-title { font-size: clamp(1.75rem, 9vw, 2.1rem); }
  .manifesto-text { font-size: 1.55rem; }
  .mode-btn i { display: none; }
  .steps li { padding: 22px 18px; }
  .faq summary { padding: 16px; font-size: 0.95rem; }
  .faq details p { padding: 0 16px 16px; }
  .wa-chat { padding: 14px 10px; }
  .bubble { font-size: 0.86rem; }
  .wa-head strong { font-size: 0.95rem; }
  .client-badge strong { font-size: 1.1rem; }
}

/* =========================================================
   Movimento reduzido: conteúdo disponível de imediato
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .intro, .hero-stage, .reveal, .step, .step.reveal, .float-card, .chip { opacity: 1 !important; transform: none !important; translate: none !important; }
  .hero-copy, .stage-inner, .story-browser, .shot-front { transform: none !important; opacity: 1 !important; }
  .scroll-hint, .pulse-dot { display: none; }
  .manifesto-text .w { opacity: 1 !important; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none !important; }
  .bubble, .ov-subjects li { opacity: 1 !important; transform: none !important; }
  .btn:hover, .btn:active, .btn:focus-visible, .type.is-visible:hover, .client-shots:hover .shot-front { transform: none !important; }
  .btn::after { display: none; }
  .glow, .hero-wave, .ring, .ml { translate: none !important; transform: none !important; }
}
