/* ==========================================================================
   iPim — Landing page
   Tema claro/escuro via [data-theme] no <html>
   ========================================================================== */

:root {
  --bg: #FAFBFD;
  --surface: #FFFFFF;
  --surface-2: #F4F7FC;
  --mock-bg: #F6F8FB;
  --mock-chrome: #FBFCFE;
  --mock-pill: #F1F4F9;
  --line: #E6EAF1;
  --line-2: #DCE3EE;
  --text: #0F1A2A;
  --muted: #45596F;
  --subtle: #5B6878;
  /* Azuis da logo (barras, da mais clara à mais forte) */
  --logo-1: #D6E3F8;
  --logo-2: #B2CAF2;
  --logo-3: #8DB1EB;
  --logo-ink: #2F5A9E;   /* mesmo tom da logo, escurecido para texto legível em fundo claro */

  --button: #6D87DD;
  --button-hover: #5B76D1;
  --chat-bg: #F3F6FB;
  --chat-avatar: #E9F0FC;
  --accent: var(--button);
  --accent-hover: var(--button-hover);
  --on-accent: #FFFFFF;
  --accent-glow: rgba(109, 135, 221, .7);
  --accent-text: var(--logo-ink);
  --accent-soft: #EBF1FC;
  --accent-soft-text: var(--logo-ink);
  --accent-soft-line: var(--logo-1);
  --serif-accent: #5B8BD9;
  --serif-muted: #45596F;
  --dots: #D8DEE8;
  --header-bg: rgba(250, 251, 253, 0.82);
  --header-line: #EBEEF4;
  --shadow-color: rgba(15, 26, 42, 0.35);
  --mock-shadow: 0 50px 100px -50px rgba(15, 26, 42, .45), 0 0 0 8px rgba(255, 255, 255, .6);

  /* Inversões (cards de destaque) */
  --inv-bg: #0F1A2A;
  --inv-text: #FFFFFF;
  --inv-muted: #B9C7DC;
  --inv-surface: #18243A;
  --inv-b1: #45596F;
  --inv-b2: #8FB2EB;
  --inv-b3: #D7E3F9;
  --inv-chip: #26324A;
  --inv-chip-icon: #B3CBF3;

  /* Faixa antes/depois */
  --band-bg: #0F1A2A;
  --band-line: #0F1A2A;
  --band-text: #FFFFFF;
  --band-serif: #B3CBF3;
  --before-bg: #18243A;
  --before-text: #C9D3E2;
  --before-label: #9DAEC6;
  --before-strike: #5E6E86;
  --after-bg: #FFFFFF;
  --after-text: #0F1A2A;
  --after-label: var(--logo-ink);
  --after-check: var(--logo-3);

  /* Gráficos */
  --rec: #3B4FC6;
  --desp: #B3CBF3;
  --d1: #3B4FC6;
  --d2: #8FB2EB;
  --d3: #45596F;
  --d4: #D7E3F9;
  --d-track: #F1F4F9;
  --sp-blue: #3B4FC6;
  --sp-green: #2E8B5A;
  --sp-red: #C2554F;
  --sp-amber: #B9862F;
  --progress-track: #E3E8F0;

  /* Status */
  --red-bg: #FCEDEC;   --red-fg: #A33B35;
  --amber-bg: #FBF3E3; --amber-fg: #85601C;
  --green-bg: #E8F1EC; --green-fg: #1F6B44;

  --pulse: rgba(141, 177, 235, .6);
  --marquee-dot: #8FB2EB;
  --marquee-bg: #FFFFFF;

  --radius-lg: 22px;
  --radius-xl: 32px;
  --container: 1200px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: var(--font);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #090E18;
  --surface: #101828;
  --surface-2: #0A101C;
  --mock-bg: #0A101C;
  --mock-chrome: #0C1220;
  --mock-pill: #151E30;
  --line: #1E2A3F;
  --line-2: #26344D;
  --text: #EEF2F8;
  --muted: #A9B6C9;
  --subtle: #8E9BB0;
  --accent: var(--button);
  --accent-hover: #7E96E4;
  --chat-bg: #0B111D;
  --chat-avatar: #17233B;
  --accent-text: var(--logo-3);
  --accent-soft: #17233B;
  --accent-soft-text: var(--logo-2);
  --accent-soft-line: #2A3D5E;
  --serif-accent: var(--logo-3);
  --serif-muted: #A9B6C9;
  --dots: #1C2638;
  --header-bg: rgba(9, 14, 24, 0.78);
  --header-line: #172033;
  --shadow-color: rgba(0, 0, 0, 0.8);
  --mock-shadow: 0 60px 120px -50px rgba(141, 177, 235, .3), 0 0 0 8px rgba(255, 255, 255, .03);

  --inv-bg: #D7E3F9;
  --inv-text: #090E18;
  --inv-muted: #2E3E55;
  --inv-surface: #C3D4F3;
  --inv-b1: #8FB2EB;
  --inv-b2: #3B4FC6;
  --inv-b3: #0F1A2A;
  --inv-chip: #D7E3F9;
  --inv-chip-icon: #3B4FC6;

  --band-bg: #101828;
  --band-line: #1E2A3F;
  --band-text: #EEF2F8;
  --band-serif: #8FB2EB;
  --before-bg: #0A101C;
  --before-text: #A9B6C9;
  --before-label: #8E9BB0;
  --before-strike: #4A5A74;
  --after-bg: var(--logo-3);
  --after-text: #0F1A2A;
  --after-label: #1F3B66;
  --after-check: #0F1A2A;

  --rec: #8FB2EB;
  --desp: #34446A;
  --d1: #7F95F2;
  --d2: #B3CBF3;
  --d3: #45596F;
  --d4: #2A3858;
  --d-track: #18233A;
  --sp-blue: #7F95F2;
  --sp-green: #4CC28A;
  --sp-red: #EB7A72;
  --sp-amber: #E0B05A;
  --progress-track: #1E2A3F;

  --red-bg: #3A1C20;   --red-fg: #F2A9A3;
  --amber-bg: #3A2E14; --amber-fg: #E8C47A;
  --green-bg: #12301F; --green-fg: #8FD5AE;

  --pulse: rgba(143, 178, 235, .5);
  --marquee-dot: var(--logo-3);
  --marquee-bg: #0C1220;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--font-serif); font-style: normal; font-weight: inherit; letter-spacing: inherit; }
.serif--accent { color: var(--serif-accent); }
.serif--muted { color: var(--serif-muted); }
.dots { background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 22px 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px; }
.h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.lead { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Logo por tema */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px; border-radius: 999px;
  font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: 0 10px 30px -8px var(--accent-glow); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--text); border-color: var(--muted); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 16px 28px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 32px; }
