/* Landing pública (index.php). Parallax só aqui; nunca no app logado. */
.lp { overflow-x: clip; }
.lp-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -.02em; max-width: 20ch; }
.lp-section-head { margin-bottom: var(--s-12); }
.lp-section-head--center { text-align: center; display: grid; justify-items: center; }
.lp-section-head--center .lp-h2 { margin-bottom: var(--s-6); }

/* Navegação */
.lp-nav { position: sticky; top: 0; z-index: var(--z-nav); background: var(--paper); border-bottom: 1px solid transparent; transition: border-color var(--dur-base) var(--ease); }
.lp-nav.is-scrolled { border-bottom-color: var(--line); }
.lp-nav__inner { display: flex; align-items: center; gap: var(--s-6); min-height: 64px; }
.lp-brand { font-weight: 600; font-size: var(--text-md); color: var(--ink); text-decoration: none; margin-right: auto; }
.lp-nav__links { display: flex; gap: var(--s-6); font-size: var(--text-sm); }
.lp-nav__links a { color: var(--ink-2); text-decoration: none; }
.lp-nav__links a:hover { color: var(--ink); }
.lp-nav__actions { display: flex; gap: var(--s-2); }
@media (max-width: 760px) { .lp-nav__links { display: none; } }
@media (max-width: 380px) { .lp-nav__actions .btn--ghost { display: none; } }

/* Hero */
.lp-hero { padding: clamp(48px, 8vw, 112px) 0 clamp(64px, 10vw, 140px); }
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.lp-hero__title { margin-bottom: var(--s-6); }
.lp-hero__title em { color: var(--primary); }
.lp-hero__copy .lede { margin-bottom: var(--s-8); }
.lp-hero__ctas { margin-bottom: var(--s-4); }
@media (max-width: 900px) { .lp-hero__grid { grid-template-columns: 1fr; } }

.lp-hero__stage { position: relative; padding: var(--s-8) var(--s-6) var(--s-12) 0; }
.lp-statement { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: var(--s-6); }
.lp-statement__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.lp-statement__balance { margin: var(--s-3) 0 var(--s-4); color: var(--ink); }
.lp-statement__balance .money--hero { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.5rem); }
.lp-statement__chart { width: 100%; height: 120px; overflow: visible; }
.lp-statement__axis { display: flex; justify-content: space-between; margin: var(--s-2) 0 var(--s-5); }
.lp-zero { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.lp-critical { fill: var(--neg-bg); }
/* Sem vector-effect aqui: ele mede o tracejado em pixels de tela e quebra o desenho com pathLength=1 */
.lp-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; }
.lp-dot { fill: var(--surface); stroke: var(--primary); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lp-statement__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lp-statement__rows li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--text-sm); }
.lp-statement__rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-row__desc { display: grid; font-weight: 500; }
.lp-row__desc small { font-weight: 400; color: var(--ink-2); font-size: var(--text-xs); }

.lp-float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-3); padding: var(--s-3) var(--s-4); will-change: transform; }
.lp-float--today { right: 0; top: 0; display: grid; gap: 2px; }
.lp-float__value { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); color: var(--primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-float--alert { left: -24px; bottom: 0; display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); background: var(--warn-bg); border-color: transparent; }
.lp-float--alert svg { color: var(--warn-ink); }
@media (max-width: 900px) { .lp-float--alert { left: 0; } }
@media (max-width: 520px) {
  .lp-hero__stage { padding: var(--s-16) 0 var(--s-12); }
  .lp-statement { padding: var(--s-4); }
}

