/* =========================================================
   Portal da Transparência — Landing page
   Família visual Rede Caiçara: azul-marinho institucional,
   verde da transparência e dourado de destaque.
   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;

  --green: #0e9f6e;
  --green-600: #0b8059;
  --mint: #43e0a6;
  --green-50: #e6f8f0;

  --gold: #f2c14e;
  --gold-600: #d9a12a;

  --ink: #0d1830;
  --text: #3a4560;
  --muted: #67728a;
  --bg: #f4f6f9;
  --paper: #fbfaf6;
  --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(--green);
}
.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(--mint); }

.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(67, 224, 166, 0.45) 62%, rgba(67, 224, 166, 0.45) 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-gold:hover { background: #f6cd67; box-shadow: 0 18px 34px -12px rgba(242, 193, 78, 0.9); }
  .btn-outline:hover { border-color: var(--mint); background: rgba(67, 224, 166, 0.1); }
  .btn-whatsapp:hover { background: #33e077; }
}
.btn:focus-visible { transform: translateY(-2px); outline-color: var(--mint); }
.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(14, 159, 110, 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(--mint);
  transition: color 0.3s ease;
}
.is-scrolled .brand small, .site-footer .brand small { color: var(--green); }

.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(--mint);
  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(--green); }

.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) * 100ms);
}
.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(14, 159, 110, 0.45), 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%);
}
.hero-lens {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(67, 224, 166, 0.25);
  box-shadow: inset 0 0 0 30px rgba(67, 224, 166, 0.03);
}

.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.5vw, 4.6rem);
  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(--mint);
  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.58); }

/* 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); }
.hero-browser img { width: 100%; }

/* linha de varredura: sugere a leitura dos dados */
.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(67, 224, 166, 0.22) 60%, rgba(67, 224, 166, 0.6) 62%, transparent 63%);
  mix-blend-mode: multiply;
  animation: scan 4.8s var(--ease-out) 1.8s infinite;
  opacity: 0;
}
@keyframes scan {
  0% { transform: translateY(-90px); opacity: 0; }
  10% { opacity: 1; }
  70% { transform: translateY(420%); opacity: 1; }
  80%, 100% { transform: translateY(420%); opacity: 0; }
}

.float-card {
  position: absolute;
  left: -9%;
  bottom: -12%;
  z-index: 3;
  width: min(300px, 62%);
  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(--green); font-size: 1.1rem; }
.fc-fields { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fc-fields span {
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  font-size: 0.72rem;
  color: var(--muted);
}
.fc-fields b { color: var(--ink); font-weight: 600; }
.fc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 0.76rem;
  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(--mint); font-size: 1rem; }
.chip-1 { right: -4%; top: -6%; animation-delay: 1.3s, 2.2s; }
.chip-2 { right: 8%; bottom: -7%; animation-delay: 1.45s, 2.8s; }
.chip-3 { right: -6%; top: 38%; animation-delay: 1.6s, 3.3s; }
@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(--mint); }
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--mint);
  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 eixos ---------- */
.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 52s 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(--mint); 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, 26vw, 380px); right: -2%; top: 2%; letter-spacing: -0.06em; }
.ml-2 { font-size: clamp(110px, 14vw, 210px); left: -3%; bottom: 4%; color: var(--green); opacity: 0.1; }
.ml-3 { font-size: clamp(90px, 10vw, 160px); left: 46%; top: -3%; color: var(--gold-600); opacity: 0.14; }

.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(--green); }
.manifesto-text {
  margin-top: 22px;
  max-width: 20ch;
  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(67, 224, 166, 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 página inteira */
.viewport {
  --tx: 0%;
  --ty: 0%;
  --z: 1;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}
.viewport img {
  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);
  will-change: transform;
}
.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(--mint);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(67, 224, 166, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(67, 224, 166, 0); } }
.focus-tag.is-swapping { opacity: 0; transform: translateY(8px); }

.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(--green), 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(--mint); }

.story-steps { padding-bottom: 0; }
.step:last-child { min-height: 58vh; justify-content: flex-start; padding-top: 6vh; }
.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-num {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
}
.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(--green-50);
  color: var(--green);
  font-size: 1.05rem;
}
.step-media { display: none; }

/* ---------- Consultas ---------- */
.features { padding: clamp(64px, 9vh, 100px) 0 clamp(90px, 13vh, 140px); background: #fff; }
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  padding: 28px;
  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);
}
@media (hover: hover) {
  .card.is-visible:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
}
.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 1.4rem;
  transition: transform 0.5s var(--ease-out);
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.06); }
.card h3 { margin-top: 18px; font-size: 1.25rem; line-height: 1.15; }
.card p { margin-top: 8px; font-size: 0.95rem; }

