/* ==========================================================================
   Starline Corretora: sistema visual (ver DESIGN.md)
   Branco é o palco, navy é a voz, laranja é a assinatura.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f2f5fa;
  --navy-950: #131e3d;
  --navy-900: #1a2a55;
  --royal-600: #2d55b8;
  --ink: #1c2544;
  --muted: #59637d;
  --line: #dbe0eb;
  --orange-600: #e8871a;
  --orange-500: #f79a26;
  --orange-300: #f9bd6c;
  --grad: linear-gradient(135deg, var(--orange-600), var(--orange-500) 52%, var(--orange-300));

  --display: "Source Serif 4", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --radius-card: 14px;
  --radius-ui: 12px;
  --container: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --section-y: clamp(40px, 4vw, 56px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* z-index semântico */
  --z-header: 100;
  --z-menu: 110;
  --z-progresso: 120;
  --z-modal: 130;
  --z-abertura: 140;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.modal-aberto { overflow: hidden; }

/* Abertura: camada visual progressiva. Sem JavaScript, ela nunca é exibida. */
.abertura { display: none; }
.js .abertura {
  position: fixed;
  inset: 0;
  z-index: var(--z-abertura);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: var(--navy-950);
  color: #fff;
  pointer-events: none;
  transition: clip-path 640ms var(--ease-in-out), visibility 0s linear 640ms;
}
.abertura::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  animation: abertura-fio 720ms 180ms var(--ease-out) forwards;
}
.abertura-marca {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 300px);
  text-align: center;
  animation: abertura-marca 760ms 80ms var(--ease-out) both;
}
.abertura-marca img { width: min(230px, 72vw); height: auto; }
.abertura-marca p {
  max-width: none;
  font-size: clamp(0.82rem, 0.76rem + 0.25vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  color: rgba(255, 255, 255, 0.76);
}
.abertura-fio {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: center;
  animation: abertura-fio 650ms 300ms var(--ease-out) forwards;
}
.abertura.saindo {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
@keyframes abertura-marca {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes abertura-fio { to { transform: scaleX(1); } }

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; color: var(--navy-950); }
h1 { font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 1.5rem + 1.4vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { max-width: 65ch; }

a { color: var(--royal-600); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

/* ==========================================================================
   Assinatura: fio Starline
   ========================================================================== */

.fio { height: 2px; background: linear-gradient(90deg, var(--orange-600), var(--orange-300)); }

/* Barra de progresso de leitura (topo, cresce com o scroll) */
.progresso {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-progresso);
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.progresso span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange-600), var(--orange-300));
  transform-origin: left;
}

.star { width: 1em; height: 1em; fill: var(--orange-500); flex: none; }

/* ==========================================================================
   Botões: caixa alta, mesma grafia sempre
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(180deg, var(--orange-300), var(--orange-500) 52%, var(--orange-600));
  color: var(--navy-950);
  border: 1px solid rgba(140, 74, 6, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 20px -7px rgba(224, 127, 18, 0.55), 0 2px 5px rgba(19, 30, 61, 0.14);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--orange-300), var(--orange-500) 42%, var(--orange-500));
  color: var(--navy-950);
  border-color: rgba(140, 74, 6, 0.55);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 28px -8px rgba(224, 127, 18, 0.6), 0 3px 8px rgba(19, 30, 61, 0.18);
}

.btn-ghost { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-ghost:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); }

.btn-ghost-claro { border-color: rgba(255, 255, 255, 0.65); color: #fff; background: transparent; }
.btn-ghost-claro:hover { background: var(--orange-500); color: var(--navy-950); border-color: var(--orange-500); transform: translateY(-2px); }

.btn-whatsapp {
  background: linear-gradient(180deg, #2ee06f, #25d366 52%, #1faf57);
  color: #0b2c21;
  border: 1px solid rgba(11, 61, 40, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 20px -7px rgba(37, 211, 102, 0.5), 0 2px 5px rgba(19, 30, 61, 0.14);
}

.btn-whatsapp:hover {
  background: linear-gradient(180deg, #37ea78, #2bdc6d 45%, #23c162);
  color: #0b2c21;
  border-color: rgba(11, 61, 40, 0.35);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 28px -8px rgba(37, 211, 102, 0.55), 0 3px 8px rgba(19, 30, 61, 0.18);
}

.btn-full { width: 100%; }

.ico-wa { width: 20px; height: 20px; fill: currentColor; flex: none; }

.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(8, 55, 37, 0.28);
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.whatsapp-float svg { width: 29px; height: 29px; fill: currentColor; }
.whatsapp-float:hover { background: #128c5b; color: #fff; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(8, 55, 37, 0.36); }
.whatsapp-float:active { transform: scale(0.96); }
.whatsapp-float:focus-visible { outline: 3px solid rgba(37, 211, 102, 0.35); outline-offset: 3px; }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  background: var(--navy-900);
  transition: box-shadow 0.25s var(--ease-out);
}

.header.rolou { box-shadow: 0 6px 24px rgba(19, 30, 61, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.header-logo img { height: 34px; width: auto; }

.header-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }

/* Desktop: logo à esquerda e navegação centralizada na barra */
@media (min-width: 1024px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; justify-content: initial; }
  .header-logo { grid-column: 1; justify-self: start; }
  .header-nav { grid-column: 2; justify-self: center; }
  .header-corretor { grid-column: 3; justify-self: end; }
}

.header-nav > a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.header-nav > a:hover { border-bottom-color: var(--orange-500); }

.header-corretor { display: flex; align-items: center; gap: 7px; margin-left: 12px; }

.header-access-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.header-access-link:hover,
.header-access-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.header-access-link:focus-visible { outline: 2px solid var(--orange-300); outline-offset: 2px; }

.btn-pill-ghost,
.btn-pill-solid {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn-pill-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.55); }
.btn-pill-ghost:hover { background: #fff; color: var(--navy-950); border-color: #fff; transform: translateY(-2px); }

.btn-pill-solid {
  background: linear-gradient(180deg, var(--orange-300), var(--orange-500) 52%, var(--orange-600));
  color: var(--navy-950);
  border: 1px solid rgba(140, 74, 6, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px -6px rgba(224, 127, 18, 0.5);
}
.btn-pill-solid:hover {
  background: linear-gradient(180deg, var(--orange-300), var(--orange-500) 42%, var(--orange-500));
  color: var(--navy-950);
  border-color: rgba(140, 74, 6, 0.55);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 22px -6px rgba(224, 127, 18, 0.58);
}

.header-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.header-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out); }

.header-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: calc(var(--header-h) + clamp(12px, 2vw, 22px)) 0 clamp(38px, 4vw, 54px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--royal-600);
  margin-bottom: 20px;
}

.hero-sub { margin-top: 22px; font-size: 1.15rem; color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-trust img { height: 40px; width: auto; }
.hero-trust p { font-size: 0.95rem; color: var(--muted); }
.hero-trust strong { color: var(--navy-950); }

.hero-media { position: relative; }

.hero-photo {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: clamp(380px, 46vw, 560px);
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}

.hero-photo img.ativo { opacity: 1; }

/* sem JS, a primeira imagem aparece normalmente */
html:not(.js) .hero-photo img:first-child { opacity: 1; }

.hero-badge {
  position: absolute;
  left: clamp(-18px, -1.5vw, -24px);
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.95rem;
  color: var(--muted);
  box-shadow: 0 12px 30px rgba(19, 30, 61, 0.16);
}

.hero-badge .star { width: 1.15em; height: 1.15em; }
.hero-badge strong { color: var(--navy-950); }
.hero-badge-copy { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.hero-badge-copy strong,
.hero-badge-copy > span { transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out); }
.hero-badge.trocando .hero-badge-copy strong,
.hero-badge.trocando .hero-badge-copy > span { opacity: 0; transform: translateY(5px); }

/* painel flutua sutilmente */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge { animation: flutua 4.5s ease-in-out infinite; }
}

