/* =========================================================
   WSantos Tech — v2
   Tokens de tema: claro (padrão) e escuro
   ========================================================= */
:root {
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --max: 1200px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Marca */
  --brand: #4f46e5;
  --brand-2: #6366f1;
  --accent: #0891b2;
  --grad: linear-gradient(110deg, #4f46e5 0%, #6366f1 45%, #06b6d4 100%);

  /* Tema claro */
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f3f4f9;
  --ink: #0b1024;
  --ink-2: #2b3350;
  --muted: #5b6480;
  --line: #e4e7f0;
  --line-strong: #cfd4e2;
  --brand-ink: #4338ca;
  --brand-soft: #eef0ff;
  --shadow-sm: 0 1px 2px rgb(16 24 64 / .06);
  --shadow: 0 1px 2px rgb(16 24 64 / .05), 0 8px 24px -6px rgb(16 24 64 / .10);
  --shadow-lg: 0 2px 4px rgb(16 24 64 / .04), 0 24px 60px -12px rgb(40 36 120 / .22);
  --header-bg: rgb(255 255 255 / .78);
  --hero-glow-1: rgb(99 102 241 / .16);
  --hero-glow-2: rgb(6 182 212 / .12);
  --grid-line: rgb(15 23 42 / .045);
  --c1: #4f46e5; --c1-bg: #eef0ff;
  --c2: #7c3aed; --c2-bg: #f3edff;
  --c3: #0891b2; --c3-bg: #e6f7fb;
  --c4: #059669; --c4-bg: #e7f7f0;
  --c5: #d97706; --c5-bg: #fff4e2;
  --c6: #db2777; --c6-bg: #fdebf3;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e1f;
  --bg-alt: #0d1228;
  --surface: #111733;
  --surface-2: #161d3d;
  --ink: #f3f5ff;
  --ink-2: #d3d8ee;
  --muted: #9aa3c2;
  --line: #222a4d;
  --line-strong: #323c66;
  --brand-ink: #a5b4fc;
  --brand-soft: rgb(99 102 241 / .14);
  --accent: #22d3ee;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -8px rgb(0 0 0 / .5);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 30px 70px -15px rgb(0 0 0 / .7);
  --header-bg: rgb(10 14 31 / .72);
  --hero-glow-1: rgb(99 102 241 / .28);
  --hero-glow-2: rgb(6 182 212 / .16);
  --grid-line: rgb(255 255 255 / .04);
  --c1: #a5b4fc; --c1-bg: rgb(99 102 241 / .16);
  --c2: #c4b5fd; --c2-bg: rgb(139 92 246 / .16);
  --c3: #67e8f9; --c3-bg: rgb(6 182 212 / .14);
  --c4: #6ee7b7; --c4-bg: rgb(16 185 129 / .14);
  --c5: #fcd34d; --c5-bg: rgb(245 158 11 / .14);
  --c6: #f9a8d4; --c6-bg: rgb(236 72 153 / .14);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, fill .3s ease !important;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.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; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] .grad { background-image: linear-gradient(110deg, #a5b4fc 0%, #818cf8 40%, #22d3ee 100%); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: transform .15s ease, background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ic use[href="#i-arrow"] { transform: none; }
.btn:hover > .ic:last-child { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgb(16 24 64 / .2), inset 0 1px 0 rgb(255 255 255 / .15), 0 8px 20px -8px rgb(79 70 229 / .6); }
.btn-primary:hover { background: #4338ca; }
html[data-theme="dark"] .btn-primary { background: #6366f1; }
html[data-theme="dark"] .btn-primary:hover { background: #7376f5; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-ink); }
.btn-light { background: #fff; color: #1e1b4b; }
.btn-light:hover { background: #eef0ff; }
.full { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.icon-btn .ic { grid-area: 1 / 1; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -12px rgb(16 24 64 / .18); }
.nav { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; letter-spacing: -.4px; white-space: nowrap; }
.brand img { border-radius: 9px; }
.brand-tech { color: var(--accent); margin-left: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a:not(.btn) { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links > a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav-mobile-cta { display: none !important; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle .ic-moon { opacity: 1; transform: none; }
.theme-toggle .ic-sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
html[data-theme="dark"] .theme-toggle .ic-sun { opacity: 1; transform: none; }
html[data-theme="dark"] .theme-toggle .ic-moon { opacity: 0; transform: rotate(60deg) scale(.6); }
.theme-toggle .ic { transition: opacity .25s, transform .35s; }
.menu-toggle { display: none; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }
.menu-toggle[aria-expanded="true"] .ic-open { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 78% 30%, var(--hero-glow-1), transparent 70%),
    radial-gradient(500px 360px at 95% 70%, var(--hero-glow-2), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 24px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgb(16 185 129 / .18); }
h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 22px; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .ic { width: 17px; height: 17px; color: #10b981; stroke-width: 2.4; }

/* Visual */
.hero-visual { position: relative; padding: 26px 20px 40px 0; }
.window { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar p { margin-left: 10px; font: 12px var(--mono); color: var(--muted); }
.flow { padding: 22px; }
.flow-node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.flow-node > div { flex: 1; min-width: 0; }
.flow-node b { display: block; font-size: 14.5px; font-weight: 600; }
.flow-node small { display: block; font-size: 12.5px; color: var(--muted); }
.flow-node em { font: 600 11px var(--mono); font-style: normal; color: var(--muted); padding: 4px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.flow-node em.tag-ok { color: #047857; background: #e7f7f0; border-color: #bfe9d6; }
html[data-theme="dark"] .flow-node em.tag-ok { color: #6ee7b7; background: rgb(16 185 129 / .12); border-color: rgb(16 185 129 / .3); }
.flow-line { position: relative; height: 18px; margin-left: 33px; width: 2px; background: var(--line-strong); overflow: hidden; }
.flow-line i { position: absolute; left: 0; top: -100%; width: 2px; height: 100%; background: var(--grad); }
.node-ic, .card-ic { display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; }
.node-ic { width: 36px; height: 36px; }
.node-ic .ic { width: 18px; height: 18px; }
.c1 { color: var(--c1); background: var(--c1-bg); }
.c2 { color: var(--c2); background: var(--c2-bg); }
.c3 { color: var(--c3); background: var(--c3-bg); }
.c4 { color: var(--c4); background: var(--c4-bg); }
.c5 { color: var(--c5); background: var(--c5-bg); }
.c6 { color: var(--c6); background: var(--c6-bg); }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px 16px; }
.fc-chart { right: -6px; top: -6px; width: 180px; }
.fc-chart p { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--grad); opacity: .9; transform-origin: bottom; }
.bars i:nth-child(1) { height: 35%; } .bars i:nth-child(2) { height: 55%; } .bars i:nth-child(3) { height: 42%; }
.bars i:nth-child(4) { height: 70%; } .bars i:nth-child(5) { height: 62%; } .bars i:nth-child(6) { height: 84%; } .bars i:nth-child(7) { height: 100%; }
.fc-api { left: -28px; bottom: 6px; display: flex; align-items: center; gap: 12px; }
.fc-api b { display: block; font-size: 13.5px; }
.fc-api small { font-size: 12px; color: var(--muted); }
.visual-note { position: absolute; right: 22px; bottom: 6px; font: 11px var(--mono); color: var(--muted); opacity: .8; }

.capabilities { margin-top: 64px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }
.capabilities li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.capabilities .ic { color: var(--brand-ink); }

/* ---------- Seções ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.028em; font-weight: 750; text-wrap: balance; }
.section-head > p:last-child { margin-top: 16px; font-size: 17.5px; color: var(--muted); text-wrap: pretty; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-ic { width: 44px; height: 44px; border-radius: 12px; }
.card-ic .ic { width: 22px; height: 22px; }

/* Serviços */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.service h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 20px 0 8px; }
.service > p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.checks { display: grid; gap: 8px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.checks li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--brand-soft); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 3.5px; height: 6.5px; border: solid var(--brand-ink); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.service-wide { margin-top: 20px; padding: 24px 28px; display: flex; align-items: center; gap: 20px; }
.service-wide > div { flex: 1; }
.service-wide h3 { font-size: 18px; margin-bottom: 4px; }
.service-wide p { font-size: 15px; color: var(--muted); }

/* Soluções (dores) */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain { display: grid; grid-template-columns: 1fr auto 1.2fr; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pain-from, .pain-to { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.pain-from { color: var(--muted); }
.pain-from .ic { color: var(--muted); margin-top: 2px; }
.pain-from p { text-decoration: line-through; text-decoration-color: rgb(220 38 38 / .45); text-decoration-thickness: 1.5px; }
.pain-to { padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--ink-2); }
.pain-to .ic { color: var(--brand-ink); margin-top: 2px; }
.pain-to b { color: var(--ink); font-weight: 650; }
.pain-arrow { color: var(--line-strong); width: 22px; height: 22px; }

/* Diferenciais */
.why { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.why-copy h2 { margin-bottom: 18px; }
.why-copy p { color: var(--muted); font-size: 17px; margin-bottom: 28px; max-width: 470px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.why-item h3 { font-size: 17px; margin: 16px 0 6px; }
.why-item p { font-size: 14.5px; color: var(--muted); }

/* Projetos */
.filter-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: -24px auto 32px; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.filter { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 550; color: var(--muted); transition: background-color .2s, color .2s; }
.filter:hover { color: var(--ink); }
.filter.active { background: var(--ink); color: var(--bg); }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-art { position: relative; height: 140px; display: grid; place-items: center; background: var(--p-grad); overflow: hidden; }
.project-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgb(255 255 255 / .35), transparent 50%), linear-gradient(rgb(255 255 255 / .08) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgb(255 255 255 / .08) 1px, transparent 1px) 0 0 / 20px 20px; }
.project-art span { position: relative; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgb(255 255 255 / .2); border: 1px solid rgb(255 255 255 / .4); color: #fff; font-size: 28px; font-weight: 800; backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgb(0 0 0 / .15); }
.p-finance { --p-grad: linear-gradient(135deg, #4f46e5, #7c3aed); }
.p-training { --p-grad: linear-gradient(135deg, #7c3aed, #db2777); }
.p-care { --p-grad: linear-gradient(135deg, #059669, #0891b2); }
.p-game { --p-grad: linear-gradient(135deg, #0891b2, #4f46e5); }
.project-body { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.project-cat { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.project h3 { font-size: 21px; margin: 6px 0 8px; letter-spacing: -.01em; }
.project-body > p:not(.project-cat) { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.project-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--brand-ink); }
.project-link .ic { width: 16px; height: 16px; transition: transform .2s; }
.project-link:hover .ic { transform: translate(2px, -2px); }

/* Processo */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 14px var(--mono); box-shadow: 0 6px 16px -4px rgb(79 70 229 / .5); }
.step h3 { font-size: 19px; margin: 18px 0 6px; }
.step p { font-size: 14.5px; color: var(--muted); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -21px; width: 22px; height: 2px; background: var(--line-strong); }

/* Planejador */
.planner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.planner-copy { position: sticky; top: 110px; }
.planner-copy h2 { margin-bottom: 18px; }
.planner-copy > p:not(.eyebrow) { font-size: 17px; color: var(--muted); margin-bottom: 26px; }
.planner-list { display: grid; gap: 12px; }
.planner-list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.planner-list .ic { color: var(--brand-ink); margin-top: 2px; width: 19px; height: 19px; }
.form { padding: 30px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend, .field label { display: block; font-size: 14.5px; font-weight: 650; color: var(--ink); margin-bottom: 10px; padding: 0; }
.field label span { font-weight: 400; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choices label, .segmented label { position: relative; cursor: pointer; }
.choices input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; text-align: center; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; font-weight: 550; color: var(--ink-2); background: var(--bg); transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s; line-height: 1.25; }
.choices span .ic { color: var(--muted); }
.choices label:hover span { border-color: var(--brand-2); }
.choices input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); box-shadow: 0 0 0 1px var(--brand) inset; }
.choices input:checked + span .ic { color: var(--brand-ink); }
.choices input:focus-visible + span, .segmented input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.field { margin-bottom: 22px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
input[type="text"], select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
select { height: 47px; appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type="text"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgb(99 102 241 / .18); }
.hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.field-error { margin-top: 8px; font-size: 13px; font-weight: 550; color: #dc2626; }
html[data-theme="dark"] .field-error { color: #f87171; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.segmented span { display: block; text-align: center; padding: 9px 6px; border-radius: 8px; font-size: 14px; font-weight: 550; color: var(--muted); transition: background-color .15s, color .15s; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .segmented input:checked + span { background: var(--line-strong); }
.contact-block { margin: 4px 0 24px; padding-top: 24px; border-top: 1px dashed var(--line-strong); }
html:not(.has-endpoint) .needs-endpoint { display: none; }
.block-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
input[type="email"], input[type="tel"] { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
input[type="email"]:focus, input[type="tel"]:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgb(99 102 241 / .18); }
.contact-block .field-row .field { margin-bottom: 8px; }
.hint-tight { margin: 0 0 22px; }
.legend-opt { font-weight: 400; color: var(--muted); }
.is-invalid { border-color: #dc2626 !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; min-width: 56px; padding: 9px 12px; text-align: center; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--ink-2); background: var(--bg); transition: border-color .15s, background-color .15s, color .15s; }
.chips label:hover span { border-color: var(--brand-2); }
.chips input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.chips input:focus-visible + span, .consent input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.seg-4 { grid-template-columns: repeat(4, 1fr); }
.segmented small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 12px; text-align: center; }
.result-text { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.result-title { display: flex; align-items: center; gap: 8px; font-weight: 650; margin-bottom: 12px; }
.result-title .ic { color: #10b981; stroke-width: 2.4; }
.result pre { margin: 0 0 16px; padding: 16px; max-height: 280px; overflow: auto; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font: 13px/1.65 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status { margin-top: 12px; font-size: 13.5px; color: var(--muted); min-height: 1em; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq h2 { margin-bottom: 14px; }
.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 15.5px; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex-shrink: 0; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details p { padding: 0 20px 18px; font-size: 15px; color: var(--muted); }

/* CTA final */
.cta-band { padding: 0 0 104px; }
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px 56px; border-radius: 24px; background: linear-gradient(120deg, #312e81 0%, #4f46e5 50%, #0e7490 100%); color: #fff; box-shadow: var(--shadow-lg); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 85% 0%, rgb(255 255 255 / .2), transparent 70%), linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px) 0 0 / 32px 32px; pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); max-width: 620px; margin-bottom: 10px; }
.cta p { color: rgb(255 255 255 / .82); font-size: 17px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 260px; }
.footer-title { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; }
.footer ul a { font-size: 14.5px; color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: var(--brand-ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* 404 */
.notfound { min-height: calc(100vh - 68px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code { font: 800 clamp(80px, 14vw, 140px)/1 var(--font-display); letter-spacing: -.05em; margin-bottom: 8px; }
.notfound p { color: var(--muted); font-size: 17px; margin: 14px auto 28px; max-width: 440px; }

/* ---------- Animações ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  html.js .reveal.in { opacity: 1; transform: none; }
  /* Topo: animação só em CSS, sem depender do JS, para aparecer imediatamente. */
  html.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: fadeUp .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy .reveal:nth-child(2) { animation-delay: .05s; }
  .hero-copy .reveal:nth-child(3) { animation-delay: .1s; }
  .hero-copy .reveal:nth-child(4) { animation-delay: .15s; }
  .hero-copy .reveal:nth-child(5) { animation-delay: .2s; }
  .hero-visual.reveal { animation-delay: .15s; }
  .flow-line i { animation: flowPulse 2.4s ease-in-out infinite; }
  .flow-line:nth-of-type(4) i { animation-delay: .6s; }
  .flow-line:nth-of-type(6) i { animation-delay: 1.2s; }
  .bars i { animation: grow 1.2s cubic-bezier(.2,.7,.2,1) both; }
  .bars i:nth-child(2) { animation-delay: .08s; } .bars i:nth-child(3) { animation-delay: .16s; } .bars i:nth-child(4) { animation-delay: .24s; }
  .bars i:nth-child(5) { animation-delay: .32s; } .bars i:nth-child(6) { animation-delay: .4s; } .bars i:nth-child(7) { animation-delay: .48s; }
  .fc-chart { animation: float 6s ease-in-out infinite; }
  .fc-api { animation: float 7s ease-in-out infinite reverse; }
  .pill-dot { animation: ping 2.4s ease-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flowPulse { 0% { top: -100%; } 60%, 100% { top: 100%; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(16 185 129 / .45); } 70%, 100% { box-shadow: 0 0 0 8px rgb(16 185 129 / 0); } }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links > a:not(.btn) { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 960px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; margin: 0; padding: 16px 24px 24px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgb(16 24 64 / .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links > a:not(.btn) { padding: 12px 8px; font-size: 16px; border-radius: 8px; }
  .nav-mobile-cta { display: inline-flex !important; margin-top: 10px; height: 48px; }
  .nav-tools { margin-left: auto; }
  .nav-cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .capabilities { justify-content: center; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: 1fr; }
  .why, .planner, .faq { grid-template-columns: 1fr; gap: 40px; }
  .planner-copy { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .cta-band { padding-bottom: 72px; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-top: 44px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding: 26px 0 36px; }
  .fc-chart { right: -4px; top: -2px; width: 140px; padding: 10px 12px; }
  .bars { height: 38px; }
  .fc-api { left: -4px; bottom: 0; padding: 10px 12px; }
  .flow { padding: 16px; }
  .flow-node { padding: 12px; gap: 12px; }
  .flow-node em { display: none; }
  .flow-line { margin-left: 29px; }
  .visual-note { display: none; }
  .capabilities { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .capabilities li { font-size: 13.5px; }
  .service-grid, .why-grid, .project-grid, .steps { grid-template-columns: 1fr; }
  .service-wide { flex-direction: column; align-items: flex-start; }
  .pain { grid-template-columns: 1fr; gap: 10px; }
  .pain-arrow { transform: rotate(90deg); margin-left: 6px; }
  .filter-row { margin-top: -12px; }
  .filter { padding: 8px 12px; font-size: 13.5px; }
  .form { padding: 20px; }
  .choices { grid-template-columns: repeat(2, 1fr); }
  .choices span { flex-direction: row; justify-content: flex-start; padding: 12px; text-align: left; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .result-actions .btn { flex: 1 1 auto; }
  .cta { padding: 32px 24px; }
  .cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 380px) {
  .brand { font-size: 17px; }
  h1 { font-size: 36px; }
  .fc-chart { display: none; }
}
html.has-endpoint .no-endpoint { display: none; }
