/* Automynd — site institucional e landing do Automynd Radar
   Tokens do Design System Automynd (direção clara). */

@font-face { font-family: "Lexend"; src: url(/assets/fonts/lexend-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/assets/fonts/geist-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/geist-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --surface: #ffffff;
  --surface-subtle: #f6f7f8;
  --line: #e6e8eb;
  --ink: #0e1116;
  --ink-muted: #5b6470;
  --ink-dark-muted: #9aa3ae;
  --line-dark: #23272e;
  --brand-teal: #57a492;
  --brand-cyan: #45a4b8;
  --brand-blue: #4776a9;
  --accent-text: #2f5f92;
  --signal: #2c7f72;
  --signal-bg: #eef5f3;
  --ok: #1f7a4d;
  --ok-bg: #e9f3ee;
  --pending: #8a5a00;
  --pending-bg: #f6efe3;
  --neutral-bg: #f0f1f3;
  --focus: #2f5f92;
  --gradient: linear-gradient(160deg, var(--brand-teal) 0%, var(--brand-cyan) 45%, var(--brand-blue) 100%);

  --display: Lexend, "Segoe UI", system-ui, sans-serif;
  --sans: Geist, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 24px; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografia */
.display-xl { font-family: var(--display); font-size: clamp(38px, 5.4vw, 60px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.display-l { font-family: var(--display); font-size: clamp(30px, 3.8vw, 44px); line-height: 1.14; font-weight: 600; letter-spacing: -0.02em; }
.display-m { font-family: var(--display); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.heading { font-family: var(--display); font-size: 22px; line-height: 30px; font-weight: 500; }
.title { font-size: 18px; line-height: 26px; font-weight: 600; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 600px; }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.caption { font-size: 12px; line-height: 18px; color: var(--ink-muted); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-md); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #262b33; color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-muted); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eceef1; color: var(--ink); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: var(--line-dark); }
.btn-ghost-dark:hover { border-color: var(--ink-dark-muted); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--accent-text); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Cabeçalho */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; flex-grow: 1; }
.nav a { color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.head-actions { display: flex; gap: 8px; margin-left: auto; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }
.product-tag { padding: 2px 0 2px 14px; border-left: 1px solid var(--line); font-family: var(--display); font-weight: 500; font-size: 15px; }
@media (max-width: 900px) {
  .site-head .nav, .site-head .head-actions.full { display: none; }
  .menu-btn { display: block; }
  .site-head.open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .site-head.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .site-head.open .nav .nav-cta { display: block; margin-top: 12px; border: 0; color: var(--accent-text); }
}
.nav .nav-cta { display: none; }
@media (max-width: 560px) { .lp-head .head-actions .phone { display: none; } }

/* Seções */
.section { padding: 96px 0; }
.section-sm { padding: 72px 0; }
.band { background: var(--surface-subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule-top { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 680px; }
@media (max-width: 640px) { .section { padding: 72px 0; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 88px 0 96px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-visual { flex: 1 1 400px; min-width: 0; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-muted); font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }
.live .dot { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(44,127,114,.5); } 80%,100% { box-shadow: 0 0 0 7px rgba(44,127,114,0); } }
@media (prefers-reduced-motion: reduce) { .live .dot { animation: none; } }

/* Moldura com degradê e janelas de produto */
.gradient-frame { border-radius: var(--r-xl); padding: 32px; background: var(--gradient); }
.gradient-frame.top { padding: 40px 40px 0; overflow: hidden; }
@media (max-width: 640px) { .gradient-frame, .gradient-frame.top { padding: 16px; } .gradient-frame.top { padding-bottom: 0; } }
.window { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(14,17,22,.45); overflow: hidden; }
.gradient-frame.top .window { border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); font-size: 13px; }
.window-bar img { height: 20px; width: auto; }
.window-bar .status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--signal); }
.window-body { padding: 20px; }
.scroll-x { overflow-x: auto; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.kpi small { display: block; font-size: 11px; line-height: 16px; color: var(--ink-muted); }
.kpi b { font-size: 17px; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); margin-top: 16px; }
.bars span { flex: 1; border-radius: 4px 4px 0 0; background: var(--line); }
.bars span.c { background: var(--brand-cyan); }
.bars span.b { background: var(--brand-blue); }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; }
.tbl th { padding: 8px 10px; font-weight: 500; color: var(--ink-muted); text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .desc { font-weight: 500; }
.tbl .off { color: var(--ink-muted); font-weight: 400; }
.chip { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); font-size: 12px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-pending { background: var(--pending-bg); color: var(--pending); }
.chip-neutral { background: var(--neutral-bg); color: var(--ink-muted); }
.chip-outline { border: 1px solid var(--line); color: var(--ink); font-weight: 400; }

/* Grades */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ruled { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
ol.grid { list-style: none; margin: 0; padding: 0; }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.split > .main { flex: 2 1 560px; min-width: 0; }
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cells > div { background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.list-ruled { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; }
.list-ruled > div { padding: 16px 0; border-top: 1px solid var(--line); font-weight: 500; }

/* Produtos */
.product { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.product-shot { padding: 24px 24px 0; background: var(--gradient); }
.product-shot.plain { background: var(--surface-subtle); border-bottom: 1px solid var(--line); }
.mini { background: #fff; border-radius: var(--r-md) var(--r-md) 0 0; padding: 14px 16px; display: flex; flex-direction: column; font-size: 12px; line-height: 18px; }
.product-shot.plain .mini { border: 1px solid var(--line); border-bottom: 0; }
.mini > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.mini > div:first-child { border-top: 0; padding-top: 0; font-weight: 600; }
.mini .ok { color: var(--ok); font-weight: 500; }
.mini .pend { color: var(--pending); font-weight: 500; }
.mini .off { color: var(--ink-muted); }
.product-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.product-body .text-link { margin-top: auto; padding-top: 12px; }

/* Chamada final escura */
.cta-dark { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.cta-dark .copy { flex: 1 1 420px; min-width: 0; }
.cta-dark img { height: 44px; width: auto; margin-bottom: 20px; }
.cta-dark p { margin-top: 12px; color: var(--ink-dark-muted); font-size: 17px; max-width: 520px; }

/* Rodapé */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-muted); }
.site-foot img { height: 24px; width: auto; }
.site-foot a { color: var(--ink-muted); }
.site-foot a:hover { color: var(--ink); }

/* WhatsApp fixo */
.wa { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: #1f8f4e; color: #fff; text-decoration: none; font-weight: 500; box-shadow: 0 12px 30px -10px rgba(14,17,22,.5); }
.wa:hover { background: #1a7c43; color: #fff; }
.wa svg { width: 24px; height: 24px; }
@media (max-width: 560px) { .wa span { display: none; } .wa { width: 52px; padding: 0; justify-content: center; } }

/* Landing: lista de benefícios */
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--signal-bg); color: var(--signal); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.checks i svg { width: 12px; height: 12px; }

/* Formulários */
.form { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; background: #fff; box-shadow: 0 24px 48px -32px rgba(14,17,22,.35); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.form input, .form select, .form textarea { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: #fff; width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6470' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47,95,146,.15); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink-muted); font-size: 13px; line-height: 20px; }
.form .consent input { width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--ink); flex: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; }
.form-msg.err { display: block; background: #fbeeea; color: #9a3412; }
.form-msg.ok { display: block; background: var(--ok-bg); color: var(--ok); }

/* Linha do tempo com/sem */
.compare { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare > div { flex: 1 1 420px; min-width: 0; padding: 32px; }
.compare > div + div { background: var(--surface-subtle); border-left: 1px solid var(--line); }
@media (max-width: 900px) { .compare > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.timeline { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.timeline div { display: flex; gap: 16px; }
.timeline time { flex: none; width: 80px; font-family: var(--mono); color: var(--ink-muted); }

/* Passos com régua */
.steps-ruled li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--line); }
.steps-ruled li:first-child { border-top-color: var(--ink); }

/* Calculadora */
.calc { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.calc-in { flex: 1 1 420px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.calc-in label { display: flex; flex-direction: column; gap: 10px; font-weight: 500; }
.calc-in label > span { display: flex; justify-content: space-between; gap: 12px; }
.calc-in output { font-family: var(--mono); color: var(--accent-text); }
.calc-in input[type="range"] { width: 100%; accent-color: var(--ink); }
.calc-out { flex: 1 1 420px; min-width: 0; padding: 32px; background: var(--surface-subtle); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .calc-out { border-left: 0; border-top: 1px solid var(--line); } }
.calc-big { font-family: var(--display); font-size: clamp(48px, 6vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.calc-rows { border-top: 1px solid var(--line); }
.calc-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* IA */
.ai-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; line-height: 20px; }
.ai-card > div + div { border-top: 1px solid var(--line); padding-top: 12px; }
.ai-card small { display: block; color: var(--ink-muted); font-size: 12px; margin-bottom: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 6px; width: 9px; height: 9px; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 10px; }
.faq details p { margin-top: 10px; color: var(--ink-muted); max-width: 680px; }

/* Páginas de texto */
.page-head { padding: 80px 0 40px; display: flex; flex-direction: column; gap: 16px; }
.legal { max-width: 760px; padding-bottom: 96px; }
.legal h2 { font-family: var(--display); font-size: 22px; line-height: 30px; font-weight: 500; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-muted); }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }

.contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-bottom: 96px; }
.contact .form { flex: 2 1 520px; min-width: 0; }
.contact .channels { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.channel { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.channel:hover { border-color: var(--ink-muted); color: var(--ink); }
.channel .i { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-subtle); display: inline-flex; align-items: center; justify-content: center; color: var(--signal); flex: none; }
.channel .i svg { width: 20px; height: 20px; }
.channel strong { display: block; font-weight: 600; }
.channel span { color: var(--ink-muted); font-size: 14px; word-break: break-word; }

.thanks { max-width: 640px; padding: 112px 0; display: flex; flex-direction: column; gap: 20px; }
.thanks-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--signal-bg); color: var(--signal); display: inline-flex; align-items: center; justify-content: center; }

/* Ajustes finos */
.kpi b { display: block; font-size: 15px; line-height: 22px; }
.kpis { grid-template-columns: 1fr; gap: 8px; }
.kpi { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.kpi small { font-size: 13px; }
.btn { white-space: nowrap; }
@media (max-width: 560px) {
  .brand img { height: 26px; }
  .lp-head .product-tag { display: none; }
  .lp-head .btn-sm { padding: 0 14px; }
  .window-bar .crumb { display: none; }
  .window-bar .status { white-space: nowrap; }
  .kpis { grid-template-columns: 1fr; }
}
