/* ==========================================================================
   CredFácil Franquias — Apresentação comercial interativa
   Tokens, sistema de slides, chrome de navegação, componentes e simuladores
   ========================================================================== */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
  /* Paleta CredFácil */
  --green: #12A34B;
  --green-bright: #1DBF5A;
  --green-deep: #0B3A21;
  --green-ink: #062616;
  --orange: #F47A1F;
  --orange-hot: #FF6A00;
  --orange-soft: #FFB37A;
  --orange-pale: #FFF1E6;
  --graphite: #1E1F22;
  --ink: #141517;
  --silver: #EEF0F2;
  --silver-2: #E2E5E9;
  --white: #FFFFFF;
  --text: #1F2124;
  --muted: #6A6E75;
  --muted-on-dark: rgba(255,255,255,.66);

  /* Tipografia */
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(3rem, 5.6vw, 6.2rem);
  --fs-h1: clamp(2.3rem, 3.9vw, 4.3rem);
  --fs-h2: clamp(1.7rem, 2.6vw, 2.9rem);
  --fs-h3: clamp(1.1rem, 1.35vw, 1.45rem);
  --fs-lead: clamp(1rem, 1.15vw, 1.25rem);
  --fs-body: clamp(.88rem, .98vw, 1.05rem);
  --fs-small: clamp(.74rem, .8vw, .86rem);
  --fs-big-number: clamp(5rem, 11vw, 12rem);

  /* Layout */
  --frame-max: 1760px;
  --frame-pad: clamp(28px, 4vw, 80px);
  --chrome-h: 64px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 60px -24px rgba(20, 22, 26, .35);
  --shadow-card: 0 12px 34px -14px rgba(20, 22, 26, .25);
  --shadow-panel: 0 40px 90px -30px rgba(6, 38, 22, .6);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--silver);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Deck (contêiner com scroll-snap) ---------- */
.deck {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }
.no-snap .deck { scroll-snap-type: none; }

/* ---------- Slide base ---------- */
.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--chrome-h) + 8px) 0 calc(var(--chrome-h) + 8px);
}
.frame {
  width: min(var(--frame-max), 100% - var(--frame-pad) * 2);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* Temas de slide */
.slide[data-theme="light"] { background: var(--silver); color: var(--text); }
.slide[data-theme="light"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 50% 0%, #ffffff 0%, rgba(255,255,255,0) 70%),
    radial-gradient(40% 40% at 100% 100%, rgba(244,122,31,.10) 0%, rgba(244,122,31,0) 70%),
    linear-gradient(180deg, #F4F5F7 0%, #E9EBEE 100%);
}
.slide[data-theme="dark"] { background: var(--graphite); color: var(--white); }
.slide[data-theme="dark"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 15% 20%, rgba(244,122,31,.18) 0%, rgba(244,122,31,0) 70%),
    radial-gradient(45% 50% at 90% 90%, rgba(18,163,75,.16) 0%, rgba(18,163,75,0) 70%),
    linear-gradient(180deg, #232427 0%, #151618 100%);
}
.slide[data-theme="green"] { background: var(--green-deep); color: var(--white); }
.slide[data-theme="green"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 85% 10%, rgba(29,191,90,.35) 0%, rgba(29,191,90,0) 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(244,122,31,.22) 0%, rgba(244,122,31,0) 70%),
    linear-gradient(180deg, #0D4426 0%, #072A17 100%);
}
.slide[data-theme="orange"] { background: var(--orange); color: var(--white); }
.slide[data-theme="orange"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 80% 0%, #FF9A3C 0%, rgba(255,154,60,0) 70%),
    linear-gradient(160deg, #FF7A17 0%, #E9640D 100%);
}

/* Linhas finas de "rede" — elemento da identidade (mapa/linhas do material) */
.slide .net {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(244,122,31,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,122,31,.10) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 100%);
}
.slide[data-theme="dark"] .net,
.slide[data-theme="green"] .net {
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
}

/* Formas geométricas (círculos e painéis da identidade) */
.shape {
  position: absolute; z-index: -1; pointer-events: none;
  border-radius: 50%;
}
.shape--orange { background: var(--orange); }
.shape--green { background: var(--green); }
.shape--panel { border-radius: var(--radius-lg); }

/* ---------- Tipografia ---------- */
.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.035em;
}
.h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 62ch; }
.muted { color: var(--muted); }
.slide[data-theme="dark"] .muted,
.slide[data-theme="green"] .muted,
.slide[data-theme="orange"] .muted { color: var(--muted-on-dark); }
.small { font-size: var(--fs-small); }
.accent-o { color: var(--orange); }
.accent-g { color: var(--green); }
.slide[data-theme="green"] .accent-g { color: var(--green-bright); }
.kicker {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }

/* Número grande (assinatura visual do deck) */
.bignum {
  display: inline-flex; align-items: flex-start; gap: .1em;
  font-size: var(--fs-big-number);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.05em;
  color: var(--orange);
}
.bignum__plus {
  font-size: .32em; line-height: 1;
  width: 1.5em; height: 1.5em; margin-top: .25em;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--graphite); color: var(--white);
  letter-spacing: 0;
}
.slide[data-theme="dark"] .bignum__plus,
.slide[data-theme="green"] .bignum__plus { background: var(--white); color: var(--graphite); }
.bignum__unit { font-size: .22em; font-weight: 600; letter-spacing: -.01em; color: var(--text); align-self: flex-end; margin-bottom: .1em; margin-left: .3em; }
.slide[data-theme="dark"] .bignum__unit,
.slide[data-theme="green"] .bignum__unit { color: var(--white); }

/* ---------- Layout utilitários ---------- */
.grid-2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.grid-2--tight { grid-template-columns: 1fr 1fr; }
.grid-2--sim { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 28px); }
.stack > * + * { margin-top: clamp(14px, 1.6vw, 26px); }
.stack--sm > * + * { margin-top: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.slide-head { margin-bottom: clamp(20px, 2.6vw, 44px); }
.slide-head--center { text-align: center; }
.slide-head--center .lead { margin-inline: auto; }

/* ---------- Botões / CTA ---------- */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: clamp(.9rem, 1vw, 1.05rem);
  letter-spacing: -.01em;
  box-shadow: 0 14px 30px -12px rgba(244,122,31,.7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -12px rgba(244,122,31,.8); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.99); }
.btn__icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
.btn__icon svg { width: 14px; height: 14px; }
.btn--green { --btn-bg: var(--green); box-shadow: 0 14px 30px -12px rgba(18,163,75,.7); }
.btn--green:hover { box-shadow: 0 20px 36px -12px rgba(18,163,75,.8); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor; background: rgba(255,255,255,.08); }
.slide[data-theme="light"] .btn--ghost:hover { background: rgba(31,33,36,.06); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--graphite); box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); }
.btn--sm { padding: 11px 18px; font-size: .86rem; gap: 8px; }
.btn--sm .btn__icon { width: 22px; height: 22px; }
.btn--sm .btn__icon svg { width: 11px; height: 11px; }
.btn--lg { padding: 20px 34px; font-size: clamp(1rem, 1.15vw, 1.2rem); }
.btn.is-pressed { animation: press .35s var(--ease); }
@keyframes press { 0% { transform: scale(1); } 40% { transform: scale(.96); } 100% { transform: scale(1); } }

/* Feedback discreto ao clicar em um CTA (sem modal nesta fase) */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--chrome-h) + 22px);
  transform: translate(-50%, 20px);
  background: var(--graphite); color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-size: .86rem; font-weight: 500;
  box-shadow: var(--shadow-soft);
  opacity: 0; pointer-events: none; z-index: 60;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Chrome fixo: topo ---------- */
.chrome-top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--chrome-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 2.4vw, 40px);
  pointer-events: none;
}
.chrome-top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 48px; width: auto; display: block; transition: filter .3s var(--ease); }
/* Nos temas verde e laranja a marca vira versão monocromática branca (mesmo arquivo, sem fundo);
   no grafite e no claro ela permanece nas cores originais */
