/* ==========================================================================
   Agenix AI — Landing page cinematográfica
   Design system: grafite/prata + azul-ciano elétrico
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Fundos */
  --bg-0: #0a0b0d;
  --bg-1: #111318;
  --surface-1: #1c2027;
  --surface-2: #2a2f38;
  --hairline: rgba(174, 180, 189, 0.14);
  --hairline-strong: rgba(174, 180, 189, 0.26);

  /* Texto */
  --text-1: #f5f6f7;
  --text-2: #aeb4bd;
  --text-3: #7c838d;

  /* Accent */
  --accent: #38bdf8;
  --accent-glow: #22d3ee;
  --accent-deep: #0b5f80;
  --accent-wash: rgba(56, 189, 248, 0.08);

  /* Tipografia */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Escala fluida */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 4.8rem);

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 78rem;
  --radius: 14px;
  --radius-lg: 20px;

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

  /* Altura do header */
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Lenis assume o controle da rolagem — desliga o smooth nativo pra não brigar */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
canvas,
video,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--bg-0);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg-0);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   3. Wordmark
   -------------------------------------------------------------------------- */
.wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.28em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.045em;
  color: var(--text-1);
  line-height: 1;
}

.wordmark__badge {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  transform: translateY(0.15em);
  font-family: var(--font-display);
  font-feature-settings: "tnum";
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
  gap: 2rem;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.92), rgba(10, 11, 13, 0));
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hairline);
}

.site-header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
}

.site-header__nav a {
  font-size: var(--step--1);
  color: var(--text-2);
  letter-spacing: 0.02em;
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease-out);
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  color: var(--text-1);
}
.site-header__nav a:hover::after,
.site-header__nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  background: rgba(28, 32, 39, 0.6);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-1);
  transition: transform 0.3s var(--ease-out), opacity 0.2s linear;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
}
.nav-toggle__bars::before {
  transform: translateY(-6px);
}
.nav-toggle__bars::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  line-height: 1;
  min-height: 48px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  will-change: transform;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

.btn--primary {
  background: var(--accent);
  color: #04141d;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5), 0 10px 34px -12px rgba(34, 211, 238, 0.75);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.7), 0 16px 44px -12px rgba(34, 211, 238, 0.95);
}

.btn--ghost {
  border: 1px solid var(--hairline-strong);
  color: var(--text-1);
  background: rgba(28, 32, 39, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.7em 1.25em;
  min-height: 42px;
}

/* Botão flutuante de WhatsApp */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.9em 1.4em;
  border-radius: 999px;
  background: var(--accent);
  color: #04141d;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  line-height: 1;
  min-height: 52px;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45), 0 14px 40px -10px rgba(34, 211, 238, 0.8);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    background 0.3s var(--ease-out);
}
.wa-float:hover,
.wa-float:focus-visible {
  background: var(--accent-glow);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.65), 0 20px 52px -10px rgba(34, 211, 238, 1);
}
.wa-float svg {
  width: 1.35em;
  height: 1.35em;
  fill: currentColor;
  flex: none;
}
.wa-float__label {
  white-space: nowrap;
}

/* Pulso discreto de destaque */
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--accent-glow);
  opacity: 0;
  animation: wa-pulse 3.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

/* --------------------------------------------------------------------------
   6. Stage — canvas fixado + painéis de texto
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
}

/* Fixação por CSS puro: sticky + margem negativa faz os painéis correrem
   por cima do canvas sem precisar do pin do ScrollTrigger (menos bugs). */
.stage__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  margin-bottom: -100vh;
  overflow: hidden;
  background: var(--bg-0);
  z-index: 0;
}

@supports (height: 100svh) {
  .stage__viewport {
    margin-bottom: -100svh;
  }
}

.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback sem JavaScript: com JS o site remove esta <img> e usa o canvas
   (modo cinema) ou o fundo de cada painel (modo estático). */
