:root {
    --purple-950: #220a4e;
    --purple-900: #34106f;
    --purple-800: #4c1bb0;
    --purple-700: #6730d9;
    --purple-600: #7c43ee;
    --purple-500: #9564f4;
    --purple-200: #dfd1ff;
    --purple-100: #f1ebff;
    --purple-50: #f8f5ff;
    --ink: #181329;
    --muted: #625b75;
    --line: #e8e2f2;
    --white: #fff;
    --green: #18a65b;
    --shadow: 0 24px 70px rgba(47, 17, 93, .12);
    --shadow-sm: 0 12px 34px rgba(47, 17, 93, .09);
    --radius: 24px;
    --radius-sm: 14px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 999; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 20px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(80,45,128,.08); transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(42,17,82,.08); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 164px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 23px; margin-left: auto; }
.main-nav a { color: #4e4760; font-size: 14px; font-weight: 650; white-space: nowrap; transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--purple-700); }
.header-login { margin-left: 2px; }
.nav-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 25px; height: 2px; margin: 5px; background: var(--ink); border-radius: 9px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px; border: 1px solid var(--purple-700); border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--purple-700), var(--purple-500)); box-shadow: 0 10px 28px rgba(103,48,217,.22); font-weight: 750; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(103,48,217,.28); }
.button-small { min-height: 43px; padding-inline: 18px; font-size: 14px; }
.button-ghost { color: var(--purple-700); background: #fff; box-shadow: none; border-color: var(--purple-200); }
.button-white { color: var(--purple-800); background: #fff; border-color: #fff; box-shadow: 0 15px 35px rgba(28,8,67,.2); }
.text-link { color: var(--purple-700); font-weight: 750; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--purple-700); font-size: 13px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: linear-gradient(90deg,var(--purple-600),var(--purple-200)); }
.hero { position: relative; overflow: hidden; padding: 86px 0 80px; background: radial-gradient(circle at 7% 20%, rgba(149,100,244,.16), transparent 28%), radial-gradient(circle at 90% 12%, rgba(85,20,207,.12), transparent 25%), linear-gradient(180deg,#fff 0%,#fbf9ff 100%); }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -210px; bottom: -230px; border: 80px solid rgba(124,67,238,.06); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; gap: 58px; align-items: center; }
.hero h1 { margin: 0 0 22px; max-width: 720px; font-size: clamp(42px, 5vw, 69px); line-height: 1.04; letter-spacing: -.052em; }
.hero h1 span { color: transparent; background: linear-gradient(135deg, var(--purple-800), var(--purple-500)); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { max-width: 670px; margin: 0 0 30px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 27px; color: #575066; font-size: 13px; font-weight: 650; }
.hero-trust span::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; background: #e7f8ee; color: var(--green); font-weight: 900; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -18px 22px 22px -18px; z-index: -1; border-radius: 30px; background: linear-gradient(135deg, var(--purple-200), #fff); }
.hero-visual img { display: block; width: 100%; border: 1px solid rgba(92,52,153,.1); border-radius: 28px; box-shadow: var(--shadow); }
.float-card { position: absolute; left: -30px; bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 15px 18px; border: 1px solid rgba(96,47,185,.12); border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.float-card strong { display: block; font-size: 14px; }
.float-card span { color: var(--muted); font-size: 12px; }
.float-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--purple-100); color: var(--purple-700); font-weight: 900; }

.section { padding: 96px 0; }
.section-soft { background: var(--purple-50); }
.section-dark { color: #fff; background: linear-gradient(135deg, var(--purple-950), var(--purple-800)); }
.section-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-heading.left { margin-inline: 0; text-align: left; }
.section-heading h2, .page-hero h1 { margin: 0 0 17px; font-size: clamp(34px, 4vw, 50px); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p, .page-hero p { margin: 0; color: var(--muted); font-size: 18px; }
.section-dark .section-heading p { color: rgba(255,255,255,.72); }
.kicker { color: var(--purple-700); font-weight: 800; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 29px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 35px rgba(42,18,78,.04); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--purple-200); box-shadow: var(--shadow-sm); }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 16px; background: linear-gradient(135deg,var(--purple-100),#fff); color: var(--purple-700); }
.feature-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin: 0 0 10px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

.nfse-band { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
#whatsapp-integrado { background: #effbf2; }
#metas-e-sessoes .nfse-panel .fiscal-note { position: relative; color: #ffd099; }
.nfse-panel { position: relative; min-height: 430px; padding: 34px; border-radius: 30px; color: #fff; background: linear-gradient(145deg,var(--purple-900),var(--purple-600)); box-shadow: var(--shadow); overflow: hidden; }
.nfse-panel::before { content: "NFS-e"; position: absolute; right: -18px; bottom: -58px; color: rgba(255,255,255,.07); font-size: 138px; font-weight: 900; }
.nfse-check { position: relative; display: flex; gap: 15px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.nfse-check:last-child { border-bottom: 0; }
.nfse-check b { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; color: var(--purple-900); background: #fff; }
.nfse-check strong { display: block; margin-bottom: 4px; }
.nfse-check span { color: rgba(255,255,255,.72); font-size: 14px; }
.check-list { display: grid; gap: 13px; margin: 26px 0 31px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 31px; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--green); font-weight: 900; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: steps; }
.step { position: relative; padding: 32px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.step::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: 24px; color: #cbb3ff; font-size: 38px; font-weight: 850; line-height: 1; }
.step h3 { margin: 0 0 10px; font-size: 21px; }
.step p { margin: 0; color: rgba(255,255,255,.7); }

.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow-sm); }
.plan-card.featured { border: 2px solid var(--purple-600); transform: translateY(-10px); }
.plan-badge { position: absolute; top: -14px; right: 22px; padding: 6px 13px; border-radius: 999px; color: #fff; background: var(--purple-700); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.plan-card h3 { margin: 0 0 2px; font-size: 24px; }
.plan-card > p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.price { display: flex; align-items: flex-end; gap: 4px; margin-bottom: 25px; }
.price strong { color: var(--purple-700); font-size: 43px; line-height: 1; letter-spacing: -.04em; }
.price span { color: var(--muted); font-size: 13px; }
.plan-card ul { flex: 1; display: grid; gap: 11px; margin: 0 0 28px; padding: 0; list-style: none; }
.plan-card li { position: relative; padding-left: 24px; color: #4f485d; font-size: 14px; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--purple-600); font-weight: 900; }

.cta { padding: 34px 0 96px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 48px 54px; border-radius: 30px; color: #fff; background: linear-gradient(125deg,var(--purple-900),var(--purple-600)); box-shadow: var(--shadow); }
.cta-box h2 { margin: 0 0 8px; font-size: clamp(28px,4vw,42px); line-height: 1.1; }
.cta-box p { margin: 0; color: rgba(255,255,255,.75); }

.page-hero { padding: 75px 0 68px; text-align: center; background: radial-gradient(circle at 15% 0,rgba(149,100,244,.18),transparent 30%), linear-gradient(180deg,#fff,#f8f5ff); }
.page-hero .container { max-width: 870px; }
.page-hero .eyebrow { justify-content: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.content-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.content-card h2, .content-card h3 { margin-top: 0; }
.content-card p:last-child { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 34px; }
.stat { padding: 22px; border-radius: 18px; background: var(--purple-50); }
.stat strong { display: block; color: var(--purple-700); font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }

.process-list { display: grid; gap: 20px; }
.process-item { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; }
.process-number { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg,var(--purple-800),var(--purple-500)); font-weight: 850; }
.process-item h3 { margin: 0 0 6px; }
.process-item p { margin: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; }
.contact-list { display: grid; gap: 14px; margin-top: 25px; }
.contact-item { padding: 19px; border-radius: 16px; background: var(--purple-50); }
.contact-item strong { display: block; }
.contact-item span, .contact-item a { color: var(--muted); font-size: 14px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 750; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 14px 15px; color: var(--ink); background: #fff; outline: 0; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--purple-500); box-shadow: 0 0 0 4px var(--purple-100); }
.form-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }

.legal { max-width: 850px; margin: 0 auto; }
.legal h2 { margin-top: 38px; font-size: 25px; }
.legal h3 { margin-top: 26px; }
.legal p, .legal li { color: #4f485d; }
.legal a { color: var(--purple-700); text-decoration: underline; }
.legal-note { padding: 20px 22px; border-left: 4px solid var(--purple-600); border-radius: 0 14px 14px 0; background: var(--purple-50); }

.site-footer { padding: 65px 0 25px; color: rgba(255,255,255,.78); background: #17072f; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .9fr 1.25fr; gap: 45px; }
.footer-brand img { width: 155px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { max-width: 290px; }
.site-footer h2 { margin: 0 0 17px; color: #fff; font-size: 15px; }
.site-footer a, .site-footer span { display: block; margin: 9px 0; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 17px; border-radius: 999px; color: #fff; background: #18b663; box-shadow: 0 14px 35px rgba(24,182,99,.28); font-weight: 800; }
.whatsapp-float svg { width: 23px; fill: currentColor; }

@media (max-width: 1020px) {
    .header-login { display: none; }
    .main-nav { gap: 16px; }
    .feature-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
    .header-inner { min-height: 72px; }
    .brand img { width: 144px; }
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; align-items: stretch; padding: 18px 24px 26px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
    .main-nav.open { display: grid; }
    .main-nav a { padding: 9px 0; font-size: 16px; }
    .header-cta { margin-left: 0; }
    .hero { padding-top: 58px; }
    .hero-grid, .nfse-band, .split, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 650px; margin: 12px auto 0; }
    .float-card { left: 15px; }
    .plan-grid, .steps { grid-template-columns: 1fr; }
    .plan-card.featured { transform: none; }
    .cta-box { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .header-cta { display: none; }
    .hero h1 { font-size: 43px; }
    .hero-copy > p { font-size: 17px; }
    .hero-actions .button { width: 100%; }
    .feature-grid, .stats, .contact-form { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .section { padding: 72px 0; }
    .nfse-panel { min-height: auto; padding: 25px; }
    .cta-box { padding: 36px 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .whatsapp-float span { display: none; }
    .whatsapp-float { width: 54px; padding: 0; justify-content: center; }
}

.fiscal-note { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-top: 28px; }
.mei-intro { margin-bottom: 42px; }
.mei-visual img { display: block; width: 100%; height: auto; border-radius: 28px; }