body.on-green .brand__logo, body.on-orange .brand__logo { filter: brightness(0) invert(1); }
body.on-orange .cta-persist { --btn-bg: #fff; --btn-fg: var(--graphite); box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
body.on-orange .cta-persist .btn__icon { background: var(--orange-pale); color: var(--orange); }
body.on-orange .progress__fill { background: #fff; }
.cta-persist { --btn-bg: #fff; --btn-fg: var(--graphite); box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
body.on-orange .cta-persist .btn__icon { background: var(--orange-pale); color: var(--orange); }
body.on-orange .progress__fill { background: #fff; }
.cta-persist {
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cta-persist.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Chrome fixo: rodapé ---------- */
.chrome-bottom {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  height: var(--chrome-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(20px, 2.4vw, 40px);
  pointer-events: none;
}
.chrome-bottom > * { pointer-events: auto; }
.chapter { font-size: .82rem; font-weight: 600; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.chapter::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
body.on-dark .chapter { color: var(--muted-on-dark); }
.progress { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 220px; }
.progress__num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .86rem; letter-spacing: .04em; color: var(--muted); }
.progress__num b { color: var(--orange); font-weight: 800; }
body.on-dark .progress__num { color: var(--muted-on-dark); }
.progress__bar { width: 220px; height: 4px; border-radius: 4px; background: rgba(120,124,130,.25); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--orange)); border-radius: 4px; transition: width .5s var(--ease); }
.nav { display: flex; justify-content: flex-end; gap: 8px; }
.nav__btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--graphite);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.05);
  transition: transform .2s var(--ease), background .2s var(--ease);
  backdrop-filter: blur(6px);
}
.nav__btn svg { width: 16px; height: 16px; }
.nav__btn:hover { transform: translateY(-2px); background: #fff; }
.nav__btn:disabled { opacity: .35; cursor: default; transform: none; }
body.on-dark .nav__btn { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
body.on-dark .nav__btn:hover { background: rgba(255,255,255,.2); }

/* ---------- Revelação suave (uma coreografia por slide) ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.slide.is-active [data-reveal] { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn::after { display: none; }
  html, .deck { scroll-behavior: auto; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(18px, 1.8vw, 28px);
  box-shadow: var(--shadow-card);
  position: relative;
}
.card--dark { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: #fff; }
.card--orange { background: var(--orange); color: #fff; box-shadow: 0 20px 40px -20px rgba(244,122,31,.8); }
.card--green { background: var(--green); color: #fff; box-shadow: 0 20px 40px -20px rgba(18,163,75,.8); }
.card--outline { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(31,33,36,.12); }
.card__title { font-weight: 700; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; }
.card__meta { font-size: var(--fs-small); color: var(--muted); margin-top: 6px; }
.card--dark .card__meta, .card--orange .card__meta, .card--green .card__meta { color: var(--muted-on-dark); }
.card--link { cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); text-align: left; width: 100%; }
.card--link:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -20px rgba(20,22,26,.35); }

/* Fato/indicador em destaque */
.fact { display: grid; gap: 6px; }
.fact__value { font-size: clamp(1.9rem, 2.8vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--orange); white-space: nowrap; }
.fact__value--green { color: var(--green); }
.fact__label { font-size: var(--fs-small); color: var(--muted); font-weight: 500; line-height: 1.35; }
.slide[data-theme="dark"] .fact__label, .slide[data-theme="green"] .fact__label { color: var(--muted-on-dark); }

/* Lista com marcador da identidade (círculo laranja / check verde) */
.list { display: grid; gap: 9px; }
.list li { position: relative; padding-left: 26px; line-height: 1.4; }
.list li::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.9);
}
.list--check li::before {
  background: var(--green);
  box-shadow: none;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='black'/><path d='M4.5 8.3l2.2 2.2 4.8-4.8' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8' fill='black'/><path d='M4.5 8.3l2.2 2.2 4.8-4.8' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.list--compact { gap: 5px; font-size: var(--fs-small); }
.list--compact li { padding-left: 22px; }
.list--compact li::before { width: 12px; height: 12px; top: .3em; }
.slide[data-theme="dark"] .list li::before, .slide[data-theme="green"] .list li::before { box-shadow: inset 0 0 0 4px rgba(20,22,26,.7); }

/* Texto secundário dentro de cards claros, em qualquer tema */
.card:not(.card--dark):not(.card--orange):not(.card--green) .muted { color: var(--muted); }

/* Chips / pílulas */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: var(--fs-small); font-weight: 600;
  background: rgba(31,33,36,.06); color: var(--text);
}
.chip--orange { background: var(--orange-pale); color: #B3520A; }
.chip--green { background: rgba(18,163,75,.12); color: #0E7A38; }
.chip--dark { background: rgba(255,255,255,.1); color: #fff; }
.chip--solid { background: var(--orange); color: #fff; }
.chip--solid-green { background: var(--green); color: #fff; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .7; }

/* Imagens de composição */
.figure { position: relative; }
.figure__img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; object-fit: cover; }
.figure__img--round { border-radius: 50%; aspect-ratio: 1; }
.figure__back {
  position: absolute; z-index: -1; border-radius: var(--radius-lg);
  background: var(--orange);
}
.cutout { filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.cutout--multiply { mix-blend-mode: multiply; filter: none; }
.mascot { position: absolute; z-index: 3; pointer-events: none; filter: drop-shadow(0 20px 30px rgba(0,0,0,.3)); }

/* ---------- Tabs de produto ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(31,33,36,.06); }
.slide[data-theme="dark"] .tabs, .slide[data-theme="green"] .tabs { background: rgba(255,255,255,.08); }
.tab {
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: var(--fs-small);
  color: inherit; opacity: .75; transition: background .25s var(--ease), opacity .25s var(--ease), color .25s var(--ease);
}
.tab:hover { opacity: 1; }
.tab.is-active { background: var(--orange); color: #fff; opacity: 1; box-shadow: 0 8px 18px -8px rgba(244,122,31,.8); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   SIMULADOR FINANCEIRO — painel "cofre" (verde profundo + laranja)
   ========================================================================== */
.sim {
  --sim-bg: linear-gradient(160deg, #0F4B2B 0%, #072A17 100%);
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--sim-bg);
  color: #fff;
  padding: clamp(20px, 2.2vw, 36px);
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(255,255,255,.12);
  overflow: hidden;
}
.sim::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(29,191,90,.35), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(244,122,31,.25), transparent 70%);
}
.sim > * { position: relative; }
.sim__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: clamp(14px, 1.6vw, 24px); }
.sim__title { font-weight: 700; font-size: var(--fs-h3); letter-spacing: -.01em; }
.sim__subtitle { color: var(--muted-on-dark); font-size: var(--fs-small); margin-top: 3px; }
.sim__badge {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); font-size: .74rem; font-weight: 600; letter-spacing: .01em;
}
.sim__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px rgba(29,191,90,.25); }
.sim__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2vw, 32px); }
.sim__body--stack { grid-template-columns: 1fr; }
.sim__controls { display: grid; gap: clamp(16px, 1.8vw, 26px); align-content: start; }
.sim__results { display: grid; gap: 12px; align-content: start; }
.sim__note { margin-top: clamp(12px, 1.4vw, 18px); font-size: .72rem; color: rgba(255,255,255,.5); line-height: 1.4; }

