/* Sparkle Leadz: tokens copiados do app em app.sparkleleadz.com */
:root {
  --bg: #080a0e;
  --bg-2: #0e1117;
  --surface: #111317;
  --surface-2: #16191f;
  --surface-3: #1c2028;
  --line: #ffffff14;
  --line-2: #ffffff24;
  --ink: #eef1f6;
  --ink-2: #d9dee7;
  --ink-3: #b5bcca;
  --mut: #8d95a5;
  --accent: #f0a62b;
  --accent-2: #fbd27a;
  --on-fill: #1a1203;
  --fill: linear-gradient(140deg, #f0a62b 0%, #fbd27a 100%);
  --soft: rgba(240, 166, 43, .1);
  --soft-2: rgba(240, 166, 43, .18);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, .12);
  --wa: #1f2c26;
  --wa-out: #1e3a2c;
  --wash: radial-gradient(900px 420px at 16% -12%, #f0a62b2b, transparent 70%), linear-gradient(180deg, #10141c, #080a0e 62%);
  --wash-c: radial-gradient(1000px 540px at 50% -6%, #f0a62b33, transparent 70%), linear-gradient(180deg, #10141c, #080a0e 68%);
  --dot: #ffffff14;
  --shadow: 0 24px 60px -24px #000c;
  --header-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --display: "Bricolage Grotesque", Geist, ui-sans-serif, system-ui, sans-serif;
  --body: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-ctl: 10px;
  --r: 16px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f2f4f9;
  --bg-2: #fff;
  --surface: #fff;
  --surface-2: #f5f6f9;
  --surface-3: #eceef3;
  --line: #10182817;
  --line-2: #10182833;
  --ink: #070b12;
  --ink-2: #141a25;
  --ink-3: #3c4453;
  --mut: #5a6373;
  --accent: #964409;
  --accent-2: #92400e;
  --soft: rgba(180, 83, 9, .08);
  --soft-2: rgba(180, 83, 9, .14);
  --ok: #15803d;
  --ok-soft: rgba(21, 128, 61, .1);
  --wa: #eef3ef;
  --wa-out: #d9f0e0;
  --wash: linear-gradient(180deg, #fafbfd, #edf0f6 78%);
  --wash-c: radial-gradient(1000px 540px at 50% -6%, rgba(240, 166, 43, .22), transparent 70%), linear-gradient(180deg, #fafbfd, #edf0f6 78%);
  --dot: #1018281c;
  --shadow: 0 24px 50px -28px #10182840;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-3);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font: 500 .78rem/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: var(--ink-3); max-width: 62ch; }
.head { max-width: 780px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.head .lede { margin-inline: auto; }
.head h2 + .lede { margin-top: 18px; }
.gold { color: var(--accent); }
.small { font-size: .875rem; }
.note { font-size: .8125rem; color: var(--mut); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sup { font: 500 .62em var(--mono); vertical-align: super; line-height: 0; color: var(--accent); margin-left: 1px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--fill); color: var(--on-fill); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn svg { width: 16px; height: 16px; }

/* Cabeçalho */
/* Mesmo comportamento do Sparkle Tracker: invisível no topo, pílula de vidro ao passar da primeira seção */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 49;
  height: calc(var(--header-h) + 18px);
  pointer-events: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(#000 0%, #000 42%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 42%, transparent 100%);
}
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: height .5s var(--ease);
}
.nav {
  display: flex; align-items: center; gap: 34px;
  height: 100%;
  border: 1px solid transparent;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), padding .5s var(--ease), border-radius .5s var(--ease), background .45s ease, border-color .45s ease, box-shadow .45s ease;
}
.site-header.compacto { height: calc(var(--header-h) - 12px); }
.site-header.compacto .nav {
  width: min(100% - 2 * var(--gutter), 1084px);
  height: 58px; margin-top: 8px;
  padding: 0 16px;
  border-radius: 999px;
  border-color: var(--line-2);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 #ffffff12, 0 18px 50px -18px #000000b3;
}
@supports not (backdrop-filter: blur(1px)) { .site-header.compacto .nav { background: var(--surface); } }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo b { display: block; font: 600 1.05rem/1 var(--display); letter-spacing: -.02em; }
.logo i { display: block; margin-top: 3px; font: 600 .6rem/1 var(--body); letter-spacing: .2em; color: var(--accent); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: .9375rem; font-weight: 500; color: var(--ink); transition: color .3s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.site-header.compacto .nav-links { gap: 24px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: none; border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--ink-3); cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }
.link-login { font-size: .9375rem; color: var(--ink-2); padding: 0 6px; }

.menu-extra, .menu-fundo { display: none; }

/* Mesmo espaço entre logo, abas e botões */
@media (min-width: 921px) {
  .nav { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; }
  .nav-links { justify-self: center; }
}
@media (min-width: 921px) and (max-width: 1080px) {
  .nav-links, .site-header.compacto .nav-links { gap: 18px; }
}

.tema-seg { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.tema-seg button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 0; border-radius: 8px; background: none; color: var(--mut); font: 500 .75rem var(--body); cursor: pointer; }
.tema-seg svg { width: 13px; height: 13px; }
.tema-seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); }

@media (max-width: 920px) {
  .nav-toggle { display: grid; }
  .link-login { display: none; }
  .nav { justify-content: space-between; gap: 12px; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter);
    display: none; flex-direction: column; gap: 2px;
    max-height: calc(100dvh - 96px); overflow-y: auto;
    padding: 10px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .site-header.compacto .nav-links { left: 0; right: 0; gap: 2px; }
  .nav-links.open { display: flex; animation: menu-abre .22s var(--ease) both; }
  .nav-links > a {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    min-height: 42px; padding: 0 12px; border-radius: 10px;
    font-size: .875rem; color: var(--ink);
  }
  .nav-links > a::after { content: ""; width: 6px; height: 6px; border-top: 1.6px solid var(--mut); border-right: 1.6px solid var(--mut); transform: rotate(45deg); }
  .nav-links > a:hover { background: var(--surface-2); color: var(--ink); }
  .nav-links > a[aria-current="page"] { background: var(--soft); color: var(--accent); font-weight: 600; }
  .nav-links > a[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 50%; width: 3px; height: 24px; transform: translateY(-50%); border-radius: 0 3px 3px 0; background: var(--accent); }
  .nav-links > a[aria-current="page"]::after { border-color: var(--accent); }
  .menu-extra { display: grid; gap: 14px; margin-top: 8px; padding: 14px 4px 4px; border-top: 1px solid var(--line); }
  .menu-tema { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 8px; font-size: .8125rem; color: var(--ink-3); }
  .menu-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; }
  .menu-cta .btn { justify-content: center; width: 100%; min-height: 40px; padding: 8px 12px; font-size: .8125rem; white-space: nowrap; }
  .nav-links .menu-cta .btn--primary, .nav-links .menu-cta .btn--primary:hover { color: var(--on-fill); }
  .menu-fundo { position: fixed; inset: 0; z-index: 49; background: rgba(4, 6, 10, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .menu-aberto .menu-fundo { display: block; animation: menu-fundo .22s ease both; }
  html.menu-aberto { overflow: hidden; }
}
@keyframes menu-abre { from { opacity: 0; transform: translateY(-8px); } }
@keyframes menu-fundo { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nav-links.open, .menu-aberto .menu-fundo { animation: none; } }
@media (max-width: 420px) { .nav-actions .btn { display: none; } }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  background: var(--wash-c);
  padding-block: calc(var(--header-h) + clamp(20px, 3.4vw, 44px)) clamp(56px, 7vw, 88px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(900px 560px at 50% 30%, #000, transparent 78%);
  mask-image: radial-gradient(900px 560px at 50% 30%, #000, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -2;
  height: min(1000px, 72vw + 260px);
  background: radial-gradient(58% 52% at 50% 36%, rgba(8, 10, 14, .78), transparent 100%), linear-gradient(180deg, rgba(8, 10, 14, .5), rgba(8, 10, 14, .12) 34%), url(../img/fundo-hero.jpg) center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent);
  mask-image: linear-gradient(180deg, #000 58%, transparent);
  opacity: .5;
}
@media (max-width: 760px) { .hero::after { height: 620px; background-position: center, center, center top; opacity: .38; } }
/* Cada tema tem a própria foto */
:root[data-theme="light"] .hero::after {
  background: radial-gradient(52% 54% at 52% 36%, rgba(242, 244, 249, .97) 40%, transparent 100%), linear-gradient(180deg, rgba(242, 244, 249, .4), rgba(242, 244, 249, .06) 34%), url(../img/fundo-hero-claro.jpg) left top / cover no-repeat;
  opacity: .85;
}
@media (max-width: 760px) { :root[data-theme="light"] .hero::after { opacity: .5; } }
:root img.so-claro { display: none; }
:root[data-theme="light"] img.so-claro { display: block; }
:root[data-theme="light"] img.so-escuro { display: none; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy h1 { font-size: clamp(2.7rem, 6.4vw, 5.5rem); line-height: 1; letter-spacing: -.04em; }
.hero h1 .gold { display: block; }
.hero .lede { margin-top: 24px; max-width: 640px; }
.hero strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .cta-row { justify-content: center; }
.hero-meta { margin-top: 14px; }
.hero-anim { animation: entra .9s var(--ease) backwards; animation-delay: var(--d, 0s); }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.selo {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  margin-bottom: 22px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface);
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
}
.selo b { flex: none; padding: 5px 9px; border-radius: 999px; background: var(--fill); color: var(--on-fill); font-size: .68rem; font-weight: 700; letter-spacing: .06em; line-height: 1; }
@media (max-width: 480px) { .cta-row .btn { width: 100%; } .selo { font-size: .78rem; text-align: left; } }

/* Palco: ocupa o lugar do vídeo do Tracker */
.palco {
  --surface: #0c0e12; --surface-2: #111317; --surface-3: #1c2028;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .12); --ink: #eef1f6; --ink-2: #d9dee7; --ink-3: #b5bcca; --mut: #9aa2b4;
  --accent: #f0a62b; --soft: rgba(240, 166, 43, .15); --soft-2: rgba(240, 166, 43, .22);
  position: relative; max-width: 1000px; margin: clamp(40px, 5vw, 60px) auto 0;
}
.palco::before {
  content: ""; position: absolute; inset: 12% 8% -8%; z-index: -1;
  background: radial-gradient(closest-side, var(--soft-2), transparent);
  filter: blur(36px);
}
.palco-in {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.palco .fila { display: flex; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; }
.palco .fila-row { flex: 1; }
.palco-chat { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border-left: 1px solid var(--line); }
.palco-chat .fone-body { justify-content: flex-end; }
.palco-chat .ln { display: flex; }
.palco-chat .msg { font-size: .8rem; }
.palco .fila-who { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.palco .fila-who .fila-av {
  position: relative; grid-row: span 2; display: grid; place-items: center;
  width: 38px; height: 38px; border: 1px solid rgba(240, 166, 43, .4); border-radius: 10px;
  background: var(--soft); color: var(--accent); font: 700 .74rem var(--body);
}
.palco .fila-who .fila-av img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }
.palco .fila-who .fila-av::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border: 2px solid var(--surface); border-radius: 50%; background: #25d366 var(--wa-ico) center / 9px no-repeat; }
.palco .fila-who b { font-weight: 600; }
.palco .fila-who b::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 6px 2px 0; border-radius: 50%; background: #3dd68c; }
.palco .fila-row { position: relative; margin: 2px 8px; padding: 11px 12px; border: 0; border-radius: 12px; }
.palco .fila-row[data-stage="3"] { background: none; }
.palco .fila-row.ativa { background: rgba(240, 166, 43, .15); }
.palco .fila-row.ativa::before { content: ""; position: absolute; left: -8px; top: 50%; width: 3px; height: 26px; transform: translateY(-50%); border-radius: 0 3px 3px 0; background: var(--accent); }
.palco .pill { border: 1px solid transparent; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--mut); transition: none; }
.palco .fila-row > * { transition: opacity .25s ease; }
.palco .fila-row.trocando > * { opacity: 0; }
@media (max-width: 560px) {
  .palco .fila-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .palco .fila-who { grid-row: span 2; }
  .palco .fila-val { justify-self: end; }
}
.palco .fila-row[data-stage="1"] .pill, .palco .fila-row[data-stage="2"] .pill { background: rgba(240, 166, 43, .1); border-color: rgba(240, 166, 43, .3); color: var(--accent); }
.palco .fila-row[data-stage="3"] .pill { background: var(--fill); color: var(--on-fill); }
.palco .fila-bottom { background: rgba(255, 255, 255, .035); }
.palco .fila-bottom b { font: 600 1.4rem var(--display); }
.palco .fila-bottom span { font: 500 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.flut {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: .84rem; font-weight: 500; color: var(--ink);
  animation: flutua 6s ease-in-out infinite;
}
.flut small { display: block; font-size: .68rem; font-weight: 400; color: var(--mut); }
.flut i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--soft); }
.flut i.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.flut--a { top: -28px; left: 28%; }
.flut--b { bottom: -72px; left: 34%; animation-delay: -3s; }
@keyframes flutua { 50% { transform: translateY(-8px); } }
@media (max-width: 760px) { .flut { display: none; } .fila-cap { margin-top: 14px; } }
@media (max-width: 760px) {
  .palco-in { grid-template-columns: 1fr; }
  .palco-chat { display: none; }
}

/* Fila de pendências: assinatura do site */
.fila { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.fila-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.fila-top b { font: 600 .95rem var(--display); color: var(--ink); }
.fila-top span { font: 400 .72rem var(--mono); color: var(--mut); }
.fila-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 134px;
  align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  transition: background .4s ease;
}
.fila-row:last-of-type { border-bottom: 0; }
.fila-row[data-stage="3"] { background: var(--soft); }
.fila-who { min-width: 0; }
.fila-who b { display: block; font-weight: 500; font-size: .9375rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-who span { font-size: .78rem; color: var(--mut); }
.fila-val { font: 500 .875rem var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pill {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  font: 500 .72rem/1.3 var(--body); white-space: nowrap;
  background: var(--surface-3); color: var(--ink-3);
  transition: background .3s, color .3s;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fila-row[data-stage="1"] .pill, .fila-row[data-stage="2"] .pill { background: var(--soft); color: var(--accent); }
.fila-row[data-stage="3"] .pill { background: var(--fill); color: var(--on-fill); }
.fila-bottom { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--surface-2); }
.fila-bottom div { padding: 12px 18px; border-left: 1px solid var(--line); }
.fila-bottom div:first-child { border-left: 0; }
.fila-bottom b { display: block; font: 500 1.25rem var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.fila-bottom span { font-size: .72rem; color: var(--mut); }
.fila-cap { margin-top: 84px; text-align: center; }

/* Faixa */
.strip { border-bottom: 1px solid var(--line); padding-block: 22px; }
.strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; }
.strip-in > span { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.strip-in li { font-weight: 500; font-size: .9375rem; color: var(--ink-3); }
.strip-in ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }

/* Extrato: onde a venda para */
.extrato { border-top: 1px solid var(--line-2); }
.extrato li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px 32px; padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.extrato .cod { font: 500 .78rem var(--mono); color: var(--accent); padding-top: 6px; }
.extrato h3 { font-size: 1.55rem; }
.extrato p { color: var(--ink-3); }
.extrato em { display: block; margin-top: 8px; font-style: normal; font-size: .8125rem; color: var(--mut); }
@media (max-width: 760px) { .extrato li { grid-template-columns: 1fr; gap: 6px; } .extrato .cod { padding: 0; } }

/* Onde a venda para: cartões com imagem */
.extrato--cartoes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 0; }
.extrato--cartoes li {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .3s var(--ease), border-color .3s;
}
.extrato--cartoes li:hover { transform: translateY(-4px); border-color: var(--accent); }
.extrato--cartoes img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #0b0c0f; }
.ext-txt { padding: 20px 20px 22px; }
.ext-txt .cod { display: block; padding: 0 0 8px; }
.ext-txt h3 { font-size: 1.25rem; margin-bottom: 8px; }
.ext-txt p { font-size: .9375rem; }
@media (max-width: 1040px) { .extrato--cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .extrato--cartoes { grid-template-columns: 1fr; } }

/* Régua */
.regua { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.passo { position: relative; padding: 0 0 0 44px; min-height: 44vh; opacity: .45; transition: opacity .3s; }
.passo:last-child { min-height: auto; }
.passo.ativo { opacity: 1; }
.passo::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: -8px; width: 1px; background: var(--line-2); }
.passo:last-child::before { display: none; }
.passo::after {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--surface-3); border: 1px solid var(--line-2);
  transition: background .3s;
}
.passo.ativo::after { background: var(--fill); border-color: transparent; }
.passo .t { font: 500 .78rem var(--mono); color: var(--accent); }
.passo h3 { margin: 6px 0 8px; font-size: 1.5rem; }
.passo p { max-width: 46ch; }
.fone {
  position: sticky; top: 104px;
  height: min(600px, calc(100vh - 136px));
  display: flex; flex-direction: column;
  background: var(--wa); border: 1px solid var(--line-2); border-radius: 26px;
  overflow: hidden; box-shadow: var(--shadow);
}
.fone-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.fone-top .av { width: 34px; height: 34px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; color: var(--on-fill); font-weight: 700; font-size: .85rem; }
.fone-top b { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.fone-top span { font-size: .72rem; color: var(--mut); }
.fone-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; overflow: hidden; }
.msg {
  display: none; max-width: 86%;
  padding: 8px 11px; border-radius: 12px;
  font-size: .86rem; line-height: 1.4; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
}
.msg.out { align-self: flex-end; background: var(--wa-out); }
.msg.show { display: block; animation: sobe .3s ease both; }
.msg small { display: block; margin-top: 3px; font: 400 .66rem var(--mono); color: var(--mut); }
.evento {
  display: none; align-self: center;
  padding: 4px 10px; border-radius: 999px;
  background: var(--soft); color: var(--accent);
  font: 500 .7rem var(--mono); text-align: center;
}
.evento.show { display: block; animation: sobe .3s ease both; }
.evento.pago { background: var(--fill); color: var(--on-fill); }
@keyframes sobe { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .regua { grid-template-columns: 1fr; }
  .fone { order: -1; top: 76px; height: 300px; z-index: 5; border-radius: 18px; }
  .passo { min-height: 240px; }
}

/* Conversa: mesmas cores e medidas da inbox do sistema (src/styles/leadz-chat.css), nos dois temas */
:root {
  --wa-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
}
.regua .fone {
  --surface: #0c0e12; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .12); --ink: #eef1f6; --ink-2: #d9dee7; --mut: #9aa2b4;
  --accent: #f0a62b; --soft: rgba(240, 166, 43, .15);
  background: var(--surface); border-color: var(--line); border-radius: var(--r);
  height: min(780px, calc(100vh - 124px));
}
@media (max-width: 900px) { .regua .fone { height: 440px; } }

/* Régua no celular: conversa e etapa fixas na tela, a rolagem troca a etapa */
.regua-palco { display: contents; }
.regua-marcos { display: none; }
@media (max-width: 900px) {
  .regua { display: block; }
  .regua-palco { display: flex; flex-direction: column; gap: 24px; }
  .regua .fone { position: static; order: 1; }
  .passo { min-height: 0; padding-bottom: 28px; opacity: 1; }
}
@media (max-width: 900px) and (min-height: 620px) {
  .js .regua { height: calc(100vh + var(--n) * 44vh); height: calc(100svh + var(--n) * 44svh); }
  .js .regua-palco { position: sticky; top: 72px; height: calc(100vh - 84px); height: calc(100svh - 84px); gap: 10px; }
  .js .regua .fone { flex: 1; order: 0; width: 100%; max-width: 560px; height: auto; min-height: 0; margin-inline: auto; }
  .js .regua-marcos { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); flex: none; width: 100%; max-width: 560px; margin-inline: auto; }
  .js .regua-marcos::before, .js .regua-marcos::after { content: ""; position: absolute; left: calc(50% / var(--n)); top: 14px; height: 2px; border-radius: 2px; }
  .js .regua-marcos::before { right: calc(50% / var(--n)); background: var(--line-2); }
  .js .regua-marcos::after { width: calc((100% - 100% / var(--n)) * var(--feito, 0) / (var(--n) - 1)); background: var(--fill); transition: width .35s var(--ease); }
  .marco { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; min-height: 48px; padding: 8px 0 4px; border: 0; background: none; color: var(--ink-3); font: 500 .6875rem var(--mono); white-space: nowrap; transition: color .25s; }
  .marco i { width: 14px; height: 14px; border: 2px solid var(--line-2); border-radius: 50%; background: var(--surface-3); transition: background .25s, border-color .25s, box-shadow .25s; }
  .marco.feito i { border-color: transparent; background: var(--accent); }
  .marco.ativo { color: var(--accent); font-weight: 600; }
  .marco.ativo i { border-color: transparent; background: var(--fill); box-shadow: 0 0 0 5px var(--soft-2); }
  .js .regua-passos { display: grid; flex: none; width: 100%; max-width: 560px; margin-inline: auto; }
  .js .passo { grid-area: 1 / 1; min-height: 0; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: var(--r); background: var(--surface); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
  .js .passo.ativo { opacity: 1; pointer-events: auto; transform: none; }
  .js .passo::before, .js .passo::after, .js .passo .t { display: none; }
  .js .passo h3 { margin: 0 0 4px; font-size: 1.1875rem; }
  .js .passo p { max-width: none; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
}
:is(.regua .fone, .palco-chat) .fone-top { padding: 12px 14px; }
.ctt { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(240, 166, 43, .4); border-radius: 10px; background: var(--soft); color: var(--accent); font-weight: 700; font-size: .74rem; }
.ctt img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }
.canal { position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border: 2px solid var(--surface); border-radius: 50%; background: #25d366 var(--wa-ico) center / 9px no-repeat; }
.fone-top .ctt { color: var(--accent); font-size: .74rem; }
.ctt-txt { min-width: 0; }
.fone-acoes { margin-left: auto; display: flex; gap: 6px; }
.ic { flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .035) center / 14px no-repeat; }
.ic-busca { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
.ic-fone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.ic-painel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M15 3v18'/%3E%3C/svg%3E"); }
.ic-clipe { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.4 11-9.2 9.2a6 6 0 0 1-8.5-8.5l9.2-9.1a4 4 0 0 1 5.7 5.6l-9.2 9.2a2 2 0 0 1-2.9-2.9l8.5-8.5'/%3E%3C/svg%3E"); }
.ic-raio { border-color: rgba(240, 166, 43, .5); background-color: rgba(240, 166, 43, .15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0a62b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9z'/%3E%3C/svg%3E"); }
.dia, :is(.regua .fone, .palco-chat) .evento { align-self: center; padding: 4px 12px; border: 1px solid var(--line); border-radius: 20px; background: #1e2127; color: var(--mut); font: 400 .68rem var(--body); text-align: center; }
:is(.regua .fone, .palco-chat) .evento { color: var(--accent); }
:is(.regua .fone, .palco-chat) .evento.pago { border-color: transparent; background: var(--fill); color: var(--on-fill); font-weight: 600; }
.ln { display: none; align-items: flex-start; gap: 7px; min-width: 0; max-width: 92%; }
.ln.show { display: flex; animation: sobe .3s ease both; }
.ln--out { align-self: flex-end; }
:is(.regua .fone, .palco-chat) .msg { display: block; min-width: 0; max-width: none; padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .043); color: var(--ink); }
:is(.regua .fone, .palco-chat) .msg.out { border-color: rgba(240, 166, 43, .38); border-radius: 14px 14px 4px 14px; background: linear-gradient(140deg, rgba(240, 166, 43, .24), rgba(240, 166, 43, .11)); }
.regua .fone .msg { font-size: .875rem; }
:is(.regua .fone, .palco-chat) .msg small { margin-top: 9px; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .05); font: 400 .66rem var(--body); color: var(--mut); }
.msg time { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 5px; font: 400 .64rem var(--mono); color: var(--mut); }
.msg time span { margin-right: auto; font-family: var(--body); }
.msg.out time::after { content: ""; width: 13px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0a62b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 7 17l-5-5'/%3E%3Cpath d='m22 10-7.5 7.5L13 16'/%3E%3C/svg%3E") center / contain no-repeat; }
.rem { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 2px; border: 1px solid rgba(240, 166, 43, .4); border-radius: 8px; background: rgba(240, 166, 43, .15); color: var(--accent); font: 700 .6rem var(--body); }
.msg-tag {
  display: block; width: fit-content; margin-bottom: 8px; padding: 2px 8px;
  border: 1px solid rgba(240, 166, 43, .3); border-radius: 6px; background: rgba(240, 166, 43, .1);
  font: 700 .58rem var(--body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #f0a62b;
}
.fone-rodape { display: grid; gap: 8px; padding: 9px 13px; border-top: 1px solid rgba(255, 255, 255, .05); background: none; }
.comp-tipo { display: flex; align-items: center; justify-content: space-between; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 10px; background: rgba(255, 255, 255, .043); font-size: .72rem; color: var(--mut); }
.comp-tipo i { position: relative; width: 28px; height: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .07); }
.comp-tipo i::after { content: ""; position: absolute; left: 2px; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.comp-lin { display: flex; align-items: center; gap: 6px; min-width: 0; }
.comp-in { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 9px; background: rgba(255, 255, 255, .043); font-size: .74rem; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-enviar { flex: none; padding: 7px 12px; border-radius: 9px; background: var(--fill); color: var(--on-fill); font-size: .74rem; font-weight: 600; }
.fone-nota { font-size: .66rem; color: var(--mut); text-align: center; }
@media (max-width: 900px) { .regua .fone .comp-tipo { display: none; } }

/* Fila e conversas no tema claro: cores do tema claro do sistema (src/index.css e leadz-chat.css) */
:root[data-theme="light"] :is(.palco, .regua .fone) {
  --surface: #fff; --surface-2: #f5f6f9; --surface-3: #eceef3;
  --line: rgba(16, 24, 40, .14); --line-2: rgba(16, 24, 40, .14); --ink: #070b12; --ink-2: #141a25; --ink-3: #232b38; --mut: #49525f;
  --accent: #964409; --soft: rgba(180, 83, 9, .1); --soft-2: rgba(180, 83, 9, .14);
}
:root[data-theme="light"] .palco::before { background: radial-gradient(closest-side, rgba(240, 166, 43, .22), transparent); }
:root[data-theme="light"] .palco .fila-who b::before { background: #067242; }
:root[data-theme="light"] .palco .fila-row.ativa { background: rgba(180, 83, 9, .1); }
:root[data-theme="light"] .palco .fila-who .fila-av, :root[data-theme="light"] .ctt, :root[data-theme="light"] .rem { border-color: rgba(180, 83, 9, .38); background: rgba(180, 83, 9, .1); }
:root[data-theme="light"] .palco .pill { background: rgba(16, 24, 40, .05); }
:root[data-theme="light"] .palco .fila-row[data-stage="1"] .pill, :root[data-theme="light"] .palco .fila-row[data-stage="2"] .pill { background: rgba(180, 83, 9, .08); border-color: rgba(180, 83, 9, .3); }
:root[data-theme="light"] .palco .fila-row[data-stage="3"] .pill { background: var(--fill); }
:root[data-theme="light"] .palco .fila-bottom { background: var(--surface-2); }
:root[data-theme="light"] .ic, :root[data-theme="light"] .comp-tipo, :root[data-theme="light"] .comp-in { border-color: rgba(16, 24, 40, .09); background-color: rgba(16, 24, 40, .05); }
:root[data-theme="light"] .ic-raio { border-color: rgba(180, 83, 9, .5); background-color: rgba(180, 83, 9, .1); }
:root[data-theme="light"] .dia, :root[data-theme="light"] :is(.regua .fone, .palco-chat) .evento { background: #eceef3; }
:root[data-theme="light"] :is(.regua .fone, .palco-chat) .evento.pago { background: var(--fill); }
:root[data-theme="light"] :is(.regua .fone, .palco-chat) .msg { background: rgba(16, 24, 40, .05); }
:root[data-theme="light"] :is(.regua .fone, .palco-chat) .msg.out { border-color: rgba(180, 83, 9, .38); background: rgba(180, 83, 9, .15); }
:root[data-theme="light"] :is(.regua .fone, .palco-chat) .msg small { border-top-color: rgba(16, 24, 40, .09); }
:root[data-theme="light"] .msg.out time::after { filter: brightness(.62) saturate(1.3); }
:root[data-theme="light"] .msg-tag { border-color: rgba(180, 83, 9, .3); background: rgba(180, 83, 9, .1); color: #964409; }
:root[data-theme="light"] .fone-rodape { border-top-color: rgba(16, 24, 40, .09); }
:root[data-theme="light"] .comp-tipo i { background: rgba(16, 24, 40, .16); }

/* Plataforma */
.tabs { display: flex; gap: 4px; padding: 4px; margin: 0 auto 28px; border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 9px 16px; border: 0; background: none; border-radius: 9px; font-weight: 500; font-size: .9375rem; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--ink); }
.painel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.painel[hidden] { display: none; }
.painel h3 { font-size: 1.75rem; margin-bottom: 12px; }
.painel ul { margin-top: 18px; display: grid; gap: 10px; }
.painel li { padding-left: 22px; position: relative; font-size: .9875rem; }
.painel li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--accent); }
.tela { min-height: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 860px) { .painel { grid-template-columns: 1fr; } .tela { min-height: 0; } }

/* Telas reais do sistema */
.janela {
  overflow: hidden; background: #0b0d12;
  border: 1px solid #333844; border-radius: var(--r);
  box-shadow: 0 30px 80px -30px rgba(240, 166, 43, .28), var(--shadow);
}
:root[data-theme="light"] .janela { background: #fff; border-color: rgba(16, 24, 40, .14); box-shadow: 0 30px 80px -44px rgba(16, 24, 40, .35); }
.janela img { display: block; width: 100%; height: auto; }
.painel--tela { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px clamp(24px, 4vw, 56px); align-items: start; }
.painel--tela > div:first-child { display: contents; }
.painel--tela h3, .painel--tela > div:first-child > p { grid-column: 1; }
.painel--tela h3 { margin-bottom: 0; }
.painel--tela ul { grid-column: 2; grid-row: 1 / span 2; margin-top: 4px; }
.painel--tela .janela { grid-column: 1 / -1; margin-top: 20px; }
.nota-centro, .nota-plano { margin-top: 16px; text-align: center; }
figure .janela + figcaption { margin-top: 10px; }
@media (max-width: 760px) {
  .painel--tela { grid-template-columns: 1fr; }
  .painel--tela ul { grid-column: 1; grid-row: auto; }
}

/* Telas ilustrativas */
.inbox { display: grid; grid-template-columns: 200px 1fr; min-height: 400px; }
.inbox-l { border-right: 1px solid var(--line); }
.inbox-i { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.inbox-i.on { background: var(--soft); }
.inbox-i b { display: block; font-size: .84rem; font-weight: 500; color: var(--ink); }
.inbox-i span { font-size: .74rem; color: var(--mut); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-r { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; }
.inbox-r .msg { display: block; max-width: 72%; }
.nota { align-self: stretch; padding: 8px 11px; font-size: .78rem; border-radius: 8px; background: var(--soft); color: var(--accent); }
@media (max-width: 520px) { .inbox { grid-template-columns: 1fr; } .inbox-l { display: none; } }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; padding: 14px; overflow-x: auto; }
.col > b { display: block; margin-bottom: 8px; font: 500 .72rem var(--mono); color: var(--mut); text-transform: uppercase; letter-spacing: .05em; }
.card { padding: 10px 11px; margin-bottom: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.card b { display: block; font-size: .84rem; font-weight: 500; color: var(--ink); }
.card span { font: 400 .74rem var(--mono); color: var(--mut); }
.col--pago .card { background: var(--soft); border-color: var(--soft-2); }

.funil { display: grid; gap: 14px; padding: 22px; justify-items: center; }
.no { width: min(100%, 300px); padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; position: relative; }
.no small { display: block; font: 500 .66rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.no b { font-size: .875rem; font-weight: 500; color: var(--ink); }
.no--gatilho { border-color: var(--accent); background: var(--soft); }
.no--gatilho small { color: var(--accent); }
.no + .no::before, .ramo::before { content: ""; position: absolute; left: 50%; top: -15px; width: 1px; height: 14px; background: var(--line-2); }
.ramo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 520px; position: relative; }
.ramo .no { width: 100%; }
.ramo .no::before { display: none; }

/* Modelos de funil: mesmo desenho dos blocos do editor, nos dois temas */
.tela.funil {
  --surface-2: #12151b; --line-2: #333844; --ink: #eef1f6; --mut: #8f97a6; --accent: #f0a62b;
  background: radial-gradient(#ffffff14 1px, transparent 1px) 0 0 / 18px 18px, #0a0c10;
}
.modelo .msg.out { background: rgba(240, 166, 43, .13); border-color: rgba(240, 166, 43, .6); color: var(--ink); }
.tela.funil .no { padding: 12px 14px; border-radius: 14px; }
.tela.funil .no--gatilho { background: #12151b; }
.tela.funil .no + .no::before, .tela.funil .ramo::before { width: 0; background: none; border-left: 1px dashed #6a7282; }
:root[data-theme="light"] .tela.funil {
  --surface-2: #fff; --line-2: rgba(16, 24, 40, .14); --ink: #070b12; --mut: #49525f; --accent: #964409;
  background: radial-gradient(rgba(16, 24, 40, .12) 1px, transparent 1px) 0 0 / 18px 18px, #f5f6f9;
}
:root[data-theme="light"] .tela.funil .no--gatilho { background: #fff; }
:root[data-theme="light"] .tela.funil .no + .no::before, :root[data-theme="light"] .tela.funil .ramo::before { border-left-color: #9aa2b4; }

.agente { padding: 18px; display: grid; gap: 12px; }
.linha { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: .875rem; }
.linha span { color: var(--mut); }
.linha b { color: var(--ink); font-weight: 500; text-align: right; }

/* Comparação */
.foto-larga { position: relative; overflow: hidden; margin-bottom: 28px; border-radius: var(--r); }
.foto-larga img { display: block; width: 100%; height: clamp(220px, 30vw, 380px); object-fit: cover; object-position: center 40%; }
.foto-larga figcaption {
  position: absolute; left: 18px; bottom: 18px; padding: 8px 14px;
  border-radius: 999px; background: rgba(8, 10, 14, .72); backdrop-filter: blur(8px);
  color: #eef1f6; font-size: .875rem;
}
.tabela { width: 100%; border-collapse: collapse; }
.tabela th, .tabela td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .9875rem; }
.tabela thead th { font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mut); border-bottom-color: var(--line-2); }
.tabela thead th:last-child { color: var(--accent); }
.tabela tbody th { font-weight: 500; color: var(--ink); width: 26%; }
.tabela td:last-child { color: var(--ink); background: var(--soft); }
@media (max-width: 680px) {
  .tabela thead { display: none; }
  .tabela tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tabela th, .tabela td { display: block; width: auto !important; padding: 6px 0; border: 0; }
  .tabela td:last-child { background: none; }
  .tabela td::before { content: attr(data-l) ": "; color: var(--mut); font-size: .8125rem; }
  /* Comparação da home: cada linha vira um cartão com os dois lados frente a frente */
  .tabela--versus, .tabela--versus tbody { display: block; }
  .tabela--versus tbody { display: grid; gap: 12px; }
  .tabela--versus tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .tabela--versus th { grid-column: 1 / -1; padding: 0 0 4px; font: 600 1.0625rem var(--display); }
  .tabela--versus td { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink-3); font-size: .9375rem; line-height: 1.35; }
  .tabela--versus td:last-child { background: var(--soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent); color: var(--ink); font-weight: 500; }
  .tabela--versus td::before { content: attr(data-l); display: block; margin-bottom: 6px; color: var(--mut); font: 500 .6875rem var(--mono); letter-spacing: .05em; text-transform: uppercase; }
  .tabela--versus td:last-child::before { content: "✓ " attr(data-l); color: var(--accent); }
}

/* Simulador */
.sim { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.sim-in { padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; }
.sim-out { padding: clamp(20px, 3vw, 32px); background: var(--surface-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.campo label { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; color: var(--ink-2); margin-bottom: 8px; }
.campo output { font: 500 .9375rem var(--mono); color: var(--ink); }
input[type="range"] { width: 100%; accent-color: #f0a62b; height: 24px; }
.saldo { font: 500 clamp(2.2rem, 4.6vw, 3.2rem)/1 var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.03em; overflow-wrap: anywhere; }
.conta { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.conta b { font: 500 .9375rem var(--mono); color: var(--ink); }
@media (max-width: 820px) { .sim { grid-template-columns: 1fr; } .sim-out { border-left: 0; border-top: 1px solid var(--line); } }

/* Duas colunas */
.duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bloco { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.bloco h3 { margin-bottom: 10px; }
.bloco .tag { display: inline-block; margin-bottom: 12px; font: 500 .72rem var(--mono); color: var(--accent); }
.bloco ul { margin-top: 12px; display: grid; gap: 8px; font-size: .9375rem; }
@media (max-width: 760px) { .duas { grid-template-columns: 1fr; } }

.bloco--foto { padding-top: 0; overflow: hidden; }
.bloco--foto img { display: block; width: calc(100% + 52px); max-width: none; height: clamp(220px, 23vw, 320px); margin: 0 -26px 22px; object-fit: cover; background: #0b0c0f; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 1.0625rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 34px 22px 0; }

/* CTA final: a foto fica em cima e o texto centralizado embaixo, sem disputar espaço */
.final {
  --ink: #eef1f6; --ink-2: #d9dee7; --ink-3: #d9dee7; --line-2: rgba(238, 241, 246, .32); --accent: #f0a62b;
  --foto: clamp(220px, 32vw, 400px);
  color: var(--ink-2); text-align: center;
}
.final .wrap {
  position: relative; overflow: hidden;
  padding: calc(var(--foto) - 4px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 72px);
  background: radial-gradient(70% 60% at 50% 100%, rgba(240, 166, 43, .14), transparent), #0e1117;
  border: 1px solid rgba(240, 166, 43, .28); border-radius: 24px;
  box-shadow: 0 30px 80px -40px rgba(240, 166, 43, .4);
}
.final .wrap::before {
  content: ""; position: absolute; inset: 0 0 auto; height: var(--foto);
  background: url(../img/produtor.jpg) center 24% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.final .wrap > * { position: relative; }
:root[data-theme="light"] .final { --ink: #070b12; --ink-2: #141a25; --ink-3: #3c4453; --line-2: #10182833; --accent: #964409; }
:root[data-theme="light"] .final .wrap {
  background: radial-gradient(70% 60% at 50% 100%, rgba(240, 166, 43, .16), transparent), #fff;
  border-color: rgba(180, 83, 9, .22);
  box-shadow: 0 30px 80px -44px rgba(180, 83, 9, .45);
}
:root[data-theme="light"] .final .wrap::before { background-image: url(../img/produtor-claro.jpg); background-position: center 18%; }
.final h2 { color: var(--ink); max-width: 16em; margin-inline: auto; }
.final .lede { margin: 18px auto 0; }
.final .cta-row { justify-content: center; }
.cta-secao { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(32px, 5vw, 48px); text-align: center; }
.cta-secao .note { margin: 0; }
@media (max-width: 480px) { .cta-secao .btn { width: 100%; } }

/* Rodapé */
.notas { padding-block: 28px; border-top: 1px solid var(--line); }
.notas p { font-size: .8125rem; color: var(--mut); max-width: 90ch; }
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: .9375rem; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot h4 { margin-bottom: 12px; font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.foot li { margin-bottom: 8px; }
.foot a:hover { color: var(--ink); }
.foot p { margin-top: 14px; max-width: 34ch; font-size: .875rem; }
.foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--mut); }
.foot-tema { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* Páginas internas */
/* Seção 01 das páginas internas: mesma base da home, com título menor porque as frases são longas */
.hero--int .hero-copy h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.04; max-width: 15em; }
.hero--int .lede { max-width: 700px; }
.hero--curto { padding-bottom: clamp(16px, 2vw, 28px); }
:root[data-theme="light"] .hero--int { background: radial-gradient(1000px 540px at 50% -6%, rgba(240, 166, 43, .22), transparent 70%), linear-gradient(180deg, #fafbfd, var(--bg) 78%); }
/* Sem palco a seção é baixa: a foto acompanha a altura dela e termina em degradê, sem corte */
.hero--curto::after { height: 100%; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent); }
.palco--tela .janela { position: relative; box-shadow: var(--shadow); }
.palco-funil { display: flex; flex-direction: column; justify-content: center; min-height: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.hero--int .palco .fila-row { grid-template-columns: minmax(0, 1fr) auto; }
.palco .fila-row[data-stage="3"] .fila-av { border-color: rgba(240, 166, 43, .4); }
@media (max-width: 760px) { .palco-funil { display: none; } }

/* Recuperação: telas do sistema abaixo dos passos */
.sistema { margin-top: clamp(40px, 6vw, 64px); }
.bloco--tela { display: flex; flex-direction: column; gap: 18px; padding: 14px 14px 22px; }
.bloco--tela figcaption { padding-inline: 10px; }
.bloco--tela .janela { box-shadow: none; }

.grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grade { grid-template-columns: 1fr; } }
.grade--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grade--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grade--4 { grid-template-columns: 1fr; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Planos: cartões em subgrid, para preço, capacidade e lista ficarem na mesma linha */
.grade--planos { align-items: stretch; }
.plano {
  position: relative; display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0;
  padding: 28px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s ease, translate .2s var(--ease);
}
.plano:hover { border-color: var(--line-2); translate: 0 -3px; }
.plano--dest, .plano--dest:hover {
  border-color: transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 62%) padding-box, var(--fill) border-box;
  box-shadow: 0 26px 70px -34px color-mix(in srgb, var(--accent) 70%, transparent);
}
.plano-topo { padding-bottom: 20px; }
.plano-topo p { margin-top: 6px; font-size: .9375rem; line-height: 1.45; }
.plano-selo {
  position: absolute; top: 0; left: 26px; translate: 0 -50%;
  padding: 4px 11px; border-radius: 999px; background: var(--fill); color: var(--on-fill);
  font: 600 .75rem/1.3 var(--body);
}
.plano .preco {
  display: flex; align-items: baseline; gap: 5px; padding-bottom: 22px;
  font-family: var(--display); color: var(--ink);
}
.plano .preco b { font-size: clamp(2.8rem, 4vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plano .preco span { align-self: flex-start; margin-top: .3em; font-size: 1.05rem; font-weight: 600; color: var(--ink-3); }
.plano .preco small { font: 400 .875rem var(--body); color: var(--mut); }
.plano--dest .preco b { color: var(--accent); }
.plano-cap { padding-block: 16px; border-block: 1px solid var(--line); }
.plano-cap p { font-size: .9375rem; color: var(--ink-3); }
.plano-cap b { font: 600 1.3rem var(--display); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nivel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.nivel i { height: 4px; border-radius: 2px; background: var(--surface-3); }
.nivel[data-n="1"] i:nth-child(-n+1), .nivel[data-n="2"] i:nth-child(-n+2),
.nivel[data-n="3"] i:nth-child(-n+3), .nivel[data-n="4"] i { background: var(--fill); }
.plano-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.plano-nums dt { font-size: .6875rem; line-height: 1.3; color: var(--mut); white-space: nowrap; }
.plano-nums dd { font: 600 1.05rem/1.3 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.plano-rec { padding-block: 18px 24px; }
.plano-rec > p { margin-bottom: 12px; font-size: .8125rem; font-weight: 600; color: var(--ink); }
.plano ul { display: grid; align-content: start; gap: 10px; font-size: .9375rem; line-height: 1.4; }
.plano li { position: relative; padding-left: 28px; color: var(--ink-2); }
.plano li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background-color: var(--soft-2);
  background-image: var(--ic); background-repeat: no-repeat; background-position: center; background-size: 12px;
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0a62b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.plano li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.plano li.lib { color: var(--ink); font-weight: 500; }
.plano li.lib::before {
  background-color: var(--accent);
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1203' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 7.6-1.7'/%3E%3C/svg%3E");
}
.plano li.mais::before {
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0a62b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E");
}
.plano li.nao { color: var(--mut); text-decoration: line-through; text-decoration-color: var(--line-2); }
.plano li.nao::before {
  background-color: var(--surface-3);
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d95a5' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .plano li:not(.lib, .nao)::before { filter: saturate(1.3) brightness(.72); }
:root[data-theme="light"] .plano li.lib::before { background-color: #f0a62b; }
.plano .btn { align-self: end; padding-inline: 16px; }

/* Planos: tabela de comparação */
.comparar-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(48px, 7vw, 80px); margin-bottom: 18px; scroll-margin-top: 110px; }
.comparar { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: .9375rem; }
.comparar th, .comparar td { padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.comparar tbody tr:last-child > * { border-bottom: 0; }
.comparar thead th { padding-block: 18px 16px; font: 600 1.05rem var(--display); color: var(--ink); }
.comparar thead small { display: block; margin-top: 2px; font: 400 .8125rem var(--body); color: var(--mut); }
.comparar tbody th { width: 30%; text-align: left; font-weight: 400; color: var(--ink-3); }
.comparar td { color: var(--ink); font-weight: 500; }
.comparar td[aria-label] { color: var(--mut); font-weight: 400; }
.comparar td.tem { color: var(--accent); font-weight: 700; }
.comparar .grupo th { width: auto; padding-block: 18px 8px; font: 500 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.comparar thead th:nth-child(4), .comparar td:nth-child(4) { background: var(--soft); }
.comparar thead th:nth-child(4) { color: var(--accent); }
@media (max-width: 760px) {
  .comparar, .comparar tbody, .comparar tr { display: block; }
  .comparar thead { display: none; }
  .comparar tbody tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .comparar tbody tr:last-child { border-bottom: 0; }
  .comparar tbody tr.grupo { display: block; padding-bottom: 0; border-bottom: 0; }
  .comparar th, .comparar td { padding: 0; border: 0; }
  .comparar tbody th { grid-column: 1 / -1; width: auto; margin-bottom: 8px; color: var(--ink); font-weight: 500; }
  .comparar .grupo th { margin: 0; padding: 4px 0 0; }
  .comparar td { text-align: left; }
  .comparar td:nth-child(4) { background: none; }
  .comparar td::before { content: attr(data-l); display: block; font-size: .6875rem; font-weight: 400; color: var(--mut); }
}

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js [data-reveal].visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Celular */
@media (max-width: 760px) {
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 9px 8px; font-size: .84rem; }
  .extrato--cartoes img { aspect-ratio: 2 / 1; }
  .ext-txt { padding: 16px 18px 18px; }
  /* A tela real abre em tamanho legível e desliza para o lado */
  .fila-cap { margin-top: 14px; }
  .bloco, .bloco figure { min-width: 0; max-width: 100%; }
  .bloco > * { min-width: 0; max-width: 100%; }
  .janela { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .janela::-webkit-scrollbar { display: none; }
  .janela img { width: 760px; max-width: none; }
  .nota-centro::before, figure .janela + figcaption::before { content: "Deslize a tela para o lado. "; color: var(--accent); }
}
@media (max-width: 920px) { .site-header.compacto .nav { background: var(--surface); } }
@media (max-width: 480px) { .selo { font-size: .72rem; } }

/* Páginas legais (termos.html, privacidade.html) */
.doc-topo { padding-block: clamp(112px, 14vw, 148px) 32px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.doc-topo h1 { margin-top: 16px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.doc-meta { margin-top: 12px; font-size: .875rem; color: var(--mut); }
.doc-meta a, .doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
/* Guias: topo com foto. A foto é espelhada para a pessoa ficar à direita, longe do título */
.doc-topo--foto { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(128px, 15vw, 172px) clamp(64px, 8vw, 96px); }
.doc-topo--foto::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(../img/fundo-hero.jpg) center 42% / cover no-repeat; transform: scaleX(-1); }
.doc-topo--foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 62%, var(--bg-2)), linear-gradient(90deg, var(--bg-2) 26%, color-mix(in srgb, var(--bg-2) 70%, transparent) 54%, transparent 82%); }
:root[data-theme="light"] .doc-topo--foto::before { background-image: url(../img/fundo-hero-claro.jpg); background-position: center 6%; }
.doc-topo--foto h1 { max-width: 15em; }
@media (max-width: 760px) {
  .doc-topo--foto::before { background-position: 30% 42%; }
  :root[data-theme="light"] .doc-topo--foto::before { background-position: 30% 6%; }
  .doc-topo--foto::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 62%, transparent), color-mix(in srgb, var(--bg-2) 80%, transparent) 60%, var(--bg-2)); }
}
.doc-corpo { padding-block: 40px 88px; }
.doc-grade { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-indice { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.doc-indice summary { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); cursor: pointer; list-style: none; }
.doc-indice summary::-webkit-details-marker { display: none; }
.doc-indice ol { display: grid; gap: 2px; margin-top: 12px; }
.doc-indice a { display: block; padding: 6px 10px; border-radius: 10px; font-size: .875rem; line-height: 1.35; color: var(--mut); }
.doc-indice a:hover { color: var(--ink); background: var(--surface-2); }
.doc { max-width: 74ch; min-width: 0; font-size: 1rem; line-height: 1.7; }
.doc section { padding-top: 36px; scroll-margin-top: 72px; }
.doc section:first-of-type { padding-top: 32px; }
.doc h2 { font-size: 1.5rem; line-height: 1.25; }
.doc h3 { margin-top: 24px; font-size: 1.125rem; line-height: 1.3; scroll-margin-top: 96px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { display: grid; gap: 8px; padding-left: 20px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li::marker { color: var(--accent); }
.doc figure { margin-top: 22px; }
.doc figcaption { margin-top: 10px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc code { font: 500 .85em var(--mono); overflow-wrap: anywhere; }
.doc-resumo { padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.doc-resumo h2 { font-size: 1.125rem; }
.doc-tabela { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.doc-tabela table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.doc-tabela th, .doc-tabela td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-tabela thead th { font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); background: var(--surface-2); }
.doc-tabela tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 920px) {
  .doc-grade { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .doc-indice { position: static; max-height: none; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
  .doc-indice summary { list-style: revert; }
  .doc { max-width: none; }
}
@media (max-width: 560px) {
  .doc-tabela table, .doc-tabela tbody, .doc-tabela tr, .doc-tabela td { display: block; }
  .doc-tabela thead { display: none; }
  .doc-tabela tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .doc-tabela tbody tr:last-child { border-bottom: 0; }
  .doc-tabela td { padding: 0; border: 0; }
  .doc-tabela td:first-child { font-weight: 600; color: var(--ink); }
}

/* Páginas de integração */
.painel + .painel { margin-top: clamp(56px, 8vw, 96px); }
.fontes-pagina { max-width: 820px; margin-inline: auto; text-align: center; }
.fontes-pagina a { text-decoration: underline; }
#fontes { padding-block: 0 clamp(32px, 5vw, 56px); }
@media (max-width: 860px) { .painel { grid-template-columns: minmax(0, 1fr); } }
.tabela code { overflow-wrap: anywhere; }

/* Blog: índice e artigos. As páginas legais continuam só com .doc */
.blog-topo { padding-block: clamp(116px, 13vw, 156px) clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); background: var(--wash); }
.blog-topo-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.blog-topo h1 { margin-top: 12px; font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.08; text-wrap: balance; }
.blog-topo .lede { margin-top: 16px; max-width: 58ch; }
.blog-topo--hub { background: var(--bg-2); }
.blog-topo--hub h1 { max-width: 16em; margin-top: 18px; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.blog-topo--hub .doc-meta { margin-top: 20px; }
.migalhas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: .8125rem; color: var(--mut); }
.migalhas a { color: var(--ink-3); }
.migalhas a:hover { color: var(--accent); }
.blog-autor { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.blog-autor img { width: 40px; height: 40px; border-radius: 10px; }
.blog-autor p { display: grid; gap: 2px; font-size: .8125rem; line-height: 1.4; color: var(--mut); }
.blog-autor b { font-size: .875rem; font-weight: 600; color: var(--ink); }
.blog-capa img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; object-position: top center; border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); }
.blog-capa figcaption { margin-top: 10px; }
.blog-temas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.blog-temas a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: .875rem; font-weight: 500; color: var(--ink-2); transition: border-color .2s, color .2s; }
.blog-temas a:hover { border-color: var(--accent); color: var(--accent); }
.blog-temas i { font: 500 .72rem var(--mono); font-style: normal; color: var(--mut); }

.blog-secao { padding-block: clamp(48px, 6vw, 72px); scroll-margin-top: 72px; }
.blog-secao--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.blog-secao-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.blog-secao-topo h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.blog-secao-topo a { flex: none; font-size: .875rem; color: var(--accent); }
.blog-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.blog-card { min-width: 0; }
.blog-card > a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .25s, transform .25s var(--ease); }
.blog-card > a:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-3px); }
.blog-card-img { overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.blog-card > a:hover .blog-card-img img { transform: scale(1.03); }
.blog-card-txt { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.blog-cat { font: 500 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.blog-card h3 { font-size: 1.1875rem; line-height: 1.25; }
.blog-card p { font-size: .9375rem; line-height: 1.55; color: var(--ink-3); }
.blog-ler { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: .8125rem; color: var(--mut); }
.blog-ler svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.blog-card > a:hover .blog-ler { color: var(--accent); }
.blog-card > a:hover .blog-ler svg { transform: translateX(3px); }
.blog-card--destaque { grid-column: span 2; grid-row: span 2; }
.blog-card--destaque .blog-card-img { flex: 1; aspect-ratio: auto; min-height: 240px; }
.blog-card--destaque .blog-card-img img { object-position: center 30%; }
.blog-card--destaque .blog-card-txt { flex: none; padding: 24px 28px 26px; }
.blog-card--destaque h3 { font-size: clamp(1.4rem, 2.6vw, 1.875rem); }
.blog-card--destaque p { max-width: 62ch; font-size: 1rem; }
.blog-card--cta > a { background: var(--soft); border-color: color-mix(in srgb, var(--accent) 36%, transparent); }
.blog-card--cta .blog-card-txt { justify-content: center; padding: 28px; }
.blog-card--cta .blog-ler { flex: none; margin-top: 6px; color: var(--accent); }

.blog-corpo { padding-block: clamp(36px, 5vw, 56px) clamp(56px, 7vw, 88px); }
.blog-lateral { position: sticky; top: 104px; display: grid; gap: 20px; max-height: calc(100vh - 124px); overflow-y: auto; scrollbar-width: none; }
.blog-lateral .doc-indice { position: static; max-height: none; overflow: visible; }
.doc-indice a[data-atual] { color: var(--accent); background: var(--soft); }
.blog-mini { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.blog-mini b { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.blog-mini p { font-size: .8125rem; line-height: 1.45; color: var(--mut); }
.blog-mini .btn { width: 100%; margin-top: 8px; padding-inline: 12px; font-size: .875rem; }
.doc--blog { max-width: 72ch; font-size: 1.0625rem; line-height: 1.75; }
.doc--blog > .doc-resumo:first-child { border-left: 3px solid var(--accent); background: var(--surface); }
.doc--blog .doc-resumo h2 { font-size: .75rem; font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.doc--blog section { padding-top: 48px; scroll-margin-top: 96px; }
.doc--blog h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.2; }
.doc--blog h3 { margin-top: 28px; font-size: 1.25rem; }
.doc--blog p, .doc--blog ul, .doc--blog ol { margin-top: 14px; }
.doc--blog figure { margin-top: 28px; }
.blog-progresso { position: fixed; inset: 0 0 auto; z-index: 200; height: 3px; background: var(--fill); transform: scaleX(0); transform-origin: left; pointer-events: none; }

@media (max-width: 920px) {
  .blog-topo-in { grid-template-columns: minmax(0, 1fr); }
  .blog-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-lateral { position: static; max-height: none; overflow: visible; }
  .blog-mini { display: none; }
  .doc--blog { max-width: none; }
}
@media (max-width: 640px) {
  .blog-lista { grid-template-columns: minmax(0, 1fr); }
  .blog-card--destaque { grid-column: auto; grid-row: auto; }
  .blog-card--destaque .blog-card-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .blog-card--destaque .blog-card-txt { padding: 18px 20px 20px; }
  .doc--blog { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card > a, .blog-card-img img, .blog-ler svg { transition: none; }
}
