/* =========================================================
   MB Promotora em Vendas | landing de consórcios
   Tokens derivados do Manual de Identidade Visual MB:
   azul-marinho #17103E, dourado #B99A38, dourado claro #E5D392.
   Forma: raio único de 4px. Exceção documentada: as facetas
   do hero, recortadas na silhueta do símbolo MB.
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Primitivos ---------- */
:root {
  --navy-950: #0D0A24;
  --navy-900: #17103E;
  --navy-800: #211A4E;
  --navy-700: #2E2663;
  --gold-700: #8A6A12;
  --gold-500: #B99A38;
  --gold-200: #E5D392;
  --mist-50: #F4F5F9;
  --mist-100: #E9EBF2;
  --mist-200: #D9DCE7;
  --slate-600: #4B4766;
  --paper: #FFFFFF;

  /* ---------- Semânticos (claro) ---------- */
  --bg: var(--mist-50);
  --surface: var(--paper);
  --surface-sunk: var(--mist-100);
  --text: var(--navy-900);
  --text-muted: var(--slate-600);
  --line: var(--mist-200);
  --accent: var(--gold-500);
  --accent-text: var(--gold-700);
  --primary: var(--navy-900);
  --primary-hover: var(--navy-700);
  --on-primary: #FAF9FD;
  --header-bg: rgb(244 245 249 / 0.86);
  --shadow-tint: 23 16 62;

  /* ---------- Tipografia ---------- */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-2xl: clamp(1.875rem, 1.35rem + 1.9vw, 2.875rem);
  --fs-3xl: clamp(2.375rem, 1.5rem + 3.1vw, 4rem);
  --wide: 116%;
  --semi-wide: 106%;

  /* ---------- Espaço e forma ---------- */
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 8vw, 112px);
  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---------- Camadas ---------- */
  --z-header: 30;
  --z-float: 20;
  --z-skip: 40;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy-950);
    --surface: #151033;
    --surface-sunk: #110C2B;
    --text: #EEECF6;
    --text-muted: #B4B0CC;
    --line: #2B2456;
    --accent: var(--gold-500);
    --accent-text: var(--gold-200);
    --primary: var(--gold-200);
    --primary-hover: #F0E3B2;
    --on-primary: var(--navy-900);
    --header-bg: rgb(13 10 36 / 0.84);
    --shadow-tint: 0 0 0;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

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

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: var(--z-skip);
  padding: 10px 16px; background: var(--primary); color: var(--on-primary);
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2,
.about-copy h2,
.faq-intro h2,
.simulate-copy h2 {
  font-size: var(--fs-2xl);
  font-stretch: var(--wide);
  letter-spacing: -0.02em;
}
.section-head p { margin-top: 16px; color: var(--text-muted); font-size: var(--fs-lg); max-width: 60ch; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: var(--fs-sm); font-weight: 650; font-stretch: var(--semi-wide);
  letter-spacing: 0.005em; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: var(--fs-base); }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }

.btn-gold { background: var(--gold-200); color: var(--navy-900); }
.btn-gold:hover { background: #EFE2AE; }

.link-quiet {
  font-weight: 600; font-stretch: var(--semi-wide); text-decoration: underline;
  text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-underline-offset 0.2s var(--ease);
}
.link-quiet:hover { text-underline-offset: 9px; }

/* ---------- Cabeçalho ---------- */
.top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; padding: 4px; margin-left: -4px; }
.brand img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav ul a {
  font-size: var(--fs-sm); font-weight: 550; text-decoration: none; color: var(--text-muted);
  padding-block: 8px; transition: color 0.2s var(--ease);
}
.main-nav ul a:hover { color: var(--text); }
.nav-cta { min-height: 42px; padding: 0 18px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 16px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(var(--shadow-tint) / 0.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), visibility 0s 0.25s;
  }
  .main-nav.is-open {
    transform: none; opacity: 1; visibility: visible;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), visibility 0s;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; font-size: var(--fs-lg); color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; min-height: 52px; }
}

