/* =================================================================
   Praqt · Mercado Livre — landing page
   Tokens extraídos de Brandkit_Praqt_v15 (tema dark · contexto comercial)
   ================================================================= */
:root {
  --bg: #07060B;
  --surface: #0F0D18;
  --surface-2: #13101E;
  --surface-3: #1D1A2B;
  --surface-4: #2A2640;

  --text: #F4F0FB;
  --text-muted: #A9A1C8;
  --text-dim: #7A72A0;
  --text-faint: #564F73;

  --hairline: rgba(139,92,246,0.10);
  --hairline-strong: rgba(139,92,246,0.24);

  --brand-200: #C4B5FD;
  --brand-300: #A78BFA;
  --brand-400: #8B5CF6;
  --brand-500: #7C3AED;
  --brand-600: #5B21B6;
  --brand-700: #4C1D95;
  --brand-800: #2D1065;

  --hero-300: #898DDC;
  --hero-500: #3B42C4;
  --hero-600: #2F349D;
  --hero-700: #232776;
  --hero-800: #171A4F;

  --cta-300: #BEF264;
  --cta-400: #A3E635;
  --cta-500: #84CC16;
  --cta-border: rgba(163,230,53,0.24);

  --success: #34D399;
  --warning: #FBBF24;
  --error: #F87171;
  --info: #60A5FA;

  --display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px; --r-full: 9999px;
  --shadow-lg: 0 14px 44px rgba(0,0,0,0.42);
  --shadow-cta: 0 0 30px rgba(163,230,53,0.18);

  --nav-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; color: var(--text); }
::selection { background: var(--brand-500); color: #fff; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--cta-400); color: var(--bg); font-weight: 700;
  padding: 10px 16px; border-radius: var(--r-full); transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ---------- Wordmark (Plus Jakarta 800 · −0.05em · ponto verde-lima) ---------- */
.wordmark {
  font-family: 'Plus Jakarta Sans', var(--sans);
  font-weight: 800; font-size: 24px; letter-spacing: -0.05em; line-height: 1;
  color: var(--text); white-space: nowrap;
}
.wordmark .dot { color: var(--cta-400); }
.wordmark-sm { font-size: 18px; }
.wordmark-xs { font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-full); font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 22px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s, transform .18s var(--ease), box-shadow .18s, color .18s;
  white-space: nowrap; min-height: 44px;
}
.btn-primary { background: var(--cta-400); color: #07060B; }
.btn-primary:hover { background: var(--cta-300); transform: translateY(-1px); box-shadow: var(--shadow-cta); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hairline-strong); }
.btn-ghost:hover { border-color: var(--brand-400); background: rgba(124,58,237,0.08); }
.btn-lg { padding: 17px 28px; font-size: 16px; min-height: 54px; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; min-height: 40px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }

.link-arrow { display: inline-flex; gap: 6px; font-weight: 700; color: var(--cta-400); }
.link-arrow:hover { color: var(--cta-300); }
.text-link { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(7,6,11,0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.nav-for {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim); padding-left: 14px; border-left: 1px solid var(--hairline-strong);
}
.nav-links { display: flex; gap: 2px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.nav-links a { padding: 8px 12px; border-radius: var(--r-md); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface-3); }
.nav .btn { margin-left: 8px; }
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 420px) { .nav-for { display: none; } }

/* ---------- Background patterns (brandkit · grid + blob) ---------- */
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.14) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, #000 30%, transparent 85%);
}
.grid-light {
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
}
.blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(110px); }

/* ---------- Typography helpers ---------- */
.kicker, .sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.kicker {
  color: var(--text-muted); padding: 7px 14px; border-radius: var(--r-full);
  background: rgba(15,13,24,.8); border: 1px solid var(--hairline-strong);
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.sec-label { color: var(--brand-300); margin-bottom: 18px; }
.sec-label::before { content: ''; width: 24px; height: 1px; background: currentColor; }

.sec-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.04; letter-spacing: -0.04em;
  max-width: 820px; margin-bottom: 18px; text-wrap: balance;
}
.sec-title em, .hero-title em, .final-title em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.sec-title em { color: var(--brand-300); }
.sec-lead { font-size: 17.5px; color: var(--text-muted); max-width: 660px; line-height: 1.65; margin-bottom: 56px; }
.mono-title { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.fine-print { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.demo-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--hairline);
  padding: 4px 8px; border-radius: var(--r-sm); white-space: nowrap;
}
.demo-note { margin-top: 20px; font-family: var(--mono); font-size: 11px; color: var(--text-faint); letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section-surface { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
@media (max-width: 720px) { .section { padding: 80px 0; } .sec-lead { margin-bottom: 40px; font-size: 16.5px; } }

/* ---------- Severity / small UI atoms (produto) ---------- */
.sev { width: 3px; height: 18px; border-radius: 2px; flex: none; display: inline-block; align-self: center; }
.sev-critical { background: var(--error); }
.sev-high { background: var(--warning); }
.sev-medium { background: var(--info); }
.sev-low { background: var(--text-faint); }
.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-700); color: var(--brand-200);
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
}
.avatar-ai { background: rgba(163,230,53,.12); color: var(--cta-400); border: 1px solid var(--cta-border); }
.avatar-empty { background: transparent; border: 1px dashed var(--text-faint); color: var(--text-faint); }
.due-hot { color: var(--error) !important; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-4); overflow: hidden; margin: 6px 0 14px; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--brand-400); transform-origin: left; }
.bar i.bar-warn { background: var(--warning); }
.bar i.w-72 { --w: 72%; } .bar i.w-38 { --w: 38%; } .bar i.w-15 { --w: 15%; }
.pvm-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--text-muted); }
.pvm-val { font-family: var(--mono); font-size: 11px; color: var(--text); }

.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }
.check-list li::before {
  content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
  border-left: 2px solid var(--brand-300); border-bottom: 2px solid var(--brand-300); transform: rotate(-45deg);
}
.check-list-lg { gap: 14px; margin-bottom: 24px; }
.check-list-lg li { font-size: 15.5px; }

/* =================================================================
   1 · HERO
   ================================================================= */
