/* Site institucional — tokens do design system (design-system/plataforma-whatsapp): primária #2563EB,
   destaque #EA580C com texto preto (só nas chamadas de cadastro), fundo #F8FAFC, texto #1E293B, Plus Jakarta Sans.
   Elemento-assinatura: a "jornada da mensagem" do hero (enviada → aceita → entregue → lida). */

.site { --site-ink: #1E293B; --site-muted: #475569; --site-line: #E2E8F0; --site-band: #1E293B; --site-soft: #E9EFF8; background: #F8FAFC; color: var(--site-ink); }
[data-bs-theme="dark"] .site { --site-ink: #E2E8F0; --site-muted: #A7B4C6; --site-line: #263244; --site-soft: #1A2333; background: var(--app-bg); }
.site main { overflow-x: clip; }
.site h1, .site h2, .site h3 { color: var(--site-ink); letter-spacing: -.015em; }
.site p, .site li { line-height: 1.65; }
.site a { text-underline-offset: 3px; }
.site .text-muted { color: var(--site-muted) !important; }

/* ---------- topo */
.site-banner { background: var(--site-band); color: #fff; font-size: .875rem; padding: 8px 0; text-align: center; }
.site-banner a { color: #fff; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, #F8FAFC 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--site-line); }
[data-bs-theme="dark"] .site-header { background: color-mix(in srgb, var(--app-bg) 85%, transparent); }
.site-header .navbar { min-height: 68px; }
.site-header .nav-link { font-weight: 500; color: var(--site-muted); padding: .5rem .85rem !important; border-radius: 8px; transition: color .15s ease, background-color .15s ease; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--site-ink); background: var(--site-soft); }
.site-logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; color: var(--site-ink); text-decoration: none; }
.site-logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-primary); color: #fff; }
.site-login { color: var(--site-ink); text-decoration: none; font-weight: 600; }
@media (max-width: 991.98px) { .site-header-actions { padding: 12px 0 16px; } }

/* ---------- tipografia de seção */
.site-section { padding: 88px 0; }
.site-section-tight { padding: 56px 0; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.15; max-width: 22ch; margin-bottom: 1rem; }
.section-lead { font-size: 1.1rem; color: var(--site-muted); max-width: 60ch; }
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--site-line); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.1; max-width: 20ch; }

/* ---------- hero */
.site-hero { padding: 80px 0 88px; }
.site-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; max-width: 14ch; margin-bottom: 1.25rem; }
.site-hero .lead { font-size: 1.2rem; color: var(--site-muted); max-width: 46ch; margin-bottom: 2rem; }
.hero-note { font-size: .875rem; color: var(--site-muted); margin-top: .75rem; }
.btn-lg.btn-accent, .btn-lg.btn-outline-primary { padding: .8rem 1.5rem; font-weight: 600; border-radius: 10px; }

