*, *::before, *::after { box-sizing: border-box; }

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ink: #0b1220;
  --ink-2: #1f2a3d;
  --text: #1d2939;
  --muted: #667085;
  --soft: #98a2b3;
  --line: #e6e9f0;
  --line-2: #eef1f6;
  --bg: #f3f5fa;
  --card: #ffffff;

  --brand: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1d4ed8;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;

  --blue: #2563eb;
  --blue-50: #eff6ff;
  --amber: #b45309;
  --amber-50: #fffbeb;
  --red: #b91c1c;
  --red-50: #fef2f2;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 24px 60px -12px rgba(16, 24, 40, .18);

  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; background: var(--line-2); padding: 1px 5px; border-radius: 5px; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Marca ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.3px; text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}
.logo-mark .icon { width: 18px; height: 18px; }

/* ---------- Botões ---------- */
.btn {
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 10px 16px; cursor: pointer; font-weight: 650; font-size: 14px; line-height: 1.2;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn:focus-visible, .nav-item:focus-visible, .auth-button:focus-visible, .icon-btn:focus-visible { outline: 3px solid rgba(37,99,235, .35); outline-offset: 2px; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm), inset 0 -1px 0 rgba(0,0,0,.1); }
.btn.primary:hover { background: var(--brand-600); }
.btn.secondary { background: #fff; color: var(--ink-2); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { background: #f9fafb; border-color: #d0d5dd; }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-2); }
.btn.danger { background: #fff; color: var(--red); border-color: #fecdca; }
.btn.danger:hover { background: var(--red-50); }
.btn.lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn.sm { padding: 7px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }

/* =========================================================
   LANDING
   ========================================================= */
.landing { background: #fff; color: var(--text); }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }

.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.site-nav .logo { color: var(--ink); }
.site-links { display: flex; gap: 26px; margin-left: 12px; }
.site-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 550; }
.site-links a:hover { color: var(--ink); }
.site-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.hero { position: relative; overflow: hidden; padding: 72px 0 90px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 900px; z-index: 0;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(59,130,246,.14), transparent 70%),
    radial-gradient(500px 300px at 85% 20%, rgba(37,99,235,.10), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); font-weight: 550; box-shadow: var(--shadow-sm); }
.pill b { background: var(--brand-50); color: var(--brand-700); padding: 3px 8px; border-radius: 999px; font-size: 11.5px; letter-spacing: .2px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.03; letter-spacing: -1.8px; margin: 22px 0 18px; color: var(--ink); font-weight: 800; }
.hero h1 .hl { background: linear-gradient(90deg, #1d4ed8, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18.5px; line-height: 1.6; color: #475467; max-width: 540px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 13.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { width: 16px; height: 16px; color: var(--brand); }

/* Mockup */
.mock { position: relative; min-height: 470px; }
.mock-window { position: absolute; inset: 0 40px 40px 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { height: 38px; background: #f9fafb; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4e7ec; display: block; }
.mock-body { padding: 20px; display: grid; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mock-kpi small { color: var(--muted); font-size: 11px; display: block; }
.mock-kpi strong { font-size: 22px; letter-spacing: -.5px; color: var(--ink); }
.mock-kpi em { font-style: normal; font-size: 11px; color: var(--brand-700); font-weight: 650; }
.mock-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.mock-row .t { font-weight: 650; font-size: 13.5px; color: var(--ink); }
.mock-row .s { font-size: 12px; color: var(--muted); }
.mock-row .badge { margin-left: auto; }

.phone { position: absolute; right: 0; bottom: 0; width: 250px; background: #0b1220; border-radius: 32px; padding: 10px; box-shadow: var(--shadow-lg); }
.phone-screen { border-radius: 24px; overflow: hidden; background: #e7ddd3; }
.phone-head { background: #075e54; color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; }
.phone-head .av { width: 28px; height: 28px; border-radius: 50%; background: #10b981; display: grid; place-items: center; }
.phone-head .av .icon { width: 15px; height: 15px; }
.phone-head small { display: block; font-weight: 400; opacity: .8; font-size: 10.5px; }
.chat { padding: 14px 12px 18px; display: grid; gap: 8px; min-height: 200px; }
.bubble { background: #fff; border-radius: 10px 10px 10px 2px; padding: 9px 11px 6px; font-size: 12.5px; line-height: 1.45; color: #111b21; max-width: 92%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble.me { background: #d9fdd3; justify-self: end; border-radius: 10px 10px 2px 10px; }
.bubble time { display: block; text-align: right; font-size: 10px; color: #667781; margin-top: 2px; }

.audience { padding: 28px 0 8px; }
.audience .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-weight: 550; font-size: 14px; }
.chip .icon { width: 16px; height: 16px; color: var(--brand); }

.section { padding: 96px 0; }
.section.alt { background: var(--bg); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 750; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brand-700); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -1px; line-height: 1.1; margin: 0 0 14px; color: var(--ink); }
.section-head p { font-size: 17px; line-height: 1.6; color: #475467; margin: 0; }

/* Calculadora */
.calc { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.calc-inputs { padding: 36px; display: grid; gap: 22px; }
.range-field label { display: flex; justify-content: space-between; font-weight: 650; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.range-field output { color: var(--brand-700); font-variant-numeric: tabular-nums; }
.range-field input[type=range] { width: 100%; accent-color: var(--brand); }
.calc-result { background: var(--ink); color: #fff; padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 6px; position: relative; overflow: hidden; }
.calc-result::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.35), transparent 70%); }
.calc-result > * { position: relative; z-index: 1; }
.calc-result small { color: #98a2b3; font-size: 14px; }
.calc-result .big { font-size: clamp(34px, 4.5vw, 50px); font-weight: 800; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.calc-result .big.red { color: #fda29b; }
.calc-result .big.green { color: #6ee7b7; }
.calc-result p { color: #98a2b3; font-size: 13px; line-height: 1.6; margin: 0; }

/* Recursos */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); margin-bottom: 18px; }
.feature-ic .icon { width: 21px; height: 21px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); letter-spacing: -.2px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.soon { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .5px; padding: 3px 7px; border-radius: 6px; background: var(--blue-50); color: var(--blue); margin-left: 6px; vertical-align: 2px; }

/* Passos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: 14px; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* Preços */
.billing-toggle { display: inline-flex; padding: 4px; background: var(--line-2); border-radius: 12px; margin-top: 24px; gap: 4px; }
.billing-toggle button { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--muted); cursor: pointer; }
.billing-toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.billing-toggle .save { color: var(--brand-700); font-size: 12px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 24px 50px -20px rgba(37,99,235,.35); }
.plan-badge { position: absolute; top: -12px; left: 30px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 750; padding: 4px 10px; border-radius: 999px; letter-spacing: .3px; }
.plan h3 { margin: 0; font-size: 18px; color: var(--ink); }
.plan .plan-desc { color: var(--muted); font-size: 14px; margin: 6px 0 22px; min-height: 42px; line-height: 1.5; }
.price { display: flex; align-items: baseline; gap: 4px; color: var(--ink); }
.price .cur { font-size: 18px; font-weight: 700; }
.price .val { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 14px; }
.price-note { color: var(--muted); font-size: 12.5px; min-height: 18px; margin: 4px 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; font-size: 14.5px; color: #344054; }
.plan li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.plan li .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 1px; }
.plans-foot { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 26px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: #475467; line-height: 1.65; font-size: 15px; }

.cta-band { padding: 0 0 96px; }
.cta-box { background: var(--ink); color: #fff; border-radius: 24px; padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; left: -100px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.32), transparent 70%); }
.cta-box > * { position: relative; }
.cta-box h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.8px; }
.cta-box p { margin: 0; color: #98a2b3; font-size: 16px; }

.site-footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .logo { color: var(--ink); font-size: 17px; }

/* =========================================================
   LOGIN
   ========================================================= */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.login-brand { position: relative; overflow: hidden; padding: 48px 64px; display: flex; flex-direction: column; background: var(--ink); color: #fff; }
.login-brand::before { content: ""; position: absolute; right: -180px; bottom: -180px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.28), transparent 70%); }
.login-brand > * { position: relative; }
.login-brand .logo { color: #fff; }
.login-brand-body { margin: auto 0; }
.login-brand h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -1.2px; max-width: 520px; margin: 0 0 18px; }
.login-brand p { max-width: 470px; color: #aab4c5; font-size: 16.5px; line-height: 1.65; margin: 0; }
.login-features { display: grid; gap: 14px; margin-top: 34px; }
.login-features div { display: flex; gap: 12px; align-items: center; color: #d0d5dd; font-size: 15px; }
.login-features .icon { color: #34d399; }
.login-brand footer { color: #667085; font-size: 13px; }

.login-box { display: flex; flex-direction: column; padding: 32px; background: #fff; min-height: 100vh; }
.login-box .back { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 550; }
.login-box .back:hover { color: var(--ink); }
.login-card { width: min(400px, 100%); margin: auto; padding: 30px 0; }
.login-card h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.6px; color: var(--ink); }
.login-card .sub { color: var(--muted); font-size: 15px; margin: 0 0 30px; line-height: 1.55; }
.auth-button {
  width: 100%; padding: 12px 16px; border-radius: 11px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-weight: 650; font-size: 15px; display: flex; justify-content: center; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink-2); margin-top: 12px; box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s;
}
.auth-button:hover { background: #f9fafb; border-color: #d0d5dd; }
.auth-button.apple { background: #000; color: #fff; border-color: #000; }
.auth-button.apple:hover { background: #1d1d1f; }
.auth-button.demo { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.auth-button svg { width: 19px; height: 19px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 10px; color: var(--soft); font-size: 12px; font-weight: 600; letter-spacing: .5px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.login-legal { margin-top: 26px; color: var(--soft); font-size: 12.5px; line-height: 1.6; text-align: center; }
.login-secure { margin-top: 22px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; background: var(--bg); color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-secure .icon { color: var(--brand); margin-top: 1px; }

/* =========================================================
   APP
   ========================================================= */
.app-shell { min-height: 100vh; display: flex; background: var(--bg); }

.sidebar { width: 256px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { margin: 4px 8px 28px; color: var(--ink); font-size: 18px; }
.nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--soft); padding: 0 12px; margin: 6px 0 8px; }
.nav { display: grid; gap: 2px; }
.nav + .nav-label { margin-top: 22px; }
.nav-item { border: 0; background: transparent; color: #475467; padding: 9px 12px; text-align: left; border-radius: 9px; cursor: pointer; font-size: 14.5px; font-weight: 550; display: flex; align-items: center; gap: 11px; width: 100%; }
.nav-item .icon { color: var(--soft); }
.nav-item:hover { background: var(--line-2); color: var(--ink); }
.nav-item.active { background: var(--brand-50); color: var(--brand-700); }
.nav-item.active .icon { color: var(--brand); }

.plan-card { margin-top: auto; padding: 16px; border-radius: 12px; background: linear-gradient(160deg, #0b1220, #1f2a3d); color: #fff; }
.plan-card .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 650; }
.plan-card .tag { background: rgba(255,255,255,.12); padding: 3px 8px; border-radius: 999px; font-size: 11px; }
.plan-card p { margin: 8px 0 12px; color: #98a2b3; font-size: 12.5px; line-height: 1.5; }
.plan-card .bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 14px; }
.plan-card .bar span { display: block; height: 100%; background: #34d399; border-radius: 99px; }
.plan-card .btn { width: 100%; background: #fff; color: var(--ink); }
.plan-card .btn:hover { background: var(--brand-50); }

.sidebar-user { margin-top: 14px; border-top: 1px solid var(--line); padding: 14px 6px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 750; flex: none; }
.sidebar-user-name { font-weight: 650; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.sidebar-user-meta { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.logout-link { margin-left: auto; color: var(--soft); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; }
.logout-link:hover { background: var(--line-2); color: var(--ink); }

.main { flex: 1; min-width: 0; padding: 28px 40px 60px; }
.main-inner { max-width: 1180px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.topbar h1 { margin: 0; font-size: 26px; letter-spacing: -.6px; color: var(--ink); }
.topbar .page-sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.mobile-bar { display: none; }

.status { background: #fff; border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #344054; display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.status .dot { width: 8px; height: 8px; background: #12b76a; border-radius: 50%; box-shadow: 0 0 0 3px rgba(18,183,106,.18); }
.status.demo .dot { background: #f79009; box-shadow: 0 0 0 3px rgba(247,144,9,.18); }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.mt { margin-top: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card h3 { margin: 0 0 4px; font-size: 15.5px; color: var(--ink); letter-spacing: -.1px; }
.card .card-sub { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.card-head h3 { margin: 0; }

.kpi { display: flex; flex-direction: column; gap: 14px; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.kpi-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.kpi-ic.blue { background: var(--blue-50); color: var(--blue); }
.kpi-ic.amber { background: var(--amber-50); color: var(--amber); }
.kpi-ic.red { background: var(--red-50); color: var(--red); }
.metric { font-size: 32px; font-weight: 800; letter-spacing: -1px; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .muted { font-size: 12.5px; }
.muted { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.welcome { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(120deg, #eff6ff, #f5f3ff); border: 1px solid #dbeafe; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.welcome h2 { margin: 0 0 4px; font-size: 19px; color: var(--ink); letter-spacing: -.3px; }
.welcome p { margin: 0; color: #475467; font-size: 14px; }

.checklist { display: grid; gap: 2px; margin-top: 10px; }
.check-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; cursor: pointer; border: 0; background: transparent; text-align: left; width: 100%; }
.check-item:hover { background: var(--line-2); }
.check-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d0d5dd; display: grid; place-items: center; flex: none; color: #fff; }
.check-dot .icon { width: 13px; height: 13px; }
.check-item.done .check-dot { background: var(--brand); border-color: var(--brand); }
.check-item.done .check-title { color: var(--muted); text-decoration: line-through; }
.check-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.check-item .chev { margin-left: auto; color: var(--soft); }
.progress { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1; max-width: 340px; min-width: 200px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--soft); }
.search input { width: 100%; padding: 10px 12px 10px 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); outline: none; }

.list { display: grid; margin-top: 10px; }
.item { padding: 14px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line-2); }
.item:first-child { border-top: 0; }
.item-main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.item-title { font-weight: 650; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.date-chip { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); padding: 6px 0; line-height: 1.05; }
.date-chip b { display: block; font-size: 17px; }
.date-chip small { font-size: 10px; font-weight: 750; text-transform: uppercase; }
.item-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.item-actions { display: flex; gap: 2px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.danger:hover { background: var(--red-50); color: var(--red); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; background: var(--line-2); color: #344054; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.badge.status-done, .badge.status-sent, .badge.ok { background: #ecfdf3; color: #067647; }
.badge.status-cancelled, .badge.status-failed, .badge.bad { background: var(--red-50); color: var(--red); }
.badge.status-simulated, .badge.warn { background: var(--amber-50); color: var(--amber); }
.badge.status-pending, .badge.status-processing, .badge.info { background: var(--blue-50); color: #1d4ed8; }
.badge.status-skipped { background: var(--line-2); color: var(--muted); }

.empty { padding: 36px 20px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.empty .empty-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--line-2); color: var(--soft); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .empty-ic .icon { width: 22px; height: 22px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

.next-event { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 12px; background: var(--ink); color: #fff; margin-top: 14px; }
.next-event .date-chip { background: rgba(255,255,255,.1); color: #6ee7b7; }
.next-event .t { font-weight: 700; font-size: 15px; }
.next-event .s { color: #98a2b3; font-size: 13px; margin-top: 2px; }

.connection { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; }
.connection + .connection { border-top: 1px solid var(--line-2); }
.connection-main { display: flex; gap: 14px; align-items: center; }
.conn-logo { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; flex: none; }
.conn-logo svg { width: 22px; height: 22px; }
.connection h3 { margin: 0 0 3px; font-size: 15px; display: flex; gap: 8px; align-items: center; }

.form { display: grid; gap: 6px; max-width: 580px; }
.form label { font-size: 13px; font-weight: 650; color: #344054; margin-top: 10px; }
.form > label:first-child, .form > input[type=hidden] + label { margin-top: 0; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; box-shadow: var(--shadow-sm); outline: none; transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus, .search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.12); outline: none; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-row > div { display: grid; gap: 6px; }
.form label.check { display: flex; align-items: center; gap: 10px; font-weight: 550; font-size: 14px; color: #344054; cursor: pointer; }
.form label.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.form .actions { margin-top: 16px; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.checkrow { display: flex; gap: 8px; flex-wrap: wrap; }
.checkrow label.check { margin: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }

.toggle-list { display: grid; margin-top: 8px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-2); cursor: pointer; }
.toggle-row:first-child { border-top: 0; }
.toggle-row b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 650; }
.toggle-row .muted { font-size: 13px; }
.switch { position: relative; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: #d0d5dd; border-radius: 99px; transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(17px); }
.switch input:focus-visible + i { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }

.preview-wrap { background: #e7ddd3; border-radius: 12px; padding: 18px; margin-top: 12px; }
.preview { background: #d9fdd3; border-radius: 10px 10px 2px 10px; padding: 10px 12px; white-space: pre-wrap; font-size: 14px; line-height: 1.5; color: #111b21; max-width: 420px; margin-left: auto; box-shadow: 0 1px 1px rgba(0,0,0,.08); }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; background: var(--blue-50); color: #1e40af; font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; border: 1px solid #dbeafe; }
.notice.warn { background: var(--amber-50); color: #92400e; border-color: #fde68a; }
.notice.error { background: var(--red-50); color: var(--red); border-color: #fecdca; }
.notice .icon { margin-top: 1px; }
.error-text { color: var(--red); font-size: 12.5px; margin-top: 2px; }

.skeleton { display: grid; gap: 16px; }
.skeleton div { height: 110px; border-radius: var(--radius); background: linear-gradient(90deg, #eef1f6 0%, #f6f7fb 50%, #eef1f6 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toast */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; width: min(380px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.45; box-shadow: var(--shadow-lg); animation: toast-in .25s ease-out; }
.toast .icon { color: #34d399; margin-top: 1px; }
.toast.error .icon { color: #fda29b; }
.toast button { margin-left: auto; background: transparent; border: 0; color: #98a2b3; cursor: pointer; padding: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Plano (app) */
.current-plan { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.usage-item small { color: var(--muted); font-size: 12.5px; }
.usage-item b { display: block; font-size: 20px; color: var(--ink); margin: 2px 0 8px; }
.plans.compact { margin-top: 26px; }
.plans.compact .plan { padding: 24px; }
.plans.compact .price .val { font-size: 36px; }

.scrim { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .mock { max-width: 560px; width: 100%; margin: 0 auto; }
  .features, .plans { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-links { display: none; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .calc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 40px 28px; }

  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .app-shell.nav-open .sidebar { transform: none; }
  .app-shell.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(11,18,32,.4); z-index: 55; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
  .mobile-bar .logo { font-size: 17px; color: var(--ink); }
  .app-shell { flex-direction: column; }
  .main { padding: 22px 16px 60px; }
  .usage { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .site-cta .btn.ghost { display: none; }
  .hero { padding: 40px 0 60px; }
  .mock { min-height: 430px; }
  .mock-window { inset: 0 0 90px 0; }
  .phone { width: 220px; right: 10px; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .mock-kpi:nth-child(3) { display: none; }
  .section { padding: 64px 0; }
  .features, .plans, .grid4, .grid3, .grid2, .form-row { grid-template-columns: 1fr; }
  .calc-inputs, .calc-result { padding: 26px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .item { flex-direction: column; align-items: flex-start; }
  .item-side { justify-content: flex-start; }
  .welcome { flex-direction: column; align-items: flex-start; }
  .connection { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
