/* FastChat — estilos base. Complementa as utilitárias do Tailwind (CDN). */
:root {
  --bg: #ffffff;
  --fg: #0b1220;
  --muted-bg: #f5f7fb;
  --muted-fg: #5b6478;
  --card: #ffffff;
  --card-fg: #0b1220;
  --border: #e4e8f0;
  --primary: #2563eb;
  --primary-fg: #ffffff;
  --primary-soft: rgba(37, 99, 235, 0.08);
  --primary-ring: rgba(37, 99, 235, 0.25);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(37, 99, 235, 0.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.55rem 1rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: #1d4fd1; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-outline:hover { background: var(--muted-bg); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--muted-bg); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .icon { width: 1rem; height: 1rem; }

/* Header */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
}
.nav-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 0.5rem; }
.brand .light { font-weight: 300; color: var(--muted-fg); }
.nav-links { display: none; gap: 2rem; font-size: 0.875rem; color: var(--muted-fg); }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-actions .active { color: var(--fg); font-weight: 600; }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } }

.eyebrow { font-size: 0.875rem; font-weight: 600; color: var(--primary); margin: 0 0 0.5rem; }
.section-title { font-size: 1.875rem; font-weight: 700; line-height: 1.15; margin: 0; }
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
.section-sub { color: var(--muted-fg); max-width: 36rem; margin: 0.75rem auto 0; }
.text-center { text-align: center; }
.text-muted { color: var(--muted-fg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: 5rem; padding-bottom: 5rem; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.12), transparent);
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.05;
  margin: 0 auto; max-width: 56rem;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted-fg); max-width: 38rem; margin: 1.5rem auto 0; font-size: 1.05rem; line-height: 1.6; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2.5rem; }
.hero .cta-row .btn-primary { box-shadow: var(--shadow-lg); }
.hero .stats { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-top: 4rem; }
.hero .stats > div { text-align: center; min-width: 80px; }
.hero .stats p:first-child { font-size: 1.875rem; font-weight: 700; margin: 0; }
.hero .stats p:last-child { font-size: 0.75rem; color: var(--muted-fg); margin: 0.25rem 0 0; }

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.9rem;
  border-radius: 999px; border: 1px solid var(--border); font-size: 0.75rem;
  font-weight: 500; color: var(--muted-fg); margin-bottom: 1.5rem;
}
.pill .icon { color: var(--primary); width: 0.9rem; height: 0.9rem; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.grid-features { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-features { grid-template-columns: repeat(4, 1fr); } }
.grid-plans { grid-template-columns: 1fr; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) { .grid-plans { grid-template-columns: repeat(3, 1fr); } }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-trust { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-trust { grid-template-columns: 1fr 1fr; } }

/* Card */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 1.5rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,0.3); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 1rem;
}
.feature-icon .icon { width: 20px; height: 20px; }
.card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.35rem; }
.card p { color: var(--muted-fg); font-size: 0.875rem; margin: 0; line-height: 1.55; }

/* Dashboard preview */
.preview-block {
  border-radius: 1.5rem; border: 1px solid var(--border); overflow: hidden;
  background: linear-gradient(165deg, #1a2148 0%, #0e1530 100%);
}
.preview-block .inner { padding: 2rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .preview-block .inner { grid-template-columns: 1fr 1fr; padding: 3rem; } }
.preview-block h2 { font-size: 1.875rem; font-weight: 700; color: #fff; margin: 0.5rem 0 1rem; }
.preview-block p.lead { color: rgba(255,255,255,0.6); margin: 0 0 1.5rem; line-height: 1.6; }
.preview-block .checks { display: flex; flex-direction: column; gap: 0.75rem; }
.preview-block .checks div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.85); }
.preview-block .checks .icon { color: var(--primary); width: 1rem; height: 1rem; flex-shrink: 0; }
.preview-card { border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); padding: 1.5rem; backdrop-filter: blur(6px); }
.preview-card .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.preview-card .stat { border-radius: 0.75rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 1rem; }
.preview-card .stat .label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin: 0 0 0.25rem; }
.preview-card .stat .value { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0; }
.preview-card .stat .delta { font-size: 0.75rem; color: #4ade80; margin: 0.25rem 0 0; }
.preview-card .bars { margin-top: 1rem; border-radius: 0.75rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 1rem; height: 9rem; }
.preview-card .bars .label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin: 0 0 0.5rem; }
.preview-card .bar-row { display: flex; align-items: end; gap: 4px; height: 5rem; }
.preview-card .bar { flex: 1; border-radius: 2px; background: linear-gradient(to top, #2563eb, #7c3aed); opacity: 0.8; }

/* Plans */
.plan {
  position: relative; border-radius: 1rem; border: 1px solid var(--border); background: var(--card);
  padding: 2rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.plan:hover { transform: translateY(-6px); border-color: rgba(37,99,235,0.3); }
.plan.featured { border-color: var(--primary); box-shadow: 0 24px 40px -16px rgba(37,99,235,0.25); transform: scale(1.03); }
.plan .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--primary-fg); font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.9rem; border-radius: 999px;
}
.plan h3 { font-size: 1.125rem; font-weight: 600; margin: 0; }
.plan .desc { font-size: 0.875rem; color: var(--muted-fg); margin: 0.25rem 0 0; }
.plan .price { margin: 1.25rem 0 1.5rem; }
.plan .price .v { font-size: 2.25rem; font-weight: 700; }
.plan .price .u { color: var(--muted-fg); font-size: 0.875rem; }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 0.75rem; }
.plan li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); }
.plan li .icon { color: var(--primary); width: 1rem; height: 1rem; flex-shrink: 0; }

