/* ==========================================================================
   AproxHub — Design System
   Paleta: #2F63E0 · #447DE2 · #2C4698 · #FFFFFF · #151D2F
   ========================================================================== */

/* --------------------------------------------------------------
   0. FONTES (variáveis, subset latino, auto-hospedadas)
-------------------------------------------------------------- */
@font-face {
  font-family: 'Sora';
  src: url('../fonts/Sora-var-latin.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-var-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------
   1. TOKENS
-------------------------------------------------------------- */
:root {
  /* Cores base (paleta oficial) */
  --blue:        #2F63E0;
  --blue-soft:   #447DE2;
  --blue-deep:   #2C4698;
  --white:       #FFFFFF;
  --ink:         #151D2F;

  /* Derivadas — apenas transparências da paleta */
  --ink-90: rgba(21, 29, 47, .90);
  --ink-70: rgba(21, 29, 47, .70);
  --ink-55: rgba(21, 29, 47, .55);
  --ink-42: rgba(21, 29, 47, .42);
  --ink-12: rgba(21, 29, 47, .12);
  --ink-08: rgba(21, 29, 47, .08);
  --ink-05: rgba(21, 29, 47, .05);

  --blue-16: rgba(47, 99, 224, .16);
  --blue-10: rgba(47, 99, 224, .10);
  --blue-06: rgba(47, 99, 224, .06);

  --surface:     #FFFFFF;
  --surface-alt: #F7F9FE;   /* branco levemente azulado */
  --line:        rgba(21, 29, 47, .09);

  /* Gradientes discretos */
  --grad-brand: linear-gradient(135deg, var(--blue-soft) 0%, var(--blue) 52%, var(--blue-deep) 100%);
  --grad-text:  linear-gradient(100deg, var(--blue) 0%, var(--blue-soft) 45%, var(--blue-deep) 100%);
  --grad-dark:  linear-gradient(150deg, #1B2540 0%, var(--ink) 55%, #101728 100%);

  /* Sombras suaves */
  --sh-xs: 0 1px 2px rgba(21, 29, 47, .05);
  --sh-sm: 0 2px 8px rgba(21, 29, 47, .05), 0 1px 2px rgba(21, 29, 47, .04);
  --sh-md: 0 8px 28px rgba(21, 29, 47, .07), 0 2px 6px rgba(21, 29, 47, .04);
  --sh-lg: 0 22px 60px rgba(21, 29, 47, .10), 0 6px 16px rgba(21, 29, 47, .05);
  --sh-xl: 0 40px 90px rgba(21, 29, 47, .13), 0 10px 26px rgba(21, 29, 47, .06);
  --sh-blue: 0 12px 30px rgba(47, 99, 224, .28);
  --sh-blue-hi: 0 18px 40px rgba(47, 99, 224, .36);

  /* Raios */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Tipografia */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);   /* com leve ultrapassagem */
  --t-fast: .16s var(--ease);
  --t:      .28s var(--ease);
  --t-slow: .55s var(--ease-out);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;
}

/* --------------------------------------------------------------
   2. RESET & BASE
-------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* A identidade é deliberadamente clara ("dark accents apenas em detalhes").
     color-scheme fixa o chrome nativo — select, autofill, barra de rolagem —
     em modo claro mesmo para quem usa o SO em tema escuro. */
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-70);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -.028em;
  line-height: 1.12;
  font-weight: 700;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--blue-16); color: var(--ink); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

/* Ícones */
.icon { width: 20px; height: 20px; flex: none; stroke-width: 1.85; }
.icon--14 { width: 14px; height: 14px; stroke-width: 2.2; }
.icon--16 { width: 16px; height: 16px; stroke-width: 2; }
.icon--18 { width: 18px; height: 18px; }
.icon--22 { width: 22px; height: 22px; }

/* --------------------------------------------------------------
   3. COMPONENTES BASE
-------------------------------------------------------------- */

/* Pill / eyebrow */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border-radius: var(--r-full);
  background: var(--white);
  border: 1px solid var(--blue-16);
  box-shadow: var(--sh-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: -.01em;
}
.pill--soft {
  background: var(--blue-06);
  border-color: transparent;
  box-shadow: none;
  padding: 6px 14px;
  color: var(--blue);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: .09em;
}
.pill .icon { color: var(--blue); }