/* Controle com slider */
.ctl { display: grid; gap: 8px; }
.ctl__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ctl__label { font-size: var(--fs-small); font-weight: 500; color: rgba(255,255,255,.78); }
.ctl__value { white-space: nowrap; font-weight: 800; font-size: clamp(1.15rem, 1.5vw, 1.6rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ctl__hint { font-size: .72rem; color: rgba(255,255,255,.5); }
.ctl__range { display: flex; justify-content: space-between; font-size: .7rem; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 30px; background: transparent; margin: 0; cursor: pointer;
  --pct: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, var(--orange-hot) 0%, var(--orange) var(--pct), rgba(255,255,255,.16) var(--pct));
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(255,255,255,.16); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--orange-hot), var(--orange)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%; margin-top: -9px;
  background: #fff; border: 5px solid var(--orange);
  box-shadow: 0 6px 16px rgba(0,0,0,.35), 0 0 0 0 rgba(244,122,31,.4);
  transition: box-shadow .25s var(--ease), transform .2s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 5px solid var(--orange);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 6px 16px rgba(0,0,0,.35), 0 0 0 8px rgba(244,122,31,.25); transform: scale(1.05); }
input[type="range"]:disabled { opacity: .35; cursor: not-allowed; }

/* Botões de cenário / presets */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__btn {
  padding: 9px 14px; border-radius: 12px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
  font-weight: 600; font-size: .8rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.seg__btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.seg__btn.is-active { background: var(--orange); color: #fff; box-shadow: 0 10px 20px -10px rgba(244,122,31,.9); }
.seg__btn--preset { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(29,191,90,.6); color: var(--green-bright); }
.seg__btn--preset:hover { background: rgba(29,191,90,.15); color: #fff; }

/* Resultados */
.out {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  display: grid; gap: 4px;
}
.out__label { font-size: .74rem; font-weight: 500; color: rgba(255,255,255,.66); }
.out__value { font-size: clamp(1.3rem, 1.75vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.out__sub { font-size: .72rem; color: rgba(255,255,255,.5); }
.out--hero { background: linear-gradient(135deg, var(--orange-hot), var(--orange)); box-shadow: 0 18px 40px -16px rgba(244,122,31,.9); }
.out--hero .out__label { color: rgba(255,255,255,.85); }
.out--hero .out__value { font-size: clamp(1.9rem, 2.6vw, 3rem); }
.out--hero .out__sub { color: rgba(255,255,255,.8); }
.out--green { background: var(--green); }
.out__value.is-updating { animation: tick .35s var(--ease); }
@keyframes tick { 0% { opacity: .6; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }

/* Estado sem comissão informada (commissionRate: null) */
.sim__null { display: none; }
.sim.is-null .sim__null { display: grid; gap: 10px; }
.sim.is-null .sim__results-money { display: none; }
.sim__null-flag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(244,122,31,.16); color: var(--orange-soft);
  font-size: .74rem; font-weight: 600;
}

/* ---------- Accordion FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; align-items: start; }
.faq__item { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: var(--fs-body); line-height: 1.3;
}
.faq__q i {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange-pale); color: var(--orange);
  display: grid; place-items: center; transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.faq__q i svg { width: 14px; height: 14px; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq__a > div { padding: 0 22px 20px; color: var(--muted); font-size: var(--fs-small); line-height: 1.55; }

/* ---------- Modelos de franquia ---------- */
.model {
  display: grid; grid-template-rows: auto 1fr auto; gap: 16px;
  border-radius: var(--radius-lg);
  padding: clamp(16px, 1.6vw, 24px);
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  min-height: 100%;
}
.model:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.model.is-selected { box-shadow: inset 0 0 0 2px var(--orange), 0 30px 60px -30px rgba(244,122,31,.7); background: rgba(244,122,31,.08); }
.model__img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: min(100%, 220px); margin-inline: auto; box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.model__name { font-size: clamp(1.4rem, 2vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.model__name--black { background: linear-gradient(90deg, #E9C87A, #B8892E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.model__tag { font-size: .72rem; font-weight: 600; color: var(--orange-soft); margin-top: 6px; }
.model__desc { font-size: var(--fs-small); color: var(--muted-on-dark); line-height: 1.5; }
.model__feats { display: grid; gap: 6px; font-size: .8rem; }
.model__feats li { display: flex; gap: 8px; align-items: flex-start; }
.model__feats li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); margin-top: .5em; }
.model__cta { justify-self: start; }
.model.is-selected .model__cta { --btn-bg: var(--green); }

/* ---------- Tabelas simples ---------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th, .table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); }
.table th { font-weight: 600; color: rgba(255,255,255,.6); font-size: .72rem; }
.table td:last-child, .table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.total td { font-weight: 800; color: var(--orange-soft); border-bottom: 0; font-size: 1rem; }

/* ---------- Slides específicos ---------- */

/* HERO */
.hero .frame { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 3vw, 60px); align-items: center; }
.hero__copy { max-width: 780px; }
.hero .frame { grid-template-columns: 1fr 1.05fr; }
.hero__stamp {
  display: inline-grid; place-items: center; gap: 0;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; line-height: 1;
  box-shadow: 0 16px 30px -12px rgba(244,122,31,.9);
  margin-bottom: 24px;
}
.hero__stamp b { font-size: 1.7rem; letter-spacing: -.04em; }
.hero__stamp small { font-size: .62rem; font-weight: 600; letter-spacing: .06em; }
.hero__visual { position: relative; }
.hero__img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: 0 50px 80px -40px rgba(0,0,0,.9);
  aspect-ratio: 1260 / 600; object-fit: cover; object-position: center;
}
.hero__frame { position: absolute; inset: -14px -14px auto auto; width: 62%; height: 78%; border-radius: var(--radius-lg); background: var(--orange); z-index: -1; opacity: .9; }
.hero__frame2 { position: absolute; inset: auto auto -18px -18px; width: 40%; height: 56%; border-radius: var(--radius-lg); background: var(--green); z-index: -1; opacity: .8; }
.hero__awards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 2.4vw, 36px); }

/* AUTORIDADE */
.award { aspect-ratio: 3 / 4; object-fit: cover; object-position: center; border-radius: 10px; width: 100%; }

/* CONHEÇA */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* PRESENÇA */
.map-wrap { position: relative; display: grid; place-items: center; }
.map-wrap img { width: min(100%, 620px); filter: drop-shadow(0 40px 50px rgba(244,122,31,.35)); }
.map-wrap::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(244,122,31,.25), transparent 65%); }

/* MÍDIA */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); max-width: 1380px; margin-inline: auto; }
.media { background: #fff; color: var(--text); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); display: grid; grid-template-rows: auto 1fr; }
.media__logo { aspect-ratio: 300 / 178; object-fit: cover; width: 100%; }
.media__quote { padding: 18px 20px 20px; font-size: var(--fs-small); line-height: 1.5; color: #3B3E43; display: grid; gap: 10px; align-content: start; }
.media__quote::before { content: "\201C"; font-size: 2.4rem; line-height: .5; color: var(--orange); font-weight: 800; }
.media__src { font-size: .72rem; font-weight: 700; color: var(--muted); }

/* MARKETPLACE */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat { padding: 0; overflow: hidden; display: grid; grid-template-rows: auto auto; }
.cat img { aspect-ratio: 265/136; object-fit: cover; width: 100%; }
.cat span { padding: 12px 14px 14px; font-weight: 700; font-size: .82rem; line-height: 1.25; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cat span svg { width: 14px; height: 14px; color: var(--orange); flex: none; }

/* MCA */
.mca-cards .card { padding: clamp(22px, 2.2vw, 34px); }
.mca-cards .fact__value { font-size: clamp(1.5rem, 1.9vw, 2.1rem) !important; }

/* CONSÓRCIO tabela */
.parcelas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.slide[data-theme="orange"] .btn--ghost { color: #fff; }

/* SEGUROS lista */
.seg-list { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-list li { font-size: .72rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.commission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.commission { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.commission b { display: block; font-size: clamp(1.5rem, 2.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--orange-soft); }
.commission small { font-size: .72rem; color: rgba(255,255,255,.65); display: block; margin-top: 4px; line-height: 1.3; }

/* FINAL */
.final .frame { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 4vw, 70px); align-items: center; }
.contacts { display: grid; gap: 14px; }
.contact { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; }
.contact i { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.contact i svg { width: 18px; height: 18px; }
.contact small { display: block; font-size: .7rem; color: var(--muted-on-dark); font-weight: 600; letter-spacing: .02em; }
.contact span { font-weight: 600; font-size: .95rem; }

/* Rodapé de aviso do simulador (global) */
.disclaimer { font-size: .72rem; color: var(--muted); line-height: 1.45; max-width: 90ch; }
.slide[data-theme="dark"] .disclaimer, .slide[data-theme="green"] .disclaimer { color: var(--muted-on-dark); }

/* Tela cheia */
:fullscreen .chrome-top, :fullscreen .chrome-bottom { opacity: .9; }

/* ==========================================================================
   Responsividade (prioridade: desktop horizontal; base preparada p/ mobile)
   ========================================================================== */
@media (max-width: 1500px) {
  :root { --frame-max: 1400px; }
}
@media (max-width: 1380px) {
  :root { --fs-big-number: clamp(4.5rem, 9.5vw, 9.5rem); }
  .media-grid { gap: 12px; }
  .grid-2--sim { grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); }
}
@media (max-height: 820px) {
  :root {
    --fs-display: clamp(2.4rem, 4.6vw, 4.2rem);
    --fs-h1: clamp(1.8rem, 3vw, 2.9rem);
    --fs-h2: clamp(1.4rem, 2.2vw, 2.2rem);
    --fs-h3: clamp(.95rem, 1.15vw, 1.15rem);
    --fs-lead: clamp(.9rem, 1vw, 1.05rem);
    --fs-body: clamp(.8rem, .9vw, .92rem);
    --fs-small: clamp(.68rem, .74vw, .78rem);
    --fs-big-number: clamp(4rem, 8vw, 7.5rem);
    --chrome-h: 52px;
  }
  .slide { padding-top: calc(var(--chrome-h) + 2px); padding-bottom: calc(var(--chrome-h) + 2px); }
  .stack > * + * { margin-top: 10px; }
  .slide-head { margin-bottom: 12px; }
  .card { padding: 12px 14px; }
  .list { gap: 5px; }
  .fact__value { font-size: clamp(1.4rem, 2vw, 2.2rem); }
  .sim { padding: 14px 18px; }
  .sim__head { margin-bottom: 10px; }
  .sim__controls { gap: 10px; }
  .sim__results { gap: 8px; }
  .out { padding: 10px 14px; }
  .out__value { font-size: 1.3rem; }
  .out--hero .out__value { font-size: 1.8rem; }
  .ctl__value { font-size: 1.05rem; }
  input[type="range"] { height: 22px; }
  .seg { gap: 6px; }
  .seg__btn { padding: 7px 11px; font-size: .74rem; }
  .table th, .table td { padding: 4px 8px; }
  .hero__stamp { width: 60px; height: 60px; margin-bottom: 12px; }
  .hero__stamp b { font-size: 1.2rem; }
  .btn--lg { padding: 14px 24px; font-size: .95rem; }
  .hero__awards { margin-top: 14px; }
  .media-grid { max-width: 1100px; gap: 10px; }
  .media__logo { aspect-ratio: auto; height: 76px; }
  .media__quote { padding: 10px 12px 12px; font-size: .74rem; }
  .model__img { width: min(100%, 128px); }
  .model { padding: 12px 14px; gap: 10px; }
  .model__feats { font-size: .72rem; gap: 4px; }
  .model__tag { font-size: .68rem; }
  .model__name { font-size: 1.4rem; }
  .faq__q { padding: 12px 16px; }
  .commission b { font-size: 1.5rem; }
  .hide-compact { display: none; }
}
@media (max-width: 1100px) {
  .grid-2, .grid-2--sim, .hero .frame, .final .frame { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .slide { min-height: auto; padding-top: calc(var(--chrome-h) + 24px); padding-bottom: 40px; scroll-snap-align: none; }
  .deck { scroll-snap-type: none; }
  .sim__body { grid-template-columns: 1fr; }
  .mascot { display: none; }
  .progress { min-width: 0; }
  .progress__bar { width: 140px; }
  .cta-persist { display: none; }
  .btn { white-space: normal; text-align: center; }
}
@media (max-width: 720px) {
  .grid-3, .grid-4, .cats, .facts, .commission-grid, .parcelas { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .chrome-bottom { grid-template-columns: 1fr auto; }
  .chapter { display: none; }
  .brand__logo { height: 36px; }
  .btn { width: 100%; }
}