/* Testimonials */
.bg-muted { background: rgba(245, 247, 251, 0.7); }
.testimonial .stars { display: flex; gap: 2px; color: var(--primary); margin-bottom: 1rem; }
.testimonial .stars .icon { width: 1rem; height: 1rem; fill: currentColor; }
.testimonial p.q { font-size: 0.9rem; line-height: 1.6; margin: 0 0 1.25rem; }
.testimonial .who { font-size: 0.875rem; font-weight: 600; margin: 0; }
.testimonial .role { font-size: 0.75rem; color: var(--muted-fg); margin: 0; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card); padding: 0 1.5rem;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 0; font-weight: 500; font-size: 0.875rem;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; color: var(--muted-fg); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 1rem; color: var(--muted-fg); font-size: 0.875rem; }

/* Final CTA */
.final-cta {
  border-radius: 1.5rem; border: 1px solid rgba(37,99,235,0.2);
  background: linear-gradient(135deg, rgba(37,99,235,0.06), transparent);
  padding: 3rem 2rem; text-align: center;
}
@media (min-width: 768px) { .final-cta { padding: 4rem; } }
.final-cta h2 { font-size: 1.875rem; font-weight: 700; margin: 0 0 1rem; }
@media (min-width: 640px) { .final-cta h2 { font-size: 2.25rem; } }
.final-cta p { color: var(--muted-fg); margin: 0 auto 2rem; max-width: 32rem; }
.fine-print { font-size: 0.75rem; color: var(--muted-fg); margin-top: 1rem; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 2rem;
}
footer.site-footer .row {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem; align-items: center; text-align: center;
}
@media (min-width: 768px) { footer.site-footer .row { flex-direction: row; justify-content: space-between; text-align: left; } }
footer.site-footer .links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center; font-size: 0.875rem; color: var(--muted-fg); }
footer.site-footer .links a:hover { color: var(--fg); }
footer.site-footer .copy { font-size: 0.75rem; color: var(--muted-fg); }

/* ====== Legal pages ====== */
.legal-header {
  border-bottom: 1px solid var(--border);
}
.legal-header .wrap { max-width: 800px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.legal main { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.legal h1 { font-size: 1.875rem; font-weight: 700; margin: 0 0 0.5rem; }
.legal .updated { font-size: 0.875rem; color: var(--muted-fg); margin: 0 0 2.5rem; }
.legal section { padding: 0; }
.legal h2 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.legal h3 { font-size: 1.05rem; font-weight: 500; margin: 1rem 0 0.5rem; }
.legal p, .legal li { font-size: 0.875rem; line-height: 1.6; color: rgba(11,18,32,0.9); }
.legal ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.legal ul li { margin-bottom: 0.25rem; }
.legal a.link { color: var(--primary); }
.legal a.link:hover { text-decoration: underline; }
.legal strong { font-weight: 600; }

/* Trust page */
.trust-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.75rem; border-radius: 999px; border: 1px solid var(--border); background: var(--muted-bg); font-size: 0.75rem; color: var(--muted-fg); }
.trust-pill .icon { width: 0.85rem; height: 0.85rem; }
.trust-section .lead { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.6; }
.trust-card { border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; background: rgba(245,247,251,0.4); display: flex; flex-direction: column; gap: 0.75rem; }
.trust-card .head { display: flex; align-items: center; gap: 0.5rem; }
.trust-card .ico { width: 32px; height: 32px; border-radius: 0.5rem; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.trust-card .ico .icon { width: 1rem; height: 1rem; }
.trust-card h2 { font-size: 0.875rem; font-weight: 600; margin: 0; }
.trust-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.trust-card li { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); }
.trust-card li::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; border-radius: 999px; background: rgba(37,99,235,0.7); margin-top: 9px; }