@keyframes flutua {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ==========================================================================
   Sobre / prova institucional (seção navy)
   ========================================================================== */

.sobre { background: var(--navy-900); color: #fff; padding: var(--section-y) 0; }

.sobre-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.sobre h2 { color: #fff; }

.sobre-copy > p { margin-top: 20px; color: rgba(255, 255, 255, 0.86); }

.sobre-orium { font-size: 0.95rem; color: rgba(255, 255, 255, 0.62); }

.sobre-numeros {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sobre-numeros dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  line-height: 1;
  color: var(--orange-300);
}

.sobre-numeros dd { margin-top: 8px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); }

.sobre-photo { border-radius: var(--radius-card); overflow: hidden; }
.sobre-photo-stack { position: relative; height: clamp(320px, 34vw, 460px); }
.sobre-photo-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}
.sobre-photo-stack img.ativo { opacity: 1; }
html:not(.js) .sobre-photo-stack img:first-child { opacity: 1; }
.sobre-photo figcaption {
  position: relative;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  padding: 14px 20px;
  min-height: 56px;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Seções claras: cabeçalho padrão
   ========================================================================== */

.section-head { max-width: 720px; margin-inline: auto; margin-bottom: clamp(28px, 3vw, 38px); text-align: center; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }

/* ==========================================================================
   Soluções
   ========================================================================== */

.solucoes { background: var(--bg-soft); padding: var(--section-y) 0; }

.solucoes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* As URLs ficam neste arquivo para serem resolvidas a partir de /css. */
.sol-saude { --card-img: url('../assets/card-saude-v2.jpg'); }
.sol-odonto { --card-img: url('../assets/card-odonto-v2.jpg'); }
.sol-vida { --card-img: url('../assets/card-vida-v2.jpg'); }
.sol-viagem { --card-img: url('../assets/card-viagem-v2.jpg'); }

/* --- Card flip (frente institucional, verso com imagem + benefícios) --- */

.sol-flip {
  position: relative;
  perspective: 1400px;
  min-height: 340px;
  border: 0;
  background: transparent;
}

.sol-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: transform 0.7s var(--ease-in-out);
  transform-style: preserve-3d;
}

@media (hover: hover) and (pointer: fine) {
  .sol-flip:hover .sol-inner { transform: rotateY(180deg); }
}

.sol-front,
.sol-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sol-front {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(24px, 2.4vw, 34px);
  padding-bottom: 76px;
  transition: border-color 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .sol-flip:hover .sol-front { border-color: var(--orange-500); }
}

.sol-ico { width: 44px; height: 44px; color: var(--royal-600); margin-bottom: 18px; }

.sol-front h3 { margin-bottom: 10px; }
.sol-front p { color: var(--muted); font-size: 0.98rem; flex-grow: 1; }

/* Verso: imagem de fundo + overlay navy + benefícios rotativos */
.sol-back {
  transform: rotateY(180deg);
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(19, 30, 61, 0.08) 0%, rgba(19, 30, 61, 0.18) 42%, rgba(19, 30, 61, 0.68) 74%, rgba(19, 30, 61, 0.9) 100%), var(--card-img);
  background-size: cover;
  background-position: center;
}

.sol-back-body {
  width: 100%;
  height: 100%;
  padding: clamp(22px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 74px;
}
.sol-back-body h3 { color: #fff; margin-bottom: 4px; text-shadow: 0 2px 12px rgba(8, 15, 35, 0.32); }
.sol-back-desc { color: rgba(255, 255, 255, 0.86); font-size: 0.92rem; margin-bottom: 12px; text-align: center; }

.sol-bene {
  position: relative;
  width: min(100%, 230px);
  height: 44px;
  margin: 5px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(8, 15, 35, 0.2);
}

.sol-bene span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  color: var(--navy-950);
  opacity: 0;
}

.sol-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 0;
  padding: 7px 14px;
  border: 2px solid var(--navy-900);
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.sol-link:hover { background: var(--orange-500); color: var(--navy-950); border-color: var(--orange-500); transform: translateY(-2px); }
.sol-link.claro { background: var(--orange-500); color: var(--navy-950); border-color: var(--orange-500); }
.sol-link.claro:hover { background: #fff; color: var(--navy-950); border-color: #fff; }

/* CTA acoplado ao card: fica imóvel enquanto somente o miolo gira. */
.sol-link-fixo {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 4;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--orange-500);
  color: var(--navy-950);
  border-color: var(--orange-500);
  box-shadow: 0 8px 22px rgba(8, 15, 35, 0.2);
}

.sol-link-fixo:hover {
  transform: translateX(-50%);
  background: #fff;
  color: var(--navy-950);
  border-color: #fff;
}

/* Frase de benefício rotativa (só visível no verso, no hover) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .sol-flip:hover .sol-bene span { animation: rotaFrase 6s linear infinite; }
  .sol-flip:hover .sol-bene span:nth-child(2) { animation-delay: 2s; }
  .sol-flip:hover .sol-bene span:nth-child(3) { animation-delay: 4s; }
}

@keyframes rotaFrase {
  0% { opacity: 0; transform: translateY(10px); }
  5% { opacity: 1; transform: none; }
  28% { opacity: 1; transform: none; }
  33% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* Quando não há hover (touch/reduced), mostra a 1ª frase estática */
.sol-bene span:first-child { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .sol-bene span:first-child { opacity: 0; }
  .sol-flip:hover .sol-bene span:first-child { opacity: 1; }
}

/* CTA full-width fechando a grade (sem vão) */
.sol-cta {
  grid-column: 1 / -1;
  background: var(--navy-950);
  border-radius: var(--radius-card);
  padding: clamp(22px, 2.4vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 4px;
}

.sol-cta h3 { color: #fff; }
.sol-cta p { color: rgba(255, 255, 255, 0.88); max-width: 60ch; }
.sol-cta-texto { display: grid; gap: 14px; align-content: center; }
.sol-cta-lista { list-style: none; display: grid; gap: 9px; margin: 2px 0 0; }
.sol-cta-lista li {
  position: relative; padding-left: 28px;
  color: rgba(255, 255, 255, 0.9); font-size: 0.96rem; line-height: 1.4;
}
.sol-cta-lista li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(150deg, var(--orange-500), var(--orange-300));
}
.sol-cta-lista li::after {
  content: ""; position: absolute; left: 6px; top: 7px;
  width: 6px; height: 3px; border-left: 2px solid var(--navy-950); border-bottom: 2px solid var(--navy-950);
  transform: rotate(-45deg);
}
.sol-cta .btn { grid-column: 2; margin: 0; align-self: center; }

/* ==========================================================================
   Método (linha de produção: 1 → 2 → 3)
   ========================================================================== */

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

.metodo-passos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  position: relative;
}

/* trilho cinza de fundo */
.metodo-passos::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

/* trilho laranja que preenche */
.metodo-passos::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-600), var(--orange-300));
  z-index: 0;
}

.metodo-passos li { position: relative; z-index: 1; }

.passo-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 20px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.passo.aceso .passo-num {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 0 0 1px var(--navy-900), 0 8px 20px rgba(26, 42, 85, 0.28);
}

.metodo-passos h3 { margin-bottom: 10px; }
.metodo-passos p { color: var(--muted); font-size: 0.98rem; }
html.js .passo h3,
html.js .passo p {
  opacity: 0.24;
  transform: translateY(8px);
  transition: opacity 0.42s var(--ease-out), transform 0.42s var(--ease-out);
}
html.js .passo.aceso h3,
html.js .passo.aceso p { opacity: 1; transform: none; }

/* ==========================================================================
   Operadoras parceiras
   ========================================================================== */

.parceiros { background: var(--bg); padding: var(--section-y) 0; }

/* Carrossel de operadoras: 1 linha em loop contínuo, cada logo linka pro site oficial */
.parceiros-carrossel {
  margin-top: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.parceiros-track {
  list-style: none;
  display: flex;
  width: max-content;
  animation: parceirosScroll 38s linear infinite;
}
.parceiros-carrossel:hover .parceiros-track,
.parceiros-carrossel:focus-within .parceiros-track { animation-play-state: paused; }
.parceiros-track li { flex: 0 0 auto; margin-right: 18px; }
.parceiros-track a {
  display: grid;
  place-items: center;
  width: clamp(150px, 20vw, 200px);
  height: 92px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.parceiros-track a:hover {
  border-color: var(--orange-500);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(19, 30, 61, 0.5);
}
.parceiros-track a:focus-visible { outline: 3px solid rgba(45, 85, 184, 0.32); outline-offset: 2px; }
.parceiros-track img { max-height: 46px; width: auto; max-width: 74%; object-fit: contain; }

@keyframes parceirosScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* margin-right em todos os itens: -50% cai exato no início da cópia */
}

@media (prefers-reduced-motion: reduce) {
  .parceiros-track { animation: none; }
  .parceiros-carrossel { overflow-x: auto; scrollbar-width: none; }
  .parceiros-carrossel::-webkit-scrollbar { display: none; }
}

.parceiros-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.parceiros-grid li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 22px;
  min-height: 110px;
  transition: border-color 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .parceiros-grid li:hover { border-color: var(--orange-500); }
}

.parceiros-grid img { max-height: 46px; width: auto; max-width: 82%; object-fit: contain; }

/* ==========================================================================
   Simulação / contato (seção navy)
   ========================================================================== */

.simulacao { background: var(--navy-900); color: #fff; padding: var(--section-y) 0; border-top: 2px solid var(--orange-500); }

.simulacao-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.simulacao h2 { color: #fff; }
.simulacao-copy > p { margin-top: 18px; color: rgba(255, 255, 255, 0.86); font-size: 1.1rem; }

.simulacao-checks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }

.simulacao-checks li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.simulacao-checks li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  flex: none;
  transform: translateY(-1px);
}

.simulacao-alt { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.simulacao-alt p { color: rgba(255, 255, 255, 0.75); margin-bottom: 14px; }

.simulacao-form {
  background: #fff;
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.4vw, 30px);
  color: var(--ink);
}

.simulacao-form h3 { margin-bottom: 16px; font-size: 1.3rem; }

.campo { margin-bottom: 11px; }

.campo label { display: block; font-weight: 600; font-size: 0.86rem; margin-bottom: 4px; color: var(--navy-950); }

