/* ============================================================================
   LonyFlow — Landing "Control Room"
   Structural DNA: Dashboard Tile Grid (#14) + status-bar nav + telemetry spine.
   Isolated static document (served in an iframe), so the --lf-* design tokens
   are declared here VERBATIM from the rebrand's @theme block in src/styles.css
   (exact token NAMES preserved — the contract). Everything is hand-built in
   CSS/SVG — no media/image providers, no external asset.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   DESIGN TOKENS — the 21 --lf-* vars, names verbatim from src/styles.css.
   Dark-first canvas is the default (the niche's trust cue).
   --------------------------------------------------------------------------- */
:root {
  /* Brand anchor — azul LonyFlow */
  --lf-brand:            #2E6BFF;
  --lf-brand-hover:      #1B52DE;
  --lf-brand-deep:       #0F3FBB;
  --lf-brand-sky:        #6193FF;
  --lf-brand-300:        #98BAFE;
  --lf-brand-200:        #C4D8FF;
  --lf-brand-100:        #E2ECFE;
  --lf-brand-50:         #F0F5FF;
  --lf-brand-ink:        #00184C;
  --lf-brand-navy-900:   #0A1A3A;
  --lf-brand-navy-800:   #14254D;
  --lf-brand-navy-700:   #1E3A70;

  /* Surfaces — dark-first console canvas */
  --lf-bg:               #0B0F14;
  --lf-bg-deepest:       #05070D;
  --lf-surface:          #0F1520;
  --lf-surface-1:        #151C28;
  --lf-surface-2:        #1C2432;
  --lf-surface-alt:      #0A0A0B;

  /* Success / WhatsApp-green — "chip alive" */
  --lf-success:          #25D366;
  --lf-success-hover:    #22C55E;
  --lf-success-deep:     #07C160;
  --lf-success-fg:       #052E16;
  --lf-success-soft:     rgba(37, 211, 102, 0.14);

  /* Warning / urgency amber — "pede ação" */
  --lf-amber:            #FBBF24;
  --lf-amber-deep:       #F59E0B;
  --lf-amber-fg:         #1C1300;
  --lf-gold:             #EAB308;
  --lf-gold-hi:          #FCD34D;
  --lf-amber-soft:       rgba(251, 191, 36, 0.14);

  /* Semantic */
  --lf-info:             #38BDF8;
  --lf-info-fg:          #082F49;
  --lf-danger:           #F87171;
  --lf-danger-alt:       #EF4444;
  --lf-danger-fg:        #450A0A;

  /* Text on dark */
  --lf-text:             #FAFAFA;
  --lf-text-muted:       #A1A1AA;
  --lf-text-faint:       #8B8B93;   /* SCA-425: era #71717A (3.98 sobre --lf-bg, 3.22 sobre --lf-surface-2); agora 5.69 / 4.61 — o mesmo cinza do app escuro */
  --lf-text-silver:      #C8D0E0;
  --lf-text-on-brand:    #FFFFFF;

  /* Borders */
  --lf-border:           #27272A;
  --lf-border-strong:    #3F3F46;
  --lf-border-brand:     rgba(46, 107, 255, 0.35);
  --lf-ring:             #2E6BFF;

  /* Gradients */
  --lf-gradient-brand:        linear-gradient(135deg, #2E6BFF 0%, #6193FF 100%);
  --lf-gradient-brand-strong: linear-gradient(135deg, #1B52DE 0%, #2E6BFF 100%);
  --lf-gradient-flow:         linear-gradient(120deg, #2E6BFF 0%, #5B8CFF 45%, #25D366 100%);
  --lf-glow-brand:            radial-gradient(circle at 50% 0%, rgba(46,107,255,0.18), transparent 60%);
  --lf-glow-success:          radial-gradient(circle at 50% 50%, rgba(37,211,102,0.20), transparent 70%);

  /* Typography — Plus Jakarta display, Inter body, JetBrains Mono telemetry */
  --lf-font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --lf-font-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lf-font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Radius */
  --lf-radius-xs:    0.375rem;
  --lf-radius-sm:    0.5rem;
  --lf-radius:       0.625rem;
  --lf-radius-md:    0.75rem;
  --lf-radius-lg:    1rem;
  --lf-radius-xl:    1.5rem;
  --lf-radius-2xl:   2rem;
  --lf-radius-3xl:   2.5rem;
  --lf-radius-full:  9999px;

  /* Shadows */
  --lf-shadow-xs:    0 1px 2px rgba(0, 0, 0, 0.40);
  --lf-shadow-sm:    0 2px 6px rgba(0, 0, 0, 0.45);
  --lf-shadow-md:    0 8px 24px rgba(0, 0, 0, 0.50);
  --lf-shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.55);
  --lf-shadow-xl:    0 28px 80px rgba(0, 0, 0, 0.60);
  --lf-shadow-glow-brand:   0 0 0 1px rgba(46,107,255,0.35), 0 8px 40px rgba(46,107,255,0.30);
  --lf-shadow-glow-success: 0 0 0 1px rgba(37,211,102,0.35), 0 8px 32px rgba(37,211,102,0.28);
  --lf-shadow-card:  0 1px 0 rgba(255,255,255,0.03) inset, 0 12px 40px rgba(0,0,0,0.50);

  /* Motion — deliberate easings (identity through curve) */
  --lf-ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --lf-ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --lf-ease-smooth:  cubic-bezier(0.16, 1, 0.3, 1);   /* signature: entrance overshoot */
  --lf-ease-snap:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --lf-dur-fast:     150ms;
  --lf-dur-base:     250ms;
  --lf-dur-slow:     400ms;
  --lf-dur-reveal:   720ms;

  /* Layout */
  --lf-container:        1200px;
  --lf-container-wide:   1320px;
  --lf-container-narrow: 760px;
  --lf-container-px:     clamp(1.25rem, 4vw, 2rem);
  --lf-section-y:        clamp(4.5rem, 9vw, 8.5rem);
  --lf-nav-h:            60px;
  --lf-rail-w:           56px;

  /* Console surface alphas (light-on-dark strata, hand-tuned over --lf-bg) */
  --lf-s0: rgba(255,255,255,0.014);
  --lf-s1: rgba(255,255,255,0.022);
  --lf-s2: rgba(255,255,255,0.035);
  --lf-s3: rgba(255,255,255,0.05);
  --lf-s4: rgba(255,255,255,0.07);
  --lf-hair-0: rgba(255,255,255,0.05);
  --lf-hair-1: rgba(255,255,255,0.08);
  --lf-hair-2: rgba(255,255,255,0.12);

  /* Type scale — fluid */
  --lf-t-eyebrow: 0.6875rem;
  --lf-t-xs:      0.75rem;
  --lf-t-sm:      0.8125rem;
  --lf-t-base:    0.9375rem;
  --lf-t-md:      clamp(0.9375rem, 0.86rem + 0.4vw, 1.1875rem);
  --lf-t-h3:      clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  --lf-t-h2:      clamp(1.9rem, 1.35rem + 2.3vw, 3.35rem);
  --lf-t-h1:      clamp(2.5rem, 1.5rem + 4.4vw, 5rem);
}

/* Light theme parity (secondary — the toggle contract from the app). The
   landing runs dark-first inside the iframe; kept for completeness/robustness. */
:root[data-theme="light"] {
  --lf-bg:            #FAFAFA;  --lf-bg-deepest: #F1F1F3;
  --lf-surface:       #FFFFFF;  --lf-surface-1: #F7F7F8;  --lf-surface-2: #F0F0F2;
  --lf-success:       #15803D;  --lf-success-hover: #166534; --lf-success-fg: #FFFFFF;
  --lf-amber:         #B45309;  --lf-amber-fg: #FFFFFF;
  --lf-text:          #18181B;  --lf-text-muted: #52525B;  --lf-text-faint: #68686F;  --lf-text-silver: #3F3F46; /* SCA-425: faint era #A1A1AA (2.32 sobre branco); #68686F = 5.53 sobre branco, 4.86 sobre --lf-surface-2 */
  --lf-border:        #E4E4E7;  --lf-border-strong: #D4D4D8;
  --lf-s0: rgba(9,12,20,0.014); --lf-s1: rgba(9,12,20,0.025); --lf-s2: rgba(9,12,20,0.04);
  --lf-s3: rgba(9,12,20,0.06); --lf-s4: rgba(9,12,20,0.08);
  --lf-hair-0: rgba(9,12,20,0.06); --lf-hair-1: rgba(9,12,20,0.09); --lf-hair-2: rgba(9,12,20,0.14);
  /* SCA-643: "Flow" do wordmark no claro usa o azul cheio (4.6:1 sobre branco). */
  --lf-brand-word-accent: var(--lf-brand);
}

/* ---------------------------------------------------------------------------
   RESET
   --------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lf-nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--lf-bg);
  color: var(--lf-text);
  font-family: var(--lf-font-sans);
  font-size: var(--lf-t-base);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------------------
   MICRO-DETAILS (mandatory) — selection, scrollbar, focus, cursor, grain.
   --------------------------------------------------------------------------- */
::selection { background: rgba(46,107,255,0.32); color: #fff; text-shadow: none; }
::-moz-selection { background: rgba(46,107,255,0.32); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--lf-bg-deepest); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--lf-brand-navy-700), #16203a);
  border: 2px solid var(--lf-bg-deepest);
  border-radius: var(--lf-radius-full);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--lf-brand), var(--lf-brand-navy-700)); }
* { scrollbar-width: thin; scrollbar-color: var(--lf-brand-navy-700) var(--lf-bg-deepest); }

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

/* Custom cursor — a soft ring + dot that tracks the pointer, grows over
   interactive targets. Disabled on touch & reduced-motion (see JS + queries). */