/* Botões */
.btn {
  --btn-y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: var(--r);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.012em;
  cursor: pointer;
  white-space: nowrap;
  transform: translateY(var(--btn-y));
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 18px 30px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary {
  overflow: hidden;              /* contém o brilho (::after) */
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--sh-blue);
  background-size: 160% 160%;
  background-position: 0% 50%;
  transition: transform var(--t), box-shadow var(--t), background-position .5s var(--ease);
}
.btn--primary:hover { --btn-y: -3px; box-shadow: var(--sh-blue-hi); background-position: 100% 50%; }
.btn--primary:active { --btn-y: -1px; transition-duration: .08s; }

/* brilho sutil ao passar o mouse */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}
.btn--primary:hover::after { animation: sheen .85s var(--ease-out); }
@keyframes sheen {
  0%   { transform: translateX(-120%); opacity: 1; }
  100% { transform: translateX(120%);  opacity: 0; }
}

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink-12);
  box-shadow: var(--sh-xs);
}
.btn--ghost:hover { --btn-y: -3px; border-color: var(--blue-16); color: var(--blue); box-shadow: var(--sh-md); }
.btn--ghost:active { --btn-y: -1px; }

.btn--light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.btn--light:hover { --btn-y: -3px; color: var(--blue); box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.btn--light:active { --btn-y: -1px; }

.btn__arrow { transition: transform var(--t); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

/* --------------------------------------------------------------
   4. HEADER
-------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(21, 29, 47, .05);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark {
  position: relative;
  flex: none;
  width: 40px;
  display: grid;
  place-items: center;
}
/* halo que acende no hover */
.logo__mark::before {
  content: '';
  position: absolute;
  inset: -46%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,99,224,.40) 0%, rgba(47,99,224,0) 68%);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.logo--interactive:hover .logo__mark::before { opacity: 1; transform: scale(1); }

.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -.032em;
  transition: letter-spacing var(--t);
}
.logo__text span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo--interactive:hover .logo__text { letter-spacing: -.022em; }

/* --------------------------------------------------------------
   4b. MARCA (SVG vetorizado de assets/logo/logo.jpg)
   Três peças independentes: núcleo "A", perna direita, perna esquerda.
-------------------------------------------------------------- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.mark {
  width: 100%;
  height: auto;
  overflow: visible;                       /* peças podem sair da viewBox */
  transform: perspective(340px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .32s var(--ease), filter .32s var(--ease);
}
.logo--interactive:hover .mark {
  filter: drop-shadow(0 5px 14px rgba(47, 99, 224, .42)) saturate(1.12);
}

/* Cores por camada. #B4CBF3 é o azul secundário clareado 60% —
   reproduz a interseção do arquivo original dentro da paleta. */