.campo input,
.campo select {
  width: 100%;
  min-height: 46px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.campo input::placeholder { color: #5c6579; }

.campo input:focus,
.campo select:focus {
  outline: none;
  border-color: var(--royal-600);
  box-shadow: 0 0 0 3px rgba(45, 85, 184, 0.18);
}

.campo-linha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.campo-consent { margin-top: 4px; }
.consent { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; font-size: 0.82rem; line-height: 1.4; color: var(--muted); cursor: pointer; text-align: left; margin-bottom: 0; }
.consent input { width: auto; min-height: 0; margin-top: 2px; flex-shrink: 0; accent-color: var(--royal-600); }
.consent strong { color: var(--navy-950); font-weight: 600; }

.simulacao-form .btn { min-height: 48px; margin-top: 4px; }

.form-nota { margin-top: 10px; font-size: 0.8rem; color: var(--muted); text-align: center; }

.form-ok {
  margin-top: 14px;
  background: #eaf7ee;
  border: 1px solid #bfe3c9;
  color: #1e6b34;
  border-radius: var(--radius-ui);
  padding: 12px 16px;
  font-size: 0.95rem;
}

/* Modal de simulação: o mesmo formulário é movido para cá ao abrir. */
.form-slot { min-width: 0; width: 100%; max-width: 480px; justify-self: end; }

.simulacao-modal {
  width: min(610px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: transparent;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(8, 15, 35, 0.34);
  overflow: hidden;
}

.simulacao-modal::backdrop {
  background: rgba(8, 15, 35, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.simulacao-modal-shell {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: #fff;
  border-top: 4px solid var(--orange-500);
  padding: clamp(22px, 3vw, 32px);
}

.simulacao-modal-topo {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.simulacao-modal-topo h2 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.35rem); }
.simulacao-modal-topo #modal-descricao { margin-top: 10px; color: var(--muted); font-size: 1rem; }

.simulacao-modal-kicker {
  margin-bottom: 8px;
  color: var(--royal-600);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.simulacao-modal-fechar {
  min-width: 64px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--navy-950);
  font: 800 0.78rem/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.simulacao-modal-fechar:hover { background: #fff; border-color: var(--navy-900); }
.simulacao-modal-fechar:active { transform: scale(0.97); }
.simulacao-modal-fechar:focus-visible { outline: 3px solid rgba(45, 85, 184, 0.32); outline-offset: 2px; }

#modal-form-slot .simulacao-form {
  padding: 0;
  border-radius: 0;
  opacity: 1;
  transform: none;
}

#modal-form-slot .simulacao-form h3 { display: none; }

/* ==========================================================================
   Rodapé
   ========================================================================== */

.footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.8); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.footer-marca img { height: 32px; width: auto; margin-bottom: 18px; }
.footer-marca p { font-size: 0.95rem; }

.footer h4 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-300);
  margin-bottom: 16px;
}

.footer-nav, .footer-corretor { display: flex; flex-direction: column; align-items: flex-start; }

.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.98rem;
}

.footer a:hover { color: var(--orange-300); }

.footer-contato { font-style: normal; }
.footer-contato p { font-size: 0.95rem; margin-top: 10px; }

.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 22px; padding-bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; }
.footer-base p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); }
.footer-base a { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.footer-base a:hover { color: var(--orange-300); }

/* ==========================================================================
   Motion (progressivo: conteúdo visível por padrão, JS só melhora)
   ========================================================================== */

html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Entrada do hero em cascata */
html.js .hero-sub.reveal { transition-delay: 0.12s; }
html.js .hero-actions.reveal { transition-delay: 0.24s; }
html.js .hero-trust.reveal { transition-delay: 0.36s; }
html.js .hero-media.reveal { transition-delay: 0.18s; }

/* Palavras dos títulos sobem de uma máscara */
.titulo-anim .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

html.js .titulo-anim .wi {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.7s var(--ease-out);
  transition-delay: calc(var(--iw) * 45ms);
}

html.js .titulo-anim.in .wi { transform: none; }

/* Fio Starline se desenha da esquerda pra direita */
html.js .fio { transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out); }
html.js .fio.in { transform: scaleX(1); }

/* Método: trilho laranja preenche em linha de produção (JS controla via --fill) */
html.js .metodo-passos::before {
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: transform var(--metodo-dur, 0.9s) var(--ease-in-out);
}

/* Cards de solução entram em cascata */
html.js .sol-flip.reveal:nth-child(2) .sol-inner,
html.js .sol-flip.reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .sol-flip.reveal:nth-child(3) { transition-delay: 0.16s; }
html.js .sol-flip.reveal:nth-child(4) { transition-delay: 0.24s; }

/* Operadoras em cascata */
html.js .parceiros-grid li.reveal:nth-child(2) { transition-delay: 0.05s; }
html.js .parceiros-grid li.reveal:nth-child(3) { transition-delay: 0.1s; }
html.js .parceiros-grid li.reveal:nth-child(4) { transition-delay: 0.15s; }
html.js .parceiros-grid li.reveal:nth-child(5) { transition-delay: 0.2s; }
html.js .parceiros-grid li.reveal:nth-child(6) { transition-delay: 0.25s; }
html.js .parceiros-grid li.reveal:nth-child(7) { transition-delay: 0.3s; }
html.js .parceiros-grid li.reveal:nth-child(8) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .titulo-anim .wi { transform: none; transition: none; }
  html.js .fio { transform: scaleX(1); transition: none; }
  html.js .metodo-passos::before { transform: scaleX(1); transition: none; }
  .passo .passo-num { background: var(--navy-900); color: #fff; box-shadow: 0 0 0 1px var(--navy-900); }
  html.js .passo h3, html.js .passo p { opacity: 1; transform: none; transition: none; }
  .hero-photo img, .sobre-photo-stack img { transition: none; }
  .btn, .sol-flip .sol-inner, .parceiros-grid li { transition: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1023px) {
  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-menu);
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 24px var(--pad) 156px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    overflow-y: auto;
  }

  .header-nav.aberto { transform: translateX(0); }

  .header-nav > a { font-size: 1.2rem; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .header-cta { display: inline-flex; margin: 20px 0 0; } /* CTA volta a aparecer no menu mobile */

  .header-corretor {
    position: fixed;
    right: var(--pad);
    bottom: max(24px, env(safe-area-inset-bottom));
    left: var(--pad);
    z-index: calc(var(--z-menu) + 1);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(110%);
    transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out);
  }
  .header-nav.aberto + .header-corretor { opacity: 1; pointer-events: auto; transform: none; }
  .header-access-link { min-height: 44px; border-color: rgba(255, 255, 255, 0.38); font-size: 0.78rem; }
  .btn-pill-ghost, .btn-pill-solid { justify-content: center; min-height: 52px; }

  .header-toggle { display: flex; }

  @media (prefers-reduced-motion: reduce) {
    .header-nav { transition: none; }
  }
}

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

@media (max-width: 920px) {
  .hero-grid, .sobre-grid, .simulacao-grid { grid-template-columns: 1fr; }

  .hero { padding-top: calc(var(--header-h) + 14px); }
  .hero-photo { height: clamp(320px, 62vw, 460px); }
  .hero-badge { left: 16px; }

  .metodo-passos { grid-template-columns: 1fr; gap: 32px; }
  .metodo-passos::after,
  .metodo-passos::before { top: 26px; bottom: 26px; left: 25px; right: auto; width: 2px; height: auto; }
  .metodo-passos::before { background: linear-gradient(180deg, var(--orange-600), var(--orange-300)); }
  html.js .metodo-passos::before { transform: scaleY(var(--fill, 0)); transform-origin: top; }

  .parceiros-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-slot { max-width: 560px; justify-self: stretch; }
}

