/* ==========================================================================
   OSC — GESTÃO EMPRESARIAL E LICITAÇÕES
   Folha de estilo — Identidade Visual V2.0
   --------------------------------------------------------------------------
   Regras do manual aplicadas aqui:
   • Paleta oficial de 4 cores, proporção 55 / 27 / 10 / 8.
   • Monograma de anéis: anel O fechado, anel C aberto no quadrante superior
     direito (8 % menor, deslocado na diagonal ascendente) e o ponto do encontro.
   • Anel aberto + ponto são os ÚNICOS ornamentos. Padrão a 12 % de opacidade.
   • Sem sombra, contorno adicional, gradiente ou distorção.
   • Caixa alta apenas em rótulos e descritores mono — nunca em frases.
   --------------------------------------------------------------------------
   01. Tokens          06. Hero              11. Setores
   02. Base            07. Scroll reveal     12. FAQ
   03. Monograma       08. Valores           13. Formulário
   04. Botões          09. Problema/Solução  14. Rodapé
   05. Navbar          10. Metodologia       15. Acessibilidade
                                             16. Adaptação por dispositivo
                                             17. Movimento reduzido
   ========================================================================== */

/* -------------------------------------------------------------------------
   01. TOKENS — paleta oficial V2.0
   ---------------------------------------------------------------------- */
:root {
  --deep:      #12301F;   /* Verde profundo   · anel O, fundo institucional (55 %) */
  --deeper:    #0F1F14;   /* Verde profundo escurecido · faixas de contraste       */
  --mid:       #3F8A4B;   /* Verde médio      · anel C, filetes e apoio (10 %)     */
  --growth:    #87D06A;   /* Verde crescimento· ponto de encontro e destaques (8 %)*/
  --cream:     #F2EFE4;   /* Creme documento  · papel e fundo de leitura (27 %)    */
  --cream-dim: #E3DFD0;   /* Creme sombreado                                       */
  --rule:      #CFD3C5;   /* Filete sobre creme                                    */
  --alert:     #AC312A;   /* Alerta — só validação de formulário                   */

  /* Verde médio escurecido para texto sobre creme (contraste de leitura) */
  --mid-ink:   #2F6A3A;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);

}

/* -------------------------------------------------------------------------
   02. BASE E TIPOGRAFIA
   Archivo 400/600/800/900 · IBM Plex Mono 400/500
   ---------------------------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: clip;
}

body {
  background: var(--deep);    /* cor sólida — o canvas só acrescenta os anéis */
  color: var(--cream);
  font-size: 16px;            /* mínimo de 15 px exigido pelo manual */
  line-height: 1.6;           /* entrelinha de corpo                  */
  overflow-x: hidden;
}

/* ---- Fundo interativo -----------------------------------------------------
   O canvas fica fixo atrás de tudo. As seções escuras são transparentes, então
   o campo de monogramas aparece através delas; as seções claras são sólidas e
   cobrem o canvas. Assim o fundo é cor chapada, com a interação por cima. */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;       /* nunca rouba clique do conteúdo */
}

header, main, footer { position: relative; z-index: 1; }

/* Seção de cor sólida: cobre o canvas por completo.
   O fundo é declarado aqui, e não só pela classe do Tailwind, para que a
   seção nunca fique translúcida caso o CDN demore ou falhe. */
.sec-solid {
  position: relative;
  z-index: 1;
  background: var(--cream);
}

section[id] { scroll-margin-top: 92px; }

::selection { background: var(--growth); color: var(--deep); }

.section { padding-block: clamp(76px, 10vw, 136px); }

/* Título · 900, −0.035em — em caixa normal, nunca em caixa alta */
.h-display {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
/* Subtítulo · 600, −0.02em */
.h-sub {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Rótulo mono · 0.18em */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.label--growth { color: var(--growth); }
.label--dark   { color: var(--mid-ink); }

/* Descritor mono · 0.28em */
.descriptor {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.text-mid-ink { color: var(--mid-ink); }
.text-growth-brand { color: var(--growth); }

/* -------------------------------------------------------------------------
   03. MONOGRAMA E ORNAMENTO
   ---------------------------------------------------------------------- */

/* Monograma completo (SVG) — usado no navbar, rodapé e favicon */
.mono { display: block; width: 100%; height: 100%; }
.mono__o   { stroke: var(--mono-o,   var(--cream));  fill: none; }
.mono__c   { stroke: var(--mono-c,   var(--mid));    fill: none; }
.mono__dot { fill:   var(--mono-dot, var(--growth)); }

/* Aplicação positiva — sobre creme */
.mono--positiva { --mono-o: var(--deep);  --mono-c: var(--mid);    --mono-dot: var(--growth); }
/* Aplicação negativa — sobre verde profundo */
.mono--negativa { --mono-o: var(--cream); --mono-c: var(--mid);    --mono-dot: var(--growth); }
/* Monocromática */
.mono--mono     { --mono-o: currentColor; --mono-c: currentColor;  --mono-dot: currentColor; }

/* Assinatura completa: monograma + nome + descritor */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--cream);
  text-decoration: none;
}
.logo__sym { width: 42px; height: 42px; flex: none; }
.logo__txt { display: flex; flex-direction: column; gap: 3px; }
.logo__name {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  line-height: 0.85;
}
.logo__desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.72;
}
.logo--lg .logo__sym  { width: 62px; height: 62px; }
.logo--lg .logo__name { font-size: 2.1rem; }
.logo--lg .logo__desc { font-size: 0.6rem; }

/* Ornamento em CSS: anel aberto no quadrante superior direito + ponto.
   A borda superior transparente abre exatamente um quadrante.
   O nome é "osc-ring", e não "ring", porque o Tailwind já tem uma utilidade
   chamada ring que desenha um contorno azul — cor fora da paleta. */
.osc-ring {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  border: 3px solid var(--ring-color, var(--mid));
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}
.osc-ring::after {                       /* o ponto, na abertura do anel */
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot-color, var(--growth));
}
.osc-ring--sm { width: 13px; height: 13px; border-width: 2.5px; }
.osc-ring--sm::after { width: 5.5px; height: 5.5px; top: -3px; right: -3px; }
.osc-ring--lg { width: 30px; height: 30px; border-width: 5px; }
.osc-ring--lg::after { width: 11px; height: 11px; top: -6px; right: -6px; }


/* -------------------------------------------------------------------------
   04. BOTÕES E MICROINTERAÇÕES
   Flat: cor, filete e movimento. Sem sombra, sem gradiente.
   ---------------------------------------------------------------------- */
/* O display fica em :where() (especificidade zero) para que as utilidades do
   Tailwind — hidden, sm:inline-flex, lg:hidden — sempre vençam, não importa em
   que ordem o CDN injete a folha dele. */
:where(.btn) { display: inline-flex; }

.btn {
  position: relative;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 999px;          /* o anel da marca informa a forma */
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
              transform 0.2s var(--ease-out);
}
.btn > span { position: relative; z-index: 2; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }

.btn__dot {                      /* o ponto da marca dentro do botão */
  position: relative;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  transition: transform 0.32s var(--ease-out);
}
.btn:hover .btn__dot { transform: translateX(4px) scale(1.25); }

.btn--lg { padding: 18px 32px; font-size: 1.05rem; }

.btn--primary { background: var(--growth); color: var(--deep); border-color: var(--growth); }
.btn--primary::before { background: var(--cream); }
.btn--primary:hover, .btn--primary:focus-visible { color: var(--deep); border-color: var(--cream); }

.btn--ghost { color: var(--cream); border-color: rgba(242, 239, 228, 0.3); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--deep); border-color: var(--cream); }

.btn--dark { background: var(--deep); color: var(--cream); border-color: var(--deep); }
.btn--dark::before { background: var(--growth); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--deep); border-color: var(--growth); }

/* Pulso do CTA principal — um anel da marca expandindo */
.btn--pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--growth);
  border-radius: 999px;
  z-index: 0;
  animation: oscPulse 2.8s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes oscPulse {
  0%   { transform: scale(1);    opacity: 0.8; }
  70%  { transform: scale(1.14); opacity: 0; }
  100% { transform: scale(1.14); opacity: 0; }
}