.mark__p {
  transform-box: view-box;
  transform-origin: 50% 55%;
  transition: translate .55s var(--spring), rotate .55s var(--spring),
              scale .55s var(--spring), opacity .35s var(--ease);
  /* longhands: o shorthand com var() vira pending-substitution e
     complicaria o override de animation-name/delay logo abaixo */
  animation-duration: .95s;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: backwards;
}
.mark__p--x { fill: var(--mk-x, var(--ink));          animation-name: markBootX; animation-delay: .08s; }
.mark__p--a { fill: var(--mk-a, url(#aproxGrad));     animation-name: markBootA; animation-delay: .24s; }
.mark__p--o { fill: var(--mk-o, #B4CBF3);             animation-name: markBootO; animation-delay: .58s; }

.mark.is-rebooting .mark__p { animation-name: none; }

/* montagem: o X entra deslizando, o A desce por cima,
   e as interseções só acendem quando os dois já se cruzaram */
@keyframes markBootX { from { opacity: 0; translate: -24px 14px; rotate: -10deg; } }
@keyframes markBootA { from { opacity: 0; translate: 0 -28px; scale: .84; } }
@keyframes markBootO { from { opacity: 0; } }

/* hover: o A sobe e o X desce — as interseções somem porque
   deixam de existir quando as duas formas se separam */
.logo--interactive:hover .mark__p--a { translate: 0 -4px; scale: 1.035; }
.logo--interactive:hover .mark__p--x { translate: 0 5px;  rotate: 4deg; }
.logo--interactive:hover .mark__p--o { opacity: 0; }

/* clique: as formas se recompõem com impacto e o cruzamento reacende */
.logo--interactive:active .mark__p {
  transition-duration: .16s;
  translate: 0 0;
  rotate: 0deg;
  scale: .95;
}
.logo--interactive:active .mark__p--o { opacity: 1; }

/* linha de varredura, recortada pela silhueta da marca */
.mark__scan { opacity: 0; }
.logo.is-scanning .mark__scan { animation: markScan 1.05s var(--ease-out); }
@keyframes markScan {
  0%   { translate: 0 -14px; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { translate: 0 100px; opacity: 0; }
}

/* variantes sem animação (ilustração do hero) */
.mark--static .mark__p { animation: none; transition: none; }

/* no rodapé escuro a hierarquia inverte: o A domina em branco/azul,
   o X recua e os cruzamentos acendem */
.logo--footer {
  --mk-a: url(#aproxGradLight);
  --mk-x: rgba(255, 255, 255, .40);
  --mk-o: rgba(255, 255, 255, .82);
}
.logo--footer .logo__text { color: var(--white); }
.logo--footer .logo__text span {
  background: linear-gradient(100deg, #FFFFFF 0%, var(--blue-soft) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo--footer .logo__mark::before {
  background: radial-gradient(circle, rgba(68,125,226,.55) 0%, rgba(68,125,226,0) 68%);
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-55);
  transition: color var(--t), background var(--t);
}
.nav__link:hover { color: var(--ink); background: var(--ink-05); }
.nav__link.is-active { color: var(--blue); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.header__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta { display: none; }

.nav-toggle {
  position: relative;
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--ink-12);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  transition: background var(--t), border-color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { border-color: var(--blue-16); color: var(--blue); }
.nav-toggle:active { background: var(--ink-05); }

/* Os dois ícones coexistem; a troca é só opacidade + rotação.
   Nada é removido do DOM, então o alvo do clique nunca vira órfão. */
.nav-toggle__ico {
  position: absolute;
  transition: opacity .18s var(--ease), rotate .3s var(--ease), scale .3s var(--ease);
}
.nav-toggle__ico--close { opacity: 0; rotate: -90deg; scale: .6; }
.nav-toggle[aria-expanded="true"] .nav-toggle__ico--menu  { opacity: 0; rotate: 90deg; scale: .6; }
.nav-toggle[aria-expanded="true"] .nav-toggle__ico--close { opacity: 1; rotate: 0deg; scale: 1; }

/* --------------------------------------------------------------
   5. AURORA / FUNDO
-------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.aurora__blob--1 {
  width: 640px; height: 640px;
  top: -260px; right: -180px;
  background: radial-gradient(circle, rgba(68,125,226,.42) 0%, rgba(47,99,224,0) 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora__blob--2 {
  width: 520px; height: 520px;
  bottom: -280px; left: -160px;
  background: radial-gradient(circle, rgba(44,70,152,.28) 0%, rgba(44,70,152,0) 70%);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}
.aurora__blob--3 {
  width: 760px; height: 760px;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(68,125,226,.24) 0%, rgba(47,99,224,0) 68%);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-40px, 40px, 0) scale(1.12); }
}

.aurora__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blue-06) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-06) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
}

/* --------------------------------------------------------------
   6. HERO
-------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 84px 0 104px;
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--white) 62%);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 64px;
  align-items: center;
}

.hero__title {
  margin: 22px 0 0;
  font-size: clamp(2.5rem, 5.2vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -.042em;
  line-height: 1.05;
}
.grad {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 24px;
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.72;
  color: var(--ink-55);
}

.hero__cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__stats {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
}
.hero__stats span { font-size: 13.5px; color: var(--ink-42); }

/* --------------------------------------------------------------
   7. ILUSTRAÇÃO (cena NFC)
-------------------------------------------------------------- */
.hero__visual { position: relative; }
.scene {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.scene__glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,99,224,.20) 0%, rgba(47,99,224,0) 68%);
  filter: blur(10px);
}

/* Ondas */
.waves {
  position: absolute;
  left: 38%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
}
.wave {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  opacity: 0;
  animation: pulse 3.6s var(--ease-out) infinite;
}
.wave:nth-child(2) { animation-delay: .9s; }
.wave:nth-child(3) { animation-delay: 1.8s; }
.wave:nth-child(4) { animation-delay: 2.7s; }
@keyframes pulse {
  0%   { transform: scale(.5); opacity: 0; }
  14%  { opacity: .55; }
  100% { transform: scale(3.1); opacity: 0; }
}

/* Placa NFC */
.plate {
  position: absolute;
  left: 2%;
  bottom: 16%;
  width: 210px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: 0 26px 60px rgba(44, 70, 152, .35);
  transform: rotate(-8deg);
  overflow: hidden;
  z-index: 3;
}
.plate__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.30) 50%, transparent 62%);
  transform: translateX(-100%);
  animation: shine 5s var(--ease-out) infinite;
}
@keyframes shine {
  0%, 62% { transform: translateX(-100%); }
  85%, 100% { transform: translateX(100%); }
}
/* marca d'água da logo, como numa placa real.
   A opacidade vai no grupo, não em cada camada — senão os
   cruzamentos entre X e A somariam alfa e apareceriam emendas. */
.plate__watermark {
  position: absolute;
  right: -20px;
  bottom: -16px;
  width: 126px;
  height: auto;
  pointer-events: none;
}
.plate__watermark g { fill: #FFFFFF; opacity: .14; }
.plate__icon {
  position: relative;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.26);
}
.plate__icon svg { width: 26px; height: 26px; }
.plate__body { margin-top: 26px; display: flex; flex-direction: column; gap: 3px; }
.plate__label { font-size: 12.5px; opacity: .82; }
.plate__brand {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.03em;
}

/* Smartphone */
.phone {
  position: absolute;
  right: 4%;
  top: 6%;
  width: 216px;
  aspect-ratio: 9 / 18.6;
  padding: 9px;
  border-radius: 34px;
  background: var(--grad-dark);
  box-shadow: 0 34px 70px rgba(21, 29, 47, .30), 0 0 0 1px rgba(21,29,47,.06);
  z-index: 4;
  transform: rotate(4deg);
}
.phone__notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.16);
  z-index: 2;
}
.phone__screen {
  height: 100%;
  border-radius: 26px;
  background: var(--white);
  overflow: hidden;
}

.card-digital {
  position: relative;
  height: 100%;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-digital__cover {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 84px;
  background: var(--grad-brand);
}
.card-digital__avatar {
  position: relative;
  margin-top: 56px;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 3px solid var(--white);
  box-shadow: var(--sh-sm);
}
.card-digital__avatar .mark { width: 29px; }
.skel { border-radius: 99px; background: var(--ink-08); }
.skel--title { margin-top: 12px; width: 96px; height: 9px; background: var(--ink-12); }
.skel--sub   { margin-top: 7px;  width: 70px; height: 7px; }
.skel--line  { margin-top: 9px;  width: 100%; height: 6px; }
.skel--line.short { width: 68%; }

.card-digital__chips { margin-top: 14px; display: flex; gap: 7px; }
.chip-mini {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: var(--blue-06);
  border: 1px solid var(--blue-10);
}
.card-digital__btn {
  margin-top: 16px;
  width: 100%;
  padding: 9px 0;
  border-radius: 10px;
  background: var(--grad-brand);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 6px 14px rgba(47,99,224,.28);
}

/* Tags flutuantes */
.tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  z-index: 5;
}
.tag .icon { color: var(--blue); }
.tag--1 { top: 2%;  left: 0; }
.tag--2 { bottom: 25%; right: -4%; }
.tag--3 { bottom: 4%; left: 26%; }
.tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 var(--blue-16);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(47,99,224,.45); }
  70%  { box-shadow: 0 0 0 10px rgba(47,99,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,99,224,0); }
}