@media (max-width: 560px) {
  :root { --section-y: 36px; }
  .solucoes-grid { grid-template-columns: 1fr; }
  .sol-flip { min-height: 300px; }
  .campo-linha { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; }
  .sobre-numeros { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .parceiros-grid img { max-height: 38px; }
  .section-head { margin-bottom: 26px; }
  .hero { padding-bottom: 38px; }
  .hero-sub { margin-top: 16px; }
  .hero-actions { margin-top: 24px; }
  .hero-trust { margin-top: 28px; padding-top: 20px; }
  .hero-badge { bottom: 16px; padding: 10px 14px; font-size: 0.82rem; }
  .simulacao-copy > p { font-size: 1rem; }
  .simulacao-form { padding: 20px 18px; }
  .sol-cta { grid-template-columns: 1fr; justify-items: stretch; text-align: left; }
  .sol-cta .btn { grid-column: 1; grid-row: auto; margin-top: 14px; width: 100%; }
  .whatsapp-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }

  .simulacao-modal { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .simulacao-modal-shell { max-height: calc(100dvh - 20px); padding: 22px 18px 24px; }
  .simulacao-modal-topo { grid-template-columns: 1fr; gap: 14px; }
  .simulacao-modal-fechar { grid-row: 1; justify-self: end; }
}

@media (prefers-reduced-transparency: reduce) {
  .simulacao-modal::backdrop {
    background: rgba(8, 15, 35, 0.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Guarda final: reduced-motion vence os overrides responsivos */
@media (prefers-reduced-motion: reduce) {
  html.js .metodo-passos::before { transform: none; transition: none; }
}
/* ==========================================================================
   Versão de teste: enquadramento de cada seção e movimento preservado
   ========================================================================== */

body.versao-teste {
  --section-y: clamp(34px, 5vh, 48px);
}

.versao-teste .hero {
  min-height: min(720px, 100svh);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(12px, 2vh, 20px));
  padding-bottom: clamp(26px, 4vh, 40px);
}

.versao-teste .hero-grid { width: 100%; }
.versao-teste .hero-photo { height: clamp(340px, 55vh, 480px); }
.versao-teste .hero h1 { max-width: 13ch; }
.versao-teste .hero-sub { max-width: 52ch; }
.versao-teste .hero-actions { margin-top: clamp(22px, 3vh, 30px); }
.versao-teste .hero-trust { margin-top: clamp(24px, 3.5vh, 34px); padding-top: clamp(18px, 2.5vh, 24px); }

.versao-teste .sobre-photo-stack { height: clamp(280px, 42vh, 360px); }
.versao-teste .section-head { margin-bottom: clamp(22px, 3vh, 30px); }
.versao-teste .sol-flip { min-height: clamp(286px, 39vh, 320px); }
.versao-teste .sol-front { padding: clamp(22px, 2vw, 28px); padding-bottom: 70px; }
.versao-teste .sol-back-body { padding: 22px 22px 68px; }
.versao-teste .sol-cta { padding: 20px 26px; }
.versao-teste .parceiros-grid li { min-height: 84px; padding: 18px 20px; }
.versao-teste .simulacao-form { padding: clamp(18px, 2vw, 24px); }
.versao-teste .simulacao-abrir-mobile { display: none; }

@media (max-width: 920px) {
  body.versao-teste { --section-y: clamp(30px, 4.5vh, 40px); }

  .versao-teste .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 12px);
    padding-bottom: 28px;
  }

  .versao-teste .hero-grid,
  .versao-teste .sobre-grid,
  .versao-teste .simulacao-grid { gap: clamp(22px, 4vh, 32px); }

  .versao-teste .hero-photo { height: clamp(210px, 34vh, 300px); }
  .versao-teste .sobre-photo-stack { height: clamp(210px, 32vh, 300px); }
}

@media (max-width: 760px) {
  .versao-teste h1 { font-size: clamp(2.15rem, 10.2vw, 2.55rem); line-height: 1.04; }
  .versao-teste h2 { font-size: clamp(1.72rem, 7.5vw, 2.1rem); }

  .versao-teste .hero-kicker { margin-bottom: 10px; font-size: 0.86rem; }
  .versao-teste .hero-sub { margin-top: 12px; font-size: 1rem; line-height: 1.5; }
  .versao-teste .hero-actions { margin-top: 18px; gap: 10px; }
  .versao-teste .hero-actions .btn { min-height: 48px; padding-block: 11px; }
  .versao-teste .hero-trust { margin-top: 18px; padding-top: 16px; }
  .versao-teste .hero-trust p { font-size: 0.88rem; line-height: 1.45; }
  .versao-teste .hero-photo { height: clamp(168px, 21vh, 184px); }
  .versao-teste .hero-badge { bottom: 12px; left: 12px; padding: 9px 13px; }

  .versao-teste .sobre-copy > p { margin-top: 12px; font-size: 0.96rem; line-height: 1.55; }
  .versao-teste .sobre-numeros { margin-top: 18px; padding-top: 16px; }
  .versao-teste .sobre-photo-stack { height: clamp(180px, 25vh, 220px); }
  .versao-teste .sobre-photo figcaption { min-height: 46px; padding: 10px 14px; }

  .versao-teste .section-head { margin-bottom: 20px; }
  .versao-teste .section-head p { margin-top: 9px; font-size: 0.98rem; line-height: 1.5; }

  .versao-teste .solucoes .container { padding-inline: 0; }
  .versao-teste .solucoes .section-head { padding-inline: var(--pad); }
  .versao-teste .solucoes-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: var(--pad);
    padding: 2px var(--pad) 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--orange-500) transparent;
  }

  .versao-teste .sol-flip,
  .versao-teste .sol-cta {
    flex: 0 0 min(82vw, 320px);
    min-height: 290px;
    scroll-snap-align: start;
  }

  .versao-teste .sol-cta {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    text-align: center;
    padding: 22px;
  }

  .versao-teste .sol-cta .btn {
    grid-column: 1;
    grid-row: auto;
    margin-top: 14px;
  }

  .versao-teste .metodo-passos { gap: 22px; }
  .versao-teste .passo-num { margin-bottom: 10px; }
  .versao-teste .metodo-passos h3 { margin-bottom: 5px; }
  .versao-teste .metodo-passos p { font-size: 0.94rem; line-height: 1.48; }

  .versao-teste .parceiros-grid { gap: 10px; }
  .versao-teste .parceiros-grid li { min-height: 70px; padding: 12px; }

  .versao-teste .simulacao-checks { margin-top: 16px; gap: 7px; }
  .versao-teste .simulacao-abrir-mobile { display: inline-flex; margin-top: 20px; }
  .versao-teste .simulacao-alt { margin-top: 18px; padding-top: 16px; }
  .versao-teste .form-slot { display: none; }
}

@media (max-width: 560px) {
  body.versao-teste { --section-y: 30px; }
  .versao-teste .hero { padding-bottom: 24px; }
  .versao-teste .hero-grid { gap: 18px; }
  .versao-teste .hero-actions .btn { width: 100%; }
  .versao-teste .sobre-grid { gap: 20px; }
  .versao-teste .sobre-numeros { gap: 14px; }
  .versao-teste .simulacao-copy > p { margin-top: 12px; }
}

