/* =========================================================
   JudCapital — Design System
   Tipografia: Manrope (títulos) · Inter (texto) · DM Sans (UI)
   Paleta herdada da marca JudCapital (azul #1839E2 / navy #02176A).
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Cor — azuis da própria marca, não do layout de referência */
  --blue: #1839e2;
  --blue-dark: #0724b5;
  --navy: #02176a;
  --navy-deep: #010e42;
  --sky: #4f7bff;

  --paper: #ffffff;
  --paper-2: #f6f5fc;
  --paper-3: #f4f6ff;

  --ink: #131f4d;
  --ink-80: rgba(19, 31, 77, 0.8);
  --ink-60: rgba(19, 31, 77, 0.6);
  --ink-40: rgba(19, 31, 77, 0.42);

  --on-dark: #fbfbfe;
  --on-dark-80: rgba(255, 255, 255, 0.8);
  --on-dark-60: rgba(255, 255, 255, 0.6);

  --line: rgba(19, 31, 77, 0.12);
  --line-strong: rgba(19, 31, 77, 0.22);
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-dark-strong: rgba(255, 255, 255, 0.3);

  /* Forma — cantos mais macios que a referência (4/6/12) */
  --r-xs: 10px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 100px;

  /* Layout */
  --container: 1360px;
  --gutter: 32px;
  --nav-h: 72px;

  /* Ritmo vertical */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 56px;
  --sp-9: 80px;
  --sp-10: 112px;

  /* Tipografia */
  --font-head: "Manrope", system-ui, Arial, sans-serif;
  --font-body: "Inter", system-ui, Arial, sans-serif;
  --font-ui: "DM Sans", system-ui, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --sp-9: 56px;
    --sp-10: 72px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

p,
figure,
figcaption,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
}

::selection {
  background: var(--blue);
  color: #fff;
}

/* ---------- Escala tipográfica ---------- */
.h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.375rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  line-height: 1.24;
  letter-spacing: -0.018em;
}

.h5 {
  font-size: 1.4375rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.h6 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.55;
}

.small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.xsmall {
  font-size: 0.75rem;
  line-height: 1.45;
}

.muted {
  color: var(--ink-80);
}

.muted-dark {
  color: var(--on-dark-80);
}

/* ---------- Layout ---------- */
.pad-global {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-10);
}

.section--tight {
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
}

.section--navy {
  background: var(--navy);
  color: var(--on-dark);
}

.section--paper2 {
  background: var(--paper-2);
}

/* ---------- Tagline de seção ---------- */
.tagline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Régua curta no lugar do ícone quadrado */
.tagline .dot {
  width: 32px;
  height: 2px;
  flex: none;
  background: currentColor;
  border-radius: 2px;
}

.section--navy .tagline,
.hero .tagline {
  color: var(--on-dark-80);
}

/* Cabeçalho de seção em duas colunas (padrão Cubbo) */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--sp-7) var(--sp-9);
  align-items: start;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}

.section--navy .sec-head,
.cta-band .sec-head {
  border-top-color: var(--line-dark);
}

.sec-head__title {
  margin-top: var(--sp-4);
  max-width: 22ch;
}

.sec-head__aside {
  padding-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.sec-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

/* A faixa de CTA não usa régua superior (já tem contraste próprio) */
.cta-band__inner {
  padding-top: 0;
}

.sec-head--center .sec-head__title {
  max-width: 22ch;
}

@media (max-width: 900px) {
  .sec-head {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    align-items: start;
  }
  .sec-head__title {
    max-width: none;
  }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-dark);
}

.btn--light {
  background: var(--paper-3);
  color: #082066;
}

.btn--light:hover {
  background: #fff;
}

.btn--glass {
  background: rgba(255, 255, 255, 0.15);
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.26);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--lg {
  padding: 14px 24px;
}

/* Link com seta */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.2s var(--ease);
}

.link-arrow:hover {
  gap: 12px;
}

.section--navy .link-arrow,
.hero .link-arrow {
  color: var(--on-dark);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
}

/* =========================================================
   Navbar flutuante
   ========================================================= */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: var(--nav-h);
  padding: 0 12px 0 24px;
  border-radius: var(--r-lg);
  background: rgba(3, 28, 99, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--on-dark);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.nav {
  transition: top 0.3s var(--ease);
}

.nav.is-stuck,
.nav--solid {
  top: 0;
}