/* Hero: coreografia (só com JS e sem reduced-motion; sem JS, tudo aparece pronto) */
.js .lp-statement[data-animate] .lp-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .lp-statement[data-animate] .lp-critical,
.js .lp-statement[data-animate] .lp-dot { opacity: 0; }
.js .lp-statement[data-animate] [data-row] { opacity: 0; transform: translateY(10px); }
.js .lp-statement[data-animate] ~ .lp-float { opacity: 0; }
.js .lp-statement[data-animate].is-playing .lp-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease) 150ms; }
.js .lp-statement[data-animate].is-playing .lp-critical { opacity: 1; transition: opacity var(--dur-slow) var(--ease) 1100ms; }
.js .lp-statement[data-animate].is-playing .lp-dot { opacity: 1; transition: opacity var(--dur-base) var(--ease) 1500ms; }
.js .lp-statement[data-animate].is-playing [data-row] { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js .lp-statement[data-animate].is-playing [data-row]:nth-child(1) { transition-delay: 700ms; }
.js .lp-statement[data-animate].is-playing [data-row]:nth-child(2) { transition-delay: 820ms; }
.js .lp-statement[data-animate].is-playing [data-row]:nth-child(3) { transition-delay: 940ms; }
.js .lp-statement[data-animate].is-playing [data-row]:nth-child(4) { transition-delay: 1060ms; }
.js .lp-statement[data-animate].is-playing ~ .lp-float { opacity: 1; transition: opacity var(--dur-slow) var(--ease) 1500ms; }
.js .lp-statement[data-animate].is-playing ~ .lp-float--alert { transition-delay: 1700ms; }

/* Como funciona */
.lp-story { padding: var(--s-24) 0; border-top: 1px solid var(--line); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(64px, 10vw, 128px); }
.lp-step { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.lp-step:nth-child(even) .lp-step__text { order: 2; }
.lp-step__n { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-ink); letter-spacing: .1em; display: block; margin-bottom: var(--s-3); }
.lp-step h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); letter-spacing: -.015em; margin-bottom: var(--s-3); }
.lp-step p { color: var(--ink-2); max-width: 46ch; }
.lp-step__fig { margin: 0; display: grid; gap: var(--s-4); }
@media (max-width: 860px) { .lp-step { grid-template-columns: 1fr; } .lp-step:nth-child(even) .lp-step__text { order: 0; } }

.lp-mini { width: 100%; height: 110px; overflow: visible; }
.js .lp-step[data-reveal] .lp-line--static { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lp-line--static { stroke-dasharray: none; }
.js .lp-step[data-reveal].is-visible .lp-line--static { stroke-dashoffset: 0; transition: stroke-dashoffset 1200ms var(--ease) 200ms; }

.lp-bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 6px; height: 120px; }
.lp-bar { height: 100%; display: flex; align-items: flex-end; }
.lp-bar__fill { display: block; width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; transform-origin: bottom; }
.lp-bar:first-child .lp-bar__fill { background: var(--accent); }
.lp-h32 .lp-bar__fill { height: 100%; } .lp-h30 .lp-bar__fill { height: 94%; } .lp-h27 .lp-bar__fill { height: 84%; }
.lp-h24 .lp-bar__fill { height: 75%; } .lp-h21 .lp-bar__fill { height: 66%; } .lp-h18 .lp-bar__fill { height: 56%; }
.lp-h14 .lp-bar__fill { height: 44%; } .lp-h12 .lp-bar__fill { height: 38%; } .lp-h10 .lp-bar__fill { height: 31%; }
.lp-h9 .lp-bar__fill { height: 28%; } .lp-h8 .lp-bar__fill { height: 25%; }
.js .lp-step[data-reveal] .lp-bar__fill { transform: scaleY(0); }
.js .lp-step[data-reveal].is-visible .lp-bar__fill { transform: none; transition: transform 700ms var(--ease); }
.js .lp-step[data-reveal].is-visible .lp-bar:nth-child(n+4) .lp-bar__fill { transition-delay: 120ms; }
.js .lp-step[data-reveal].is-visible .lp-bar:nth-child(n+8) .lp-bar__fill { transition-delay: 240ms; }

.lp-list { list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.lp-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); }
.lp-list li > span:first-child { display: inline-flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.lp-list__total { font-weight: 650; border-bottom: 0 !important; border-top: 1px solid var(--ink); }
.lp-seg { padding: 6px var(--s-3); font-size: var(--text-sm); font-weight: 550; color: var(--ink-2); border-radius: 4px; }
.lp-seg--on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.lp-mei { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin: 0; }
.lp-p67 { --value: .67; }

/* Comparação */
.lp-compare { padding: var(--s-24) 0; background: var(--surface-2); border-block: 1px solid var(--line); }
.lp-compare__table th[scope="row"] { font-weight: 600; color: var(--ink); font-size: var(--text-sm); white-space: normal; border-bottom-color: var(--line-soft); }
.lp-compare__table td { color: var(--ink-2); height: auto; padding-block: var(--s-4); }
.lp-compare__table thead th { font-size: var(--text-sm); color: var(--ink); }
.lp-compare__us { color: var(--ink) !important; font-weight: 550; background: var(--primary-bg); }
thead .lp-compare__us { color: var(--primary) !important; }
.lp-compare__wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
@media (max-width: 720px) {
  .lp-compare__table thead { display: none; }
  .lp-compare__table, .lp-compare__table tbody, .lp-compare__table tr { display: block; }
  .lp-compare__table tr { padding: var(--s-4); border-bottom: 1px solid var(--line); }
  .lp-compare__table th[scope="row"] { display: block; padding: 0 0 var(--s-2); border: 0; }
  .lp-compare__table td { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-3); padding: var(--s-1) 0; border: 0; background: none; }
  .lp-compare__table td::before { color: var(--ink-3); font-weight: 400; font-size: var(--text-xs); }
  .lp-compare__table td:nth-of-type(1)::before { content: "Planilha"; }
  .lp-compare__table td:nth-of-type(2)::before { content: "App comum"; }
  .lp-compare__table td:nth-of-type(3)::before { content: "Gestão Financeira"; color: var(--primary); }
}