.nav__link { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav__link:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }
@media (max-width: 420px) { .nav__cta { display: none; } }
.mobile-menu { display: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu {
    display: grid; gap: 4px; padding: 0 24px; max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
  }
  .mobile-menu.is-open { max-height: 420px; padding: 8px 24px 20px; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 17px; }
  .hide-sm { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 40px; }
.hero__inner { max-width: 980px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 0 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px;
  font-size: 13px; color: var(--muted);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); animation: pulse 1.8s ease-out infinite; }
.hero__title { font-size: clamp(44px, 7vw, 92px); line-height: .98; letter-spacing: -0.045em; font-weight: 600; }
.hero__sub { max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__note { font-size: 13px; color: var(--subtle); }
.rise { animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }

/* ---------- Mock do produto ---------- */
.mock-wrap { max-width: 1160px; margin: 64px auto 0; position: relative; padding: 0 24px; }
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--mock-shadow); overflow: hidden; transform-origin: center top;
}
.mock__chrome { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--mock-chrome); }
.mock__chrome > span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mock__url { flex: 1; display: flex; justify-content: center; }
.mock__url div { font-size: 12px; color: var(--subtle); background: var(--mock-pill); padding: 6px 16px; border-radius: 8px; }
.mock__body { display: flex; }
.mock__side { width: 200px; border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.mock__side div { padding: 9px 12px; border-radius: 10px; }
.mock__side .is-active { background: var(--accent-soft); color: var(--accent-soft-text); font-weight: 500; }
.mock__main { flex: 1; min-width: 0; padding: 22px; background: var(--mock-bg); display: flex; flex-direction: column; gap: 16px; }
.mock__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.mock__select { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 400; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 7px 12px; border-radius: 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 12px 6px; }
  .kpi__value { font-size: 16px; }
  .mock__main { padding: 14px; }
}
.kpi { background: var(--surface); border-radius: 14px; padding: 16px 16px 8px; border: 1px solid var(--line); }
.kpi__label { font-size: 12px; color: var(--subtle); }
.kpi__value { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.kpi svg { width: 100%; height: 38px; display: block; margin-top: 6px; }
.mock__charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.panel { background: var(--surface); border-radius: 14px; padding: 18px; border: 1px solid var(--line); min-width: 0; }
.panel--wide { grid-column: span 2; }
@media (max-width: 700px) { .panel--wide { grid-column: auto; } }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: 12px; font-weight: 400; color: var(--muted); }
.legend span, .donut-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.barchart { height: 170px; display: flex; align-items: flex-end; gap: 10px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.barchart__group { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 3px; }
.barchart__group i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; }
.barchart__group i:first-child { background: var(--rec); }
.barchart__group i:last-child { background: var(--desp); }
.donut-row { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.donut { width: 110px; height: 110px; flex: none; transform: rotate(-90deg); }
.donut-legend { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }

.float-card {
  position: absolute; z-index: 3; border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 20px 40px -22px var(--shadow-color); text-align: left;
}
.float-card strong { display: block; font-size: 13px; }
.float-card small { font-size: 12px; }
.float-card--a { left: -4px; top: 120px; background: var(--surface); border: 1px solid var(--line); animation: float 6s ease-in-out infinite; }
.float-card--a small { color: var(--subtle); }
.float-card--b { right: 0; top: 300px; background: var(--inv-bg); color: var(--inv-text); animation: float 7s ease-in-out 1.2s infinite; }
.float-card--b small { color: var(--inv-muted); }
.float-card__icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.float-card--a .float-card__icon { background: var(--green-bg); color: var(--green-fg); }
.float-card--b .float-card__icon { background: var(--inv-chip); color: var(--inv-chip-icon); }
.float-card__icon svg { width: 18px; height: 18px; }

/* ---------- Marquee ---------- */
.marquee { padding: 48px 0; overflow: hidden; border-top: 1px solid var(--header-line); border-bottom: 1px solid var(--header-line); background: var(--marquee-bg); }
.marquee__track { display: flex; gap: 56px; width: max-content; font-size: 22px; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; animation: marquee 38s linear infinite; }
.marquee__track b { color: var(--marquee-dot); font-weight: 400; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Recursos ---------- */
.section { padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--split .lead { max-width: 360px; }
.section-head--center { max-width: none; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.section-head--center .eyebrow { margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px var(--shadow-color); border-color: var(--accent-soft-line); }
.card h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.card--inverse { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-text); }
.card--inverse p { color: var(--inv-muted); }
.card__visual { height: 150px; border-radius: 14px; background: var(--surface-2); padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.card--inverse .card__visual { background: var(--inv-surface); flex-direction: row; align-items: flex-end; gap: 8px; padding: 18px; }
.card--inverse .card__visual i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; }

.cv-line { justify-content: space-between; }
.cv-line__labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--subtle); }
.cv-line svg { width: 100%; height: 80px; }
.match { display: flex; gap: 10px; align-items: center; }
.match svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); }
.chip { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.chip--ok { background: var(--accent-soft); color: var(--accent-soft-text); border-color: var(--accent-soft-line); font-weight: 500; }
.bill { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 12px; }
.pill { padding: 3px 8px; border-radius: 999px; font-weight: 500; }
.pill--red { background: var(--red-bg); color: var(--red-fg); }
.pill--amber { background: var(--amber-bg); color: var(--amber-fg); }
.pill--green { background: var(--green-bg); color: var(--green-fg); }
.progress { font-size: 12px; color: var(--muted); }
.progress__row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.progress__track { height: 6px; background: var(--progress-track); border-radius: 9px; overflow: hidden; }
.progress__fill { height: 100%; width: var(--w); border-radius: 9px; transform-origin: left; }
.dropdown { width: 100%; max-width: 260px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; box-shadow: 0 12px 30px -18px var(--shadow-color); }
.dropdown div { padding: 10px 14px; color: var(--muted); border-top: 1px solid var(--line); }
.dropdown .is-active { background: var(--accent-soft); color: var(--accent-soft-text); font-weight: 500; border-top: 0; display: flex; justify-content: space-between; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.step { border-top: 2px solid var(--text); padding-top: 28px; }
.step__num { font-size: 64px; line-height: 1; color: var(--logo-3); font-weight: 700; letter-spacing: -0.04em; }
.step h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.step p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Antes / depois ---------- */
.band {
  background: var(--band-bg); border: 1px solid var(--band-line); color: var(--band-text);
  border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center;
}
.band h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.band h2 .serif { color: var(--band-serif); }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.compare__col { border-radius: 20px; padding: 24px; }
.compare__label { font-size: 13px; margin-bottom: 16px; letter-spacing: .08em; text-transform: uppercase; }
.compare__col ul { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.compare--before { background: var(--before-bg); color: var(--before-text); }
.compare--before .compare__label { color: var(--before-label); }
.compare--before li { text-decoration: line-through; text-decoration-color: var(--before-strike); }
.compare--after { background: var(--after-bg); color: var(--after-text); }
.compare--after .compare__label { color: var(--after-label); font-weight: 600; }
.compare--after li { display: flex; gap: 10px; align-items: center; }
.compare--after svg { width: 16px; height: 16px; color: var(--after-check); flex: none; }

/* ---------- FAQ ---------- */
.faq { padding: 120px 0; }
.faq__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; }
.faq__title { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; font-size: 18px; font-weight: 500; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 26px; font-weight: 300; color: var(--accent-text); flex: none;
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; font-size: 15px; line-height: 1.65; color: var(--muted); animation: fadeUp .4s ease both; }

/* ---------- CTA final ---------- */
.cta { padding: 0 0 96px; }
.cta__box {
  border: 1px solid var(--line); background-color: var(--surface); border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 112px) 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.cta__bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.cta__bars span { width: 18px; border-radius: 9px; transform-origin: bottom; animation: bars 2.4s ease-in-out infinite; }
.cta__bars span:nth-child(1) { height: 34px; background: var(--logo-1); }
.cta__bars span:nth-child(2) { height: 48px; background: var(--logo-2); animation-delay: .3s; }
.cta__bars span:nth-child(3) { height: 64px; background: var(--logo-3); animation-delay: .6s; }
.cta h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; max-width: 860px; }
.cta p { font-size: 18px; color: var(--muted); max-width: 520px; line-height: 1.55; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--header-line); padding: 56px 0 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand { max-width: 320px; display: flex; flex-direction: column; gap: 14px; }
.footer__brand img { height: 36px; width: auto; align-self: flex-start; }
.footer__brand p { font-size: 14px; line-height: 1.6; color: var(--subtle); }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; font-size: 14px; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols strong { font-weight: 600; }
.footer__cols a { color: var(--muted); text-decoration: none; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom { margin-top: 40px; font-size: 13px; color: var(--subtle); }

/* ==========================================================================
   Animações
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes ring { from { stroke-dasharray: 0 252; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--pulse); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes bars { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.62); } }

/* Revelar ao rolar (ativado pelo JS adicionando .js no <html>) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tilt { transform: perspective(1800px) rotateX(14deg) scale(.96); opacity: .4; transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity 1s ease; }
.js .tilt.in { transform: perspective(1800px) rotateX(0) scale(1); opacity: 1; }

/* Gráficos desenham quando entram na tela */
.js .grow { transform: scaleY(0); transform-origin: bottom; }
.js .in .grow { animation: grow 1s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.js .growx { transform: scaleX(0); }
.js .in .growx { animation: growX 1.2s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.js .draw { stroke-dasharray: 420; stroke-dashoffset: 420; }
.js .in .draw { animation: draw 2.2s ease-out both; animation-delay: var(--d, 0s); }
.js .in .ring { animation: ring 1.6s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }

/* ---------- Efeitos extras ---------- */
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes aurora { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(6%, 4%) scale(1.08); } 66% { transform: translate(-5%, 2%) scale(.95); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* Barra de progresso de leitura */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--logo-2), var(--logo-3)); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* Header compacta ao rolar */
.header { transition: box-shadow .3s ease, background .3s ease; }
.nav { transition: padding .3s ease; }
.nav__logo img { transition: height .3s ease; }
.header.is-scrolled { box-shadow: 0 10px 30px -20px var(--shadow-color); }
.header.is-scrolled .nav { padding-top: 8px; padding-bottom: 8px; }
.header.is-scrolled .nav__logo img { height: 34px; }

/* Aurora atrás do hero */
.hero { position: relative; isolation: isolate; overflow-x: clip; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%;
  filter: blur(90px); opacity: .45; pointer-events: none; animation: aurora 18s ease-in-out infinite;
}
.hero::before { top: -180px; left: calc(50% - 620px); background: radial-gradient(circle, var(--logo-3), transparent 70%); }
.hero::after { top: -120px; right: calc(50% - 620px); background: radial-gradient(circle, var(--logo-2), transparent 70%); opacity: .25; animation-duration: 22s; animation-direction: reverse; }
[data-theme="dark"] .hero::before { opacity: .22; }
[data-theme="dark"] .hero::after { opacity: .3; }

/* Título: palavras entrando uma a uma + brilho no destaque */
.js .hero__title.is-split { animation: none; }
.hero__title .word { display: inline-block; opacity: 0; animation: wordIn .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
.hero__title .serif--accent .word {
  background: linear-gradient(90deg, var(--serif-accent), var(--logo-2), var(--serif-accent)) 0 50% / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wordIn .8s cubic-bezier(.2,.7,.2,1) forwards, shimmer 5s linear 1.6s infinite;
  animation-delay: calc(var(--i) * 70ms + 100ms), 1.6s;
}

/* Botão principal: reflexo ao passar o mouse */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.btn--primary:hover::after { animation: shine .8s ease; }
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(4px); }

/* Mock acompanha o mouse (perspectiva sutil) */
.mock.tilt.is-interactive { transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity 1s ease; }

/* Cards: luz que segue o cursor */
.card { position: relative; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft-line), transparent 60%);
  mix-blend-mode: multiply;
}
[data-theme="dark"] .card::before { mix-blend-mode: screen; }
.card:hover::before { opacity: .55; }
.card > * { position: relative; }

/* Itens internos dos cards entram em sequência */
.js .reveal .match, .js .reveal .bill, .js .reveal .dropdown div, .js .compare--after li { opacity: 0; }
.js .reveal.in .match, .js .reveal.in .bill, .js .reveal.in .dropdown div, .js .reveal.in .compare--after li { animation: slideIn .6s cubic-bezier(.2,.7,.2,1) forwards; }
.js .reveal.in .match:nth-child(2), .js .reveal.in .bill:nth-child(2), .js .reveal.in .dropdown div:nth-child(2), .js .reveal.in .compare--after li:nth-child(2) { animation-delay: .15s; }
.js .reveal.in .bill:nth-child(3), .js .reveal.in .dropdown div:nth-child(3), .js .reveal.in .compare--after li:nth-child(3) { animation-delay: .3s; }
.js .reveal.in .compare--after li:nth-child(4) { animation-delay: .45s; }
.js .reveal .chip--ok, .js .reveal .pill { opacity: 0; }
.js .reveal.in .chip--ok { animation: popIn .5s cubic-bezier(.2,.7,.2,1) .7s forwards; }
.js .reveal.in .pill { animation: popIn .5s cubic-bezier(.2,.7,.2,1) .5s forwards; }
.js .reveal.in .bill:nth-child(2) .pill { animation-delay: .65s; }
.js .reveal.in .bill:nth-child(3) .pill { animation-delay: .8s; }
.compare--after svg { transition: transform .3s; }
.js .reveal.in .compare--after svg { animation: popIn .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: inherit; }

/* Como funciona: linha superior desenha da esquerda para a direita */
.step { position: relative; border-top-color: var(--line); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--text); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .2s; }
html:not(.js) .step::before, .step.in::before { transform: scaleX(1); }