.nav.is-stuck .pad-global,
.nav--solid .pad-global {
  padding-left: 0;
  padding-right: 0;
}

.nav.is-stuck .container,
.nav--solid .container {
  max-width: none;
}

.nav.is-stuck .nav__inner,
.nav--solid .nav__inner {
  max-width: none;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-right: max(12px, calc((100vw - var(--container)) / 2 + 12px));
  border-radius: 0;
  border-color: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(2, 23, 106, 0.94);
  box-shadow: 0 10px 34px rgba(2, 23, 106, 0.22);
}

/* Sublinhado animado nos links */
.nav__links a {
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__brand img {
  height: 26px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
}

.nav__links a {
  color: var(--on-dark-80);
  transition: color 0.2s var(--ease);
}

.nav__links a:hover {
  color: #fff;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__actions .btn {
  padding: 7px 14px;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  position: relative;
  transition: background 0.2s var(--ease);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.25s var(--ease);
}

.nav__toggle span::before {
  top: -6px;
}

.nav__toggle span::after {
  top: 6px;
}

.nav.is-open .nav__toggle span {
  background: transparent;
}

.nav.is-open .nav__toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav__toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 991px) {
  .nav__toggle {
    display: flex;
  }
  .nav__links,
  .nav__actions {
    display: none;
  }
  .nav.is-open .nav__links,
  .nav.is-open .nav__actions {
    display: flex;
  }
  .nav.is-open .nav__inner {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 20px 20px 24px;
    gap: var(--sp-4);
    background: rgba(3, 28, 99, 0.96);
  }
  .nav.is-open .nav__brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav.is-open .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
    margin-left: 0;
    padding-top: var(--sp-2);
    border-top: 1px solid var(--line-dark);
    margin-top: var(--sp-2);
    font-size: 1.0625rem;
  }
  .nav.is-open .nav__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nav.is-open .nav__actions .btn {
    padding: 12px 18px;
  }
}

.nav__brand-row {
  display: contents;
}

@media (max-width: 991px) {
  .nav__brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: flex-end;
  background: var(--blue);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/bg_jud.jpg?v=34");
  background-size: cover;
  background-position: 72% center;
}

/* Brilho elíptico (padrão do hero da referência) */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      115% 100% at 2% 55%,
      rgba(7, 65, 221, 1) 0%,
      rgba(7, 65, 221, 0.99) 38%,
      rgba(7, 65, 221, 0.72) 54%,
      rgba(7, 65, 221, 0.24) 70%,
      rgba(7, 65, 221, 0) 84%
    ),
    radial-gradient(
      70% 60% at 0% 100%,
      rgba(56, 152, 236, 0.45) 0%,
      rgba(56, 152, 236, 0) 70%
    ),
    linear-gradient(
      100deg,
      rgba(3, 28, 99, 0.85) 0%,
      rgba(3, 28, 99, 0.45) 42%,
      rgba(3, 28, 99, 0) 66%
    );
}

.hero__inner {
  width: 100%;
  padding-top: calc(var(--nav-h) + 96px);
  padding-bottom: var(--sp-9);
}

.hero__head {
  max-width: 940px;
}

.hero__title {
  margin-top: var(--sp-5);
  max-width: 20ch;
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-7);
  align-items: end;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-dark);
}

.hero__copy {
  max-width: 56ch;
  color: var(--on-dark-80);
}

@media (max-width: 900px) {
  /* No mobile a foto vira uma faixa no topo e o texto fica sobre azul sólido. */
  .hero {
    min-height: 0;
    background: var(--blue);
  }
  .hero__bg {
    bottom: auto;
    height: 360px;
    background-position: 60% 20%;
  }
  .hero__glow {
    background: linear-gradient(
        180deg,
        rgba(3, 28, 99, 0.55) 0px,
        rgba(3, 28, 99, 0.05) 130px,
        rgba(7, 65, 221, 0.1) 200px,
        rgba(7, 65, 221, 0.86) 310px,
        var(--blue) 365px,
        var(--blue) 100%
      ),
      radial-gradient(
        120% 55% at 50% 100%,
        rgba(56, 152, 236, 0.28) 0%,
        rgba(56, 152, 236, 0) 72%
      );
  }
  .hero__inner {
    padding-top: 320px;
    padding-bottom: var(--sp-8);
  }
  /* No mobile a frase quebra sozinha; a quebra fixa fica só no desktop */
  .hero__title br {
    display: none;
  }
  .hero__bottom {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--sp-5);
  }
}