/* Privacidade */
.lp-trust { padding: var(--s-24) 0; }
.lp-trust__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-12); }
.lp-trust__list { margin: 0; display: grid; gap: var(--s-8); }
.lp-trust__list dt { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; margin-bottom: var(--s-1); }
.lp-trust__list dt svg { color: var(--primary); }
.lp-trust__list dd { margin: 0; color: var(--ink-2); max-width: 56ch; }
@media (max-width: 860px) { .lp-trust__grid { grid-template-columns: 1fr; gap: var(--s-8); } }

/* Preços */
.lp-pricing { padding: var(--s-24) 0; border-top: 1px solid var(--line); }
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; }
.lp-plan { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-8) var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lp-plan--featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-2); }
.lp-plan h3 { font-size: var(--text-md); display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-1); }
.lp-plan__tag { font-size: var(--text-xs); font-weight: 600; color: var(--primary); }
.lp-plan__price { display: grid; gap: 2px; margin: 0; }
.lp-plan__annual { margin: calc(-1 * var(--s-2, 8px)) 0 0; color: var(--primary); font-weight: 550; }
.lp-plan__amount { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lp-plan__features { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: var(--s-2); font-size: var(--text-sm); flex: 1; }
.lp-plan__features li { display: flex; gap: var(--s-2); align-items: flex-start; }
.lp-plan__features svg { color: var(--primary); width: 16px; height: 16px; margin-top: 2px; }
.lp-pricing__note { text-align: center; margin-top: var(--s-6); }
.lp-plans--single { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); max-width: 920px; margin-inline: auto; gap: var(--s-8); align-items: center; }
.lp-plan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: step; }
.lp-plan-steps li { display: grid; gap: var(--s-1); padding-left: var(--s-8); position: relative; counter-increment: step; }
.lp-plan-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong, var(--line)); display: grid; place-items: center; font-size: var(--text-xs); font-variant-numeric: tabular-nums; color: var(--ink-2, inherit); }
.lp-plan-steps strong { font-size: var(--text-sm); }
.lp-plan-steps span { font-size: var(--text-sm); color: var(--ink-3, var(--muted)); }
@media (max-width: 900px) { .lp-plans, .lp-plans--single { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* Perguntas */
.lp-faq { padding: var(--s-24) 0; border-top: 1px solid var(--line); }
.lp-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-12); }
.lp-faq__list details { border-bottom: 1px solid var(--line); }
.lp-faq__list details:first-child { border-top: 1px solid var(--line); }
.lp-faq__list summary { list-style: none; cursor: pointer; padding: var(--s-5) var(--s-8) var(--s-5) 0; font-weight: 550; position: relative; }
.lp-faq__list summary::-webkit-details-marker { display: none; }
.lp-faq__list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform var(--dur-base) var(--ease); }
.lp-faq__list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.lp-faq__list details p { color: var(--ink-2); padding-bottom: var(--s-5); margin: 0; max-width: 62ch; }
@media (max-width: 860px) { .lp-faq__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* Final e rodapé */
.lp-final { padding: var(--s-24) 0; background: var(--ink); color: var(--paper); }
.lp-final__inner { display: grid; justify-items: start; gap: var(--s-8); }
.lp-final__title { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem); max-width: 14ch; }
.lp-final .btn--primary { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-line: var(--paper); }
.lp-final .btn--primary:hover { background: var(--surface-2); border-color: var(--surface-2); }
:root[data-theme="dark"] .lp-final { background: var(--surface-2); color: var(--ink); }
:root[data-theme="dark"] .lp-final .btn--primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-line: var(--primary); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-final { background: var(--surface-2); color: var(--ink); }
  :root:not([data-theme="light"]) .lp-final .btn--primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-line: var(--primary); }
}
.lp-footer { padding: var(--s-8) 0; }
.lp-footer nav { gap: var(--s-6); }
.lp-footer a { color: var(--ink-2); text-decoration: none; }
.lp-bars__labels { height: auto; margin-top: calc(-1 * var(--s-2)); font-size: 11px; color: var(--ink-3); text-align: center; }
