/* Corvani — landing page de vendas
   Azul predominante · branco secundário · verde apenas funcional (valor positivo). */

:root {
  /* Azuis extraídos das capturas (menu lateral, cartão "Comissão líquida do ano", botão "Novo negócio") */
  --navy-950: #0a1a30;
  --navy-900: #0f2440;
  --navy-800: #163156;
  --navy-700: #1f416d;
  --blue-700: #1a55c9;
  --blue-600: #2163e0;   /* botões principais: contraste 5,3:1 com branco */
  --blue-500: #3b82f6;   /* realces gráficos */
  --blue-300: #93b8f7;   /* textos de apoio sobre azul-marinho */
  --blue-100: #dde9fd;
  --blue-50:  #f1f6ff;

  --white: #ffffff;
  --ink: #0f1d33;
  --ink-2: #33435c;
  --muted: #55657d;
  --line: #dbe3ef;
  --surface-soft: #f4f7fb;

  --green-700: #17784f;  /* verde funcional: resultado positivo e vantagens */
  --green-500: #1f9d62;
  --red-700: #b42318;    /* vermelho funcional: desvantagens da planilha */
  --red-600: #d92d20;
  --red-200: #f4c7c3;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 29, 51, .06), 0 1px 3px rgba(15, 29, 51, .06);
  --shadow: 0 10px 30px -12px rgba(15, 36, 64, .25);

  --header-h: 64px;
  --gutter: 16px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.18; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--blue-700); }
