/* Fluxo · site de apresentação
   Cores alinhadas ao design system do app (src/constants/theme.ts do app-financeiro). */

:root {
  --bg: #F4F4F6;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EEEEF2;
  --text: #17171B;
  --text-2: #55555E;
  --text-3: #6E6E78;
  --border: #E3E3E8;
  --brand: #5E4FE0;
  --brand-ink: #4F42CC;
  --brand-soft: #EFEDFC;
  --btn: #5E4FE0;
  --income: #16804F;
  --income-soft: #E2F3EA;
  --expense: #C23B4B;
  --expense-soft: #F9E5E8;
  --gold: #9C7210;
  --gold-soft: #F6EED9;
  --warn: #8F5C08;
  --nav-bg: rgba(244, 244, 246, .74);
  --glass: rgba(255, 255, 255, .78);
  --glass-border: rgba(23, 23, 27, .07);
  --grad: linear-gradient(100deg, #5E4FE0 0%, #8257EB 48%, #B9508F 100%);
  --screen-bg: #F4F4F6;
  --screen-ink: #17171B;
  --shadow-sm: 0 1px 2px rgba(23, 23, 27, .05), 0 6px 20px -8px rgba(23, 23, 27, .12);
  --shadow-lg: 0 2px 6px rgba(23, 23, 27, .05), 0 30px 70px -24px rgba(36, 28, 90, .28);
  --glow: rgba(94, 79, 224, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0D; --bg-alt: #101013; --surface: #1B1B21; --surface-2: #26262E;
    --text: #F5F5F7; --text-2: #A1A1AA; --text-3: #8A8A96; --border: #292930;
    --brand: #7261ED; --brand-ink: #A69AFF; --brand-soft: #211F30; --btn: #6656E6;
    --income: #47C995; --income-soft: rgba(71, 201, 149, .14); --expense: #F17B88; --expense-soft: rgba(241, 123, 136, .14);
    --gold: #DBB65D; --gold-soft: rgba(219, 182, 93, .14); --warn: #E3B95E;
    --nav-bg: rgba(11, 11, 13, .72); --glass: rgba(27, 27, 33, .74); --glass-border: rgba(255, 255, 255, .09);
    --grad: linear-gradient(100deg, #B3A9FF 0%, #8B7FF5 42%, #E58FB8 100%);
    --screen-bg: #101013; --screen-ink: #F5F5F7;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 40px 90px -30px rgba(0, 0, 0, .9);
    --glow: rgba(114, 97, 237, .34);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0D; --bg-alt: #101013; --surface: #1B1B21; --surface-2: #26262E;
  --text: #F5F5F7; --text-2: #A1A1AA; --text-3: #8A8A96; --border: #292930;
  --brand: #7261ED; --brand-ink: #A69AFF; --brand-soft: #211F30; --btn: #6656E6;
  --income: #47C995; --income-soft: rgba(71, 201, 149, .14); --expense: #F17B88; --expense-soft: rgba(241, 123, 136, .14);
  --gold: #DBB65D; --gold-soft: rgba(219, 182, 93, .14); --warn: #E3B95E;
  --nav-bg: rgba(11, 11, 13, .72); --glass: rgba(27, 27, 33, .74); --glass-border: rgba(255, 255, 255, .09);
  --grad: linear-gradient(100deg, #B3A9FF 0%, #8B7FF5 42%, #E58FB8 100%);
  --screen-bg: #101013; --screen-ink: #F5F5F7;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 40px 90px -30px rgba(0, 0, 0, .9);
  --glow: rgba(114, 97, 237, .34);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.wrap-narrow { max-width: 780px; }
.section { padding-block: clamp(88px, 12vw, 160px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); }
.eyebrow { font-weight: 600; font-size: 1.05rem; color: var(--brand-ink); margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; }
.sub { margin-top: 20px; font-size: clamp(1.06rem, 1.5vw, 1.28rem); line-height: 1.5; color: var(--text-2); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--btn); color: #fff; font-weight: 600; font-size: .98rem; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 24px -8px var(--glow);
  transition: transform .2s var(--ease), filter .2s, box-shadow .3s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 12px 30px -8px var(--glow); }
.btn:active { transform: scale(.97); }
.btn-sm { height: 34px; padding: 0 16px; font-size: .88rem; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1.08rem; }
.btn .ic { font-size: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.link-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 1.08rem; font-weight: 600; height: 56px; padding: 0 8px; }
.link-lg .ic { transition: transform .25s var(--ease); }
.link-lg:hover .ic { transform: translateY(3px); }

/* Segmentado (estilo iOS) */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 14px; background: var(--surface-2); }
.seg button {
  border: 0; background: transparent; padding: 0 16px; height: 36px; border-radius: 11px; font-size: .95rem; font-weight: 600;
  color: var(--text-2); transition: background .25s, color .25s, box-shadow .25s; min-width: 56px;
}
.seg button[aria-checked="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
:root[data-theme="dark"] .seg button[aria-checked="true"], :root[data-theme="dark"] .seg button[aria-selected="true"] { background: #3A3A44; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .seg button[aria-checked="true"], :root:not([data-theme="light"]) .seg button[aria-selected="true"] { background: #3A3A44; }
}

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: calc(56px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .5s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-in { height: 56px; display: flex; align-items: center; gap: 24px; max-width: 1140px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: .92rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav .btn { margin-left: 8px; }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Abertura ---------- */
.hero { position: relative; padding: calc(56px + env(safe-area-inset-top) + clamp(40px, 7vw, 96px)) 0 clamp(64px, 9vw, 120px); overflow: clip; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 36% at 72% 34%, var(--glow), transparent 70%),
    radial-gradient(30% 30% at 20% 10%, rgba(185, 80, 143, .10), transparent 70%);
  filter: blur(10px);
}
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.pill {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--brand-ink);
  background: var(--brand-soft); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.7rem, 6.1vw, 5.1rem); line-height: 1.02; letter-spacing: -.04em; }
.hero h1 .grad { display: inline; }
.lead { margin-top: 24px; font-size: clamp(1.1rem, 1.55vw, 1.32rem); line-height: 1.5; color: var(--text-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 34px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 26px 0 0; color: var(--text-3); font-size: .92rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--income-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%2347C995' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

.hero-stage { --w: clamp(250px, 25vw, 318px); position: relative; display: grid; place-items: center; perspective: 1400px; padding: 10px 0; }
.phone-hero { --w: inherit; }
.callout {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 4px; padding: 13px 16px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  font-size: .86rem; line-height: 1.25; white-space: nowrap; will-change: transform;
}
.callout strong { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.callout small { font-size: .78rem; font-weight: 600; color: var(--income); margin-left: 4px; }
.c-label { color: var(--text-3); font-size: .8rem; }
.pos { color: var(--income); }
.c1 { left: calc(50% - var(--w) * .5 - 96px); top: 15%; }
.c2 { right: calc(50% - var(--w) * .5 - 110px); top: 47%; min-width: 196px; }
.c3 { left: calc(50% - var(--w) * .5 - 70px); bottom: 12%; flex-direction: row; align-items: center; gap: 10px; }
.c-bar { position: relative; display: block; height: 6px; border-radius: 9px; background: var(--surface-2); margin-top: 6px; }
.c-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--income); }
.c-bar b { position: absolute; top: -3px; width: 2px; height: 12px; border-radius: 2px; background: var(--text-3); }
.c-dot { width: 32px; height: 32px; border-radius: 10px; background: var(--gold-soft); position: relative; }
.c-dot::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid var(--gold); }
.c3 > span:last-child { display: flex; flex-direction: column; }

/* Aparelho */
.phone {
  --w: 300px; position: relative; width: var(--w); aspect-ratio: 393 / 852; border-radius: calc(var(--w) * .165); padding: calc(var(--w) * .032);
  background: linear-gradient(145deg, #3B3B44, #121216 40%, #2A2A31 75%, #0E0E11);
  box-shadow: inset 0 0 0 1.5px #4A4A53, inset 0 0 0 calc(var(--w) * .012) #0A0A0C, var(--shadow-lg);
}
.phone::before, .phone::after { /* botões laterais */
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2B2B32;
}
.phone::before { left: -2px; top: 22%; height: 9%; box-shadow: 0 calc(var(--w) * .2) 0 #2B2B32; }
.phone::after { right: -2px; top: 30%; height: 14%; }
.screen {
  position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .135); overflow: hidden;
  background: var(--screen-bg); color: var(--screen-ink); display: flex; flex-direction: column; isolation: isolate;
}
.statusbar {
  flex: none; height: 6.34%; display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 11%;
  font-size: calc(var(--w) * .044); font-weight: 600; letter-spacing: -.01em; position: relative; font-family: var(--font-display);
}
.island { position: absolute; left: 50%; top: 22%; width: 32%; height: 62%; transform: translateX(-50%); background: #000; border-radius: 999px; }
.sb-icons { display: flex; gap: calc(var(--w) * .016); align-items: center; }
.sig { width: calc(var(--w) * .05); height: calc(var(--w) * .033);
  background: linear-gradient(to right, currentColor 0 18%, transparent 18% 27%, currentColor 27% 45%, transparent 45% 54%, currentColor 54% 72%, transparent 72% 81%, currentColor 81%);
  -webkit-mask: linear-gradient(to top right, #000 50%, transparent 50%); mask: linear-gradient(to top right, #000 50%, transparent 50%); }
.bat { width: calc(var(--w) * .074); height: calc(var(--w) * .036); border-radius: calc(var(--w) * .011); border: 1.2px solid currentColor; opacity: .9; position: relative; }
.bat::after { content: ""; position: absolute; inset: 1.5px; right: 22%; border-radius: 2px; background: currentColor; }
.screen picture, .screen > picture img { display: block; width: 100%; flex: 1; min-height: 0; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.home-ind { position: absolute; left: 50%; bottom: 1%; width: 36%; height: .55%; transform: translateX(-50%); border-radius: 9px; background: var(--screen-ink); opacity: .85; z-index: 3; }

/* ---------- Pilares ---------- */
.pillars { padding-bottom: clamp(24px, 4vw, 48px); }
.pillars-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--surface); border-radius: var(--radius); padding: 30px 28px 32px; box-shadow: var(--shadow-sm); }
.pillar h2 { font-size: 1.4rem; letter-spacing: -.02em; margin: 18px 0 8px; }
.pillar p { color: var(--text-2); font-size: 1rem; }
.p-ic, .tile-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 22px; background: var(--surface-2); color: var(--text); }
.ic-brand { background: var(--brand-soft); color: var(--brand-ink); }
.ic-gold { background: var(--gold-soft); color: var(--gold); }
.ic-green { background: var(--income-soft); color: var(--income); }

/* ---------- Simulador ---------- */
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1020px; margin: 0 auto; }
.sim-controls { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); display: grid; gap: 26px; }
.field .f-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.field label { font-weight: 600; display: flex; align-items: center; gap: 9px; }
.field output { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.06rem; }
.hint { color: var(--text-3); font-size: .86rem; margin-top: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-in { background: var(--income); } .dot-out { background: var(--expense); }
input[type="range"] {
  --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0; cursor: pointer; touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 9px; background: linear-gradient(to right, var(--brand) var(--p), var(--surface-2) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 9px; background: linear-gradient(to right, var(--brand) var(--p), var(--surface-2) var(--p)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 3px 8px rgba(0, 0, 0, .2), 0 1px 1px rgba(0, 0, 0, .12); transition: transform .15s;
}
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.field[data-kind="in"] input { --fill: var(--income); }
.field[data-kind="in"] input::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--income) var(--p), var(--surface-2) var(--p)); }
.field[data-kind="in"] input::-moz-range-track { background: linear-gradient(to right, var(--income) var(--p), var(--surface-2) var(--p)); }
.goal { border: 0; padding: 0; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.goal legend { float: left; font-weight: 600; padding: 0; }

.sim-result { display: grid; gap: 16px; position: sticky; top: 84px; }
.balance-card {
  background: radial-gradient(120% 120% at 100% 0%, #2B2647 0%, #1D1C27 55%); color: #F5F5F7; border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .06);
}
.b-label { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: #A1A1AA; }
.b-value { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; margin: 8px 0 22px; font-variant-numeric: tabular-nums; line-height: 1.05; }
.b-value.neg { color: #F17B88; }
.b-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; }
.b-split > div { display: flex; align-items: center; gap: 12px; }
.b-split small { display: block; color: #A1A1AA; font-size: .86rem; }
.b-split strong { font-variant-numeric: tabular-nums; font-size: 1.08rem; }
.b-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; flex: none; }
.b-ic.in { background: rgba(71, 201, 149, .16); color: #47C995; }
.b-ic.out { background: rgba(241, 123, 136, .16); color: #F17B88; }
.pulse-card { background: var(--surface); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); --tone: var(--income); }
.pulse-card[data-tone="warning"] { --tone: var(--warn); }
.pulse-card[data-tone="danger"] { --tone: var(--expense); }
.pulse-card[data-tone="idle"] { --tone: var(--text-3); }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pc-top .b-label { color: var(--text-3); }
.pc-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; transition: color .3s; }
.pc-pct { text-align: right; }
.pc-pct strong { display: block; font-size: 1.8rem; letter-spacing: -.03em; color: var(--tone); font-variant-numeric: tabular-nums; line-height: 1.1; transition: color .3s; }
.pc-pct small { color: var(--text-3); font-size: .86rem; }
.pc-bar { position: relative; height: 10px; border-radius: 9px; background: var(--surface-2); margin: 18px 0 14px; }
.pc-bar i { position: absolute; inset: 0 auto 0 0; width: 0; max-width: 100%; border-radius: inherit; background: var(--tone); transition: width .5s var(--ease), background-color .3s; }
.pc-bar b { position: absolute; top: -4px; width: 3px; height: 18px; margin-left: -1.5px; border-radius: 3px; background: var(--text-3); transition: left .4s var(--ease); }
.pc-detail { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); font-size: .95rem; flex-wrap: wrap; }
.pc-detail span:last-child { color: var(--brand-ink); font-weight: 600; }
.fine { text-align: center; color: var(--text-3); font-size: .86rem; }

/* ---------- Tour ---------- */
.tour { background: var(--bg-alt); overflow: clip; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1020px; margin: 0 auto; }
.tour-list { display: grid; gap: 6px; }
.t-item {
  display: grid; grid-template-rows: auto 0fr auto; text-align: left; border: 0; background: transparent; border-radius: 22px;
  padding: 18px 24px; transition: background-color .35s, box-shadow .35s, grid-template-rows .45s var(--ease);
}
.t-item:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.t-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; letter-spacing: -.02em; color: var(--text-3); transition: color .3s; }
.t-text { overflow: hidden; color: var(--text-2); font-size: 1.02rem; line-height: 1.5; opacity: 0; transition: opacity .35s, margin .45s var(--ease); }
.t-prog { display: block; height: 3px; border-radius: 3px; background: var(--surface-2); margin-top: 0; overflow: hidden; opacity: 0; transition: opacity .3s, margin .45s; }
.t-prog i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; }
.t-item[aria-selected="true"] { grid-template-rows: auto 1fr auto; background: var(--bg); box-shadow: var(--shadow-sm); }
.t-item[aria-selected="true"] .t-name { color: var(--text); }
.t-item[aria-selected="true"] .t-text { opacity: 1; margin-top: 8px; }
.t-item[aria-selected="true"] .t-prog { opacity: 1; margin-top: 16px; }
.t-item[aria-selected="true"] .t-prog i { animation: prog var(--dur, 6s) linear forwards; }
.tour.paused .t-item[aria-selected="true"] .t-prog i, .tour.static .t-item[aria-selected="true"] .t-prog i { animation-play-state: paused; }
.tour.static .t-prog { display: none; }
@keyframes prog { to { width: 100%; } }
.tour-stage { display: grid; place-items: center; position: relative; }
.tour-stage::before { content: ""; position: absolute; inset: 10% -20%; background: radial-gradient(closest-side, var(--glow), transparent); z-index: 0; filter: blur(20px); }
.phone-tour { --w: clamp(240px, 26vw, 320px); z-index: 1; touch-action: pan-y; }
.shots { position: relative; flex: 1; min-height: 0; }
.shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .55s var(--ease), transform .7s var(--ease); }
.shot.on { opacity: 1; transform: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Cartão ---------- */
.cx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1020px; margin: 0 auto; }
.cx-cal { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.mini-card {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; aspect-ratio: 1.586; max-height: 170px; width: min(100%, 270px);
  margin: 0 auto 26px; padding: 18px 20px; border-radius: 18px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #7A4BE0, #47229A); box-shadow: 0 18px 40px -16px rgba(71, 34, 154, .7);
}
.mini-card::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -20%; top: -30%; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.mc-name { font-weight: 700; font-size: 1.02rem; }
.mc-chip { width: 36px; height: 26px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .45); align-self: center; }
.mc-rule { font-size: .86rem; color: rgba(255, 255, 255, .85); }
.cal-title { font-weight: 600; text-align: center; margin-bottom: 14px; font-size: .98rem; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-week span { font-size: .78rem; font-weight: 600; color: var(--text-3); padding-bottom: 6px; }
.cal-days button {
  position: relative; border: 0; aspect-ratio: 1; min-height: 38px; border-radius: 12px; background: transparent; font-weight: 500; font-size: .98rem;
  font-variant-numeric: tabular-nums; transition: background-color .25s, color .25s, transform .15s;
}
.cal-days button:hover { background: var(--surface-2); }
.cal-days button:active { transform: scale(.92); }
.cal-days button.cycle { background: var(--brand-soft); }
.cal-days button.close::after, .cal-days button.due::after { content: ""; position: absolute; left: 50%; bottom: 13%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; }
.cal-days button.close::after { background: var(--warn); }
.cal-days button.due::after { background: var(--income); }
.cal-days button[aria-pressed="true"] { background: var(--btn); color: #fff; font-weight: 700; }
.cal-legend { display: flex; justify-content: center; gap: 20px; margin-top: 14px; font-size: .84rem; color: var(--text-3); }
.cal-legend span { display: flex; align-items: center; gap: 7px; }
.cal-legend i { width: 7px; height: 7px; border-radius: 50%; }
.lg-close { background: var(--warn); } .lg-due { background: var(--income); }
.cal-legend i.lg-cycle { width: 12px; height: 12px; border-radius: 4px; background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--border); }
.cal-legend { flex-wrap: wrap; gap: 8px 18px; }
.cx-when { color: var(--text-3); font-weight: 600; }
.cx-big { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin: 10px 0 16px; }
.cx-detail { color: var(--text-2); font-size: 1.06rem; }
.cx-inst { margin-top: 34px; }
.cx-inst-label { font-weight: 600; margin-bottom: 12px; }
.seg-wide { display: flex; width: 100%; max-width: 420px; }
.seg-wide button { flex: 1; min-width: 0; padding: 0 6px; }
.months { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; }
.months li {
  display: flex; flex-direction: column; padding: 9px 13px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: .82rem; color: var(--text-3); animation: pop .45s var(--ease) both;
}
.months li strong { color: var(--text); font-size: .95rem; font-variant-numeric: tabular-nums; }
.months li.more { justify-content: center; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.flash { animation: flash .5s var(--ease); }
@keyframes flash { from { opacity: .2; transform: translateY(6px); } }

/* ---------- Privacidade ---------- */
.privacy {
  --text-2: #A1A1AA; position: relative; overflow: clip; color: #F5F5F7; padding-block: clamp(96px, 13vw, 180px);
  background: radial-gradient(60% 50% at 50% 0%, rgba(114, 97, 237, .28), transparent 70%), #08080A;
}
.privacy .eyebrow { color: #A69AFF; }
.privacy .sec-head { margin-bottom: clamp(44px, 6vw, 80px); }
.priv-visual { display: grid; place-items: center; margin-bottom: 36px; }
.vault { position: relative; width: 140px; height: 140px; display: grid; place-items: center; }
.vault-ic {
  position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 30px; display: grid; place-items: center; font-size: 42px; color: #fff;
  background: linear-gradient(150deg, #8B7FF5, #4E3FD0); box-shadow: 0 20px 50px -12px rgba(114, 97, 237, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(166, 154, 255, .35); animation: ring 4s var(--ease) infinite; opacity: 0; }
.r2 { animation-delay: 1.3s; } .r3 { animation-delay: 2.6s; }
@keyframes ring { 0% { transform: scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1020px; margin: 0 auto; }
.priv-item { padding: 30px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.priv-item .ic { font-size: 28px; color: #A69AFF; }
.priv-item h3 { font-size: 1.3rem; letter-spacing: -.02em; margin: 18px 0 8px; }
.priv-item p { color: #A1A1AA; }
.priv-note { max-width: 680px; margin: 44px auto 0; text-align: center; color: #A1A1AA; font-size: .98rem; }
.priv-note a { color: #A69AFF; font-weight: 600; white-space: nowrap; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; }
.tile { position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; }
.tile h3 { font-size: 1.26rem; letter-spacing: -.02em; margin: 18px 0 6px; }
.tile p { color: var(--text-2); font-size: .98rem; }
.t-goal { grid-column: span 2; grid-row: span 2; }
.t-budget, .t-backup { grid-column: span 2; }
.goal-demo { margin-top: auto; padding: 22px; border-radius: 20px; background: var(--bg); display: grid; gap: 22px; }
.goal-demo > div + div { border-top: 1px solid var(--border); padding-top: 20px; }
.t-goal p { margin-bottom: 26px; }
.gd-top { display: flex; justify-content: space-between; align-items: baseline; }
.gd-top span { color: var(--brand-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.gd-bar { height: 10px; border-radius: 9px; background: var(--surface-2); margin: 14px 0 10px; overflow: hidden; }
.gd-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.6s var(--ease); }
.gd-foot { color: var(--text-3); font-size: .88rem; }
.hide-demo {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 0; border-radius: 16px;
  background: var(--bg); padding: 12px 14px; text-align: left;
}
.hd-val { font-weight: 700; font-size: 1.04rem; white-space: nowrap; font-variant-numeric: tabular-nums; transition: filter .35s, opacity .35s; }
.hd-btn { white-space: nowrap; display: flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--brand-ink); }
.hide-demo[aria-pressed="true"] .hd-val { filter: blur(7px); opacity: .7; }
.switch { margin-top: 18px; width: 56px; height: 32px; border-radius: 999px; border: 0; background: var(--surface-2); position: relative; transition: background-color .3s; flex: none; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch[aria-checked="true"] { background: var(--income); }
.switch[aria-checked="true"] i { transform: translateX(24px); }
.budget-demo { margin-top: 18px; display: grid; gap: 12px; }
.bd-row { display: grid; grid-template-columns: 7.5em 1fr 3em; align-items: center; gap: 12px; font-size: .92rem; }
.bd-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.bd-bar { height: 8px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.bd-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--income); transition: width 1.4s var(--ease) .2s; }
.bd-bar.warn i { background: var(--warn); }
.in .bd-bar i, .in .gd-bar i { width: var(--w); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Instalar ---------- */
.install { background: var(--bg-alt); }
.inst-box { max-width: 720px; margin: 0 auto; background: var(--bg); border-radius: 32px; padding: clamp(24px, 4vw, 44px); display: grid; justify-items: center; gap: 28px; }
.seg-os button { min-width: 120px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; width: 100%; counter-reset: st; }
.steps li { display: flex; gap: 18px; align-items: center; padding: 14px 6px; border-bottom: 1px solid var(--border); counter-increment: st; animation: pop .4s var(--ease) both; }
.steps li:nth-child(2) { animation-delay: .06s; } .steps li:nth-child(3) { animation-delay: .12s; } .steps li:nth-child(4) { animation-delay: .18s; }
.steps li:last-child { border-bottom: 0; }
.steps strong { display: block; font-size: 1.06rem; }
.steps li > span:last-child { color: var(--text-2); font-size: .96rem; }
.steps li > span:last-child strong { color: var(--text); }
.steps li > span:last-child strong::before { content: counter(st) ". "; color: var(--brand-ink); }
.st-ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 24px; color: #3478F6; }
.st-app { background: transparent; box-shadow: none; }
.st-app img { border-radius: 11px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }

/* ---------- Dúvidas ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 4px;
  font-size: clamp(1.08rem, 1.8vw, 1.25rem); font-weight: 600; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { font-size: 22px; color: var(--text-3); transition: transform .3s var(--ease); }
.faq-list details[open] summary .ic { transform: rotate(180deg); }
.faq-a { padding: 0 4px 26px; color: var(--text-2); font-size: 1.04rem; max-width: 640px; }
.faq-list details[open] .faq-a { animation: flash .4s var(--ease); }

/* ---------- Final ---------- */
.final { text-align: center; padding-block: clamp(96px, 13vw, 170px); background: radial-gradient(50% 60% at 50% 100%, var(--glow), transparent 70%); }
.final-in { display: grid; justify-items: center; gap: 0; }
.final-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 50px -14px rgba(36, 28, 90, .55); margin-bottom: 34px; }
.final h2 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.03; letter-spacing: -.04em; }
.final .sub { margin: 18px 0 34px; }

/* ---------- Rodapé ---------- */
.foot { border-top: 1px solid var(--border); padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .88rem; color: var(--text-3); }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: 1rem; }
.foot-brand img { border-radius: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-self: end; }
.foot-links a { color: var(--text-2); }
.foot-note { grid-column: 1 / -1; max-width: 720px; line-height: 1.55; }

/* ---------- Aparecer ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1s; }
.js .hero .reveal:nth-child(2) { transition-delay: .08s; } .js .hero .reveal:nth-child(3) { transition-delay: .16s; }
.js .hero .reveal:nth-child(4) { transition-delay: .24s; } .js .hero .reveal:nth-child(5) { transition-delay: .32s; }
.js .pillars .reveal:nth-child(2), .js .priv-grid .reveal:nth-child(2) { transition-delay: .1s; }
.js .pillars .reveal:nth-child(3), .js .priv-grid .reveal:nth-child(3) { transition-delay: .2s; }
.js .phone-hero { animation: rise 1.4s var(--ease) both .15s; }
.js .callout { animation: float-in 1s var(--ease) both; }
.js .c1 { animation-delay: .7s; } .js .c2 { animation-delay: .85s; } .js .c3 { animation-delay: 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(80px) rotateX(24deg) scale(.94); } }
@keyframes float-in { from { opacity: 0; transform: translateY(20px) scale(.94); } }

/* ---------- Telas menores ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .lead { margin-inline: auto; }
  .cta-row, .facts { justify-content: center; }
  .hero-stage { margin-top: 12px; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-stage { order: -1; }
  .tour-list { max-width: 620px; margin: 0 auto; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-goal { grid-row: auto; }
}
@media (max-width: 860px) {
  .sim-grid, .cx-grid { grid-template-columns: 1fr; }
  .sim-result { order: -1; top: 66px; z-index: 5; gap: 10px; }
  .sim-result .fine { display: none; }
  .balance-card { padding: 18px 22px; }
  .b-value { font-size: 2.3rem; margin: 4px 0 14px; }
  .b-split { padding-top: 12px; }
  .pulse-card { padding: 16px 20px; }
  .pc-bar { margin: 12px 0 10px; }
  .pillars-in, .priv-grid { grid-template-columns: 1fr; }
  .cx-result { text-align: center; }
  .seg-wide { margin: 0 auto; }
  .months { justify-content: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-stage { --w: min(62vw, 250px); }
  .callout { padding: 9px 12px; border-radius: 14px; font-size: .76rem; }
  .callout strong { font-size: .95rem; }
  .c-label { font-size: .7rem; }
  .c1 { left: 0; top: 10%; }
  .c2 { right: 0; top: 46%; min-width: 0; width: 158px; }
  .c3 { left: 2px; bottom: 9%; }
  .c-dot { width: 26px; height: 26px; }
  .c-dot::after { inset: 8px; }
  .callout small { display: block; margin: 0; }
  .b-split strong { font-size: .98rem; }
  .b-split > div { gap: 9px; }
  .b-ic { width: 30px; height: 30px; font-size: 15px; }
  .pc-title { font-size: 1.1rem; }
  .pc-pct strong { font-size: 1.5rem; }
  .t-item { padding: 14px 18px; }
  .t-name { font-size: 1.14rem; }
  .bento { grid-template-columns: 1fr 1fr; gap: 12px; grid-auto-flow: row dense; }
  .tile { padding: 20px; border-radius: 24px; }
  .tile h3 { font-size: 1.08rem; margin-top: 14px; }
  .tile p { font-size: .9rem; }
  .t-goal, .t-budget, .t-hide { grid-column: 1 / -1; }
  .t-backup { grid-column: auto; }
  .goal-demo { padding: 18px; }
  .tile-ic { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-self: start; }
  .goal { justify-content: center; }
  .goal legend { float: none; width: 100%; text-align: center; margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ring { display: none; }
}
