/* =========================================
   XP Investimentos — Rebranding
   Design System + Global Styles
   ========================================= */

/* --- TOKENS --- */
:root {
  --yellow:    #F5C842;
  --black:     #111111;
  --black-deep:#0A0A0A;
  --dark:      #1A1A1A;
  --white:     #FFFFFF;
  --off-white: #F0F0FF;
  --gray-1:    #888888;
  --gray-2:    #444444;
  --gray-3:    #CCCCCC;
  --gray-4:    #222222;
  --gray-bg:   #FAFAFA;

  --font-display: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif;
  --font-body:    'Inter', 'Inter Fallback', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --nav-h: 68px;
  --px: 80px;
}

/* ── Fallback fonts com size-adjust para reduzir CLS (font swap) ── */
@font-face {
  font-family: 'Space Grotesk Fallback';
  font-style: normal;
  font-weight: 400 800;
  src: local('Arial');
  size-adjust: 106%;
  ascent-override: 92%;
  descent-override: normal;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  font-style: normal;
  font-weight: 400 600;
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: normal;
  line-gap-override: 0%;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; }
.br-mobile { display: none; } /* só visível no mobile via media query */

/* ── Scroll progress bar ── */
#xp-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--yellow);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9997;
  pointer-events: none;
}

/* ── Custom cursor (desativado) ── */
#xp-cursor, #xp-cursor-dot { display: none; }

/* ── Marquee band ── */
.marquee {
  overflow: hidden;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 14px 0;
  user-select: none;
}
.marquee__track {
  display: flex;
  gap: 28px;
  width: max-content;
  will-change: transform;
}
.marquee__item {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
.marquee__sep {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--yellow);
  opacity: 0.6;
}

/* ── Performance: content-visibility para seções abaixo do fold ── */
#grid, #planos, #institucional, #faq, #cta, #footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* ── Text split helpers ── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.word {
  display: inline-block;
  will-change: transform;
}
.char {
  display: inline-block;
  will-change: transform;
}

/* --- UTILITY --- */
.text-yellow { color: var(--yellow); }

.label-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.label-mono--yellow { color: var(--yellow); }
.label-mono--gold   { color: #C9962A; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.section-title--center { text-align: center; }

.section-subtitle {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-1);
  text-align: center;
  max-width: 480px;
}

.link-underline {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1.5px solid var(--yellow);
  padding-bottom: 2px;
  display: inline;
}
.link-underline--subtle {
  color: var(--gray-1);
  border-bottom-color: var(--gray-2);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 9999px;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--yellow);
  color: var(--black);
  font-size: 15px;
  padding: 14px 32px;
}
.btn--sm { font-size: 13px; padding: 9px 20px; }
.btn--lg { font-size: 16px; padding: 16px 40px; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  font-size: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-2);
  border-radius: 0;
  font-weight: 500;
}
.btn--ghost:hover { border-color: var(--white); opacity: 1; }

/* --- GLASS --- */
.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* =========================================
   S01 NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  backdrop-filter: none;
  opacity: 0; /* GSAP revela após preloader */
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* Scrolled state — warm off-white, elegant */
.nav--scrolled {
  background: rgba(251, 250, 248, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 28px rgba(0,0,0,0.04);
}

/* Scrolled — links e logo escurecem */
.nav--scrolled .nav__links a { color: rgba(17,17,17,0.72); }
.nav--scrolled .nav__links a:hover { color: var(--black); }
.nav--scrolled .nav__logo-img { filter: brightness(0); }

/* Hamburger — dark on scroll */
.nav--scrolled .nav__hamburger span { background: var(--black); }

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}
.nav__logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
  transition: filter 0.4s ease;
}

/* Links centralizados */
.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 1;
}
.nav__links a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-3);
  padding: 6px 10px;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* Underline amarelo no hover */
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__links a:hover { color: var(--white); }
.nav--scrolled .nav__links a:hover { color: var(--black); }