/* ---------- Abertura ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 72px) clamp(48px, 6vw, 80px);
  /* luz suave inspirada no fundo da arte original da marca */
  background:
    radial-gradient(55% 70% at 78% 42%, rgb(255 255 255 / 0.9) 0%, rgb(255 255 255 / 0) 70%),
    var(--bg);
}
@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(55% 70% at 78% 42%, rgb(46 38 99 / 0.55) 0%, rgb(46 38 99 / 0) 70%),
      var(--bg);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: min(calc(100dvh - var(--header-h) - 120px), 640px);
}

.hero h1 {
  font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5rem);
  font-stretch: var(--wide);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 9em;
}
.hero-sub {
  margin-top: 24px; max-width: 34rem;
  font-size: var(--fs-lg); color: var(--text-muted); line-height: 1.55;
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* Facetas: três fotos dentro da silhueta hexagonal do símbolo MB */
.facets {
  --notch: 21%;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 6px;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  aspect-ratio: 0.86;
  clip-path: polygon(0 var(--notch), 50% 0, 100% var(--notch), 100% calc(100% - var(--notch)), 50% 100%, 0 calc(100% - var(--notch)));
}
.facet { position: relative; display: block; overflow: hidden; background: var(--navy-800); }
.facet img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.facet:hover img { transform: scale(1.05); }
.facets:hover .facet:not(:hover) img { filter: saturate(0.6) brightness(0.85); }
.facet:focus-visible { outline-offset: -4px; outline-color: var(--gold-200); }

/* Única entrada orquestrada da página */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .facet { animation: rise-facet 1s var(--ease) both; }
  .facet:nth-child(1) { animation-delay: 0.18s; }
  .facet:nth-child(2) { animation-delay: 0.06s; }
  .facet:nth-child(3) { animation-delay: 0.3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-facet { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- Fatos ---------- */
.facts { background: var(--surface); border-block: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { display: flex; gap: 16px; padding: 32px 32px 32px 0; }
.fact + .fact { padding-left: 32px; border-left: 1px solid var(--line); }
.fact .icon { width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.fact h2 { font-size: var(--fs-base); font-stretch: var(--semi-wide); font-weight: 700; line-height: 1.3; }
.fact p { margin-top: 4px; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }

/* ---------- Soluções (abas) ---------- */
.tabs {
  display: flex; gap: 8px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 20px 18px; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 2px solid transparent;
  font: inherit; font-size: var(--fs-lg); font-weight: 600; font-stretch: var(--semi-wide);
  color: var(--text-muted); white-space: nowrap; cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab:first-child { padding-left: 0; }
.tab .icon { width: 24px; height: 24px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab[aria-selected="true"] .icon { color: var(--accent); }

.panel { padding-top: 32px; }
.panel:focus-visible { outline-offset: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .panel.is-entering { animation: fade 0.35s var(--ease) both; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.panel-media {
  width: 100%; aspect-ratio: 7 / 3; object-fit: cover;
  border-radius: var(--radius); background: var(--surface-sunk);
}
.panel-body {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px); padding-top: 32px;
}
.panel-body h3 { font-size: var(--fs-xl); font-stretch: var(--wide); letter-spacing: -0.015em; }
.panel-body p { margin-top: 12px; color: var(--text-muted); max-width: 52ch; }
.panel-side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); font-size: var(--fs-sm); font-weight: 500; line-height: 1.3;
}

/* ---------- Quem somos ---------- */
.about { padding-top: 0; }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
/* O manual pede a arte completa sobre fundo branco, em qualquer tema,
   com azul-marinho e dourado como apoio (página 05 do manual) */
.brand-plate {
  overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
}
.brand-plate-logo { display: grid; place-items: center; padding: clamp(40px, 6vw, 72px) 16%; }
.brand-plate-logo img { width: 100%; max-width: 340px; }
.brand-plate figcaption {
  padding: 22px 28px;
  background: var(--navy-900); color: var(--gold-200);
  font-size: var(--fs-base); font-weight: 600; font-stretch: var(--wide); letter-spacing: 0.01em;
  text-align: center;
}
.about-copy .lead { margin-top: 20px; font-size: var(--fs-lg); color: var(--text-muted); max-width: 56ch; }

.pillars { margin-top: 40px; display: grid; gap: 28px; }
.pillars li { display: flex; gap: 18px; }
.pillars .icon {
  width: 44px; height: 44px; padding: 10px; flex: none;
  color: var(--accent-text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.pillars h3 { font-size: var(--fs-base); font-stretch: var(--semi-wide); line-height: 1.3; padding-top: 2px; }
.pillars p { margin-top: 4px; color: var(--text-muted); font-size: var(--fs-sm); max-width: 52ch; }

/* ---------- Como funciona ---------- */
.steps-section { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: none; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.steps li::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent);
}
.step-num {
  display: block; font-size: var(--fs-2xl); font-weight: 300; font-stretch: var(--wide);
  font-variant-numeric: tabular-nums; color: var(--accent-text); line-height: 1; letter-spacing: -0.02em;
}
.steps h3 { margin-top: 20px; font-size: var(--fs-lg); font-stretch: var(--semi-wide); line-height: 1.25; }
.steps p { margin-top: 8px; color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Dúvidas ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro p { margin-top: 16px; color: var(--text-muted); max-width: 32ch; }
.faq-intro a { color: var(--text); font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: var(--fs-lg); font-weight: 600; font-stretch: var(--semi-wide); line-height: 1.3;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { width: 22px; height: 22px; color: var(--accent-text); transition: transform 0.3s var(--ease); }
.accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion summary:hover { color: var(--accent-text); }
.accordion details p { padding: 0 48px 24px 0; color: var(--text-muted); max-width: 64ch; }
@media (prefers-reduced-motion: no-preference) {
  .accordion details[open] p { animation: rise 0.4s var(--ease) both; }
}

/* ---------- Simulação ---------- */
.simulate {
  --s-text: #F4F2FA;
  --s-muted: #C6C1DE;
  --s-line: rgb(255 255 255 / 0.14);
  --s-field: rgb(255 255 255 / 0.06);
  padding-block: var(--section-y);
  background: var(--navy-900);
  color: var(--s-text);
}
.simulate-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.simulate-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.simulate-copy > p { margin-top: 20px; font-size: var(--fs-lg); color: var(--s-muted); max-width: 40ch; }

.contact-list { margin-top: 40px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--s-muted); }
.contact-list .icon { width: 22px; height: 22px; color: var(--gold-200); }
.contact-list a { color: var(--s-text); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 4px; }

.sim-form {
  display: grid; gap: 24px;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--navy-800); border: 1px solid var(--s-line); border-radius: var(--radius);
}
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 600; color: var(--s-text); padding: 0; }
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--s-muted); }

.sim-form input[type="text"],
.sim-form input[type="tel"] {
  width: 100%; min-height: 52px; padding: 0 16px;
  background: var(--s-field); color: var(--s-text);
  border: 1px solid rgb(255 255 255 / 0.28); border-radius: var(--radius);
  font: inherit; font-size: var(--fs-base);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.sim-form input::placeholder { color: #A9A3C8; opacity: 1; }
.sim-form input[type="text"]:hover,
.sim-form input[type="tel"]:hover { border-color: rgb(255 255 255 / 0.45); }
.sim-form input[type="text"]:focus-visible,
.sim-form input[type="tel"]:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 1px; border-color: transparent; background: rgb(255 255 255 / 0.1); }
.sim-form input[aria-invalid="true"] { border-color: #FF9B8F; }

.field-error { color: #FFB4AA; font-size: var(--fs-xs); font-weight: 500; }
.field-help { color: var(--s-muted); font-size: var(--fs-xs); }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented label { position: relative; display: grid; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 76px; padding: 10px 8px; text-align: center;
  border: 1px solid rgb(255 255 255 / 0.28); border-radius: var(--radius);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; color: var(--s-muted);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.segmented .icon { width: 24px; height: 24px; }
.segmented label:hover span { border-color: rgb(255 255 255 / 0.5); color: var(--s-text); }
.segmented input:checked + span { border-color: var(--gold-200); background: rgb(229 211 146 / 0.1); color: var(--s-text); }
.segmented input:checked + span .icon { color: var(--gold-200); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold-200); outline-offset: 2px; }

.range-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.range-head output {
  font-size: var(--fs-xl); font-weight: 650; font-stretch: var(--wide);
  font-variant-numeric: tabular-nums; color: var(--gold-200); white-space: nowrap;
}
.sim-form input[type="range"] {
  --fill: 22%;
  width: 100%; height: 28px; margin: 4px 0 0; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.sim-form input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: var(--radius);
  background: linear-gradient(to right, var(--gold-500) var(--fill), rgb(255 255 255 / 0.2) var(--fill));
}
.sim-form input[type="range"]::-moz-range-track { height: 4px; border-radius: var(--radius); background: rgb(255 255 255 / 0.2); }
.sim-form input[type="range"]::-moz-range-progress { height: 4px; border-radius: var(--radius); background: var(--gold-500); }
.sim-form input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px;
  background: var(--gold-200); border: 4px solid var(--navy-900); border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--gold-200);
}
.sim-form input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; background: var(--gold-200);
  border: 4px solid var(--navy-900); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--gold-200);
}
.sim-form input[type="range"]:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 4px; }
.range-scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--s-muted); font-variant-numeric: tabular-nums; }