/* Flutuação */
.float-a { animation: floatY 7s ease-in-out infinite; }
.float-b { animation: floatY 8.5s ease-in-out infinite reverse; }
.float-c { animation: floatY 6s ease-in-out infinite; }
.float-d { animation: floatY 7.5s ease-in-out infinite reverse; }
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* --------------------------------------------------------------
   8. SEÇÕES
-------------------------------------------------------------- */
.section { position: relative; padding: 104px 0; }
.section--tint { background: var(--surface-alt); border-block: 1px solid var(--line); }

.section__head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__title {
  margin-top: 18px;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  letter-spacing: -.036em;
}
.section__desc { margin-top: 16px; color: var(--ink-55); font-size: 16.5px; }

/* Produtos */
.grid-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card--product { padding: 32px 28px 30px; }
.card--product:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--blue-16);
}
.card__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--blue-06);
  color: var(--blue);
  transition: background var(--t), color var(--t), transform var(--t);
}
.card--product:hover .card__icon {
  background: var(--grad-brand);
  color: var(--white);
  transform: scale(1.06) rotate(-4deg);
}
.card--product h3 { margin-top: 22px; font-size: 19px; letter-spacing: -.026em; }
.card--product p { margin-top: 10px; font-size: 15px; color: var(--ink-55); line-height: 1.65; }