.nav__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}
.nav__link-secondary {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-3);
  padding: 6px 10px;
  transition: color 0.4s ease;
}
.nav__link-secondary:hover { color: var(--white); }

.nav__mobile { display: none; align-items: center; gap: 12px; }
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: width 0.2s, background 0.4s ease;
}
.nav__hamburger span:nth-child(1) { width: 20px; }
.nav__hamburger span:nth-child(2) { width: 14px; }
.nav__hamburger span:nth-child(3) { width: 20px; }

.nav__drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--black);
  border-top: 1px solid var(--dark);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 99;
}
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 98;
}
.nav__overlay.is-visible { display: block; }
.nav__drawer.is-open { display: flex; }
.nav__drawer a {
  font-size: 16px;
  color: var(--gray-3);
  padding: 14px 0;
  border-bottom: 1px solid var(--dark);
}
.nav__drawer a.btn { margin-top: 16px; border-bottom: none; }
.nav__drawer a.btn--primary { color: #111111; padding: 14px 32px; }

/* =========================================
   S02 HERO
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
/* Gradient veil over video for text legibility */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.20) 55%, transparent 100%),
    linear-gradient(to top,    rgba(0,0,0,0.55) 0%, transparent 45%);
  pointer-events: none;
}
.hero__bg-img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 45% center;
  pointer-events: none;
}
.hero__bg-gradient {
  display: none;
  background: linear-gradient(
    to right,
    rgba(3,3,10,0.96) 0%,
    rgba(3,3,10,0.88) 35%,
    rgba(3,3,10,0.45) 60%,
    rgba(3,3,10,0.08) 100%
  );
}
.hero__bg-vignette { display: none; }

.hero__watermark {
  position: absolute;
  top: calc(var(--nav-h) + 32px);
  left: var(--px);
  font-family: var(--font-mono);
  font-size: 200px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #1A1A1A;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  margin-left: var(--px);
  max-width: 520px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
.hero__headline {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.hero__headline--white {
  font-family: var(--font-display);
  font-size: clamp(52px, 6.0vw, 85px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--white);
}
.hero__headline--yellow {
  font-family: var(--font-display);
  font-size: clamp(54px, 6.2vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--yellow);
}
.hero__divider {
  width: 48px; height: 2px;
  background: var(--yellow);
  margin: 28px 0;
}
.hero__subhead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--gray-1);
  margin-bottom: 36px;
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__info-cards {
  position: absolute;
  bottom: 48px;
  right: var(--px);
  z-index: 2;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-end;
}


.hero__info-card {
  width: 178px;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(10,10,10,0.55);
  border-top: 2px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__info-card--highlight {
  border-top-color: var(--yellow);
}

.hero__info-card__metric {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2px;
}

.hero__info-card__label {
  color: rgba(255,255,255,0.45);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.hero__info-card__text {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
  margin-top: 4px;
}

.hero__info-card__link {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  margin-top: 6px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
}
.hero__info-card__link:hover { color: var(--yellow); }

/* =========================================
   S03 PRODUTOS
   ========================================= */
.produtos {
  background: var(--black);
  padding: 120px var(--px) 0;
}

.produtos__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}
.produtos__header .section-title { color: var(--white); }

.produtos__featured {
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: #1A1A1A;
  overflow: hidden;
}

.produtos__featured-text {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.produtos__featured-text h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.15;
}
.produtos__featured-text p {
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.6;
  max-width: 360px;
}

.produtos__featured-visual {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--black);
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.produtos__featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================================
   S04 PRODUCTS GRID — Bento Editorial
   ========================================= */
.grid-section {
  background: var(--black);
  padding: 0 var(--px) 120px;
}

.grid-section__bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 460px 380px;
  gap: 10px;
}

/* ── Base card ── */
.pcard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 44px;
  transition: transform 0.4s cubic-bezier(0.2,0,0,1);
}
.pcard:hover { transform: translateY(-3px); }
.pcard:hover .pcard__bg-img { transform: scale(1.04); }