/* -------------------------------------------------------------------------
   05. NAVBAR E MENU MOBILE
   ---------------------------------------------------------------------- */
.nav {
  background: transparent;
  transition: background-color 0.35s var(--ease-out);
}
.nav.is-stuck { background: rgba(15, 31, 20, 0.94); backdrop-filter: blur(10px); }
.nav__line {
  height: 1px;
  background: rgba(242, 239, 228, 0.14);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.nav.is-stuck .nav__line { opacity: 1; }

.navlink {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(242, 239, 228, 0.76);
  text-decoration: none;
  padding-block: 6px;
  transition: color 0.25s var(--ease-out);
}
.navlink::after {                /* o ponto da marca marca o link ativo */
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--growth);
  transform: scale(0);
  transition: transform 0.3s var(--ease-out);
}
.navlink:hover { color: var(--cream); }
.navlink:hover::after,
.navlink.is-current::after { transform: scale(1); }
.navlink.is-current { color: var(--cream); }

:where(.burger) { display: inline-flex; }

.burger {
  width: 46px; height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 2px solid rgba(242, 239, 228, 0.24);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 17px; height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 0.3s var(--ease-out), opacity 0.2s linear, width 0.3s var(--ease-out);
}
.burger span:nth-child(2) { width: 12px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { width: 17px; transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--deeper);
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(242, 239, 228, 0.12);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--cream);
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.2s;
}
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.11s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.21s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.26s; }
.mobile-menu__link:hover { color: var(--growth); }
.mobile-menu .btn { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease-out) .3s, transform .4s var(--ease-out) .3s; }
.mobile-menu.is-open .btn { opacity: 1; transform: none; }

body.is-locked { overflow: hidden; }

/* -------------------------------------------------------------------------
   06. HERO
   ---------------------------------------------------------------------- */
.hero {
  min-height: min(100svh, 880px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-anim {
  opacity: 0;
  transform: translateY(26px);
  animation: heroIn 0.85s var(--ease-out) both;
}
.hero-anim--1 { animation-delay: 0.10s; }
.hero-anim--2 { animation-delay: 0.20s; }
.hero-anim--3 { animation-delay: 0.34s; }
.hero-anim--4 { animation-delay: 0.46s; }
.hero-anim--5 { animation-delay: 0.58s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }


.hero-note {
  position: relative;
  padding-left: 26px;
}
.hero-note::before {             /* ponto da marca como marcador */
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--growth);
}

/* -------------------------------------------------------------------------
   07. SCROLL REVEAL
   ---------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   08. VALORES — faixa institucional
   ---------------------------------------------------------------------- */
.value {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid rgba(242, 239, 228, 0.16);
}
.value__ring { margin-bottom: 18px; }
.value__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.value__text {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(242, 239, 228, 0.66);
}
.value:hover .osc-ring { --ring-color: var(--growth); }

/* -------------------------------------------------------------------------
   09. PROBLEMA / SOLUÇÃO
   ---------------------------------------------------------------------- */
.panel { padding: clamp(28px, 4vw, 46px); border-radius: 26px; border: 2px solid transparent; }
.panel--pain { background: var(--cream-dim); border-color: var(--rule); color: var(--deep); }
.panel--fix  { background: var(--deep);      border-color: var(--mid);  color: var(--cream); }

.pain, .fix { position: relative; padding-left: 34px; line-height: 1.6; }
.pain { color: rgba(18, 48, 31, 0.78); }
.fix  { color: rgba(242, 239, 228, 0.82); }

/* Dor: anel fechado e apagado — sem ponto, o encontro não aconteceu */
.pain::before {
  content: '';
  position: absolute;
  left: 0; top: 0.42em;
  width: 16px; height: 16px;
  border: 3px solid rgba(18, 48, 31, 0.3);
  border-radius: 50%;
}
/* Solução: anel aberto + ponto — o ornamento da marca */
.fix::before {
  content: '';
  position: absolute;
  left: 0; top: 0.42em;
  width: 16px; height: 16px;
  border: 3px solid var(--mid);
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}
.fix::after {
  content: '';
  position: absolute;
  left: 13px; top: 0.3em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--growth);
}