.hero { position: relative; padding: 80px 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .blob-1 { width: clamp(420px, 55vw, 860px); aspect-ratio: 1; top: -22%; right: -14%; background: radial-gradient(circle, var(--brand-600), transparent 68%); opacity: .55; }
.hero-bg .blob-2 { width: clamp(460px, 58vw, 920px); aspect-ratio: 1; top: 30%; left: -22%; background: radial-gradient(circle, var(--hero-700), transparent 68%); opacity: .5; }
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .kicker { margin-bottom: 26px; }
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em;
  max-width: 1000px; margin-bottom: 24px; text-wrap: balance;
}
.hero-title em { color: var(--cta-400); padding-right: .04em; }
.hero-lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--text-muted); max-width: 640px; line-height: 1.6; margin-bottom: 34px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 28px; }
.hero-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 920px; text-align: left; }
.perk {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.perk:hover { border-color: var(--hairline-strong); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30,10,60,.08); }
.perk-icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--hero-500)); color: #fff;
  box-shadow: 0 6px 16px rgba(124,58,237,.25);
}
.perk-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perk-text { display: grid; gap: 2px; min-width: 0; }
.perk-text strong { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.perk-text span { font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }
@media (max-width: 860px) { .hero-perks { grid-template-columns: 1fr; max-width: 420px; } }

.hero-visual-wrap { position: relative; margin-top: 56px; }
.hero-visual-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-visual { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.hero-visual::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 12%; bottom: -10%;
  background: radial-gradient(ellipse at center, rgba(124,58,237,.35), transparent 70%); filter: blur(40px); z-index: 0;
}
.app-window {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--hairline-strong); border-bottom: 0;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0; overflow: hidden;
  box-shadow: 0 -10px 60px rgba(124,58,237,.12), var(--shadow-lg);
}
.app-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-4); }
.app-title { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--text-muted); letter-spacing: .02em; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.app-body { display: grid; grid-template-columns: 168px minmax(0, 1fr) 280px; min-height: 360px; }
.app-side { padding: 20px 14px; border-right: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 20px; }
.app-side ul { display: grid; gap: 2px; font-size: 13px; color: var(--text-dim); }
.app-side li { padding: 8px 10px; border-radius: var(--r-md); }
.app-side li.is-active { background: rgba(124,58,237,.16); color: var(--text); font-weight: 600; }
.app-main { padding: 20px 20px 24px; min-width: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 12px 14px; display: grid; gap: 6px; }
.stat-label { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.stat-num { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat-warn { color: var(--warning); }
.mini-queue { display: grid; gap: 8px; }
.mq-row {
  display: grid; grid-template-columns: auto 84px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--hairline);
  font-size: 13.5px;
}
.mq-row.is-selected { border-color: var(--cta-border); background: linear-gradient(90deg, rgba(163,230,53,.06), var(--surface) 60%); }
.mq-type { font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.mq-text { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mq-due { font-family: var(--mono); font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.app-detail { border-left: 1px solid var(--hairline); padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; background: rgba(7,6,11,.25); }
.ad-kind { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.ad-question { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.ad-ai { border: 1px solid var(--cta-border); border-radius: var(--r-lg); padding: 14px; background: rgba(163,230,53,.04); }
.ad-ai p { font-size: 13px; line-height: 1.5; margin: 8px 0; }
.ad-actions { display: flex; align-items: center; gap: 10px; }
.ad-actions .pv-btn { margin-top: 0; }
.ad-ghost { font-size: 11px; font-weight: 700; color: var(--text-muted); border: 1px solid var(--hairline-strong); border-radius: var(--r-full); padding: 4px 10px; }

.float-card {
  position: absolute; z-index: 2; width: 250px;
  background: rgba(19,16,30,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hairline-strong); border-radius: var(--r-xl);
  padding: 16px 18px; box-shadow: var(--shadow-lg);
}
.float-card p { font-size: 13.5px; color: var(--text); line-height: 1.5; margin: 8px 0; }
.fc-label { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--cta-400); }
.fc-label-warn { color: var(--warning); }
.fc-meta { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); }
.spark { display: inline-block; }
.float-claim { left: -72px; top: 196px; width: 220px; animation: float 8s ease-in-out -3s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 1280px) { .float-claim { display: none; } }
@media (max-width: 1100px) {
  .app-body { grid-template-columns: minmax(0, 1fr) 260px; }
  .app-side { display: none; }
  .float-claim { display: none; }
}
@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .hero-visual { padding: 0; }
  .hero-visual-wrap { margin-top: 44px; }
  .app-body { grid-template-columns: 1fr; }
  .app-main { padding-bottom: 8px; }
  .app-detail { border-left: 0; border-top: 1px solid var(--hairline); padding-bottom: 72px; }
  .mq-row:nth-child(n+4) { display: none; }
}
@media (max-width: 600px) {
  .stat { padding: 10px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 8.5px; letter-spacing: .03em; }
  .mq-row { grid-template-columns: auto minmax(0,1fr) auto; row-gap: 4px; }
  .mq-type { grid-column: 2; grid-row: 1; }
  .mq-text { grid-column: 2 / 4; grid-row: 2; }
  .mq-row .sev { grid-row: 1 / 3; }
  .mq-due { grid-column: 3; grid-row: 1; }
  .mq-row .avatar { display: none; }
  .app-title { font-size: 10.5px; }
  .app-bar { padding: 12px 14px; gap: 10px; }
  .app-bar .demo-badge { font-size: 8.5px; padding: 3px 6px; }
  .app-dots { display: none; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { width: 100%; }
}

/* =================================================================
   2 · DOR
   ================================================================= */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.pain-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .2s var(--ease);
}
.pain-card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.pain-chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-full);
  padding: 6px 12px; margin-bottom: 8px;
}
.pain-card h3 { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.pain-card p { font-size: 14.5px; color: var(--text-muted); }
.pain-card-quote {
  background: linear-gradient(135deg, var(--brand-800), var(--hero-800));
  border-color: var(--hairline-strong); justify-content: space-between; gap: 22px;
}
.serif-quote { font-family: var(--serif); font-style: italic; font-size: 26px !important; line-height: 1.2; color: var(--text) !important; }
@media (max-width: 960px) { .pain-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .pain-grid { grid-template-columns: 1fr; } .pain-card { padding: 22px; } }

/* =================================================================
   3 · PILARES
   ================================================================= */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.pillar {
  position: relative; background: var(--surface); border: 1px solid var(--hairline-strong);
  border-radius: var(--r-xl); padding: 14px 14px 28px; display: flex; flex-direction: column;
}
.pillar > :not(.pillar-visual) { margin-left: 14px; margin-right: 14px; }
.pillar-visual {
  height: 200px; margin-bottom: 26px; border-radius: var(--r-lg); padding: 18px;
  background:
    radial-gradient(circle at 80% 0%, rgba(124,58,237,.28), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--hairline); overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.pillar-num { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--brand-300); letter-spacing: .08em; margin-bottom: 8px; }
.pillar h3 { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 10px; }
.pillar > p { font-size: 15px; color: var(--text-muted); margin-bottom: 18px; }

.pv-tag { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.pv-tag-ai { color: var(--cta-400); }
.pv-question, .pv-suggest { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 10px 12px; }
.pv-question p, .pv-suggest p { font-size: 13px; margin-top: 4px; }
.pv-suggest { border-color: var(--cta-border); margin-left: 24px; }
.pv-btn { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; color: #07060B; background: var(--cta-400); border-radius: var(--r-full); padding: 5px 10px; }
.pv-list { display: grid; gap: 7px; }
.pv-list li {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 7px 10px; font-size: 12.5px;
}
.pv-list li > span:nth-child(3) { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); }
.pv-list .avatar { width: 22px; height: 22px; font-size: 8.5px; }
.pv-meter { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px 14px 2px; }

@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr; max-width: 560px; } }

/* =================================================================
   4 · IA
   ================================================================= */
.ai-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ai-demo { background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--r-2xl); padding: 20px; }
.ai-demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-full); }
.seg button {
  border: 0; background: transparent; color: var(--text-dim); cursor: pointer;
  padding: 9px 14px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; min-height: 36px;
  transition: background-color .15s, color .15s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--surface-4); color: var(--text); }
.ai-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-col { border-radius: var(--r-xl); padding: 18px; border: 1px solid var(--hairline); background: var(--surface-2); min-height: 360px; }
.ai-col-praqt { border-color: var(--hairline-strong); background: linear-gradient(180deg, rgba(124,58,237,.12), var(--surface-2) 60%); }
.ai-col-title { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.ai-col-praqt .ai-col-title { color: var(--text-muted); }
.timeline { position: relative; display: grid; gap: 12px; }
.tl-item { position: relative; padding-left: 14px; border-left: 2px solid var(--surface-4); opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.tl-item.is-in { opacity: 1; transform: none; }
.tl-item.tl-good { border-left-color: var(--cta-400); }
.tl-item.tl-warn { border-left-color: var(--warning); }
.tl-item.tl-ai { border-left-color: var(--brand-400); }
.tl-time { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); }
.tl-text { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.tl-text strong { color: var(--text); }
.tl-bubble { margin-top: 6px; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 8px 10px; }
.tl-bubble.is-ai { border-color: var(--cta-border); }
.tl-bubble.is-handoff { border-color: rgba(251,191,36,.3); }
.tl-tag { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-sm); }
.tl-tag-good { color: var(--cta-400); background: rgba(163,230,53,.1); }
.tl-tag-warn { color: var(--warning); background: rgba(251,191,36,.1); }
.ai-demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.ai-foot-note { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }

.ai-rules { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-2xl); padding: 28px; position: sticky; top: calc(var(--nav-h) + 24px); }
.rule-list { display: grid; gap: 16px; margin: 18px 0 26px; }
.rule-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }
.rule-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 10px; height: 2px; background: var(--brand-400); }

@media (max-width: 1000px) {
  .ai-layout { grid-template-columns: 1fr; }
  .ai-rules { position: static; }
}
@media (max-width: 640px) {
  .ai-compare { grid-template-columns: 1fr; }
  .ai-col { min-height: 0; }
  .ai-demo { padding: 14px; border-radius: var(--r-xl); }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 9px 8px; font-size: 12.5px; }
}

/* =================================================================
   5 · CENTRAL
   ================================================================= */
.section-central { overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(59,66,196,.16), transparent 70%), var(--bg); }
.central-bg { position: absolute; inset: 0; pointer-events: none; opacity: .7; }
.section-central .container { position: relative; }
.queue {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--hairline-strong); border-radius: var(--r-2xl);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(124,58,237,.06);
  overflow: hidden;
}
.queue-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 22px; border-bottom: 1px solid var(--hairline); }
.queue-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.queue-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--hairline-strong); background: transparent; color: var(--text-muted);
  border-radius: var(--r-full); padding: 7px 12px; font-size: 13px; font-weight: 600; min-height: 36px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { color: var(--text); border-color: var(--brand-400); }
.chip.is-on { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.chip-count { font-family: var(--mono); font-size: 11px; opacity: .8; }

.queue-table { font-size: 14px; }
.qt-row {
  display: grid; grid-template-columns: 116px minmax(0, 2.2fr) 150px 116px 130px minmax(0, 1.5fr);
  align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--hairline);
}
.qt-header { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); background: rgba(19,16,30,.6); padding-top: 12px; padding-bottom: 12px; }
#queue-rows .qt-row { transition: background-color .15s, opacity .3s var(--ease), transform .3s var(--ease); }
#queue-rows .qt-row:hover { background: rgba(124,58,237,.05); }
#queue-rows .qt-row:last-child { border-bottom: 0; }
#queue-rows .qt-row.is-new { animation: rowIn .6s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); background: rgba(124,58,237,.14); } to { opacity: 1; transform: none; } }