.pcard__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.2,0,0,1);
  z-index: 0;
}

.pcard__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pcard__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}
.pcard__main { margin: auto 0; }
.pcard__tag {
  font-size: 9px;
  letter-spacing: 0.16em;
}
.pcard__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 16px;
}
.pcard__desc {
  font-size: 14px;
  line-height: 1.6;
  max-width: 380px;
}
.pcard__cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.pcard__cta:hover { gap: 10px; }

/* ── Card 1: App — col 1-2, row 1 ── */
.pcard--app {
  grid-column: 1 / 3;
  grid-row: 1;
  background: #0e0e0e;
}
.pcard--app .pcard__overlay {
  background: linear-gradient(105deg, rgba(4,4,4,0.97) 0%, rgba(4,4,4,0.75) 45%, rgba(4,4,4,0.25) 100%);
}
.pcard--app .pcard__tag { color: rgba(255,255,255,0.4); }
.pcard--app .pcard__title {
  font-size: clamp(52px, 5.5vw, 76px);
  color: var(--white);
}
.pcard--app .pcard__desc { color: rgba(255,255,255,0.55); }
.pcard--app .pcard__cta { color: var(--yellow); }

.pcard__rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.pcard__rating-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.04em;
  line-height: 1;
}
.pcard__rating-label {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
}

/* ── Card 2: Wealth — col 3, rows 1-2 ── */
.pcard--wealth {
  grid-column: 3;
  grid-row: 1 / 3;
  background: #111;
  padding: 44px 44px 48px;
}
.pcard--wealth .pcard__overlay {
  background: linear-gradient(to top, rgba(3,3,3,0.98) 0%, rgba(3,3,3,0.72) 45%, rgba(3,3,3,0.2) 100%);
}
.pcard--wealth .pcard__tag { color: rgba(255,255,255,0.4); }
.pcard--wealth .pcard__title {
  font-size: clamp(48px, 4.4vw, 62px);
  color: var(--white);
}
.pcard--wealth .pcard__desc { color: rgba(255,255,255,0.55); }
.pcard--wealth .pcard__top { margin-top: auto; margin-bottom: 12px; }
.pcard--wealth .pcard__main { margin: 0; }
.pcard--wealth { padding-bottom: 28px; }
.pcard--wealth .pcard__cta { color: var(--white); border-bottom: 1.5px solid rgba(255,255,255,0.25); padding-bottom: 2px; padding-top: 32px; }
.pcard--wealth .pcard__cta:hover { border-bottom-color: var(--white); }

/* ── Card 3: Empresas — col 1, row 2 ── */
.pcard--empresas {
  grid-column: 1;
  grid-row: 2;
  background: #0a0a0a;
}
.pcard--empresas .pcard__overlay {
  background: linear-gradient(105deg, rgba(3,3,3,0.97) 0%, rgba(3,3,3,0.75) 50%, rgba(3,3,3,0.25) 100%);
}
.pcard--empresas .pcard__tag { color: var(--yellow); }
.pcard--empresas .pcard__title {
  font-size: clamp(42px, 3.8vw, 56px);
  color: var(--white);
}
.pcard--empresas .pcard__desc { color: rgba(255,255,255,0.5); }
.pcard--empresas .pcard__cta.pcard__cta--invert {
  display: inline-flex;
  align-items: center;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 20px;
  font-size: 11px;
  margin-top: auto;
  width: fit-content;
  border-radius: 9999px;
}
.pcard--empresas .pcard__cta--invert:hover { gap: 10px; opacity: 0.9; }