.lf-cursor, .lf-cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity var(--lf-dur-base) var(--lf-ease-out);
}
.lf-cursor {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(97,147,255,0.7);
  transition: width var(--lf-dur-base) var(--lf-ease-out),
              height var(--lf-dur-base) var(--lf-ease-out),
              border-color var(--lf-dur-base) var(--lf-ease-out),
              background var(--lf-dur-base) var(--lf-ease-out),
              opacity var(--lf-dur-base) var(--lf-ease-out);
}
.lf-cursor-dot { width: 5px; height: 5px; background: var(--lf-brand-sky); }
body.lf-cursor-on .lf-cursor, body.lf-cursor-on .lf-cursor-dot { opacity: 1; }
body.lf-cursor-hot .lf-cursor {
  width: 56px; height: 56px;
  border-color: rgba(37,211,102,0.8);
  background: rgba(37,211,102,0.06);
}
@media (hover: none), (pointer: coarse) {
  .lf-cursor, .lf-cursor-dot { display: none !important; }
}

/* Grain — inline SVG noise, warms the large dark fields */
.lf-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* Ambient blue field + vignette */
.lf-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lf-ambient .glow-a, .lf-ambient .glow-b { position: absolute; border-radius: 50%; filter: blur(150px); }
.lf-ambient .glow-a { width: 60vw; height: 55vh; top: -14%; left: 6%; background: radial-gradient(circle, rgba(46,107,255,0.10), transparent 65%); animation: lf-drift 26s ease-in-out infinite; }
.lf-ambient .glow-b { width: 50vw; height: 48vh; bottom: -10%; right: 4%; background: radial-gradient(circle, rgba(37,211,102,0.05), transparent 70%); animation: lf-drift 30s ease-in-out infinite reverse; }
.lf-vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 30%, transparent 55%, rgba(0,0,0,0.5) 100%); }
@keyframes lf-drift { 0%,100%{ transform: translate(0,0) scale(1);} 33%{ transform: translate(3%,2%) scale(1.05);} 66%{ transform: translate(-2%,4%) scale(0.97);} }

.lf-page { position: relative; z-index: 5; }

/* ---------------------------------------------------------------------------
   REVEAL — one signature scroll technique: panels "boot up".
   --------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity var(--lf-dur-reveal) var(--lf-ease-smooth),
              transform var(--lf-dur-reveal) var(--lf-ease-smooth);
}
.reveal[data-delay="1"].in { transition-delay: 0.06s; }
.reveal[data-delay="2"].in { transition-delay: 0.12s; }
.reveal[data-delay="3"].in { transition-delay: 0.18s; }
.reveal[data-delay="4"].in { transition-delay: 0.24s; }
.reveal[data-delay="5"].in { transition-delay: 0.30s; }

/* ---------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   --------------------------------------------------------------------------- */
.container { max-width: var(--lf-container); margin: 0 auto; padding: 0 var(--lf-container-px); }
.container-wide { max-width: var(--lf-container-wide); margin: 0 auto; padding: 0 var(--lf-container-px); }
section { position: relative; }

/* Console section index label — mono, the telemetry identity signal */
.sec-index {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--lf-font-mono);
  font-size: var(--lf-t-eyebrow);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--lf-text-faint);
  margin-bottom: 1.4rem;
}
.sec-index::before {
  content: ""; width: 22px; height: 1px; background: var(--lf-border-strong);
}
.sec-index .n { color: var(--lf-brand-sky); }
.sec-index .live { color: var(--lf-success); }

.eyebrow {
  display: block; font-family: var(--lf-font-mono);
  font-size: var(--lf-t-eyebrow); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--lf-brand-sky); margin-bottom: 1.1rem;
}
.h2 {
  font-family: var(--lf-font-display);
  font-size: var(--lf-t-h2); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.04;
  text-wrap: balance; color: var(--lf-text);
}
.h2 .dim { color: var(--lf-text-muted); }
.h2 .flow { position: relative; white-space: nowrap; }
.h2 .flow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 0.09em;
  background: var(--lf-gradient-flow); border-radius: 2px; opacity: 0.9;
}
.section-head { max-width: var(--lf-container-narrow); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-sub {
  font-size: var(--lf-t-md); color: var(--lf-text-muted);
  line-height: 1.65; margin-top: 1.25rem; max-width: 60ch;
}
.section-head.center .section-sub { margin-inline: auto; }

/* ---------------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--lf-font-sans); font-weight: 600; text-decoration: none;
  border: none; border-radius: var(--lf-radius-full); white-space: nowrap;
  transition: transform var(--lf-dur-fast) var(--lf-ease-out),
              box-shadow var(--lf-dur-fast) var(--lf-ease-out),
              background var(--lf-dur-fast) var(--lf-ease-out),
              border-color var(--lf-dur-fast) var(--lf-ease-out),
              color var(--lf-dur-fast) var(--lf-ease-out); }
.btn svg { width: 16px; height: 16px; }
.btn-lg { height: 54px; padding: 0 1.9rem; font-size: 1rem; letter-spacing: -0.01em; }
.btn-md { height: 46px; padding: 0 1.4rem; font-size: 0.9375rem; }
.btn-sm { height: 36px; padding: 0 0.95rem; font-size: 0.8125rem; }

/* Primary = WhatsApp green CTA (the "go" action), breathing glow */
.btn-cta { background: linear-gradient(135deg, var(--lf-success) 0%, var(--lf-success-deep) 100%);
  color: #04220F; box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset, 0 10px 30px -8px rgba(37,211,102,0.55); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 16px 44px -8px rgba(37,211,102,0.7); }
.btn-cta:active { transform: translateY(0) scale(0.98); }
.btn-cta.breathe { animation: lf-breathe 3.6s var(--lf-ease-in-out) infinite; }
@keyframes lf-breathe {
  0%,100% { box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset, 0 10px 30px -8px rgba(37,211,102,0.45); }
  50%     { box-shadow: 0 1px 0 rgba(255,255,255,0.32) inset, 0 14px 40px -8px rgba(37,211,102,0.7); }
}

/* Brand = blue platform action */
.btn-brand { background: linear-gradient(135deg, var(--lf-brand-sky) 0%, var(--lf-brand) 100%);
  color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 10px 28px -8px rgba(46,107,255,0.6); }
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset, 0 16px 40px -8px rgba(46,107,255,0.78); }
.btn-brand:active { transform: translateY(0) scale(0.98); }

/* White = high-contrast hero primary */
.btn-white { background: #fff; color: #0A0D12; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 34px -10px rgba(255,255,255,0.22); }
.btn-white:hover { transform: translateY(-2px) scale(1.01); }
.btn-white:active { transform: translateY(0) scale(0.98); }

/* Ghost = secondary */
.btn-ghost { background: var(--lf-s2); border: 1px solid var(--lf-hair-2); color: var(--lf-text-silver); }
.btn-ghost:hover { background: var(--lf-s4); border-color: rgba(255,255,255,0.22); color: #fff; }

/* ---------------------------------------------------------------------------
   STATUS-BAR NAV — the chosen nav pattern (tech field). App-chrome, live pip.
   --------------------------------------------------------------------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--lf-nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background var(--lf-dur-base) var(--lf-ease-out),
              border-color var(--lf-dur-base) var(--lf-ease-out),
              box-shadow var(--lf-dur-base) var(--lf-ease-out); }
.nav.scrolled { background: rgba(8,11,16,0.72); backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--lf-hair-1); box-shadow: 0 8px 30px -14px rgba(0,0,0,0.8); }
.nav-inner { width: 100%; max-width: var(--lf-container-wide); margin: 0 auto;
  padding: 0 var(--lf-container-px); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-left { display: flex; align-items: center; gap: 0.9rem; }
.nav-wordmark { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: inherit; }
/* SCA-643: a marca é o "S" da Scalony (o mesmo webp do login e do painel) + o
   wordmark "LonyFlow" em texto — nada de "L" desenhado em SVG. Tokens só. */
.brand-mark { display: block; flex-shrink: 0; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.brand-word { font-family: var(--lf-font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.03em;
  line-height: 1; color: var(--lf-text); white-space: nowrap; }
.brand-word-sm { font-size: 0.95rem; }
.brand-word-accent { color: var(--lf-brand-word-accent, var(--lf-brand-sky)); }
.nav-status { display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--lf-font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lf-text-faint); padding-left: 0.9rem; border-left: 1px solid var(--lf-hair-1); }
/* SCA-188: o pip nasce APAGADO. Só [data-status="on"] (200 de /api/public/stats,
   decidido por status-pip.js) pinta de verde e pulsa; "off" (503/erro) fica
   cinza sem animação. Markup estático nunca mais anuncia "operacional". */
.nav-status .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--lf-text-faint); }
.nav-status[data-status="on"] .pip { background: var(--lf-success);
  box-shadow: 0 0 0 0 rgba(37,211,102,0.5); animation: lf-pip 2.4s var(--lf-ease-out) infinite; }
.nav-status[data-status="on"] { color: var(--lf-text-muted); }
@keyframes lf-pip { 0%{ box-shadow: 0 0 0 0 rgba(37,211,102,0.5);} 70%{ box-shadow: 0 0 0 5px rgba(37,211,102,0);} 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
/* SCA-415: a aba nunca quebra no meio ("Como / funciona"); quando não cabe, o
   header troca para o hambúrguer (ver breakpoints em RESPONSIVE). */
.nav-tabs { display: flex; gap: 0.15rem; flex-wrap: nowrap; }
.nav-tabs a { font-size: 0.8125rem; color: var(--lf-text-muted); padding: 0.45rem 0.85rem; white-space: nowrap;
  border-radius: var(--lf-radius-sm); transition: color var(--lf-dur-fast), background var(--lf-dur-fast); }
.nav-tabs a:hover { color: #fff; background: var(--lf-s2); }
.nav-right { display: flex; align-items: center; gap: 0.55rem; }
.nav-login { font-size: 0.8125rem; color: var(--lf-text-silver); padding: 0.5rem 0.85rem;
  border-radius: var(--lf-radius-full); border: 1px solid var(--lf-hair-1); transition: all var(--lf-dur-fast); }
.nav-login:hover { color: #fff; border-color: var(--lf-hair-2); background: var(--lf-s2); }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: var(--lf-radius-sm);
  background: var(--lf-s2); border: 1px solid var(--lf-hair-1); align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; display: block;
  width: 16px; height: 1.6px; background: #fff; border-radius: 2px; position: relative; transition: transform var(--lf-dur-fast); }
.nav-burger span::before { position: absolute; top: -5px; }
.nav-burger span::after { position: absolute; top: 5px; }

/* Mobile panel */
.nav-mobile { position: fixed; top: var(--lf-nav-h); left: 0; right: 0; z-index: 199;
  background: rgba(8,11,16,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lf-hair-1); padding: 1rem var(--lf-container-px) 1.4rem;
  display: none; flex-direction: column; gap: 0.2rem; }
.nav-mobile.open { display: flex; animation: lf-slide-down var(--lf-dur-base) var(--lf-ease-smooth); }
.nav-mobile a { padding: 0.85rem 0.5rem; color: var(--lf-text-silver); border-bottom: 1px solid var(--lf-hair-0); font-size: 0.95rem; }
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .btn { margin-top: 0.8rem; justify-content: center; }
/* SCA-196: "Entrar" no drawer — mesmo peso do CTA, para quem já tem conta. */
.nav-mobile .nav-mobile-login { margin-top: 0.8rem; padding: 0; border-bottom: none;
  display: flex; align-items: center; justify-content: center; height: 46px;
  color: #fff; font-weight: 600; font-size: 0.9375rem;
  border: 1px solid var(--lf-hair-2); border-radius: var(--lf-radius-full); background: var(--lf-s2); }
.nav-mobile .nav-mobile-login:hover { background: var(--lf-s3); }
@keyframes lf-slide-down { from { opacity: 0; transform: translateY(-10px);} to { opacity: 1; transform: none;} }

/* ---------------------------------------------------------------------------
   TELEMETRY SPINE — persistent decorative left rail (desktop only).
   The "control room is always watching" motif.
   --------------------------------------------------------------------------- */
.spine { position: fixed; top: 0; bottom: 0; left: 0; width: var(--lf-rail-w); z-index: 150;
  display: none; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--lf-nav-h) + 22px) 0 22px;
  border-right: 1px solid var(--lf-hair-0); background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent 30%);
  pointer-events: none; }
.spine .cap { font-family: var(--lf-font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lf-text-faint); writing-mode: vertical-rl; transform: rotate(180deg); }
.spine .mid { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.spine .tick { font-family: var(--lf-font-mono); font-size: 10px; color: var(--lf-brand-sky);
  writing-mode: vertical-rl; letter-spacing: 0.1em; }
.spine .barlet { width: 2px; height: 44px; border-radius: 2px; background: var(--lf-hair-1); overflow: hidden; position: relative; }
.spine .barlet::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: var(--lf-gradient-flow); border-radius: 2px; }
.spine .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lf-success);
  box-shadow: 0 0 10px rgba(37,211,102,0.7); animation: lf-pip 2.4s var(--lf-ease-out) infinite; }
