/* Páginas de serviço da W9 Sistemas */
:root { --brand: #0055A5; --deep: #003A73; --ink: #04122b; --sky: #00A8E8; --gold: #FFD700; --wa: #25D366; --wa-ink: #062b14; --text: #26405c; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.6; color: var(--text); background: #fff; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 820px; }

/* Cabeçalho */
.top { background: linear-gradient(135deg, var(--deep), var(--brand)); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.top-in { display: flex; align-items: center; gap: 1.2rem; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-weight: 900; font-size: 1.15rem; color: var(--deep); background: linear-gradient(135deg, var(--gold), #ffb300); }
.brand b { display: block; font-size: 1.1rem; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; opacity: .85; }
.top nav { display: flex; gap: 1rem; margin-left: auto; flex-wrap: wrap; }
.top nav a { color: #fff; text-decoration: none; font-size: .86rem; font-weight: 600; opacity: .9; }
.top nav a:hover, .top nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }

/* Botões */
.btn { display: inline-block; padding: .75rem 1.5rem; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; text-align: center; border: 2px solid transparent; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.wa { background: var(--wa); color: var(--wa-ink); border-color: var(--wa); }
.btn.gold { background: var(--gold); color: var(--deep); }
.btn.blue { background: var(--brand); color: #fff; }
.btn.ghost { background: rgba(255,255,255,.75); color: var(--ink); border-color: rgba(4,18,43,.35); }
.btn.big { padding: 1rem 2rem; font-size: 1.05rem; }

/* Topo da página */
.hero { background: radial-gradient(90% 120% at 10% 0%, rgba(0,168,232,.28), transparent 60%), radial-gradient(70% 90% at 100% 10%, rgba(0,85,165,.2), transparent 60%), #f8fafc; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 7vw, 5rem); }
.crumbs { font-size: .85rem; margin-bottom: 1.4rem; }
.crumbs a { color: var(--brand); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.9rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; color: var(--ink); }
.grad { background: linear-gradient(100deg, #003A73 0%, #0072c6 45%, #0055A5 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hl { position: relative; z-index: 0; background: none; color: var(--ink); -webkit-text-fill-color: var(--ink); }
.hl::before { content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; bottom: .04em; height: .42em; background: linear-gradient(100deg, #ffe27a, var(--gold)); border-radius: .2em; transform: skewX(-8deg); }
.badge { display: inline-block; margin-top: 1.2rem; padding: .35rem 1rem; border-radius: 12px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.3rem); }
.lead { max-width: 640px; margin-top: 1.2rem; font-size: 1.1rem; color: var(--text); }
.ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* Blocos */
.blk { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.blk.alt { background: #f8fafc; }
.blk h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; font-weight: 800; color: var(--deep); margin-bottom: 1.4rem; }
.blk p { max-width: 760px; margin-bottom: 1.2rem; }
.checks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.checks li { position: relative; padding: 1rem 1.1rem 1rem 2.8rem; border-radius: 14px; background: #fff; border: 1px solid #dbe7f2; box-shadow: 0 6px 24px rgba(0,85,165,.07); font-weight: 600; color: var(--ink); }
.checks li::before { content: "✓"; position: absolute; left: 1rem; top: 1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: #e3f6ea; color: #0a9b4a; font-weight: 800; font-size: .9rem; }

/* Perguntas frequentes */
details { border: 1px solid #dbe7f2; border-radius: 14px; background: #fff; margin-bottom: .8rem; }
summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 700; color: var(--ink); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 1.2rem 1.1rem; margin: 0; }

/* Chamada final */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .6rem; }
.cta-band p { opacity: .85; margin-bottom: 1.4rem; }

/* Outros serviços */
.rels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rel { display: block; padding: 1.2rem; border-radius: 14px; background: #fff; border: 1px solid #dbe7f2; border-top: 4px solid var(--sky); text-decoration: none; box-shadow: 0 6px 24px rgba(0,85,165,.07); transition: transform .2s; }
.rel:hover { transform: translateY(-3px); }
.rel strong { display: block; color: var(--brand); font-size: 1.05rem; margin-bottom: .3rem; }
.rel span { font-size: .92rem; }

/* Rodapé */
.foot { background: #02091a; color: #cbd5e1; padding: 2.5rem 0 5.5rem; font-size: .92rem; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.foot b { display: block; color: #fff; margin-bottom: .5rem; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.copy { max-width: 1120px; margin: 1.6rem auto 0; padding: 1.2rem 1.5rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; opacity: .8; }

/* Barra fixa de WhatsApp no celular */
.wa-bar { display: none; }

@media (max-width: 1240px) { .brand small { display: none; } .top nav { gap: .8rem; } .top nav a { font-size: .82rem; white-space: nowrap; } }
@media (max-width: 900px) {
    .top nav { display: none; }
    .top .btn.wa { margin-left: auto; padding: .55rem 1rem; }
    .checks, .rels, .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .wa-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid #dbe7f2; box-shadow: 0 -8px 24px rgba(0,58,115,.12); }
    .wa-bar .btn { display: block; width: 100%; }
    .foot { padding-bottom: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Sistemas: lista, filtros e páginas de cada sistema */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chip { font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; padding: .6rem 1rem; border-radius: 999px; color: var(--brand); background: #fff; border: 2px solid #cfe1f3; transition: transform .2s, background .2s; }
.chip:hover { transform: translateY(-2px); border-color: var(--sky); }
.chip[aria-pressed="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.grupo[hidden] { display: none; }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.sys { position: relative; display: block; padding: 1.2rem 1.2rem 1.3rem; border-radius: 16px; background: #fff; border: 1px solid #dbe7f2; border-top: 4px solid var(--brand); text-decoration: none; color: var(--text); box-shadow: 0 6px 24px rgba(0,85,165,.07); transition: transform .2s, box-shadow .2s; }
.sys:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,85,165,.14); }
.sys-ico { display: block; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #dbe7f2; margin-bottom: .7rem; }
.sys-ico img, .sys-hero-ico img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sys h2, .sys h3 { font-size: 1.08rem; color: var(--deep); margin: 0 0 .25rem; line-height: 1.25; }
.sys .sys-sub { display: block; font-size: .9rem; }
.sys .soon { position: absolute; top: .9rem; right: .9rem; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 99px; background: #fff4cc; color: #6b4e00; }
.sys-hero-ico { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #dbe7f2, 0 12px 28px -14px rgba(0,58,115,.45); margin-bottom: .9rem; }
.aviso { padding: .9rem 1.1rem; border-radius: 12px; background: #fff4cc; color: #4d3800; font-weight: 600; }
.more-wrap { margin-top: 1.6rem; text-align: center; }
