/* ============================================================
   OutBox Mail — Design System
   Marca OutBox: laranja #F15532 · ink #0A0A0A · light #F5F7F9
   Tipografia: Inter · Dark/Light · Mobile first
   ============================================================ */

:root {
  --brand: #F15532;
  --brand-600: #e0431f;
  --brand-700: #c2360f;
  --brand-soft: rgba(241, 85, 50, .12);
  --blue: #2563EB;
  --blue-soft: rgba(37, 99, 235, .12);
  --green: #16A34A;
  --green-soft: rgba(22, 163, 74, .12);
  --amber: #D97706;
  --amber-soft: rgba(217, 119, 6, .14);
  --red: #DC2626;
  --red-soft: rgba(220, 38, 38, .12);
  --violet: #7C3AED;
  --violet-soft: rgba(124, 58, 237, .12);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.18);
  --sidebar-w: 268px;
  --header-h: 68px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* escala de z-index */
  --z-header: 20;
  --z-drawer: 40;
  --z-modal: 50;
  --z-toast: 60;
}

/* ---------- LIGHT ---------- */
:root, [data-theme="light"] {
  --bg: #F5F7F9;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(241,85,50,.10), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(10,10,10,.05), transparent 60%);
  --surface: #ffffff;
  --surface-2: #fbfcfd;
  --surface-3: #f1f4f7;
  --glass: rgba(255,255,255,.86);
  --border: #e6eaef;
  --border-strong: #d4dae1;
  --text: #0A0A0A;
  --text-soft: #46505c;
  --text-mut: #6b7683;
  --inverse: #ffffff;
  --code-bg: #0f1318;
  --code-text: #e8edf3;
}