.stage__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.no-js .stage__poster {
  opacity: 1;
}

/* Véu que garante contraste do texto sobre a imagem */
.stage__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      120% 90% at 50% 55%,
      rgba(10, 11, 13, 0.2) 0%,
      rgba(10, 11, 13, 0.72) 62%,
      rgba(10, 11, 13, 0.94) 100%
    ),
    linear-gradient(180deg, rgba(10, 11, 13, 0.85) 0%, rgba(10, 11, 13, 0.25) 30%, rgba(10, 11, 13, 0.25) 70%, rgba(10, 11, 13, 0.9) 100%);
}

/* Fio de luz azul que atravessa o palco */
.stage__scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 42%,
    rgba(56, 189, 248, 0.06) 50%,
    transparent 58%
  );
  mix-blend-mode: screen;
}

.stage__panels {
  position: relative;
  z-index: 2;
}

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(6rem, 14vh, 10rem);
  padding-inline: var(--gutter);
}

.panel__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}

.panel--narrow .panel__inner {
  max-width: 56rem;
}

/* Painel único de um palco precisa de altura extra: é dele que sai
   a distância de rolagem que alimenta o scrub daquela cena. */
.panel--tall {
  min-height: 200vh;
  min-height: 200svh;
}

.panel--center {
  text-align: center;
}
.panel--center .panel__inner {
  margin-inline: auto;
}