.card-table { grid-column: span 2; grid-row: span 2; background: var(--navy-950); border-color: transparent; color: rgba(255, 255, 255, 0.72); }
.card-table h3 { color: #fff; margin-top: 0; }
.card-table .card-icon { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: var(--mint); }
.card-top { display: flex; gap: 16px; align-items: flex-start; }
.card-top p { margin-top: 6px; }

.table-demo {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 0.84rem;
  overflow: hidden;
}
.td-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.td-chip {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.td-chip b { color: var(--ink); }
.td-chip[data-phase].is-changing { background: var(--green-50); border-color: var(--green); }
.td-csv { margin-left: auto; background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.td-head, .td-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 96px 104px;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
}
.td-head { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.td-row { border-bottom: 1px solid var(--line-soft); transition: opacity 0.4s ease, transform 0.5s var(--ease-out); }
.td-row span:first-child, .td-row span:last-child { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); }
.td-row span:last-child { text-align: right; }
.td-row span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-row.is-dim { opacity: 0.18; transform: translateX(6px); }
.ph-tag { justify-self: start; padding: 3px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }
.ph-tag.pago { background: var(--green-50); color: var(--green-600); }
.ph-tag.liq { background: var(--blue-50); color: var(--blue); }
.ph-tag.emp { background: #fdf3da; color: #9a6b07; }
.demo-note { margin-top: 12px; font-size: 0.78rem !important; color: rgba(255, 255, 255, 0.5); }

.file-demo { display: grid; gap: 8px; margin-top: 18px; }
.file-demo span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-dark { background: linear-gradient(140deg, var(--green-600), var(--navy-900)); border-color: transparent; color: rgba(255, 255, 255, 0.78); }
.card-dark h3 { color: #fff; }
.card-dark .card-icon { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.sic-demo { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.sd-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}
.sd-step.is-on { opacity: 1; }
.sd-step i { color: var(--mint); }

.card-wide { grid-column: span 3; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip-row span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-out);
}
.chip-row span:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ---------- Legislação ---------- */
.laws {
  position: relative;
  padding: clamp(90px, 13vh, 140px) 0;
  overflow: hidden;
  background:
    radial-gradient(700px 500px at 0% 0%, rgba(14, 159, 110, 0.3), transparent 60%),
    var(--navy-950);
  color: rgba(255, 255, 255, 0.74);
}
.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(67, 224, 166, 0.16); }
.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(--mint); 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; counter-reset: law; }
.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(67, 224, 166, 0.08); border-color: rgba(67, 224, 166, 0.4); }
.law-code {
  grid-row: span 2;
  align-self: center;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mint);
}
.law strong { font-family: var(--head); font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; }
.law p { font-size: 0.92rem; }

/* ---------- Clientes ---------- */
.clients { padding: clamp(90px, 13vh, 140px) 0; background: var(--paper); }
.client-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.shot { display: block; border-radius: var(--radius-lg); }
.shot .browser { transition: transform 0.6s var(--ease-out), box-shadow 0.5s ease; box-shadow: var(--shadow); }
.shot:hover .browser, .shot:focus-visible .browser { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--shadow-lg); }
.shot-cap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 0 4px;
}
.shot-cap img { width: 44px; height: 44px; object-fit: contain; }
.shot-cap span { display: flex; flex-direction: column; line-height: 1.15; }
.shot-cap small { font-size: 0.78rem; color: var(--muted); }
.shot-cap strong { font-family: var(--head); font-size: 1.3rem; color: var(--ink); }
.shot-cap i {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  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;
}
.shot:hover .shot-cap i, .shot:focus-visible .shot-cap i { background: var(--green); border-color: var(--green); color: #fff; transform: rotate(45deg); }

/* ---------- Como funciona ---------- */
.process { padding: clamp(90px, 13vh, 140px) 0; background: var(--bg); }
.steps {
  position: relative;
  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(--mint);
  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(--green); }
.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(--green-50);
  color: var(--green);
  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(--green); 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(14, 159, 110, 0.45), 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;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: pulse-ring 6s ease-out infinite;
}
.cta-layers span { width: 480px; height: 480px; left: -160px; bottom: -240px; }
.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(--mint); }
.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(--green), 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(--green); 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(--green); }
.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%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@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(--green); }
  .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(--green); }
  .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 { padding-bottom: 0; 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);
  }
  .step-media img { transform: translate(var(--tx), var(--ty)) scale(calc(var(--z) * 1.06)); transition-duration: 1.4s; }
  .step.is-visible .step-media img { transform: translate(var(--tx), var(--ty)) scale(var(--z)); }

  .laws-grid, .faq-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; }
  .scan { top: 26px; }
  .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; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .card-table, .card-wide { grid-column: auto; grid-row: auto; }
  .card-table { padding: 22px 16px; }
  .card-top { flex-direction: column; gap: 12px; }
  .table-demo { padding: 12px 10px; font-size: 0.78rem; }
  .td-head, .td-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; padding: 9px 4px; }
  .td-row span:last-child { white-space: nowrap; font-size: 0.74rem; }
  .td-head span:nth-child(3), .td-row span:nth-child(3) { display: none; }
  .law { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .law-code { grid-row: auto; }
  .client-shots, .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; }
  .card { padding: 22px 18px; }
  .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; }
}

/* =========================================================
   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 { transform: none !important; opacity: 1 !important; }
  .scan, .scroll-hint { display: none; }
  .manifesto-text .w { opacity: 1 !important; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none !important; }
  .bubble { opacity: 1 !important; transform: none !important; }
  .td-row.is-dim { opacity: 1 !important; transform: none !important; }
  .btn:hover, .btn:active, .btn:focus-visible, .card.is-visible:hover, .shot:hover .browser { transform: none !important; }
  .btn::after { display: none; }
}