/* CTAs Starline: laranja mais claro em gradiente, texto branco com sombra e destaque forte. */
.versao-teste .btn-primary,
.versao-teste .btn-pill-solid,
.versao-teste .sol-link-fixo {
  color: #fff;
  background: linear-gradient(180deg, #f8b055, #f39e30 55%, #e88a1c);
  border-color: rgba(150, 80, 8, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 26px -8px rgba(224, 127, 18, 0.6), 0 3px 8px rgba(19, 30, 61, 0.18);
  text-shadow: 0 1px 2px rgba(90, 45, 0, 0.42);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.versao-teste .btn-primary:hover,
.versao-teste .btn-pill-solid:hover {
  color: #fff;
  background: linear-gradient(180deg, #fbbb66, #f6a63c 50%, #ef9424);
  border-color: rgba(150, 80, 8, 0.6);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 16px 32px -8px rgba(224, 127, 18, 0.66), 0 4px 10px rgba(19, 30, 61, 0.2);
}

.versao-teste .sol-link-fixo:hover {
  color: #fff;
  background: linear-gradient(180deg, #fbbb66, #f6a63c 50%, #ef9424);
  border-color: rgba(150, 80, 8, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 16px 32px -8px rgba(224, 127, 18, 0.66);
  transform: translateX(-50%) translateY(-2px);
}

/* WhatsApp: verde da marca do app, texto branco (igual aos laranja) e destaque forte */
.versao-teste .btn-whatsapp {
  color: #fff;
  background: linear-gradient(180deg, #2fd873, #1eb85c 52%, #159a4e);
  border: 1px solid rgba(6, 40, 27, 0.3);
  text-shadow: 0 1px 2px rgba(6, 50, 30, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.12), 0 12px 26px -8px rgba(16, 163, 83, 0.6);
}

.versao-teste .btn-whatsapp:hover {
  color: #fff;
  background: linear-gradient(180deg, #37e37e, #24c466 45%, #17a655);
  border-color: rgba(6, 40, 27, 0.4);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.16), 0 16px 32px -8px rgba(16, 163, 83, 0.66);
}

/* Fundo cromático: arcos inspirados no corte da estrela da marca. */
.versao-teste .hero,
.versao-teste .solucoes,
.versao-teste .metodo,
.versao-teste .parceiros {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.versao-teste .hero,
.versao-teste .metodo,
.versao-teste .parceiros { background: #f9fbff; }
.versao-teste .solucoes { background: #f2f5fa; }

.versao-teste .hero::before,
.versao-teste .solucoes::before,
.versao-teste .metodo::before,
.versao-teste .parceiros::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -36%;
  pointer-events: none;
  opacity: 0.52;
  background:
    radial-gradient(ellipse at 18% 28%, rgba(156, 190, 239, 0.34), transparent 31%),
    radial-gradient(ellipse at 76% 18%, rgba(45, 85, 184, 0.15), transparent 27%),
    radial-gradient(ellipse at 72% 78%, rgba(247, 180, 92, 0.22), transparent 28%),
    radial-gradient(ellipse at 30% 82%, rgba(205, 211, 222, 0.36), transparent 30%);
  transform: translate3d(-2%, -1%, 0) rotate(-3deg);
}

.versao-teste .hero::after,
.versao-teste .solucoes::after,
.versao-teste .metodo::after,
.versao-teste .parceiros::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(980px, 82vw);
  aspect-ratio: 1.9 / 1;
  right: -24%;
  top: 8%;
  pointer-events: none;
  opacity: 0.46;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, transparent 56%, rgba(45, 85, 184, 0.055) 57%, rgba(45, 85, 184, 0.055) 62%, transparent 63%),
    radial-gradient(ellipse at 44% 54%, transparent 61%, rgba(224, 127, 18, 0.045) 62%, rgba(224, 127, 18, 0.045) 66%, transparent 67%);
  transform: rotate(-11deg);
}

.versao-teste .solucoes::before { animation-delay: -5s; }
.versao-teste .metodo::before { animation-delay: -9s; }
.versao-teste .parceiros::before { animation-delay: -13s; }
.versao-teste .hero > .container,
.versao-teste .solucoes > .container,
.versao-teste .metodo > .container,
.versao-teste .parceiros > .container { position: relative; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .versao-teste .hero::before,
  .versao-teste .solucoes::before,
  .versao-teste .metodo::before,
  .versao-teste .parceiros::before { animation: starlineOndas 20s var(--ease-in-out) infinite alternate; }

  .versao-teste .solucoes::before { animation-delay: -5s; }
  .versao-teste .metodo::before { animation-delay: -9s; }
  .versao-teste .parceiros::before { animation-delay: -13s; }
}

@keyframes starlineOndas {
  0% { transform: translate3d(-2%, -1%, 0) rotate(-3deg) scale(1); }
  50% { transform: translate3d(4%, 2%, 0) rotate(2deg) scale(1.03); }
  100% { transform: translate3d(-1%, 5%, 0) rotate(-1deg) scale(1.06); }
}

/* Hero: enquadramento por assunto e preenchimento seguro no mobile. */
.versao-teste .hero-photo { background: var(--navy-950); }
.versao-teste .hero-photo::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -18px;
  pointer-events: none;
  opacity: 0;
  background-image: var(--hero-active-image);
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(0.82);
  transform: scale(1.08);
}

.versao-teste .hero-photo img { z-index: 1; }
.versao-teste .hero-slide-familia { object-position: 50% 43%; }
.versao-teste .hero-slide-empresa { object-position: 50% 42%; }
.versao-teste .hero-slide-saude { object-position: 50% 42%; }
.versao-teste .hero-slide-viagem { object-position: 50% 50%; }

/* Legenda institucional centralizada no mesmo padrão da referência. */
.versao-teste .sobre-photo figcaption {
  justify-content: center;
  text-align: center;
}

/* Verso dos serviços: foto limpa em cima, informação centralizada embaixo. */
.versao-teste .sol-flip { min-height: 326px; }
.versao-teste .sol-back {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 126px;
  justify-content: stretch;
  align-items: stretch;
  background: var(--navy-950);
  text-align: center;
}

.versao-teste .sol-flip.virado .sol-inner { transform: rotateY(180deg); }

.versao-teste .sol-back-media {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.versao-teste .sol-vida .sol-back-media { object-position: 50% 42%; }
.versao-teste .sol-viagem .sol-back-media { object-position: 50% 38%; }

.versao-teste .sol-back-body {
  width: 100%;
  height: auto;
  padding: 11px 14px 54px;
  justify-content: center;
  background: var(--navy-950);
}

.versao-teste .sol-back-label {
  width: 100%;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
}

.versao-teste .sol-bene {
  width: 100%;
  height: 38px;
  margin: 0;
  border: 0;
  background: #fff;
  box-shadow: none;
}

.versao-teste .sol-bene span,
.versao-teste .sol-bene span:first-child,
.versao-teste .sol-flip:hover .sol-bene span,
.versao-teste .sol-flip:hover .sol-bene span:first-child {
  opacity: 0;
  transform: translateY(6px);
  animation: none !important;
  transition: opacity 0.26s var(--ease-out), transform 0.26s var(--ease-out);
}

.versao-teste .sol-bene span.ativo,
.versao-teste .sol-flip:hover .sol-bene span.ativo {
  opacity: 1;
  transform: none;
}

.versao-teste .solucoes-nota {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 760px) {
  .versao-teste .hero-photo { height: clamp(184px, 22.5vh, 190px); }
  .versao-teste .hero-photo::before { opacity: 0.58; }
  .versao-teste .hero-photo img {
    object-fit: contain;
    object-position: center;
  }

  .versao-teste .sol-flip,
  .versao-teste .sol-cta { min-height: 310px; }
  .versao-teste .sol-back { grid-template-rows: minmax(0, 1fr) 124px; }
  .versao-teste .sol-back-body { padding-inline: 12px; }
  .versao-teste .solucoes-nota { padding-inline: var(--pad); }
}

/* ==========================================================================
   BLOCO A — novas seções do redesign (Diagnóstico Starline)
   Hero painel · Dores · Critério · Perfis · Pet · Portabilidade ·
   Passo a passo (estrela) · Avaliações · FAQ · Acesso do Corretor
   ========================================================================== */

/* Header: CTA no lugar dos botões de corretor */
.header-cta { margin-left: 8px; display: none; } /* oculto no desktop; aparece só no menu mobile */

/* Reset para os CTAs que viraram <button> */
button.sol-link { font-family: var(--sans); cursor: pointer; }

/* --- Hero: painel de intenção "O que trouxe você até aqui?" --- */
.versao-teste .hero { flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 34px); }
.hero-painel-wrap { width: 100%; }

.hero-painel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: clamp(16px, 2vw, 22px);
  box-shadow: 0 10px 30px -18px rgba(19, 30, 61, 0.4);
}

.hero-painel-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--navy-950);
  margin-bottom: 14px;
}

.hero-painel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.painel-opcao {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.painel-opcao::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  flex: none;
}

@media (hover: hover) and (pointer: fine) {
  .painel-opcao:hover { border-color: var(--orange-500); transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(19, 30, 61, 0.4); }
}
.painel-opcao:active { transform: scale(0.98); }
.painel-opcao:focus-visible { outline: 3px solid rgba(45, 85, 184, 0.32); outline-offset: 2px; }

/* --- Dores --- */
.dores { padding: var(--section-y) 0; background: var(--bg); }

.dores-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dor {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .dor:hover { border-color: var(--orange-500); transform: translateY(-3px); }
}

.dor-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.dor-media img { width: 100%; height: 100%; object-fit: cover; }
.dor-corpo { padding: clamp(18px, 2vw, 24px); }
.dor-corpo h3 { margin-bottom: 8px; }
.dor-corpo p { color: var(--muted); font-size: 0.98rem; }

/* --- Critério: faixa navy de posicionamento --- */
.criterio { background: var(--navy-900); color: #fff; padding: var(--section-y) 0; border-top: 2px solid var(--orange-500); }
.criterio-inner { max-width: 820px; margin-inline: auto; text-align: center; }
.criterio-inner > * { margin-inline: auto; }
.criterio-kicker {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; color: var(--orange-300); margin-bottom: 14px;
}
.criterio h2 { color: #fff; text-align: center; }
.criterio-texto { margin: 16px auto 0; font-size: 1.12rem; color: rgba(255, 255, 255, 0.86); max-width: 68ch; text-align: center; }

/* --- Soluções por categoria: accordion (uma aberta por vez) com os cards dentro --- */
.cats { display: grid; gap: 14px; }
.cat {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.cat[open] { border-color: var(--orange-500); box-shadow: 0 14px 34px -22px rgba(19, 30, 61, 0.5); }
.cat-head {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(18px, 2vw, 24px); min-height: 64px;
}
.cat-head::-webkit-details-marker { display: none; }
.cat-head:focus-visible { outline: 3px solid rgba(45, 85, 184, 0.32); outline-offset: -3px; }
.cat-titulo { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); color: var(--navy-950); }
.cat-seta { position: relative; width: 20px; height: 20px; flex: none; }
.cat-seta::before, .cat-seta::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--royal-600);
  transform: translate(-50%, -50%); transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.cat-seta::before { width: 16px; height: 2px; }
.cat-seta::after { width: 2px; height: 16px; }
.cat[open] .cat-seta::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.cat[open] .cat-seta::before { background: var(--orange-600); }
.cat-corpo { padding: 0 clamp(16px, 2vw, 24px) clamp(20px, 2.4vw, 26px); }
.cat-intro { color: var(--muted); margin-bottom: 18px; max-width: 72ch; }
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.cat-grid-5 { grid-template-columns: repeat(5, 1fr); }
.cat-cta { margin-top: 20px; }
/* Respiro entre o bloco de categorias e o que vem depois */
.solucoes .cats { margin-bottom: clamp(24px, 3.5vw, 40px); }
.solucoes .portabilidade { margin-bottom: clamp(8px, 1.5vw, 16px); }
@media (max-width: 1023px) { .cat-grid, .cat-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cat-grid, .cat-grid-5 { grid-template-columns: 1fr; } }

/* --- Perfis retráteis (accordion nativo, um aberto por vez via name) --- */
.perfis { padding: var(--section-y) 0; background: var(--bg-soft); }
.perfis-lista { display: grid; gap: 14px; }

.perfil {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.perfil[open] { border-color: var(--orange-500); box-shadow: 0 14px 34px -22px rgba(19, 30, 61, 0.5); }

.perfil > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 2vw, 24px);
  min-height: 64px;
}
.perfil > summary::-webkit-details-marker { display: none; }
.perfil > summary:focus-visible { outline: 3px solid rgba(45, 85, 184, 0.32); outline-offset: -3px; }

.perfil-titulo { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--navy-950); }

.perfil-seta { position: relative; width: 20px; height: 20px; flex: none; }
.perfil-seta::before,
.perfil-seta::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--royal-600);
  transform: translate(-50%, -50%); transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.perfil-seta::before { width: 16px; height: 2px; }
.perfil-seta::after { width: 2px; height: 16px; }
.perfil[open] .perfil-seta::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.perfil[open] .perfil-seta::before { background: var(--orange-600); }

.perfil-corpo { padding: 0 clamp(18px, 2vw, 24px) clamp(20px, 2.4vw, 26px); }
.perfil-corpo h3 { margin-bottom: 8px; }
.perfil-corpo p { color: var(--muted); margin-bottom: 18px; max-width: 70ch; }

/* --- Soluções: grade de 5 cards + CTA que fecha a linha --- */
@media (min-width: 761px) {
  .solucoes-grid-5 .sol-cta { grid-column: 2 / -1; }
}

/* Pet: verso icônico em gradiente (sem foto) */
.sol-pet .sol-back,
.sol-back-gradiente {
  background: linear-gradient(150deg, var(--navy-900), var(--royal-600) 55%, var(--orange-500));
  color: #fff;
}
.versao-teste .sol-pet .sol-back {
  grid-template-rows: 1fr;
  background: linear-gradient(150deg, var(--navy-900), var(--royal-600) 55%, var(--orange-500));
}
.versao-teste .sol-pet .sol-back-body {
  justify-content: center;
  gap: 10px;
  padding-bottom: 54px;
  background: transparent;
}
.sol-back-ico { width: 40px; height: 40px; color: rgba(255, 255, 255, 0.92); }
.versao-teste .sol-pet .sol-back-label { color: rgba(255, 255, 255, 0.82); }

/* --- Portabilidade: faixa com ícone em gradiente --- */
.portabilidade {
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.portabilidade::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--orange-600), var(--orange-300));
}
.portabilidade-ico {
  display: grid; place-items: center; width: 60px; height: 60px; flex: none;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--orange-500), var(--orange-300));
  color: var(--navy-950);
}
.portabilidade-ico svg { width: 32px; height: 32px; }
.portabilidade-copy h3 { color: #fff; margin-bottom: 6px; }
.portabilidade-copy p { color: rgba(255, 255, 255, 0.84); font-size: 0.98rem; max-width: 74ch; }
.portabilidade .btn { white-space: nowrap; }

.parceiros-nota,
.solucoes-nota { color: var(--muted); }
.parceiros-nota { margin: 16px auto 0; max-width: none; font-size: 0.82rem; text-align: center; }

/* --- Passo a passo: estrela percorrendo a linha --- */
.metodo-trilho { position: relative; }

.metodo-estrela {
  position: absolute;
  top: 26px;
  left: calc(8% + 84% * var(--fill, 0));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #fff, #fff 56%, #fff5e8);
  box-shadow: 0 0 0 1px rgba(224, 127, 18, 0.35), 0 0 20px 3px rgba(247, 154, 38, 0.45), 0 8px 18px rgba(224, 127, 18, 0.34);
  transform: translate(-50%, -50%);
  transition: left var(--metodo-dur, 0.9s) var(--ease-in-out);
}
.metodo-estrela .star { width: 23px; height: 23px; filter: drop-shadow(0 1px 1px rgba(224, 127, 18, 0.4)); }
html:not(.js) .metodo-estrela { display: none; }

@media (prefers-reduced-motion: reduce) {
  .metodo-estrela { transition: none; }
}

/* --- Avaliações (carrossel com avaliações reais do Google) --- */
.avaliacoes { padding: var(--section-y) 0; background: var(--bg); }

.avaliacoes-resumo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 4px auto 28px;
  padding: 12px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 26px -20px rgba(19, 30, 61, 0.55);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.avaliacoes-resumo-badge:hover {
  border-color: var(--orange-500);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(19, 30, 61, 0.55);
}
.avaliacoes-resumo-badge:focus-visible { outline: 3px solid rgba(45, 85, 184, 0.32); outline-offset: 3px; }
.avaliacoes-badge-ir { color: var(--royal-600); font-weight: 700; font-size: 1rem; line-height: 1; }
.avaliacoes-nota { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--navy-950); line-height: 1; }
.avaliacoes-estrelas { color: var(--orange-500); font-size: 1rem; letter-spacing: 0.05em; }
.avaliacoes-texto { color: var(--muted); font-size: 0.92rem; }
.avaliacoes-texto strong { color: var(--navy-950); }