/* Quando o canvas está fixado, os painéis flutuam sobre ele */
.stage--pinned .stage__viewport {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   7. Tipografia editorial
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.h1 {
  font-size: var(--step-4);
  max-width: 18ch;
}
.panel--center .h1,
.panel--center .h2 {
  margin-inline: auto;
}

.h2 {
  font-size: var(--step-3);
  max-width: 20ch;
}

.lead {
  font-size: var(--step-1);
  color: var(--text-2);
  max-width: 54ch;
  line-height: 1.55;
}
.panel--center .lead {
  margin-inline: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.panel--center .actions {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   8. Componentes de conteúdo
   -------------------------------------------------------------------------- */

/* Chips (dores) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 1.1em;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(28, 32, 39, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: var(--step--1);
  color: var(--text-2);
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  flex: none;
}

/* Cartões genéricos */
.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  position: relative;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(28, 32, 39, 0.82), rgba(17, 19, 24, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out),
    background 0.4s var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-3px);
}
.card:hover::before {
  opacity: 0.8;
}

.card__title {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}
.card__text {
  color: var(--text-2);
  font-size: var(--step--1);
  margin: 0;
  line-height: 1.6;
}

.card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: var(--accent-wash);
  margin-bottom: 1.1rem;
}
.card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Passos numerados */
.steps {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(28, 32, 39, 0.8), rgba(17, 19, 24, 0.7));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.9rem;
  opacity: 0.9;
}
.step__title {
  font-size: var(--step-0);
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.step__text {
  margin: 0;
  color: var(--text-2);
  font-size: var(--step--1);
}

/* Grade de funcionalidades (bloco reservado) */
.features {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(28, 32, 39, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: var(--step--1);
  color: var(--text-2);
  line-height: 1.5;
  transition: border-color 0.35s var(--ease-out);
}
.feature:hover {
  border-color: rgba(56, 189, 248, 0.45);
}
.feature__mark {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15em;
  border-radius: 5px;
  background: var(--accent-wash);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: grid;
  place-items: center;
}
.feature__mark svg {
  width: 11px;
  height: 11px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature__text strong {
  display: block;
  color: var(--text-1);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* Placeholder visível de conteúdo a preencher */
.placeholder-block {
  margin-top: 2.4rem;
  padding: 2rem 1.75rem;
  border: 1px dashed rgba(56, 189, 248, 0.45);
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.05);
  color: var(--text-2);
  font-size: var(--step--1);
}
.placeholder-block__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  padding: 0.3em 0.85em;
  margin-bottom: 1rem;
}
.placeholder-block p {
  margin: 0 0 0.5rem;
}
.placeholder-block p:last-child {
  margin-bottom: 0;
}
.placeholder-block code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.15em 0.45em;
  border-radius: 5px;
}

/* Números / resultados */
.stats {
  display: grid;
  gap: 1rem;
  margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.stat {
  position: relative;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(28, 32, 39, 0.8), rgba(17, 19, 24, 0.66));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
  line-height: 1.05;
  margin-bottom: 0.45rem;
}
.stat__label {
  color: var(--text-2);
  font-size: var(--step--1);
  margin: 0;
}

/* Rodapé de premissas dos números — declarar a base fortalece o dado */
.stats-note {
  margin: 1.4rem 0 0;
  max-width: 62ch;
  padding-left: 1rem;
  border-left: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Dica ao lado de um botão */
.actions__hint {
  align-self: center;
  color: var(--text-3);
  font-size: var(--step--1);
  max-width: 34ch;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   8b. Calculadora de economia
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.6rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(28, 32, 39, 0.9), rgba(17, 19, 24, 0.8));
}

.calc__inputs {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.calc__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc__field label {
  font-size: var(--step--1);
  color: var(--text-2);
  line-height: 1.35;
}

.calc__unit {
  color: var(--text-3);
}

.calc__field input {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--text-1);
  background: var(--bg-0);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 0.7em 0.85em;
  min-height: 52px;
  width: 100%;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  -moz-appearance: textfield;
}
.calc__field input::-webkit-outer-spin-button,
.calc__field input::-webkit-inner-spin-button {
  opacity: 0.35;
}
.calc__field input:hover {
  border-color: rgba(174, 180, 189, 0.4);
}
.calc__field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.calc__hint {
  font-size: 0.74rem;
  color: var(--text-3);
  line-height: 1.4;
}

.calc__results {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.calc__result {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calc__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.calc__result--destaque .calc__value {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

.calc__label {
  font-size: var(--step--1);
  color: var(--text-2);
  line-height: 1.45;
}

.calc__note {
  margin: 1.3rem 0 0;
  max-width: 68ch;
  padding-left: 1rem;
  border-left: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--text-3);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. Seções em fluxo normal (calculadora, FAQ, rodapé)
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: clamp(5rem, 12vh, 8.5rem);
  padding-inline: var(--gutter);
  background: var(--bg-1);
}
.section__inner {
  max-width: var(--maxw);
  margin-inline: auto;
}
.section--alt {
  background: var(--bg-0);
}

/* Linha de luz separando blocos */
.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), transparent);
}

/* FAQ */
.faq {
  margin-top: 2.8rem;
  border-top: 1px solid var(--hairline);
}
.faq__item {
  border-bottom: 1px solid var(--hairline);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-1);
  transition: color 0.3s var(--ease-out);
}
.faq__q:hover {
  color: var(--accent);
}
.faq__icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out), opacity 0.3s linear;
}
.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq__q[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq__a {
  overflow: hidden;
  height: 0;
}
.faq__a-inner {
  padding-bottom: 1.6rem;
  color: var(--text-2);
  max-width: 62ch;
}
.faq__a-inner p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--bg-0);
  padding: clamp(3.5rem, 8vh, 5.5rem) var(--gutter) calc(clamp(3.5rem, 8vh, 5.5rem) + 60px);
  border-top: 1px solid var(--hairline);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.site-footer__col h3 {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.site-footer__col li + li {
  margin-top: 0.6rem;
}
.site-footer__col a {
  color: var(--text-2);
  font-size: var(--step--1);
  transition: color 0.25s var(--ease-out);
}
.site-footer__col a:hover,
.site-footer__col a:focus-visible {
  color: var(--accent);
}
.site-footer__tagline {
  color: var(--text-3);
  font-size: var(--step--1);
  max-width: 30ch;
  margin-top: 1rem;
}
.site-footer__bottom {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-3);
  font-size: 0.78rem;
}