.q-prio { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.q-sit { display: grid; gap: 2px; min-width: 0; }
.q-kind { font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.q-title { color: var(--text); font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.q-owner { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13.5px; }
.q-owner .avatar { width: 24px; height: 24px; }
.q-due { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.q-status { justify-self: start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); background: var(--surface-3); color: var(--text-muted); white-space: nowrap; }
.q-status.st-ai { color: var(--cta-400); background: rgba(163,230,53,.1); }
.q-status.st-open { color: var(--warning); background: rgba(251,191,36,.1); }
.q-status.st-progress { color: var(--info); background: rgba(96,165,250,.1); }
.q-action { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brand-200); font-weight: 600; min-width: 0; }
.q-action span { line-height: 1.35; }
.q-empty { padding: 28px 22px; color: var(--text-dim); font-size: 14px; }

.central-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.central-facts li { border-top: 1px solid var(--hairline-strong); padding-top: 18px; display: grid; gap: 6px; }
.fact-k { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.fact-v { font-size: 14.5px; color: var(--text-muted); }

@media (max-width: 1100px) {
  .qt-row { grid-template-columns: 104px minmax(0, 2fr) 136px 104px 120px; }
  .qt-row > :nth-child(6) { display: none; }
}
@media (max-width: 820px) {
  .qt-header { display: none; }
  .qt-row {
    grid-template-columns: auto 1fr auto; grid-template-areas: "prio prio due" "sit sit sit" "owner status status" "action action action";
    gap: 10px 12px; padding: 16px 18px;
  }
  .qt-row > :nth-child(1) { grid-area: prio; }
  .qt-row > :nth-child(2) { grid-area: sit; }
  .qt-row > :nth-child(3) { grid-area: owner; }
  .qt-row > :nth-child(4) { grid-area: due; justify-self: end; }
  .qt-row > :nth-child(5) { grid-area: status; justify-self: end; }
  .qt-row > :nth-child(6) { grid-area: action; display: inline-flex; padding-top: 10px; border-top: 1px dashed var(--hairline-strong); }
  .q-title { white-space: normal; }
  .queue-head .demo-badge { order: -1; }
  .central-facts { grid-template-columns: 1fr; }
}

/* =================================================================
   6 · REPUTAÇÃO
   ================================================================= */
.rep-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.rep-copy .sec-lead { margin-bottom: 28px; }
.rep-visual { display: grid; gap: 14px; position: relative; }
.rep-visual::before { content: ''; position: absolute; inset: 10% 0 0 10%; background: radial-gradient(circle, rgba(124,58,237,.25), transparent 65%); filter: blur(50px); z-index: -1; }
.rep-card { background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--r-xl); padding: 22px; }
.rep-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.thermo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 22px; }
.thermo i { height: 10px; border-radius: 3px; background: var(--surface-4); }
.thermo i:nth-child(1) { background: rgba(248,113,113,.35); }
.thermo i:nth-child(2) { background: rgba(251,146,60,.35); }
.thermo i:nth-child(3) { background: rgba(251,191,36,.35); }
.thermo i:nth-child(4) { background: rgba(163,230,53,.3); }
.thermo i:nth-child(5) { background: rgba(52,211,153,.35); }
.thermo i.is-current { background: var(--success); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--success); }
.rep-metric:last-child .bar { margin-bottom: 0; }
.alert-list { display: grid; gap: 10px; margin-top: 14px; }
.alert-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--hairline); }
.alert-list .sev { align-self: stretch; height: auto; }
.alert-list strong { display: block; font-size: 14px; }
.alert-list span:not(.sev) { font-size: 12.5px; color: var(--text-dim); }
@media (max-width: 960px) { .rep-layout { grid-template-columns: 1fr; gap: 40px; } }

/* =================================================================
   7 · STEPS
   ================================================================= */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px 24px 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--hairline); }
.step::after { /* conector */
  content: ''; position: absolute; top: 44px; right: -17px; width: 18px; height: 1px; background: var(--hairline-strong);
}
.step:last-child::after { display: none; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--brand-200); background: rgba(124,58,237,.16); border: 1px solid var(--hairline-strong); }
.step h3 { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* =================================================================
   8 · OFERTA + FORM
   ================================================================= */
.section-offer { overflow: hidden; }
.offer-bg { position: absolute; inset: 0; pointer-events: none; }
.offer-bg .grid-overlay { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 50%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 60% 70% at 30% 50%, #000 20%, transparent 80%); }
.offer-bg .blob-1 { width: 720px; aspect-ratio: 1; right: -240px; top: 10%; background: radial-gradient(circle, var(--brand-600), transparent 68%); opacity: .4; }
.offer-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: start; }
.offer-copy { padding-top: 12px; }
.offer-copy .sec-lead { margin-bottom: 28px; }
.pilot-note { font-weight: 600; color: var(--text); border-left: 3px solid var(--cta-400); padding-left: 14px; margin-bottom: 18px; }

.form-card { background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: var(--r-2xl); padding: 32px; box-shadow: var(--shadow-lg); scroll-margin-top: calc(var(--nav-h) + 16px); }
.form-title { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.opt { font-weight: 500; color: var(--text-dim); font-size: 12px; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md); padding: 12px 14px; font-size: 16px; /* 16px evita zoom no iOS */
  color: var(--text); transition: border-color .15s, box-shadow .15s; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--surface-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(139,92,246,.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(139,92,246,.22); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-hint { font-size: 12.5px; color: var(--text-dim); }
.field-error { font-size: 12.5px; color: var(--error); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#turnstile-slot:not(:empty) { margin-bottom: 16px; }

.btn-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(7,6,11,.25); border-top-color: #07060B; animation: spin .8s linear infinite; }
.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { font-size: 14px; margin-top: 14px; min-height: 0; }
.form-status.is-error { color: var(--error); font-weight: 600; }
.form-status a { text-decoration: underline; }
.form-privacy { font-size: 12.5px; color: var(--text-dim); margin-top: 14px; line-height: 1.55; }
.form-privacy a { color: var(--brand-300); text-decoration: underline; text-underline-offset: 2px; }
.form-success { text-align: center; padding: 28px 8px; }
.form-success:focus { outline: none; }
.success-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px; background: rgba(163,230,53,.12); color: var(--cta-400); border: 1px solid var(--cta-border); font-size: 26px; font-weight: 800; }
.form-success h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.025em; margin-bottom: 10px; }
.form-success p { color: var(--text-muted); margin-bottom: 12px; }
.form-success a { color: var(--brand-300); text-decoration: underline; }

@media (max-width: 1000px) { .offer-layout { grid-template-columns: 1fr; gap: 40px; } .form-card { max-width: 620px; } }
@media (max-width: 560px) { .form-card { padding: 22px 18px; border-radius: var(--r-xl); } .field-row { grid-template-columns: 1fr; gap: 0; } }

/* =================================================================
   9 · FAQ
   ================================================================= */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); transition: border-color .2s; }