@media (min-width: 1240px) {
  .spine { display: flex; }
  .lf-page { padding-left: var(--lf-rail-w); }
  .nav-inner { padding-left: calc(var(--lf-container-px) + var(--lf-rail-w) * 0.4); }
}

/* ===========================================================================
   HERO — the "live fleet console"
   =========================================================================== */
.hero { position: relative; padding-top: clamp(7.5rem, 12vw, 10rem); padding-bottom: var(--lf-section-y); overflow: clip; }
.hero-glow { position: absolute; inset: -10% -5% auto; height: 70%; background: var(--lf-glow-brand); filter: blur(90px); pointer-events: none; }
#lf-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lf-star { position: absolute; border-radius: 50%; background: rgba(255,255,255,var(--o,0.5)); animation: lf-twinkle var(--tw,5s) ease-in-out infinite; animation-delay: var(--td,0s); }
.lf-star.big { box-shadow: 0 0 4px rgba(255,255,255,0.7); }
@keyframes lf-twinkle { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-inner { position: relative; z-index: 6; max-width: 900px; margin: 0 auto; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.95rem;
  border-radius: var(--lf-radius-full); border: 1px solid var(--lf-border-brand);
  background: rgba(46,107,255,0.07); font-family: var(--lf-font-mono);
  font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--lf-text-silver); margin-bottom: 1.6rem; }
.hero-badge .pip { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--lf-success); }
.hero-badge .pip::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--lf-success); animation: lf-ping 2.4s var(--lf-ease-out) infinite; }
@keyframes lf-ping { 0%{ transform: scale(0.6); opacity: 0.9;} 70%,100%{ transform: scale(2.3); opacity: 0;} }

.hero-h1 { font-family: var(--lf-font-display); font-size: var(--lf-t-h1); font-weight: 800;
  letter-spacing: -0.045em; line-height: 0.98; text-wrap: balance; color: var(--lf-text); margin: 0 auto 1.4rem; }
.hero-h1 .flow { background: var(--lf-gradient-flow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-h1 .dim { color: var(--lf-text-muted); }
.hero-sub { font-size: var(--lf-t-md); color: var(--lf-text-muted); line-height: 1.6; max-width: 620px; margin: 0 auto 2.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-bottom: 1.1rem; }
.hero-micro { font-family: var(--lf-font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--lf-text-faint); }
/* SCA-208: alvo de toque ≥ 44px para links pequenos ("ver preços") sem mexer
   no visual — padding compensado por margin negativa. */
.hero-micro a { display: inline-block; padding: 14px 6px; margin: -14px -6px; }

/* Live stat strip */
.stats-strip { display: inline-flex; flex-wrap: wrap; gap: 1.3rem; align-items: center; justify-content: center;
  margin: 1.9rem auto 0; padding: 0.7rem 1.4rem; border-radius: var(--lf-radius-full);
  background: var(--lf-s1); border: 1px solid var(--lf-hair-1); }
.stat-item { display: flex; align-items: center; gap: 0.6rem; }
/* Contador escondido com dignidade (0 legítimo / erro): [hidden] precisa vencer
   o display:flex/block acima para o item e o separador sumirem de fato. */
.stat-item[hidden], .stat-sep[hidden] { display: none; }
.stat-ping { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--lf-success); flex-shrink: 0; }
.stat-ping::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--lf-success); animation: lf-ping 2.4s var(--lf-ease-out) infinite; }
.stat-num { font-family: var(--lf-font-mono); font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-width: 2ch; transition: opacity var(--lf-dur-slow); }
.stat-num.loading { opacity: 0.35; }
.stat-label { font-size: var(--lf-t-xs); color: var(--lf-text-muted); }
.stat-sep { width: 1px; height: 1.4rem; background: var(--lf-hair-1); }

/* ---- The console (dashboard tile grid, hand-built) ---- */
.console-stage { position: relative; z-index: 7; margin: clamp(3rem, 6vw, 5rem) auto 0; max-width: 1080px; perspective: 2200px; }
.console-glow { position: absolute; inset: 8% -4% -8%; background: var(--lf-glow-brand); filter: blur(80px); opacity: 0.5; pointer-events: none; }
.console-frame { position: relative; transform-style: preserve-3d; will-change: transform;
  border-radius: var(--lf-radius-xl); padding: 1px;
  background: linear-gradient(160deg, var(--lf-hair-2), var(--lf-hair-0) 45%, transparent);
  box-shadow: var(--lf-shadow-xl); }
.console-frame::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.24), transparent); z-index: 2; }
.console { background: var(--lf-surface); border-radius: calc(var(--lf-radius-xl) - 1px); overflow: hidden; }
.console-top { display: flex; align-items: center; gap: 0.55rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--lf-hair-0); }
.console-dot { width: 11px; height: 11px; border-radius: 50%; }
.console-title { font-family: var(--lf-font-mono); font-size: 0.72rem; color: var(--lf-text-muted); margin-left: 0.4rem; letter-spacing: 0.03em; }
.console-live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--lf-font-mono); font-size: 10px; color: var(--lf-success);
  background: var(--lf-success-soft); border: 1px solid rgba(37,211,102,0.25); padding: 0.15rem 0.55rem; border-radius: var(--lf-radius-full); }
.console-live .d { width: 6px; height: 6px; border-radius: 50%; background: var(--lf-success); }
/* D3: o console é uma demonstração da interface — o selo não pode ler como "ao
   vivo". Neutro (não-verde) e sem pulso, para nunca sugerir telemetria real. */
.console-live.demo { color: var(--lf-text-muted); background: var(--lf-s2); border-color: var(--lf-hair-1); }
.console-live.demo .d { background: var(--lf-text-faint); }
.console-body { display: grid; grid-template-columns: 210px 1fr; min-height: 380px; }
.console-side { border-right: 1px solid var(--lf-hair-0); padding: 0.9rem 0.7rem; display: flex; flex-direction: column; gap: 0.15rem; }
.side-item { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.7rem; border-radius: var(--lf-radius-sm);
  font-size: var(--lf-t-xs); color: var(--lf-text-muted); position: relative; transition: background var(--lf-dur-fast), color var(--lf-dur-fast); }