/* Pílula "JudBank agora é JudCapital" */
.rebrand-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: #fff;
}

.rebrand-pill b {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* =========================================================
   Marquee de mídia
   ========================================================= */
.marquee-band {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-5) 0;
}

.marquee-band__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-6);
}

.marquee-band__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  max-width: 9ch;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .marquee-band__row {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .marquee-band__label {
    max-width: none;
  }
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 86%, transparent 100%);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee__item {
  display: flex;
  align-items: center;
  height: 40px;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}

.marquee__item:hover {
  opacity: 1;
  filter: grayscale(0);
}

.marquee__item img {
  max-height: 26px;
  width: auto;
}

.marquee__item svg {
  height: 26px;
  width: auto;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}

/* Item único: sem desfile e sem máscara — apenas centralizado. */
.marquee.is-single {
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.marquee.is-single .marquee__track {
  width: 100%;
  justify-content: center;
  animation: none;
}

@media (max-width: 767px) {
  .marquee.is-single .marquee__track {
    justify-content: flex-start;
  }
}

/* =========================================================
   Bloco "produto": mídia grande + métricas + grade de features
   ========================================================= */
.showcase {
  position: relative;
  margin-top: var(--sp-8);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.showcase__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 100%;
}

.showcase__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(3, 28, 99, 0.1) 0%,
      rgba(3, 28, 99, 0.55) 55%,
      rgba(3, 28, 99, 0.92) 100%
    ),
    radial-gradient(
      90% 80% at 10% 90%,
      rgba(7, 65, 221, 0.85) 0%,
      rgba(7, 65, 221, 0) 70%
    );
}

.stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
}

.stat {
  background: rgba(3, 28, 99, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: var(--sp-6) var(--sp-5);
  color: var(--on-dark);
}

.stat__value {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.4vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
}

.stat__label {
  margin-top: var(--sp-2);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--on-dark-80);
  max-width: 22ch;
}

@media (max-width: 900px) {
  /* A foto vira uma faixa no topo; os números ocupam o restante do card. */
  .showcase {
    min-height: 340px;
    padding-top: 200px;
  }
  .showcase__img {
    height: 240px;
    bottom: auto;
    object-position: 60% 30%;
  }
  .showcase__veil {
    background: linear-gradient(
      180deg,
      rgba(3, 28, 99, 0.15) 0px,
      rgba(3, 28, 99, 0.5) 140px,
      rgba(3, 28, 99, 0.95) 220px,
      var(--navy) 250px,
      var(--navy) 100%
    );
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* Grade de features: cada item tem régua própria e numeração */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-9);
}

.feature {
  padding-top: var(--sp-5);
  border-top: 2px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.feature:hover {
  border-top-color: var(--blue);
}

.feature__num {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-40);
  margin-bottom: var(--sp-5);
}

.icon-chip {
  width: 46px;
  height: 46px;
  border-radius: var(--r-xs);
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-chip img {
  width: 23px;
  height: auto;
}

.icon-chip--ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--blue);
}

.section--navy .icon-chip--ghost {
  border-color: var(--line-dark-strong);
  color: #fff;
}

.feature__title {
  margin-top: var(--sp-5);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.feature__desc {
  margin-top: var(--sp-3);
  color: var(--ink-80);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-7) var(--sp-6);
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

/* =========================================================
   Como funciona — abas com autoplay (padrão "how" da referência)
   ========================================================= */
.how {
  overflow: hidden;
}

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-7);
  align-items: start;
}

.how__menu {
  display: flex;
  flex-direction: column;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--line-dark);
  text-align: left;
  width: 100%;
  opacity: 0.55;
  transition: opacity 0.35s var(--ease);
}

.step:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.step.is-active {
  opacity: 1;
}

.step__num {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-dark-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.step.is-active .step__num {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.step__title {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.28;
  padding-top: 6px;
}

.step__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.step.is-active .step__body {
  grid-template-rows: 1fr;
}

.step__body > * {
  overflow: hidden;
}

.step__desc {
  display: block;
  padding-top: var(--sp-3);
  color: var(--on-dark-80);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.step__note {
  display: block;
  margin-top: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--on-dark-60);
}

/* Barra de progresso do autoplay */
.step__progress {
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: #fff;
}

.step.is-active .step__progress {
  animation: stepbar var(--step-duration, 7s) linear forwards;
}

@keyframes stepbar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.how.is-paused .step.is-active .step__progress {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .step.is-active .step__progress {
    animation: none;
    width: 100%;
  }
}

/* Painel */
.how__panels {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  min-height: 440px;
}

.panel {
  position: absolute;
  inset: 0;
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease),
    visibility 0.45s;
}

.panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.panel__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    85% 75% at 20% 15%,
    rgba(7, 65, 221, 0.75) 0%,
    rgba(7, 65, 221, 0) 70%
  );
}