/* Passos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.step__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin-top: 14px; font-size: 18.5px; }
.step p { margin-top: 10px; font-size: 15px; color: var(--ink-55); }

/* --------------------------------------------------------------
   9. FORMULÁRIO
-------------------------------------------------------------- */
/* sem overflow:hidden aqui — quebraria o position:sticky do aside.
   Os blobs já são recortados pelo próprio .aurora. */
.section--form {
  background: linear-gradient(180deg, var(--white) 0%, var(--surface-alt) 100%);
}
.aurora--soft .aurora__blob { opacity: .38; }
.form-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.card--form {
  padding: 44px;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
}

.form-head { text-align: left; }
.form-title { margin-top: 16px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.036em; }
.form-desc { margin-top: 12px; color: var(--ink-55); font-size: 15.5px; }

/* Progresso */
.progress {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.progress__bar {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--ink-08);
  overflow: hidden;
}
.progress__bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--grad-brand);
  transition: width .5s var(--ease-out);
}
.progress__label { font-size: 12.5px; color: var(--ink-42); white-space: nowrap; }
.progress__label b { color: var(--blue); font-weight: 700; }

/* Grid do form */
.form { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.012em;
}
.req { color: var(--blue); }

/* Control */
.control {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--r);
  background: var(--white);
  border: 1.5px solid var(--ink-12);
  box-shadow: var(--sh-xs);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.control:hover { border-color: rgba(21,29,47,.20); }

.control__icon {
  position: absolute;
  left: 15px;
  color: var(--ink-42);
  pointer-events: none;
  transition: color var(--t), transform var(--t);
}

.control input,
.control select,
.control textarea {
  width: 100%;
  padding: 15px 44px 15px 46px;
  border: 0;
  background: transparent;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.control textarea {
  padding-top: 16px;
  resize: vertical;
  min-height: 118px;
  line-height: 1.6;
}
.control--area .control__icon { top: 17px; }

.control input::placeholder,
.control textarea::placeholder {
  color: var(--ink-42);
  font-weight: 400;
  transition: opacity var(--t), transform var(--t);
}
.control input:focus::placeholder,
.control textarea:focus::placeholder { opacity: .45; transform: translateX(3px); }

/* remove setas do number */
.control input[type=number]::-webkit-outer-spin-button,
.control input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.control input[type=number] { -moz-appearance: textfield; }

/* Select */
.control--select select { cursor: pointer; color: var(--ink); }
.control--select select.is-placeholder { color: var(--ink-42); font-weight: 400; }
.control__chevron {
  position: absolute;
  right: 15px;
  color: var(--ink-42);
  pointer-events: none;
  transition: transform var(--t), color var(--t);
}
.control--select:focus-within .control__chevron { transform: rotate(180deg); color: var(--blue); }

/* Foco */
.control:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-10), var(--sh-sm);
  background: var(--white);
}
.control:focus-within .control__icon { color: var(--blue); transform: scale(1.05); }

/* Estados de validação */
.control__state {
  position: absolute;
  right: 15px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity var(--t), transform var(--t);
  pointer-events: none;
}
.control__state--ok  { color: var(--blue); }
.control__state--err { color: var(--ink); }

.field.is-valid .control { border-color: var(--blue-soft); }
.field.is-valid .control__state--ok { opacity: 1; transform: scale(1); }
.field.is-valid .control__icon { color: var(--blue-soft); }

