/* Vem OS · site institucional (v2) */

/* ---------- Fontes (servidas pelo próprio site) ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/sora-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #070B16;
  --bg-raised: #0B1222;
  --bg-sunk: #080D1A;
  --bg-deep: #04060E;
  --bg-active: #0E1830;
  --line: #222B3E;
  --line-soft: #161E30;
  --line-mid: #1A2338;
  --line-strong: #2A3654;
  --text: #EDF2FB;
  --text-soft: #B9C4DA;
  --text-mute: #93A0BA;
  --cyan: #22E3E8;
  --blue: #2C6BF0;
  --bubble-ai: #16357A;
  --grad: linear-gradient(115deg, #3B45E8, #1A6ADB);
  --grad-text: linear-gradient(115deg, #6E78FF, #3E96FF 45%, #22E3E8);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 20px;
  --wrap: 1200px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); }
a:hover { color: #8CF3F6; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.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 { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 88px; padding-bottom: 80px; }
.band { background: var(--bg-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.eyebrow { font-family: var(--font-mono); font-size: 12.5px; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.12em; }
.mono-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
.h2 .dot, .h3 .dot { color: var(--cyan); }
.lead { font-size: 18px; color: var(--text-soft); }
.note { font-size: 12px; color: var(--text-mute); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: filter .2s, border-color .2s, color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.12); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { color: var(--cyan); border-color: var(--cyan); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-glow { box-shadow: 0 14px 40px -12px rgba(44, 107, 240, 0.7); }

/* ---------- Pills (abas) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { position: relative; overflow: hidden; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-soft); font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.pill:hover { color: var(--text); border-color: #3A4C74; }
.pill[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--blue); pointer-events: none; }
.progress.run { animation: fill var(--dur, 9s) linear forwards; }
.progress.grad { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 22, 0.86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--text-soft); text-decoration: none; }
.nav a:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 78% 8%, rgba(30, 123, 240, 0.1), rgba(7, 11, 22, 0) 70%); }
.hero-glow { position: absolute; right: 6%; top: 40px; width: 520px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 227, 232, 0.16), rgba(34, 227, 232, 0)); pointer-events: none; animation: drift 14s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-50px, 36px); } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid #22304D; border-radius: 999px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-soft); letter-spacing: 0.02em; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.h1 { font-weight: 800; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; color: var(--text-soft); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { font-size: 14px; color: var(--text-mute); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px 36px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1.2; }
.stat span { font-size: 13.5px; color: var(--text-mute); max-width: 150px; line-height: 1.4; }

/* ---------- Demo do hero ---------- */
.demo { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.7); overflow: hidden; }
.demo-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-mid); }
.replay { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 0; background: transparent; color: var(--text-mute); font-size: 13px; }
.replay:hover { color: var(--text); }
.replay svg { width: 15px; height: 15px; }
.demo-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.chat { display: flex; flex-direction: column; gap: 12px; min-height: 440px; padding: 18px 16px 20px; }
.chat-ctx { display: flex; align-items: center; gap: 8px; }
.chat-ctx svg { width: 14px; height: 14px; }
.msgs { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 10px 13px; font-size: 14.5px; line-height: 1.45; }
.msg small { display: block; margin-top: 4px; font-size: 11px; color: var(--text-mute); }
.msg-client { align-self: flex-start; border-radius: 4px 14px 14px 14px; background: #141C2F; border: 1px solid var(--line); }
.msg-ai { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: var(--bubble-ai); }
.msg-ai small { color: #B9C9EE; text-align: right; }
.typing { align-self: flex-end; display: flex; gap: 5px; align-items: center; padding: 13px 15px; border-radius: 14px 4px 14px 14px; background: var(--bubble-ai); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #B9C9EE; animation: dot 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.acts { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 20px; background: var(--bg-sunk); border-left: 1px solid var(--line-mid); }
.act-list { display: flex; flex-direction: column; gap: 10px; }
.act { display: flex; gap: 10px; align-items: flex-start; padding: 10px 11px; border: 1px solid var(--line-mid); border-radius: 10px; background: var(--bg-raised); opacity: .45; }
.act.done { opacity: 1; border-color: #24406F; }
.act svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.act code { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mute); overflow-wrap: anywhere; }
.act.done code { color: var(--cyan); }
.act span { font-size: 13px; color: var(--text-soft); }
.acts .note { margin-top: auto; padding-top: 6px; }
.pop { animation: pop .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade { animation: fadein .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Jornada ---------- */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.step { position: relative; overflow: hidden; text-align: left; min-height: 84px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-raised); color: var(--text-soft); display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, background .2s; }
.step:hover { border-color: #3A4C74; }
.step em { font-style: normal; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mute); }
.step strong { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; }
.step[aria-pressed="true"] { background: var(--bg-active); border-color: var(--blue); color: var(--text); }
.step[aria-pressed="true"] em { color: var(--cyan); }
.panel { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); padding: 36px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px 56px; align-items: center; min-height: 340px; }
.panel-copy { display: flex; flex-direction: column; gap: 16px; }
.h3 { font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.panel-copy p { font-size: 17px; color: var(--text-soft); }
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.record { border: 1px solid var(--line-mid); border-radius: 16px; background: var(--bg-sunk); padding: 8px 22px; }
.record-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); opacity: .4; }
.record-row.done { opacity: 1; }
.record-row dt { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.record-row dt svg { width: 16px; height: 16px; flex: none; }
.record-row dd { margin: 0; font-size: 15.5px; font-weight: 500; text-align: right; }
.record .note { padding: 12px 0; }

/* ---------- Funcionário digital ---------- */
.compare { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-sunk); padding: 30px; }
.compare-card h3 { font-weight: 700; font-size: 20px; padding-bottom: 12px; }
.compare-card li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.compare-card li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.compare-card.muted h3, .compare-card.muted li { color: var(--text-mute); }
.compare-card.hl { border-color: var(--blue); background: var(--bg-active);  }
.compare-card.hl li { border-top-color: #1E2B4D; }
.actions-card { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-sunk); padding: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; align-items: center; }
.actions-card b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.actions-card p { color: var(--text-soft); }
.marquee { overflow: hidden; display: flex; flex-direction: column; gap: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marquee-row.rev { animation-direction: reverse; animation-duration: 48s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee ul { display: flex; gap: 8px; padding-right: 8px; }
.marquee li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--text-soft); white-space: nowrap; }
.marquee li.more { border-style: dashed; border-color: var(--line-strong); color: var(--text-mute); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Fluxos ---------- */
.flows { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; }
.flow-tabs { display: flex; flex-direction: column; gap: 10px; }
.flow-tab { position: relative; overflow: hidden; flex: 1 1 auto; text-align: left; padding: 18px 20px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-raised); display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, background .2s; }
.flow-tab:hover { border-color: #3A4C74; }
.flow-tab strong { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.flow-tab span { font-size: 15px; color: var(--text-soft); line-height: 1.5; }
.flow-tab[aria-pressed="true"] { background: var(--bg-active); border-color: var(--blue); }
.flow-view { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); padding: 24px 26px; display: flex; flex-direction: column; gap: 4px; min-height: 480px; }
.flow-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.flow-row { display: flex; gap: 14px; align-items: stretch; opacity: .3; transition: opacity .5s; }
.flow-row.seen { opacity: 1; }
.rail { flex: none; width: 14px; display: flex; flex-direction: column; align-items: center; }
.rail i { margin-top: 20px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #3A4664; transition: background .4s, border-color .4s; }
.rail b { flex: 1; width: 2px; background: var(--line-mid); }
.flow-row.seen .rail i { border-color: var(--cyan); }
.flow-row.done .rail i { background: var(--cyan); }
.flow-body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.flow-body div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.flow-body em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.06em; }
.flow-body p { font-size: 15.5px; }
.status { font-size: 13.5px; font-weight: 500; color: var(--text-mute); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.flow-row.done .status { color: var(--cyan); border-color: #1D5C73; }
.flow-foot { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--text-mute); }

/* ---------- Telas ---------- */
.screen-tabs { margin-top: 32px; }
.screen-tabs .pill { min-height: 42px; font-size: 14.5px; }
.screen { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); padding: 10px; box-shadow: 0 40px 90px -60px rgba(0, 0, 0, 0.8); }
.screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; background: var(--bg-sunk); }
.screen-caption { margin-top: 20px; font-size: 17px; color: var(--text-soft); max-width: 820px; min-height: 3.2em; }
.mobile { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 56px; align-items: center; }
.mobile-copy { display: flex; flex-direction: column; gap: 14px; }
.mobile-copy .h3 { font-weight: 800; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -0.03em; }
.mobile-copy p { font-size: 17px; color: var(--text-soft); }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.phone { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.phone:nth-child(2) { padding-top: 36px; }
.phone-frame { border: 1px solid var(--line-strong); border-radius: 30px; padding: 7px; background: var(--bg-raised); box-shadow: 0 24px 50px -36px rgba(0, 0, 0, 0.8); }
.phone-frame img { width: 100%; aspect-ratio: 600 / 1298; border-radius: 24px; }
.phone figcaption { font-size: 14px; color: var(--text-mute); text-align: center; }

/* ---------- Módulos ---------- */
.mods { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.mod { text-align: left; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-sunk); display: flex; flex-direction: column; gap: 10px; min-height: 168px; transition: border-color .2s, transform .2s, background .2s; }
.mod:hover { border-color: #3A4C74; transform: translateY(-2px); }
.mod-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mod-top strong { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.mod-box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid #3A4664; display: flex; align-items: center; justify-content: center; }
.mod-box svg { width: 15px; height: 15px; opacity: 0; }
.mod > span:last-child { font-size: 15px; color: var(--text-soft); line-height: 1.5; }
.mod[aria-pressed="true"] { border-color: var(--blue); background: var(--bg-active); }
.mod[aria-pressed="true"] .mod-box { border-color: var(--cyan); background: var(--cyan); }
.mod[aria-pressed="true"] .mod-box svg { opacity: 1; }
.mods-bar { margin-top: 16px; border: 1px solid var(--blue); border-radius: 18px; background: var(--bg-active); padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.mods-bar div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mods-bar strong { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.mods-bar span { font-size: 15px; color: var(--text-soft); }
.mods-note { margin-top: 14px; font-size: 13.5px; color: var(--text-mute); }

/* ---------- Segurança ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 72px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 0 40px; }
.facts div { padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.facts strong { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.facts span { font-size: 15px; color: var(--text-soft); }
.integrations { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); padding: 26px 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.integrations ul { flex: 1 1 600px; display: flex; flex-wrap: wrap; gap: 10px; }
.integrations li { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; }
.integrations li b { font-weight: 600; }
.integrations li span { color: var(--text-mute); }

/* ---------- Implantação ---------- */
.phases { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.phase { border: 1px solid var(--line); border-radius: 18px; background: var(--bg-sunk); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.phase-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mute); }
.phase-top b { font-weight: 400; font-size: 13px; color: var(--cyan); }
.phase h3 { font-weight: 700; font-size: 22px; }
.phase p { font-size: 15.5px; color: var(--text-soft); }

/* ---------- Depoimentos ---------- */
.quotes { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quote { margin: 0; border: 1px dashed #3A4664; border-radius: 18px; background: var(--bg-raised); padding: 28px; display: flex; flex-direction: column; gap: 20px; min-height: 220px; }
.quote svg { width: 30px; height: 24px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-soft); }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.quote figcaption b { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.quote figcaption span { font-size: 14px; color: var(--text-mute); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; min-height: 68px; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-weight: 600; font-size: 18.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 24px; text-align: center; font-family: var(--font-mono); font-size: 22px; color: var(--cyan); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 44px 24px 0; font-size: 16.5px; color: var(--text-soft); }
.faq details[open] p { animation: fadein .35s ease both; }

/* ---------- CTA final ---------- */
.cta-band { padding: 96px var(--gutter); }
.cta-card { max-width: 1152px; margin: 0 auto; border-radius: 28px; background: var(--grad); padding: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; }
.cta-card > div:first-child { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-card h2 { font-weight: 800; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -0.035em; color: #fff; }
.cta-card h2 span { color: var(--bg-deep); }
.cta-card p { font-size: 18px; color: #EAF0FF; max-width: 560px; }
.cta-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-side small { font-size: 14px; color: #EAF0FF; }
.btn-dark { min-height: 60px; padding: 0 30px; border-radius: 14px; background: var(--bg-deep); color: var(--cyan); font-weight: 700; font-size: 18px; }
.btn-dark:hover { color: #8CF3F6; }
.btn-dark svg { width: 20px; height: 20px; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-deep); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px 72px; padding-top: 56px; padding-bottom: 40px; }
.foot-brand { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.foot-brand img { height: 34px; width: auto; align-self: flex-start; }
.foot-brand p { font-size: 15px; color: var(--text-mute); }
.foot nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot nav .mono-label { font-size: 12px; letter-spacing: 0.1em; padding-bottom: 4px; }
.foot nav a { color: var(--text-mute); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--text-mute); }

/* ---------- Revelar ao rolar (só com JS) ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-sub { max-width: 640px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flows { grid-template-columns: minmax(0, 1fr); }
  .flow-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .mobile { grid-template-columns: minmax(0, 1fr); }
  .actions-card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .site-header.open .nav { display: flex; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --radius: 18px; }
  .section { padding-top: 64px; padding-bottom: 56px; }
  .site-header .wrap { min-height: 64px; }
  .brand img { height: 28px; }
  .header-cta .btn { display: none; }
  .hero-grid { padding-top: 40px; padding-bottom: 48px; }
  .hero-glow { display: none; }
  .hero-sub, .lead { font-size: 16.5px; }
  .cta-row .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .stat b { font-size: 28px; }
  .stat span { font-size: 12.5px; }
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .chat { min-height: 400px; }
  .acts { border-left: 0; border-top: 1px solid var(--line-mid); }
  .demo-top .pill { padding: 0 13px; }
  .steps, .screen-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .steps::-webkit-scrollbar, .screen-tabs::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 132px; scroll-snap-align: start; }
  .screen-tabs .pill { flex: none; scroll-snap-align: start; }
  .panel { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 24px; }
  .h3 { font-size: 23px; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare-card, .actions-card { padding: 24px 20px; }
  .flow-tabs { grid-template-columns: minmax(0, 1fr); }
  .flow-tab { padding: 14px 16px 16px; }
  .flow-tab span { display: none; }
  .flow-tab[aria-pressed="true"] span { display: block; }
  .flow-view { padding: 20px 16px; min-height: 0; }
  .screen { padding: 6px; border-radius: 14px; }
  .screen img { border-radius: 9px; }
  .screen-caption { font-size: 16px; }
  .mobile { margin-top: 56px; }
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 62%; scroll-snap-align: center; }
  .phone:nth-child(2) { padding-top: 0; }
  .mods { grid-template-columns: minmax(0, 1fr); }
  .mod { min-height: 0; }
  .mods-bar .btn { width: 100%; white-space: normal; text-align: center; }
  .phases, .quotes { grid-template-columns: minmax(0, 1fr); }
  .integrations { padding: 22px 20px; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
  .cta-band { padding-top: 64px; padding-bottom: 64px; }
  .cta-card { border-radius: 22px; }
  .cta-side, .btn-dark { width: 100%; }
  .btn-dark { white-space: normal; text-align: center; }
}

@media (max-width: 420px) {
  .stat b { font-size: 24px; }
  .step { flex-basis: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-row { animation: none; width: auto; flex-wrap: wrap; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee ul { flex-wrap: wrap; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- ajustes ---------- */
.phases { list-style: none; padding: 0; margin-bottom: 0; }
.record dl { margin: 0; }
.section-tight { padding-top: 0; }
.stats { list-style: none; margin: 0; }
.badge, .chat-ctx, .flow-head, .phase-top, .cta-note { margin: 0; }
@media (max-width: 760px) {
  .demo-top { flex-wrap: nowrap; padding: 12px; }
  .demo-top .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .demo-top .pills::-webkit-scrollbar { display: none; }
  .demo-top .pill { flex: none; padding: 0 12px; font-size: 13.5px; }
  .replay { flex: none; font-size: 0; gap: 0; width: 40px; justify-content: center; }
  .replay svg { width: 18px; height: 18px; }
  .chat { min-height: 380px; }
}

/* estados "aguardando" com contraste AA, sem opacidade */
.act { opacity: 1; border-style: dashed; border-color: #2A3350; }
.act:not(.done) span { color: var(--text-mute); }
.act.done { border-style: solid; }
.record-row { opacity: 1; }
.record-row:not(.done) dd { color: var(--text-mute); }
.flow-row { opacity: 1; }
.flow-row:not(.seen) em, .flow-row:not(.seen) p { color: var(--text-mute); }

/* ---------- v2: seções claras, fotos e menos brilho ---------- */
.accent-text { color: var(--cyan); }

/* Seção clara: redefine os tokens, e os componentes de dentro acompanham */
.light {
  --bg: #FFFFFF;
  --bg-raised: #FFFFFF;
  --bg-sunk: #FFFFFF;
  --bg-active: #E8F0FF;
  --line: #D8DEE9;
  --line-soft: #E3E7EF;
  --line-mid: #DCE1EB;
  --line-strong: #C2CAD9;
  --text: #0B1222;
  --text-soft: #3A455C;
  --text-mute: #566179;
  --cyan: #0A6E86;
  --blue: #1F5BD6;
  background: #F3F5F9;
  color: var(--text);
  color-scheme: light;
}
.light-alt { background: #FFFFFF; --bg-sunk: #F3F5F9; --bg-raised: #F3F5F9; }
.light .screen, .light .phone-frame { --bg-raised: #E9EDF4; }
.light a { color: var(--cyan); }
.light a:hover { color: #08566A; }
.light :focus-visible { outline-color: var(--blue); }
.light + .light-alt { border-top: 1px solid var(--line-soft); }
.light-alt + .light-alt { border-top: 0; }
#faq.light { padding-top: 8px; }

/* Galeria de operação */
.gallery { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 270px)); gap: 14px; }
.shot { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: #DCE1EB; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-big { grid-row: span 2; }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(7, 11, 22, 0.82); color: #EDF2FB; font-size: 13px; font-weight: 500; }
.sectors { margin-top: 24px; font-size: 16px; color: var(--text-soft); }

/* Indústria em destaque: foto alta com texto por cima */
.shot-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 6, 14, 0) 40%, rgba(4, 6, 14, 0.88) 100%); }
.shot-feature figcaption { z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px; border-radius: 0; background: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.shot-feature figcaption b { align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--blue); font-size: 13px; font-weight: 600; color: #fff; }
.shot-feature figcaption span { color: #E6ECF7; line-height: 1.45; max-width: 380px; }

/* Consultórios e escritórios */
.gallery-sub { margin-top: 40px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.gallery-row { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-row .shot { aspect-ratio: 4 / 3; }

/* Faixa de nichos */
.niches { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.niches ul { display: flex; flex-wrap: wrap; gap: 8px; }
.niches li { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14.5px; color: var(--text-soft); }
.niches p { font-size: 16.5px; color: var(--text-soft); }
.niches p b { color: var(--text); font-weight: 600; }
.niches p a { font-weight: 600; white-space: nowrap; }

@media (max-width: 760px) {
  .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-row .shot { border-radius: 14px; }
  .shot-feature figcaption { padding: 14px; font-size: 13px; }
  .shot-feature figcaption span { display: none; }
  .niches li { font-size: 13.5px; padding: 6px 11px; }
}

/* Faixa de foto em largura total */
.photo-band { position: relative; overflow: hidden; min-height: clamp(420px, 46vw, 600px); display: flex; align-items: center; background: var(--bg-deep); }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4, 6, 14, 0.94) 0%, rgba(4, 6, 14, 0.82) 38%, rgba(4, 6, 14, 0.25) 75%, rgba(4, 6, 14, 0.1) 100%); }
.photo-band-copy { position: relative; z-index: 2; width: 100%; padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.photo-band-copy .h2, .photo-band-copy .lead { max-width: 600px; }
.photo-band-copy .lead { color: #D3DBEA; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 180px; gap: 10px; }
  .shot-big { grid-row: span 2; }
  .shot { border-radius: 14px; }
  .shot figcaption { left: 8px; bottom: 8px; font-size: 12px; }
  .photo-band { min-height: 0; align-items: flex-end; }
  .photo-band img { object-position: 70% 50%; }
  .photo-band::before { background: linear-gradient(180deg, rgba(4, 6, 14, 0.25) 0%, rgba(4, 6, 14, 0.8) 45%, rgba(4, 6, 14, 0.96) 100%); }
  .photo-band-copy { padding-top: 220px; padding-bottom: 48px; }
}

/* ---------- Formulário de diagnóstico (no card azul final) ---------- */
.cta-card.diag { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: 48px; padding: clamp(32px, 4.5vw, 64px); }
.diag-copy { min-width: 0; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 104px; }
.diag-copy h2 { font-size: clamp(32px, 3.6vw, 48px); }
@media (max-width: 960px) {
  .cta-card.diag { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .diag-copy { position: static; }
}
.diag-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.diag-steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #EAF0FF; }
.diag-steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(4, 6, 14, 0.35); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: #fff; }
.cta-card .diag-alt { font-size: 15px; margin-top: 6px; }
.diag-alt a { color: #fff; font-weight: 600; }
.diag-alt a:hover { color: #fff; text-decoration: none; }

.diag-form { min-width: 0; background: #fff; color: #0B1222; border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(4, 6, 14, 0.6); display: flex; flex-direction: column; gap: 18px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f-full { grid-column: 1 / -1; }
.f[hidden] { display: none; }
.f > span { font-size: 13.5px; font-weight: 600; color: #26304A; }
.f > span i { font-style: normal; color: #1F5BD6; }
.f input, .f select, .f textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #C9D0DE; border-radius: 10px; background: #fff; color: #0B1222; font: inherit; font-size: 16px; }
.f textarea { resize: vertical; min-height: 84px; }
.f select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566179' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.f select:invalid { color: #6B7590; }
.f input::placeholder, .f textarea::placeholder { color: #8A93A8; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid #1F5BD6; outline-offset: 1px; border-color: #1F5BD6; }
.f [aria-invalid="true"] { border-color: #C62828; background: #FFF6F6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.diag-form .btn-dark { width: 100%; white-space: normal; text-align: center; }
.diag-form .btn-dark[disabled] { opacity: .6; cursor: progress; }
.diag-msg { font-size: 15px; }
.diag-msg:empty { display: none; }
.diag-msg.ok { padding: 14px 16px; border-radius: 12px; background: #E8F7EF; color: #0E5A34; }
.diag-msg.err { padding: 14px 16px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; }
.diag-msg a { color: inherit; font-weight: 600; }
.cta-card .diag-msg { font-size: 15px; color: #26304A; max-width: none; }
.cta-card .diag-msg.ok { color: #0E5A34; }
.cta-card .diag-msg.err { color: #8A1C1C; }
.cta-card .diag-legal { font-size: 13.5px; color: #4A5470; max-width: none; }
.diag-legal a { color: #0A6E86; }
.diag-form.sent .fgrid, .diag-form.sent > .btn-dark { display: none; }

@media (max-width: 760px) {
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .cta-card.diag { padding: 28px 12px 12px; }
  .diag-copy { padding: 0 8px; }
  .diag-form { padding: 20px 16px; border-radius: 16px; }
}