.panel__content {
  position: relative;
  z-index: 1;
}

.panel__kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-60);
}

.panel__headline {
  margin-top: var(--sp-3);
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 2.2vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.24;
  max-width: 18ch;
}

.panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

.chip {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark-strong);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--on-dark-80);
}

/* Controles */
.how__controls {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-dark);
}

.how__counter {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-dark-60);
}

.how__counter #stepCurrent {
  color: #fff;
}

.how__counter-sep {
  padding: 0 6px;
  opacity: 0.5;
}

.how__buttons {
  display: flex;
  gap: var(--sp-2);
}

.ctrl {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.ctrl:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* Variante retangular, no lugar dos círculos da referência */
.ctrl--box {
  width: 44px;
  height: 36px;
  border-radius: var(--r-sm);
}

.ctrl--box:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

@media (max-width: 900px) {
  .how__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .how__panels {
    min-height: 300px;
    order: -1;
  }
  .panel {
    padding: var(--sp-6);
  }
}

/* =========================================================
   Quem somos
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: center;
  margin-top: var(--sp-7);
}

.about__text > p + p {
  margin-top: var(--sp-4);
}

.about__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 4;
}

/* Mesmo tratamento da grade de features: régua própria em vez de fios entre colunas */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-9);
}

.pillar {
  padding-top: var(--sp-5);
  border-top: 2px solid var(--line-dark);
  transition: border-color 0.3s var(--ease);
}

.pillar:hover {
  border-top-color: rgba(255, 255, 255, 0.65);
}

.pillar__title {
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: var(--sp-5);
}

.pillar__desc {
  margin-top: var(--sp-3);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--on-dark-80);
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Depoimentos
   ========================================================= */
.quotes {
  /* Largura das bordas em fade; o JS liga/desliga cada lado conforme a rolagem */
  --fade-left: 0px;
  --fade-right: 0px;

  margin-top: var(--sp-7);
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  /* "proximity", não "mandatory": com vários cards visíveis, o snap obrigatório
     puxava a rolagem de volta ao início e travava a troca automática. */
  scroll-snap-type: x proximity;
  padding-bottom: var(--sp-4);
  scrollbar-width: none;

  /* O card cortado dissolve no fundo em vez de terminar num corte seco */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--fade-left),
    #000 calc(100% - var(--fade-right)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--fade-left),
    #000 calc(100% - var(--fade-right)),
    transparent 100%
  );
  transition: -webkit-mask-image 0.3s var(--ease), mask-image 0.3s var(--ease);
}

.quotes::-webkit-scrollbar {
  display: none;
}

.quote {
  flex: 0 0 min(420px, 82vw);
  scroll-snap-align: start;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote__mark {
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 2.5rem;
  line-height: 1;
}

.quote__text {
  margin-top: var(--sp-4);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
}

.quote__author {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-60);
}

.quote__author b {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--ink);
}

.quotes-nav {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.quotes-nav .ctrl {
  border-color: var(--line-strong);
  color: var(--ink);
}

.quotes-nav .ctrl:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  margin-top: var(--sp-7);
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.faq__q:hover {
  color: var(--blue);
}

.faq__icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.is-open .faq__icon {
  background: var(--blue);
  border-color: var(--blue);
}

.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after {
  background: #fff;
}

.faq__item.is-open .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  max-width: 76ch;
  padding-bottom: var(--sp-6);
  color: var(--ink-80);
  line-height: 1.6;
}

/* =========================================================
   Faixa de CTA
   ========================================================= */
.cta-band {
  position: relative;
  background: var(--blue);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.cta-band__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      70% 120% at 85% 0%,
      rgba(56, 152, 236, 0.6) 0%,
      rgba(56, 152, 236, 0) 65%
    ),
    radial-gradient(
      60% 100% at 5% 100%,
      rgba(3, 28, 99, 0.7) 0%,
      rgba(3, 28, 99, 0) 70%
    );
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-7);
  align-items: end;
}