/* ---------- Movimento reduzido: versão leve ----------
   Quem desativa as animações do sistema vê só esmaecimentos e gráficos se desenhando:
   sem deslocamentos, inclinações, desfoque ou efeitos contínuos. */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Entradas viram esmaecimento puro */
  .rise { animation-name: fadeIn; }
  .hero__title .word { animation: fadeIn .7s ease forwards; animation-delay: calc(var(--i) * 60ms + 100ms); }
  .hero__title .serif--accent .word { background: none; color: var(--serif-accent); animation: fadeIn .7s ease forwards; animation-delay: calc(var(--i) * 60ms + 100ms); }
  .js .reveal { transform: none; transition: opacity .9s ease; }
  .js .reveal.in { transform: none; }
  .js .tilt, .js .tilt.in { transform: none; transition: opacity 1s ease; }
  .js .tilt { opacity: 0; }
  .js .tilt.in { opacity: 1; }
  .js .reveal.in .match, .js .reveal.in .bill, .js .reveal.in .dropdown div, .js .reveal.in .compare--after li,
  .js .reveal.in .chip--ok, .js .reveal.in .pill, .js .reveal.in .compare--after svg { animation-name: fadeIn; }
  .faq details p { animation-name: fadeIn; }

  /* Sem movimento contínuo nem ao passar o mouse */
  .hero::before, .hero::after { display: none; }
  .float-card--a, .float-card--b, .marquee__track, .badge__dot, .cta__bars span { animation: none; }
  .btn:hover, .card:hover, .btn:hover svg { transform: none; }
  .btn--primary:hover::after { animation: none; }
  .mock.tilt.is-interactive { transform: none !important; }
}