button { font: inherit; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible { outline-color: var(--blue-300); }

.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; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 10px; border: 0;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); }
.btn-primary:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(255,255,255,.08); box-shadow: 0 6px 20px -10px rgba(0,0,0,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.2rem; min-height: 44px; }
.brand img { border-radius: 9px; }
/* ---------- Estrutura de seções ---------- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-soft { background: var(--surface-soft); }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-heading { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-heading h2, .split h2, .guarantee h2, .offer h2 { font-size: clamp(1.7rem, 4.2vw, 2.45rem); }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  margin-bottom: 12px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-700);
}
.eyebrow-on-dark { color: var(--blue-300); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .split-reverse { grid-template-columns: .95fr 1.05fr; }
}
@media (max-width: 899px) { .split-reverse > figure { order: 2; } }

/* Legenda obrigatória das capturas */
.shot-caption { margin-top: 10px; font-size: .82rem; color: var(--muted); text-align: center; }
.shot-caption-on-dark { color: var(--blue-300); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 7.6vw, 3.5rem); font-weight: 750; max-width: 15ch; }
.lead { margin-top: 18px; font-size: 1.1rem; color: #d3dff2; max-width: 56ch; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-price { color: #d3dff2; }
.hero-price strong { color: var(--white); font-size: 1.3rem; margin-right: 4px; }
.badges { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #d3dff2; font-size: .95rem; }
.badges li { display: inline-flex; align-items: center; gap: 8px; }
.badges .icon { color: var(--blue-300); width: 18px; height: 18px; }
.hero-visual { margin: 0; }

/* Moldura de dispositivo: smartphone por padrão (celular), notebook a partir de 900px */
.device-hero {
  width: min(78vw, 300px); margin: 0 auto;
  border: 8px solid #08131f; border-radius: 34px; overflow: hidden;
  background: #08131f; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6);
  aspect-ratio: 652 / 1280;
}
.device-hero img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }

/* Vídeo de apresentação no lugar do aparelho do hero */
.hero-video { width: 100%; max-width: 760px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #08131f; box-shadow: 0 30px 60px -24px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08); aspect-ratio: 16 / 9; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; }
  .hero h1 { font-size: clamp(2.4rem, 3.9vw, 3.3rem); max-width: 16ch; }
  .device-hero {
    width: 100%; max-width: 760px;
    border: 10px solid #1d2b3f; border-bottom-width: 12px; border-radius: 16px 16px 6px 6px;
    background: #1d2b3f; aspect-ratio: 1600 / 688; position: relative; overflow: visible;
  }
  .device-hero img { border-radius: 6px; object-fit: cover; }
  .device-hero::after { /* base do notebook */
    content: ""; position: absolute; left: -6%; right: -6%; bottom: -26px; height: 14px;
    background: linear-gradient(#2a3a51, #1a2738); border-radius: 0 0 14px 14px;
  }
  .hero-visual .shot-caption { margin-top: 36px; }
}
@media (min-width: 1240px) { .hero-grid { grid-template-columns: .8fr 1.2fr; } }

/* ---------- Problema: planilha × Corvani (5 × 5) ---------- */
/* Lado a lado em qualquer largura: as linhas das duas colunas se correspondem */
.versus { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto repeat(5, auto); column-gap: 10px; row-gap: 8px; }
@media (min-width: 760px) { .versus { column-gap: 20px; row-gap: 12px; } }
/* subgrid: a linha N da planilha tem a mesma altura da linha N do Corvani */
.versus-card { padding: 16px 12px; border-radius: var(--radius); min-width: 0; display: grid; grid-row: span 6; grid-template-rows: subgrid; align-items: center; }
.versus-card ul { display: contents; }
@media (min-width: 760px) { .versus-card { padding: 24px; border-radius: var(--radius-lg); } }
.versus-card h3 { font-size: 1rem; margin-bottom: 4px; }
@media (min-width: 760px) { .versus-card h3 { font-size: 1.15rem; margin-bottom: 6px; } }

.versus-card li { position: relative; padding-left: 26px; font-size: .95rem; line-height: 1.35; list-style: none; }
@media (min-width: 760px) { .versus-card li { padding-left: 34px; font-size: 1rem; } }
.versus-card li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%;
  background-position: center; background-repeat: no-repeat; background-size: 10px;
}
@media (min-width: 760px) { .versus-card li::before { width: 22px; height: 22px; background-size: 12px; } }
/* Planilha: desvantagens em vermelho */
.versus-bad { background: var(--white); border: 1px solid var(--red-200); }
.versus-bad h3 { color: var(--red-700); }
.versus-bad li { color: var(--ink-2); }
.versus-bad li::before {
  background-color: var(--red-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}
/* Corvani: card azul com o certo verde */
.versus-good { background: var(--navy-900); color: var(--white); box-shadow: var(--shadow); }
.versus-good h3 { color: var(--white); }
.versus-good li { color: #e3ecfa; }
.versus-good li::before {
  background-color: var(--green-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}

/* ---------- Feito para corretor: campos em etiquetas ---------- */
.tags { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; }
.tags li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--blue-100);
  color: var(--navy-800); font-weight: 600; box-shadow: var(--shadow-sm);
}
.tags li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
/* Entrada em cascata: só quando o JS marca a lista (a página continua completa sem JS) */
@media (prefers-reduced-motion: no-preference) {
  .tags.reveal-ready li { opacity: 0; transform: translateY(10px) scale(.96); }
  .tags.is-revealed li { animation: tag-in .45s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
}
@keyframes tag-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Metas e análises ---------- */
.quick { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .quick { grid-template-columns: 1fr 1fr; } }
.quick li { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); color: var(--ink-2); line-height: 1.45; }
.quick strong { display: block; color: var(--ink); }
.mini-card { margin-top: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--navy-900); color: #e3ecfa; }
.mini-card h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 4px; }
/* ---------- Solução ---------- */
.solution-list { margin-top: 22px; }
.net-card { margin: 0; }
@media (min-width: 900px) { .split-media { grid-template-columns: .8fr 1.2fr; gap: 48px; } }
.net-card img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }

/* ---------- Capturas em destaque ---------- */
.shot-card, .feature-shot-large, .phones { margin: 0; }
.shot-card img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.feature-shot-large img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature-shot-large img.phone-shot { width: min(78vw, 300px); margin: 0 auto; border: 8px solid #0b1526; border-radius: 30px; }
@media (min-width: 900px) { .feature-shot-large img.phone-shot { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); } }
.phones { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.phones img { width: calc(50% - 7px); max-width: 260px; border: 6px solid #0b1526; border-radius: 26px; box-shadow: var(--shadow); background: #0b1526; }
.phones img:last-of-type { margin-top: 36px; }
.phones .shot-caption { flex-basis: 100%; }

.split-top { align-items: start; }
.benefits-top { margin-top: 0; }
@media (max-width: 899px) { .benefits-top { margin-top: 4px; } }
.feature-shot-wide { margin-top: 40px; }
.check-list.solution-list { margin-top: 22px; }
.split .section-lead + .check-list { margin-top: 20px; }

/* Lista de benefícios (metas, comparações) */
.benefits { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 560px) { .benefits { grid-template-columns: repeat(2, 1fr); gap: 22px 26px; } }
.benefits li { padding-top: 14px; border-top: 2px solid var(--blue-500); }
.benefits h3 { font-size: 1.05rem; margin-bottom: 4px; }
.benefits p { color: var(--muted); }

/* ---------- Como funciona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-number {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-900); color: var(--white); font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Galeria ---------- */
.gallery {
  max-width: 1040px; margin: 0 auto; padding: 14px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.gallery:focus-visible { outline-offset: 4px; }
@media (min-width: 768px) { .gallery { padding: 20px; } }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gallery-devices { display: flex; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--blue-500); }
.chip[aria-pressed="true"] { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.gallery-counter { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .95rem; white-space: nowrap; }
@media (max-width: 400px) {
  .gallery { padding: 12px; }
  .chip { padding: 8px 12px; gap: 6px; }
}

.gallery-stage {
  display: grid; place-items: center; border-radius: var(--radius); background: #e9eef5; padding: 12px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.gallery-frame { width: 100%; overflow: hidden; border-radius: 10px; }
.gallery-frame img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
/* Proporção reservada por dispositivo (sem salto de layout) */
.gallery-stage[data-device="desktop"] .gallery-frame { aspect-ratio: 1600 / 688; }
.gallery-stage[data-device="mobile"] .gallery-frame { aspect-ratio: 652 / 1280; width: min(100%, 280px); border-radius: 22px; border: 6px solid #0b1526; background: #0b1526; }
@media (min-width: 900px) {
  .gallery-stage { height: 460px; }
  .gallery-stage[data-device="desktop"] .gallery-frame { height: 100%; width: auto; max-width: 100%; }
  .gallery-stage[data-device="mobile"] .gallery-frame { height: 100%; width: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-frame img { transition: opacity .2s ease; }
  .gallery-frame img.is-loading { opacity: .35; }
}

.gallery-caption { margin-top: 16px; text-align: center; min-height: 4.8em; }
.gallery-caption-title { font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.gallery-caption-text { margin-top: 4px; color: var(--muted); max-width: 64ch; margin-inline: auto; }
.gallery .shot-caption { margin-top: 6px; }

.gallery-footer { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.arrow {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.arrow:hover { border-color: var(--blue-500); color: var(--blue-700); }
.gallery-tabs {
  flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin;
  scroll-snap-type: x proximity; padding: 2px; justify-content: flex-start;
}
@media (min-width: 900px) { .gallery-tabs { justify-content: center; flex-wrap: wrap; overflow: visible; } }
.gallery-tabs button {
  flex: none; scroll-snap-align: center; white-space: nowrap; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid transparent; background: var(--surface-soft); color: var(--ink-2);
  font-weight: 600; font-size: .92rem; cursor: pointer;
}
.gallery-tabs button:hover { border-color: var(--blue-100); }
.gallery-tabs button[aria-pressed="true"] { background: var(--navy-900); color: var(--white); }

/* ---------- Recursos ---------- */
.features { display: grid; gap: 18px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.feature-shot { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-50); border-bottom: 1px solid var(--line); }
.feature-shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, top); }
.feature-body { padding: 20px 22px 24px; }
.feature-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-body p { color: var(--muted); }
.feature-wide { margin-top: 18px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.feature-wide h3 { font-size: 1.12rem; margin-bottom: 12px; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (min-width: 900px) { .feature-wide .check-list { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.check-list-on-dark li { color: #dbe6f7; }
.check-list-on-dark li::before { background-color: var(--blue-500); }

/* ---------- Calculadora ---------- */
.disclaimer { margin-top: 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-soft); color: var(--ink-2); font-size: 1rem; border: 1px solid var(--line); }
.split-calc { align-items: start; }
@media (min-width: 900px) { .split-calc { grid-template-columns: .8fr 1.2fr; } .split-calc > div:first-child { position: sticky; top: calc(var(--header-h) + 24px); } }
.split-calc .text-link { margin-top: 12px; }
/* Espelha o formulário "Novo negócio" do app */
.calc { display: grid; gap: 4px; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
@media (min-width: 768px) { .calc { padding: 28px; } }
.calc fieldset { margin: 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.calc fieldset + fieldset { margin-top: 16px; }
.calc legend { padding: 0; margin-bottom: 12px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.legend-note { font-weight: 500; color: var(--muted); }
.calc-grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.field input, .field-output {
  min-height: 50px; padding: 10px 14px; font: inherit; font-size: 1.05rem; color: var(--ink);
  border: 1px solid #c3cfdf; border-radius: 10px; background: var(--white); width: 100%;
  font-variant-numeric: tabular-nums;
}
.field-output { display: flex; align-items: center; background: var(--surface-soft); border-color: var(--line); font-weight: 600; }
.field input:focus-visible { outline: 3px solid var(--blue-100); border-color: var(--blue-600); outline-offset: 0; }
.field small { color: var(--muted); font-size: .88rem; }
.expenses { display: grid; gap: 10px; }
.expenses:not(:empty) { margin-bottom: 12px; }
.expense { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: end; }
.expense-fields { display: grid; gap: 8px; }
@media (min-width: 560px) { .expense-fields { grid-template-columns: 1.4fr 1fr; } }
.expense-remove { width: 44px; height: 50px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.expense-remove:hover { border-color: var(--blue-500); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid #c3cfdf; }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-700); }
/* Resultado: mesmo verde funcional do app (valor favorável) */
.calc-result { margin-top: 16px; padding: 18px 20px; border-radius: var(--radius); background: #eef8f2; border: 1px solid #cfe9da; display: grid; gap: 4px; }
.calc-result span { font-weight: 700; color: var(--ink); }
.calc-result output { font-size: clamp(1.7rem, 6vw, 2.2rem); font-weight: 750; font-variant-numeric: tabular-nums; color: var(--green-700); }
.calc-result output.is-negative { color: var(--ink); }
.calc-result small { color: var(--ink-2); font-size: .92rem; }

/* ---------- Oferta ---------- */
.offer-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .offer-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.offer h2 { margin-bottom: 24px; }
.price-card { padding: 28px; border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); text-align: center; }
.price-label { font-weight: 700; color: var(--blue-700); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.price { margin: 8px 0 4px; font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--navy-900); }
.price-currency { font-size: 1.5rem; vertical-align: .9em; margin-right: 4px; font-weight: 700; }
.price-cents { font-size: 1.6rem; vertical-align: 1em; font-weight: 700; }
.price-terms { color: var(--muted); margin-bottom: 22px; }
.price-guarantee, .price-secure { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.price-guarantee .icon, .price-secure .icon { width: 18px; height: 18px; color: var(--blue-600); }

/* ---------- Garantia ---------- */
.guarantee { display: grid; gap: 20px; max-width: 860px; }
@media (min-width: 700px) { .guarantee { grid-template-columns: auto 1fr; gap: 28px; align-items: start; } }
.guarantee-icon { width: 64px; height: 64px; padding: 14px; border-radius: 16px; background: var(--blue-50); fill: none; stroke: var(--blue-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guarantee p { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item h3 { font-size: 1rem; }
.faq-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px; border: 0; background: transparent; text-align: left;
  font-weight: 650; font-size: 1.04rem; color: var(--ink); cursor: pointer; border-radius: var(--radius);
}
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 2px; right: 2px; top: 8px; height: 2px; background: var(--blue-600); border-radius: 2px; }
.faq-icon::after { transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) { .faq-icon::after { transition: transform .2s ease; } }
.faq-item button[aria-expanded="true"] .faq-icon::after { transform: rotate(0); }
.faq-panel { padding: 0 20px 18px; color: var(--ink-2); }
/* Vídeos de instalação dentro do FAQ: dois verticais (celular) e um horizontal (computador) */
.faq-videos { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; margin-top: 14px; align-items: end; }
.faq-videos figure { margin: 0; }
.faq-videos video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #0b1c35; border-radius: var(--radius-sm); }
.faq-videos .wide video { aspect-ratio: 16 / 9; }
.faq-videos figcaption { margin-top: 6px; font-size: .85rem; color: var(--ink-2); text-align: center; }
@media (max-width: 640px) {
  .faq-videos { grid-template-columns: 1fr 1fr; }
  .faq-videos .wide { grid-column: 1 / -1; }
}

/* ---------- CTA final e rodapé ---------- */
.final-cta { background: var(--navy-800); }
.final-cta-inner { text-align: center; display: grid; justify-items: center; gap: 14px; }
.final-cta h2 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); max-width: 22ch; }
.final-cta p { color: #d3dff2; margin-bottom: 8px; }

.site-footer { background: var(--surface-soft); border-top: 1px solid var(--line); padding: 48px 0 24px; color: var(--ink-2); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.brand-footer { color: var(--ink); }
.slogan { margin-top: 6px; color: var(--muted); }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.footer-muted { color: var(--muted); }
.footer-email { color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; display: inline-block; padding: 10px 0; }
.footer-bottom { margin-top: 32px; font-size: .9rem; color: var(--muted); }
.footer-bottom p { padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- CTA fixo inferior (celular) ---------- */
.sticky-cta { display: none; }
@media (max-width: 899px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(15,29,51,.3);
    transform: translateY(110%); visibility: hidden;
  }
  .sticky-cta.is-visible { transform: none; visibility: visible; }
  @media (prefers-reduced-motion: no-preference) { .sticky-cta { transition: transform .25s ease, visibility .25s; } }
  .sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin: 0 auto; }
  /* Nota discreta, sem preço */
  .sticky-cta-inner .sticky-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; }
  .sticky-cta-inner .sticky-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }
  body.has-sticky-cta { padding-bottom: 76px; }
}

/* ---------- Páginas legais ---------- */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 16px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }

/* ---------- Depoimentos ---------- */
.testimonials { display: grid; gap: 18px; }
@media (min-width: 760px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; }
.testimonial blockquote { margin: 0; color: var(--ink-2); font-size: 1.04rem; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial strong { display: block; color: var(--ink); }
.testimonial span { color: var(--muted); font-size: .92rem; }
/* ---------- Celular (até 599 px): página mais compacta, sem palavras sozinhas no fim das frases ---------- */
@media (max-width: 599px) {
  h1, h2, h3, .gallery-caption-title, .price-terms, .section-lead, .lead { text-wrap: balance; }
  p, li { text-wrap: pretty; }
  .hero { padding: 24px 0 36px; }
  .hero h1 { font-size: 1.75rem; line-height: 1.15; }
  .lead { margin-top: 12px; font-size: .98rem; line-height: 1.5; }
  .hero-actions { margin-top: 20px; gap: 10px 16px; }
  .badges { margin-top: 16px; font-size: .88rem; gap: 8px 16px; }
  .hero-grid { gap: 28px; }
  .section { padding: 44px 0; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2, .split h2, .guarantee h2, .offer h2 { font-size: 1.42rem; line-height: 1.2; }
  .section-lead { margin-top: 10px; font-size: .96rem; line-height: 1.5; }
  .eyebrow { margin-bottom: 8px; font-size: .72rem; }
  .split, .offer-grid { gap: 26px; }
  .btn-lg { min-height: 50px; padding: 12px 22px; font-size: 1rem; }
  .tags { gap: 8px; }
  .tags li { padding: 7px 12px; font-size: .86rem; gap: 6px; }
  .tags li::before { width: 15px; height: 15px; background-size: 9px; }
  .gallery-caption { min-height: 0; margin-top: 12px; }
  .gallery-caption-title { font-size: 1rem; }
  .gallery-caption-text { font-size: .92rem; }
  .check-list { gap: 8px; font-size: .94rem; }
  .calc { padding: 16px; }
  .calc-grid { gap: 10px; }
  .field { gap: 4px; font-size: .94rem; }
  .calc-result { margin-top: 12px; padding: 14px 16px; }
  .price-card { padding: 22px; }
  .price { font-size: 3.2rem; }
  .faq { gap: 8px; }
  .faq-item h3 button { padding-top: 14px; padding-bottom: 14px; font-size: .95rem; }
}
/* Comparação planilha × Corvani: no celular, versão curta de cada tópico, sempre em uma linha */
.vs-curto { display: none; }
@media (max-width: 599px) {
  .vs-longo { display: none; }
  .vs-curto { display: inline; }
  .versus { column-gap: 8px; row-gap: 12px; }
  .versus-card { padding: 14px 10px; }
  .versus-card li { padding-left: 22px; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .versus-card li::before { width: 16px; height: 16px; background-size: 9px; }
}@media (max-width: 380px) { .versus { column-gap: 6px; } .versus-card { padding: 12px 8px; } .versus-card li { padding-left: 20px; font-size: .78rem; } .versus-card li::before { width: 15px; height: 15px; } }
@media (max-width: 340px) { .versus-card li { white-space: normal; overflow: visible; } }

/* Galeria: botões de cada tela ACIMA da imagem (o resultado aparece logo abaixo do botão tocado) */
.gallery-nav { margin: 0 0 12px; }
@media (max-width: 899px) {
  .gallery-nav .gallery-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; }
  .gallery-nav .gallery-tabs button { min-height: 38px; padding: 6px 12px; font-size: .86rem; }
}@media (max-width: 899px) { .gallery-nav .arrow { display: none; } .gallery-nav .gallery-tabs { gap: 6px; } .gallery-nav .gallery-tabs button { padding: 6px 11px; font-size: .84rem; } }

/* Oferta: benefícios e preço no mesmo card ("o que você recebe" → preço promocional) */
.offer-wrap { display: grid; gap: 28px; justify-items: center; }
.offer-head { text-align: center; max-width: 720px; }
.offer-card { width: 100%; max-width: 580px; text-align: left; }
.offer-card-title { font-weight: 800; font-size: 1.15rem; color: var(--navy-900); margin-bottom: 14px; }
.offer-list { gap: 10px; }
.offer-price { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.price-old { margin-top: 6px; color: var(--muted); font-size: 1rem; }
.price-old s { color: var(--ink-2); text-decoration-color: var(--red-600); text-decoration-thickness: 2px; }
.offer-price .price { margin-top: 2px; }
.price-save { display: inline-block; margin: 6px 0 10px; padding: 4px 12px; border-radius: 999px; background: #e8f6ee; color: #1b7a4b; font-weight: 700; font-size: .9rem; }
.final-cta s { opacity: .75; text-decoration-thickness: 2px; }
@media (max-width: 599px) {
  .offer-wrap { gap: 20px; }
  .offer-card-title { font-size: 1.05rem; margin-bottom: 10px; }
  .offer-list { gap: 8px; font-size: .92rem; }
  .offer-price { margin-top: 18px; padding-top: 18px; }
}@media (max-width: 599px) { .versus-card li { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; } .versus { row-gap: 10px; } }
