/* =====================================================================
   ASDI Design System — derivado da logomarca
   Azul Royal (tipografia/mão) · Periwinkle (escudo) · Coral (coração)
   Formas arredondadas, ícones em traço, atmosfera acolhedora.
   Mobile-first: estilos base para celular, ampliados por media queries.
   ===================================================================== */

/* Fontes hospedadas localmente (sem chamadas a terceiros — LGPD e CSP estrita) */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/nunito-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #24468e;
  --navy-600: #2c55a8;
  --navy-700: #1c3772;
  --navy-900: #142851;
  --peri: #c3cde3;
  --peri-300: #a9b8da;
  --peri-100: #e6ebf6;
  --peri-50: #f3f6fc;
  --coral: #f2473f;
  --coral-600: #d93a33;
  --coral-50: #fdeceb;
  --sage: #5f9477;
  --sage-50: #e9f3ed;
  --amber: #b9771c;
  --amber-50: #fbf2e2;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --text: #22304f;
  --muted: #5c6884;
  --line: #e3e8f3;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 40, 81, .06), 0 8px 24px rgba(20, 40, 81, .06);
  --font-title: "Nunito", "Quicksand", system-ui, sans-serif;
  --font-text: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--navy-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -0.2em; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 16px; }
:focus-visible { outline: 3px solid var(--peri-300); outline-offset: 2px; border-radius: 6px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--tap); padding: 10px 20px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-title); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--peri); color: var(--navy); }
.btn-outline:hover { background: var(--peri-50); border-color: var(--peri-300); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--peri-50); }
.btn-danger { background: var(--coral); color: #fff; }
.btn-danger:hover { background: var(--coral-600); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--peri-50); color: var(--navy); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Cards e superfícies ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card-soft { background: var(--peri-50); border: 1px solid var(--peri-100); border-radius: var(--radius); padding: 20px; }
.card h2, .card h3 { margin-top: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-header h2, .card-header h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-4 > .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font: 700 .78rem/1.2 var(--font-title); letter-spacing: .02em; white-space: nowrap;
  background: var(--peri-100); color: var(--navy-700);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--sage-50); color: #3f7458; }
.badge-info { background: var(--peri-100); color: var(--navy-600); }
.badge-warning { background: var(--amber-50); color: var(--amber); }
.badge-danger { background: var(--coral-50); color: var(--coral-600); }
.badge-critical { background: var(--coral); color: #fff; }
.badge-critical::before { background: #fff; }
.badge-neutral { background: #eef0f5; color: var(--muted); }
.badge-plain::before { display: none; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 16px; }
/* align-content: start evita que campos lado a lado "estiquem" quando um deles tem texto de ajuda */
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; color: var(--navy-900); font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .85rem; }
.input, .select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px;
  border: 1.5px solid var(--peri); border-radius: var(--radius-sm);
  font: inherit; color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px var(--peri-100); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.fieldset { border: 1.5px dashed var(--peri); border-radius: var(--radius); padding: 16px; margin: 0; display: grid; gap: 14px; }
.fieldset legend { padding: 0 8px; font: 800 1rem var(--font-title); color: var(--navy); }
.optional-tag { font-weight: 500; color: var(--muted); font-size: .85rem; }

/* ---------- Mensagens (flash) ---------- */
.flash-list { display: grid; gap: 10px; margin: 16px 0; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; border: 1px solid; word-break: break-word; }
.flash-success { background: var(--sage-50); border-color: #cfe3d7; color: #2f5d45; }
.flash-error { background: var(--coral-50); border-color: #f7c9c6; color: #9e2620; }
.flash-info { background: var(--peri-50); border-color: var(--peri-100); color: var(--navy-700); }

/* ---------- Navegação pública ---------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 900 1.35rem var(--font-title); letter-spacing: .02em; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand small { display: block; max-width: 170px; font: 600 .6rem/1.3 var(--font-text); opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.nav-toggle { background: transparent; border: 0; color: #fff; width: var(--tap); height: var(--tap); border-radius: 10px; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--navy); padding: 8px 16px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.15); }
.site-nav.open { display: grid; gap: 4px; }
.site-nav a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; min-height: var(--tap); display: flex; align-items: center; }
.site-nav a:hover { background: rgba(255,255,255,.1); }
.site-nav .btn { margin-top: 6px; }
/* CTA do menu: botão branco com texto azul (sobrescreve a cor branca dos links do menu) */
.site-nav a.btn-nav-cta {
  background: #fff; color: var(--navy); border: 2px solid #fff;
  padding: 8px 18px; border-radius: 999px; justify-content: center;
  font-family: var(--font-title); font-weight: 800; box-shadow: 0 4px 14px rgba(10, 20, 50, .18);
}
.site-nav a.btn-nav-cta:hover { background: var(--peri-50); border-color: var(--peri-50); color: var(--navy-700); }
.site-nav a.btn-nav-cta .icon { color: var(--coral); }
/* Botão secundário sobre fundo azul (ex.: "Ver como funciona") */
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.site-footer { background: var(--navy-900); color: #cdd6ea; padding: 40px 0 24px; margin-top: 64px; font-size: .93rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 24px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-about { margin-top: 12px; }
.btn-topbar { color: #fff; }
.btn-topbar:hover { background: rgba(255,255,255,.12); color: #fff; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* ---------- Landing ---------- */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; padding: 40px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -160px; border: 38px solid rgba(195, 205, 227, .14); border-radius: 50% 50% 46% 46%; }
.hero .container { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.12rem; color: #dfe6f5; max-width: 34em; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; margin-bottom: 16px; }
.hero .eyebrow .icon { color: var(--coral); }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: min(320px, 80vw); border-radius: 50%; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; padding: 0; list-style: none; color: #dfe6f5; font-size: .93rem; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .icon { color: #9fd1b4; }

.section { padding: 56px 0 8px; }
.section-head { max-width: 640px; margin: 0 auto 28px; text-align: center; }
.section-head p { color: var(--muted); }
.kicker { display: inline-block; color: var(--coral-600); font: 800 .8rem var(--font-title); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }

.step { position: relative; padding-top: 28px; }
.step-num { position: absolute; top: -18px; left: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 900 1.1rem var(--font-title); box-shadow: 0 0 0 6px var(--bg); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--peri-100); color: var(--navy); margin-bottom: 12px; }
.feature-icon .icon { width: 26px; height: 26px; }
.feature-icon.coral { background: var(--coral-50); color: var(--coral); }
.feature-icon.sage { background: var(--sage-50); color: var(--sage); }

/* Faixas de largura total que separam os assuntos da página inicial */
.band { padding: 56px 0; border-top: 1px solid var(--peri-100); }
.band:last-of-type { border-bottom: 1px solid var(--peri-100); }
.band-plain { background: var(--bg); }
.band-white { background: var(--surface); }
.band-soft { background: var(--peri-50); }
.band .section-head:first-child { margin-top: 0; }
.band-white .card { box-shadow: 0 1px 2px rgba(20, 40, 81, .05); }
main > .band:last-child { border-bottom: 0; }
main:has(> .band:last-child) + .site-footer { margin-top: 0; }
.privacy-band .container { display: grid; gap: 24px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--sage); margin-top: 3px; }

.quote { position: relative; }
.quote { margin: 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 16px; flex: 1; }
.quote p { font-size: 1rem; }
.quote footer { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--peri-100); color: var(--navy); font: 800 1rem var(--font-title); flex-shrink: 0; }
.stars { color: var(--coral); letter-spacing: 2px; margin-bottom: 8px; }

/* Planos */
.plan { display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--line); }
.plan.featured { border-color: var(--navy); position: relative; }
.plan .ribbon { position: absolute; top: -14px; right: 20px; background: var(--coral); color: #fff; border-radius: 999px; padding: 4px 12px; font: 800 .78rem var(--font-title); }
.plan-price { font: 900 2.2rem var(--font-title); color: var(--navy); }
.plan-price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: center; }
.plan li .icon { color: var(--sage); }
.plan.selected { border-color: var(--navy); background: var(--peri-50); }

/* FAQ e textos legais */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font: 700 1.02rem var(--font-title); color: var(--navy-900); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: var(--tap); }
.faq summary::after { content: "+"; color: var(--navy); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose li { margin-bottom: .4em; }
.legal-note { font-size: .88rem; }

/* Autenticação */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: start center; padding: 28px 16px 48px; }
.auth-card { width: 100%; max-width: 520px; }
.auth-card .brand-mark { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; }
.auth-card h1 { font-size: 1.6rem; text-align: center; }
.auth-card > p.muted { text-align: center; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .93rem; }

/* ---------- Área logada ---------- */
.app-shell { min-height: 100vh; padding-bottom: 84px; }
.app-topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; }
.app-topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 8px; }
.app-topbar .brand img { width: 38px; height: 38px; }
.app-topbar .user-chip { display: flex; align-items: center; gap: 8px; color: #dfe6f5; font-size: .9rem; }
.app-topbar .user-chip .avatar { width: 34px; height: 34px; font-size: .9rem; background: rgba(255,255,255,.15); color: #fff; }
.app-sidebar { display: none; }
.app-main { padding: 20px 0 32px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(1.45rem, 4vw, 2rem); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; margin-bottom: 8px; min-height: 36px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(20,40,81,.06); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; min-height: 52px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; border-radius: 12px; position: relative; }
.tabbar a .icon { width: 24px; height: 24px; }
.tabbar a.active { color: var(--navy); background: var(--peri-50); }
.tabbar .dot { position: absolute; top: 4px; right: calc(50% - 18px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .68rem; display: grid; place-items: center; }

.stat { display: flex; gap: 14px; align-items: center; }
.stat .feature-icon { margin: 0; }
.stat-value { font: 900 1.7rem/1 var(--font-title); color: var(--navy-900); }
.stat-label { color: var(--muted); font-size: .88rem; }

.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.alert-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--peri); text-decoration: none; color: inherit; transition: box-shadow .15s, transform .1s; }
.alert-item:hover { box-shadow: var(--shadow); color: inherit; }
.alert-item.risk-CRITICO { border-left-color: var(--coral); }
.alert-item.risk-ALTO { border-left-color: #f37d77; }
.alert-item.risk-MEDIO { border-left-color: #e2ad5b; }
.alert-item.unread { background: linear-gradient(90deg, var(--coral-50), #fff 45%); }
.alert-item .feature-icon { width: 42px; height: 42px; margin: 0; }
.alert-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.alert-title { font: 800 1rem var(--font-title); color: var(--navy-900); margin: 0 0 4px; }
.alert-summary { margin: 0; color: var(--text); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.timeline-day { font: 800 .82rem var(--font-title); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 20px 0 10px; }

.message-box { background: var(--peri-50); border: 1px solid var(--peri-100); border-radius: var(--radius-sm); padding: 16px; font-size: .95rem; white-space: normal; word-break: break-word; max-height: 460px; overflow: auto; }
.detail-list { display: grid; gap: 12px; margin: 0; }
.detail-list div { display: grid; gap: 2px; }
.detail-list dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.detail-list dd { margin: 0; font-weight: 600; color: var(--navy-900); word-break: break-word; }

.device-card { display: grid; gap: 14px; }
.device-head { display: flex; gap: 14px; align-items: center; }
.device-avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--peri-100); color: var(--navy); display: grid; place-items: center; font: 900 1.3rem var(--font-title); flex-shrink: 0; }
.device-head h3 { margin: 0; }
.qr-panel { display: grid; gap: 20px; align-items: start; }
.qr-frame { background: #fff; border: 2px dashed var(--peri); border-radius: var(--radius); padding: 16px; display: grid; place-items: center; min-height: 280px; text-align: center; }
.qr-frame img { width: min(280px, 100%); image-rendering: pixelated; border-radius: 8px; }
.qr-placeholder { color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.qr-placeholder .icon { width: 48px; height: 48px; color: var(--peri-300); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--peri-100); border-top-color: var(--navy); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; }
.steps-list li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--peri-100); color: var(--navy); display: grid; place-items: center; font: 800 .95rem var(--font-title); }
.status-live { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(95,148,119,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95,148,119,0); } 100% { box-shadow: 0 0 0 0 rgba(95,148,119,0); } }

.empty { text-align: center; padding: 36px 20px; display: grid; gap: 8px; justify-items: center; }
.empty-art { width: 120px; height: 120px; margin-bottom: 8px; }
.empty h3 { margin: 0; }
.empty p { color: var(--muted); max-width: 30em; margin: 0 0 8px; }

.filters { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.filters .btn { grid-column: 1 / -1; }
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 20px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; background: #fff; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--peri-50); color: var(--navy-900); font-family: var(--font-title); font-weight: 800; font-size: .85rem; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; font-size: .86rem; }
.bar-track { height: 14px; border-radius: 999px; background: var(--peri-50); overflow: hidden; display: flex; }
.bar-fill { height: 100%; background: var(--peri-300); border-radius: 999px; min-width: 2px; }
.bar-fill.alert { background: var(--coral); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

.danger-zone { border: 1.5px solid #f7c9c6; background: #fffafa; }
.danger-zone h3 { color: var(--coral-600); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--amber-50); color: #7a4f12; border: 1px solid #f1dcb5; }
.notice.info { background: var(--peri-50); color: var(--navy-700); border-color: var(--peri-100); }
.notice .icon { margin-top: 2px; }
.notice p { margin: 0; }

.error-page { text-align: center; padding: 64px 16px; }
.error-page .code { font: 900 4rem var(--font-title); color: var(--peri-300); }

/* ---------- Telas maiores ---------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
  .filters .btn { grid-column: auto; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .brand small { font-size: .7rem; max-width: 200px; }
}

@media (min-width: 960px) {
  .container { padding: 0 24px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .grid-4 > .stat { flex-direction: row; align-items: center; padding: 20px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; position: static; padding: 0; box-shadow: none; align-items: center; gap: 4px; background: transparent; }
  .site-nav .btn { margin: 0 0 0 8px; }
  .site-nav a { white-space: nowrap; padding: 8px 10px; }
  .site-nav a.btn-nav-cta { padding: 8px 16px; }
  .brand small { max-width: 200px; line-height: 1.3; }
  .hero { padding: 72px 0 88px; }
  .hero .container { grid-template-columns: 1.25fr 1fr; }
  .privacy-band .container { grid-template-columns: 1fr 1fr; }
  .qr-panel { grid-template-columns: 320px 1fr; }

  .app-shell { padding-bottom: 0; display: grid; grid-template-columns: 248px 1fr; grid-template-rows: auto 1fr; }
  .app-topbar { grid-column: 1 / -1; }
  .app-sidebar { display: block; background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 60px; height: calc(100vh - 60px); }
  .app-sidebar nav { display: grid; gap: 4px; }
  .app-sidebar a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: var(--tap); border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
  .app-sidebar a:hover { background: var(--peri-50); color: var(--navy); }
  .app-sidebar a.active { background: var(--peri-100); color: var(--navy); }
  .app-sidebar .count { margin-left: auto; background: var(--coral); color: #fff; border-radius: 999px; font-size: .72rem; padding: 2px 8px; }
  .app-sidebar .sidebar-foot { margin-top: 24px; padding: 14px; border-radius: var(--radius-sm); background: var(--peri-50); font-size: .85rem; color: var(--muted); }
  .tabbar { display: none; }
  .app-main { padding: 28px 0 48px; }
  .split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
}

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

/* ---------- Segurança da conta ---------- */
.captcha { min-height: 70px; }
.code-input { font: 800 1.6rem/1 var(--font-title); letter-spacing: .35em; text-align: center; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.recovery-grid li { font: 700 1rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; background: #fff; border: 1px solid var(--peri); border-radius: 10px; padding: 8px; text-align: center; letter-spacing: .05em; }
.secret-key { font: 700 .95rem ui-monospace, Consolas, monospace; word-break: break-all; background: #fff; border: 1px dashed var(--peri); border-radius: 10px; padding: 10px; }
.totp-qr { width: 200px; height: 200px; image-rendering: pixelated; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--line); }
.reauth { border-top: 1px dashed var(--peri); padding-top: 14px; display: grid; gap: 12px; }
.reauth-title { font: 700 .9rem var(--font-title); color: var(--muted); display: flex; gap: 6px; align-items: center; margin: 0; }

/* ---------- Cupons ---------- */
a.plan-link { text-decoration: none; color: inherit; }
a.plan-link:hover { border-color: var(--peri-300); color: inherit; }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--peri-300); display: inline-block; flex-shrink: 0; margin-top: 1px; }
.radio-dot.on { border-color: var(--navy); box-shadow: inset 0 0 0 4px #fff; background: var(--navy); }
.coupon-form { display: flex; gap: 10px; flex-wrap: wrap; }
.coupon-input { flex: 1 1 220px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.coupon-applied { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.coupon-applied .feature-icon { margin: 0; }
.coupon-applied > div { flex: 1 1 200px; }
.coupon-code { font: 800 1.1rem var(--font-title); color: var(--navy-900); letter-spacing: .05em; }
.summary { margin: 0; display: grid; gap: 8px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary .discount dd, .summary .discount dt { color: #3f7458; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; }
.summary .total dt, .summary .total dd { color: var(--navy-900); font: 800 1.15rem var(--font-title); }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.check-group { display: flex; gap: 16px; flex-wrap: wrap; }
.progress { height: 8px; border-radius: 999px; background: var(--peri-50); overflow: hidden; min-width: 80px; }
.progress span { display: block; height: 100%; background: var(--navy); }
.tabbar-3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 960px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .plan-grid { grid-template-columns: 1fr; } }
table.compare { min-width: 520px; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
table.compare .yes { color: var(--sage); }