.field.is-invalid .control {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--ink-05);
  animation: shake .38s var(--ease);
}
.field.is-invalid .control__state--err { opacity: 1; transform: scale(1); }
.field.is-invalid .control__icon { color: var(--ink); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  22%  { transform: translateX(-5px); }
  46%  { transform: translateX(5px); }
  72%  { transform: translateX(-3px); }
}

/* Hints */
.hint {
  min-height: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 600;
  opacity: 0;
  max-height: 0;
  transform: translateY(-4px);
  transition: opacity var(--t), max-height var(--t), transform var(--t);
}
.field.is-invalid .hint { opacity: 1; max-height: 40px; transform: none; }
.hint:empty { display: none; }
.hint--info, .hint--counter {
  opacity: 1; max-height: none; transform: none;
  font-weight: 500;
  color: var(--ink-42);
}
.hint--counter { text-align: right; }

/* Escolhas de serviço */
.field--full { grid-column: 1 / -1; }
.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.choice { position: relative; cursor: pointer; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.choice__box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 15px;
  border-radius: var(--r);
  border: 1.5px solid var(--ink-12);
  background: var(--white);
  box-shadow: var(--sh-xs);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-70);
  letter-spacing: -.012em;
  transition: all var(--t);
}
.choice__box .icon { color: var(--ink-42); transition: color var(--t), transform var(--t); }
.choice:hover .choice__box { border-color: var(--blue-16); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.choice input:checked + .choice__box {
  border-color: var(--blue);
  background: var(--blue-06);
  color: var(--blue-deep);
  box-shadow: 0 0 0 3px var(--blue-10);
}
.choice input:checked + .choice__box .icon { color: var(--blue); transform: scale(1.1); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--blue); outline-offset: 2px; }

.field.is-invalid .choice__box { border-color: var(--ink-12); }
.field.is-invalid .choices { animation: shake .38s var(--ease); }

/* Colapso (quantidade) */
.collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .45s var(--ease-out), opacity .3s var(--ease), margin .45s var(--ease-out);
  margin-top: -20px;
}
.collapse__inner {
  overflow: hidden;
  min-height: 0;
  visibility: hidden;                    /* tira do tab order quando fechado */
  transition: visibility 0s linear .45s;
}
.collapse.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0;
}
.collapse.is-open .collapse__inner { visibility: visible; transition-delay: 0s; }

/* Botão de envio */
#submitBtn { margin-top: 8px; }
.spinner {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;          /* independente do transform da rotação */
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.2px solid rgba(255,255,255,.35);
  border-top-color: var(--white);
  opacity: 0;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#submitBtn.is-loading { pointer-events: none; }
#submitBtn.is-loading .btn__label,
#submitBtn.is-loading .btn__arrow { opacity: 0; }
#submitBtn.is-loading .spinner { opacity: 1; }
#submitBtn .btn__label, #submitBtn .btn__arrow { transition: opacity var(--t); }

.form-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-42);
  text-align: center;
}
.form-legal .icon { color: var(--blue-soft); }

/* Sucesso */
.success {
  padding: 26px 0 6px;
  text-align: center;
  animation: rise .55s var(--ease-out) both;
}
.success__icon {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--sh-blue);
  animation: pop .5s var(--ease-out) .1s both;
}
.success__icon .icon { width: 32px; height: 32px; stroke-width: 2.6; }
/* o ícone conta o estado: check só quando o pedido realmente foi gravado,
   glifo do WhatsApp quando ainda falta o visitante tocar em enviar */
.success__icon--ok { display: none; }
.success[data-modo="enviado"] .success__icon--ok { display: block; }
.success[data-modo="enviado"] .success__icon--wa { display: none; }
.success h3 { font-size: 26px; letter-spacing: -.032em; }
.success p { margin: 12px auto 0; max-width: 46ch; color: var(--ink-55); }
.success b { color: var(--ink); font-weight: 700; }
.success__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
@keyframes pop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------
   10. ASIDE
-------------------------------------------------------------- */
.form-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card--why { padding: 34px 30px; border-radius: var(--r-xl); }
.card__badge {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--blue-06);
  color: var(--blue);
}
.card__title { margin-top: 20px; font-size: 20px; letter-spacing: -.03em; }