/* ── Card 4: Simulador — col 2, row 2 ── */
.pcard--simulador {
  grid-column: 2;
  grid-row: 2;
  background: #111;
}
.pcard--simulador .pcard__overlay {
  background: linear-gradient(105deg, rgba(4,4,4,0.97) 0%, rgba(4,4,4,0.72) 50%, rgba(4,4,4,0.22) 100%);
}
.pcard--simulador .pcard__tag { color: rgba(255,255,255,0.35); }
.pcard--simulador .pcard__title {
  font-size: clamp(30px, 2.8vw, 38px);
  color: var(--white);
}
.pcard--simulador .pcard__desc { color: rgba(255,255,255,0.5); font-size: 13px; }
.pcard--simulador .pcard__cta { color: var(--yellow); }

/* =========================================
   S05 PLANOS — Depth Carousel
   ========================================= */
.planos {
  background: var(--white);
  padding: 120px var(--px);
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
  border-top: 1px solid #E8E8E8;
}

.planos__left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.planos__left h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
}
.planos__left .label-mono { color: var(--gray-3); }
.planos__divider { width: 48px; height: 3px; background: var(--yellow); }
.planos__left p { font-size: 15px; line-height: 1.65; color: var(--gray-1); }

.planos__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.planos__contact p { font-size: 13px; font-weight: 500; color: var(--black); }

.planos__phone-box {
  padding: 20px;
  background: #F8F8F8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.planos__phone-box p { font-size: 13px; color: var(--gray-2); line-height: 1.5; }
.planos__phone-box strong { font-size: 13px; font-weight: 700; color: var(--black); }

/* Carousel */
.planos__carousel-wrapper {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.planos__carousel {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 520px;
  overflow: visible;
}

/* Plan cards — rendered by JS */
.plan-card {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 420px;
  min-height: 460px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #EAEAEA;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(-50%);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease, filter 0.7s ease;
  will-change: transform, opacity;
}
.plan-card--active {
  border-left: 4px solid var(--yellow);
  box-shadow: 0 32px 72px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
  z-index: 3;
}
.plan-card--prev,
.plan-card--next { background: #F6F6F6; border-color: #E4E4E4; z-index: 2; }
.plan-card--far-prev,
.plan-card--far-next { background: #F3F3F3; border-color: #E8E8E8; z-index: 1; }
.plan-card--hidden { z-index: 0; }

.plan-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.plan-card__left { display: flex; flex-direction: column; gap: 4px; }
.plan-card__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #BBBBBB;
}
.plan-card__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--black);
  line-height: 1;
}
.plan-card__range-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.plan-card__range-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #AAAAAA;
}
.plan-card__range {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #333333;
}
.plan-card__badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--black);
  padding: 3px 8px;
  margin-left: 10px;
}

.plan-card__divider { width: 100%; height: 1px; background: #F0F0F0; margin-bottom: 16px; }

.plan-card__headline {
  font-size: 13px;
  color: var(--gray-2);
  line-height: 1.5;
  margin-bottom: 16px;
}

.plan-card__benefits { display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-card__benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #444444;
  line-height: 1.4;
}
.plan-card--active .plan-card__dot { background: var(--yellow); }
.plan-card--prev .plan-card__dot,
.plan-card--next .plan-card__dot { background: #CCCCCC; }
.plan-card__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: #CCCCCC; }

.plan-card__footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #F0F0F0;
}
.plan-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  border-bottom: 1.5px solid var(--yellow);
  padding-bottom: 2px;
  display: inline;
}
.plan-card--prev .plan-card__cta,
.plan-card--next .plan-card__cta { color: #888888; border-bottom-color: transparent; }

/* Arrows */
.carousel__arrow {
  position: absolute;
  width: 44px; height: 44px;
  background: var(--white);
  border: 1px solid #E8E8E8;
  border-radius: 9999px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  top: 196px;
  transition: box-shadow 0.2s, transform 0.15s;
  color: var(--black);
}
.carousel__arrow:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  transform: scale(1.05);
}
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }

/* Dots */
.carousel__dots {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: #DDDDDD;
  border: none;
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.carousel__dot--active { width: 28px; height: 8px; background: var(--yellow); border-radius: 9999px; }

/* =========================================
   S06 INSTITUCIONAL
   ========================================= */
.institucional {
  background: var(--black);
  padding: 120px var(--px) 120px;
}

.institucional__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  gap: 48px;
}
.institucional__header-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}
.institucional__header-left h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--white);
}
.institucional__header-right {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-1);
  align-self: flex-end;
}

/* Stats */
.institucional__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #222222;
  border-bottom: 1px solid #222222;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px 0;
  border-right: 1px solid #222222;
  padding-right: 32px;
}
.stat-item:last-child { border-right: none; }
.stat-item + .stat-item { padding-left: 32px; }

.stat-item__number {
  font-family: var(--font-mono);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}
.stat-item--yellow .stat-item__number { color: var(--yellow); }
.stat-item__label { font-size: 13px; color: var(--gray-1); line-height: 1.4; }

/* Pillars */
.institucional__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 72px 0 96px;
  gap: 0;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 56px;
  border-right: 1px solid #222222;
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar + .pillar { padding-left: 56px; }

.pillar__accent { width: 40px; height: 3px; background: var(--yellow); }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.2;
}
.pillar p { font-size: 14px; line-height: 1.65; color: var(--gray-1); flex: 1; }
/* Contraste mínimo 4.5:1 (WCAG AA) sobre fundo escuro */
.pillar .label-mono { color: var(--gray-1); margin-top: 8px; }

/* =========================================
   S07 CTA + FOOTER
   ========================================= */
.cta-section {
  background: var(--black-deep);
  padding: 120px var(--px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  border-bottom: 1px solid #1A1A1A;
}
.cta-section__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}
.cta-section__content h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
}
.cta-section__content p { font-size: 15px; color: var(--gray-1); line-height: 1.6; max-width: 440px; }

.cta-section__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* Footer */
.footer {
  background: var(--black-deep);
  padding: 56px var(--px) 0;
}
.footer__top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 48px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 240px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__logo .nav__logo-box { width: 32px; height: 32px; font-size: 12px; }
.footer__brand p { font-size: 12px; color: var(--gray-2); line-height: 1.6; }
.footer__links { display: flex; gap: 72px; }
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col .label-mono { margin-bottom: 4px; }
.footer__col a {
  font-size: 13px;
  color: var(--gray-1);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #1A1A1A;
  padding: 28px 0 32px;
}
.footer__legal { max-width: 640px; }
.footer__legal p { font-size: 11px; color: var(--gray-2); line-height: 1.5; }
.footer__legal p + p { margin-top: 4px; color: var(--gray-2); }
.footer__legal-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer__legal-links a { font-size: 11px; color: var(--gray-2); }
.footer__legal-links .label-mono { color: var(--gray-2); }

/* =========================================
   S08 FAQ
   ========================================= */