.faq[open] { border-color: var(--hairline-strong); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 56px 20px 22px; font-weight: 700; font-size: 16px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--mono); font-size: 16px; color: var(--brand-300); background: var(--surface-3);
  transition: transform .2s var(--ease);
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--brand-200); }
.faq p { padding: 0 22px 22px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
@media (max-width: 960px) { .faq-layout { grid-template-columns: 1fr; gap: 12px; } .faq-layout .sec-lead { margin-bottom: 28px; } }

/* =================================================================
   10 · CTA FINAL (Hero indigo + grid · padrão institucional)
   ================================================================= */
.final-cta { position: relative; overflow: hidden; background: var(--hero-700); padding: 120px 0; text-align: center; }
.final-bg { position: absolute; inset: 0; pointer-events: none; }
.final-bg::after { content: ''; position: absolute; width: 760px; aspect-ratio: 1; left: 50%; top: 40%; transform: translateX(-50%); background: radial-gradient(circle, rgba(124,58,237,.55), transparent 65%); filter: blur(80px); }
.final-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final-title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.2vw, 64px); line-height: 1; letter-spacing: -0.045em; max-width: 900px; margin-bottom: 22px; text-wrap: balance; }
.final-title em { color: var(--cta-400); }
.final-lead { font-size: 18px; color: rgba(238,239,251,.82); max-width: 560px; margin-bottom: 36px; }
@media (max-width: 720px) { .final-cta { padding: 88px 0 96px; } .final-inner .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer-brand { display: grid; gap: 8px; }
.footer-brand p { font-size: 13.5px; color: var(--text-dim); }
.footer-brand a:hover, .footer-links a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; font-size: 14px; color: var(--text-muted); }
.footer-legal { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-faint); max-width: 760px; line-height: 1.6; padding-top: 20px; border-top: 1px solid var(--hairline); }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } .footer-links { flex-direction: column; gap: 10px; } .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(7,6,11,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline-strong);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 761px) { .sticky-cta { display: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .bar i { transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
.js .is-in .bar i, .js .is-in.bar i { transform: scaleX(1); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .bar i { transform: none; }
  .tl-item { opacity: 1; transform: none; }
}

/* ---------- Página de privacidade ---------- */
.nav-back { margin-left: auto; }
.legal-inner { max-width: 760px; }
.legal-meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); margin-bottom: 40px; }
.legal h2 { font-family: var(--display); font-size: 21px; letter-spacing: -.02em; margin: 34px 0 10px; }
.legal p { color: var(--text-muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 12px; }
.legal a { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-family: var(--mono); font-size: 13px; background: var(--surface-3); padding: 1px 6px; border-radius: 4px; }

/* Containers com blobs: clip impede rolagem horizontal programática (focus/scrollIntoView) */
@supports (overflow: clip) {
  .hero, .section-offer, .section-central, .final-cta { overflow: clip; }
}

/* Entrada do hero: imediata, curta, sem depender de scroll */
.hero-in { animation: heroIn .6s var(--ease) both; }
.hero-inner > .hero-in:nth-child(2) { animation-delay: .05s; }
.hero-title { margin-top: 8px; }
.hero-inner > .hero-in:nth-child(3) { animation-delay: .1s; }
.hero-inner > .hero-in:nth-child(4) { animation-delay: .15s; }
.hero-inner > .hero-in:nth-child(5) { animation-delay: .2s; }
.hero-visual-wrap.hero-in { animation-delay: .25s; animation-duration: .8s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-in { animation: none; } }

/* =================================================================
   2b · JORNADA DO PEDIDO (cena animada)
   ================================================================= */
.section-trip { padding-top: 40px; }
.trip { display: grid; grid-template-columns: 1fr; gap: 16px; }
.trip-stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.trip-scene {
  position: relative; border-radius: var(--r-2xl); overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124,58,237,.18), transparent 70%), var(--surface);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.trip-svg { width: 100%; height: auto; display: block; }

/* cenário */
.t-bld { fill: #13101E; stroke: rgba(139,92,246,.18); }
.t-win { fill: #2A2640; }
.t-win.on { fill: #C4B5FD; fill-opacity: .55; }
.t-win.blink { fill: #C4B5FD; animation: winBlink 6s ease-in-out infinite; }
.t-win.blink:nth-child(3n) { animation-delay: -2s; animation-duration: 7.5s; }
.t-win.blink:nth-child(4n) { animation-delay: -4s; animation-duration: 9s; }
@keyframes winBlink { 0%, 55% { fill-opacity: .08; } 60%, 100% { fill-opacity: .6; } }
.t-stars circle { animation: twinkle 4s ease-in-out infinite; }
.t-stars circle:nth-child(2n) { animation-delay: -1.5s; }
.t-stars circle:nth-child(3n) { animation-delay: -2.7s; animation-duration: 5.5s; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .2; } }
.t-lamp-glow { animation: lampGlow 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.t-lamp-glow-2 { animation-delay: -2.5s; }
@keyframes lampGlow { 0%, 100% { opacity: .8; } 50% { opacity: 1; transform: scale(1.06); } }
.t-lane { stroke: #3D3758; stroke-width: 3; stroke-dasharray: 22 18; }
.t-sign { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; fill: #A3E635; }
.t-house-win { fill: #DDD6FE; fill-opacity: .5; }
.t-house-win-2 { animation: winBlink 8s ease-in-out -3s infinite; }

.t-node rect { transition: stroke .3s, stroke-opacity .3s; }
.t-node.is-hit rect { stroke: #A3E635; stroke-opacity: 1; }
.t-node-glow { opacity: .45; transition: opacity .4s; }
.t-node.is-hit .t-node-glow { opacity: 1; }
.t-wm { font-family: 'Plus Jakarta Sans', var(--sans); font-weight: 800; font-size: 24px; letter-spacing: -0.05em; fill: #F4F0FB; }
.t-wm-dot { fill: #A3E635; }
.t-live { fill: #A3E635; animation: pulse 2.4s ease-in-out infinite; }
.t-node-label { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; fill: #A9A1C8; text-transform: uppercase; }
.t-beam { stroke: #A3E635; stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 4 7; animation: beamFlow 1.2s linear infinite; }
@keyframes beamFlow { to { stroke-dashoffset: -22; } }
.t-pulse { fill: #A3E635; opacity: 0; }
.t-pulse.is-on { opacity: 1; }

.t-wheel { transform-box: fill-box; transform-origin: center; }
.t-truck.is-moving .t-wheel, .final-truck .t-wheel { animation: spin .55s linear infinite; }
.t-truck-body { transform-box: fill-box; }
.t-truck.is-moving .t-truck-body, .final-truck .t-truck-body { animation: bob .35s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-1.2px); } }
.t-puffs circle { fill: #7A72A0; opacity: 0; transform-box: fill-box; transform-origin: center; }
.t-truck.is-moving .t-puffs circle, .final-truck .t-puffs circle { animation: puff 1s ease-out infinite; }
.t-truck.is-moving .t-puffs circle:nth-child(2), .final-truck .t-puffs circle:nth-child(2) { animation-delay: .33s; }
.t-truck.is-moving .t-puffs circle:nth-child(3), .final-truck .t-puffs circle:nth-child(3) { animation-delay: .66s; }
@keyframes puff { 0% { opacity: .55; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(-28px, -12px) scale(2.2); } }
.t-hazard { fill: #FBBF24; opacity: 0; }
.t-truck.is-hazard .t-hazard { animation: hazard .8s step-end infinite; }
@keyframes hazard { 0% { opacity: 1; } 50% { opacity: 0; } }

/* cartão de evento (HTML sobre a cena) */
.trip-card {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 250px;
  transform: translate(-50%, calc(-100% - 8px)) scale(.94); opacity: 0;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
  background: rgba(15,13,24,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-strong); border-radius: var(--r-lg);
  padding: 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.5); pointer-events: none;
}
.trip-card.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 8px)) scale(1); }
.tc-event { display: flex; gap: 10px; align-items: flex-start; }
.tc-dot { flex: none; width: 3px; align-self: stretch; border-radius: 2px; background: var(--info); }
.tc-event { align-items: stretch; }
.trip-card.tone-warn .tc-dot { background: var(--warning); }
.trip-card.tone-critical .tc-dot { background: var(--error); }
.trip-card.tone-good .tc-dot { background: var(--success); }
.tc-text { display: grid; gap: 1px; min-width: 0; }
.tc-k { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); }
.tc-t { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.tc-praqt {
  display: flex; gap: 8px; align-items: baseline; max-height: 0; opacity: 0; overflow: hidden;
  border-top: 1px dashed transparent;
  transition: max-height .35s var(--ease), opacity .3s, margin-top .35s, padding-top .35s, border-color .3s;
}
.trip-card.has-praqt .tc-praqt { max-height: 64px; opacity: 1; margin-top: 10px; padding-top: 10px; border-top-color: var(--cta-border); }
.tc-wm { font-family: 'Plus Jakarta Sans', var(--sans); font-weight: 800; font-size: 13px; letter-spacing: -0.05em; color: var(--text); flex: none; }
.tc-wm .dot { color: var(--cta-400); }
.tc-p { font-size: 12.5px; color: var(--cta-300); line-height: 1.4; }

.trip-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trip-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 36px;
  background: transparent; border: 1px solid var(--hairline-strong); border-radius: var(--r-full);
  padding: 6px 14px 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  transition: border-color .15s, color .15s;
}
.trip-toggle:hover { color: var(--text); border-color: var(--brand-400); }
.tt-icon { width: 9px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.trip-toggle[aria-pressed="true"] .tt-icon { width: 0; height: 0; border-right: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.trip-scene.is-paused * { animation-play-state: paused !important; }

/* etapas */
.trip-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; align-content: start; }
.ts {
  position: relative; width: 100%; text-align: left; cursor: pointer; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 16px 18px 18px; color: var(--text-muted);
  transition: border-color .25s, background-color .25s;
}
.ts:hover { border-color: var(--hairline-strong); }
.ts-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text-dim); background: var(--surface-3); transition: background-color .25s, color .25s; }
.ts-body { display: grid; gap: 4px; }
.ts-title { font-family: var(--display); font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.ts-desc { font-size: 13.5px; line-height: 1.5; }
.ts-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.ts-bar i { display: block; height: 100%; width: 100%; background: var(--cta-400); transform: scaleX(0); transform-origin: left; }
.ts.is-active { border-color: rgba(139,92,246,.5); background: linear-gradient(135deg, rgba(124,58,237,.14), var(--surface) 70%); }
.ts.is-active .ts-num { background: var(--brand-500); color: #fff; }
.ts.is-done .ts-num { color: var(--cta-400); }

@media (max-width: 1000px) {
  .trip { gap: 14px; }
  .trip-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .trip-steps { grid-template-columns: 1fr; }
  .ts-desc { display: none; }
  .ts.is-active .ts-desc { display: block; }
  .ts { padding: 12px 14px 14px; }
  .trip-scene { border-radius: var(--r-xl); }
  /* no celular, o cartão vira legenda abaixo da cena */
  .trip-card { position: relative; left: auto; top: auto; width: auto; margin: 0 12px 12px; transform: none; opacity: .4; }
  .trip-card.is-on { transform: none; opacity: 1; }
}

/* =================================================================
   Caminhão no CTA final
   ================================================================= */
.final-road { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; pointer-events: none; z-index: 0; }
.final-road::before { content: ''; position: absolute; left: 0; right: 0; bottom: 14px; border-top: 2px dashed rgba(255,255,255,.14); }
.final-truck { position: absolute; left: 0; bottom: 12px; width: 118px; animation: drive 20s linear infinite; }
.final-truck svg { width: 100%; height: auto; overflow: visible; }
@keyframes drive { from { transform: translateX(-160px); } to { transform: translateX(calc(100vw + 40px)); } }
.final-cta { padding-bottom: 160px; }
@media (max-width: 720px) { .final-cta { padding-bottom: 140px; } .final-truck { width: 92px; } }

/* =================================================================
   Micro-animações nos pilares
   ================================================================= */
.js .pillar .pv-question, .js .pillar .pv-suggest, .js .pillar .pv-list li {
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js .pillar.is-in .pv-question { opacity: 1; transform: none; transition-delay: .25s; }
.js .pillar.is-in .pv-suggest { opacity: 1; transform: none; transition-delay: .8s; }
.js .pillar.is-in .pv-list li { opacity: 1; transform: none; }
.js .pillar.is-in .pv-list li:nth-child(1) { transition-delay: .25s; }
.js .pillar.is-in .pv-list li:nth-child(2) { transition-delay: .4s; }
.js .pillar.is-in .pv-list li:nth-child(3) { transition-delay: .55s; }
.js .pillar.is-in .pv-list li:nth-child(4) { transition-delay: .7s; }
.pv-btn { position: relative; overflow: hidden; }
.pv-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.6s ease-in-out 1.6s infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

@media (prefers-reduced-motion: reduce) {
  .final-truck { animation: none; left: 68%; }
  .js .pillar .pv-question, .js .pillar .pv-suggest, .js .pillar .pv-list li { opacity: 1; transform: none; }
  .pv-btn::after { display: none; }
}

/* =================================================================
   Botão de tema
   ================================================================= */
.theme-toggle {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; margin-left: 8px;
  border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: color .15s, border-color .15s, background-color .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--brand-400); background: rgba(124,58,237,.08); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ti-moon { display: none; }
[data-theme="light"] .theme-toggle .ti-sun { display: none; }
[data-theme="light"] .theme-toggle .ti-moon { display: block; }
@media (max-width: 960px) {
  .theme-toggle { margin-left: auto; }
  .nav .btn { margin-left: 8px; }
}
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important;
}

/* =================================================================
   Tema claro (tokens do Brandkit v15 · tema light)
   ================================================================= */
[data-theme="light"] {
  --bg: #FAF8FD;
  --surface: #FFFFFF;
  --surface-2: #F4F0FB;
  --surface-3: #EDE9FE;
  --surface-4: #DDD6FE;
  --text: #0C0A14;
  --text-muted: #3D3758;
  --text-dim: #564F73;
  --text-faint: #7A72A0;
  --hairline: rgba(124,58,237,0.14);
  --hairline-strong: rgba(124,58,237,0.30);
  --error: #DC2626;
  --warning: #B45309;
  --success: #059669;
  --info: #2563EB;
  --logo-dot: #65A30D;
  --shadow-lg: 0 16px 44px rgba(30,10,60,0.12);
  color-scheme: light;
}
:root { --logo-dot: #A3E635; }
.wordmark .dot, .tc-wm .dot { color: var(--logo-dot); }

/* Ilhas escuras: telas de produto, cena animada, robôs e peças de destaque
   continuam no tema escuro (brandkit: o produto é dark mode). */
[data-theme="light"] :is(.pain-card-quote, .final-cta, .section-margin) {
  --bg: #07060B;
  --surface: #0F0D18;
  --surface-2: #13101E;
  --surface-3: #1D1A2B;
  --surface-4: #2A2640;
  --text: #F4F0FB;
  --text-muted: #A9A1C8;
  --text-dim: #7A72A0;
  --text-faint: #564F73;
  --hairline: rgba(139,92,246,0.10);
  --hairline-strong: rgba(139,92,246,0.24);
  --error: #F87171;
  --warning: #FBBF24;
  --success: #34D399;
  --info: #60A5FA;
  --logo-dot: #A3E635;
  --shadow-lg: 0 14px 44px rgba(0,0,0,0.42);
  color: var(--text);
  color-scheme: dark;
}

[data-theme="light"] .nav { background: rgba(250,248,253,.84); }
[data-theme="light"] .kicker { background: rgba(255,255,255,.75); }
[data-theme="light"] .sticky-cta { background: rgba(250,248,253,.92); }
[data-theme="light"] :focus-visible { outline-color: var(--brand-600); }

[data-theme="light"] .hero-title em { color: var(--brand-600); }
[data-theme="light"] .sec-title em { color: var(--brand-600); }
[data-theme="light"] .sec-label { color: var(--brand-700); }
[data-theme="light"] .pillar-num, [data-theme="light"] .agent-num { color: var(--brand-600); }
[data-theme="light"] .step-num { color: var(--brand-700); background: var(--surface-3); }
[data-theme="light"] .check-list li::before { border-color: var(--brand-600); }
[data-theme="light"] :is(.text-link, .form-privacy a, .form-success a, .legal a) { color: var(--brand-600); }
[data-theme="light"] .faq summary::after { color: var(--brand-600); }
[data-theme="light"] .faq summary:hover { color: var(--brand-700); }
[data-theme="light"] .ts.is-done .ts-num { color: #4D7C0F; }
[data-theme="light"] .ts-bar i { background: var(--brand-500); }
[data-theme="light"] .pilot-note { border-left-color: var(--brand-500); }

[data-theme="light"] .hero-bg .blob-1 { opacity: .22; }
[data-theme="light"] .hero-bg .blob-2 { opacity: .18; }
[data-theme="light"] .offer-bg .blob-1 { opacity: .16; }
[data-theme="light"] .grid-overlay:not(.grid-light) { opacity: .55; }
[data-theme="light"] .hero-visual::before { opacity: .45; }
[data-theme="light"] .section-central { background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(59,66,196,.08), transparent 70%), var(--bg); }

/* =================================================================
   4b · AGENTE (robô animado em SVG)
   ================================================================= */
.section-agents .sec-lead { margin-bottom: 44px; }
.agent-stage {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 32px 40px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-2xl);
}
.agent-robot-wrap { width: 100%; max-width: 260px; justify-self: center; }
.robot { width: 100%; height: auto; overflow: visible; }

/* traço e cores do robô */
.robot .r-line { stroke: #D6CFEA; stroke-width: 1.5; }
.robot .r-joint { fill: #1D1A2B; }
.robot .r-hand { fill: #FFFFFF; stroke: #D6CFEA; stroke-width: 1.5; }
.robot .r-visor { stroke: #2A2640; stroke-width: 2; }
.robot .r-gloss { fill: none; stroke: #F4F0FB; stroke-opacity: .18; stroke-width: 4; stroke-linecap: round; }
.robot .r-ear { fill: #F4F0FB; stroke: #8B5CF6; stroke-width: 6; }
.robot .r-ear-in { fill: #C4B5FD; }
.robot .r-eye { fill: #C4B5FD; }
.robot .r-eyes { filter: drop-shadow(0 0 6px rgba(167,139,250,.9)); }
.robot .r-happy { fill: none; stroke: #C4B5FD; stroke-width: 5; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 6px rgba(167,139,250,.9)); transition: opacity .25s; }
.robot .r-core { fill: none; stroke: #8B5CF6; stroke-width: 4; transition: stroke .3s; }
.robot .r-accent-line { fill: none; stroke: #8B5CF6; stroke-width: 2; stroke-linecap: round; }
.robot .r-accent-soft { fill: none; stroke: #C4B5FD; stroke-width: 2; stroke-linecap: round; }
.robot .r-shadow { fill: rgba(30,10,60,.12); }
[data-theme="dark"] .robot .r-shadow { fill: rgba(0,0,0,.45); }

/* movimento */
.robot .r-all, .robot .r-head, .robot .r-eyes, .robot .r-arm-r, .robot .r-arm-l, .robot .r-shadow, .robot .r-eye { transform-box: view-box; }
.robot .r-all { animation: rFloat 4s ease-in-out infinite; }
.robot .r-shadow { transform-origin: 120px 278px; animation: rShadow 4s ease-in-out infinite; }
@keyframes rFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.88); opacity: .7; } }
.robot .r-eyes { transform-origin: 120px 101px; animation: rBlink 5s ease-in-out infinite; }
@keyframes rBlink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.08); } }
.robot .r-head { transform-origin: 120px 160px; transition: transform .6s var(--ease); }
.robot .r-arm-r { transform-origin: 166px 178px; transform: rotate(6deg); transition: transform .5s var(--ease); }
.robot .r-arm-l { transform-origin: 74px 178px; transform: rotate(-6deg); transition: transform .5s var(--ease); }
.robot.is-talking .r-eye { transform-origin: center; transform-box: fill-box; animation: rTalk .32s ease-in-out infinite alternate; }
@keyframes rTalk { from { transform: scaleY(1); } to { transform: scaleY(.82); } }
.robot.pose-wave .r-arm-r { animation: rWave .7s ease-in-out infinite alternate; }
@keyframes rWave { from { transform: rotate(-150deg); } to { transform: rotate(-118deg); } }
.robot.pose-think .r-head { transform: rotate(-7deg); }
.robot.pose-think .r-arm-l { transform: rotate(-150deg); }
.robot.pose-point .r-arm-r { transform: rotate(-82deg); }
.robot.pose-point .r-head { transform: rotate(4deg); }
.robot.is-flash .r-core { stroke: #A3E635; }
.robot.is-happy .r-eyes { opacity: 0; }
.robot.is-happy .r-happy { opacity: 1; }
.robot.is-happy .r-arm-r { transform: rotate(-150deg); }
.robot.is-happy .r-arm-l { transform: rotate(150deg); }
[data-theme="light"] .robot.is-flash .r-core { stroke: #65A30D; }

/* fala */
.agent-talk { min-width: 0; }
.agent-bubble {
  position: relative; background: var(--surface-2); border: 1px solid var(--hairline-strong);
  border-radius: 18px 18px 18px 6px; padding: 18px 22px; margin-bottom: 22px; min-height: 108px;
}
.agent-bubble::before { /* rabicho apontando para o robô */
  content: ''; position: absolute; left: -9px; bottom: 18px; width: 16px; height: 16px;
  background: var(--surface-2); border-left: 1px solid var(--hairline-strong); border-bottom: 1px solid var(--hairline-strong);
  transform: rotate(45deg);
}
.ab-name { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-500); margin-bottom: 8px; }
.ab-text { font-family: var(--display); font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; color: var(--text); }
.ab-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--brand-500); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* trilha de etapas */
.agent-track { --p: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.agent-track::before, .agent-track::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; }
.agent-track::before { background: var(--hairline); }
.agent-track::after { background: var(--brand-500); transform: scaleX(var(--p)); transform-origin: left; transition: transform .6s var(--ease); }
.at-step {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; cursor: pointer;
  background: transparent; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 9px 12px;
  font-size: 14px; font-weight: 600; color: var(--text-dim); text-align: left;
  transition: border-color .3s, background-color .3s, color .3s;
}
.at-step:hover { border-color: var(--hairline-strong); color: var(--text); }
.at-num { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--text-faint); }
.at-step.is-done { color: var(--text-muted); }
.at-step.is-active { border-color: var(--brand-400); background: rgba(124,58,237,.08); color: var(--text); }
.at-step.is-active .at-num { color: var(--brand-500); }
.agent-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.agent-stage.is-paused * { animation-play-state: paused !important; }

/* fluxos prontos (sem imagem) */
.flows-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  margin-top: 20px; padding: 20px 28px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl);
}
.flows-body h3 { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.flow-rows { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.flow-rows li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.flow-rows .fr-to { color: var(--text); font-weight: 600; }
.fr-arrow {
  position: relative; flex: 0 0 28px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--brand-400) 0 4px, transparent 4px 8px);
  background-size: 8px 1px; animation: dashFlow 1s linear infinite;
}
.fr-arrow::after {
  content: ''; position: absolute; right: -1px; top: -3px; width: 0; height: 0;
  border-left: 5px solid var(--brand-400); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}
@keyframes dashFlow { to { background-position: 8px 0; } }
.flows-link { white-space: nowrap; }
[data-theme="light"] .flows-link { color: var(--brand-600); }
[data-theme="light"] .flows-link:hover { color: var(--brand-700); }
.agents-note { margin-top: 16px; font-size: 13.5px; color: var(--text-dim); }

/* mini robô na confirmação do formulário */
.success-robot { width: 96px; margin: 0 auto 14px; }
.success-robot .robot { display: block; }

@media (max-width: 900px) {
  .agent-stage { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px; }
  .agent-robot-wrap { max-width: 170px; }
  .agent-bubble { border-radius: 18px; }
  .agent-bubble::before { left: 50%; top: -9px; bottom: auto; margin-left: -8px; transform: rotate(135deg); }
  .agent-track { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .at-step { padding: 8px; font-size: 12.5px; }
  .flows-card { grid-template-columns: 1fr; padding: 18px; gap: 12px; }
  .flow-rows { flex-direction: column; gap: 8px; }
}
@media (max-width: 520px) {
  .agent-track { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .at-step { align-items: center; text-align: center; font-size: 0; padding: 8px 4px; }
  .at-step .at-num { font-size: 11px; }
  .agent-controls { flex-wrap: wrap; }
  .flow-rows li { flex-wrap: wrap; row-gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .robot .r-all, .robot .r-shadow, .robot .r-eyes, .robot.is-talking .r-eye, .robot.pose-wave .r-arm-r { animation: none; }
  .ab-caret { display: none; }
  .fr-arrow { animation: none; }
}

/* =================================================================
   Tema claro: mockups do sistema e cena animada em fundo claro
   ================================================================= */
[data-theme="light"] .app-detail { background: var(--surface-2); }
[data-theme="light"] .float-card { background: rgba(255,255,255,.96); }
[data-theme="light"] .qt-header { background: var(--surface-2); }
[data-theme="light"] .trip-card { background: rgba(255,255,255,.97); }
[data-theme="light"] :is(.app-window, .queue, .trip-scene, .ai-demo) { box-shadow: 0 22px 60px rgba(30,10,60,.10); }
[data-theme="light"] .avatar { background: var(--surface-3); color: var(--brand-700); }
[data-theme="light"] .avatar-empty { background: transparent; color: var(--text-faint); }
[data-theme="light"] .q-action { color: var(--brand-600); }
[data-theme="light"] :is(.fc-label:not(.fc-label-warn), .pv-tag-ai, .tl-tag-good, .q-status.st-ai, .avatar-ai, .tc-p) { color: #4D7C0F; }
[data-theme="light"] :is(.tl-tag-good, .q-status.st-ai, .avatar-ai) { background: rgba(101,163,13,.10); }
[data-theme="light"] .avatar-ai { border-color: rgba(101,163,13,.3); }
[data-theme="light"] .ad-ai { background: rgba(101,163,13,.05); border-color: rgba(101,163,13,.3); }
[data-theme="light"] .mq-row.is-selected { border-color: rgba(101,163,13,.35); background: linear-gradient(90deg, rgba(101,163,13,.07), var(--surface) 60%); }
[data-theme="light"] .trip-scene { background: linear-gradient(180deg, #F3EFFC, #FFFFFF 70%); }

/* cena do caminhão "de dia" */
[data-theme="light"] #tg-sky stop:nth-child(1) { stop-color: #E9E3FA; stop-opacity: 1; }
[data-theme="light"] #tg-sky stop:nth-child(2) { stop-color: #FFFFFF; stop-opacity: .4; }
[data-theme="light"] .t-stars, [data-theme="light"] .t-lamp-glow, [data-theme="light"] .t-headbeam { display: none; }
[data-theme="light"] .t-bld { fill: #F4F0FB; stroke: rgba(124,58,237,.22); }
[data-theme="light"] .t-win { fill: #E4DCF7; }
[data-theme="light"] .t-win.on { fill: #C4B5FD; fill-opacity: .7; }
[data-theme="light"] .t-win.blink { fill: #C4B5FD; }
[data-theme="light"] .trip-svg [fill="#2A2640"] { fill: #D6CFEA; }
[data-theme="light"] .trip-svg [fill="#2D1065"] { fill: #C4B5FD; }
[data-theme="light"] .trip-svg [fill="#1D1A2B"] { fill: #ECE7F8; }
[data-theme="light"] .trip-svg [fill="#110F1C"] { fill: #E2DCF1; }
[data-theme="light"] .trip-svg [fill="#0C0A14"] { fill: #F1EDFA; }
[data-theme="light"] .trip-svg [fill="#171324"] { fill: #FFFFFF; }
[data-theme="light"] .trip-svg [stroke="#3D3758"] { stroke: #D6CFEA; }
[data-theme="light"] .trip-svg .t-store [fill="#0F0D18"] { fill: #F4F0FB; }
[data-theme="light"] .t-sign { fill: #4C1D95; }
[data-theme="light"] .t-lane { stroke: #FFFFFF; }
[data-theme="light"] .t-house-win { fill: #C4B5FD; }
[data-theme="light"] .t-node rect { fill: #FFFFFF; }
[data-theme="light"] .t-wm { fill: #0C0A14; }
[data-theme="light"] .t-wm-dot { fill: #65A30D; }
[data-theme="light"] .t-node-label { fill: #564F73; }
[data-theme="light"] .t-node-glow { display: none; }
[data-theme="light"] .t-node.is-hit rect { stroke: #7C3AED; }
[data-theme="light"] .t-beam { stroke: #7C3AED; stroke-opacity: .45; }
[data-theme="light"] .t-pulse { fill: #7C3AED; }
[data-theme="light"] .t-truck [fill="#0C0A14"] { fill: #1D1A2B; }
[data-theme="light"] .t-truck .t-wheel circle:first-child { fill: #1D1A2B; }

/* =================================================================
   v3 · Hero com prévia do produto em abas (referência: SaaS de atendimento)
   ================================================================= */
.hero { padding-top: 64px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 5px 14px 5px 5px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--hairline-strong);
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.hero-pill:hover { color: var(--text); border-color: var(--brand-400); transform: translateY(-1px); }
.hp-tag { padding: 3px 10px; border-radius: var(--r-full); background: var(--brand-500); color: #fff; font-size: 12px; font-weight: 700; }
.hero-title { font-size: clamp(34px, 4.8vw, 62px); max-width: 920px; margin-bottom: 20px; }
.hero-lead { max-width: 680px; margin-bottom: 30px; }
.hero-ctas { margin-bottom: 0; }

.hero-stage-wrap { margin-top: 48px; position: relative; }
.hero-stage {
  position: relative; max-width: 1120px; margin: 0 auto;
  padding: 18px 28px 0; border-radius: 28px 28px 0 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 0%, rgba(255,255,255,.22), transparent 60%),
    linear-gradient(135deg, #7C3AED 0%, #5B21B6 45%, #3B42C4 100%);
  box-shadow: 0 30px 80px rgba(76,29,149,.25);
}
.hero-stage::before { /* textura de pixels suave */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hs-tabs { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.hs-tab {
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: rgba(255,255,255,.86);
  border-radius: var(--r-full); padding: 8px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; min-height: 38px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.hs-tab:hover { background: rgba(255,255,255,.16); color: #fff; }
.hs-tab[aria-selected="true"] { background: #fff; color: var(--brand-700); border-color: #fff; }
.hs-window {
  position: relative; background: var(--surface); border-radius: 18px 18px 0 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.4); border-bottom: 0; min-height: 360px;
  box-shadow: 0 -6px 30px rgba(30,10,60,.18);
}
.hs-window .app-bar { border-bottom: 1px solid var(--hairline); }
.hs-window .app-title { display: inline-flex; align-items: center; gap: 8px; }
.hs-panel { animation: panelIn .45s var(--ease); }
.hs-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* painel: atendimento */
.chat-app { display: grid; grid-template-columns: 230px minmax(0, 1fr) 240px; min-height: 340px; }
.chat-list { border-right: 1px solid var(--hairline); padding: 14px 10px; display: grid; align-content: start; gap: 4px; }
.cl-filter { display: flex; gap: 4px; margin-bottom: 8px; }
.cl-filter span { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); color: var(--text-dim); background: var(--surface-2); }
.cl-filter span.is-on { background: var(--brand-500); color: #fff; }
.cl-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 9px 10px; border-radius: var(--r-md); font-size: 12.5px; }
.cl-item.is-active { background: rgba(124,58,237,.10); }
.cl-name { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-msg { grid-column: 1; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-time { grid-column: 2; grid-row: 1; font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
.cl-flag { grid-column: 2; grid-row: 2; font-size: 10px; font-weight: 700; color: var(--warning); }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.chat-head span { font-size: 12px; color: var(--text-dim); }
.chat-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface-2); }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.msg-in { align-self: flex-start; background: var(--surface); border: 1px solid var(--hairline); border-bottom-left-radius: 4px; }
.msg-out { align-self: flex-end; background: linear-gradient(135deg, #7C3AED, #5B21B6); color: #fff; border-bottom-right-radius: 4px; }
.msg-who { display: block; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.msg-typing { align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-dim); }
.msg-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--text-faint); animation: typing 1s ease-in-out infinite; }
.msg-typing span:nth-child(2) { animation-delay: .15s; } .msg-typing span:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.msg-status { align-self: flex-end; font-size: 11.5px; color: var(--text-dim); }
.ms-ok { color: var(--success); font-weight: 800; }
.js .chat-body [data-seq] { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.js .chat-body [data-seq].is-in { opacity: 1; transform: none; }
.js .chat-body .msg-typing.is-gone { display: none; }
.chat-ctx { border-left: 1px solid var(--hairline); padding: 16px; display: grid; align-content: start; gap: 10px; }
.cx-label { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.cx-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--hairline); }
.cx-item span { font-size: 11px; color: var(--text-dim); }
.cx-item strong { font-size: 12.5px; }
.cx-rule { font-size: 11.5px; color: var(--warning); font-weight: 600; padding: 8px 10px; border-radius: var(--r-md); background: rgba(251,191,36,.10); }

/* painel: fila */
.mini-queue-wrap { padding: 20px 24px 24px; }

/* painel: concorrência */
.comp-wrap, .ads-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; padding: 24px; align-items: start; }
.comp-alert, .ads-card, .ads-tips { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; }
.comp-alert { border-color: rgba(251,191,36,.45); }
.ca-kind { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.comp-alert strong { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.ca-prices { display: flex; align-items: center; gap: 14px; }
.ca-prices div { display: grid; gap: 2px; }
.ca-prices span { font-size: 11.5px; color: var(--text-dim); }
.ca-prices b { font-family: var(--display); font-size: 20px; }
.ca-win { color: var(--brand-600); }
.ca-arrow { color: var(--text-faint); font-size: 18px; }
.comp-alert .pv-btn { justify-self: start; }
.comp-list { display: grid; gap: 8px; }
.comp-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--hairline); font-size: 13.5px; }
.cs { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-full); white-space: nowrap; }
.cs-win { color: #047857; background: rgba(16,185,129,.12); }
.cs-share { color: #1D4ED8; background: rgba(59,130,246,.12); }
.cs-lose { color: #B91C1C; background: rgba(239,68,68,.12); }
[data-theme="dark"] .cs-win { color: #34D399; } [data-theme="dark"] .cs-share { color: #60A5FA; } [data-theme="dark"] .cs-lose { color: #F87171; }

/* painel: anúncios */
.ads-score { display: flex; align-items: baseline; gap: 6px; }
.ads-score b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--warning); }
.ads-score span { font-size: 12.5px; color: var(--text-dim); }
.ads-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ads-metrics div { display: grid; gap: 2px; padding: 10px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--hairline); }
.ads-metrics span { font-size: 11px; color: var(--text-dim); }
.ads-metrics b { font-size: 16px; }
.ads-metrics em { font-style: normal; font-size: 11px; font-weight: 700; }
.ads-metrics em.down { color: var(--error); }
.ads-tips ul { display: grid; gap: 8px; }
.ads-tips li { font-size: 13px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--hairline); }

/* selos flutuantes */
.hs-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline-strong);
  box-shadow: 0 14px 36px rgba(30,10,60,.18); font-size: 12px; color: var(--text-dim);
  animation: float 7s ease-in-out infinite;
}
.hs-chip b { display: block; font-size: 13px; color: var(--text); }
.hc-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #7C3AED, #3B42C4); color: #fff; font-weight: 800; }
.hs-chip-a { left: -64px; top: 130px; }
.hs-chip-b { right: -64px; top: 250px; animation-delay: -3s; }

@media (max-width: 1300px) { .hs-chip { display: none; } }
@media (max-width: 960px) {
  .chat-app { grid-template-columns: minmax(0, 1fr); }
  .chat-list, .chat-ctx { display: none; }
  .comp-wrap, .ads-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero-stage { padding: 12px 10px 0; border-radius: 20px 20px 0 0; }
  .hs-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hs-tabs::-webkit-scrollbar { display: none; }
  .hs-tab { flex: none; padding: 7px 12px; font-size: 12.5px; }
  .hs-window { min-height: 0; }
  .msg { max-width: 92%; }
  .mini-queue-wrap, .comp-wrap, .ads-wrap { padding: 14px; }
}

/* =================================================================
   v3 · títulos com "pill"
   ================================================================= */
.sec-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 5px 12px; border-radius: var(--r-full); font-size: 12.5px; font-weight: 700;
  color: var(--brand-700); background: rgba(124,58,237,.10); border: 1px solid rgba(124,58,237,.22);
}
[data-theme="dark"] .sec-pill { color: var(--brand-200); }
.sp-ico { color: var(--brand-500); }

/* =================================================================
   v3 · Agente (passos + visual)
   ================================================================= */
.agent-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.agent-steps { display: grid; gap: 6px; }
.ag-step {
  position: relative; width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 16px; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid transparent; background: transparent; overflow: hidden;
  transition: background-color .3s, border-color .3s;
}
.ag-step:hover { background: var(--surface-2); }
.ag-num { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text-faint); padding-top: 2px; }
.ag-txt { display: grid; gap: 3px; }
.ag-txt strong { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; color: var(--text-muted); transition: color .3s; }
.ag-txt span { font-size: 14px; color: var(--text-dim); line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
.ag-step.is-active { background: var(--surface); border-color: var(--hairline-strong); box-shadow: 0 10px 30px rgba(30,10,60,.06); }
.ag-step.is-active .ag-num { color: var(--brand-500); }
.ag-step.is-active .ag-txt strong { color: var(--text); }
.ag-step.is-active .ag-txt span { max-height: 60px; opacity: 1; }
.ag-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--brand-500); transform: scaleX(0); transform-origin: left; }
.ag-step.is-active .ag-bar { animation: agBar var(--ag-dur, 4.5s) linear forwards; }
.agent-grid.is-static .ag-step.is-active .ag-bar { animation: none; transform: scaleX(0); }
@keyframes agBar { to { transform: scaleX(1); } }

.agent-visual {
  position: relative; border-radius: 24px; padding: 28px; min-height: 380px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(124,58,237,.12), transparent 70%),
    var(--surface-2);
  border: 1px solid var(--hairline);
}
.av-stage { display: grid; grid-template-columns: 1fr auto 1.25fr; gap: 22px; align-items: center; height: 100%; min-height: 324px; }
.av-sources { display: grid; gap: 10px; }
.av-src, .av-msg, .av-log {
  font-size: 12.5px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--hairline);
  transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.av-core { position: relative; display: grid; place-items: center; gap: 4px; width: 120px; height: 120px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hairline-strong); box-shadow: 0 12px 34px rgba(76,29,149,.14); }
.av-core .wordmark { font-size: 22px; }
.av-core-label { position: absolute; bottom: 22px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.av-ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(124,58,237,.35); animation: ring 2.4s ease-out infinite; }
.av-out { display: grid; gap: 8px; }
.av-msg span, .av-log span { display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px; }
.av-msg b { display: block; font-size: 11.5px; margin-top: 3px; color: #047857; }
.av-msg-hand b { color: var(--warning); }
[data-theme="dark"] .av-msg b { color: #34D399; } [data-theme="dark"] .av-msg-hand b { color: var(--warning); }
.av-log { font-size: 12px; color: var(--text-muted); }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
/* destaque por etapa */
.av-stage :is(.av-src, .av-msg, .av-log) { opacity: .35; }
.av-stage[data-step="0"] .av-src,
.av-stage[data-step="1"] .av-msg-ok,
.av-stage[data-step="2"] .av-msg-hand,
.av-stage[data-step="3"] :is(.av-log, .av-msg) { opacity: 1; border-color: rgba(124,58,237,.45); box-shadow: 0 8px 22px rgba(76,29,149,.10); transform: translateX(2px); }

@media (max-width: 980px) {
  .agent-grid { grid-template-columns: 1fr; gap: 24px; }
  .agent-visual { min-height: 0; padding: 18px; }
}
@media (max-width: 640px) {
  .av-stage { grid-template-columns: 1fr; justify-items: stretch; min-height: 0; }
  .av-core { justify-self: center; width: 96px; height: 96px; }
  .av-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .av-src { font-size: 11px; text-align: center; }
}

/* =================================================================
   v3 · Grade de recursos
   ================================================================= */
.section-features { background: linear-gradient(180deg, var(--bg), var(--surface-2)); }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.feat-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 14px 14px 24px; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.feat-card:hover { border-color: var(--hairline-strong); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(30,10,60,.08); }
.feat-card > :not(.feat-ui) { margin-left: 10px; margin-right: 10px; }
.feat-ui { display: grid; gap: 8px; padding: 16px; margin-bottom: 20px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--hairline); min-height: 158px; align-content: start; }
.fu-label { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.fu-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--hairline); font-size: 12.5px; }
.fu-row span { display: inline-flex; align-items: center; gap: 8px; }
.fu-bar { height: 6px; border-radius: 99px; background: var(--surface-4); overflow: hidden; }
.fu-bar i { display: block; height: 100%; background: var(--warning); }
.fu-bar i.w-62 { width: 62%; }
.fu-tip { font-size: 12.5px; padding: 9px 12px; border-radius: var(--r-md); background: rgba(124,58,237,.08); color: var(--text); }
.feat-card h3 { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.feat-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 960px) { .feat-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* =================================================================
   v3 · Margem (faixa escura, em breve)
   ================================================================= */
.section-margin { background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(124,58,237,.35), transparent 70%), #0C0A14; color: var(--text); }
.margin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.margin-copy .sec-lead { margin-bottom: 28px; }
.sec-pill-dark { color: #D9F99D; background: rgba(163,230,53,.12); border-color: rgba(163,230,53,.3); }
.section-margin .sec-title em { color: #A3E635; }
.margin-visual { display: grid; gap: 10px; padding: 26px; border-radius: 24px; background: #13101E; border: 1px solid rgba(139,92,246,.24); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.mw-row { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 14px; font-size: 13px; color: #A9A1C8; }
.mw-row b { font-family: var(--mono); font-size: 12.5px; color: #F4F0FB; white-space: nowrap; }
.mw-bar { display: block; height: 10px; border-radius: 99px; background: #8B5CF6; }
.mw-neg .mw-bar { background: rgba(248,113,113,.7); }
.mw-full { width: 100%; } .mw-a { width: 16%; } .mw-b { width: 10%; } .mw-c { width: 5%; } .mw-d { width: 45%; }
.mw-total { padding-top: 10px; border-top: 1px dashed rgba(139,92,246,.3); color: #F4F0FB; font-weight: 700; }
.mw-total .mw-bar { width: 24%; background: #A3E635; }
.mw-total b { color: #A3E635; font-size: 15px; }
@media (max-width: 960px) { .margin-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .mw-row { grid-template-columns: 110px 1fr auto; gap: 8px; font-size: 12px; } }

/* confirmação do formulário */
.success-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px; background: rgba(124,58,237,.10); color: var(--brand-600); font-size: 26px; font-weight: 800; }

/* =================================================================
   v4 · Espaçamentos mais enxutos
   ================================================================= */
.section { padding: 88px 0; }
.sec-lead { margin-bottom: 36px; }
.section-trip { padding-top: 88px; }
.hero-stage-wrap { margin-top: 40px; }
.feat-grid { margin-top: 28px; }
.final-cta { padding: 88px 0 140px; }
.agent-grid { gap: 32px; }
@media (max-width: 720px) {
  .section, .section-trip { padding: 60px 0; }
  .sec-lead { margin-bottom: 26px; }
  .final-cta { padding: 64px 0 120px; }
}

/* =================================================================
   v4 · Canvas de automação (estilo editor de fluxos)
   ================================================================= */
.flow-shell { padding: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.flow-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--hairline); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
}
.ft-name { display: inline-flex; align-items: center; gap: 8px; }
.ft-status { display: inline-flex; align-items: center; gap: 8px; color: #047857; }
[data-theme="dark"] .ft-status { color: #34D399; }
.ft-switch { position: relative; width: 28px; height: 16px; border-radius: 99px; background: #10B981; }
.ft-switch i { position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }

.flow-canvas {
  position: relative; overflow: hidden; height: 560px;
  background-color: var(--surface-2);
  background-image: radial-gradient(circle, rgba(124,58,237,.22) 1px, transparent 1.3px);
  background-size: 18px 18px;
}
.flow-inner { position: absolute; left: 0; top: 6px; width: 520px; height: 548px; transform-origin: 0 0; }
.flow-edges { position: absolute; inset: 0; overflow: visible; }
.fl-edge { fill: none; stroke: #C9C1E3; stroke-width: 2; transition: stroke .4s; }
[data-theme="dark"] .fl-edge { stroke: #3D3758; }
.fl-arrow { fill: #C9C1E3; }
[data-theme="dark"] .fl-arrow { fill: #3D3758; }
.fl-edge.is-done { stroke: #A78BFA; }
.fl-edge.is-live { stroke: #7C3AED; stroke-width: 2.5; stroke-dasharray: 7 6; animation: flDash .6s linear infinite; }
@keyframes flDash { to { stroke-dashoffset: -13; } }
.fl-labels rect { fill: var(--surface); stroke: #C9C1E3; }
.fl-labels text { font-family: var(--mono); font-size: 10.5px; font-weight: 700; fill: var(--text-dim); text-anchor: middle; }

.fl-node {
  position: absolute; width: 230px; height: 70px; display: grid; align-content: center; gap: 4px;
  padding: 10px 12px; border-radius: 12px; background: var(--surface);
  border: 1.5px solid var(--hairline-strong); box-shadow: 0 4px 14px rgba(30,10,60,.06);
  opacity: .55; transition: opacity .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.fl-node::before, .fl-node::after { /* conectores */
  content: ''; position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid #B8AEDB;
}
.fl-node::before { top: -5px; }
.fl-node::after { bottom: -5px; }
.fl-trigger::before { display: none; }
.fl-log::after { display: none; }
.fl-h { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); }
.fl-ico { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; font-size: 11px; color: #fff; background: #8B5CF6; letter-spacing: 0; }
.fl-trigger .fl-ico { background: #F59E0B; }
.fl-cond .fl-ico { background: #3B42C4; }
.fl-action .fl-ico { background: #10B981; }
.fl-team .fl-ico { background: #EC4899; }
.fl-log .fl-ico { background: #64748B; }
.fl-st { margin-left: auto; font-size: 10px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.fl-b { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fl-node[data-node="n1"] { left: 145px; top: 16px; }
.fl-node[data-node="n2"] { left: 145px; top: 132px; }
.fl-node[data-node="n3"] { left: 145px; top: 248px; }
.fl-node[data-node="n4"] { left: 10px; top: 366px; }
.fl-node[data-node="n5"] { left: 280px; top: 366px; }
.fl-node[data-node="n6"] { left: 145px; top: 476px; }

.fl-node.is-done { opacity: 1; border-color: #A78BFA; }
.fl-node.is-done .fl-st { color: #047857; }
[data-theme="dark"] .fl-node.is-done .fl-st { color: #34D399; }
.fl-node.is-done .fl-st::before { content: '✓ feito'; }
.fl-node.is-active { opacity: 1; border-color: #7C3AED; transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(124,58,237,.14), 0 12px 28px rgba(76,29,149,.18); }
.fl-node.is-active .fl-st { color: #7C3AED; }
[data-theme="dark"] .fl-node.is-active .fl-st { color: #C4B5FD; }
.fl-node.is-active .fl-st::before { content: attr(data-run); }
.fl-node.is-active .fl-st::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 5px; vertical-align: -1px; border-radius: 50%; border: 1.5px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
.fl-node.is-skip { opacity: .3; }

.flow-controls { position: absolute; left: 12px; bottom: 12px; display: grid; border-radius: 8px; overflow: hidden; border: 1px solid var(--hairline-strong); background: var(--surface); }
.flow-controls span { display: grid; place-items: center; width: 26px; height: 24px; font-size: 13px; color: var(--text-dim); border-bottom: 1px solid var(--hairline); }
.flow-controls span:last-child { border-bottom: 0; }
.flow-minimap { position: absolute; right: 12px; bottom: 12px; width: 92px; height: 96px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: var(--surface); }
.flow-minimap i { position: absolute; width: 34px; height: 9px; border-radius: 2px; background: #D9D2F0; }
[data-theme="dark"] .flow-minimap i { background: #2A2640; }
.flow-minimap .mm1 { left: 29px; top: 8px; } .flow-minimap .mm2 { left: 29px; top: 25px; } .flow-minimap .mm3 { left: 29px; top: 42px; }
.flow-minimap .mm4 { left: 9px; top: 60px; } .flow-minimap .mm5 { left: 49px; top: 60px; } .flow-minimap .mm6 { left: 29px; top: 78px; }
.mm-view { position: absolute; inset: 4px; border: 1.5px solid rgba(124,58,237,.45); border-radius: 4px; }

@media (max-width: 640px) {
  .flow-controls, .flow-minimap { display: none; }
  .ft-name { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-edge.is-live { animation: none; stroke-dasharray: none; }
}