.benefits { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.benefits li { display: flex; gap: 13px; align-items: flex-start; }
.benefits__tick {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: 0 3px 8px rgba(47,99,224,.28);
}
.benefits div { display: flex; flex-direction: column; }
.benefits strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.015em;
}
.benefits span { font-size: 13.5px; color: var(--ink-42); line-height: 1.55; }

.card--dark {
  padding: 30px;
  border-radius: var(--r-xl);
  background: var(--grad-dark);
  border-color: transparent;
  color: rgba(255,255,255,.68);
  box-shadow: var(--sh-lg);
}
.card--dark > .icon { color: var(--blue-soft); }
.card--dark h4 {
  margin-top: 16px;
  color: var(--white);
  font-size: 18.5px;
  letter-spacing: -.028em;
}
.card--dark p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; }
.card--dark .btn { margin-top: 22px; }

/* --------------------------------------------------------------
   11. RODAPÉ
-------------------------------------------------------------- */
.footer {
  padding: 64px 0 30px;
  background: var(--ink);
  color: rgba(255,255,255,.6);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer__tagline {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 15px;
  color: rgba(255,255,255,.55);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  transition: all var(--t);
}
.footer__links a:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--blue-soft);
  color: var(--white);
  transform: translateY(-2px);
}
.footer__links .icon { color: var(--blue-soft); }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.42);
}

/* FAB WhatsApp */
.fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--sh-blue);
  opacity: 0;
  transform: translateY(20px) scale(.8);
  pointer-events: none;
  transition: all .4s var(--ease-out);
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { transform: translateY(-4px) scale(1.06); box-shadow: var(--sh-blue-hi); }

/* --------------------------------------------------------------
   12. REVEAL ON SCROLL
-------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------
   13. RESPONSIVO
-------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .scene { max-width: 440px; }
  .hero__content { max-width: 720px; }
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header__inner { gap: 16px; }

  /* Aqui o .nav sai do fluxo, então o margin-left:auto dele deixa de
     empurrar qualquer coisa. Quem passa a alinhar o botão do menu à
     direita é o .header__actions. */
  .header__actions { margin-left: auto; }

  /* Painel ancorado no canto direito, saindo de baixo do botão.
     Absolute (não fixed) pra deixar explícito que o bloco de referência
     é o header — o backdrop-filter dele já criaria esse vínculo de
     qualquer jeito, mas por acidente, não por intenção. */
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 28px;
    left: auto;
    width: min(272px, calc(100vw - 40px));
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: var(--r-lg);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--sh-xl);
    opacity: 0;
    transform: translateY(-8px) scale(.96);
    transform-origin: top right;   /* cresce a partir do botão */
    pointer-events: none;
    transition: opacity var(--t), transform var(--t);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }

  .nav__link { padding: 12px 14px; font-size: 15.5px; border-radius: var(--r-sm); }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { background: var(--blue-06); }
  .nav__cta { display: flex; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .header__actions .btn--sm { display: none; }
}

@media (max-width: 760px) {
  .container { padding-inline: 20px; }
  .nav { right: 20px; }            /* acompanha o padding do container */
  .hero { padding: 60px 0 72px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .br-md { display: none; }

  .hero__stats { gap: 28px; margin-top: 40px; padding-top: 26px; }
  .hero__stats strong { font-size: 22px; }
  .hero__cta .btn { flex: 1 1 100%; }

  .grid-products, .steps { grid-template-columns: 1fr; }

  .card--form { padding: 28px 22px; border-radius: var(--r-lg); }
  .form-row { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr 1fr; }

  .card--why, .card--dark { padding: 26px 22px; border-radius: var(--r-lg); }

  .footer__inner { flex-direction: column; gap: 26px; }
  .footer__links { width: 100%; }
  .footer__links a { flex: 1 1 auto; justify-content: center; }
  .fab { right: 16px; bottom: 16px; }
}

@media (max-width: 460px) {
  .scene { max-width: 320px; }
  .phone { width: 150px; border-radius: 26px; }
  .plate { width: 152px; padding: 16px; }
  .plate__icon { width: 38px; height: 38px; }
  .plate__brand { font-size: 16px; }
  .tag { padding: 8px 12px; font-size: 11.5px; }
  .tag--2 { right: -2%; }
  .choices { grid-template-columns: 1fr; }
  .success__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------
   14. ACESSIBILIDADE / MOTION
-------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .fab, .aurora, .hero__visual { display: none; }
}