/* -------------------------------------------------------------------------
   10. METODOLOGIA — degraus + anel de progresso
   ---------------------------------------------------------------------- */
.steps { border-top: 1px solid rgba(242, 239, 228, 0.16); }

.step { position: relative; border-bottom: 1px solid rgba(242, 239, 228, 0.16); }
.step::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--growth);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.45s var(--ease-out);
}
.step.is-active::before { transform: scaleY(1); }

.step__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 0 28px 22px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding-left 0.35s var(--ease-out);
}
.step.is-active .step__btn { padding-left: 28px; }

.step__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 239, 228, 0.42);
  flex: none;
  transition: color 0.3s var(--ease-out);
}
.step.is-active .step__num { color: var(--growth); }

.step__title {
  flex: 1;
  min-width: 0;
  font-size: clamp(1.4rem, 3.8vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: rgba(242, 239, 228, 0.55);
  transition: color 0.3s var(--ease-out);
}
.step.is-active .step__title,
.step__btn:hover .step__title { color: var(--cream); }

/* Indicador: anel que fecha quando a etapa abre */
.step__icon {
  position: relative;
  width: 20px; height: 20px;
  flex: none;
  border: 2.5px solid rgba(242, 239, 228, 0.3);
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
  transition: border-color 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}
.step.is-active .step__icon {
  border-color: var(--growth);
  transform: rotate(225deg);
}

.step__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-io);
  padding-left: 22px;
}
.step.is-active .step__body { grid-template-rows: 1fr; }
.step__body > * { overflow: hidden; }
.step__body p {
  color: rgba(242, 239, 228, 0.68);
  line-height: 1.6;
  max-width: 54ch;
  padding-bottom: 18px;
}
.step__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 30px; }
.step__tags li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--growth);
  border: 1px solid rgba(135, 208, 106, 0.4);
  border-radius: 999px;
  padding: 7px 14px;
}

@media (max-width: 640px) {
  .step__btn  { flex-wrap: wrap; gap: 14px; padding-block: 24px; }
  .step__num  { width: 100%; margin-bottom: -6px; }
  .step__tags { padding-bottom: 26px; }
}

/* Anel de progresso — avança um terço por etapa */
.gauge {
  border: 1px solid rgba(242, 239, 228, 0.16);
  border-radius: 26px;
  padding: clamp(26px, 3.4vw, 38px);
  background: rgba(15, 31, 20, 0.55);
}
.gauge__plot {
  position: relative;
  width: min(100%, 300px);
  margin: 30px auto 0;
  aspect-ratio: 1;
}
.gauge__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track { stroke: rgba(242, 239, 228, 0.12); fill: none; stroke-width: 9; }
.gauge__fill {
  stroke: var(--growth);
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 289.03;    /* 2·π·46 */
  stroke-dashoffset: 289.03;   /* vazio até o JS preencher */
  transition: stroke-dashoffset 0.95s var(--ease-out);
}
.gauge__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18%;
}
.gauge__step {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 239, 228, 0.45);
}
.gauge__name {
  margin-top: 8px;
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--cream);
}
.gauge__pct {
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--growth);
  font-variant-numeric: tabular-nums;
}
.gauge__legend {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.gauge__pip {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(242, 239, 228, 0.2);
  transition: background-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.gauge__pip.is-on { background: var(--growth); transform: scale(1.25); }

/* -------------------------------------------------------------------------
   11. SERVIÇOS E SETORES
   ---------------------------------------------------------------------- */
.svc-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.svc-head__rule { flex: 1; min-width: 40px; height: 1px; background: var(--rule); }

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 26px 30px;
  border: 2px solid var(--rule);
  border-radius: 24px;
  background: transparent;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--deep);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.45s var(--ease-out);
}
.card:hover, .card:focus-within { transform: translateY(-6px); border-color: var(--deep); }
.card:hover::before, .card:focus-within::before { transform: scaleY(1); }
.card--alt:hover, .card--alt:focus-within { border-color: var(--growth); }

.card__num {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--mid-ink);
  transition: color 0.35s var(--ease-out);
}
.card:hover .card__num { color: var(--growth); }