/* Carrossel de avaliações: marquee em loop, pausa no hover/foco, reduced-motion vira scroll */
.avaliacoes-carrossel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.avaliacoes-track {
  list-style: none;
  display: flex;
  width: max-content;
  animation: avaliacoesScroll 80s linear infinite;
}
.avaliacoes-carrossel:hover .avaliacoes-track,
.avaliacoes-carrossel:focus-within .avaliacoes-track { animation-play-state: paused; }
.avaliacao-card {
  flex: 0 0 auto;
  width: clamp(266px, 30vw, 338px);
  margin-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 30px -24px rgba(19, 30, 61, 0.5);
}
.avaliacao-estrelas { color: var(--orange-500); font-size: 1rem; letter-spacing: 0.06em; }
.avaliacao-texto { color: var(--navy-950); font-size: 0.95rem; line-height: 1.5; margin: 0; }
.avaliacao-autor { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.avaliacao-avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--royal-600);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}
.avaliacao-meta { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.avaliacao-nome { font-weight: 700; color: var(--navy-950); font-size: 0.9rem; }
.avaliacao-quando { color: var(--muted); font-size: 0.8rem; }

@keyframes avaliacoesScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .avaliacoes-track { animation: none; }
  .avaliacoes-carrossel { overflow-x: auto; scrollbar-width: none; }
  .avaliacoes-carrossel::-webkit-scrollbar { display: none; }
}

/* --- FAQ (accordion) --- */
.faq { padding: var(--section-y) 0; background: var(--bg-soft); }
.faq-lista {
  max-width: 820px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  overflow: hidden;
}
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--navy-950);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:focus-visible { outline: 3px solid rgba(45, 85, 184, 0.32); outline-offset: -3px; }
.faq-item[open] > summary { color: var(--royal-600); }

.faq-seta { position: relative; width: 18px; height: 18px; flex: none; }
.faq-seta::before,
.faq-seta::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--royal-600);
  transform: translate(-50%, -50%); transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.faq-seta::before { width: 14px; height: 2px; }
.faq-seta::after { width: 2px; height: 14px; }
.faq-item[open] .faq-seta::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq-item[open] .faq-seta::before { background: var(--orange-600); }

.faq-corpo { padding: 0 clamp(18px, 2vw, 24px) 20px; }
.faq-corpo p { color: var(--muted); max-width: 74ch; }

/* FAQ por categoria: cada categoria abre suas perguntas (uma por vez via name) */
.faq-cat { border-top: 1px solid var(--line); }
.faq-cat:first-child { border-top: 0; }
.faq-cat-head {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(18px, 2vw, 24px);
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; color: var(--navy-950);
}
.faq-cat-head::-webkit-details-marker { display: none; }
.faq-cat-head:focus-visible { outline: 3px solid rgba(45, 85, 184, 0.32); outline-offset: -3px; }
.faq-cat[open] > .faq-cat-head { color: var(--royal-600); border-bottom: 1px solid var(--line); }
.faq-cat-seta { position: relative; width: 20px; height: 20px; flex: none; }
.faq-cat-seta::before,
.faq-cat-seta::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--orange-500);
  transform: translate(-50%, -50%); transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.faq-cat-seta::before { width: 12px; height: 2px; }
.faq-cat-seta::after { width: 2px; height: 12px; }
.faq-cat[open] > .faq-cat-head .faq-cat-seta::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq-cat-corpo { background: var(--bg-soft); border-left: 3px solid var(--orange-500); }
.faq-cat-corpo .faq-item { border-top: 1px solid var(--line); }
.faq-cat-corpo .faq-item:first-child { border-top: 0; }
.faq-cat-corpo .faq-item > summary { padding-left: clamp(18px, 2vw, 24px); font-size: 0.98rem; }

/* --- Reveal das novas seções --- */
html.js .hero-painel.reveal,
html.js .dor.reveal,
html.js .criterio-inner.reveal,
html.js .perfil.reveal,
html.js .portabilidade.reveal,
html.js .avaliacoes-resumo-badge.reveal,
html.js .faq-item.reveal { opacity: 0; transform: translateY(18px); }
html.js .hero-painel.reveal.in,
html.js .dor.reveal.in,
html.js .criterio-inner.reveal.in,
html.js .perfil.reveal.in,
html.js .portabilidade.reveal.in,
html.js .avaliacoes-resumo-badge.reveal.in,
html.js .faq-item.reveal.in { opacity: 1; transform: none; }

html.js .dor.reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .dor.reveal:nth-child(3) { transition-delay: 0.16s; }