/* Placeholder de contato ainda não preenchido */
.is-placeholder {
  color: var(--accent) !important;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.5);
  cursor: help;
}

/* --------------------------------------------------------------------------
   11. Reveals (animação de entrada)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

/* Sem JS: nada fica invisível */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Indicador de rolagem no hero */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-3);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-display);
  z-index: 3;
  pointer-events: none;
}
.scroll-hint__line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: hint-slide 2.4s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes hint-slide {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  35% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1) translateY(42px);
    opacity: 0;
  }
}

/* Barra de progresso do carregamento de quadros */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg-0);
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.loader__bar {
  width: min(220px, 50vw);
  height: 2px;
  background: var(--surface-2);
  overflow: hidden;
  border-radius: 2px;
}
.loader__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-glow));
  transition: width 0.3s linear;
}

/* --------------------------------------------------------------------------
   12. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: flex;
    position: relative;
  }

  .site-header__nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    background: rgba(10, 11, 13, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  }
  .site-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-header__nav a {
    padding-block: 0.95rem;
    font-size: var(--step-0);
    border-bottom: 1px solid var(--hairline);
  }
  .site-header__nav a::after {
    display: none;
  }
  /* O CTA acompanha o menu aberto — no mobile ele é a primeira conversão à mão */
  .site-header__nav .btn {
    margin-top: 1.2rem;
    justify-content: center;
    border-bottom: 0;
  }

  .panel {
    min-height: auto;
    padding-block: clamp(4.5rem, 12vh, 7rem);
  }

  .stage__viewport {
    height: 70vh;
    height: 70svh;
  }

  .wa-float__label {
    display: none;
  }
  .wa-float {
    padding: 0.95em;
    min-width: 56px;
    justify-content: center;
  }
  .wa-float svg {
    width: 1.6em;
    height: 1.6em;
  }

  .h1 {
    max-width: 100%;
  }
  .h2 {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   13. Fallback estático — mobile e prefers-reduced-motion
   -------------------------------------------------------------------------- */
/* No modo estático o canvas some, o poster fica atrás dos painéis e cada
   painel ganha seu próprio fundo com a cena correspondente. */
.is-static-mode .stage__canvas {
  display: none;
}

.is-static-mode .stage__viewport {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: 0;
}

.is-static-mode .stage__panels {
  position: relative;
  z-index: 2;
}

.is-static-mode .panel {
  position: relative;
  isolation: isolate;
}

/* Cada painel carrega a própria cena como fundo.
   O véu é bem mais leve que o do canvas: as cenas já são noturnas (luminância
   média de 32 a 73 em 255) e, com 0,7 de preto por cima, o resultado ficava em
   ~10 — a mesma cor do fundo da página. A foto existia e não aparecia.
   As bordas seguem escuras para o texto ter contraste; o miolo abre. */
.is-static-mode .panel[data-poster] {
  background-image: linear-gradient(
      180deg,
      rgba(10, 11, 13, 0.82) 0%,
      rgba(10, 11, 13, 0.34) 38%,
      rgba(10, 11, 13, 0.4) 62%,
      rgba(10, 11, 13, 0.88) 100%
    ),
    var(--panel-poster);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Sombra atrás do texto: deixa o véu leve sem custar legibilidade */
.is-static-mode .panel[data-poster] .panel__inner {
  text-shadow: 0 1px 18px rgba(10, 11, 13, 0.85), 0 1px 3px rgba(10, 11, 13, 0.9);
}

.is-static-mode .stage__poster.is-active {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .scroll-hint {
    display: none;
  }
  .wa-float::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   14. Impressão
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .wa-float,
  .stage__viewport,
  .loader,
  .scroll-hint {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .panel {
    min-height: auto;
    page-break-inside: avoid;
  }
}