.faq {
  background: var(--gray-bg);
  padding: 120px var(--px);
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}
.faq__left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.faq__left h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
}
.faq__left .label-mono { color: var(--gray-3); }
.faq__left p { font-size: 15px; line-height: 1.65; color: var(--gray-1); }
.faq__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__contact p { font-size: 13px; color: var(--gray-1); }
.faq__contact .label-mono { color: #AAAAAA; }

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

.faq-item {
  border-top: 1px solid #E4E4E4;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:last-child { border-bottom: 1px solid #E4E4E4; }
.faq-item.is-open { border-left: 3px solid var(--yellow); background: var(--white); }

.faq-item__trigger {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  cursor: pointer;
  background: var(--gray-bg);
  transition: background 0.2s;
}
.faq-item.is-open .faq-item__trigger { background: var(--white); }
.faq-item__trigger:hover { background: var(--white); }

.faq-item__trigger-left {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.faq-item__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #CCCCCC;
  flex-shrink: 0;
  transition: color 0.2s;
}
.faq-item.is-open .faq-item__num { color: var(--yellow); }
.faq-item__question {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  line-height: 1.3;
  transition: color 0.2s, font-weight 0.2s;
}
.faq-item.is-open .faq-item__question { color: var(--black); font-weight: 600; }

.faq-item__icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border: 1px solid #E0E0E0;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--gray-1);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.faq-item.is-open .faq-item__icon { background: var(--gray-bg); color: var(--black); }

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.is-open .faq-item__body { max-height: 500px; }
.faq-item__answer {
  padding: 0 28px 24px calc(28px + 16px + 16px);
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
  max-width: 600px;
}

/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */
@media (max-width: 900px) {
  :root { --px: 24px; }

  /* Nav — mobile: esconde links e actions do desktop, mostra hamburguer */
  .nav__links,
  .nav__actions { display: none; }
  .nav__mobile { display: flex; }

  /* Hero */
  .hero__watermark { display: none; }
  .hero { align-items: flex-end; height: 100svh; min-height: 680px; max-height: 900px; padding-bottom: 0; }
  .hero__content {
    margin: 0;
    max-width: 100%;
    padding: 0 24px 40px;
  }
  .br-mobile { display: block; }
  .hero__headline--white,
  .hero__headline--yellow {
    font-size: clamp(42px, 13vw, 64px);
    white-space: normal;
  }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__ctas .btn--ghost { text-align: center; padding: 12px 0; }
  .hero__info-cards { display: none; }

  /* Produtos */
  .produtos { padding: 64px 24px 0; }
  .produtos__featured { grid-template-columns: 1fr; }
  .produtos__featured-text { padding: 32px 24px 28px; }
  .produtos__featured-visual { min-height: 200px; }

  /* Grid */
  .grid-section { padding: 0 0 48px; }
  .grid-section__bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 8px;
  }
  .pcard--app, .pcard--wealth, .pcard--empresas, .pcard--simulador {
    grid-column: 1;
    grid-row: auto;
    min-height: 320px;
    padding: 32px 28px;
  }
  .pcard--app .pcard__deco { width: 160px; }
  .pcard__deco-num { font-size: 80px; }
  .pcard__deco-text { font-size: 80px; }
  .pcard--app .pcard__title { font-size: 48px; }
  .pcard--wealth .pcard__title { font-size: 44px; }
  .pcard--wealth .pcard__bg-img { object-position: top center; }
  .pcard--empresas .pcard__title { font-size: 40px; }

  /* Planos */
  .planos {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 24px 56px;
  }
  .planos__carousel-wrapper { height: auto; overflow: visible; }
  .planos__carousel {
    position: static;
    overflow: visible;
    height: auto;
  }
  .plan-card {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    width: 100%;
    display: none;
  }
  .plan-card.mobile-active { display: flex; }
  .carousel__arrow { top: auto; bottom: 48px; }
  .carousel__arrow--prev { left: 0; }
  .carousel__arrow--next { right: 0; }
  .carousel__dots { position: static; margin-top: 16px; }

  /* Institucional */
  .institucional { padding: 64px 24px; }
  .institucional__header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .institucional__header-right { max-width: 100%; align-self: auto; }
  .institucional__stats { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid #222222; }
  .stat-item:nth-child(4) { border-top: 1px solid #222222; border-right: none; }
  .institucional__pillars { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 64px; }
  .pillar { border-right: none; padding: 0; }
  .pillar + .pillar { padding-left: 0; }

  /* CTA */
  .cta-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 24px;
  }
  .cta-section__actions { width: 100%; }
  .cta-section__actions .btn { width: 100%; }

  /* Footer */
  .footer { padding: 40px 24px 0; }
  .footer__top { flex-direction: column; gap: 40px; }
  .footer__links { flex-wrap: wrap; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 20px; align-items: flex-start; }

  /* FAQ */
  .faq {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 64px 24px;
  }
  .faq-item__answer { padding-left: 28px; }
}