.card__ring { margin-top: 20px; --ring-color: var(--deep); }
.card:hover .card__ring { --ring-color: var(--growth); }
.card__ring .osc-ring { transition: transform 0.45s var(--ease-out); }
.card:hover .card__ring .osc-ring { transform: rotate(135deg); }

.card__title {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--deep);
  transition: color 0.35s var(--ease-out);
}
.card__text {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(18, 48, 31, 0.68);
  transition: color 0.35s var(--ease-out);
}
.card:hover .card__title { color: var(--cream); }
.card:hover .card__text  { color: rgba(242, 239, 228, 0.72); }

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(242, 239, 228, 0.14);
  padding-block: 24px;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; will-change: transform; }
.marquee__item {
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(242, 239, 228, 0.55);
  white-space: nowrap;
}
.marquee__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--growth); flex: none; }
.marquee__track.is-running { animation: marqueeScroll var(--marquee-speed, 34s) linear infinite; }
.marquee:hover .marquee__track.is-running { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------------------------------------------------------------------------
   12. FAQ
   ---------------------------------------------------------------------- */
.faq { border-top: 1px solid rgba(242, 239, 228, 0.16); }
.faq__item { border-bottom: 1px solid rgba(242, 239, 228, 0.16); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--cream);
  transition: color 0.25s var(--ease-out);
}
.faq__q > span:nth-child(2) { flex: 1; }
.faq__q:hover { color: var(--growth); }
.faq__n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--growth);
  flex: none;
}

.faq__icon {
  position: relative;
  width: 18px; height: 18px;
  flex: none;
  border: 2.5px solid rgba(242, 239, 228, 0.32);
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
  transition: border-color 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}
.faq__item.is-open .faq__icon { border-color: var(--growth); transform: rotate(225deg); }

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.42s var(--ease-io); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > p {
  overflow: hidden;
  color: rgba(242, 239, 228, 0.7);
  line-height: 1.6;
  max-width: 64ch;
}
.faq__item.is-open .faq__a > p { padding-bottom: 26px; }

/* -------------------------------------------------------------------------
   13. FORMULÁRIO E CONTATO
   ---------------------------------------------------------------------- */
.form {
  border: 1px solid rgba(242, 239, 228, 0.18);
  border-radius: 26px;
  background: rgba(18, 48, 31, 0.6);
  padding: clamp(26px, 3.4vw, 42px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 239, 228, 0.52);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(242, 239, 228, 0.22);
  padding: 11px 2px;
  color: var(--cream);
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  border-radius: 0;
  transition: border-color 0.3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 78px; line-height: 1.6; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--deeper); color: var(--cream); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(242, 239, 228, 0.32); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--growth); }
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid { border-bottom-color: var(--alert); }

.form__ok {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--growth);
}

/* Campo-armadilha: fora da tela, invisível para leitores de tela e para gente */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__error {
  margin-top: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: #E08A82;
}

.contact-line { display: flex; flex-direction: column; gap: 3px; }
.contact-line a, .contact-line span:last-child {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
.contact-line a:hover { color: var(--growth); }

/* -------------------------------------------------------------------------
   14. RODAPÉ E WHATSAPP FLUTUANTE
   ---------------------------------------------------------------------- */
.footlink {
  color: rgba(242, 239, 228, 0.62);
  text-decoration: none;
  transition: color 0.25s var(--ease-out), padding-left 0.25s var(--ease-out);
}
.footlink:hover { color: var(--growth); padding-left: 4px; }

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1.5px solid rgba(242, 239, 228, 0.22);
  border-radius: 50%;
  color: rgba(242, 239, 228, 0.7);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.social svg { width: 19px; height: 19px; }
.social:hover { color: var(--growth); border-color: var(--growth); transform: translateY(-3px); }

.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 40;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--growth);
  color: var(--deep);
  transition: transform 0.28s var(--ease-out);
}
.wa-float svg { width: 29px; height: 29px; }
.wa-float:hover { transform: translateY(-4px) scale(1.05); }

/* -------------------------------------------------------------------------
   15. ACESSIBILIDADE
   ---------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--growth);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   16. ADAPTAÇÃO POR DISPOSITIVO
   Celular em pé, celular deitado, tablet, notebook e monitor grande.
   ---------------------------------------------------------------------- */

