/* Máquina de Sistemas — layout 2026 */
/* Fontes no próprio site (sem Google Fonts: menos conexões no 3G). Licença OFL em /fonts. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/sora-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/sora-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/figtree-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --ink: #071338;
    --ink-2: #0E1F52;
    --cobalt: #2F45F5;
    --cobalt-d: #2233C9;
    --steel: #1E5A8C;
    --amber: #FFBE58;
    --paper: #F3F6FC;
    --line: #D9E0EF;
    --text: #0D1B3E;
    --muted: #55627F;
    --on-ink: #E8EDFB;
    --on-ink-muted: #9AA8CF;
    --display: "Sora", "Segoe UI", sans-serif;
    --body: "Figtree", "Segoe UI", system-ui, sans-serif;
    --wrap: min(1180px, 100% - 48px);
    --r-sm: 6px;
    --r-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    font: 400 1.0625rem/1.6 var(--body);
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr-only, .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

/* Botões */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
    font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-d); }
.btn-ghost { border-color: rgba(232,237,251,.35); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--on-ink); }

/* Topo */
.topbar {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.topbar.is-solid, .page-inner .topbar {
    background: rgba(7,19,56,.88);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 52px; width: auto; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
    display: block; padding: 10px 14px; border-radius: 999px;
    color: var(--on-ink); text-decoration: none; font-weight: 500;
    transition: background-color .2s;
}
.nav a:hover { background: rgba(255,255,255,.08); }
.nav .nav-cta { background: var(--cobalt); color: #fff; margin-left: 8px; padding-inline: 20px; }
.nav .nav-cta:hover { background: var(--cobalt-d); }
.nav-toggle { display: none; background: none; border: 0; color: var(--on-ink); padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: min(100vh, 900px);
    display: flex; align-items: center;
    background:
        radial-gradient(1000px 600px at 85% 30%, rgba(47,69,245,.35), transparent 60%),
        radial-gradient(700px 500px at 10% 100%, rgba(30,90,140,.4), transparent 60%),
        var(--ink);
    color: var(--on-ink);
    padding: 140px 0 100px;
}
.hero-mesh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
@media (min-width: 701px) {
    /* malha some suavemente atrás do texto */
    .hero-mesh { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.15) 20%, #000 60%); mask-image: linear-gradient(90deg, rgba(0,0,0,.15) 20%, #000 60%); }
}
.hero-copy { max-width: 900px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
    padding: 8px 16px 8px 12px; border-radius: 999px;
    background: rgba(255,190,88,.12); border: 1px solid rgba(255,190,88,.35); color: var(--on-ink); font-size: .95rem;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,190,88,.2); }
.hero-badge strong { color: var(--amber); font-family: var(--display); }
.js .hero-badge { opacity: 0; animation: fadeIn .7s ease forwards; }
.hero-title {
    font-size: clamp(2.1rem, 1.1rem + 3.6vw, 4.4rem);
    font-weight: 700; letter-spacing: -0.025em; line-height: 1.04;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: inline-block; }
.hero-lead { margin-top: 28px; max-width: 54ch; font-size: 1.2rem; color: var(--on-ink-muted); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
    position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
    width: 26px; height: 42px; border: 2px solid rgba(232,237,251,.4); border-radius: 14px;
}
.hero-scroll::after {
    content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
    border-radius: 2px; background: var(--amber); animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Sequência de entrada do hero (único momento orquestrado) */
.js .hero-title .ln > span { transform: translateY(105%); animation: lineUp .9s cubic-bezier(.2,.8,.2,1) forwards; }
.js .hero-title .ln:nth-child(2) > span { animation-delay: .12s; }
.js .hero-title .ln:nth-child(3) > span { animation-delay: .24s; }
.js .hero-lead, .js .hero-actions { opacity: 0; animation: fadeIn .8s .55s ease forwards; }
.js .hero-actions { animation-delay: .7s; }
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Clientes */
.clients {
    position: relative; padding: clamp(72px, 9vw, 120px) 0; overflow: hidden;
    background:
        radial-gradient(800px 300px at 50% 0%, rgba(47,69,245,.08), transparent 70%),
        var(--paper);
}
.clients-head { text-align: center; max-width: 760px; margin-bottom: 44px; }
.clients-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); }
.clients-head p { margin-top: 16px; color: var(--muted); font-size: 1.15rem; }
.clients-head strong { color: var(--cobalt); font: 700 1.3em/1 var(--display); }
.marquee {
    display: flex; overflow: hidden; padding: 10px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee + .marquee { margin-top: 10px; }
.marquee-track {
    display: flex; gap: 18px; list-style: none; margin: 0; padding: 0 9px; flex-shrink: 0;
    animation: marquee 70s linear infinite;
}
.marquee.is-reverse .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.client {
    display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: center;
    padding: 14px 22px 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
    white-space: nowrap; box-shadow: 0 10px 24px -20px rgba(7,19,56,.5);
    transition: border-color .25s, transform .25s;
}
.client:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.client img { grid-row: span 2; height: 56px; width: auto; max-width: 136px; object-fit: contain; }
.client-name { font-weight: 600; color: var(--ink); align-self: end; }
.client-name small { margin-left: 6px; color: var(--muted); font-weight: 500; font-size: .85rem; }
.client-sys { display: flex; gap: 6px; align-self: start; margin-top: 4px; }
.client-sys em { font-style: normal; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.sys-health { background: #E2F0FA; color: #0B5E9A; }
.sys-social { background: #E6E6F3; color: #141446; }

/* Seções */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.15rem; max-width: 60ch; }

/* O que desenvolvemos: abas com mockup */
.sol { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.sol-tabs { display: grid; gap: 10px; align-content: start; }
.sol-tab {
    display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
    padding: 18px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
    font: inherit; color: var(--text); cursor: pointer;
    transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.sol-tab:hover { border-color: #AFBCE0; }
.sol-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 20px 40px -24px rgba(7,19,56,.7); }
.sol-tab strong { display: block; font: 600 1.05rem/1.3 var(--display); }
.sol-tab small { display: block; margin-top: 4px; color: var(--muted); font-size: .92rem; }
.sol-tab[aria-selected="true"] small { color: var(--on-ink-muted); }
.sol-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--cobalt); color: #fff; transition: background-color .25s; }
.sol-tab[aria-selected="true"] .sol-ic { background: rgba(255,255,255,.12); }
.sol-ic svg { width: 24px; height: 24px; }
.sol-panels {
    position: relative; border-radius: 24px; overflow: hidden; min-height: 400px;
    background: radial-gradient(600px 400px at 100% 0%, rgba(47,69,245,.35), transparent 60%), var(--ink);
    color: var(--on-ink);
}
.sol-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(28px, 4vw, 48px); height: 100%; }
.sol-panel[hidden] { display: none; }
.sol-panel.is-entering .sol-copy { animation: fadeIn .45s ease; }
.sol-panel.is-entering .mock { animation: mockIn .6s cubic-bezier(.2,.8,.2,1); }
@keyframes mockIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.sol-copy h3 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem); }
.sol-copy p { margin-top: 14px; color: var(--on-ink-muted); }
.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
    background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Mockups em CSS (leves, sem imagem) */
.mock { justify-self: center; width: 100%; max-width: 380px; }
.mock-web, .mock-desk { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #E9EDF7; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C5CDE3; }
.mock-bar span { flex: 1; height: 14px; margin-left: 10px; border-radius: 7px; background: #fff; }
.mock-body { display: flex; height: 220px; }
.mock-side { width: 26%; background: var(--ink-2); padding: 14px 10px; display: grid; gap: 10px; align-content: start; }
.mock-side b { height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); }
.mock-side b:first-child { background: var(--amber); width: 70%; }
.mock-main { flex: 1; padding: 14px; display: grid; gap: 14px; grid-template-rows: auto 1fr; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis b { height: 38px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 8px; background: var(--paper); }
.mock-chart s { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--cobalt), #7E8CFF); transform-origin: bottom; }
.sol-panel.is-entering .mock-chart s { animation: barUp .8s cubic-bezier(.2,.8,.2,1) backwards; }
.mock-chart s:nth-child(2) { animation-delay: .05s; } .mock-chart s:nth-child(3) { animation-delay: .1s; }
.mock-chart s:nth-child(4) { animation-delay: .15s; } .mock-chart s:nth-child(5) { animation-delay: .2s; }
.mock-chart s:nth-child(6) { animation-delay: .25s; } .mock-chart s:nth-child(7) { animation-delay: .3s; }
@keyframes barUp { from { transform: scaleY(0); } }
.phone { width: 180px; height: 330px; margin-inline: auto; border-radius: 30px; border: 8px solid #0B1A4A; background: #fff; padding: 22px 12px; display: grid; gap: 10px; align-content: start; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); position: relative; }
.phone-notch { position: absolute; top: 6px; left: 50%; translate: -50% 0; width: 54px; height: 8px; border-radius: 4px; background: #0B1A4A; }
.phone-search { height: 30px; border-radius: 15px; background: var(--paper); border: 1.5px solid var(--cobalt); }
.phone-row { height: 46px; border-radius: 10px; background: var(--paper); position: relative; }
.phone-row::before { content: ""; position: absolute; left: 10px; top: 12px; width: 22px; height: 22px; border-radius: 6px; background: var(--amber); }
.phone-row::after { content: ""; position: absolute; left: 42px; right: 14px; top: 19px; height: 8px; border-radius: 4px; background: #C9D2EA; }
.sol-panel.is-entering .phone-row { animation: fadeIn .5s ease backwards; }
.phone-row:nth-of-type(4) { animation-delay: .08s; } .phone-row:nth-of-type(5) { animation-delay: .16s; } .phone-row:nth-of-type(6) { animation-delay: .24s; }
.desk-body { padding: 18px; display: grid; gap: 14px; background: #0B1A4A; }
.desk-line { display: flex; align-items: center; gap: 10px; }
.desk-line em { flex: none; width: 18px; height: 22px; border-radius: 3px; background: #DDE3F5; }
.desk-line span { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.desk-line span::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #48BDAE, #7FE0C9); transform-origin: left; }
.sol-panel.is-entering .desk-line span::after { animation: grow 1.2s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes grow { from { transform: scaleX(0); } }

/* Nossos sistemas */
.flagships { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.flag {
    display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
    border: 1px solid var(--line); border-top: 5px solid var(--brand);
    transition: box-shadow .3s, transform .3s;
}
.flag:hover { box-shadow: 0 24px 50px -30px rgba(7,19,56,.45); transform: translateY(-3px); }
.flag-logo { height: 150px; display: grid; place-items: center; background: linear-gradient(180deg, var(--paper), #fff); padding: 24px; }
.flag-logo img { max-height: 90px; width: auto; }
.flag-copy { padding: 8px clamp(24px, 3vw, 36px) 32px; display: flex; flex-direction: column; flex: 1; }
.flag-area { font-weight: 600; color: var(--brand); }
.flag-copy > p:not(.flag-area) { margin-top: 8px; font: 600 1.25rem/1.35 var(--display); color: var(--ink); }
.flag .checks { margin-bottom: 24px; color: var(--text); }
.flag .checks li::before { background-color: var(--brand); }
.flag-link {
    margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
    transition: filter .2s;
}
.flag-link:hover { filter: brightness(1.15); }
.flag-link svg, .tool svg { width: 16px; height: 16px; flex: none; transition: transform .25s; }
.flag-link:hover svg, .tool:hover svg { transform: translate(3px, -3px); }
.tools-title { font-size: 1.25rem; margin: 56px 0 18px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tool {
    display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 16px;
    background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--muted);
    transition: border-color .25s;
}
.tool:hover { border-color: var(--cobalt); }
.tool img { width: 130px; height: 52px; object-fit: contain; object-position: left center; flex: none; }
.tool span { flex: 1; }
.tool strong { display: block; color: var(--ink); font-size: 1.05rem; }
.tool svg { color: var(--cobalt); }

/* Como contratar (sequência real) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: step; }
.steps::before {
    content: ""; position: absolute; left: 28px; right: calc(25% - 7px); top: 27px; height: 2px;
    background: linear-gradient(90deg, var(--cobalt), var(--steel));
    transform-origin: left; transform: scaleX(1);
}
.js .steps::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.js .steps.is-in::before { transform: scaleX(1); }
.step { position: relative; counter-increment: step; }
.step::before {
    content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: #fff; border: 2px solid var(--cobalt); color: var(--cobalt);
    font: 700 1.2rem/1 var(--display); position: relative;
}
.step h3 { font-size: 1.2rem; margin-top: 22px; }
.step p { color: var(--muted); margin-top: 10px; }

/* Sobre */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-img { border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -36px rgba(7,19,56,.45); }
.about-copy h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); }
.about-copy p { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.about-sign { margin-top: 28px; font: 600 1.1rem/1.3 var(--display); color: var(--ink); }
.about-sign span { display: block; font: 500 .95rem/1.4 var(--body); color: var(--steel); margin-top: 6px; }

/* Contato */
.contact { background: var(--ink); color: var(--on-ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); }
.contact h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); }
.contact-lead { margin-top: 18px; color: var(--on-ink-muted); max-width: 46ch; font-size: 1.1rem; }
.contact-ways { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-ways a, .contact-ways div {
    display: flex; align-items: center; gap: 14px; text-decoration: none;
    padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(232,237,251,.15);
    transition: border-color .2s, background-color .2s;
}
.contact-ways a:hover { border-color: var(--amber); background: rgba(255,255,255,.04); }
.contact-ways svg { flex: none; width: 24px; height: 24px; color: #fff; }
.contact-ways strong { display: block; }
.contact-ways small { color: var(--on-ink-muted); font-size: .9rem; }
.form { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
    width: 100%; font: inherit; color: var(--text);
    padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
    transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 3px rgba(47,69,245,.18); }
.field .text-danger, .field-validation-error { color: #C0262D; font-size: .88rem; }
.input-validation-error { border-color: #C0262D !important; }
.form .btn { justify-self: start; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.counter { margin-left: auto; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.is-near { color: #9B1C22; font-weight: 600; }
.btn-send { position: relative; }
.btn-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-send.is-loading .btn-spinner { display: inline-block; }
.btn[disabled] { cursor: progress; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status[hidden] { display: none; }
.form-status:focus { outline: none; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.form-status.ok { background: #E4F7EE; color: #11603A; }
.form-status.err { background: #FDECEC; color: #9B1C22; }

/* WhatsApp flutuante */
.wa {
    position: fixed; right: 22px; bottom: 22px; z-index: 40;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: #1FAF55; color: #fff; text-decoration: none;
    box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
    transition: transform .2s;
}
.wa:hover { transform: scale(1.06); }

.wa svg { width: 30px; height: 30px; }

/* Textos justificados */
.section-head p, .clients-head p, .hero-lead, .sol-copy p, .about-copy p, .contact-lead,
.step p, .flag-copy p, .tool span, .footer-about, .legal p, .legal li {
    text-align: justify; -webkit-hyphens: auto; hyphens: auto;
}
.clients-head p { text-align: center; -webkit-hyphens: manual; hyphens: manual; }

/* Página de política (sem Bootstrap) */
.legal { background: linear-gradient(160deg, #fff, #E4ECFF); padding: 48px 0 96px; }
.legal .container { width: var(--wrap); margin-inline: auto; }
.legal .row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.legal .col-lg-3 { position: sticky; top: 96px; }
.legal .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.legal .card-body { padding: clamp(20px, 3vw, 36px); }
.legal .card-title { font: 600 1rem/1.3 var(--body); margin: 0 0 12px; }
.legal .toc { display: grid; }
.legal .toc a { padding: 8px 0; color: var(--steel); text-decoration: none; border-bottom: 1px solid var(--paper); }
.legal .toc a:hover { color: var(--cobalt); }
.legal h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.legal h2 { font-size: 1.3rem; margin-bottom: 10px; }
.legal .policy-section { padding: 22px 0; border-top: 1px solid var(--paper); }
.legal .text-muted { color: var(--muted); margin-top: 10px; }
.legal ul { padding-left: 20px; } .legal li + li { margin-top: 8px; }
.legal .card .card { background: var(--paper); margin-top: 12px; }
.text-danger { color: #9B1C22; }

/* Páginas de solução */
.page-hero {
    padding: 72px 0 64px; color: var(--on-ink);
    background: radial-gradient(800px 400px at 90% 0%, rgba(47,69,245,.35), transparent 60%), var(--ink);
}
.page-hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); max-width: 20ch; margin-top: 18px; }
.page-lead { margin-top: 20px; max-width: 62ch; font-size: 1.15rem; color: var(--on-ink-muted); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.page-hero .hero-actions { margin-top: 32px; }
.page-hero .btn-ghost svg { width: 18px; height: 18px; }
.crumbs { font-size: .92rem; color: var(--on-ink-muted); }
.crumbs a { color: var(--on-ink); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.page-sec + .page-sec { margin-top: 48px; }
.page-sec h2 { font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem); }
.page-sec p { margin-top: 14px; color: var(--muted); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.page-sec .checks li::before { background-color: var(--cobalt); }
.faq { margin-top: 18px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s; }
.faq details[open] { border-color: var(--cobalt); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 18px 18px; }
.page-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-card { background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: 26px; }
.aside-card h2, .aside-list h2 { font-size: 1.15rem; }
.aside-card p { margin: 10px 0 18px; color: var(--on-ink-muted); }
.aside-list { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: #fff; }
.aside-list ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.aside-list a { display: block; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; text-decoration: none; transition: background-color .2s; }
.aside-list a:hover { background: var(--paper); }
.aside-list strong { display: block; color: var(--ink); }
.aside-list span { color: var(--muted); font-size: .92rem; }
.sol-also { margin-top: 28px; text-align: center; color: var(--muted); }
.sol-also a { color: var(--cobalt); font-weight: 600; }
.soon { display: inline-block; margin-top: 6px; font-style: normal; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #FFF2DB; color: #8A5300; }
.sol-tab[aria-selected="true"] .soon { background: rgba(255,190,88,.18); color: var(--amber); }
.soon-tag { display: inline-block; margin: 0 0 12px !important; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255,190,88,.18); color: var(--amber) !important; }
.mock-fin svg { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.sol-panel.is-entering .mock-fin .trend { stroke-dasharray: 400; animation: draw 1.2s cubic-bezier(.2,.8,.2,1) both; }
.sol-panel.is-entering .mock-fin .candles rect { transform-box: fill-box; transform-origin: center; animation: barUp .6s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.mock-mkt { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.serp { padding: 16px; display: grid; gap: 12px; }
.serp-item { display: grid; gap: 6px; padding: 10px 12px; border-radius: 8px; background: var(--paper); }
.serp-item.is-top { background: #EEF1FF; border: 1.5px solid var(--cobalt); }
.serp-item b { height: 9px; width: 55%; border-radius: 4px; background: var(--cobalt); }
.serp-item s { height: 7px; border-radius: 4px; background: #C9D2EA; }
.serp-item s + s { width: 70%; }
.serp-chart { width: 100%; height: 60px; }
.sol-panel.is-entering .serp-chart path { stroke-dasharray: 260; animation: draw 1.2s .2s cubic-bezier(.2,.8,.2,1) both; }
.page-link { margin-top: 18px; }
.sol-more { display: inline-flex; margin-top: 22px; color: #fff; font-weight: 600; }
.sol-more:hover { color: var(--amber); }
.flag-more { margin-top: 28px; text-align: center; }
.flag-more a { color: var(--cobalt); font-weight: 600; }
@media (max-width: 980px) {
    .page-grid { grid-template-columns: 1fr; }
    .page-aside { position: static; }
}

/* Voltar ao topo */
.to-top {
    position: fixed; right: 26px; bottom: 96px; z-index: 40;
    width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
    background: rgba(7,19,56,.85); color: #fff; display: grid; place-items: center; cursor: pointer;
    backdrop-filter: blur(8px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5);
    opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none;
    transition: opacity .25s, transform .25s, background-color .2s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--cobalt); }
.to-top svg { width: 20px; height: 20px; }

/* Rodapé */
.footer { background: #050E2B; color: var(--on-ink-muted); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer img { height: 60px; width: auto; }
.footer-about { margin-top: 18px; max-width: 34ch; }
.footer h3 { font: 600 1rem/1.3 var(--body); color: var(--on-ink); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-ink); text-decoration: underline; }
.footer-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(232,237,251,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .92rem; }

/* Páginas internas */
.page-inner main { padding-top: 76px; }

/* Revelar ao rolar (somente com JS) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: .08s; }
.js [data-reveal][data-delay="2"] { transition-delay: .16s; }
.js [data-reveal][data-delay="3"] { transition-delay: .24s; }

/* Responsivo */
@media (max-width: 980px) {
    .sol { grid-template-columns: 1fr; }
    .sol-tabs { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
    .sol-tab small { display: none; }
    .flagships, .tools { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .steps::before { display: none; }
    .legal .row { grid-template-columns: 1fr; }
    .legal .col-lg-3 { position: static; }
    .about, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: 76px 0 auto 0; background: var(--ink);
        padding: 12px 24px 28px; border-top: 1px solid rgba(255,255,255,.08);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .nav.is-open { opacity: 1; transform: none; visibility: visible; }
    .nav ul { flex-direction: column; align-items: stretch; }
    .nav a { padding: 14px 8px; border-radius: 8px; }
    .nav .nav-cta { margin: 10px 0 0; text-align: center; }
}
@media (max-width: 600px) {
    .brand img { height: 44px; }
    .steps, .footer-grid { grid-template-columns: 1fr; }
    .sol-tabs { grid-template-columns: 1fr; }
    .sol-tab { padding: 14px; }
    .sol-panel { grid-template-columns: 1fr; }
    .mock { max-width: 300px; }
    .tool { flex-wrap: wrap; }
    .form { grid-template-columns: 1fr; }
    .hero { padding-top: 120px; }
    .hero-scroll { display: none; }
}

@media (max-width: 600px) {
    /* Celular: selo e botões do topo centralizados */
    .hero-badge { display: flex; width: fit-content; margin-inline: auto; }
    .hero-actions { justify-content: center; }
    /* Celular: rodapé e passos centralizados */
    .footer-grid { text-align: center; gap: 32px; }
    .footer img { margin-inline: auto; }
    .footer-about { margin-inline: auto; text-align: center; }
    .footer-base { flex-direction: column; align-items: center; text-align: center; }
    #como-contratar .section-head, #como-contratar .section-head p { text-align: center; }
    .steps { text-align: center; }
    .step::before { margin-inline: auto; }
    .step p { text-align: center; max-width: 34ch; margin-inline: auto; }
    .to-top { right: 22px; bottom: 90px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
    .marquee-track[aria-hidden="true"] { display: none; }
    .marquee + .marquee { margin-top: 18px; }
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .js .hero-title .ln > span { transform: none; }
    .js .hero-lead, .js .hero-actions, .js .hero-badge { opacity: 1; }
}