.cta-band__title {
  margin-top: var(--sp-5);
  max-width: 18ch;
}

.cta-band__copy {
  margin-top: var(--sp-4);
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* =========================================================
   Rodapé
   ========================================================= */
.footer {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-6);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-7);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--line-dark);
}

.footer__brand img {
  height: 26px;
  width: auto;
}

.footer__brand p {
  margin-top: var(--sp-4);
  max-width: 38ch;
  font-size: 0.9375rem;
  color: var(--on-dark-60);
  line-height: 1.55;
}

.footer__col h4 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-60);
}

.footer__col ul {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}

.footer__col a {
  font-size: 0.9375rem;
  color: var(--on-dark-80);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

.footer__contact {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-4);
}

.footer__contact .label {
  font-size: 0.75rem;
  color: var(--on-dark-60);
}

.footer__contact .value {
  display: block;
  margin-top: 2px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
}

/* Selo OAB: sozinho na coluna, alinhado ao topo das demais */
.footer__seal {
  display: inline-flex;
  align-items: center;
  margin-top: var(--sp-4);
}

.footer__seal img {
  width: 180px;
  height: auto;
}

.socials {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.social {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.social:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-7);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
  font-size: 0.75rem;
  color: var(--on-dark-60);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

.footer__legal a:hover {
  color: #fff;
}

.footer__address {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  max-width: 60ch;
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-7) var(--sp-6);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Revelação ao rolar
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Foco acessível */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #fff;
  color: var(--navy);
  padding: 12px 18px;
  border-radius: var(--r-sm);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}


/* =========================================================
   Páginas institucionais (termos, políticas, canal de ética)
   ========================================================= */
.legal {
  /* O header é fixo e sólido desde o topo nestas páginas */
  padding-top: calc(var(--nav-h) + var(--sp-9));
  padding-bottom: var(--sp-10);
}

.legal__head {
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--line);
}

.legal__title {
  margin-top: var(--sp-4);
  max-width: 20ch;
}

.legal__meta {
  margin-top: var(--sp-4);
  font-size: 0.875rem;
  color: var(--ink-60);
}

.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: var(--sp-9);
  margin-top: var(--sp-8);
  align-items: start;
}

/* Sumário */
.legal__toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-5));
}

.legal__toc-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.legal__toc ul {
  display: grid;
  gap: 2px;
  margin-top: var(--sp-4);
}

.legal__toc a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-60);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.legal__toc a:hover {
  background: var(--paper-2);
  color: var(--blue);
}

/* Corpo do texto */
.legal__body {
  max-width: 72ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-80);
}

.legal__body h2 {
  margin-top: var(--sp-9);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  /* Compensa o header fixo ao pular pelo sumário */
  scroll-margin-top: calc(var(--nav-h) + var(--sp-6));
}

.legal__body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal__body h3 {
  margin-top: var(--sp-7);
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--ink);
}

.legal__body p {
  margin-top: var(--sp-4);
}

.legal__body ul,
.legal__body ol {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}

.legal__body li {
  position: relative;
  padding-left: var(--sp-5);
}

.legal__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue);
}

.legal__body ol {
  counter-reset: legal-item;
}

.legal__body ol > li {
  padding-left: var(--sp-6);
  counter-increment: legal-item;
}

.legal__body ol > li::before {
  content: counter(legal-item) ".";
  background: none;
  width: auto;
  height: auto;
  top: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--blue);
}

.legal__body strong {
  font-weight: 600;
  color: var(--ink);
}

.legal__body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.legal__body a:hover {
  color: var(--blue-dark);
}

/* Tabelas (política de privacidade) */
.legal__body table {
  width: 100%;
  margin-top: var(--sp-5);
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.legal__body th,
.legal__body td {
  padding: var(--sp-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal__body th {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

@media (max-width: 1000px) {
  .legal__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
  .legal__toc {
    position: static;
    padding: var(--sp-5) var(--sp-6);
    border-radius: var(--r-lg);
    background: var(--paper-2);
  }
  .legal__toc-label {
    border-bottom: 0;
    padding-bottom: var(--sp-3);
  }
  .legal__toc ul {
    margin-top: 0;
  }
  .legal__toc a {
    padding-left: 0;
  }
  .legal__toc a:hover {
    background: transparent;
  }
  .legal__body {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .legal {
    padding-top: calc(var(--nav-h) + var(--sp-7));
  }
  /* Tabela larga rola dentro do próprio bloco */
  .legal__body table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }
}