.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--s-muted); font-weight: 600; pointer-events: none; }
.input-prefix input { padding-left: 48px !important; font-variant-numeric: tabular-nums; }

.form-note { font-size: var(--fs-xs); color: var(--s-muted); line-height: 1.5; }
.form-status {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border: 1px solid var(--gold-500); border-radius: var(--radius);
  background: rgb(229 211 146 / 0.08); font-size: var(--fs-sm);
}
.form-status a { color: var(--gold-200); font-weight: 600; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-950); color: #C6C1DE; padding-top: clamp(56px, 6vw, 80px); }
@media (prefers-color-scheme: dark) {
  .site-footer { background: #08061A; }
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 4fr);
  gap: clamp(32px, 4vw, 56px); padding-bottom: 48px;
}
.footer-brand img { width: 168px; }
.footer-brand p { margin-top: 20px; font-size: var(--fs-sm); }
.site-footer h2 { font-size: var(--fs-sm); font-weight: 650; font-stretch: var(--semi-wide); color: #F4F2FA; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; font-size: var(--fs-sm); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #F4F2FA; text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 4px; }
.footer-legal p { font-size: var(--fs-xs); line-height: 1.6; max-width: 60ch; }
.footer-bottom { padding-bottom: 24px; font-size: var(--fs-xs); }
.footer-bottom p { padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.1); }

