/* Layout: coluna de 1120 px. As telas do produto (capturas de 1280x800) nunca
   ocupam a coluna inteira: ficam ao lado do texto, a ~0,5x, e abrem ampliadas
   num diálogo. Tema claro único, cores explícitas. */
:root {
  --ink: #0B3B2E;          /* títulos */
  --text: #24352F;         /* texto corrido */
  --muted: #55675F;        /* apoio */
  --line: #DCE7E1;         /* divisórias */
  --ground: #FFFFFF;       /* fundo */
  --band: #F3F8F5;         /* faixas alternadas */
  --brand: #047857;        /* ação, seleção: o verde do logo (#10B981) escurecido até 5,5:1 com texto branco */
  --brand-ink: #065F46;
  --brand-bright: #10B981; /* verde do logo, só em detalhes sem texto */
  --brand-soft: #E3F6EC;
  --accent: #047857;       /* eyebrows */
  --good: #047857;         /* resposta do Finbase */
  --navy: #0B3B2E;         /* faixa final, verde-escuro do logo */
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --col: 1120px;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ground); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: calc(var(--col) + 80px); margin: 0 auto; padding-inline: max(40px, env(safe-area-inset-left, 0px)) max(40px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* Botões */
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--brand-ink); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: var(--ground); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--band); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-soft); }
.btn:focus-visible, .shot:focus-visible, .tabs button:focus-visible, .panel:focus-visible, .menu-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Cabeçalho */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.menu { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.menu-link { color: var(--muted); text-decoration: none; border-radius: 4px; }
.menu-link:hover { color: var(--ink); }

/* Hero: texto à esquerda, uma tela à direita. */
.hero { padding-block: 72px 64px; background: linear-gradient(180deg, #EEF9F3 0%, var(--ground) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; font-weight: 800; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 52ch; margin-top: 20px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--text); }
.hero-facts li, .panel-text li { position: relative; padding-left: 26px; }
.hero-facts li::before, .panel-text li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.hero-shot { margin: 0; }

/* Telas do produto */
.shot { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #F4F7F6; cursor: zoom-in; box-shadow: 0 2px 4px rgba(11, 59, 46, .04), 0 24px 48px -16px rgba(11, 59, 46, .2); transition: box-shadow .2s, transform .2s; }
.shot:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 59, 46, .04), 0 30px 56px -16px rgba(11, 59, 46, .26); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }

/* Faixa de nuvens */
.clouds { border-block: 1px solid var(--line); }
.clouds-row { display: flex; align-items: center; gap: 16px 40px; padding-block: 22px; flex-wrap: wrap; justify-content: center; }
.clouds-row > span { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.clouds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; }
.clouds li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 15px; }

/* Seções */
.section { padding-block: 96px; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 800; }
.section-head > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* Problemas: dor em cinza, resposta do Finbase em destaque. */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.problems article, .diffs article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.problems h3 { margin-top: 18px; font-size: 20px; }
.pain { margin-top: 8px; color: var(--muted); font-size: 15px; }
.fix { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--text); }
.fix::before { content: "Com o Finbase: "; font-weight: 600; color: var(--good); }

/* Vitrine: lista de telas à esquerda, a tela escolhida à direita. */
.showcase { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; }
.tabs { display: grid; gap: 4px; }
.tabs button { display: block; width: 100%; text-align: left; padding: 12px 16px; border: 1px solid transparent; border-radius: 12px; background: none; cursor: pointer; transition: background .15s, border-color .15s; }
.tabs button:hover { background: rgba(255, 255, 255, .7); }
.tabs b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.tabs span { display: block; font-size: 13px; color: var(--muted); }
.tabs button[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: inset 3px 0 0 var(--brand), 0 6px 16px -8px rgba(11, 59, 46, .18); }
.tabs button[aria-selected="true"] b { color: var(--brand); }
.panel { display: grid; gap: 24px; border-radius: var(--radius); }
.panel-text { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 40px; }
.panel-text h3 { grid-column: 1 / -1; font-size: 22px; line-height: 1.25; }
.panel-text p { color: var(--muted); }
.panel-text ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; font-size: 15px; }

/* Como funciona: as quatro etapas são uma sequência real. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { padding-top: 18px; border-top: 2px solid var(--brand-soft); }
.steps li:first-child { border-top-color: var(--brand-bright); }
.step-tag { display: inline-block; font: 500 12px/1 var(--mono); color: var(--brand); background: var(--brand-soft); padding: 5px 8px; border-radius: 6px; }
.steps b { display: block; margin-top: 14px; font-family: var(--display); font-size: 19px; color: var(--ink); }
.steps p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.trace { margin-top: 56px; }
.trace-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.trail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.trail li { position: relative; padding: 14px 18px 14px 22px; min-width: 0; }
.trail li + li { border-left: 1px solid var(--line); }
.trail li + li::before { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.trail small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.trail code { display: block; margin-top: 4px; font: 500 13px/1.4 var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Diferenciais */
.diffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.diffs article { padding: 24px; border-top: 3px solid var(--brand-bright); }
.diffs h3 { font-size: 18px; }
.diffs p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Central de ajuda: texto e botão à esquerda, os três serviços à direita. */
.help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #EEF9F3 0%, var(--ground) 60%); }
.help h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; font-weight: 800; }
.help-text > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; }
.help-text .cta { margin-top: 28px; }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.help-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 16px; align-items: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.help-list .ico { grid-row: 1 / 3; }
.help-list b { font-family: var(--display); font-size: 17px; color: var(--ink); }
.help-list p { font-size: 14.5px; color: var(--muted); }

/* Fechamento e rodapé */
.closing { background: var(--navy); }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 64px; }
.closing h2 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; }
.closing p { margin-top: 6px; color: #A9CBBD; }
.foot { padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* Ampliação */
dialog { width: min(1400px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
dialog::backdrop { background: rgba(6, 30, 23, .82); }
dialog img { width: 100%; max-height: 94vh; object-fit: contain; border-radius: 12px; }
.zoom-close { position: absolute; top: -16px; right: -16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { max-width: 640px; }
  .hero-shot { max-width: 760px; }
  .problems { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .showcase { grid-template-columns: 1fr; gap: 20px; }
  .tabs { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -40px; padding-inline: 40px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; width: auto; padding: 10px 14px; }
  .tabs span { display: none; }
  .tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--brand); }
  .panel-text { grid-template-columns: 1fr; }
  .steps, .diffs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .help { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .trail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trail li:nth-child(3) { border-left: 0; }
  .trail li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .trail li:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .menu { gap: 16px; }
  .menu-link { display: none; }
  .hero { padding-block: 40px 48px; }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .problems article { padding: 22px; }
  .tabs { margin-inline: -16px; padding-inline: 16px; }
  .steps, .diffs, .trail { grid-template-columns: 1fr; }
  .trail li + li { border-left: 0; border-top: 1px solid var(--line); }
  .trail li + li::before { display: none; }
  .help { padding: 22px; }
  .help-text .cta .btn { width: 100%; justify-content: center; }
  .closing-row { padding-block: 48px; }
  .zoom-close { top: 8px; right: 8px; }
}