/* --- Responsivo das novas seções --- */
@media (max-width: 920px) {
  .dores-grid { grid-template-columns: 1fr; }
  .portabilidade { grid-template-columns: auto 1fr; }
  .portabilidade .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 760px) {
  /* No empilhado, a estrela viajante cruzava por cima dos passos: o trilho vertical + os números já contam o progresso, então some com ela pra ficar clean. */
  .metodo-estrela { display: none; }
  .versao-teste .hero-painel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .portabilidade { grid-template-columns: 1fr; text-align: left; }
  .portabilidade-ico { display: none; }
  .avaliacao-card { width: clamp(240px, 78vw, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  html.js .hero-painel.reveal,
  html.js .dor.reveal,
  html.js .criterio-inner.reveal,
  html.js .perfil.reveal,
  html.js .portabilidade.reveal,
  html.js .avaliacoes-resumo-badge.reveal,
  html.js .faq-item.reveal { opacity: 1; transform: none; transition: none; }
  .perfil-seta::before, .perfil-seta::after,
  .faq-seta::before, .faq-seta::after { transition: none; }
}

/* ==========================================================================
   Diagnóstico Starline — engine multi-etapas (.diag-*)
   ========================================================================== */
.diag { color: var(--ink); }

/* Progresso: estrela percorrendo o fio */
.diag-progresso { margin-bottom: 22px; }
.diag-fio { position: relative; height: 4px; border-radius: 999px; background: var(--line); }
.diag-fio-fill { position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 999px; background: var(--grad); transition: width 0.6s var(--ease-out); }
.diag-estrela {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 36%, #fff, #fff 56%, #fff5e8); border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(224, 127, 18, 0.3), 0 0 14px 2px rgba(247, 154, 38, 0.5), 0 3px 10px rgba(8, 15, 35, 0.2);
  transition: left 0.6s var(--ease-out);
}
.diag-estrela .star { width: 17px; height: 17px; fill: var(--orange-500); filter: drop-shadow(0 1px 1px rgba(224, 127, 18, 0.4)); }
/* Contador textual só para leitor de tela: a barra + estrela já comunicam o progresso visualmente,
   e o total "de N" seria enganoso num fluxo com ramificação condicional. */
.diag-etapa { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Fieldset / pergunta */
.diag-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.diag-legend { display: block; padding: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.8rem); line-height: 1.2; color: var(--navy-950); text-wrap: balance; }
.diag-legend:focus { outline: none; }
.diag-ajuda { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.diag-erro { margin-top: 12px; color: #b3261e; font-size: 0.9rem; font-weight: 600; }

/* Opções (single / multi) */
.diag-opcoes { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.diag-opcao {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px; border: 1.5px solid var(--royal-600); border-radius: var(--radius-ui);
  background: var(--royal-600); cursor: pointer; font-size: 0.95rem; color: #fff; line-height: 1.35;
  transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), transform 0.12s var(--ease-out);
}
.diag-opcao:hover { background: #274ea6; border-color: #274ea6; transform: translateY(-1px); }
.diag-opcao:has(input:checked) { background: var(--navy-900); border-color: var(--orange-500); box-shadow: 0 0 0 2px var(--orange-500) inset; }
.diag-opcao:has(input:disabled) { opacity: 0.42; cursor: not-allowed; }
.diag-opcao:has(input:focus-visible) { outline: 3px solid rgba(247, 154, 38, 0.5); outline-offset: 2px; }
.diag-radio, .diag-check { width: 19px; height: 19px; flex-shrink: 0; accent-color: #fff; cursor: pointer; }
.diag-inline { margin-top: 12px; }

/* Campos de texto / inputs */
.diag-input {
  width: 100%; min-height: 46px; padding: 10px 13px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-ui);
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink); background: #fff;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.diag-input:focus { outline: none; border-color: var(--royal-600); box-shadow: 0 0 0 3px rgba(45, 85, 184, 0.18); }
.diag-outro { margin-top: 12px; }
.diag-campo-lbl { display: block; margin-top: 14px; font-weight: 600; font-size: 0.86rem; color: var(--navy-950); }

/* Contadores por faixa */
.diag-contadores { margin-top: 18px; display: grid; gap: 10px; }
.diag-contador { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-ui); }
.diag-contador-lbl { font-weight: 600; font-size: 0.95rem; }
.diag-stepper { display: inline-flex; align-items: center; gap: 6px; }
.diag-step { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); font-size: 1.2rem; line-height: 1; color: var(--navy-900); cursor: pointer; }
.diag-step:hover { background: #fff; border-color: var(--royal-600); }
.diag-num { width: 56px; height: 38px; text-align: center; border: 1px solid var(--line); border-radius: 10px; font-family: var(--sans); font-size: 1rem; color: var(--ink); }
.diag-datas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }

/* CEP */
.diag-cep { margin-top: 16px; }
.diag-cep-status { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
.diag-cep-resultado { margin-top: 8px; font-weight: 700; color: var(--royal-600); }
.diag-cep-manual { margin-top: 10px; display: grid; grid-template-columns: 1fr 100px; gap: 12px; }
.diag-link { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--royal-600); font-family: var(--sans); font-weight: 600; font-size: 0.9rem; text-decoration: underline; cursor: pointer; }
.diag-link:hover { color: var(--navy-900); }

/* FAQ contextual interno: fechado por padrão, abre num toque */
.diag-faq { margin-top: 18px; }
.diag-faq-titulo {
  list-style: none; cursor: pointer; position: relative;
  margin: 0; padding: 11px 34px 11px 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--orange-500); border-radius: var(--radius-ui);
  background: var(--bg-soft);
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.01em; color: var(--navy-950);
}
.diag-faq-titulo::-webkit-details-marker { display: none; }
.diag-faq-titulo::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; font-weight: 700; color: var(--orange-500); }
.diag-faq[open] > .diag-faq-titulo { border-radius: var(--radius-ui) var(--radius-ui) 0 0; }
.diag-faq[open] > .diag-faq-titulo::after { content: "\2212"; }
.diag-faq-titulo:focus-visible { outline: 3px solid rgba(45, 85, 184, 0.32); outline-offset: 2px; }
.diag-faq-lista { margin-top: 0; padding: 6px 14px; border: 1px solid var(--line); border-top: 0; border-left: 3px solid var(--orange-500); border-radius: 0 0 var(--radius-ui) var(--radius-ui); background: var(--bg-soft); }
.diag-faq-item summary { list-style: none; position: relative; padding-right: 22px; }
.diag-faq-item summary::-webkit-details-marker { display: none; }
.diag-faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--orange-500); }
.diag-faq-item[open] summary::after { content: "\2212"; }
.diag-faq-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.diag-faq-item:last-child { border-bottom: 0; }
.diag-faq-item summary { font-weight: 600; font-size: 0.92rem; color: var(--navy-950); cursor: pointer; }
.diag-faq-resp { margin-top: 8px; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.diag-faq-resp p { margin: 0; }

/* Revisão editável */
.diag-revisao { margin-top: 18px; display: grid; gap: 8px; }
.diag-rev-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius-ui); background: var(--bg-soft); }
.diag-rev-lbl { display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.diag-rev-val { display: block; margin-top: 3px; font-size: 0.98rem; color: var(--ink); }
.diag-editar { flex-shrink: 0; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--royal-600); font-family: var(--sans); font-weight: 700; font-size: 0.8rem; cursor: pointer; }
.diag-editar:hover { border-color: var(--royal-600); }