/* ---- Celular pequeno — até 400 px ---- */
@media (max-width: 400px) {
  .logo__sym  { width: 36px; height: 36px; }
  .logo__name { font-size: 1.3rem; }
  .logo__desc { font-size: 0.44rem; letter-spacing: 0.22em; }
  .btn        { padding: 13px 20px; font-size: 0.9rem; }
  .btn--lg    { padding: 16px 24px; font-size: 0.98rem; }
  .panel      { border-radius: 20px; }
  .card       { border-radius: 20px; padding: 24px 20px 26px; }
  .form, .gauge { border-radius: 20px; }
}

/* ---- Celular e tablet: alvos de toque confortáveis ---- */
@media (max-width: 1023px) {
  .faq__q, .step__btn { min-height: 44px; }
  /* min-height não vale em elemento inline: o link do rodapé vira inline-block
     e ganha respiro vertical para o dedo acertar sem esforço. */
  .footlink { display: inline-block; padding-block: 12px; }
  footer li { line-height: 1.2; }
  .contact-line a { display: inline-block; padding-block: 9px; }
  .wa-float { width: 58px; height: 58px; right: 16px; bottom: 16px; }
  /* o botão flutuante não pode tapar o fim do formulário */
  #contato { padding-bottom: clamp(96px, 16vw, 150px); }
}

/* ---- Celular deitado — pouca altura ---- */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 104px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(2rem, 6vh, 3rem); }
  .mobile-menu__inner { padding-block: 24px; }
  .mobile-menu { align-items: flex-start; overflow-y: auto; }
  .mobile-menu__link { padding: 12px 0; font-size: 1.2rem; }
}

/* ---- Tablet — 640 px a 1023 px ---- */
@media (min-width: 640px) and (max-width: 1023px) {
  .section { padding-block: clamp(72px, 9vw, 104px); }

  /* o anel de progresso fica ao lado do texto em vez de empilhado */
  .gauge { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
  .gauge__plot   { margin: 0; width: clamp(200px, 30vw, 260px); }
  .gauge__legend { grid-column: 1 / -1; margin-top: 4px; }

  .step__title { font-size: clamp(1.6rem, 3.4vw, 2rem); }
}

/* ---- Tablet em pé especificamente ---- */
@media (min-width: 640px) and (max-width: 900px) and (orientation: portrait) {
  .hero { min-height: min(86svh, 760px); }
}

/* ---- Monitor grande — a partir de 1536 px ---- */
@media (min-width: 1536px) {
  .section { padding-block: 150px; }
  .logo__sym { width: 46px; height: 46px; }
}

/* ---- Sem hover (toque): o card já nasce no estado final ----
   Em celular e tablet ninguém passa o mouse, então o efeito de hover nunca
   aconteceria e o card ficaria pela metade. Aqui ele se completa sozinho. */
@media (hover: none) {
  .card { border-color: var(--deep); }
  .card--alt { border-color: var(--mid); }
  .card:hover, .card:focus-within { transform: none; }
  .card__num  { color: var(--mid-ink); }
  .card__ring { --ring-color: var(--mid); }
  .card:active { transform: scale(0.99); }

  .value .osc-ring { --ring-color: var(--growth); }
  .marquee:hover .marquee__track.is-running { animation-play-state: running; }
  .footlink:hover { padding-left: 0; }
  .social:hover  { transform: none; }
  .wa-float:hover { transform: none; }
}

/* ---- Telas de alta densidade: afina os filetes ---- */
@media (min-resolution: 2dppx) {
  .osc-ring { border-width: 2.5px; }
  .osc-ring--sm { border-width: 2px; }
}

/* ---- Impressão ---- */
@media print {
  #bg-canvas, .wa-float, .nav, .mobile-menu, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .step__body, .faq__a { grid-template-rows: 1fr !important; }
}

/* -------------------------------------------------------------------------
   17. MOVIMENTO REDUZIDO
   ---------------------------------------------------------------------- */
@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 !important; transform: none !important; }
  .hero-anim  { opacity: 1 !important; transform: none !important; }
  .btn--pulse::after { display: none; }
}