/* ---------- DARK ---------- */
[data-theme="dark"] {
  --bg: #0a0c0f;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(241,85,50,.18), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(241,85,50,.06), transparent 55%);
  --surface: #14181d;
  --surface-2: #181d23;
  --surface-3: #1f262e;
  --glass: rgba(20,24,29,.84);
  --border: #262d35;
  --border-strong: #39424d;
  --text: #f3f6f9;
  --text-soft: #b3bdc8;
  --text-mut: #8b96a3;
  --inverse: #0A0A0A;
  --code-bg: #0b0e12;
  --code-text: #e8edf3;
  --green: #22C55E;
  --amber: #F59E0B;
  --red: #F87171;
  --blue: #60A5FA;
  --violet: #A78BFA;
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s, color .3s;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
img, svg { max-width: 100%; display: block; }
/* tamanho padrão de todo ícone gerado por ico(); regras mais específicas sobrescrevem */
.ic { width: 18px; height: 18px; flex: none; }
ul { list-style: none; }
::selection { background: var(--brand); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- TIPOGRAFIA ---------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.35rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }
p { max-width: 68ch; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-soft); line-height: 1.65; }
.muted { color: var(--text-mut); }
.soft { color: var(--text-soft); }
.small { font-size: .84rem; }
.xs { font-size: .76rem; }
.mono { font-family: var(--mono); font-size: .86em; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.brand-text { color: var(--brand); }

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-sm { max-width: 780px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.grid { display: grid; gap: 20px; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.wrap-gap { flex-wrap: wrap; }
.grow { flex: 1; }
.stack-sm > * + * { margin-top: 8px; }
.mt-8 { margin-top: 8px } .mt-16 { margin-top: 16px } .mt-24 { margin-top: 24px } .mt-32 { margin-top: 32px }
.mb-8 { margin-bottom: 8px } .mb-16 { margin-bottom: 16px } .mb-24 { margin-bottom: 24px }

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 20px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: .94rem; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(241,85,50,.28); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 8px 24px rgba(241,85,50,.36); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--text-mut); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: rgba(241,85,50,.2); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-link { padding: 0; min-height: auto; color: var(--brand); font-weight: 600; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: .85rem; border-radius: 8px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { min-height: 54px; padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { min-height: 40px; width: 40px; padding: 0; border-radius: 10px; color: var(--text-soft); }
.btn-icon:hover { background: var(--surface-3); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CARDS ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.card-pad-lg { padding: clamp(22px, 3vw, 34px); }
.card-hover { transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.glass { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------- BADGES / PILLS ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-mut { background: var(--surface-3); color: var(--text-mut); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand);
}

/* ---------- FORMULÁRIOS ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .lbl { font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-mut); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface);
}
.input[aria-invalid="true"] { border-color: var(--red); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7683' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 17px;
}
.field-error { font-size: .8rem; color: var(--red); font-weight: 500; }
.field-hint { font-size: .8rem; color: var(--text-mut); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: none; }
.input-group .addon {
  display: flex; align-items: center; padding: 0 14px;
  background: var(--surface-3); border: 1px solid var(--border-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft); font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--brand); cursor: pointer; flex: none; }
.pwd-wrap { position: relative; }
.pwd-wrap .input { padding-right: 46px; }
.pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 8px; color: var(--text-mut);
}
.pwd-toggle:hover { background: var(--surface-3); color: var(--text); }
.pwd-toggle svg { width: 18px; height: 18px; }

/* segmented control */
.seg { display: inline-flex; padding: 4px; background: var(--surface-3); border-radius: 999px; gap: 2px; }
.seg button {
  min-height: 38px; padding: 8px 18px; border-radius: 999px;
  font-weight: 600; font-size: .88rem; color: var(--text-soft);
  transition: background-color .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--text); }

/* ---------- TABELAS ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
thead th {
  text-align: left; padding: 13px 16px;
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-mut); background: var(--surface-2);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .92rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: var(--surface-2); }
.td-right { text-align: right; }
.td-actions { white-space: nowrap; }
.t-strong { font-weight: 600; }

/* ---------- MÉTRICAS ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.kpi-label { font-size: .8rem; font-weight: 600; color: var(--text-mut); text-transform: uppercase; letter-spacing: .05em; }
.kpi-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.kpi-ico svg { width: 19px; height: 19px; }
.kpi-value { font-size: clamp(1.5rem, 3vw, 1.95rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kpi-sub { font-size: .82rem; color: var(--text-mut); margin-top: 5px; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: .82rem; }
.trend svg { width: 14px; height: 14px; }
.trend-up { color: var(--green); }
.trend-down { color: var(--red); }

/* ---------- ESTADO VAZIO ---------- */
.empty { text-align: center; padding: 52px 24px; }
.empty-ico {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 18px;
  background: var(--surface-3); color: var(--text-mut); display: grid; place-items: center;
}
.empty-ico svg { width: 28px; height: 28px; }
.empty h3 { margin-bottom: 6px; }
.empty p { margin: 0 auto 18px; color: var(--text-mut); max-width: 42ch; }

/* ---------- BARRA DE PROGRESSO ---------- */
.bar { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .5s ease; }
.bar.ok > span { background: var(--green); }
.bar.warn > span { background: var(--amber); }
.bar.crit > span { background: var(--red); }

/* ---------- CÓDIGO / DNS ---------- */
.code {
  font-family: var(--mono); font-size: .82rem;
  background: var(--code-bg); color: var(--code-text);
  padding: 14px 16px; border-radius: var(--radius-sm);
  overflow-x: auto; white-space: pre; line-height: 1.65;
}
.copy-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 8px 7px 12px;
}
.copy-row code {
  font-family: var(--mono); font-size: .8rem; color: var(--text);
  overflow-x: auto; white-space: nowrap; flex: 1; scrollbar-width: none;
}
.copy-row code::-webkit-scrollbar { display: none; }

/* ---------- HEADER PÚBLICO ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 26px; width: auto; }
.logo-sep { width: 1px; height: 20px; background: var(--border-strong); }
.logo-name { font-weight: 700; letter-spacing: -.03em; font-size: 1.06rem; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 9px 14px; border-radius: 9px; font-weight: 500; font-size: .92rem; color: var(--text-soft);
  transition: background-color .2s, color .2s;
}
.site-nav a:hover, .site-nav a.active { background: var(--surface-3); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .site-nav { display: none; }
  .nav-toggle { display: grid; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px; box-shadow: var(--shadow-md);
  }
  .site-nav.open a { padding: 13px 14px; }
  .header-actions .btn-ghost { display: none; }
}

/* ---------- HERO ---------- */
.hero { padding: clamp(52px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 56px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin: 18px 0 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; }
.hero-trust li { display: flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--text-soft); }
.hero-trust svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* mock de caixa de entrada */
.inbox-mock {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.inbox-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.inbox-bar .tl { display: flex; gap: 6px; }
.inbox-bar .tl i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.inbox-bar .addr {
  flex: 1; text-align: center; font-size: .78rem; color: var(--text-mut);
  font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inbox-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.inbox-item { display: flex; gap: 12px; padding: 12px; border-radius: 10px; transition: background-color .2s; }
.inbox-item:hover { background: var(--surface-2); }
.inbox-item.unread { background: var(--brand-soft); }
.inbox-av {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: .82rem; color: #fff;
}
.inbox-txt { min-width: 0; flex: 1; }
.inbox-from { font-weight: 600; font-size: .88rem; display: flex; justify-content: space-between; gap: 8px; }
.inbox-from time { font-weight: 500; color: var(--text-mut); font-size: .76rem; white-space: nowrap; }
.inbox-sub { font-size: .84rem; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- PREÇOS ---------- */
.plans { display: grid; gap: 18px; align-items: start; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 22px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.plan:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.plan-featured {
  border-color: var(--brand); border-width: 2px; box-shadow: 0 16px 44px rgba(241,85,50,.16);
}
@media (min-width: 1080px) { .plan-featured { transform: scale(1.035); } }
.plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; padding: 5px 15px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(241,85,50,.35);
}
.plan-head { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.plan-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.plan-desc { font-size: .87rem; color: var(--text-mut); line-height: 1.55; }
@media (min-width: 1080px) { .plan-desc { min-height: 66px; } }
.plan-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.plan-price .cur { font-size: 1rem; font-weight: 600; color: var(--text-soft); }
.plan-price .val { font-size: 2.45rem; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.plan-price .per { flex-basis: 100%; font-size: .82rem; color: var(--text-mut); font-weight: 500; margin-top: 2px; }
.plan-note { font-size: .79rem; color: var(--text-mut); margin-top: 8px; line-height: 1.5; }
.plan-feats { display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-feats li { display: flex; gap: 10px; font-size: .9rem; align-items: flex-start; }
.plan-feats svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 2px; }
.plan-feats .off { color: var(--text-mut); }
.plan-feats .off svg { color: var(--text-mut); }
.save-pill { background: var(--green-soft); color: var(--green); padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }

/* comparativo */
.compare th:first-child, .compare td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.compare thead th:first-child { background: var(--surface-2); }
.compare td { text-align: center; }
.compare td:first-child { text-align: left; font-weight: 500; }
.compare svg { width: 18px; height: 18px; margin: 0 auto; }
.yes { color: var(--green); }
.no { color: var(--text-mut); opacity: .5; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: .98rem;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 18px; height: 18px; flex: none;
  background: currentColor; opacity: .5; transition: transform .25s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--text-soft); font-size: .94rem; line-height: 1.7; }
.faq .faq-body p { max-width: none; }

/* ---------- FEATURES ---------- */
.feats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; transition: border-color .2s, box-shadow .2s; }
.feat:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feat-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.feat-ico svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.04rem; margin-bottom: 8px; }
.feat p { font-size: .91rem; color: var(--text-soft); line-height: 1.65; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: auto; }
.footer-grid { display: grid; gap: 32px; padding: 52px 0 36px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-mut); margin-bottom: 14px; }
.footer-grid li + li { margin-top: 9px; }
.footer-grid a { font-size: .9rem; color: var(--text-soft); transition: color .2s; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0 28px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .84rem; color: var(--text-mut);
}
.footer-bottom a { color: var(--brand); font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- APP SHELL ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: var(--surface);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  z-index: var(--z-drawer);
}
.sidebar-head { padding: 20px; border-bottom: 1px solid var(--border); }
.sidebar-nav { padding: 14px 12px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nav-sec { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-mut); padding: 16px 12px 7px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 10px; min-height: 44px;
  font-size: .92rem; font-weight: 500; color: var(--text-soft);
  transition: background-color .18s, color .18s;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item .count { margin-left: auto; font-size: .76rem; font-weight: 600; color: var(--text-mut); background: var(--surface-3); padding: 2px 8px; border-radius: 99px; }
.nav-item.active .count { background: var(--brand); color: #fff; }
.sidebar-foot { padding: 14px 12px; border-top: 1px solid var(--border); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.impersonate-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--brand); color: #fff; padding: 10px clamp(16px, 3vw, 28px);
  font-size: .88rem; font-weight: 500;
}
.impersonate-bar span { display: inline-flex; align-items: center; gap: 8px; }
.impersonate-bar svg { width: 16px; height: 16px; }
.app-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 clamp(16px, 3vw, 28px);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.app-body { padding: clamp(20px, 3vw, 32px); flex: 1; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -.03em; }
.page-head p { color: var(--text-mut); font-size: .94rem; margin-top: 5px; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .84rem;
}
.avatar-lg { width: 52px; height: 52px; font-size: 1.05rem; border-radius: 16px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; transition: background-color .2s; }
.user-chip:hover { background: var(--surface-3); }
.user-chip .nm { font-size: .86rem; font-weight: 600; line-height: 1.25; }
.user-chip .rl { font-size: .74rem; color: var(--text-mut); }
.user-chip .hidden-sm { display: block; max-width: 160px; overflow: hidden; }
.user-chip .hidden-sm .nm, .user-chip .hidden-sm .rl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .user-chip .hidden-sm { display: none; } }

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.sidebar-toggle { display: none; }

@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100dvh;
    transform: translateX(-100%); transition: transform .28s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: grid; }
}

/* ---------- MODAL ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 520px; max-height: 90dvh; overflow-y: auto;
  animation: popIn .24s cubic-bezier(.2,.9,.3,1.2);
}
.modal-lg { max-width: 760px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 24px 0; }
.modal-head h3 { font-size: 1.15rem; }
.modal-head p { font-size: .88rem; color: var(--text-mut); margin-top: 4px; }
.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { padding: 0 24px 22px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97) } to { opacity: 1; transform: none } }

/* ---------- TOAST ---------- */
#toast-root {
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px);
}
.toast {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 13px 16px; box-shadow: var(--shadow-lg);
  min-width: 260px; max-width: 380px; animation: slideIn .28s cubic-bezier(.2,.9,.3,1.1);
}
.toast svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.toast .tt { font-weight: 600; font-size: .9rem; }
.toast .tm { font-size: .84rem; color: var(--text-soft); margin-top: 2px; }
.toast-ok { border-left-color: var(--green); } .toast-ok svg { color: var(--green); }
.toast-err { border-left-color: var(--red); } .toast-err svg { color: var(--red); }
.toast-info { border-left-color: var(--blue); } .toast-info svg { color: var(--blue); }
.toast-warn { border-left-color: var(--amber); } .toast-warn svg { color: var(--amber); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px) } to { opacity: 1; transform: none } }

/* ---------- AUTH ---------- */
.auth-page { min-height: 100dvh; display: grid; place-items: center; padding: 28px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .card { padding: clamp(26px, 4vw, 36px); }
.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-logo img { height: 30px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--text-mut); font-size: .8rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.demo-box {
  background: var(--blue-soft); border: 1px solid rgba(37,99,235,.25);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: .84rem; line-height: 1.6;
}
.demo-box strong { display: block; margin-bottom: 6px; }
.demo-box code { font-family: var(--mono); font-size: .82em; }

/* ---------- CHECKOUT ---------- */
.checkout-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 940px) { .checkout-grid { grid-template-columns: 1.35fr .85fr; } }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; padding: 8px 0; }
.sum-line.total { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; }
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 600; color: var(--text-mut); }
.step .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); font-size: .78rem; flex: none;
}
.step.done .n { background: var(--green); color: #fff; }
.step.on { color: var(--text); }
.step.on .n { background: var(--brand); color: #fff; }
.step-sep { flex: 1; min-width: 16px; height: 1px; background: var(--border-strong); }

/* qty stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.stepper button { width: 44px; height: 46px; display: grid; place-items: center; color: var(--text-soft); transition: background-color .2s; }
.stepper button:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper input { width: 62px; height: 46px; text-align: center; border: none; background: transparent; font-weight: 700; font-size: 1rem; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { appearance: none; margin: 0; }

/* ---------- DNS CHECK ---------- */
.dns-item {
  display: flex; gap: 14px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2);
}
.dns-state { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.dns-state svg { width: 17px; height: 17px; }
.dns-ok { background: var(--green-soft); color: var(--green); }
.dns-pend { background: var(--amber-soft); color: var(--amber); }
.dns-err { background: var(--red-soft); color: var(--red); }
.dns-info { min-width: 0; flex: 1; }
.dns-info h4 { font-size: .95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dns-info > p { font-size: .84rem; color: var(--text-mut); margin: 3px 0 10px; }

/* ---------- TABS ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 12px 16px; font-weight: 600; font-size: .91rem; color: var(--text-mut);
  border-bottom: 2px solid transparent; white-space: nowrap; min-height: 44px;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- LISTA DE DEFINIÇÕES ---------- */
.dl { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.dl dt { font-size: .78rem; color: var(--text-mut); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 3px; }
.dl dd { font-size: .94rem; font-weight: 600; }

/* ---------- CHARTS ---------- */
.chart-box { position: relative; height: 280px; }
.chart-box-sm { height: 210px; }

/* ---------- TIMELINE / LOGS ---------- */
.tl-list { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.tl-item:not(:last-child)::before {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1px; background: var(--border);
}
.tl-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-soft); z-index: 1; }
.tl-ico svg { width: 15px; height: 15px; }
.tl-body { min-width: 0; flex: 1; }
.tl-body .t { font-size: .91rem; font-weight: 600; }
.tl-body .d { font-size: .82rem; color: var(--text-mut); margin-top: 2px; }

/* ---------- UTIL ---------- */
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.clickable { cursor: pointer; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page { display: flex; flex-direction: column; min-height: 100dvh; }
.fade-in { animation: fadeUp .32s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