.side-item svg { width: 15px; height: 15px; opacity: 0.75; flex-shrink: 0; }
.side-item .badge { margin-left: auto; font-family: var(--lf-font-mono); font-size: 9px; font-weight: 700;
  padding: 0.1rem 0.42rem; border-radius: var(--lf-radius-full); background: rgba(46,107,255,0.15); color: var(--lf-brand-sky); }
.side-item:hover { background: var(--lf-s2); color: #fff; }
.side-item.active { background: var(--lf-s2); color: #fff; box-shadow: inset 0 0 0 1px var(--lf-hair-1); }
.side-item.active::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 2px; border-radius: 2px; background: var(--lf-brand-sky); }

.console-main { position: relative; padding: 1.15rem; min-height: 380px; }
.panel { display: none; flex-direction: column; gap: 1rem; }
.panel.active { display: flex; animation: lf-panel-in var(--lf-dur-slow) var(--lf-ease-smooth); }
@keyframes lf-panel-in { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }
.panel-head { display: flex; align-items: center; gap: 0.6rem; }
.panel-head h5 { font-size: var(--lf-t-sm); font-weight: 600; color: #fff; }
.panel-head .sub { font-family: var(--lf-font-mono); font-size: 10px; color: var(--lf-text-faint); }
.panel-head .spacer { flex: 1; }

/* KPI tiles */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.kpi { background: var(--lf-s1); border: 1px solid var(--lf-hair-0); border-radius: var(--lf-radius-md); padding: 0.85rem 0.95rem; }
.kpi .k-label { font-family: var(--lf-font-mono); font-size: 9px; color: var(--lf-text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.kpi .k-value { font-size: 1.4rem; font-weight: 700; margin-top: 0.3rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi .k-value.ok { color: var(--lf-success); }
.kpi .k-value.warn { color: var(--lf-amber); }
.kpi .trend { display: inline-flex; align-items: center; gap: 0.2rem; font-family: var(--lf-font-mono); font-size: 10px; font-weight: 600; margin-top: 0.25rem; }
.kpi .trend.up { color: var(--lf-success); }
.kpi .trend.down { color: var(--lf-amber); }
/* D3: KPI sem número — o valor vira um descritor curto, e a linha de apoio é
   uma nota neutra (nunca uma variação percentual inventada). */
.kpi .k-value.text { font-size: 0.95rem; letter-spacing: 0; }
.kpi .trend.note { color: var(--lf-text-faint); font-weight: 500; text-transform: none; letter-spacing: 0; }
.kpi .trend svg { width: 11px; height: 11px; }

/* Chart card */
.chart-card { border: 1px solid var(--lf-hair-0); border-radius: var(--lf-radius-md); padding: 0.95rem 1.05rem; background: var(--lf-s1); }
.chart-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; }
.chart-head h6 { font-size: var(--lf-t-sm); font-weight: 600; color: #fff; }
/* Etiqueta que marca um bloco do console como ilustração (D3). */
.demo-tag { font-family: var(--lf-font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--lf-text-faint); background: var(--lf-s2); border: 1px solid var(--lf-hair-0);
  padding: 0.1rem 0.4rem; border-radius: var(--lf-radius-full); }
.chart-head .legend { display: flex; gap: 0.9rem; margin-left: auto; font-family: var(--lf-font-mono); font-size: 10px; color: var(--lf-text-faint); }
.chart-head .legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.chart-head .legend i { width: 8px; height: 8px; border-radius: 2px; }
.chart-head .legend .sw-sent { background: var(--lf-brand-sky); }
.chart-head .legend .sw-recv { background: var(--lf-success); }
.chart-svg { width: 100%; height: 120px; display: block; }
.chart-svg .grid-line { stroke: rgba(255,255,255,0.05); stroke-width: 1; }
.chart-svg .axis { fill: var(--lf-text-faint); font-size: 8px; font-family: var(--lf-font-mono); }
.chart-svg path.line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg path.line-sent { stroke: var(--lf-brand-sky); }
.chart-svg path.line-recv { stroke: var(--lf-success); }
.chart-svg .area { opacity: 0.13; }
.chart-svg .area-sent { fill: var(--lf-brand-sky); }
.chart-svg .area-recv { fill: var(--lf-success); }

/* Ledger table */
.dash-table { border: 1px solid var(--lf-hair-0); border-radius: var(--lf-radius-md); overflow: hidden; font-size: var(--lf-t-xs); }
.dt-head, .dt-row { display: grid; grid-template-columns: 1.5fr 1fr 0.9fr 0.9fr; align-items: center; padding: 0.55rem 0.9rem; }
.dt-head { background: var(--lf-s1); color: var(--lf-text-faint); font-family: var(--lf-font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em; border-bottom: 1px solid var(--lf-hair-0); }
.dt-row { border-bottom: 1px solid var(--lf-hair-0); color: var(--lf-text-muted); cursor: pointer; transition: background var(--lf-dur-fast); }
.dt-row:last-child { border-bottom: none; }
.dt-row:hover { background: var(--lf-s2); }
.dt-row.selected { background: rgba(46,107,255,0.08); box-shadow: inset 2px 0 0 var(--lf-brand-sky); }
.dt-chip { display: flex; align-items: center; gap: 0.5rem; color: #fff; }
.dt-chip .ava { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--lf-brand-sky), var(--lf-brand)); display: grid; place-items: center; font-family: var(--lf-font-mono); font-size: 9px; font-weight: 700; color: #fff; }
.status-pill { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--lf-font-mono); font-size: 10px; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: var(--lf-radius-full); }
.status-pill .d { width: 6px; height: 6px; border-radius: 50%; }
.status-pill.ok { color: var(--lf-success); background: var(--lf-success-soft); } .status-pill.ok .d { background: var(--lf-success); }
.status-pill.warm { color: var(--lf-brand-sky); background: rgba(46,107,255,0.10); } .status-pill.warm .d { background: var(--lf-brand-sky); }
.status-pill.warn { color: var(--lf-amber); background: var(--lf-amber-soft); } .status-pill.warn .d { background: var(--lf-amber); }

/* Detail box */
.detail { display: none; border: 1px solid var(--lf-hair-0); border-radius: var(--lf-radius-md); background: var(--lf-s1); padding: 1rem; }
.detail.on { display: block; animation: lf-panel-in var(--lf-dur-slow) var(--lf-ease-smooth); }
.detail .d-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.detail .d-head .ava { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--lf-brand-sky), var(--lf-brand)); display: grid; place-items: center; font-family: var(--lf-font-mono); font-size: 11px; font-weight: 700; color: #fff; }
.detail .d-head .who { font-weight: 600; color: #fff; font-size: var(--lf-t-sm); }
.detail .d-head .what { font-family: var(--lf-font-mono); font-size: 10px; color: var(--lf-text-faint); }
.detail .d-head .closer { margin-left: auto; background: transparent; border: none; color: var(--lf-text-faint); font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.detail .d-head .closer:hover { color: #fff; background: var(--lf-s2); }
.detail .d-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.detail .dm { background: var(--lf-s1); border: 1px solid var(--lf-hair-0); border-radius: var(--lf-radius-sm); padding: 0.6rem 0.7rem; }
.detail .dm .l { font-family: var(--lf-font-mono); font-size: 9px; color: var(--lf-text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.detail .dm .v { font-size: var(--lf-t-sm); font-weight: 700; color: #fff; margin-top: 0.2rem; font-variant-numeric: tabular-nums; }
.detail .d-curve { margin-top: 0.9rem; }
.detail .d-curve .cl { display: flex; justify-content: space-between; font-family: var(--lf-font-mono); font-size: 9px; color: var(--lf-text-faint); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em; }
.detail .d-curve .cl b { color: #fff; }
.progress { height: 6px; border-radius: 3px; background: var(--lf-s3); overflow: hidden; position: relative; }
.progress .fill { height: 100%; border-radius: 3px; background: var(--lf-gradient-flow); transition: width 0.9s var(--lf-ease-smooth); }

/* Warmup ramp */
.ramp-card { border: 1px solid var(--lf-hair-0); border-radius: var(--lf-radius-md); padding: 0.95rem 1.05rem; position: relative; overflow: hidden; }
.ramp-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--lf-gradient-flow); opacity: 0.6; }
.ramp-card h6 { font-size: var(--lf-t-sm); font-weight: 600; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.ramp-card h6 .tag { font-family: var(--lf-font-mono); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lf-brand-sky); background: rgba(46,107,255,0.12); padding: 0.1rem 0.45rem; border-radius: var(--lf-radius-full); }
.ramp-card .meta { font-family: var(--lf-font-mono); font-size: 10px; color: var(--lf-text-faint); margin: 0.3rem 0 0.7rem; }
.ramp { display: flex; align-items: flex-end; gap: 3px; height: 52px; margin-top: 0.5rem; }
.ramp i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(to top, var(--lf-brand-deep), var(--lf-brand-sky)); opacity: 0.85; transition: height 0.6s var(--lf-ease-smooth); min-height: 2px; }
.ramp-cl { display: flex; justify-content: space-between; font-family: var(--lf-font-mono); font-size: 9px; color: var(--lf-text-faint); margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.ramp-cl b { color: #fff; }

/* Logs */
.log-status { font-family: var(--lf-font-mono); font-size: 10px; color: var(--lf-success); display: flex; align-items: center; gap: 0.4rem; }
.log-status .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--lf-success); position: relative; }
.log-status .pip::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--lf-success); animation: lf-ping 2.4s var(--lf-ease-out) infinite; }
/* D3: a lista de eventos é exemplo, não stream — sem verde de "ativo". */
.log-status.demo { color: var(--lf-text-faint); }
.logs { display: flex; flex-direction: column; gap: 0.1rem; font-family: var(--lf-font-mono); font-size: 11px; }
.log-line { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.3rem 0.5rem; border-radius: var(--lf-radius-xs); animation: lf-log-in var(--lf-dur-slow) var(--lf-ease-out); }
.log-line:hover { background: var(--lf-s1); }
.log-line .t { color: var(--lf-text-faint); flex-shrink: 0; width: 54px; }
.log-line .lv { flex-shrink: 0; width: 56px; font-weight: 700; }
.log-line .lv.ok { color: var(--lf-success); }
.log-line .lv.warn { color: var(--lf-amber); }
.log-line .lv.info { color: var(--lf-brand-sky); }
.log-line .msg { color: var(--lf-text-muted); }
@keyframes lf-log-in { from { opacity: 0; transform: translateX(-6px);} to { opacity: 1; transform: none;} }

/* Proxy cards */
.proxy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.proxy-card { border: 1px solid var(--lf-hair-0); border-radius: var(--lf-radius-md); padding: 0.85rem 0.95rem; display: flex; gap: 0.75rem; align-items: center; transition: all var(--lf-dur-fast); }
.proxy-card:hover { border-color: var(--lf-border-brand); background: var(--lf-s1); }
.proxy-card .flag { width: 34px; height: 34px; border-radius: var(--lf-radius-sm); background: var(--lf-s3); display: grid; place-items: center; font-size: 15px; }
.proxy-card .pi { flex: 1; }
.proxy-card .pi .n { font-family: var(--lf-font-mono); font-size: var(--lf-t-xs); font-weight: 600; color: #fff; }
.proxy-card .pi .u { font-size: 10px; color: var(--lf-text-faint); }
.proxy-card .lat { font-family: var(--lf-font-mono); font-size: 11px; font-weight: 700; }
.proxy-card .lat.ok { color: var(--lf-success); }
.proxy-card .lat.warn { color: var(--lf-amber); }

/* View tabs */
.view-tabs { display: inline-flex; gap: 2px; background: var(--lf-s1); border: 1px solid var(--lf-hair-0); border-radius: var(--lf-radius-sm); padding: 2px; }
.view-tabs button { border: none; background: transparent; color: var(--lf-text-muted); font-family: var(--lf-font-mono); font-size: 10px; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: var(--lf-radius-xs); transition: all var(--lf-dur-fast); }
.view-tabs button.active { background: var(--lf-s3); color: #fff; }
.view-tabs button:hover:not(.active) { color: #fff; }

/* SCA-188: o funil do CRM saiu do console de demonstração (nenhum plano do
   catálogo inclui o módulo). */

/* Alerts */
.alert-list { display: flex; flex-direction: column; gap: 0.5rem; }
.alert-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.85rem; border: 1px solid var(--lf-hair-0); border-radius: var(--lf-radius-md); background: var(--lf-s1); transition: all var(--lf-dur-fast); }
.alert-item:hover { border-color: var(--lf-border-brand); }
.alert-ico { width: 34px; height: 34px; border-radius: var(--lf-radius-sm); display: grid; place-items: center; flex-shrink: 0; }
.alert-ico svg { width: 16px; height: 16px; }
.alert-ico.crit { background: rgba(239,68,68,0.15); color: var(--lf-danger); }
.alert-ico.warn { background: var(--lf-amber-soft); color: var(--lf-amber); }
.alert-ico.info { background: rgba(46,107,255,0.15); color: var(--lf-brand-sky); }
.alert-body { flex: 1; }
.alert-body .t { font-size: var(--lf-t-sm); font-weight: 600; color: #fff; }
.alert-body .d { font-size: 10px; color: var(--lf-text-faint); margin-top: 0.15rem; }
.alert-sev { font-family: var(--lf-font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.alert-sev.crit { color: var(--lf-danger); }
.alert-sev.warn { color: var(--lf-amber); }
.alert-sev.ok { color: var(--lf-success); }

/* ===========================================================================
   SECTION 01 — CONTROLE (ledger split)
   =========================================================================== */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: var(--lf-section-y) 0; }
.split h2 { font-family: var(--lf-font-display); font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.ledger { display: flex; flex-direction: column; }
.ledger-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.35rem 0; border-top: 1px solid var(--lf-hair-0); }
.ledger-row:last-child { border-bottom: 1px solid var(--lf-hair-0); }
.ledger-row .idx { font-family: var(--lf-font-mono); font-size: 0.7rem; color: var(--lf-brand-sky); padding-top: 0.15rem; min-width: 2.4ch; }
.ledger-row h4 { font-size: var(--lf-t-h3); font-weight: 700; color: #fff; margin-bottom: 0.25rem; letter-spacing: -0.01em; }
.ledger-row p { font-size: var(--lf-t-base); color: var(--lf-text-muted); line-height: 1.6; }

/* ===========================================================================
   SECTION 02 — PROCESSO DE PROTEÇÃO (mechanism ledger)
   =========================================================================== */
.processo-inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: var(--lf-section-y) 0; }
.mec-list { display: flex; flex-direction: column; gap: 0.7rem; }
.mec-item { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--lf-radius-md); border: 1px solid var(--lf-hair-0); background: var(--lf-s1); transition: border-color var(--lf-dur-fast), transform var(--lf-dur-fast); }
.mec-item:hover { border-color: var(--lf-border-brand); transform: translateY(-2px); }
.mec-ico { width: 36px; height: 36px; border-radius: var(--lf-radius-sm); background: rgba(46,107,255,0.10); border: 1px solid var(--lf-border-brand); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.mec-ico svg { width: 16px; height: 16px; color: var(--lf-brand-sky); }
.mec-body h5 { font-size: var(--lf-t-sm); font-weight: 600; color: #fff; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.mec-body p { font-size: var(--lf-t-xs); color: var(--lf-text-muted); line-height: 1.6; }
.mec-body code, .code { font-family: var(--lf-font-mono); font-size: 10px; background: rgba(46,107,255,0.12); color: var(--lf-brand-sky); padding: 0.05rem 0.4rem; border-radius: var(--lf-radius-xs); }

/* ===========================================================================
   SECTION 03 — COMO FUNCIONA (flow line + traveling pulse)
   =========================================================================== */
.flowline { position: relative; max-width: 780px; margin: 3.5rem auto 0; padding-left: 3.4rem; }
.flowline-track { position: absolute; left: 1.35rem; top: 0.4rem; bottom: 0.4rem; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--lf-brand) 0%, var(--lf-brand-sky) 45%, var(--lf-success) 100%); opacity: 0.35; }
.flowline-pulse { position: absolute; left: 1.35rem; top: 0; width: 2px; height: 90px; border-radius: 2px; transform: translateX(0);
  background: linear-gradient(180deg, transparent, var(--lf-success) 55%, transparent);
  filter: blur(0.3px); animation: lf-flow-travel 5.5s var(--lf-ease-in-out) infinite; }
.flowline-pulse::after { content: ""; position: absolute; left: 50%; bottom: 26px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--lf-success); transform: translateX(-50%); box-shadow: 0 0 14px 3px rgba(37,211,102,0.75); }
@keyframes lf-flow-travel { 0% { top: -12%; opacity: 0;} 12% { opacity: 1;} 88% { opacity: 1;} 100% { top: 100%; opacity: 0;} }
.step { position: relative; padding: 0 0 2rem 0; }
.step:last-child { padding-bottom: 0; }
.step .node { position: absolute; left: calc(-3.4rem + 1.35rem); top: 0.1rem; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--lf-surface); border: 1px solid var(--lf-border-brand);
  display: grid; place-items: center; font-family: var(--lf-font-mono); font-weight: 700; font-size: 0.9rem; color: var(--lf-brand-sky);
  box-shadow: 0 0 0 5px var(--lf-bg), 0 8px 20px -6px rgba(46,107,255,0.5); z-index: 2; }
.step.done .node { background: linear-gradient(135deg, var(--lf-success), var(--lf-success-deep)); color: #04220F; border-color: transparent; }
.step h4 { font-size: var(--lf-t-h3); font-weight: 700; color: #fff; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.step p { font-size: var(--lf-t-base); color: var(--lf-text-muted); line-height: 1.6; max-width: 56ch; }

/* ===========================================================================
   SECTION 04 — RECURSOS (dashboard tile grid)
   =========================================================================== */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3rem;
  border: 1px solid var(--lf-hair-0); border-radius: var(--lf-radius-lg); overflow: hidden; }
.tile { padding: 1.75rem; border-right: 1px solid var(--lf-hair-0); border-bottom: 1px solid var(--lf-hair-0);
  position: relative; transition: background var(--lf-dur-base) var(--lf-ease-out); }
.tile:hover { background: var(--lf-s1); }
.tiles .tile:nth-child(3n) { border-right: none; }
.tiles .tile:nth-last-child(-n+3) { border-bottom: none; }
.tile .ico { width: 40px; height: 40px; border-radius: var(--lf-radius-sm); background: var(--lf-s3); border: 1px solid var(--lf-hair-1);
  display: grid; place-items: center; margin-bottom: 1.1rem; transition: all var(--lf-dur-base); }
.tile .ico svg { width: 18px; height: 18px; color: var(--lf-text-silver); transition: color var(--lf-dur-base); }
.tile:hover .ico { background: rgba(46,107,255,0.12); border-color: var(--lf-border-brand); }
.tile:hover .ico svg { color: var(--lf-brand-sky); }
.tile h4 { font-size: var(--lf-t-h3); font-weight: 700; color: #fff; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.tile p { font-size: var(--lf-t-sm); color: var(--lf-text-muted); line-height: 1.6; }
.tile .tile-idx { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--lf-font-mono); font-size: 10px; color: var(--lf-text-faint); }

/* ===========================================================================
   SECTION 05 — CONTEÚDO ÚNICO (hash pipeline)
   =========================================================================== */
.unico-inner { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: var(--lf-section-y) 0; }
.pipe-card { border: 1px solid var(--lf-hair-1); border-radius: var(--lf-radius-lg); background: var(--lf-s1); overflow: hidden; box-shadow: var(--lf-shadow-card); }
.pipe-head { padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--lf-hair-0); display: flex; align-items: center; gap: 0.6rem; }
.pipe-head .ico { width: 28px; height: 28px; border-radius: var(--lf-radius-xs); background: rgba(46,107,255,0.12); border: 1px solid var(--lf-border-brand); display: grid; place-items: center; }
.pipe-head .ico svg { width: 14px; height: 14px; color: var(--lf-brand-sky); }
.pipe-head h5 { font-size: var(--lf-t-sm); font-weight: 600; color: #fff; }
.pipe-head .tag { margin-left: auto; font-family: var(--lf-font-mono); font-size: 9px; color: var(--lf-success); }
.pipe-body { padding: 0.5rem 0.5rem; }
.pipe-step { display: flex; align-items: flex-start; gap: 0.7rem; font-size: var(--lf-t-xs); padding: 0.6rem 0.7rem; border-radius: var(--lf-radius-sm); }
.pipe-step:hover { background: var(--lf-s1); }
.pipe-step .hr { width: 20px; height: 20px; border-radius: 50%; background: var(--lf-success-soft); border: 1px solid rgba(37,211,102,0.25); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.pipe-step .hr svg { width: 10px; height: 10px; color: var(--lf-success); }
.pipe-step p { color: var(--lf-text-muted); line-height: 1.5; }
.pipe-step strong { color: #fff; }

/* ===========================================================================
   SECTION 06 — PLANOS
   =========================================================================== */
/* SCA-415: padding-block (e não o atalho `padding: y 0`) para não zerar o
   padding lateral do .container — a 390 os cards ficavam colados na borda. */
.planos { padding-block: var(--lf-section-y); }
/* O número de colunas é o número de CARDS da grade, passado pelo renderizador
   em `style="--cards:N"` (renderGrades, src/landing/vitrine-planos.ts). Era
   `repeat(4, 1fr)` fixo, e isso valeu enquanto toda grade teve três degraus
   mais o card de "sob medida". Em 24/09/2026 o Aquecimento ganhou o 4º degrau
   (Escala, 25 chips) e a grade dele passou a ter CINCO cards: o quinto caía
   sozinho numa segunda linha, com um quarto da largura. O `4` do fallback é
   para o HTML estático antigo e para qualquer `.plan-grid` escrito à mão. */
.plan-grid { display: grid; grid-template-columns: repeat(var(--cards, 4), 1fr); gap: 1rem; margin-top: 3rem; align-items: stretch; }
.plan { position: relative; border-radius: var(--lf-radius-lg); padding: 1.6rem; background: var(--lf-s1); border: 1px solid var(--lf-hair-1);
  display: flex; flex-direction: column; transition: all var(--lf-dur-base) var(--lf-ease-out); }
.plan:hover { border-color: rgba(37,211,102,0.5); box-shadow: 0 0 42px -14px rgba(37,211,102,0.4); transform: translateY(-4px); }
.plan.popular { border-color: rgba(234,179,8,0.42); background: linear-gradient(180deg, rgba(234,179,8,0.05), var(--lf-s1)); box-shadow: 0 0 0 1px rgba(234,179,8,0.35), 0 24px 60px -24px rgba(234,179,8,0.4); }
.plan-badge { position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.85rem; border-radius: var(--lf-radius-full); background: linear-gradient(135deg, var(--lf-gold-hi), var(--lf-gold));
  color: #1A1300; font-family: var(--lf-font-mono); font-size: 0.7rem; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 20px -6px rgba(234,179,8,0.6); }
.plan-name { font-family: var(--lf-font-display); font-size: 1.1rem; font-weight: 700; color: #fff; }
.plan-desc { font-size: var(--lf-t-xs); color: var(--lf-text-muted); margin: 0.35rem 0 1.1rem; line-height: 1.5; }
.chip-count { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--lf-font-mono); font-size: 10px; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: var(--lf-radius-full); margin-bottom: 1.2rem; }
.chip-count.green { color: var(--lf-success); background: var(--lf-success-soft); border: 1px solid rgba(37,211,102,0.25); }
.chip-count.gold { color: var(--lf-gold-hi); background: var(--lf-amber-soft); border: 1px solid rgba(234,179,8,0.35); }
.plan-price { display: flex; align-items: baseline; gap: 0.2rem; margin-bottom: 1.2rem; }
.plan-price .amt { font-family: var(--lf-font-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.plan-price .per { font-size: var(--lf-t-xs); color: var(--lf-text-faint); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.4rem; flex: 1; }
.plan-features li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: var(--lf-t-xs); color: var(--lf-text-silver); line-height: 1.5; }
.plan-features li svg { width: 13px; height: 13px; color: var(--lf-success); margin-top: 2px; flex-shrink: 0; }
.plan-cta { height: 42px; border-radius: var(--lf-radius-sm); display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 0.8125rem; font-weight: 600; border: 1px solid rgba(37,211,102,0.4); color: var(--lf-success); transition: all var(--lf-dur-fast); }
.plan-cta:hover { background: var(--lf-success-soft); border-color: var(--lf-success); }
.plan-cta.solid { background: linear-gradient(135deg, var(--lf-success), var(--lf-success-deep)); color: #04220F; border: none; box-shadow: 0 8px 20px -6px rgba(7,193,96,0.5); }
.plan-cta.solid:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ── SCA-1118 · seção 07 com DOIS produtos ────────────────────────────────────
   A régua de 22/09/2026 vende Aquecimento e Vendas (CRM+Disparos+IA). A seção
   deixou de ser uma grade e passou a ser: cabeçalho de produto + grade, duas
   vezes, mais o bloco de recarga de crédito de IA e a faixa de combo.
   `.plan*` acima continua valendo para os cards — o que entra aqui é só o que
   a seção ganhou de novo. */
.planos-intro { max-width: 56ch; margin: 1rem auto 0; font-size: var(--lf-t-sm); color: var(--lf-text-muted); line-height: 1.6; text-align: center; }
.produto-head { margin-top: 3.4rem; text-align: center; }
.produto-tag { display: inline-flex; font-family: var(--lf-font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lf-success); background: var(--lf-success-soft); border: 1px solid rgba(37,211,102,0.25); padding: 0.25rem 0.6rem; border-radius: var(--lf-radius-full); }
.produto-tag.alt { color: #93C5FD; background: rgba(59,130,246,0.10); border-color: rgba(59,130,246,0.30); }
.produto-nome { font-family: var(--lf-font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; margin: 0.7rem 0 0; }
.produto-nome .dim { color: var(--lf-text-faint); font-weight: 600; }
.produto-sub { max-width: 58ch; margin: 0.6rem auto 0; font-size: var(--lf-t-xs); color: var(--lf-text-muted); line-height: 1.6; }

/* As linhas secundárias sob o preço: os eixos do card que não cabem no selo.
   Em Vendas são duas, separadas por <br> (SCA-1156: teto de contatos da base e
   créditos de IA do mês) — `line-height` dá o respiro entre elas sem um
   segundo bloco e sem mexer na régua do card. Margem negativa para colar no
   preço sem afastar a lista de features. */
.plan-alt { font-size: var(--lf-t-xs); color: var(--lf-text-faint); margin: -0.7rem 0 1.1rem; line-height: 1.4; }
.plan-alt strong { color: var(--lf-text-silver); font-weight: 600; }

/* SCA-1479 — a cadência de cobrança de um plano que NÃO é mensal. Só aparece
   quando há o que dizer (o mensal não ganha linha nenhuma), logo abaixo do
   preço e acima das linhas secundárias. O "/15 dias" colado no número é curto
   demais para carregar sozinho a diferença comercial do Start, e um cliente
   que lê "R$ 99,90" achando que é o mês está contratando outra coisa. */
.plan-renova { font-size: var(--lf-t-xs); font-weight: 600; color: var(--lf-text-silver); margin: -0.9rem 0 1rem; letter-spacing: 0.01em; }

.recarga-bloco { margin-top: 3.2rem; padding: 2rem; border-radius: var(--lf-radius-lg); background: var(--lf-s1); border: 1px solid var(--lf-hair-1); }
.recarga-head { text-align: center; }
.recarga-titulo { font-family: var(--lf-font-display); font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0; }
.recarga-sub { max-width: 62ch; margin: 0.5rem auto 0; font-size: var(--lf-t-xs); color: var(--lf-text-muted); line-height: 1.6; }
.recarga-sub strong { color: var(--lf-text-silver); }
.recarga-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.recarga { text-align: center; padding: 1.3rem 1rem; border-radius: var(--lf-radius-md, 12px); background: rgba(255,255,255,0.02); border: 1px solid var(--lf-hair-1); }
.recarga.destaque { border-color: rgba(234,179,8,0.35); background: linear-gradient(180deg, rgba(234,179,8,0.05), rgba(255,255,255,0.02)); }
.recarga-qtd { font-family: var(--lf-font-display); font-size: 1.8rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.recarga-label { font-family: var(--lf-font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lf-text-faint); margin-top: 0.15rem; }
.recarga-preco { font-family: var(--lf-font-display); font-size: 1.15rem; font-weight: 700; color: var(--lf-success); margin-top: 0.7rem; }
.recarga-unit { font-size: 11px; color: var(--lf-text-faint); margin-top: 0.2rem; }
.recarga-nota { max-width: 70ch; margin: 1.4rem auto 0; text-align: center; font-size: var(--lf-t-xs); color: var(--lf-text-faint); line-height: 1.6; }

.combo-bloco { margin-top: 3.2rem; padding: 2rem; border-radius: var(--lf-radius-lg); background: linear-gradient(180deg, rgba(37,211,102,0.045), var(--lf-s1)); border: 1px solid rgba(37,211,102,0.22); }
.combo-head { text-align: center; }
.combo-tag { display: inline-flex; font-family: var(--lf-font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lf-success); }
.combo-titulo { font-family: var(--lf-font-display); font-size: 1.35rem; font-weight: 800; color: #fff; margin: 0.4rem 0 0; }
.combo-sub { font-size: var(--lf-t-xs); color: var(--lf-text-muted); margin-top: 0.4rem; }
.combo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.combo-card { text-align: center; padding: 1.4rem 1rem; border-radius: var(--lf-radius-md, 12px); background: rgba(255,255,255,0.025); border: 1px solid var(--lf-hair-1); }
.combo-nome { font-family: var(--lf-font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lf-text-faint); }
.combo-de { font-size: 11px; color: var(--lf-text-faint); margin-top: 0.6rem; }
.combo-por { font-family: var(--lf-font-display); font-size: 1.7rem; font-weight: 800; color: var(--lf-success); letter-spacing: -0.02em; margin-top: 0.2rem; }
.combo-por .per { font-size: var(--lf-t-xs); font-weight: 500; color: var(--lf-text-faint); }
.combo-desc { font-size: var(--lf-t-xs); color: var(--lf-text-muted); margin-top: 0.5rem; line-height: 1.5; }
/* SCA-1124: o card de combo ganhou CTA. `.plan-cta` já traz altura, borda e
   hover; aqui só o espaço acima, que o card de plano resolve com `flex: 1` na
   lista de features e o de combo não tem. */
.combo-cta { margin-top: 1.1rem; width: 100%; }
/* SCA-1233: a nota que diz como a compra do combo acontece. Mesma régua da
   `.recarga-nota` — é o mesmo papel na página: a letra miúda honesta sob uma
   faixa de preço. */
.combo-nota { max-width: 70ch; margin: 1.4rem auto 0; text-align: center; font-size: var(--lf-t-xs); color: var(--lf-text-faint); line-height: 1.6; }
.planos-foot { margin-top: 2rem; text-align: center; font-family: var(--lf-font-mono); font-size: var(--lf-t-xs); color: var(--lf-text-faint); }

/* SCA-188: a seção Comunidade (e o orbit) saiu da landing — não existe
   comunidade por trás do botão. */

/* ===========================================================================
   SECTION 08 — FAQ
   =========================================================================== */
.faq { padding-block: var(--lf-section-y); max-width: calc(780px + var(--lf-container-px) * 2); margin: 0 auto; }
.faq-list { margin-top: 2.6rem; }
.faq-item { border-top: 1px solid var(--lf-hair-0); }
.faq-item:last-child { border-bottom: 1px solid var(--lf-hair-0); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; font-size: 1rem; font-weight: 600; color: var(--lf-text-silver); transition: color var(--lf-dur-fast); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-item summary .chev { width: 18px; height: 18px; color: var(--lf-text-faint); transition: transform var(--lf-dur-base) var(--lf-ease-smooth); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--lf-brand-sky); }
.faq-a { padding: 0 0 1.4rem; font-size: var(--lf-t-sm); color: var(--lf-text-muted); line-height: 1.75; max-width: 66ch; }

/* ===========================================================================
   SECTION 09 — CTA FINAL
   =========================================================================== */
.final { padding-top: var(--lf-section-y); padding-bottom: calc(var(--lf-section-y) * 1.15); }
.final-card { max-width: 60rem; margin: 0 auto; text-align: center; border-radius: var(--lf-radius-2xl);
  border: 1px solid var(--lf-border-brand); padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem); position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(46,107,255,0.12), transparent 55%), var(--lf-s1); }
.final-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(46,107,255,0.5), transparent 40%, rgba(37,211,102,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.final-card h2 { position: relative; font-family: var(--lf-font-display); font-size: var(--lf-t-h2); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1rem; text-wrap: balance; }
.final-card p { position: relative; font-size: var(--lf-t-md); color: var(--lf-text-muted); max-width: 540px; margin: 0 auto 2.1rem; line-height: 1.6; }
.final-ctas { position: relative; display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.1rem; }
.final-card .hero-micro { position: relative; }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.footer { border-top: 1px solid var(--lf-hair-0); padding: 2.6rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-meta { display: flex; flex-direction: column; gap: 0.25rem; text-align: right; }
.footer-reassure { font-family: var(--lf-font-mono); font-size: 10px; color: var(--lf-success); letter-spacing: 0.03em; display: inline-flex; align-items: center; gap: 0.4rem; justify-content: flex-end; }
/* D3/D2: no lugar do selo removido, os documentos reais. */
.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: flex-end; font-size: 11px; }
/* SCA-208: alvo de toque ≥ 44px — padding compensado por margin negativa. */
.footer-links a { color: var(--lf-text-muted); transition: color var(--lf-dur-fast);
  display: inline-block; padding: 14px 6px; margin: -14px -6px; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { font-size: 11px; color: var(--lf-text-faint); }

/* ---------------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .split, .processo-inner, .unico-inner { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile:nth-child(3n) { border-right: 1px solid var(--lf-hair-0); }
  .tiles .tile:nth-child(2n) { border-right: none; }
  .tiles .tile:nth-last-child(-n+3) { border-bottom: 1px solid var(--lf-hair-0); }
  .tiles .tile:nth-last-child(-n+2) { border-bottom: none; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .plan.popular { transform: none; }
  .console-body { grid-template-columns: 1fr; }
  .console-side { display: none; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
/* SCA-415: o header precisa de ~1100 px com o status "Sistema operacional" e
   ~930 px sem ele. Abaixo de 1140 o status sai; abaixo de 960 as abas vão para
   o drawer (hambúrguer) e "Entrar"/"Criar conta" continuam visíveis no topo;
   abaixo de 720 só o CTA + hambúrguer (o drawer tem o "Entrar", SCA-196). */
@media (max-width: 1140px) {
  .nav-status { display: none; }
}
@media (max-width: 960px) {
  .nav-tabs { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 720px) {
  .nav-login { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .tiles .tile { border-right: none !important; border-bottom: 1px solid var(--lf-hair-0) !important; }
  .tiles .tile:last-child { border-bottom: none !important; }
  .plan-grid { grid-template-columns: 1fr; }
  /* SCA-1118: recarga e combo empilham junto com a grade. */
  .recarga-grid, .combo-grid { grid-template-columns: 1fr; }
  .recarga-bloco, .combo-bloco { padding: 1.4rem; }
  .proxy-grid { grid-template-columns: 1fr; }
  .stats-strip { gap: 1rem; padding: 0.6rem 1rem; }
  .dt-head, .dt-row { grid-template-columns: 1.5fr 1fr 0.9fr; }
  .dt-head span:nth-child(3), .dt-row span:nth-child(3) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .footer-reassure { justify-content: flex-start; }
  .footer-links { justify-content: flex-start; }
}

/* ---------------------------------------------------------------------------
   REDUCED MOTION — all decorative motion off.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .lf-ambient .glow-a, .lf-ambient .glow-b, .lf-star, .flowline-pulse,
  .btn-cta.breathe, .nav-status .pip, .spine .dot { animation: none !important; }
  .lf-cursor, .lf-cursor-dot { display: none !important; }
}

/* ---------------------------------------------------------------------------
   06 · POR DENTRO — screenshots reais + demo viva (SCL-27)
   --------------------------------------------------------------------------- */
.hero-reassure {
  margin-bottom: 1.1rem; font-size: 0.78rem; color: var(--lf-text-silver);
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1px solid var(--lf-hair-2); border-radius: var(--lf-radius-full);
  padding: 0.4rem 0.95rem; background: var(--lf-s1);
}
.hero-reassure::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lf-success); box-shadow: 0 0 8px var(--lf-success);
}

.shots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3rem; }
.shot-card { margin: 0; }
.shot-card img {
  width: 100%; height: auto; display: block; border-radius: var(--lf-radius-lg);
  border: 1px solid var(--lf-hair-2);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7), 0 0 40px -18px rgba(46,107,255,0.35);
}
.shot-card figcaption {
  margin-top: 0.8rem; font-size: var(--lf-t-xs); color: var(--lf-text-muted); line-height: 1.55;
}
.shot-card .shot-tag {
  display: inline-block; margin-right: 0.5rem; font-family: var(--lf-font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--lf-brand-sky); border: 1px solid rgba(46,107,255,0.35);
  border-radius: var(--lf-radius-full); padding: 0.15rem 0.55rem;
  background: rgba(46,107,255,0.10);
}

.demo-split { display: grid; grid-template-columns: 7fr 5fr; gap: 1.25rem; margin-top: 1.5rem; align-items: stretch; }
.chat-win {
  border-radius: var(--lf-radius-lg); border: 1px solid var(--lf-hair-2);
  background: var(--lf-surface); overflow: hidden; display: flex; flex-direction: column;
}
.chat-top {
  display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--lf-hair-1); background: var(--lf-surface-1);
}
.chat-title { font-family: var(--lf-font-mono); font-size: 0.68rem; color: var(--lf-text-faint); margin-left: 0.35rem; }
.chat-top .console-live { margin-left: auto; }
.chat-feed { padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; min-height: 300px; max-height: 340px; overflow: hidden; }
.chat-bubble {
  max-width: 78%; padding: 0.55rem 0.8rem; border-radius: 12px;
  font-size: var(--lf-t-xs); line-height: 1.5; color: var(--lf-text-silver);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s var(--lf-ease-smooth), transform 0.35s var(--lf-ease-smooth);
}
.chat-bubble.show { opacity: 1; transform: none; }
.chat-bubble.in { align-self: flex-start; background: var(--lf-surface-2); border: 1px solid var(--lf-hair-1); border-bottom-left-radius: 4px; }
.chat-bubble.out { align-self: flex-end; background: rgba(37,211,102,0.14); border: 1px solid rgba(37,211,102,0.25); border-bottom-right-radius: 4px; }
.chat-bubble .who { display: block; font-family: var(--lf-font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lf-text-faint); margin-bottom: 0.2rem; }
.chat-bubble.sys {
  align-self: center; max-width: 92%; text-align: center; background: transparent;
  border: 1px dashed var(--lf-hair-2); color: var(--lf-text-faint);
  font-family: var(--lf-font-mono); font-size: 0.65rem;
}
.chat-typing { display: inline-flex; gap: 4px; align-items: center; padding: 0.2rem 0; }
.chat-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--lf-text-faint); animation: lfTyping 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes lfTyping { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

.matur-card {
  border-radius: var(--lf-radius-lg); border: 1px solid var(--lf-hair-2);
  background: var(--lf-s1); padding: 1.4rem; display: flex; flex-direction: column;
}
.matur-card h5 { font-family: var(--lf-font-display); font-size: 0.95rem; font-weight: 700; color: #fff; }
.matur-sub { font-size: var(--lf-t-xs); color: var(--lf-text-muted); margin-top: 0.4rem; line-height: 1.55; }
.matur-day { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 1.4rem; font-family: var(--lf-font-mono); color: var(--lf-text-faint); font-size: 0.72rem; }
.matur-day b { font-family: var(--lf-font-display); font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.matur-bar { height: 8px; border-radius: var(--lf-radius-full); background: var(--lf-surface-2); border: 1px solid var(--lf-hair-1); overflow: hidden; margin-top: 0.7rem; }
.matur-fill {
  height: 100%; width: 4%; border-radius: inherit;
  background: linear-gradient(90deg, var(--lf-brand), var(--lf-success));
  transition: width 0.6s var(--lf-ease-smooth);
}
.matur-stages { display: flex; justify-content: space-between; margin-top: 0.8rem; }
.matur-stages .ms { font-family: var(--lf-font-mono); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--lf-text-faint); transition: color 0.3s; }
.matur-stages .ms.on { color: var(--lf-success); }
.matur-note { margin-top: auto; padding-top: 1rem; font-family: var(--lf-font-mono); font-size: 0.62rem; color: var(--lf-text-faint); }

@media (max-width: 900px) {
  .shots-grid { grid-template-columns: 1fr; }
  .demo-split { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   TOQUE — SCA-1422: no celular o visual continua, o custo por quadro sai.
   Relato do dono (28/09): "tá pesada… tipo lagando". O que lagava não era
   peso (320 KB, servidor em 28–46 ms) nem o JavaScript de animação (o cursor
   e o tilt do console já são guardados por `!coarse && !reduced` em
   script.js) — era COMPOSIÇÃO. Cinco desfoques, todos pagos a cada quadro:

   1. `.nav.scrolled` com `backdrop-filter`: a barra é `position: fixed`, e a
      classe entra assim que a rolagem passa de 8 px. `backdrop-filter` obriga
      o compositor a reler a página inteira atrás da barra e desfocá-la A CADA
      QUADRO DA ROLAGEM. É o pior dos cinco e casa exatamente com "travar
      rolando".
   2. `.nav-mobile` com `backdrop-filter: blur(20px)` sobre um fundo já a 0,96
      de opacidade — pagava o filtro para desfocar o que ninguém vê.
   3. Os três `filter: blur()` grandes (150 px no campo ambiente, 90 px no
      hero, 80 px no console). Todos desfocam RADIAL-GRADIENTS que já são
      suaves: cor translúcida indo a `transparent` em 60–70 %. Desfocar um
      degradê suave devolve quase o mesmo degradê — por uma camada de tela
      cheia rasterizada de novo a cada mudança de escala ou tamanho.

   E, medindo, apareceu um sexto custo que nenhuma dessas linhas previa: o
   pisca-pisca das 60 estrelas do hero, maior que todos os desfoques juntos.
   O bloco abaixo explica cada troca no lugar onde ela é feita.

   O que entra no lugar mantém a aparência sem filtro nenhum: a barra vira um
   degradê vertical escuro opaco e os brilhos passam a `ellipse farthest-side`,
   que termina transparente na própria borda da caixa — sem a emenda reta que
   o desfoque escondia. Nada some da tela; o que some é o trabalho por quadro.

   Só `(hover: none), (pointer: coarse)`: no desktop nada muda — lá o efeito
   faz diferença e a GPU dá conta. Medido a CPU cheia: 164,2 quadros/s antes,
   164,7 depois.
   --------------------------------------------------------------------------- */
@media (hover: none), (pointer: coarse) {
  /* MEDIDO na tela, em duas tentativas, e por isso a barra aqui é OPACA.
     O `blur(18px)` não escondia o conteúdo por ser escuro: escondia por
     borrá-lo. Sem o borrão, quem esconde é a opacidade — e translúcido não
     serve, porque o que passa por baixo é o CTA verde do hero. A 0,90 dava
     para ler "Criar conta" inteiro; mesmo a 0,965 os 3,5 % de um verde
     #25D366 com texto branco ainda apareciam como um fantasma na barra.

     As duas paradas são as cores da barra borrada como ela de fato saía na
     tela: `rgba(8,11,16,0.72)` composto sobre o fundo #0B0F14 dá ~#090C11, e
     o topo sai mais claro por causa do brilho do hero. O degradê vertical é o
     que mantém a leitura de "vidro escuro" — uma superfície com profundidade,
     não um retângulo chapado — junto com o fio de borda e a sombra que já
     estavam na regra de cima. E é pintado uma vez: custo zero por quadro.

     Tom fixo, como o `rgba(8,11,16,…)` que ele substitui: esta barra sempre
     foi escura, sem variante para `[data-theme="light"]`. */
  .nav.scrolled {
    background: linear-gradient(to bottom, #0E131B, #090C11);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* O drawer já era 0,96 — o blur(20px) atrás dele quase não tinha o que
     mostrar. Opaco pelo mesmo motivo da barra: sem borrão, 4 % do CTA verde
     por baixo viram fantasma. #0A0E14 é a cor que os 0,96 davam sobre o fundo. */
  .nav-mobile {
    background: #0A0E14;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* `ellipse farthest-side` é o detalhe que faz o brilho continuar parecendo
     brilho: ele termina TRANSPARENTE exatamente na borda da própria caixa.
     Com o `circle` original (que o navegador dimensiona pelo canto mais
     distante) a cor ainda estava viva onde a caixa acaba, e o corte aparecia
     como uma borda reta — era o `blur()` que vinha borrar essa borda. Tirar o
     filtro sem mexer no degradê deixava uma emenda visível no hero. */
  .lf-ambient .glow-a,
  .lf-ambient .glow-b { filter: none; }
  .lf-ambient .glow-a {
    background: radial-gradient(ellipse farthest-side at 50% 50%, rgba(46,107,255,0.10), rgba(46,107,255,0.04) 45%, transparent 100%);
  }
  .lf-ambient .glow-b {
    background: radial-gradient(ellipse farthest-side at 50% 50%, rgba(37,211,102,0.05), rgba(37,211,102,0.02) 48%, transparent 100%);
  }
  .hero-glow {
    filter: none;
    background: radial-gradient(ellipse farthest-side at 50% 0%, rgba(46,107,255,0.18), rgba(46,107,255,0.06) 40%, transparent 100%);
  }
  .console-glow {
    filter: none;
    background: radial-gradient(ellipse farthest-side at 50% 0%, rgba(46,107,255,0.18), rgba(46,107,255,0.06) 40%, transparent 100%);
  }
  /* blur(0,3px) num traço de 2 px de largura: invisível, e ainda assim um
     filtro sobre um elemento que anima sem parar. */
  .flowline-pulse { filter: none; }
  /* MEDIDO, e foi a maior surpresa: o pisca-pisca das 60 estrelas do hero
     custa MAIS que o `backdrop-filter` da barra. São 60 elementos, cada um com
     uma animação infinita de `opacity` — 60 camadas que o compositor mantém
     vivas e mistura a cada quadro, mesmo depois de a rolagem passar do hero.
     Num Chrome com Pixel 6 emulado e CPU a 1/4, parar só este pisca-pisca
     dobrou a taxa de quadros da rolagem (63 → 126 quadros/s); o desfoque da
     barra vinha depois.

     `animation: none` (e não `display: none`): as estrelas CONTINUAM lá, nas
     mesmas posições, tamanhos e opacidades — o quadro 0 % do `lf-twinkle` é
     `opacity: 1`, que é exatamente o estado parado. O que sai é só o piscar,
     que num celular ninguém acompanha rolando. Mesma coisa para o vai-e-vem de
     26 s dos brilhos de fundo: o quadro 0 % do `lf-drift` é
     `translate(0,0) scale(1)`, então parado eles ficam onde já estavam.

     É o mesmo corte que `prefers-reduced-motion` já fazia — só que agora
     também para quem chega pelo celular sem ter pedido menos movimento. */
  .lf-star { animation: none; }
  .lf-ambient .glow-a,
  .lf-ambient .glow-b { animation: none; }
  /* O tilt do console não roda no toque (script.js:196 já guarda com
     `!coarse`), então esta camada promovida vivia de graça na memória da GPU. */
  .console-frame { will-change: auto; }
}