/* jornada da mensagem: conversa + régua de situações */
.journey { position: relative; max-width: 460px; margin-left: auto; }
.journey-chat { background: #ECE5DD; border-radius: 20px; padding: 22px 18px 18px; border: 1px solid #DCD3C8; box-shadow: 0 20px 25px rgba(0, 0, 0, .12); }
[data-bs-theme="dark"] .journey-chat { background: #1F2A2E; border-color: #2D3A3F; }
.journey-contact { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: #3B4A54; margin-bottom: 14px; }
[data-bs-theme="dark"] .journey-contact { color: #C9D3D9; }
.journey-avatar { width: 32px; height: 32px; border-radius: 50%; background: #FFFFFF; display: grid; place-items: center; color: #075E54; font-weight: 700; }
.journey-bubble { background: #D9FDD3; color: #111B21; border-radius: 12px 12px 4px 12px; padding: 12px 14px 8px; margin-left: 12%; font-size: .95rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.journey-bubble .var { background: rgba(37, 99, 235, .14); color: #1D4ED8; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.journey-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: .72rem; color: #667781; margin-top: 4px; }
.journey-ticks { color: #8696A0; transition: color .3s ease; }
.journey[data-stage="4"] .journey-ticks { color: #53BDEB; }
.journey-optout { font-size: .8rem; color: #54656F; margin-top: 8px; }
.journey-rail { list-style: none; margin: 18px 0 0; padding: 18px; background: #FFFFFF; border: 1px solid var(--site-line); border-radius: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; box-shadow: 0 4px 6px rgba(0, 0, 0, .06); }
[data-bs-theme="dark"] .journey-rail { background: var(--app-surface); }
.journey-rail li { position: relative; padding-top: 18px; }
.journey-rail li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--site-line); }
.journey-rail li::after { content: ""; position: absolute; top: 4px; left: 0; height: 4px; border-radius: 2px; width: 0; background: var(--brand-primary); transition: width .45s ease; }
.journey-rail li.is-on::after { width: 100%; }
.journey-rail strong { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--site-ink); }
.journey-rail span { font-size: .75rem; color: var(--site-muted); }
.journey-caption { font-size: .8rem; color: var(--site-muted); text-align: right; margin-top: 8px; }

/* ---------- prova / regras */
.rule-strip { border-top: 1px solid var(--site-line); border-bottom: 1px solid var(--site-line); background: #FFFFFF; }
[data-bs-theme="dark"] .rule-strip { background: var(--app-surface); }
.rule-strip .rule { display: flex; gap: 12px; align-items: flex-start; padding: 26px 0; }
.rule-strip .bi { font-size: 1.35rem; color: var(--brand-primary); flex: none; margin-top: 2px; }
.rule-strip p { margin: 0; font-size: .95rem; color: var(--site-muted); }
.rule-strip strong { display: block; color: var(--site-ink); font-size: 1rem; }

/* ---------- funcionalidades em linhas com fragmentos reais */
.feature-row { padding: 56px 0; border-bottom: 1px solid var(--site-line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.feature-row p { color: var(--site-muted); max-width: 48ch; }
.feature-row ul { padding-left: 1.1rem; color: var(--site-muted); }
.fragment { background: #FFFFFF; border: 1px solid var(--site-line); border-radius: 14px; padding: 20px; box-shadow: 0 4px 6px rgba(0, 0, 0, .06); font-size: .9rem; }
[data-bs-theme="dark"] .fragment { background: var(--app-surface); }
.fragment-title { font-weight: 600; font-size: .85rem; color: var(--site-muted); margin-bottom: 12px; }
.fragment table { width: 100%; }
.fragment td { padding: 7px 0; border-bottom: 1px solid var(--site-line); }
.fragment tr:last-child td { border-bottom: 0; }
.chip { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--site-soft); color: var(--site-ink); }
.chip.is-ok { background: rgba(4, 120, 87, .12); color: #047857; }
.chip.is-off { background: rgba(220, 38, 38, .1); color: #B91C1C; }
.window-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.window-grid span { height: 26px; border-radius: 4px; background: var(--site-soft); }
.window-grid span.on { background: rgba(37, 99, 235, .22); }
.flow-mini { display: grid; gap: 8px; }
.flow-mini div { border: 1px solid var(--site-line); border-radius: 10px; padding: 9px 12px; display: flex; gap: 10px; align-items: center; }
.flow-mini .n { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(37, 99, 235, .12); color: var(--brand-primary); font-size: .75rem; font-weight: 700; flex: none; }

/* ---------- passos (sequência real) */
.steps { counter-reset: step; display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--site-line); }
.steps li { list-style: none; padding: 28px 24px 0 0; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--brand-primary); color: var(--brand-primary); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.1rem; font-weight: 700; }
.steps p { color: var(--site-muted); font-size: .95rem; }
@media (max-width: 991.98px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; } }

/* ---------- planos (comparação a partir dos dados reais) */
.pricing-table { background: #FFFFFF; border: 1px solid var(--site-line); border-radius: 16px; overflow: hidden; }
[data-bs-theme="dark"] .pricing-table { background: var(--app-surface); }
.pricing-table table { margin: 0; }
.pricing-table th, .pricing-table td { padding: 14px 18px; vertical-align: top; border-color: var(--site-line); }
.pricing-table thead th { padding-top: 24px; padding-bottom: 24px; border-bottom-width: 2px; }
.pricing-table .plan-name { font-size: 1.05rem; font-weight: 700; }
.pricing-table .plan-price { font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pricing-table .plan-per { font-size: .85rem; color: var(--site-muted); font-weight: 400; }
.pricing-table .is-featured { background: rgba(37, 99, 235, .05); }
.pricing-table thead .is-featured { box-shadow: inset 0 4px 0 var(--brand-primary); }
.pricing-mobile .card { border-color: var(--site-line); }

/* ---------- revenda (faixa escura) */
.band { background: var(--site-band); color: #E2E8F0; }
.band h2, .band h3 { color: #FFFFFF; }
.band p, .band li { color: #CBD5E1; }
.band .band-point { border-left: 2px solid rgba(255, 255, 255, .2); padding-left: 16px; }
.band .btn-outline-light { font-weight: 600; }

/* ---------- FAQ */
.faq-list { border-top: 1px solid var(--site-line); }
.faq-list details { border-bottom: 1px solid var(--site-line); padding: 18px 0; }
.faq-list summary { font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--brand-primary); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-answer { color: var(--site-muted); padding-top: 10px; max-width: 72ch; }

/* ---------- conteúdo (CMS, blog, ajuda) */
.prose { max-width: 70ch; font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2.2rem 0 .8rem; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.8rem 0 .6rem; scroll-margin-top: 90px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { border-left: 3px solid var(--brand-primary); padding: 4px 0 4px 18px; color: var(--site-muted); font-size: 1.1rem; margin: 1.6rem 0; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose code { background: var(--site-soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; color: var(--site-ink); }
.toc { position: sticky; top: 96px; font-size: .9rem; }
.toc a { display: block; color: var(--site-muted); text-decoration: none; padding: 4px 0 4px 12px; border-left: 2px solid var(--site-line); }
.toc a:hover { color: var(--site-ink); border-left-color: var(--brand-primary); }
.post-card { display: block; text-decoration: none; color: inherit; border-top: 1px solid var(--site-line); padding: 24px 0; }
.post-card h2, .post-card h3 { font-size: 1.25rem; font-weight: 700; margin: 6px 0; transition: color .15s ease; }
.post-card:hover h2, .post-card:hover h3 { color: var(--brand-primary); }
.post-card p { color: var(--site-muted); margin: 0; }
.post-meta { font-size: .85rem; color: var(--site-muted); }
.post-cover { width: 100%; height: auto; border-radius: 16px; margin-bottom: 32px; }

/* ---------- status */
.status-overall { border-radius: 16px; padding: 22px 24px; display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: 1.1rem; }
.status-overall.is-operational { background: rgba(4, 120, 87, .1); color: #065F46; }
.status-overall.is-degraded { background: rgba(217, 119, 6, .12); color: #92400E; }
.status-overall.is-down { background: rgba(220, 38, 38, .1); color: #991B1B; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-dot.is-operational { background: #059669; }
.status-dot.is-degraded { background: #D97706; }
.status-dot.is-down { background: #DC2626; }

/* ---------- formulários do site */
.site-form .form-control, .site-form .form-select { padding: .7rem .9rem; border-radius: 10px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- chamada final */
.final-cta { background: #FFFFFF; border: 1px solid var(--site-line); border-radius: 20px; padding: 56px 40px; }
[data-bs-theme="dark"] .final-cta { background: var(--app-surface); }
.final-cta h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; max-width: 20ch; }

/* ---------- rodapé */
.site-footer { border-top: 1px solid var(--site-line); padding: 56px 0 28px; color: var(--site-muted); font-size: .92rem; background: #FFFFFF; }
[data-bs-theme="dark"] .site-footer { background: var(--app-surface); }
.site-footer a { color: var(--site-muted); text-decoration: none; }
.site-footer a:hover { color: var(--site-ink); text-decoration: underline; }
.site-footer li { margin-bottom: 8px; }
.site-footer-title { font-size: .95rem; font-weight: 700; color: var(--site-ink); margin-bottom: 14px; }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--site-line); font-size: .85rem; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #FFFFFF; border-top: 1px solid var(--site-line); box-shadow: 0 -10px 15px rgba(0, 0, 0, .08); padding: 14px 0; }
[data-bs-theme="dark"] .cookie-bar { background: var(--app-surface); }

@media (prefers-reduced-motion: reduce) {
    .journey-rail li::after, .journey-ticks, .faq-list summary::after { transition: none; }
}

/* Documentação da API */
.code-block { background: #0F172A; color: #E2E8F0; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: .85rem; line-height: 1.6; }
.code-block code { background: transparent; color: inherit; padding: 0; }
.endpoint-list { border: 1px solid var(--site-line); border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem; }
.endpoint { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--site-line); font-size: .92rem; }
.endpoint:last-child { border-bottom: 0; }
.endpoint-summary { color: var(--site-muted); flex: 1 1 260px; }
.http-method { display: inline-block; min-width: 58px; text-align: center; font-size: .72rem; font-weight: 700; border-radius: 6px; padding: 2px 6px; }
.m-get { background: rgba(37, 99, 235, .12); color: #1D4ED8; } .m-post { background: rgba(4, 120, 87, .12); color: #047857; }
.m-patch { background: rgba(217, 119, 6, .14); color: #92400E; } .m-delete { background: rgba(220, 38, 38, .1); color: #B91C1C; }