/* Contato */
.diag-consent { margin-top: 18px; font-weight: 400; font-size: 0.9rem; align-items: flex-start; }
.diag-consent .diag-check { margin-top: 1px; }
.diag-consent a { color: var(--royal-600); font-weight: 600; }
.diag-aviso { margin-top: 16px; padding: 12px 15px; border-radius: var(--radius-ui); background: var(--bg-soft); color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* Navegação */
.diag-nav { display: flex; gap: 12px; margin-top: 26px; }
.diag-nav .diag-continuar { flex: 1; }
.diag-nav .diag-voltar { flex-shrink: 0; }
.diag-nav .btn { min-height: 50px; }

/* Sucesso */
.diag-sucesso { text-align: center; padding: 8px 0; }
.diag-sucesso-ico { width: 60px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(8, 15, 35, 0.28); }
.diag-sucesso-ico img { width: 38px; height: auto; }
.diag-sucesso-titulo { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #fff; text-wrap: balance; }
.diag-sucesso-titulo:focus { outline: none; }
.diag-sucesso-txt { margin-top: 8px; color: rgba(255, 255, 255, 0.72); }
.diag-sucesso-acoes { margin-top: 20px; display: grid; gap: 10px; }

/* Aviso "toque em enviar": meio-termo — chama atenção sem gritar. Centralizado. */
.diag-sucesso-alerta {
  margin: 16px auto 4px;
  max-width: 420px;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 14px 18px;
  border-radius: var(--radius-ui);
  background: rgba(225, 29, 21, 0.14);
  border: 1px solid rgba(255, 120, 112, 0.55);
  color: #ffd7d3; font-weight: 700; font-size: 0.96rem; line-height: 1.35;
  text-align: center; text-wrap: balance;
}
.diag-sucesso-alerta-ico {
  flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: #e5352d; color: #fff; font-size: 0.9rem; font-weight: 800;
}

/* Recomeçar do zero */
.diag-nav-wrap { display: grid; gap: 12px; margin-top: 24px; }
.diag-nav-wrap .diag-nav { margin-top: 0; }
.diag-recomecar {
  justify-self: center; padding: 6px 10px; border: 0; background: none;
  color: rgba(255, 255, 255, 0.62); font-family: var(--sans); font-weight: 600; font-size: 0.84rem;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.diag-recomecar:hover { color: #fff; }

/* Aviso "toque em enviar" antes do envio (etapa de contato): meio-termo */
.diag-aviso-enviar {
  margin-top: 16px; display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 16px; border-radius: var(--radius-ui);
  background: rgba(247, 154, 38, 0.14); border: 1px solid rgba(247, 154, 38, 0.5);
  color: #ffe4c2; font-size: 0.92rem; line-height: 1.45;
}
.diag-aviso-enviar-ico {
  flex: none; display: grid; place-items: center; margin-top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange-500); color: var(--navy-950); font-size: 0.85rem; font-weight: 800;
}

/* ==========================================================================
   Modal do diagnóstico — tema Starline (fundo azul escuro)
   Escopo em .simulacao-modal para não afetar o form inline da página.
   ========================================================================== */
.simulacao-modal-shell { background: linear-gradient(180deg, #172550, #101a3a); }
.simulacao-modal-topo { border-bottom-color: rgba(255, 255, 255, 0.14); }
.simulacao-modal-topo h2, .simulacao-modal .diag-legend { color: #fff; }
.simulacao-modal-topo #modal-descricao { color: rgba(255, 255, 255, 0.72); }
.simulacao-modal-kicker { color: var(--orange-300); }
.simulacao-modal-fechar { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.simulacao-modal-fechar:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.45); }

.simulacao-modal .diag-ajuda { color: rgba(255, 255, 255, 0.68); }
.simulacao-modal .diag-erro { color: #ff9a92; }

/* Botão fantasma (Voltar / "Já enviei") legível no escuro */
.simulacao-modal .btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.simulacao-modal .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.simulacao-modal .diag-campo-lbl { color: #fff; }
.simulacao-modal .diag-cep-status { color: rgba(255, 255, 255, 0.7); }
.simulacao-modal .diag-cep-resultado { color: var(--orange-300); }
.simulacao-modal .diag-link { color: var(--orange-300); }
.simulacao-modal .diag-link:hover { color: #fff; }

/* Opções azuis destacadas sobre o fundo escuro */
.simulacao-modal .diag-opcao { border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.32); }

/* Steppers e números legíveis no escuro */
.simulacao-modal .diag-contador { border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.simulacao-modal .diag-contador-lbl { color: #fff; }
.simulacao-modal .diag-step { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); color: #fff; }
.simulacao-modal .diag-step:hover { background: rgba(255, 255, 255, 0.18); }
.simulacao-modal .diag-num { background: #fff; color: var(--ink); border-color: rgba(255, 255, 255, 0.24); }

/* Revisão editável no escuro */
.simulacao-modal .diag-rev-item { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.simulacao-modal .diag-rev-lbl { color: rgba(255, 255, 255, 0.6); }
.simulacao-modal .diag-rev-val { color: #fff; }
.simulacao-modal .diag-editar { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.simulacao-modal .diag-editar:hover { border-color: var(--orange-500); }

/* FAQ contextual no escuro */
.simulacao-modal .diag-faq-titulo { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.simulacao-modal .diag-faq-lista { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.16); }
.simulacao-modal .diag-faq-item { border-bottom-color: rgba(255, 255, 255, 0.12); }
.simulacao-modal .diag-faq-item summary { color: #fff; }
.simulacao-modal .diag-faq-resp { color: rgba(255, 255, 255, 0.72); }

/* Compactação: cabe mais na tela sem apertar */
.simulacao-modal-shell { padding: clamp(18px, 2.4vw, 26px); }
.simulacao-modal-topo { margin-bottom: 16px; padding-bottom: 14px; }
.simulacao-modal-topo h2 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.95rem); }
.simulacao-modal-topo #modal-descricao { margin-top: 7px; font-size: 0.94rem; }
.simulacao-modal .diag-legend { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); }
.simulacao-modal .diag-opcoes { margin-top: 14px; gap: 8px; }
.simulacao-modal .diag-opcao { padding: 11px 13px; font-size: 0.92rem; }
.simulacao-modal .diag-ajuda { font-size: 0.88rem; }

@media (max-width: 560px) {
  .diag-opcoes { grid-template-columns: 1fr; }
  .diag-datas { grid-template-columns: 1fr; }
  .diag-nav { flex-direction: column-reverse; }
  .diag-nav .diag-voltar { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .abertura {
    display: none;
    transition: none;
  }
  .diag-fio-fill, .diag-estrela { transition: none; }
}

/* Toque: evita seleção acidental e o menu de long-press ao arrastar o dedo.
   Contatos (telefone, e-mail, endereço) seguem selecionáveis/copiáveis. */
@media (pointer: coarse) {
  body { -webkit-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
  input, textarea { -webkit-user-select: text; user-select: text; }
  .footer-contato, .footer-contato *, address, address *,
  a[href^="tel"], a[href^="mailto"], a[href^="https://wa.me"] {
    -webkit-user-select: text; user-select: text; -webkit-touch-callout: default;
  }
}

/* ==========================================================================
   Hero em banner: a imagem já contém a direção de arte e a área de leitura.
   Novos slides reutilizam .hero-banner-slide e um botão em .hero-banner-nav.
   ========================================================================== */
.hero {
  padding: calc(var(--header-h) + clamp(12px, 2vw, 22px)) 0 clamp(28px, 3vw, 42px);
}
.hero-banner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: var(--radius-card);
  background: var(--navy-950);
}
.hero-banner-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 650ms var(--ease-out);
}
.hero-banner-slide.ativo { position: absolute; width: 100%; height: 100%; min-height: 0; opacity: 1; pointer-events: auto; }
.hero-banner-media,
.hero-banner-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-banner-media img { object-fit: cover; }
.hero-banner-copy {
  position: relative;
  z-index: 1;
  width: min(49%, 570px);
  margin-left: clamp(28px, 5vw, 76px);
  padding-block: clamp(28px, 4vw, 64px) 76px;
  color: #fff;
}
.hero-banner-copy h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 3.85rem); text-shadow: 0 2px 20px rgba(5, 15, 39, 0.28); }
.hero-copy-mobile { display: none; }
.hero-banner-copy .hero-kicker { margin-bottom: 18px; color: var(--orange-300); }
.hero-banner-copy .hero-sub { margin-top: 20px; color: rgba(255, 255, 255, 0.84); }
.hero-banner-copy .hero-actions { margin-top: 30px; }
.hero-banner-proof {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}
.hero-banner-proof strong { color: #fff; }
.hero-banner-nav {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: clamp(28px, 5vw, 76px);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-banner-dot {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 250ms var(--ease-out), background-color 250ms var(--ease-out);
}
.hero-banner-dot.ativo { width: 54px; background: var(--orange-500); }
.hero-banner-dot:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .hero-banner-slide, .hero-banner-dot { transition: none; }
}

/* Hero definitivo: a imagem em fluxo define a altura e aparece inteira. */
.hero .hero-banner {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}
.hero > .container { width: 100%; }
.hero .hero-banner-slide { position: absolute; display: block; }
.hero .hero-banner-slide.ativo {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
}
.hero .hero-banner-media {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
}
.hero .hero-banner-media img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 900;
  object-fit: contain;
}
.hero .hero-banner-copy {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(49%, 570px);
  margin: 0;
  padding: clamp(28px, 4vw, 64px) clamp(24px, 5vw, 76px);
}

@media (min-width: 768px) and (max-width: 1040px) {
  .hero .hero-banner-copy { width: 50%; padding: 24px clamp(22px, 4vw, 42px) 54px; }
  .hero .hero-banner-copy h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); }
  .hero .hero-banner-copy .hero-kicker { margin-bottom: 10px; font-size: 0.76rem; }
  .hero .hero-banner-copy .hero-sub, .hero .hero-banner-proof { display: none; }
  .hero .hero-banner-copy .hero-actions { gap: 8px; margin-top: 18px; }
  .hero .hero-banner-copy .btn { min-height: 42px; padding-inline: 14px; font-size: 0.72rem; }
}

@media (max-width: 767px) {
  .hero .hero-banner {
    width: calc(100% + (2 * var(--pad)));
    height: auto;
    aspect-ratio: 4 / 5;
    margin-inline: calc(-1 * var(--pad));
    border-radius: 0;
  }
  .hero .hero-banner-slide.ativo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero .hero-banner-media,
  .hero .hero-banner-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero .hero-banner-media img {
    aspect-ratio: auto;
    object-fit: cover;
  }
  .hero .hero-banner-copy {
    inset: 0;
    align-self: stretch;
    display: block;
    width: 100%;
    padding: clamp(28px, 7vw, 40px) var(--pad) 78px;
  }
  .hero .hero-copy-desktop { display: none; }
  .hero .hero-copy-mobile { display: inline; }
  .hero .hero-banner-copy h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero .hero-banner-copy .hero-kicker,
  .hero .hero-banner-copy .hero-sub,
  .hero .hero-banner-proof { display: none; }
  .hero .hero-banner-copy .hero-actions {
    position: absolute;
    right: auto;
    bottom: 20px;
    left: var(--pad);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
  }
  .hero .hero-banner-copy .btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.64rem;
    letter-spacing: 0.055em;
    white-space: nowrap;
  }
  .hero .hero-banner-nav { right: var(--pad); bottom: 30px; left: auto; }
}
