/* VisitFlow — identidade visual do site (mesma paleta do app: src/constants.ts) */
:root {
  --primary: #0D9488;
  --primary-dark: #0F766E;
  --primary-deep: #115E59;
  --primary-light: #2DD4BF;
  --primary-soft: #CCFBF1;
  --primary-tint: #F0FDFA;
  --income: #16A34A;
  --income-soft: #DCFCE7;
  --expense: #DC2626;
  --expense-soft: #FEE2E2;
  --accent: #6366F1;
  --accent-soft: #E0E7FF;
  --warning: #D97706;
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --gradient: linear-gradient(135deg, #2DD4BF 0%, #0D9488 55%, #115E59 100%);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-dark); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.brand-name span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--primary); }
.nav a.btn, .nav a.btn:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none;
  padding: 13px 22px; border-radius: 14px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(13, 148, 136, .28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-light { background: #fff; color: var(--primary-deep); box-shadow: var(--shadow); }
.btn-light:hover { color: var(--primary-deep); }
.btn-ghost { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--primary-soft); }
.btn-small { padding: 9px 16px; font-size: .9rem; border-radius: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--gradient); color: #fff; padding: 80px 0 96px; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -140px; top: -180px; }
.hero::after { width: 360px; height: 360px; left: -120px; bottom: -200px; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: var(--primary-soft); font-size: 1.2rem; }
.hero .eyebrow { background: rgba(255, 255, 255, .16); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px;
  background: rgba(15, 23, 42, .88); color: #fff; text-decoration: none; line-height: 1.15;
}
.store-badge small { display: block; font-size: .68rem; opacity: .8; letter-spacing: .02em; }
.store-badge strong { font-size: 1.02rem; }
.store-badge svg { width: 24px; height: 24px; fill: #fff; }
.store-badge[aria-disabled="true"] { cursor: default; opacity: .92; }
.hero-note { margin-top: 14px; font-size: .9rem; color: var(--primary-soft); }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; font-size: .9rem; color: #fff; }
.trust span { display: inline-flex; align-items: center; gap: 6px; opacity: .95; }
.trust svg { width: 18px; height: 18px; }

/* Celular ilustrativo (reproduz a tela inicial do app) */
.phone {
  justify-self: center; width: 300px; padding: 12px; border-radius: 44px; background: #0B1220;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .06); transform: rotate(-3deg);
}
.phone-screen { border-radius: 34px; overflow: hidden; background: #F1F5F9; color: var(--ink); font-size: 12px; line-height: 1.35; }
.phone-top { background: #fff; padding: 22px 16px 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.phone-top .mini-brand { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; }
.phone-top .mini-brand img { width: 22px; height: 22px; }
.phone-top .mini-brand span { color: var(--primary); }
.phone-top .mini-title { font-weight: 700; color: var(--primary-dark); font-size: 11px; }
.phone-body { padding: 12px; display: grid; gap: 10px; }
.p-card { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.p-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.p-head b { font-size: 13px; }
.p-toggle { display: flex; background: #F1F5F9; border-radius: 8px; padding: 2px; }
.p-toggle i { font-style: normal; font-weight: 800; font-size: 10px; color: var(--muted); padding: 3px 8px; border-radius: 6px; }
.p-toggle i.on { background: var(--primary); color: #fff; }
.p-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.p-metric { background: #F1F5F9; border-radius: 10px; padding: 8px 4px; text-align: center; }
.p-metric b { display: block; font-size: 15px; }
.p-metric small { color: var(--muted); font-size: 9.5px; }
.p-money { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.p-tile { border-radius: 10px; padding: 8px; }
.p-tile small { font-weight: 800; font-size: 10px; }
.p-tile b { display: block; font-size: 15px; margin-top: 2px; }
.p-tile.in { background: var(--income-soft); color: #15803D; }
.p-tile.out { background: var(--expense-soft); color: #B91C1C; }
.p-line { display: flex; justify-content: space-between; color: var(--muted); padding: 2px 0; }
.p-line em { font-style: normal; color: #B91C1C; font-weight: 600; }
.p-net { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; font-weight: 800; }
.p-net em { font-style: normal; color: var(--income); }
.p-visit { display: flex; gap: 8px; align-items: center; }
.p-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.p-visit small { display: block; color: var(--muted); font-size: 10px; }
.p-ok { margin-left: auto; color: var(--income); font-weight: 800; font-size: 10px; }

/* Recursos */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .6); }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.icon-box svg { width: 24px; height: 24px; }
.ib-teal { background: var(--primary-soft); color: var(--primary-dark); }
.ib-green { background: var(--income-soft); color: var(--income); }
.ib-red { background: var(--expense-soft); color: var(--expense); }
.ib-indigo { background: var(--accent-soft); color: var(--accent); }
.ib-amber { background: #FEF3C7; color: var(--warning); }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--primary-tint); border: 1px solid var(--primary-soft); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--gradient); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step p { margin: 0; color: var(--muted); }
.band { background: var(--surface); }

/* Destaque financeiro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.report-card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 28px; }
.report-card h3 { display: flex; justify-content: space-between; align-items: baseline; }
.report-card h3 small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.kpi { border-radius: 16px; padding: 16px; }
.kpi small { font-weight: 700; font-size: .8rem; }
.kpi b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.kpi span { font-size: .75rem; color: var(--muted); }
.kpi.in { background: var(--income-soft); color: #15803D; }
.kpi.out { background: var(--expense-soft); color: #B91C1C; }
.bar-row { margin: 12px 0; }
.bar-row div { display: flex; justify-content: space-between; font-size: .92rem; }
.bar { height: 8px; border-radius: 6px; background: #F1F5F9; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; }

/* Público */
.audience { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--ink); }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 16px; border: 1px solid var(--line); padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); }

/* CTA */
.cta { background: var(--gradient); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { color: var(--primary-soft); max-width: 560px; margin: 0 auto 24px; }

/* Páginas internas */
.page-hero { background: var(--gradient); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-hero p { color: var(--primary-soft); margin: 0; }
.prose { max-width: 780px; margin: 0 auto; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 40px; margin-top: -24px; position: relative; }
.prose h2 { font-size: 1.25rem; margin-top: 1.8em; color: var(--primary-dark); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { white-space: pre-line; }
.prose ol, .prose ul { padding-left: 1.2em; }
.note { background: var(--primary-tint); border: 1px solid var(--primary-soft); border-radius: 14px; padding: 16px 18px; color: var(--primary-deep); }
.note.warn { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }

/* Formulário */
.form { display: grid; gap: 16px; margin-top: 24px; }
.form label { font-weight: 700; color: var(--ink); font-size: .92rem; display: grid; gap: 6px; }
.form input, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text); }
.form .check input { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-status { display: none; border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.form-status.ok { display: block; background: var(--income-soft); color: #166534; }
.form-status.err { display: block; background: var(--expense-soft); color: #991B1B; }

/* Rodapé */
.site-footer { background: #0B1220; color: #94A3B8; padding: 56px 0 32px; margin-top: 88px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand-name { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #1E293B; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Responsivo */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #F1F5F9; }
  .nav .btn { margin-top: 12px; }
  .hero .container, .split { grid-template-columns: 1fr; }
  .phone { transform: none; margin-top: 8px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .prose { padding: 26px 20px; border-radius: 18px; }
  .cta { padding: 40px 22px; }
  .phone { width: 270px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* Todas as funcionalidades */
.groups { display: grid; gap: 22px; margin-top: 48px; text-align: left; }
.group { background: var(--surface); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .6); display: grid; grid-template-columns: 300px 1fr; gap: 32px; }
.group-head h3 { font-size: 1.35rem; margin-bottom: 8px; }
.group-head p { color: var(--muted); margin: 0; font-size: .97rem; }
.group-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.group-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.group-list li svg { flex: none; width: 20px; height: 20px; color: var(--primary); margin-top: 3px; }
.group-list b { color: var(--ink); }
@media (max-width: 900px) { .group { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 680px) { .group { padding: 22px; } .group-list { grid-template-columns: 1fr; } }