/* ---------- Botão lateral de WhatsApp ----------
   Exceção documentada à paleta: o verde do WhatsApp é o sinal que o
   visitante reconhece. Tom escurecido para contraste AA com o texto branco. */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-float);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 20px 0 16px;
  background: #0E7C66; color: #FFFFFF;
  border: 0; border-radius: var(--radius);
  font-size: var(--fs-base); font-weight: 650; font-stretch: var(--semi-wide); text-decoration: none;
  box-shadow: 0 14px 32px -12px rgb(7 61 50 / 0.6);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), opacity 0.25s var(--ease), visibility 0s;
}
.wa-float .icon { width: 28px; height: 28px; color: #FFFFFF; }
.wa-float:hover { background: #0A6654; transform: translateY(-2px); }
.wa-float:focus-visible { outline-color: #0E7C66; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(8px); transition: transform 0.2s var(--ease), opacity 0.25s var(--ease), visibility 0s 0.25s; }

/* ---------- Responsivo ---------- */
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .facets { justify-self: center; max-width: 420px; }
  .about-grid, .faq-grid, .simulate-grid { grid-template-columns: 1fr; }
  .brand-plate-logo { padding: 40px 22%; }
  .faq-intro, .simulate-copy { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .hero { padding-top: 32px; }
  .hero-actions .btn { width: 100%; }
  .facets { max-width: 340px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 24px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .panel-media { aspect-ratio: 4 / 3; }
  .panel-body { grid-template-columns: 1fr; }
  .panel-side .btn { width: 100%; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .tab, .tab:first-child {
    flex-direction: column; gap: 6px; padding: 12px 4px 14px;
    font-size: var(--fs-sm); line-height: 1.2; white-space: normal; text-align: center;
  }
  .steps { grid-template-columns: 1fr; }
  .accordion details p { padding-right: 0; }
  .segmented span { min-height: 68px; font-size: var(--fs-xs); }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; padding: 0; width: 56px; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