/* ==========================================================================
   Chat de cadastro
   ========================================================================== */
.chat-lock, .chat-lock body { overflow: hidden; }
.chat[hidden], .chat-overlay[hidden] { display: none; }
.chat-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(9, 14, 24, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s ease; }
.chat-overlay.is-open { opacity: 1; }
.chat {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--chat-bg); border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -30px var(--shadow-color);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.chat.is-open { transform: none; }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--surface); }
.chat__brand { display: flex; align-items: center; gap: 12px; }
.chat__brand strong { display: block; font-size: 16px; letter-spacing: -0.01em; }
.chat__brand small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--subtle); }
.chat__online { width: 7px; height: 7px; border-radius: 50%; background: #2E8B5A; }
.chat__progress { height: 3px; background: var(--line); }
.chat__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--logo-2), var(--button)); transform-origin: left; transform: scaleX(.06); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.chat__messages { flex: 1; overflow-y: auto; padding: 20px 16px 12px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }

.msg { display: flex; align-items: flex-end; gap: 10px; max-width: 92%; animation: msgIn .35s cubic-bezier(.2,.7,.2,1) both; }
.msg--user { align-self: flex-end; flex-direction: row-reverse; }
.msg__avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 9px; background: var(--chat-avatar); }
.msg__avatar i { width: 4px; border-radius: 2px; }
.msg__avatar i:nth-child(1) { height: 7px; background: var(--logo-1); }
.msg__avatar i:nth-child(2) { height: 11px; background: var(--logo-2); }
.msg__avatar i:nth-child(3) { height: 15px; background: var(--logo-3); }
.msg--user .msg__avatar { align-items: center; padding: 0; font-size: 10px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.msg__bubble { padding: 12px 14px 8px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--text); box-shadow: 0 6px 18px -14px var(--shadow-color); overflow-wrap: anywhere; }
.msg__bubble small { font-size: 12.5px; color: var(--muted); }
.msg__bubble a { color: var(--accent-text); }
.msg__bubble time { display: block; margin-top: 4px; font-size: 11px; color: var(--subtle); }
.msg--user .msg__bubble { background: var(--button); border-color: var(--button); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg--user .msg__bubble time { color: rgba(255,255,255,.8); text-align: right; }
.msg--typing .msg__bubble { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg--typing b { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); animation: typingDot 1.1s ease-in-out infinite; }
.msg--typing b:nth-child(2) { animation-delay: .15s; }
.msg--typing b:nth-child(3) { animation-delay: .3s; }
.chat__summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.chat__summary dt { color: var(--subtle); }
.chat__summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.chat__choices { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-left: 44px; animation: msgIn .35s cubic-bezier(.2,.7,.2,1) both; }
.chat__choice { min-height: 40px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--button); background: var(--surface); color: var(--accent-text); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: background .2s, color .2s; }
.chat__choice:hover { background: var(--accent-soft); color: var(--accent-text); }
.chat__choice--primary { background: var(--button); color: #fff; }
.chat__choice--primary:hover { background: var(--button-hover); color: #fff; }

.chat__form { display: flex; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.chat__input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.chat__input:focus { outline: none; border-color: var(--button); box-shadow: 0 0 0 4px var(--accent-soft); }
.chat__input:disabled { opacity: .6; cursor: not-allowed; }
.chat__send { width: 48px; height: 48px; flex: none; border: 0; border-radius: 12px; background: var(--button); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, opacity .2s; }
.chat__send:hover:not(:disabled) { background: var(--button-hover); }
.chat__send:disabled { opacity: .4; cursor: not-allowed; }
.chat__send svg { width: 18px; height: 18px; }

@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes typingDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .chat { transition: none; }
  .msg, .chat__choices { animation-name: fadeIn; }
  .msg--typing b { animation: none; opacity: .6; }
}

/* ==========================================================================
   Páginas legais (termos.html / privacidade.html)
   ========================================================================== */
.legal { padding: 72px 0 112px; }
.legal__inner { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 28px; }
.legal__back:hover { color: var(--text); }
.legal__back svg { width: 16px; height: 16px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; }
.legal__meta { margin-top: 16px; font-size: 14px; color: var(--subtle); }
.legal__intro { margin-top: 28px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.legal__toc { margin: 40px 0 8px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.legal__toc strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.legal__toc ol { list-style: decimal; padding-left: 20px; columns: 2 260px; column-gap: 32px; font-size: 14px; line-height: 1.5; }
.legal__toc li { margin-bottom: 8px; break-inside: avoid; color: var(--subtle); }
.legal__toc a { color: var(--muted); text-decoration: none; }
.legal__toc a:hover { color: var(--accent-text); text-decoration: underline; }
.legal section { padding-top: 40px; scroll-margin-top: 90px; }
.legal h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 14px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal section ul { list-style: disc; padding-left: 22px; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal__note { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-soft-line); font-size: 15px; line-height: 1.65; color: var(--text); }
.legal__table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); line-height: 1.6; color: var(--muted); }
.legal__table th { font-size: 13px; font-weight: 600; color: var(--text); background: var(--surface-2); }
.legal__table td:first-child { color: var(--text); font-weight: 500; width: 34%; }
.legal__table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.legal__table-wrap .legal__table { margin: 0; }
.legal__table-wrap tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .legal__table td:first-child { width: 50%; } .legal__table th, .legal__table td { padding: 10px 12px; font-size: 14px; } .legal__toc { padding: 20px; } }