/* Checkout */
.checkout-banner {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  border: 1px solid rgba(37,99,235,0.2); background: var(--primary-soft);
  border-radius: 1rem; padding: 1rem 1.5rem; margin-bottom: 2.5rem; font-size: 0.875rem;
}
.checkout-banner .icon { color: var(--primary); width: 1.1rem; height: 1.1rem; }
.checkout-banner strong { color: var(--primary); font-weight: 700; }
.checkout-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .checkout-grid { grid-template-columns: 3fr 2fr; } }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; }
.field input {
  width: 100%; height: 44px; padding: 0 0.85rem; border-radius: 0.5rem;
  border: 1px solid var(--border); background: var(--bg); font-size: 0.875rem; color: var(--fg);
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.field .pw-wrap { position: relative; }
.field .pw-wrap input { padding-right: 2.5rem; }
.field .pw-wrap button { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer; color: var(--muted-fg); padding: 0; }
.plan-picker { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
@media (min-width: 640px) { .plan-picker { grid-template-columns: repeat(3, 1fr); } }
.plan-pick {
  border: 2px solid var(--border); background: var(--bg); border-radius: 0.75rem; padding: 1rem;
  text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.plan-pick.active { border-color: var(--primary); background: var(--primary-soft); }
.plan-pick .n { font-size: 0.875rem; font-weight: 600; margin: 0; }
.plan-pick .d { font-size: 0.75rem; color: var(--muted-fg); margin: 0.25rem 0 0.5rem; }
.plan-pick .p { font-size: 1.125rem; font-weight: 700; margin: 0; }
.plan-pick .p small { font-size: 0.75rem; font-weight: 400; color: var(--muted-fg); }
.terms-row { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.875rem; color: var(--muted-fg); }
.terms-row input { margin-top: 4px; accent-color: var(--primary); }
.terms-row a { color: var(--primary); }
.terms-row a:hover { text-decoration: underline; }

.summary { border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; background: var(--card); position: sticky; top: 96px; }
.summary h2 { font-size: 1.125rem; font-weight: 600; margin: 0 0 1rem; }
.summary .selected { border: 1px solid rgba(37,99,235,0.2); background: var(--primary-soft); border-radius: 0.75rem; padding: 1rem; margin-bottom: 1.25rem; }
.summary .selected .row { display: flex; justify-content: space-between; font-weight: 600; }
.summary .selected .row small { display: block; color: var(--muted-fg); font-weight: 400; font-size: 0.75rem; margin-top: 0.25rem; }
.summary .feat-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.875rem; color: var(--muted-fg); }
.summary .feat-list li { display: flex; align-items: center; gap: 0.5rem; }
.summary .feat-list .icon { color: var(--primary); width: 1rem; height: 1rem; flex-shrink: 0; }
.summary .totals { border-top: 1px solid var(--border); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.875rem; }
.summary .totals .ln { display: flex; justify-content: space-between; }
.summary .totals .ln.muted { color: var(--muted-fg); }
.summary .totals .ln.disc { color: var(--primary); font-weight: 500; }
.summary .totals .total { border-top: 1px solid var(--border); padding-top: 0.75rem; display: flex; justify-content: space-between; font-weight: 600; }
.summary .totals .total .v { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.summary .legal-bits { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.75rem; color: var(--muted-fg); }
.summary .legal-bits div { display: flex; align-items: center; gap: 0.5rem; }
.summary .legal-bits .icon { color: var(--primary); width: 1rem; height: 1rem; flex-shrink: 0; }

/* Toast */
.toast-stack { position: fixed; right: 1.5rem; bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; z-index: 100; }
.toast {
  min-width: 260px; max-width: 360px; background: #0b1220; color: #fff;
  border-radius: 0.6rem; padding: 0.85rem 1rem; font-size: 0.875rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25); animation: toast-in .2s ease;
}
.toast.success { background: #134e3a; }
.toast.error { background: #7a1d1d; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Login redirect */
.redirect-card {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center; padding: 2rem;
}
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }