/*
Theme Name: Agência Especializada
Theme URI: https://agenciaespecializadaseo.com.br
Author: Agência Especializada
Description: Tema dark-first otimizado para navegação agêntica (GEO/SEO). HTML5 semântico, Schema.org, REST API própria.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: agencia-custom
*/


/* Cards expansíveis (ferramentas gratuitas) */
.tool-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-2); transition: all .3s ease; }
.tool-card summary { cursor: pointer; padding: 1.2rem 1.5rem; font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: .5rem; list-style: none; }
.tool-card summary::-webkit-details-marker { display: none; }
.tool-card summary::after { content: '▾'; margin-left: auto; transition: transform .3s; font-size: .8rem; opacity: .6; }
.tool-card[open] summary::after { transform: rotate(180deg); }
.tool-card[open] summary { border-bottom: 1px solid var(--border); background: var(--bg-2); }
.tool-card .tool-card-body { padding: 1rem 1.5rem 1.5rem; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.tool-card:hover { border-color: var(--primary-400); box-shadow: 0 4px 20px rgba(14,165,233,.1); }


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-0: #08090d;
  --bg-1: #0d0f16;
  --bg-2: #12141d;
  --bg-3: #181b26;

  /* Surfaces / borders */
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Brand */
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --accent-300: #c4b5fd;
  --accent-400: #a78bfa;
  --accent-500: #8b5cf6;

  /* Text */
  --text-1: #f4f6fb;
  --text-2: #b7bdcc;
  --text-3: #7d8496;

  /* Status */
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;

  /* Effects */
  --glow-primary: 0 0 40px rgba(14, 165, 233, 0.25);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 16px 48px rgba(0, 0, 0, 0.5);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Monaco, Menlo, 'Ubuntu Mono', monospace;

  /* Layout */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text-1);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--primary-400); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-300); }

code, pre { font-family: var(--font-mono); font-size: 0.875em; }

::selection { background: rgba(14, 165, 233, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--primary-500);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--alt { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-400);
  margin-bottom: 1rem;
}
.section-head .kicker::before,
.section-head .kicker::after {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-500));
}
.section-head .kicker::after { background: linear-gradient(90deg, var(--primary-500), transparent); }
.section-head p { color: var(--text-3); font-size: 1.1rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.text-gradient {
  background: linear-gradient(100deg, var(--primary-400) 10%, var(--accent-400) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-1);
}
.btn-outline:hover {
  border-color: var(--primary-400);
  color: var(--primary-300);
  background: rgba(14, 165, 233, 0.06);
}

.btn-ghost { background: transparent; color: var(--text-2); padding-inline: 1rem; }
.btn-ghost:hover { color: var(--text-1); }

.btn-lg { padding: 1.05rem 2.25rem; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ============================================================
   5. BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}
.badge-primary { border-color: rgba(14, 165, 233, 0.35); background: rgba(14, 165, 233, 0.1); color: var(--primary-300); }
.badge-accent { border-color: rgba(167, 139, 250, 0.35); background: rgba(139, 92, 246, 0.12); color: var(--accent-300); }
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 50% { opacity: 0.4; } }

/* ============================================================
   6. CARDS
   ============================================================ */
.card {
  background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: var(--shadow-lift), var(--glow-primary);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(14, 165, 233, 0.25);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-3); font-size: 0.95rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.card-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.card-link:hover::after { transform: translateX(4px); }

/* ============================================================
   7. HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 9, 13, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text-1); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.4);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text-1); background: var(--surface-hover); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.65rem;
  cursor: pointer;
  color: var(--text-1);
}
.nav-toggle .bars { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform 0.25s;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 0.85rem 1rem; font-size: 1rem; }
  .header-cta .btn-outline { display: none; }
  /* Submenu no mobile: sempre visível, indentado */
  .has-submenu .submenu {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 1rem;
    min-width: 0;
  }
  .submenu-caret { display: none; }
}

/* Submenu dropdown (desktop) */
.has-submenu { position: relative; }
.submenu-caret { font-size: 0.7em; opacity: 0.7; margin-left: 2px; }
.has-submenu .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--surface-1, #0e1016);
  border: 1px solid var(--border-strong, rgba(255,255,255,.12));
  border-radius: var(--radius-sm, 10px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  padding: 0.4rem;
  margin: 0;
  list-style: none;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-submenu .submenu li { list-style: none; }
.has-submenu .submenu a { display: block; padding: 0.55rem 0.9rem; white-space: nowrap; }

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(14, 165, 233, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 20%, rgba(139, 92, 246, 0.12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.hero .badge { margin-bottom: 1.75rem; white-space: normal; text-align: center; max-width: 100%; line-height: 1.5; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 2.25rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}
.hero-stat { background: var(--bg-1); padding: 1.5rem 1rem; text-align: center; }
.hero-stat .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  display: block;
}
.hero-stat .num em { font-style: normal; color: var(--primary-400); }
.hero-stat .label { font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hero .badge { font-size: 0.72rem; padding: 0.4rem 0.7rem; } }
@media (max-width: 480px) {
  .hero .badge { display: block; text-align: left; }
  .hero-actions { flex-direction: column; align-items: center; }
  /* Cookie banner LGPD — empilha no mobile, nao quebra layout */
  #lgpd-banner { padding: 10px 12px; flex-direction: column; gap: 8px; text-align: center; }
  #lgpd-banner p { font-size: 0.75rem; max-width: 100%; }
  /* Mobile geral */
  .container { padding: 0 14px; }
  .hero h1 { font-size: 1.4rem; }
  .hero .lead { font-size: .9rem; }
  .section-head h2 { font-size: 1.25rem; }
  .kicker { font-size: .72rem; }
  .card { padding: 1rem; }
  .grid-2, .grid-3, .grid-4 { gap: .75rem; }
  .site-footer { padding: 2rem 0 1rem; }
  .footer-bottom { font-size: .72rem; }
  .delfos-pricing-grid { max-width: 100%; }
  .hosting-stats { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  /* Cards expansíveis */
  .tool-card summary { padding: .8rem 1rem; font-size: .85rem; }
  .tool-card .tool-card-body { padding: .8rem 1rem; }
}

/* Platforms strip */
.platforms {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}
.platforms-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  color: var(--text-3);
  font-weight: 600;
  font-size: 0.95rem;
}
.platforms-inner .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
.platforms-inner span:not(.label) { opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.platforms-inner span:not(.label):hover { opacity: 1; color: var(--text-1); }

/* ============================================================
   9. STEPS (Como funciona)
   ============================================================ */
.steps-grid { margin-top: 3rem; }
.step-card { position: relative; padding-top: 2.5rem; }
.step-num {
  position: absolute;
  top: -1.25rem;
  left: 2rem;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--bg-2);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: var(--primary-400);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* ============================================================
   10. PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.price-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lift); }

.price-card.is-featured {
  border-color: rgba(14, 165, 233, 0.55);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(139, 92, 246, 0.05));
  box-shadow: var(--glow-primary);
}
.price-card.is-featured:hover { box-shadow: var(--shadow-lift), 0 0 60px rgba(14, 165, 233, 0.3); }

.price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.price-card .tier-name { font-size: 1.05rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.25rem; }
.price-card .tier-desc { font-size: 0.88rem; color: var(--text-3); min-height: 2.6em; }

.price-value { display: flex; align-items: baseline; gap: 0.3rem; margin: 1.25rem 0 1.5rem; }
.price-value .currency { font-size: 1rem; color: var(--text-3); font-weight: 600; }
.price-value .amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-value .period { color: var(--text-3); font-size: 0.9rem; }

.price-features { list-style: none; margin: 0 0 2rem; padding: 0; flex: 1; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  color: var(--text-2);
}
.price-features li::before {
  content: "✓";
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  margin-top: 0.2rem;
}

/* ============================================================
   11. FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item[open] { border-color: rgba(14, 165, 233, 0.4); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-400);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--text-3); font-size: 0.95rem; }

/* ============================================================
   12. SEO TOOL (AI Visibility Checker)
   ============================================================ */
.tool-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.tool-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
}
.tool-titlebar .dots { display: flex; gap: 6px; margin-right: 0.5rem; }
.tool-titlebar .dots span { width: 11px; height: 11px; border-radius: 50%; }
.tool-titlebar .dots span:nth-child(1) { background: #ff5f57; }
.tool-titlebar .dots span:nth-child(2) { background: #febc2e; }
.tool-titlebar .dots span:nth-child(3) { background: #28c840; }

.tool-body { padding: 1.75rem; }
.tool-form { display: flex; gap: 0.75rem; }
.tool-form input {
  flex: 1;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tool-form input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}
.tool-form input::placeholder { color: var(--text-3); }
@media (max-width: 560px) { .tool-form { flex-direction: column; } }

.tool-output { margin-top: 1.5rem; display: none; }
.tool-output.is-visible { display: block; animation: fade-up 0.5s var(--ease); }

.tool-score { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.25rem; }
.score-ring {
  width: 92px; height: 92px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-1);
  background:
    radial-gradient(closest-side, var(--bg-2) 82%, transparent 83%),
    conic-gradient(var(--primary-400) calc(var(--score, 0) * 1%), var(--bg-3) 0);
  flex-shrink: 0;
}
.tool-score .verdict { font-weight: 700; color: var(--text-1); font-size: 1.05rem; margin-bottom: 0.2rem; }
.tool-score p { margin: 0; font-size: 0.9rem; color: var(--text-3); }

.tool-checks { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.tool-checks li {
  display: flex;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fade-up 0.4s var(--ease) forwards;
}
.tool-checks li:last-child { border-bottom: 0; }
.tool-checks .status { font-weight: 700; flex-shrink: 0; width: 1.4em; text-align: center; }
.tool-checks li.ok .status { color: var(--success); }
.tool-checks li.warn .status { color: var(--warning); }
.tool-checks li.fail .status { color: var(--danger); }
.tool-note { margin-top: 1.25rem; font-size: 0.8rem; color: var(--text-3); }

/* ============================================================
   13. CTA FINAL
   ============================================================ */
.cta-panel {
  position: relative;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 2rem;
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(139, 92, 246, 0.18), transparent),
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(14, 165, 233, 0.18), transparent),
    var(--bg-1);
  overflow: hidden;
}
.cta-panel h2 { max-width: 620px; margin-inline: auto; }
.cta-panel p { color: var(--text-3); max-width: 520px; margin: 0 auto 2rem; }

/* ============================================================
   14. FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  padding: 4rem 0 2rem;
  margin-top: clamp(4rem, 8vw, 6rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--text-3); font-size: 0.9rem; max-width: 300px; margin-top: 1rem; }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { color: var(--text-2); font-size: 0.92rem; }
.footer-col a:hover { color: var(--primary-300); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-3);
}
.footer-bottom .api-hint { font-family: var(--font-mono); font-size: 0.78rem; }
.footer-bottom .api-hint a { color: var(--text-3); }
.footer-bottom .api-hint a:hover { color: var(--primary-300); }

/* ============================================================
   15. CONTENT / SINGLE / ARCHIVE
   ============================================================ */
.page-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% -20%, rgba(14, 165, 233, 0.12), transparent 70%);
  pointer-events: none;
}
.page-hero .breadcrumbs { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1rem; position: relative; }
.page-hero .breadcrumbs a { color: var(--text-3); }
.page-hero .breadcrumbs a:hover { color: var(--primary-300); }

.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content h2 { margin-top: 2.5rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; color: var(--text-2); }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote {
  border-left: 3px solid var(--primary-500);
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: var(--text-2);
  font-style: italic;
}
.entry-content pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
}

/* ============================================================
   16. ANIMATIONS (scroll reveal)
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   17. BLOG
   ============================================================ */
.cat-chips { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; position: relative; }
.cat-chips .badge:hover { border-color: var(--primary-400); color: var(--primary-300); }

.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 3rem;
  transition: border-color 0.3s;
}
.featured-post:hover { border-color: rgba(14, 165, 233, 0.4); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.featured-body { padding: 2rem 2.5rem 2rem 0; }
.featured-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 1rem 0 0.75rem; }
.featured-body h2 a { color: var(--text-1); }
.featured-body h2 a:hover { color: var(--primary-300); }
.featured-body p { color: var(--text-3); }
@media (max-width: 880px) {
  .featured-post { grid-template-columns: 1fr; gap: 0; }
  .featured-body { padding: 1.75rem; }
}

.post-grid { margin-bottom: 3rem; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card-media { display: block; }
.post-card-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.45s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-card-body h3 { font-size: 1.08rem; margin: 0; line-height: 1.35; }
.post-card-body h3 a { color: var(--text-1); }
.post-card-body h3 a:hover { color: var(--primary-300); }
.post-card-body p { margin: 0; font-size: 0.88rem; }
.post-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-400);
}
.post-card-meta { font-size: 0.8rem; color: var(--text-3); margin-top: auto; }

/* Single post */
.post-hero { padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; text-align: left; }
.post-hero .breadcrumbs { font-size: 0.85rem; color: var(--text-3); margin-bottom: 1.25rem; }
.post-hero .breadcrumbs a { color: var(--text-3); }
.post-hero .breadcrumbs a:hover { color: var(--primary-300); }
.post-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.news-badge { margin-bottom: 1rem; }
.post-standfirst { font-size: 1.15rem; color: var(--text-2); }
.post-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; color: var(--text-3); font-size: 0.9rem; margin-top: 1.25rem; }
.post-meta strong { color: var(--text-1); }

.post-cover { max-width: 980px; margin: 1.5rem auto 2.5rem; }
.post-cover img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); }

.entry-content { font-size: 1.05rem; }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.2rem; margin-top: 2rem; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
/* Respiro entre parágrafos (mesmas regras do EVblog, estilo resposta de IA) */
.entry-content p { margin: 0 0 1.6rem; line-height: 1.75; }
.entry-content ul, .entry-content ol { margin-bottom: 1.6rem; }
.entry-content table { margin: 0 0 1.8rem; width: 100%; border-collapse: collapse; }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 90px; }

/* Card "Resposta Direta" (AEO) */
.article-summary {
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(139,92,246,.10));
  border: 1px solid rgba(14,165,233,.35); border-left: 4px solid var(--primary-400, #0ea5e9);
  border-radius: var(--radius-md, 10px); padding: 1.1rem 1.35rem; margin: 0 0 2rem;
}
.article-summary .summary-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
  color: var(--primary-400, #0ea5e9); margin-bottom: .4rem;
}
.article-summary .summary-text { font-size: 1rem; line-height: 1.7; color: var(--text-1, #e6edf3); }
.article-summary .summary-terms { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.article-summary .summary-tag {
  font-size: .72rem; padding: 2px 10px; border-radius: 20px;
  background: rgba(14,165,233,.15); border: 1px solid rgba(14,165,233,.25); color: var(--primary-400, #0ea5e9);
}

.share-row {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin: 2.5rem 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.share-label { font-size: 0.85rem; color: var(--text-3); font-weight: 600; }
.share-btn { padding: 0.5rem 1rem; font-size: 0.82rem; }

.author-box {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.author-avatar {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}
.author-box p { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--text-3); }

.pagination, .nav-links { display: flex; gap: 0.5rem; justify-content: center; margin: 2rem 0; }
.nav-links .page-numbers {
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.9rem;
}
.nav-links .page-numbers.current { background: var(--primary-500); color: #fff; border-color: var(--primary-500); }
.nav-links a.page-numbers:hover { border-color: var(--primary-400); color: var(--primary-300); }

/* ============================================================
   18. TOOL REPORT (análise real)
   ============================================================ */
.tool-status {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-300);
  margin-top: 1.25rem;
}
.tool-status.is-visible { display: flex; align-items: center; gap: 0.6rem; }
.tool-status .spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(56, 189, 248, 0.25);
  border-top-color: var(--primary-400);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.report-head { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.grade-chip {
  font-size: 0.78rem; font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
}
.grade-A { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.grade-B { background: rgba(56, 189, 248, 0.15); color: var(--primary-300); }
.grade-C { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.grade-D, .grade-E { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.report-meta { font-size: 0.82rem; color: var(--text-3); font-family: var(--font-mono); }

.report-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1rem; }
@media (max-width: 620px) { .report-cats { grid-template-columns: 1fr; } }

.cat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-1);
  overflow: hidden;
}
.cat-card summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  user-select: none;
}
.cat-card summary::-webkit-details-marker { display: none; }
.cat-card .cat-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.cat-card .cat-name { font-weight: 600; color: var(--text-1); font-size: 0.92rem; }
.cat-card .cat-pct { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: var(--text-2); }
.cat-bar { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.cat-bar span {
  display: block; height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-400));
  width: 0;
  transition: width 0.9s var(--ease);
}
.cat-checks { padding: 0 1.1rem 1rem; margin: 0; list-style: none; font-size: 0.84rem; }
.cat-checks li { display: flex; gap: 0.55rem; padding: 0.4rem 0; border-top: 1px solid var(--border); }
.cat-checks .st { font-weight: 800; width: 1.2em; flex-shrink: 0; text-align: center; }
.cat-checks li.pass .st { color: var(--success); }
.cat-checks li.warn .st { color: var(--warning); }
.cat-checks li.fail .st { color: var(--danger); }
.cat-checks .detail { display: block; color: var(--text-3); font-size: 0.78rem; margin-top: 0.15rem; }

.psi-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.psi-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--text-3); }
.psi-ring {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: var(--text-1);
  background:
    radial-gradient(closest-side, var(--bg-2) 76%, transparent 77%),
    conic-gradient(var(--ring-color, var(--primary-400)) calc(var(--score, 0) * 1%), var(--bg-3) 0);
}

/* ============================================================
   19. PRO DASHBOARD
   ============================================================ */
.pro-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  min-height: 70vh;
}
@media (max-width: 880px) { .pro-shell { grid-template-columns: 1fr; } }

.pro-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  padding: 1.25rem;
  align-self: start;
  position: sticky;
  top: 88px;
}
@media (max-width: 880px) { .pro-sidebar { position: static; } }

.pro-user { display: flex; align-items: center; gap: 0.7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.pro-user strong { display: block; font-size: 0.9rem; color: var(--text-1); line-height: 1.2; }
.pro-user span { font-size: 0.75rem; color: var(--text-3); }

.pro-sidebar nav { display: flex; flex-direction: column; gap: 0.25rem; }
.pro-nav-btn {
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.pro-nav-btn:hover { background: var(--surface-hover); color: var(--text-1); }
.pro-nav-btn.is-active { background: rgba(14, 165, 233, 0.12); color: var(--primary-300); }

.pro-content { min-width: 0; }
.pro-panel { display: none; }
.pro-panel.is-active { display: block; animation: fade-up 0.4s var(--ease); }
.pro-loading { color: var(--text-3); font-family: var(--font-mono); font-size: 0.85rem; padding: 2rem 0; }

.pro-demo-banner {
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.07);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}
.pro-demo-banner strong { color: var(--warning); }

.panel-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.35rem; margin: 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.kpi-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.kpi-value { font-size: 1.7rem; font-weight: 800; color: var(--text-1); letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 0.6rem; }
.kpi-delta { font-size: 0.8rem; font-weight: 700; }
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--danger); }
.kpi-hint { font-size: 0.72rem; color: var(--text-3); }

.chart-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1.2rem 1.3rem 0.9rem;
  margin-bottom: 1rem;
}
.chart-card h3 { font-size: 0.9rem; color: var(--text-2); margin-bottom: 0.75rem; }
.chart-card canvas { width: 100%; height: 90px; display: block; }

.pro-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.pro-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.pro-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 0.75rem 1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.pro-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-2); }
.pro-table tr:last-child td { border-bottom: 0; }
.pro-table tr:hover td { background: var(--surface-hover); }
.pro-table td.num { text-align: right; font-family: var(--font-mono); font-size: 0.82rem; white-space: nowrap; }
.pro-table th:not(:first-child) { text-align: right; }
.pro-table code { font-size: 0.78rem; color: var(--primary-300); }

.pos-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}
.pos-chip.top { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.pos-chip.mid { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.pos-chip.low { background: rgba(248, 113, 113, 0.15); color: var(--danger); }

.op-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary-500);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.op-card.ctr_fix { border-left-color: var(--accent-400); }
.op-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.op-head strong { color: var(--text-1); font-size: 0.95rem; }
.op-metric { font-family: var(--font-mono); font-size: 0.78rem; color: var(--success); font-weight: 700; white-space: nowrap; }
.op-card p { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--text-3); }

.rec-card {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.rec-idx {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 800; font-size: 0.85rem;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2);
}
.rec-top { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.rec-top strong { color: var(--text-1); font-size: 0.95rem; }
.rec-prio {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem; border-radius: var(--radius-full);
}
.prio-alta .rec-prio { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.prio-média .rec-prio { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.prio-baixa .rec-prio { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.rec-area { font-size: 0.72rem; color: var(--text-3); }
.rec-card p { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--text-3); }

/* ============================================================
   20. LABORATÓRIO DE FERRAMENTAS (abas + keywords)
   ============================================================ */
.tool-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.tool-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.tool-tab:hover { border-color: var(--border-strong); color: var(--text-1); }
.tool-tab.is-active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(139, 92, 246, 0.14));
  border-color: rgba(14, 165, 233, 0.5);
  color: var(--primary-300);
}

.tool-pane { display: none; margin: 0 auto; }
.tool-pane.is-active { display: block; }

.kw-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.25rem 1.1rem 1.1rem; }
.kw-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.kw-chip:hover { border-color: var(--primary-400); color: var(--primary-300); }

.kw-chip.is-locked {
  color: var(--text-3);
  opacity: 0.45;
  filter: blur(2.5px);
  user-select: none;
  pointer-events: none;
}

.is-locked-row span:last-child {
  color: var(--text-3);
  opacity: 0.4;
  filter: blur(3px);
  user-select: none;
}

.teaser-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.07), rgba(139, 92, 246, 0.08));
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-2);
}
.teaser-cta .btn { padding: 0.55rem 1.1rem; font-size: 0.82rem; }

/* ---- Headline analyzer p/ Discover ---- */
.hl-pipe {
  border: 1px solid rgba(14, 165, 233, 0.3);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(139, 92, 246, 0.05));
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}
.hl-pipe-head { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; font-size: 0.9rem; }
.hl-pipe-tag {
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.14rem 0.5rem; border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.18); color: var(--info, #38bdf8);
}
.hl-pipe-weight {
  margin-left: auto; font-size: 0.72rem; font-weight: 700;
  color: var(--text-2); background: rgba(255,255,255,0.05);
  padding: 0.12rem 0.5rem; border-radius: var(--radius-full);
}
.hl-pipe p { margin: 0.45rem 0 0; font-size: 0.8rem; color: var(--text-3); line-height: 1.5; }

.hl-checks li { align-items: flex-start; }
.hl-fix { display: block; color: var(--text-3); font-size: 0.76rem; margin-top: 0.15rem; opacity: 0.9; }

.hl-rewrites { margin-top: 1.1rem; }
.hl-rw-title { font-size: 0.82rem; font-weight: 700; color: var(--text-2); margin-bottom: 0.5rem; }
.hl-rw-title span { font-weight: 400; color: var(--text-3); font-size: 0.74rem; }
.hl-rw {
  display: flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem; margin-bottom: 0.5rem;
  font-size: 0.85rem; color: var(--text-1); background: rgba(255,255,255,0.02);
}
.hl-rw span { flex: 1; }
.hl-copy {
  flex-shrink: 0; cursor: pointer; font-size: 0.72rem; font-weight: 700;
  border: 1px solid rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.12);
  color: var(--text-1); padding: 0.3rem 0.7rem; border-radius: var(--radius-full);
  transition: background 0.15s;
}
.hl-copy:hover { background: rgba(139, 92, 246, 0.24); }
.hl-portals { margin-top: 0.9rem; font-size: 0.76rem; color: var(--text-3); }
.hl-portals strong { color: var(--text-2); font-weight: 600; }
.tool-output-error { color: var(--danger); font-size: 0.86rem; padding: 0.5rem 0; }

.tab-tag {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-300);
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* ============================================================
   21. LOGIN PRO (tela própria)
   ============================================================ */
.login-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  position: relative;
}
.login-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 20%, rgba(14, 165, 233, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 60% at 75% 80%, rgba(139, 92, 246, 0.1), transparent 70%);
  pointer-events: none;
}
.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-lift);
}
.login-card .brand { justify-content: center; margin-bottom: 1.5rem; }
.login-card h1 { font-size: 1.45rem; text-align: center; margin-bottom: 0.4rem; }
.login-card .login-sub { text-align: center; color: var(--text-3); font-size: 0.9rem; margin-bottom: 1.75rem; }

.login-field { margin-bottom: 1rem; }
.login-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-2); margin-bottom: 0.4rem; }
.login-field input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-field input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.login-error {
  display: none;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  color: var(--danger);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.login-error.is-visible { display: block; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.5rem 0;
  color: var(--text-3);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.login-foot { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-3); }
.login-foot a { font-weight: 600; }

/* ============================================================
   22. PRO v3 — projetos, GEO hero, domínio, roteiro
   ============================================================ */
.project-switch {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.project-switch label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 700;
}
.project-switch select {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: 0.55rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  width: 100%;
}
.project-manage {
  background: none; border: none; cursor: pointer;
  text-align: left;
  color: var(--text-3);
  font-size: 0.75rem;
  padding: 0.15rem 0;
}
.project-manage:hover { color: var(--primary-300); }
.project-form { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 0.5rem; }
.project-form input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
}
.project-form input:focus { outline: none; border-color: var(--primary-400); }
.pf-msg { margin: 0; font-size: 0.72rem; color: var(--success); min-height: 1em; }

/* GEO hero (visão geral) */
.geo-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 760px) { .geo-hero { grid-template-columns: 1fr; } }
.geo-hero-score {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(52, 211, 153, 0.08), transparent),
    var(--surface);
  padding: 1.5rem 1.75rem;
}
.geo-hero-score .verdict { font-size: 1.1rem; }
.geo-hero-flags {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.1rem 1.4rem;
}
.geo-hero-flags h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-300);
  margin-bottom: 0.6rem;
}
.geo-hero-flags .cat-checks li { padding: 0.3rem 0; border-top: none; }

/* Análise de domínio */
.domain-rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 720px) { .domain-rings { grid-template-columns: 1fr; } }
.domain-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.5rem 1rem;
}
.domain-ring-item span { font-weight: 700; color: var(--text-1); font-size: 0.95rem; }
.domain-ring-item small { color: var(--text-3); font-size: 0.72rem; max-width: 220px; }
.cmp-win { color: var(--success); font-weight: 800; }

/* Intenção + gap nas keywords */
.intent-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  vertical-align: middle;
}
.intent-informacional { background: rgba(56, 189, 248, 0.15); color: var(--primary-300); }
.intent-comercial     { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.intent-transacional  { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.intent-navegacional  { background: rgba(255, 255, 255, 0.08); color: var(--text-3); }

.kw-rank, .kw-gap {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}
.kw-rank { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.kw-gap  { background: rgba(139, 92, 246, 0.18); color: var(--accent-300); }

/* Plano de ação (roteiro) */
.roadmap-h {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-400);
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.rec-tag {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-3);
}
.rec-card summary::-webkit-details-marker { display: none; }
.rec-body {
  margin: 0.75rem 0 0.25rem 2.9rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--primary-500);
  background: rgba(14, 165, 233, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--text-2);
}
.rec-body ol { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.rec-body li { margin-bottom: 0.3rem; }

/* ============================================================
    20. HOSTING / REVENDA
    ============================================================ */
.hosting-hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  text-align: center;
}
.hosting-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(14, 165, 233, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(139, 92, 246, 0.12), transparent 70%);
  pointer-events: none;
}
.hosting-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}
.hosting-hero .badge { margin-bottom: 1.75rem; position: relative; z-index: 1; }
.hosting-hero h1 { position: relative; z-index: 1; margin-bottom: 1.25rem; }
.hosting-hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-2);
  max-width: 650px;
  margin: 0 auto 2.25rem;
  position: relative; z-index: 1;
}
.hosting-hero .hero-actions { position: relative; z-index: 1; }
.hosting-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.hosting-stats > div { background: var(--bg-1); padding: 1.5rem 1rem; text-align: center; }
.hosting-stats .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-400);
  letter-spacing: -0.03em;
  display: block;
}
.hosting-stats .label { font-size: 0.78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 640px) { .hosting-stats { grid-template-columns: repeat(2, 1fr); } }

/* Comparison cards */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 960px) { .comparison-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.comparison-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.comparison-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lift); }
.comparison-card.is-highlight {
  border-color: rgba(14, 165, 233, 0.55);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(139, 92, 246, 0.05));
  box-shadow: var(--glow-primary);
}
.comparison-card.is-highlight:hover { box-shadow: var(--shadow-lift), 0 0 60px rgba(14, 165, 233, 0.3); }

.comparison-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--primary-400);
  margin-bottom: 1.25rem;
}
.comparison-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.comparison-sub {
  font-size: 0.85rem;
  color: var(--text-3);
  font-style: italic;
  margin-bottom: 1.25rem;
  min-height: 2.5em;
}
.comparison-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}
.comparison-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-2);
}
.comparison-features li.no { color: var(--text-3); }
.comparison-features li.ok { color: var(--text-2); }
.comparison-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.tag-highlight {
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary-300);
  border-color: rgba(14, 165, 233, 0.35);
}

/* Comparison table */
.table-wrapper { overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.comparison-table th, .comparison-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  background: var(--bg-3);
  color: var(--text-1);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--surface-hover); }
.comparison-table th:first-child, .comparison-table td:first-child { font-weight: 600; color: var(--text-1); }
.comparison-table .col-highlight {
  background: rgba(14, 165, 233, 0.06);
}
.comparison-table thead .col-highlight {
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary-300);
}
.table-yes { color: var(--success); font-weight: 700; }
.table-no { color: var(--danger); font-weight: 700; }

/* Dev terminal showcase */
.dev-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 880px) { .dev-showcase { grid-template-columns: 1fr; } }

.dev-terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.dev-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
}
.dev-terminal-bar .dots { display: flex; gap: 5px; margin-right: 0.5rem; }
.dev-terminal-bar .dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-3);
}
.dev-terminal-bar .dots span:nth-child(1) { background: #f87171; }
.dev-terminal-bar .dots span:nth-child(2) { background: #fbbf24; }
.dev-terminal-bar .dots span:nth-child(3) { background: #34d399; }
.dev-terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-2);
  overflow-x: auto;
}
.dev-terminal-body .prompt { color: var(--success); }
.dev-terminal-body .output { color: var(--text-3); }
.dev-terminal-body .cursor {
  color: var(--primary-400);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.dev-features { display: flex; flex-direction: column; gap: 1.25rem; }
.dev-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s;
}
.dev-feature:hover { border-color: rgba(14, 165, 233, 0.4); }
.dev-feature-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.dev-feature h4 { font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--text-1); }
.dev-feature p { font-size: 0.85rem; color: var(--text-3); margin: 0; }

/* Migration stats */
.migrate-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.migrate-stats > div { text-align: center; }
.migrate-stats .num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
}
.migrate-stats .label {
  font-size: 0.8rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
}
.wa-float:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}
.wa-float svg { flex-shrink: 0; }
.wa-float-label {
  display: none;
}
@media (min-width: 640px) {
  .wa-float { padding: 0.85rem 1.5rem; }
  .wa-float-label { display: inline; }
}

/* ============================================================
    22. DELFOS AGENTE
    ============================================================ */

/* Hero */
.delfos-hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  text-align: center;
}
.delfos-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(14, 165, 233, 0.2), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(139, 92, 246, 0.15), transparent 70%);
  pointer-events: none;
}
.delfos-hero .badge { margin-bottom: 1.5rem; position: relative; z-index: 1; }
.delfos-hero h1 { position: relative; z-index: 1; margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 3.2rem); }
.delfos-hero .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto 2rem;
  position: relative; z-index: 1;
}
.delfos-hero .hero-actions { position: relative; z-index: 1; }

.delfos-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.delfos-stats > div { background: var(--bg-1); padding: 1.25rem 1rem; text-align: center; }
.delfos-stats .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-400);
  letter-spacing: -0.03em;
  display: block;
}
.delfos-stats .label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 640px) { .delfos-stats { grid-template-columns: repeat(2, 1fr); } }

/* Flow grid (DELFOS → ATLAS → SSH) */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}
@media (max-width: 960px) {
  .flow-grid { grid-template-columns: 1fr; gap: 1rem; }
  .flow-arrow { transform: rotate(90deg); text-align: center; }
}
.flow-step {
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.flow-step:hover { border-color: rgba(14, 165, 233, 0.4); box-shadow: var(--shadow-lift); }
.flow-num {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.flow-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.flow-step p { font-size: 0.85rem; color: var(--text-3); margin: 0; }
.flow-arrow {
  font-size: 1.5rem;
  color: var(--primary-400);
  text-align: center;
  font-weight: 300;
}

/* Case terminal */
.case-showcase {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 880px) { .case-showcase { grid-template-columns: 1fr; } }
.case-terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.case-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
}
.case-terminal-bar .dots { display: flex; gap: 5px; }
.case-terminal-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.case-terminal-bar .dots span:nth-child(1) { background: #f87171; }
.case-terminal-bar .dots span:nth-child(2) { background: #fbbf24; }
.case-terminal-bar .dots span:nth-child(3) { background: #34d399; }
.case-terminal-body {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-2);
  overflow-x: auto;
}
.case-terminal-body .prompt { color: var(--primary-400); font-weight: 600; }
.case-terminal-body .output { color: var(--text-3); }
.case-terminal-body .cursor { color: var(--success); animation: blink 1s step-end infinite; }

.case-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.case-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color 0.25s;
}
.case-result-card:hover { border-color: rgba(14, 165, 233, 0.35); }
.case-result-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-400);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.case-result-label { font-size: 0.78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* DELFOS pricing grid */
.delfos-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) { .delfos-pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

.delfos-price-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.delfos-price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lift); }
.delfos-price-card.is-featured {
  border-color: rgba(14, 165, 233, 0.55);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(139, 92, 246, 0.05));
  box-shadow: var(--glow-primary);
  transform: scale(1.03);
}
.delfos-price-card.is-featured:hover { box-shadow: var(--shadow-lift), 0 0 60px rgba(14, 165, 233, 0.3); }

/* Terminal preview (page-delfos) */
.term-preview {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  max-width: 700px;
  margin: 0 auto;
}
.term-preview-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
  margin: 0;
}
.term-preview-bar .dots { display: flex; gap: 5px; }
.term-preview-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.term-preview-bar .dots span:nth-child(1) { background: #f87171; }
.term-preview-bar .dots span:nth-child(2) { background: #fbbf24; }
.term-preview-bar .dots span:nth-child(3) { background: #34d399; }
.term-preview-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-2);
  min-height: 60px;
}
.term-preview-body .tprompt { color: var(--success); font-weight: 600; }
.term-preview-body .tcursor { color: var(--primary-400); animation: blink 1s step-end infinite; }
.term-preview-body .tok-ok { color: var(--success); }
.term-preview-body .tok-warn { color: #fbbf24; }
.term-preview-body .tok-info { color: var(--primary-400); }
.term-preview-body .tok-err { color: var(--danger); }
.term-preview-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
}
.term-preview-input .tprompt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--success);
  white-space: nowrap;
}
.term-preview-input input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

/* Terminal.js (embed) */
.delfos-term-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.delfos-term-bar .dots { display: flex; gap: 5px; }
.delfos-term-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.delfos-term-bar .dots span:nth-child(1) { background: #f87171; }
.delfos-term-bar .dots span:nth-child(2) { background: #fbbf24; }
.delfos-term-bar .dots span:nth-child(3) { background: #34d399; }

.delfos-term-body {
  background: var(--bg-2);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-2);
  max-height: 400px;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.delfos-term-welcome { padding-bottom: 0.5rem; color: var(--text-3); }
.delfos-term-body .delfos-prompt { color: var(--success); font-weight: 600; }
.delfos-term-body .tok-ok { color: var(--success); }
.delfos-term-body .tok-warn { color: #fbbf24; }
.delfos-term-body .tok-info { color: var(--primary-400); }
.delfos-term-body .tok-err { color: var(--danger); }
.delfos-term-body .delfos-line { margin-bottom: 0.25rem; color: var(--text-1); }

.delfos-term-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.delfos-term-input .delfos-prompt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--success);
  white-space: nowrap;
}
.delfos-term-input input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
}

/* ── Skeleton shimmer (percepção de velocidade no carregamento) ── */
.ap-skel-wrap { display: grid; gap: .5rem; }
.ap-skel {
  border-radius: var(--radius-md, 8px);
  background: linear-gradient(90deg, var(--bg-2, #1a2230) 25%, var(--bg-3, #232d3d) 37%, var(--bg-2, #1a2230) 63%);
  background-size: 400% 100%;
  animation: ap-shimmer 1.3s ease-in-out infinite;
}
@keyframes ap-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .ap-skel { animation: none; opacity: .6; } }

/* ============================================================
   TOOL EMBEDS (ferramentas gratuitas)
   ============================================================ */
.tool-embed-wrapper { max-width: 760px; margin: 0 auto; }
.tool-embed-form { display: flex; flex-direction: column; gap: 8px; }
.tool-embed-form label { font-size: .9rem; font-weight: 600; color: var(--text-1); }
.tool-embed-input-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-embed-input-row input { flex: 1; min-width: 200px; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg-1); color: var(--text-1); font-size: .95rem; }
.tool-embed-input-row button { padding: 12px 24px; white-space: nowrap; }
.tool-embed-form textarea { width: 100%; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg-1); color: var(--text-1); font-size: .9rem; resize: vertical; min-height: 120px; }
.tool-embed-result { margin-top: 1.25rem; animation: fadeIn .3s ease; }
.tool-embed-result h4 { font-size: .9rem; margin-bottom: .5rem; }
.tool-embed-container { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.tool-loading { text-align: center; padding: 2rem; color: var(--text-3); font-size: .9rem; }
.tool-loading::before { content: "⏳"; display: block; font-size: 2rem; margin-bottom: .5rem; animation: pulse 1.5s infinite; }
.tool-error { padding: 1rem; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); border-radius: var(--radius-md); color: #ef4444; font-size: .85rem; }
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Tool embed mobile */
@media (max-width: 480px) {
  .tool-embed-input-row { flex-direction: column; }
  .tool-embed-input-row button { width: 100%; }
  .tool-embed-container { padding: 1rem; }
}

/* WhatsApp pill button (estilo consultorseo.biz) */
.wa-pill { white-space: nowrap; }
@media (max-width: 480px) {
  .wa-pill { font-size: .8rem; padding: 10px 16px; gap: 6px; }
  .wa-pill svg { width: 18px; height: 18px; }
}
