/* Gestvio — página de vendas. Tokens do guia oficial de identidade visual. */
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url('/fonts/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-display: swap; src: url('/fonts/sora-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url('/fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --brand: #15803D;
  --brand-hover: #166534;
  --brand-soft: #DCFCE7;
  --menta: #86EFAC;
  --floresta: #052E16;
  --on-brand: #FFFFFF;
  --ink: #052E16;
  --ink-muted: #4B5D52;
  --surface: #FFFFFF;
  --surface-alt: #F0FAF3;
  --border: #C9DDD0;
  --border-strong: #7F9688;
  --logo-sq: #15803D;
  --shadow-sm: 0 1px 2px rgba(5, 46, 22, 0.08);
  --shadow-md: 0 8px 24px rgba(5, 46, 22, 0.12);
  --shadow-lg: 0 30px 80px rgba(5, 46, 22, 0.22);
  --font-display: 'Sora', 'DM Sans', system-ui, sans-serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #4ADE80;
    --brand-hover: #86EFAC;
    --brand-soft: #14532D;
    --on-brand: #052E16;
    --ink: #ECFDF3;
    --ink-muted: #A3B8AB;
    --surface: #0B1F14;
    --surface-alt: #10291B;
    --border: #24402F;
    --border-strong: #5F7D6B;
    --logo-sq: #FFFFFF;
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: var(--radius-md); z-index: 100; }
.skip:focus { left: 16px; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 20px; }
.narrow { width: min(820px, 100%); }
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------------------------------------------- botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius-md); border: 1px solid transparent; background: var(--brand); color: var(--on-brand); font: 600 15px/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-light { background: #FFFFFF; color: #052E16; }
.btn-light:hover { background: #DCFCE7; }

/* --------------------------------------------------------------- topo */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.scrolled { border-bottom-color: var(--border); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .sq { fill: var(--logo-sq); }
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.5px; color: var(--ink); line-height: 1; }
.logo-name span { color: var(--brand); }
.logo-dark .logo-name { color: #FFFFFF; }
.logo-dark .logo-name span { color: var(--menta); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--radius-md); }
.nav a:hover { color: var(--ink); background: var(--surface-alt); }
.nav .nav-login { color: var(--brand); font-weight: 600; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-md); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background:
  radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--brand-soft) 90%, transparent) 0%, transparent 70%),
  radial-gradient(700px 420px at 0% 100%, color-mix(in srgb, var(--surface-alt) 100%, transparent) 0%, transparent 70%), var(--surface); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.06; letter-spacing: -0.035em; }
.hero h1 .hl { color: var(--brand); }
.lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-muted); max-width: 540px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-muted); font-size: 14px; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 7px; }
.checks .ic { color: var(--brand); width: 18px; height: 18px; }
.hero-shot { position: relative; }
.window { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.window-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.window-bar span { margin-left: 10px; font-size: 12px; color: var(--ink-muted); font-weight: 500; }
.hero .window { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; box-shadow: var(--shadow-md); font-size: 13px; line-height: 1.3; }
.float b { display: block; font-weight: 600; }
.float small { color: var(--ink-muted); }
.float .ic { color: var(--brand); width: 22px; height: 22px; }
.float-a { left: -26px; bottom: 40px; }
.float-b { right: -10px; top: -18px; }

/* ------------------------------------------------------------ seções */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); }
.section-head p { margin-top: 14px; color: var(--ink-muted); font-size: 17px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.feat-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.feat-ic .ic { width: 22px; height: 22px; }
.feat h3, .niche h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feat p, .niche p { color: var(--ink-muted); font-size: 15px; line-height: 1.55; }

/* telas */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 30px; }
.tabs button { height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-muted); font: 600 14px var(--font-sans); cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.tab-panel[hidden] { display: none; }
.panel-text h3 { font-size: 26px; margin-bottom: 12px; }
.panel-text p { color: var(--ink-muted); font-size: 16px; }
kbd { font-family: ui-monospace, Consolas, monospace; font-size: 13px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); }

/* ramos */
.niche { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: var(--surface); }
.niche .ic { width: 28px; height: 28px; color: var(--brand); margin-bottom: 12px; }

/* segurança */
.section-dark { background: radial-gradient(900px 500px at 100% 0%, #14532D 0%, transparent 60%), #052E16; color: #ECFDF3; }
.section-dark .eyebrow { color: var(--menta); }
.section-dark .section-head p { color: #A3B8AB; }
.secure article { padding: 24px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.secure .ic { width: 26px; height: 26px; color: var(--menta); margin-bottom: 14px; }
.secure h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #FFFFFF; }
.secure p { color: #A3B8AB; font-size: 15px; }

/* planos */
.plans { align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 30px 26px; background: var(--surface); }
.plan h3 { font-size: 24px; }
.plan-tag { color: var(--ink-muted); margin-top: 6px; font-size: 15px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 18px 0 18px; color: var(--ink); }
.price small { font-family: var(--font-sans); font-weight: 500; font-size: 14px; color: var(--ink-muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 28px; font-size: 15px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan em { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 999px; background: var(--surface-alt); color: var(--ink-muted); border: 1px solid var(--border); white-space: nowrap; }
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.plan-badge { position: absolute; top: -13px; left: 26px; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }

/* como funciona */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 700 17px var(--font-display); margin-bottom: 14px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--ink-muted); }

/* dúvidas */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 0 20px; }
.faq details[open] { background: var(--surface-alt); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 600 22px/1 var(--font-display); color: var(--brand); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-muted); }

/* contato */
.cta { background: linear-gradient(135deg, #15803D 0%, #166534 55%, #052E16 100%); color: #FFFFFF; padding: 64px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3.2vw, 34px); }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, 0.82); font-size: 17px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-mail { color: #DCFCE7; font-weight: 500; }
.contact-mail:empty { display: none; }

/* rodapé */
.foot { background: #052E16; color: #A3B8AB; padding: 44px 0; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot-slogan { margin-top: 10px; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: #DCFCE7; text-decoration: none; font-size: 14px; }
.foot-links a:hover { text-decoration: underline; }
.copy { grid-column: 1 / -1; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 18px; }

/* -------------------------------------------------------- responsivo */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-in { grid-template-columns: 1fr; }
  .hero .window { transform: none; }
  .float-a { left: 10px; bottom: -22px; }
  .float-b { right: 10px; top: -22px; }
  .tab-panel { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .only-desktop { display: none; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 56px; }
  .cta-row .btn { width: 100%; }
  .float { display: none; }
  .foot-in { grid-template-columns: 1fr; }
}

/* página 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf h1 { margin-top: 28px; font-size: 34px; }
.nf p { margin: 12px 0 26px; color: var(--ink-muted); }

/* página de download */
.dl h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 4px; }
.dl-btn { margin-top: 28px; }
.dl-size { margin-top: 10px; font-size: 14px; color: var(--ink-muted); }
.dl-steps { margin-top: 40px; }
.dl-help { margin-top: 26px; color: var(--ink-muted); }
