/* ==========================================================================
   Tio Gu Trades — Rev.07 · design system
   Space Grotesk (títulos/leitura) · JetBrains Mono (índices/rótulos)
   ========================================================================== */

:root {
  --bg: #050607;
  --bg-2: #0a0c0e;
  --graphite: #111417;
  --surface: #13171a;
  --surface-2: #1a1f23;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f5f4;
  --muted: #a3aca8;
  --dim: #69726e;

  --accent: #5ae63a;          /* verde vivo: somente pontos interativos */
  --accent-soft: rgba(90, 230, 58, 0.14);
  --accent-glow: rgba(90, 230, 58, 0.45);
  --accent-ink: #061204;

  /* cores secundárias do gráfico */
  --ma-fast: #f2c14e;         /* média curta */
  --ma-slow: #a78bfa;         /* média longa */
  --tick-down: #e5484d;       /* tique de baixa (só na cotação do painel) */
  --liq-low: #0f3460;         /* liquidez */
  --liq-mid: #1f7fd1;
  --liq-high: #63d9ff;
  --candle-up: #d9dfdc;
  --candle-down: #5a636a;

  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --cam-ms: 1300ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 1px solid var(--line);
}
/* R040: o desfoque fica num pseudo-elemento. backdrop-filter no próprio
   cabeçalho cria um bloco de contenção para filhos position:fixed, e o menu
   mobile (.nav fixed) ficava preso dentro do cabeçalho, com altura zero. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(5, 6, 7, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header--overlay {
  position: fixed; inset: 0 0 auto 0;
  background: linear-gradient(180deg, rgba(5,6,7,0.85), rgba(5,6,7,0));
  border-bottom-color: transparent;
}
.site-header--overlay::before { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 12px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden;
}
.lang a {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  padding: 6px 10px; text-decoration: none; color: var(--dim);
}
.lang a[aria-current="true"] { color: var(--accent-ink); background: var(--accent); }
.lang a:not([aria-current="true"]):hover { color: var(--text); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  position: relative; transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a {
    font-size: 22px; padding: 16px 4px; border-radius: 0;
    border-bottom: 1px solid var(--line); color: var(--text);
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent); }
  .brand img { height: 34px; }
}
body.menu-open { overflow: hidden; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { box-shadow: 0 0 0 6px var(--accent-soft); }
.btn--ghost { border-color: var(--line-2); background: rgba(255,255,255,0.03); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip .count { opacity: 0.6; }

/* ==========================================================================
   HOME — mesa de trading / navegação espacial
   ========================================================================== */
.home { overflow: hidden; height: 100svh; }
.home main { height: 100%; }

.desk {
  position: relative; height: 100svh; min-height: 520px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 20%, #0e1316 0%, var(--bg) 60%),
    var(--bg);
  isolation: isolate;
}
.desk__viewport { position: absolute; inset: 0; overflow: hidden; }
.world {
  position: absolute; left: 0; top: 0; width: 1600px; height: 900px;
  transform-origin: 0 0;
}
.layer, .layer__cam {
  position: absolute; inset: 0; width: 1600px; height: 900px;
  transform-origin: 0 0; will-change: transform;
}
.layer { transition: none; }
.layer__cam { transition: transform var(--cam-ms) var(--ease); }
.layer svg { width: 1600px; height: 900px; overflow: visible; }

.is-reduced .layer, .is-reduced .layer__cam { transition: none !important; }

/* chart primitives */
.grid line { stroke: rgba(255,255,255,0.065); stroke-width: 1; }
.circuit path { fill: none; stroke: rgba(90, 230, 58, 0.19); stroke-width: 1.2; }
.circuit circle { fill: var(--bg); stroke: rgba(90, 230, 58, 0.35); stroke-width: 1.2; }
.circuit .pulse { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 10 240; opacity: 0.55; animation: trace 6s linear infinite; }
@keyframes trace { to { stroke-dashoffset: -250; } }
.axis text { font-family: var(--font-mono); font-size: calc(12px * var(--ui-k, 1)); fill: #7a837f; letter-spacing: 0.04em; }
.axis line { stroke: rgba(255,255,255,0.12); }
.axis .tag rect { fill: var(--graphite); stroke: var(--line-2); }
.axis .tag text { fill: var(--muted); }
.axis .last rect { fill: var(--candle-up); stroke: none; }
.axis .last text { fill: var(--bg); font-weight: 600; }
.axis .last line { stroke: var(--candle-up); stroke-dasharray: 3 4; opacity: 0.5; }
.ui-bits rect { fill: none; stroke: rgba(255,255,255,0.1); }
.ui-bits text { font-family: var(--font-mono); font-size: calc(10px * var(--ui-k, 1)); fill: var(--dim); letter-spacing: 0.08em; }
.ui-bits .bar { fill: rgba(255,255,255,0.07); stroke: none; }

.vol rect { fill: rgba(255,255,255,0.12); }
.vol rect.up { fill: rgba(217, 223, 220, 0.22); }
.ma path { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ma .fast { stroke: var(--ma-fast); }
.ma .slow { stroke: var(--ma-slow); opacity: 0.9; }
.candles line { stroke-width: 1.3; }
.candles .up line { stroke: var(--candle-up); }
.candles .up rect { fill: var(--bg); stroke: var(--candle-up); stroke-width: 1.3; }
.candles .down line { stroke: var(--candle-down); }
.candles .down rect { fill: var(--candle-down); }

.stems line { stroke: rgba(90, 230, 58, 0.38); stroke-width: 1.2; stroke-dasharray: 3 4; }
.stems circle { fill: var(--accent); opacity: 0.8; }
.regions rect {
  fill: var(--accent); opacity: 0; transition: opacity 0.35s;
}
.regions rect.is-on { opacity: 0.07; }
.regions line { stroke: var(--accent); stroke-dasharray: 2 6; opacity: 0; transition: opacity 0.35s; }
.regions g.is-on rect { opacity: 0.075; }
.regions g.is-on line { opacity: 0.6; }

/* stations (HTML layer, same depth as candles) */
.stations { pointer-events: none; }
.station {
  position: absolute; pointer-events: auto;
  /* o centro do ponto verde fica exatamente no nível de preço; o nome fica centralizado acima dele */
  transform: translate(-50%, calc(-100% + 17px)) scale(var(--ui-k, 1)); transform-origin: 50% calc(100% - 17px);
  display: flex; flex-direction: column-reverse; align-items: center; gap: 10px;
  background: none; border: 0; padding: 6px; cursor: pointer; text-align: center;
  border-radius: 999px;
}
.station__dot {
  position: relative; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 0 22px var(--accent-glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.station__dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.6;
  animation: ping 2.6s var(--ease) infinite;
}
.is-paused .station__dot::after, .is-reduced .station__dot::after { animation: none; opacity: 0.35; }
.is-paused .circuit .pulse, .is-reduced .circuit .pulse { animation-play-state: paused; }
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.8; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.station__label {
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(10, 12, 14, 0.82); border: 1px solid var(--line-2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
  white-space: nowrap;
}
.station__go { display: none; font-size: 10px; color: var(--accent); margin-top: 3px; }
.station[aria-pressed="true"] .station__go { display: block; }
.station__label strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.station:hover .station__dot, .station:focus-visible .station__dot, .station.is-hot .station__dot,
.station[aria-pressed="true"] .station__dot {
  transform: scale(1.18); box-shadow: 0 0 0 9px var(--accent-soft), 0 0 34px var(--accent-glow);
}
.station:hover .station__label, .station:focus-visible .station__label, .station.is-hot .station__label,
.station[aria-pressed="true"] .station__label {
  border-color: var(--accent); background: rgba(10, 18, 10, 0.92); transform: translateY(-3px);
}
.station:focus-visible { outline-offset: 6px; }

/* vignette / scrim between scene and HUD */
.desk__scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,6,7,0.86) 0%, rgba(5,6,7,0.45) 28%, rgba(5,6,7,0) 50%),
    linear-gradient(0deg, rgba(5,6,7,0.75) 0%, rgba(5,6,7,0) 19%),
    radial-gradient(140% 100% at 60% 50%, rgba(5,6,7,0) 59%, rgba(5,6,7,0.5) 100%);
  transition: opacity 0.6s;
}
.desk.is-focused .desk__scrim { opacity: 0.55; }

/* HUD */
.hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud > .hud__title { pointer-events: none; }
.hud__title a { pointer-events: auto; }
.hud__title {
  position: absolute; left: var(--gutter); top: calc(var(--header-h) + clamp(28px, 8vh, 96px));
  max-width: min(560px, 86vw);
  transition: opacity 0.5s, transform 0.6s var(--ease);
}
.desk.is-focused .hud__title { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.hud__title .mono { color: var(--accent); display: flex; gap: 10px; align-items: center; }
.hud__title .mono::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.hud__title h1 {
  margin: 14px 0 16px;
  font-size: clamp(44px, 7.2vw, 104px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 600;
}
.hud__title h1 em { font-style: normal; color: var(--accent); }
.hud__title p { margin: 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 460px; }
.hud__title .hint { margin-top: 22px; color: var(--dim); }

.hud__bar {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hud__meta { display: flex; align-items: center; gap: 18px; color: var(--dim); flex-wrap: wrap; }
.hud__meta .legend { display: inline-flex; align-items: center; gap: 7px; }
.hud__meta .sw { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.hud__meta .sw--liq { height: 8px; width: 14px; background: linear-gradient(90deg, var(--liq-low), var(--liq-mid), var(--liq-high)); }
.illustrative {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted);
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(5,6,7,0.6);
}
.illustrative::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ma-fast); }
.hud__controls { display: flex; gap: 8px; }
.ctrl {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10,12,14,0.8);
  color: var(--text); cursor: pointer; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; transition: border-color 0.2s, color 0.2s;
}
.ctrl:hover { border-color: var(--accent); color: var(--accent); }
.ctrl svg { width: 14px; height: 14px; }
.ctrl[hidden] { display: none; }

/* panel */
.panel {
  position: absolute; z-index: 3;
  right: var(--gutter); top: 50%;
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  transform: translate(16px, -50%); opacity: 0; visibility: hidden;
  padding: 28px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(22,27,30,0.94), rgba(12,15,17,0.96));
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(90,230,58,0.06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.35s, transform 0.45s var(--ease), visibility 0.35s;
}
.panel.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.panel { padding: 0; overflow: hidden; }
.panel__media { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--graphite); }
.panel__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity 0.32s, transform 0.5s var(--ease), clip-path 0.5s var(--ease);
  clip-path: inset(0 0 0 0);
}
.panel__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,6,7,0) 45%, rgba(12,15,17,0.96) 100%);
}
.panel__media.is-out img { opacity: 0.15; transform: scale(1.05); }
.panel[data-dir="up"] .panel__media.is-enter img { transition: none; clip-path: inset(100% 0 0 0); }
.panel[data-dir="down"] .panel__media.is-enter img { transition: none; clip-path: inset(0 0 100% 0); }
.panel__level {
  position: absolute; z-index: 2; left: 22px; bottom: 14px;
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(5, 6, 7, 0.78); border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--dim);
  text-transform: uppercase;
}
.panel__level b { color: var(--text); font-weight: 600; font-size: 14px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.panel__level i { font-style: normal; font-size: 11px; font-variant-numeric: tabular-nums; }
.panel__level i.up { color: var(--accent); }
.panel__level i.down { color: var(--tick-down); }
.panel__level.flash-up { animation: flashUp 0.9s var(--ease); }
.panel__level.flash-down { animation: flashDown 0.9s var(--ease); }
@keyframes flashUp { 0%, 30% { background: rgba(90, 230, 58, 0.32); border-color: var(--accent); } 100% { background: rgba(5,6,7,0.78); } }
@keyframes flashDown { 0%, 30% { background: rgba(229, 72, 77, 0.3); border-color: var(--tick-down); } 100% { background: rgba(5,6,7,0.78); } }
.panel__close {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--text);
  background: rgba(5, 6, 7, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s, color 0.2s;
}
.panel__close:hover { border-color: var(--accent); color: var(--accent); }
.panel__inner { padding: 22px 28px 26px; }
.panel__body { transition: transform 0.38s var(--ease), opacity 0.3s, filter 0.3s; }
.panel[data-dir="up"] .panel__body.is-out { opacity: 0; filter: blur(3px); transform: translateY(-18px); }
.panel[data-dir="down"] .panel__body.is-out { opacity: 0; filter: blur(3px); transform: translateY(18px); }
.panel[data-dir="up"] .panel__body.is-enter { transition: none; opacity: 0; transform: translateY(18px); }
.panel[data-dir="down"] .panel__body.is-enter { transition: none; opacity: 0; transform: translateY(-18px); }
/* linha de preço que varre o painel na troca */
.panel__sweep {
  position: absolute; left: 0; right: 0; height: 1px; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  box-shadow: 0 0 14px var(--accent-glow), 0 0 3px var(--accent);
}
.panel__sweep::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0;
  border-top: 1px dashed rgba(90, 230, 58, 0.5);
}
.panel[data-dir="up"] .panel__sweep.run { animation: sweepUp 0.75s var(--ease); }
.panel[data-dir="down"] .panel__sweep.run { animation: sweepDown 0.75s var(--ease); }
@keyframes sweepUp { 0% { top: 100%; opacity: 1; } 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }
@keyframes sweepDown { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.panel h2 { margin: 0 0 10px; font-size: 32px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.panel p { margin: 0 0 18px; color: var(--muted); }
.panel ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.panel li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--text); }
.panel li::before { content: "▸"; color: var(--accent); font-size: 11px; }
.panel__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.panel__nav button {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  min-height: 40px; padding: 0 4px;
}
.panel__nav button:hover { color: var(--accent); }

/* cartão de apresentação com foto */
.host {
  display: inline-flex; align-items: center; gap: 14px; max-width: 460px;
  padding: 8px 18px 8px 8px; border-radius: 16px;
  background: rgba(12, 15, 17, 0.72); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-decoration: none; color: var(--text);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.host.is-disabled, .desk.is-focused .host { pointer-events: none !important; cursor: default; }
.host:hover, .host:focus-visible { border-color: var(--accent); background: rgba(12, 22, 12, 0.85); transform: translateY(-2px); }
.host__photo { position: relative; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 12px; overflow: hidden; }
.host__photo img { width: 100%; height: 100%; object-fit: cover; }
.host__photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(90, 230, 58, 0.45);
}
.host__text { display: flex; flex-direction: column; line-height: 1.25; }
.host__text .mono { font-size: 10.5px; color: var(--muted); }
.host__text .mono small { font-size: 8.5px; color: var(--dim); letter-spacing: 0.06em; }
.hud__title .host .mono::before { display: none; }
.host__text strong { font-size: 16.5px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; margin: 4px 0 5px; }
.host__text .go { font-weight: 500; }
.host__text .go { font-size: 14px; color: var(--muted); }
.host:hover .go, .host:focus-visible .go { color: var(--accent); }

/* bloco do cartão (no desktop o personagem vai para a cena do gráfico) */
.host-wrap { position: relative; margin-top: 26px; }

/* personagem do Tio Gu */
.tiogu {
  position: absolute; z-index: 2; left: 4px; bottom: calc(100% - 4px);
  height: 170px; aspect-ratio: 192 / 208;
  pointer-events: none; opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s, transform 0.8s var(--ease);
}
.tiogu.is-ready { opacity: 1; transform: none; }
.tiogu__sprite { position: relative; z-index: 1; width: 100%; height: 100%; background-repeat: no-repeat; }
.tiogu::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 2%; height: 9%;
  background: radial-gradient(closest-side, rgba(90, 230, 58, 0.28), transparent);
  filter: blur(2px);
}
.tiogu__bubble {
  position: absolute; z-index: 2; left: 78%; top: 6%;
  white-space: normal; width: max-content; max-width: 300px; line-height: 1.45;
  font-weight: 700; padding: 8px 12px; border-radius: 10px 10px 10px 2px;
  background: var(--text); color: var(--bg);
  font-family: var(--font-sans); font-size: 15px; letter-spacing: 0;
  opacity: 0; transform: translateY(6px) scale(0.96); transform-origin: left bottom;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.tiogu.is-talking .tiogu__bubble { opacity: 1; transform: none; }
@media (max-height: 760px) and (min-width: 761px) { .host-wrap { margin-top: 20px; } }

/* variante "scene": personagem em pé na linha de tempo do gráfico (unidades do mundo 1600×900) */
.tiogu.tiogu--scene { display: block; left: 292px; bottom: auto; top: 616px; height: 252px; }
.tiogu--scene .tiogu__bubble {
  /* a cena é reduzida para caber na tela; aqui o balão compensa a escala e fica com 15px reais */
  font-size: calc(15px / var(--world-s, 1)); line-height: 1.4;
  padding: calc(10px / var(--world-s, 1)) calc(15px / var(--world-s, 1));
  border-radius: calc(12px / var(--world-s, 1)) calc(12px / var(--world-s, 1)) calc(12px / var(--world-s, 1)) calc(3px / var(--world-s, 1));
  max-width: calc(390px / var(--world-s, 1));
  left: 74%; top: 2%;
}
.tiogu--scene::after { bottom: 1%; height: 7%; }


/* mobile dock */
.dock { display: none; }

@media (max-width: 760px) {
  .hud__title { top: calc(var(--header-h) + 12px); }
  .hud__title h1 { font-size: clamp(40px, 13vw, 64px); margin: 10px 0 10px; }
  .hud__title p { font-size: 15px; }
  .hud__title .hint { display: none; }
  .hud__title > p:not(.mono) { display: none; }
  .host { padding: 6px 14px 6px 6px; gap: 12px; }
  .host__photo { width: 52px; height: 52px; flex-basis: 52px; }
  .host__text .mono { font-size: 9.5px; }
  .host__text .mono small { font-size: 8px; }
  .host__text strong { font-size: 14.5px; margin: 3px 0 3px; }
  .host__text .go { font-size: 13px; }
  .station__label { display: none; }
  .station__dot { width: 20px; height: 20px; flex-basis: 20px; }
  .station { padding: 12px; transform: translate(-50%, -50%) scale(var(--ui-k, 1)); transform-origin: 50% 50%; }
  .hud__bar { bottom: auto; top: calc(var(--header-h) + 4px); left: auto; right: var(--gutter); justify-content: flex-end; }
  .hud__meta { display: none; }
  .hud__bar .ctrl .ctrl-label { display: none; }
  .hud__bar .ctrl { padding: 0 13px; }
  .hud__title .mono { padding-right: 70px; }
  .hud__title > .mono::before { display: none; }
  .dock {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 3;
  }
  .dock button {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    min-height: 58px; padding: 10px 14px; border-radius: 12px; text-align: left;
    background: rgba(12,15,17,0.9); border: 1px solid var(--line-2); cursor: pointer;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .dock button .station__go { display: none; font-size: 10px; color: var(--accent); }
  .dock button[aria-pressed="true"] .station__go { display: block; }
  .dock button strong { font-size: 15px; font-weight: 600; line-height: 1.2; }
  .dock button[aria-pressed="true"] { border-color: var(--accent); background: rgba(14, 26, 12, 0.94); }
  .illustrative-m {
    position: absolute; left: 12px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 2;
    font-size: 10.5px;
  }
  .panel {
    top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; right: 12px; width: auto;
    transform: translateY(24px); padding: 22px;
  }
  .panel.is-open { transform: none; }
  .panel h2 { font-size: 24px; margin-top: 0; }
  .panel { padding: 0; }
  .panel__media { aspect-ratio: 21 / 9; }
  .panel__inner { padding: 16px 20px 18px; }
  .panel ul { display: none; }
  .desk.is-focused .dock { opacity: 0; visibility: hidden; }
  .dock { transition: opacity 0.3s, visibility 0.3s; }
  .desk__scrim {
    background:
      linear-gradient(180deg, rgba(5,6,7,0.92) 0%, rgba(5,6,7,0.5) 34%, rgba(5,6,7,0) 55%),
      linear-gradient(0deg, rgba(5,6,7,0.9) 0%, rgba(5,6,7,0) 30%);
  }
}
@media (min-width: 761px) { .illustrative-m { display: none; } }
@media (max-width: 760px) {
  .hud__title { right: var(--gutter); max-width: none; }
  .host-wrap { position: static; display: block; margin-top: 6px; }
  .tiogu { left: auto; right: -10px; bottom: auto; top: 42px; height: 118px; }
  .tiogu::after, .tiogu__bubble { display: none; }
  .tiogu__bubble { left: auto; right: 72%; top: -2%; border-radius: 10px 10px 2px 10px; transform-origin: right bottom; }
  .desk.is-focused .tiogu { opacity: 0; }
}
@media (max-height: 560px) and (min-width: 761px) {
  .hud__title h1 { font-size: 48px; }
  .hud__title p { display: none; }
  .host-wrap { margin-top: 12px; }
}

/* ==========================================================================
   Páginas internas
   ========================================================================== */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(90,230,58,0.07), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.page-hero__chart { position: absolute; right: -40px; bottom: 0; width: min(760px, 70vw); opacity: 0.55; pointer-events: none; }
.page-hero .crumb { color: var(--dim); display: flex; gap: 10px; align-items: center; }
.page-hero .crumb b { color: var(--accent); font-weight: 600; }
.page-hero h1 {
  position: relative;
  margin: 18px 0 18px; font-size: clamp(40px, 6.4vw, 84px); line-height: 0.98;
  letter-spacing: -0.045em; font-weight: 600; max-width: 14ch;
}
.page-hero .lead { position: relative; margin: 0; max-width: 620px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 8px 0 0; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; }
.section-head .mono { color: var(--accent); }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 560px; }

/* toolbar: busca + filtros */
.toolbar { display: grid; gap: 16px; margin-bottom: 28px; }
.search {
  position: relative; max-width: 520px;
}
.search input {
  width: 100%; min-height: 52px; padding: 0 18px 0 48px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-size: 16px;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.result-count { color: var(--dim); }

/* cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--graphite));
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.card[hidden] { display: none; }
a.card { text-decoration: none; }
a.card:hover, a.card:focus-visible { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--dim); }
.card__meta .tag { color: var(--accent); }
.card h3 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; color: var(--dim); border-top: 1px solid var(--line); }
.card__foot .go { color: var(--text); font-weight: 600; font-size: 14.5px; font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }
a.card:hover .go { color: var(--accent); }
.card--soon { background: transparent; border-style: dashed; }
.card--soon h3 { color: var(--muted); }

.empty {
  padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius);
  text-align: center; color: var(--muted);
}
.empty[hidden] { display: none; }
.empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* notice */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 12px; margin-bottom: 28px;
  background: rgba(242, 193, 78, 0.06); border: 1px solid rgba(242, 193, 78, 0.22);
  color: var(--muted); font-size: 15px;
}
.notice .mono { color: var(--ma-fast); white-space: nowrap; padding-top: 2px; }

/* prop firm ficha */
.firm {
  border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--graphite));
}
.firm + .firm { margin-top: 20px; }
.firm--model { border-style: dashed; }
.firm__head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.firm__head h3 { margin: 6px 0 0; font-size: 28px; letter-spacing: -0.02em; font-weight: 600; }
.firm__head .mono { color: var(--dim); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--muted);
}
.badge--ok { border-color: rgba(90,230,58,0.45); color: var(--accent); }
.badge--model { border-color: rgba(242,193,78,0.45); color: var(--ma-fast); }
.firm__body { display: grid; grid-template-columns: 1.4fr 1fr; }
.firm__block { padding: 24px 28px; min-width: 0; }
.firm__block + .firm__block { border-left: 1px solid var(--line); }
.firm__block h4 { margin: 0 0 14px; color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.plans { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.plans th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.plans td { white-space: nowrap; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rules li { display: grid; grid-template-columns: minmax(96px, 0.8fr) 1.6fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rules li span:first-child { color: var(--muted); }
.promo { margin-top: 0; padding: 20px 28px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: rgba(90,230,58,0.035); }
.promo__item { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.promo__code { font-family: var(--font-mono); font-size: 14px; padding: 6px 10px; border-radius: 8px; border: 1px dashed var(--accent); color: var(--accent); }
.promo__when { color: var(--dim); font-family: var(--font-mono); font-size: 12px; }
.firm__foot { padding: 18px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 14px; }
@media (max-width: 860px) {
  .firm__body { grid-template-columns: 1fr; }
  .firm__block + .firm__block { border-left: 0; border-top: 1px solid var(--line); }
  .promo__item { grid-template-columns: 1fr; gap: 6px; }
  .rules li { grid-template-columns: 1fr; gap: 2px; }
  .rules li span:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
  .firm__head, .firm__block, .promo, .firm__foot { padding-left: 20px; padding-right: 20px; }
}

/* dashboard reservado */
.reserved {
  position: relative; border-radius: 18px; border: 1px dashed var(--line-2);
  padding: clamp(28px, 5vw, 56px); overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 64px),
    var(--bg-2);
}
.reserved h3 { margin: 10px 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; font-weight: 600; }
.reserved p { margin: 0; color: var(--muted); max-width: 560px; }
.reserved .slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.reserved .slots span { height: 72px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.reserved .slots span:nth-child(5) { grid-column: span 3; height: 160px; }
.reserved .slots span:nth-child(6) { height: 160px; }
@media (max-width: 640px) { .reserved .slots { grid-template-columns: 1fr 1fr; } .reserved .slots span:nth-child(5) { grid-column: span 2; } .reserved .slots span:nth-child(6) { display: none; } }

/* Sobre */
.about-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 1 / 1; background: var(--graphite); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 8px;
  background: rgba(5,6,7,0.75); color: var(--muted);
}
.prose { max-width: 680px; }
.prose p { color: var(--muted); margin: 0 0 18px; font-size: 18px; }
.prose p strong { color: var(--text); font-weight: 600; }
.quote { margin: 32px 0; padding-left: 20px; border-left: 2px solid var(--accent); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.stats div { background: var(--bg); padding: 20px; }
.stats b { display: block; font-size: 28px; letter-spacing: -0.02em; font-weight: 600; }
.stats span { color: var(--dim); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.timeline li { list-style: none; position: relative; padding: 26px 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--graphite); }
.timeline li::before { content: ""; position: absolute; left: 22px; top: -1px; width: 40px; height: 2px; background: var(--accent); }
.timeline .mono { color: var(--dim); }
.timeline h3 { margin: 8px 0 10px; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.timeline p { margin: 0; color: var(--muted); font-size: 15.5px; }
.timeline li:last-child { border-color: rgba(90,230,58,0.4); }
.timeline li:last-child .mono { color: var(--accent); }

.connect { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.connect__art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.connect__art::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,230,58,0.16), transparent 65%);
  border: 1px solid rgba(90,230,58,0.18);
}
.connect__art img { position: relative; width: 82%; height: auto; }
.flow { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.flow li { display: grid; grid-template-columns: 1fr; gap: 16px; border-left: 2px solid var(--accent); padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--graphite); }
.flow .mono { color: var(--accent); padding-top: 4px; }
.flow h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.flow p { margin: 0; color: var(--muted); font-size: 15.5px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillars div { background: var(--bg); padding: 26px; }
.pillars h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.pillars p { margin: 0; color: var(--muted); font-size: 15px; }

.contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.contact .card h3 { overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .about-hero, .connect { grid-template-columns: 1fr; }
  .connect__art { max-width: 360px; margin: 0 auto; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .pillars, .contact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .timeline, .pillars, .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid img { height: 36px; width: auto; margin-bottom: 14px; }
.footer-grid p { margin: 0; color: var(--dim); font-size: 14px; max-width: 360px; }
.footer-grid h2 { margin: 0 0 12px; color: var(--dim); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

@media (max-height: 800px) and (min-width: 761px) {
  .panel ul { display: none; }
  .panel__media { aspect-ratio: 2 / 1; }
}

/* telas baixas (notebook com barra do navegador): bloco de texto mais compacto */
@media (max-height: 820px) and (min-width: 761px) {
  .hud__title { top: calc(var(--header-h) + clamp(14px, 8vh - 30px, 48px)); }
  .hud__title h1 { font-size: clamp(44px, min(7.2vw, 11vh), 104px); margin: 10px 0 12px; }
  .hud__title p { font-size: 16px; line-height: 1.5; }
  .host-wrap { margin-top: 16px; }
  .host__photo { width: 60px; height: 60px; flex-basis: 60px; }
}
/* último recurso: se ainda encostar na legenda, o parágrafo sai e o cartão sobe */
.desk.is-tight .hud__title > p:not(.mono):not(.sr-only) { display: none; }
.desk.is-tight .host-wrap { margin-top: 14px; }

/* ==========================================================================
   Prop Firm — lista e ficha da empresa (V 8.6)
   ========================================================================== */
.ok { color: var(--text); }
.ok::before { content: "● "; color: var(--dim); }
.ext { font-size: 0.85em; opacity: 0.7; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.tags--plain li { text-transform: none; font-family: var(--font-sans); font-size: 14px; letter-spacing: 0; color: var(--text); padding: 7px 12px; }

.logo-tile {
  flex: 0 0 auto; width: 92px; height: 92px; padding: 14px; border-radius: 18px;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 0%, #1a1f23, #0b0d0f 70%);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.logo-tile img { width: 100%; height: auto; }
.logo-tile--lg { width: 132px; height: 132px; padding: 20px; border-radius: 24px; }
a.logo-tile { transition: border-color 0.2s; }
a.logo-tile:hover { border-color: var(--line-2); }

/* botão de cupom (copiar) */
.code {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 52px; padding: 0 8px 0 18px; border-radius: 12px; cursor: pointer;
  border: 1px dashed var(--accent); background: rgba(90,230,58,0.05); color: var(--text);
  transition: background 0.2s, box-shadow 0.2s;
}
.code:hover { background: var(--accent-soft); }
.code__v { font-family: var(--font-mono); font-size: 17px; font-weight: 600; letter-spacing: 0.08em; }
.code__a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
}
.code__a svg { width: 13px; height: 13px; }
.code.is-copied .code__a { background: var(--text); }
.code--sm { min-height: 44px; padding: 0 6px 0 14px; gap: 10px; }
.code--sm .code__v { font-size: 14px; }
.code--sm .code__a { padding: 6px 9px; font-size: 10.5px; }

/* preço */
.price { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.was { display: block; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.na { color: var(--dim); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
td small, dd small { color: var(--muted); font-size: 12.5px; margin-left: 6px; }

/* lista */
.pf-stats { position: relative; display: flex; flex-wrap: wrap; gap: 0; margin: 34px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); width: fit-content; background: rgba(5,6,7,0.6); backdrop-filter: blur(6px); }
.pf-stats div { padding: 14px 22px; }
.pf-stats div + div { border-left: 1px solid var(--line); }
.pf-stats dt { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pf-stats dd { margin: 0; color: var(--dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.pf-card {
  display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 22px;
  background: linear-gradient(180deg, var(--surface), var(--graphite));
  border: 1px solid var(--line-2);
}
.pf-card__top { display: flex; align-items: center; gap: 18px; }
.pf-card__id { flex: 1; min-width: 0; }
.pf-card__id h3 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.1; }
.pf-card__id h3 a { text-decoration: none; }
.pf-card__id h3 a:hover { color: var(--accent); }
.pf-card__id .mono { margin: 0; color: var(--dim); }
.pf-off {
  align-self: flex-start; white-space: nowrap; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.pf-card__sum { margin: 0; color: var(--muted); font-size: 16px; }
.pf-kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pf-kv div { background: var(--bg-2); padding: 14px 16px; }
.pf-kv dt { color: var(--dim); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.pf-kv dd { margin: 0; }
.pf-kv dd b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pf-kv dd small { display: block; margin: 2px 0 0; font-size: 12.5px; line-height: 1.35; }
.pf-kv .price { font-size: 20px; }
.pf-card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pf-card__actions .btn--primary { margin-left: auto; }
.pf-card__upd { margin: 0; color: var(--dim); font-size: 11px; }
/* uma parceira só: cartão largo, em duas colunas */
.pf-grid--solo { grid-template-columns: 1fr; }
.pf-grid--solo .pf-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr); grid-template-areas: "top kv" "sum kv" "tags act" "upd act"; column-gap: 48px; row-gap: 18px; align-items: start; padding: 32px; }
.pf-grid--solo .pf-card__top { grid-area: top; }
.pf-grid--solo .pf-card__sum { grid-area: sum; }
.pf-grid--solo .tags { grid-area: tags; }
.pf-grid--solo .pf-kv { grid-area: kv; grid-template-columns: 1fr 1fr; }
.pf-grid--solo .pf-card__actions { grid-area: act; }
.pf-grid--solo .pf-card__upd { grid-area: upd; align-self: end; }
@media (max-width: 960px) {
  .pf-grid--solo .pf-card { grid-template-columns: 1fr; grid-template-areas: "top" "sum" "tags" "kv" "act" "upd"; padding: 24px; }
}

table.cmp { width: 100%; border-collapse: collapse; min-width: 1120px; font-size: 15px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.cmp thead th { padding-top: 0; font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.cmp td b { display: block; font-weight: 600; }
.cmp .price, .cmp .was, .pf-kv .price, .pf-kv .was { white-space: nowrap; }
.cmp td small { display: block; margin: 2px 0 0; }
.cmp-firm { display: grid; gap: 8px; text-decoration: none; }
.cmp-firm img { width: 120px; height: auto; }
.cmp-firm span { font-weight: 600; }
.cmp td:nth-child(2) { white-space: nowrap; }
.cmp-firm:hover span { color: var(--accent); }

.pillars--4 { grid-template-columns: repeat(4, 1fr); }
.pf-risk { margin: 24px 0 0; color: var(--dim); font-size: 14px; max-width: 760px; }

/* ficha */
.pf-hero {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 120% at 85% 0%, rgba(90,230,58,0.06), transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg));
}
.pf-hero .page-hero__chart { opacity: 0.35; }
.pf-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.pf-id .crumb { display: flex; gap: 10px; color: var(--dim); margin-bottom: 24px; }
.pf-id .crumb a { color: var(--muted); text-decoration: none; }
.pf-id .crumb a:hover { color: var(--accent); }
.pf-id .crumb b { color: var(--text); font-weight: 500; }
.pf-id__row { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.pf-id h1 { margin: 0 0 8px; font-size: clamp(40px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.pf-id__row .mono { margin: 0; color: var(--dim); }
.pf-id .lead { margin: 22px 0 10px; color: var(--muted); font-size: clamp(16.5px, 1.4vw, 19px); max-width: 640px; }
.pf-id__meta { margin: 0; color: var(--dim); font-size: 11px; }
.pf-id__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pf-us { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.pf-us a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.pf-us a:hover, .pf-us a:focus-visible { color: var(--accent); }

.deal {
  position: relative; display: grid; gap: 12px; padding: 28px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(26,31,35,0.92), rgba(17,20,23,0.92));
  border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.deal__k { color: var(--dim); }
.deal__pct { margin: 0; display: flex; align-items: baseline; gap: 10px; line-height: 1; }
.deal__pct b { font-size: clamp(56px, 6vw, 84px); font-weight: 600; letter-spacing: -0.05em; }
.deal__pct span { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.08em; color: var(--muted); }
.deal__pct small { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); align-self: center; }
.pf-table th small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85em; }
.deal__upto { align-self: flex-start; margin-top: 8px; font-size: 12px !important; }
.deal__t { margin: 0; font-weight: 600; font-size: 17px; }
.deal .code { width: 100%; }
.deal__c { margin: 0; color: var(--muted); font-size: 14px; }
.deal__when { margin: 0; color: var(--dim); font-size: 10.5px; }

.pf-subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(5,6,7,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.pf-subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pf-subnav .wrap::-webkit-scrollbar { display: none; }
.pf-subnav a {
  position: relative; flex: 0 0 auto; padding: 15px 14px; color: var(--muted); text-decoration: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.pf-subnav a:hover { color: var(--text); }
.pf-subnav a[aria-current="true"] { color: var(--text); }
.pf-subnav a[aria-current="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent); }
.pf-sec { scroll-margin-top: calc(var(--header-h) + 52px); }

.pf-hl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hl { background: var(--bg-2); padding: 20px 22px; display: grid; gap: 4px; align-content: start; }
.hl .mono { color: var(--dim); font-size: 11px; }
.hl b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.hl small { color: var(--muted); font-size: 14px; line-height: 1.4; }

.pf-two { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 56px); margin-top: 40px; }
.pf-h3 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--dim); }
.pf-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.pf-feat li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.yn { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text); }
.yn--y { background: rgba(255,255,255,0.08); }
.yn--n { color: var(--dim); }

.pf-tablist { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); margin-bottom: 20px; max-width: 100%; overflow-x: auto; }
.pf-tab { min-height: 44px; padding: 0 20px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.pf-tab:hover { color: var(--text); }
.pf-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.js-tabs .pf-panel[data-hidden] { display: none; }
.pf-panel { border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(180deg, var(--surface), var(--graphite)); padding: 28px; }
.pf-panel + .pf-panel { margin-top: 20px; }
.js-tabs .pf-panel + .pf-panel { margin-top: 0; }
.pf-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.pf-panel__head .mono { color: var(--dim); }
.pf-panel__head h3 { margin: 6px 0 6px; font-size: 30px; letter-spacing: -0.02em; font-weight: 600; }
.pf-panel__head p { margin: 0; color: var(--muted); max-width: 620px; }

table.pf-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; font-variant-numeric: tabular-nums; }
.pf-table th, .pf-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pf-table thead th { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); padding-top: 0; }
.pf-table thead th:not(:first-child) { color: var(--text); font-size: 15px; font-family: var(--font-sans); letter-spacing: -0.01em; text-transform: none; font-weight: 600; }
.pf-table tbody th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.pf-table td { white-space: nowrap; }
.pf-table--two td { white-space: normal; }
.pf-table .row-price td { padding-top: 16px; padding-bottom: 16px; }
.pf-table .row-price small { display: block; margin: 0; }
.pf-table--rows thead th:not(:first-child) { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; color: var(--dim); }
.pf-table--two { min-width: 520px; }
.pf-table--two tbody th { width: 34%; white-space: normal; }
.pf-note { margin: 14px 0 0; color: var(--dim); font-size: 14px; }
.pf-growth { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.pf-growth h3 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.pf-growth > p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }

.pf-transp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pf-transp div { background: var(--bg-2); padding: 24px 22px; display: grid; gap: 8px; align-content: start; }
.pf-transp b { font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-transp span { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.pf-quote { margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--ma-fast); color: var(--muted); max-width: 760px; }

.pf-faq > .reveal { max-width: 900px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 20px; line-height: 1; transition: transform 0.2s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 0 0 22px; color: var(--muted); max-width: 760px; }

.pf-src { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pf-src a { display: inline-flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); text-decoration: none; }
.pf-src a:hover { border-color: var(--accent); color: var(--accent); }
.pf-upd { margin: 22px 0 0; color: var(--dim); font-size: 11px; }

.pf-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); pointer-events: none; transform: translateY(110%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0s linear 0.35s; }
.pf-bar.is-on { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
.pf-bar__in {
  pointer-events: auto; max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 18px; border: 1px solid var(--line-2);
  background: rgba(13,16,18,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.pf-bar__in img { width: 120px; height: auto; margin-right: auto; }
.pf-page .site-footer { padding-bottom: 110px; }
@media (prefers-reduced-motion: reduce) { .pf-bar { transition: none; } }

@media (max-width: 1100px) {
  .pf-hl, .pf-transp { grid-template-columns: 1fr 1fr; }
  .pillars--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .pf-hero__grid, .pf-two { grid-template-columns: 1fr; }
  .deal { max-width: 560px; }
  .pf-kv { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pf-card { padding: 20px; }
  .pf-card__top { flex-wrap: wrap; }
  .pf-off { order: 3; }
  .pf-card__id h3 { font-size: 24px; }
  .pf-card__top .logo-tile { width: 72px; height: 72px; padding: 10px; }
  .pf-card__actions .btn, .pf-card__actions .code { width: 100%; justify-content: center; margin: 0; }
  .pf-card__actions .code { justify-content: space-between; }
  .pf-stats { width: 100%; display: grid; grid-template-columns: auto auto 1fr; }
  .pf-stats div { padding: 12px; }
  .pf-stats dt { font-size: 18px; }
  .pf-stats dd { font-size: 9.5px; }
  .logo-tile--lg { width: 84px; height: 84px; padding: 12px; border-radius: 18px; }
  .pf-id__row { gap: 16px; }
  .pf-feat { grid-template-columns: 1fr; }
  .pf-hl, .pf-transp, .pillars--4 { grid-template-columns: 1fr; }
  .pf-panel { padding: 20px 16px; border-radius: 18px; }
  .pf-panel .pf-table tbody th { position: sticky; left: 0; background: var(--surface); z-index: 1; }
  .pf-bar__in { padding: 8px 8px 8px 14px; }
  .pf-bar__in img { display: none; }
  .pf-bar__in .code { margin-right: auto; }
  .pf-bar__in .btn { padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .pf-bar__in .code__a [data-copy-label] { display: none; }
  .pf-bar__in .code { gap: 8px; }
  .pf-id__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Prop Firm · Tendência (V 8.7) ---------- */
.trend { overflow: hidden; }
.trend .section-head { align-items: flex-end; }
.tk-toggle { min-height: 40px; }
.ctrl.tk-toggle[hidden] { display: none; }

/* fita de cotações */
.tape { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); margin-bottom: 26px; }
.tape::before, .tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.tape::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.tape::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.tape__track { display: flex; width: max-content; animation: tape 38s linear infinite; }
.tape__track a { text-decoration: none; padding: 11px 28px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tape__track b, .tape__track a:hover b { color: var(--text); font-weight: 600; margin-right: 8px; }
.tape__track i { font-style: normal; color: var(--dim); margin-left: 8px; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* carrossel */
.tk { position: relative; overflow: hidden; padding: 6px 0 14px; outline: none; }
.tk::before, .tk::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(24px, 6vw, 120px); z-index: 2; pointer-events: none; }
.tk::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.tk::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.tk__track { list-style: none; margin: 0; padding: 0 0 0 var(--gutter); display: flex; width: max-content; }
.tk.is-moving .tk__track { padding-left: 0; will-change: transform; }
.tk.is-moving { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tk.is-dragging { cursor: grabbing; }
.tk.is-dragging .tk-card { transition: none; }
.tk.is-dragging a, .tk.is-dragging button { pointer-events: none; }
.tk img { -webkit-user-drag: none; }
@keyframes tk-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk.is-static { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tk.is-static::before, .tk.is-static::after { display: none; }
.tk.is-static .tk-card { scroll-snap-align: start; }

.tk-card {
  position: relative; flex: 0 0 auto; width: 340px; margin-right: 18px;
  display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 18px; border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), var(--graphite)); border: 1px solid var(--line-2);
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s;
}
@media (hover: hover) { .tk-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.22); box-shadow: 0 24px 50px rgba(0,0,0,0.45); } }
.tk-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tk-card__top img { width: 112px; height: auto; }
.tk-hot { white-space: nowrap; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.05); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; }
.tk-sym { margin: 6px 0 0; color: var(--dim); font-size: 11px; }
.tk-card h3 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.tk-kind { margin: 0; color: var(--muted); font-size: 14px; }
.tk-quote { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; margin-top: 6px; }
.tk-quote .mono { grid-column: 1 / -1; color: var(--dim); font-size: 10.5px; }
.tk-quote .price { font-size: 30px; letter-spacing: -0.03em; }
.tk-quote .was { display: inline; font-size: 13px; }
.tk-chg { grid-column: 1 / -1; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tk-spark { width: 100%; height: 56px; margin: 2px 0 4px; overflow: visible; }
.tk-spark .l { fill: none; stroke: var(--candle-up); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tk-spark .a { fill: rgba(217,223,220,0.06); }
.tk-spark .g { stroke: rgba(255,255,255,0.18); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.tk-spark .d { fill: var(--text); }
.tk.is-moving .tk-spark .l { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tk-actions { display: flex; gap: 8px; align-items: center; }
.tk-actions .code { flex: 1; min-width: 0; }
.tk-actions .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.tk-more { margin-top: 4px; color: var(--muted); font-size: 14px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.tk-more:hover { color: var(--accent); }
.pf-disclose { margin: 14px 0 0; color: var(--dim); font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
  .tape__track { animation: none; }
  .tk-card:hover { transform: none; }
}
@media (max-width: 640px) {
  .tk-card { width: 290px; padding: 18px; margin-right: 12px; }
  .tk-quote .price { font-size: 26px; }
  .tape__track a { padding: 9px 18px; font-size: 11.5px; }
}

/* logos das plataformas */
.pl-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: 150px; }
.pl-logos img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.pl-more { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 11px; color: var(--muted); cursor: help; }
.tags--plain li { display: inline-flex; align-items: center; gap: 8px; }
.tags--plain li img { width: 22px; height: 22px; border-radius: 5px; }

.page-hero--pf .lead { max-width: 540px; }
@media (max-width: 640px) {
  .tk-actions { flex-direction: column; align-items: stretch; }
  .tk-actions .code, .tk-actions .btn { width: 100%; justify-content: center; }
  .tk-actions .code { justify-content: space-between; }
  .page-hero--pf .page-hero__chart { opacity: 0.3; }
}

/* V 8.8 · cartões e fita clicáveis; desconto em vermelho ao selecionar */
.tape:hover .tape__track, .tape:focus-within .tape__track { animation-play-state: paused; }
.tape__track a { transition: background 0.2s, color 0.2s; }
.tape__track a:hover, .tape__track a:focus-visible { background: rgba(255,255,255,0.05); color: var(--text); }
.tape__track a:focus-visible { outline-offset: -2px; }
.tape__track i { transition: color 0.2s; }
.tape__track a:hover i, .tape__track a:focus-visible i { color: var(--tick-down); font-weight: 600; }
.tk-card h3 a { text-decoration: none; }
.tk-card h3 a:hover, .tk-card h3 a:focus-visible { color: var(--accent); }
.tk-card h3 a::after { content: " →"; font-size: 0.75em; opacity: 0; transition: opacity 0.2s; }
.tk-card:hover h3 a::after, .tk-card h3 a:focus-visible::after { opacity: 1; }
.tk-chg { transition: color 0.2s; }
.tk-card:hover .tk-chg, .tk-card:focus-within .tk-chg { color: var(--tick-down); font-weight: 600; }
.pf-panel { scroll-margin-top: calc(var(--header-h) + 64px); }

/* ---------- Prop Firm · Compare (V 9.1): mescla propfirmmatch + funded.now ---------- */
.cmpx-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.cmpx-search { flex: 1 1 320px; max-width: none; display: block; }
.cmpx-sel { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.cmpx-sel .mono { color: var(--dim); font-size: 10px; }
.cmpx-sel select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--text); font: inherit; font-weight: 600; font-size: 15px; padding: 0 22px 0 0; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.cmpx-sel select:focus { outline: none; }
.cmpx-sel:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cmpx-sel option { background: var(--surface); color: var(--text); }
.cmpx-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.cmpx-chips .result-count { margin-left: auto; }

.cmpx-head, .cmp-row { display: grid; grid-template-columns: minmax(220px, 1.5fr) 0.7fr 1.15fr 0.95fr 0.9fr 0.95fr minmax(230px, 1.35fr); gap: 18px; align-items: center; }
.cmpx-head { padding: 0 22px 12px; color: var(--dim); font-size: 10.5px; }
.cmpx-head span:last-child { text-align: right; }
.cmpx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cmp-row { padding: 18px 22px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface), var(--graphite)); transition: border-color 0.25s, transform 0.3s var(--ease); }
.cmp-row:hover { border-color: rgba(255,255,255,0.22); }
.cmp-row[hidden] { display: none; }
.cmp-c { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.cmp-c small { color: var(--muted); font-size: 12.5px; margin: 0; }
.cmp-c b { font-weight: 600; }
.cmp-c b.mt { margin-top: 8px; }
.cmp-id { flex-direction: row; align-items: center; gap: 16px; }
.cmp-id .logo-tile { width: 72px; height: 72px; padding: 10px; border-radius: 16px; }
.cmp-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; display: block; }
.cmp-name:hover { color: var(--accent); }
.cmp-badge { display: inline-block; margin: 6px 0 4px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.cmp-ok { display: block; color: var(--dim); font-size: 10px; }
.cmp-flag { font-size: 18px; line-height: 1; }
.cmp-mkts { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.cmp-mkts li { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.cmp-c .pl-logos { max-width: none; gap: 5px; }
.cmp-c .pl-logos img { width: 24px; height: 24px; border-radius: 6px; }
.cmp-c .pl-more { min-width: 24px; height: 24px; font-size: 10px; }
.cmp-c .bar { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); margin: 6px 0 4px; overflow: hidden; }
.cmp-c .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--liq-mid), var(--liq-high)); }
.cmp-cost .mono { color: var(--dim); font-size: 10.5px; }
.cmp-cost .was { font-size: 13px; }
.cmp-cost .price { font-size: 26px; letter-spacing: -0.03em; white-space: nowrap; }
.cmp-act { align-items: flex-end; gap: 8px; }
.cmp-act .pf-off { align-self: flex-end; font-size: 10.5px; padding: 5px 9px; }
.cmp-act .code { width: 100%; }
.cmp-btns { display: flex; gap: 8px; width: 100%; }
.cmp-btns .btn { min-height: 42px; padding: 0 14px; font-size: 14px; justify-content: center; }
.cmp-btns .btn--primary { flex: 1; }

@media (max-width: 1180px) {
  .cmpx-head { display: none; }
  .cmp-row { grid-template-columns: repeat(3, 1fr); gap: 18px 20px; }
  .cmp-id { grid-column: 1 / -1; }
  .cmp-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
  .cmp-act .code { width: auto; }
  .cmp-act .cmp-btns { width: auto; margin-left: auto; }
  .cmp-c[data-label]::before { content: attr(data-label); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
  .cmp-cost .mono { display: none; }
}
@media (max-width: 640px) {
  .cmp-row { grid-template-columns: 1fr 1fr; padding: 18px; }
  .cmpx-sel { flex: 1 1 140px; }
  .cmp-act { flex-direction: column; align-items: stretch; }
  .cmp-act .pf-off { align-self: flex-start; }
  .cmp-act .code, .cmp-act .cmp-btns { width: 100%; margin: 0; }
  .cmpx-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .cmpx-chips .chip { flex: 0 0 auto; }
  .cmpx-chips .result-count { flex: 0 0 auto; }
}
.cmp-act .pf-off { order: 0 !important; }
.cmp-ok { white-space: nowrap; }

/* ---------- Compare · Empresas/Planos e limpar filtros (V 9.2) ---------- */
.cmpx-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cmpx-view { margin-bottom: 0; }
.cmpx-view .pf-tab[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.cmpx-view .cnt { font-family: var(--font-mono); font-size: 11px; opacity: 0.65; margin-left: 4px; }
.cmpx-clear { min-height: 52px; border-radius: 12px; gap: 8px; }
.cmpx-clear svg { flex: 0 0 auto; }
.cmpx.is-filtered .cmpx-clear { border-color: var(--accent); color: var(--accent); }
.cmpx-head--plan, .cmp-row--plan { grid-template-columns: minmax(220px, 1.5fr) 0.65fr 0.8fr 0.8fr 0.8fr 0.6fr 0.95fr minmax(230px, 1.35fr); }
.cmp-row--plan .cmp-c b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 1180px) {
  .cmp-row--plan { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cmp-row--plan { grid-template-columns: 1fr 1fr; }
  .cmpx-clear { flex: 1 1 100%; justify-content: center; }
  .cmpx-view { width: 100%; }
  .cmpx-view .pf-tab { flex: 1; }
}
.cmp-row--plan .cmp-name { font-size: 18px; }
.cmp-row--plan .cmp-id { gap: 14px; }
.pf-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tk-size { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 7px; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; vertical-align: 3px; color: var(--text); }
.tk-card h3 a:hover .tk-size { border-color: var(--accent); }

/* ---------- Ferramentas (V 9.5) ---------- */
.page-hero--tools { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.tools-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tools-hero__txt { position: relative; }
.tools-pause { margin-top: 26px; }
.ctrl.tools-pause[hidden] { display: none; }

/* book de níveis: cada categoria é um preço */
.lad {
  position: relative; overflow: hidden; padding: 14px 0 6px;
  border: 1px solid var(--line-2); border-radius: 18px;
  background: linear-gradient(180deg, rgba(19,23,26,0.9), rgba(10,12,14,0.9));
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.lad__head { display: flex; justify-content: space-between; gap: 12px; padding: 0 18px 12px; font-size: 10.5px; letter-spacing: 0.08em; color: var(--dim); border-bottom: 1px solid var(--line); }
.lad__quote { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-size: 11px; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.lad__quote b { font-size: 22px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 7px; border: 1px solid transparent; background: rgba(5,6,7,0.78); }
.lad__quote b.is-up { animation: flashUp 0.9s var(--ease); }
.lad__quote b.is-down { animation: flashDown 0.9s var(--ease); }
.lad__rows { list-style: none; margin: 0; padding: 0; }
.lad__row {
  width: 100%; min-height: 56px; padding: 8px 18px; position: relative; z-index: 1;
  display: grid; grid-template-columns: 78px minmax(0, 1fr) 84px 12px; align-items: center; gap: 14px;
  background: none; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer;
  color: var(--muted); transition: background 0.25s, color 0.25s;
}
.lad__row:focus-visible { outline-offset: -3px; border-radius: 0; }
.lad__px { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; transition: color 0.25s; }
.lad__name { display: flex; flex-direction: column; line-height: 1.2; font-size: 15px; font-weight: 500; min-width: 0; }
.lad__name small { margin-top: 3px; font-size: 9.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 400; }
.lad__liq { height: 8px; display: flex; justify-content: flex-end; }
.lad__liq i { display: block; width: var(--w); height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--liq-low), var(--liq-mid)); opacity: 0.85; transition: opacity 0.3s, filter 0.3s; }
.lad__row:not(.is-live) .lad__liq i { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 3px, transparent 3px 6px); }
.lad__n { font-size: 10px; color: var(--dim); text-align: right; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.lad__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); }
.lad__row.is-live .lad__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lad__row:hover, .lad__row:focus-visible { background: rgba(255,255,255,0.025); color: var(--text); }
.lad__row.is-hot { color: var(--text); }
.lad__row.is-hot .lad__px { color: var(--text); }
.lad__row.is-hot .lad__liq i { opacity: 1; background: linear-gradient(90deg, var(--liq-mid), var(--liq-high)); }
.lad__row.is-hot:not(.is-live) .lad__liq i { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.3) 0 3px, transparent 3px 6px); }
.lad__row.is-hot.is-live .lad__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.2s var(--ease) infinite; }
.lad__line { position: absolute; left: 0; right: 0; top: 0; height: 56px; opacity: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, rgba(217,223,220,0.08), rgba(217,223,220,0.02) 60%, rgba(31,127,209,0.08));
  border-left: 2px solid var(--candle-up); transition: transform 0.9s var(--ease), height 0.3s; }
.lad.is-ready .lad__line { opacity: 1; }

/* fita */
.tape--tools { margin: 0; }
.tape--tools .tape__track { animation-duration: 46s; }
.tape--tools:hover .tape__track, .tape--tools:focus-within .tape__track { animation-play-state: paused; }
.tape--tools a b { margin-right: 10px; }
.tape--tools a:hover { color: var(--text); }
.tape--tools a:hover i { color: var(--accent); }

/* cartões */
.grid-tools { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.tcard {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--radius); text-decoration: none;
  background: linear-gradient(180deg, var(--surface), var(--graphite)); border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.tcard[hidden] { display: none; }
a.tcard:hover, a.tcard:focus-visible { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.tcard::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(217,223,220,0.6), transparent); }
a.tcard:hover::after, a.tcard:focus-visible::after { animation: tscan 1.1s var(--ease) forwards; }
@keyframes tscan { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.tcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.06em; color: var(--dim); }
.tcard__sym { color: var(--muted); }
.tcard__st { display: inline-flex; align-items: center; gap: 7px; text-transform: uppercase; }
.tcard__st i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.tcard__cat { margin: 0; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); }
.tcard h3 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.tcard__desc { margin: 0; color: var(--muted); font-size: 15.5px; }
.tcard__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--dim); font-size: 11px; }
.tcard__foot .go { color: var(--text); font-weight: 600; font-size: 14.5px; transition: color 0.2s; }
a.tcard:hover .go, a.tcard:focus-visible .go { color: var(--accent); }
.tcard--soon { background: transparent; border-style: dashed; }
.tcard--soon h3 { color: var(--muted); }

/* desenhos dos cartões */
.gl { width: 100%; height: auto; aspect-ratio: 5 / 1; margin: 4px 0 2px; overflow: visible; }
.gl line, .gl rect, .gl polyline { stroke-width: 1.3; }
.gl-l { fill: none; stroke: var(--candle-up); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.gl-l--ma { stroke: var(--ma-fast); stroke-width: 1.3; opacity: 0.85; }
.tcard.is-in .gl-l { animation: draw 1.6s var(--ease) 0.15s forwards; }
.tcard.is-in .gl-l--ma { animation-delay: 0.6s; }
.gl-a { fill: rgba(217,223,220,0.06); }
.gl-g { stroke: rgba(255,255,255,0.14); stroke-dasharray: 3 4; }
.gl-t { stroke: rgba(217,223,220,0.4); stroke-dasharray: 3 4; }
.gl-s { stroke: var(--candle-down); stroke-dasharray: 3 4; }
.gl-d { fill: var(--text); }
.gl-tx { font: 600 8.5px var(--font-mono); fill: var(--dim); text-anchor: middle; letter-spacing: 0.06em; }
.gl-tx--r { text-anchor: end; }
.gl-qty { fill: rgba(255,255,255,0.03); stroke: var(--line-2); }
.gl-btn--dim { fill: var(--muted); }
.gl-up line { stroke: var(--candle-up); } .gl-up rect { fill: var(--bg); stroke: var(--candle-up); }
.gl-dn line { stroke: var(--candle-down); } .gl-dn rect { fill: var(--candle-down); stroke: var(--candle-down); }
.gl g { opacity: 0; }
.tcard.is-in .gl g { animation: glIn 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 0.15s); }
@keyframes glIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.gl-frame { fill: rgba(255,255,255,0.02); stroke: var(--line-2); }
.gl-buy { fill: rgba(217,223,220,0.08); stroke: var(--candle-up); transition: fill 0.25s; }
.gl-sell { fill: rgba(90,99,106,0.25); stroke: var(--candle-down); transition: fill 0.25s; }
a.tcard:hover .gl-buy { fill: rgba(217,223,220,0.2); }
.gl-btn { font: 600 10px var(--font-mono); fill: var(--text); text-anchor: middle; letter-spacing: 0.08em; }
.gl-dim { fill: var(--dim); }
.gl-flat { stroke: rgba(255,255,255,0.16); stroke-dasharray: 3 5; }

/* pausa e movimento reduzido */
.is-paused .tape__track { animation-play-state: paused; }
.is-paused .lad__dot::after { animation: none; opacity: 0.4; }
@media (prefers-reduced-motion: reduce) {
  .gl-l { stroke-dashoffset: 0; animation: none !important; }
  .gl g { opacity: 1; animation: none !important; }
  a.tcard:hover::after, a.tcard:focus-visible::after { animation: none; }
  a.tcard:hover, a.tcard:focus-visible { transform: none; }
  .lad__line { transition: none; }
  .lad__quote b.is-up, .lad__quote b.is-down, .lad__row.is-hot.is-live .lad__dot::after { animation: none; }
}
.no-js .gl-l { stroke-dashoffset: 0; } .no-js .gl g { opacity: 1; }

@media (max-width: 1020px) {
  .tools-hero { grid-template-columns: 1fr; }
  .lad { max-width: 560px; }
}
@media (max-width: 560px) {
  .lad__row { grid-template-columns: 70px minmax(0, 1fr) 10px; gap: 10px; padding: 7px 14px; min-height: 52px; }
  .lad__liq { display: none; }
  .lad__head, .lad__quote { padding-left: 14px; padding-right: 14px; }
  .lad__name { font-size: 14px; }
  .lad__quote b { font-size: 19px; }
}

/* Ferramentas · desenhos de indicadores (V 9.6) */
.gl-tx--l { text-anchor: start; }
.gl-zone { stroke-width: 1; }
.gl-z1 { fill: rgba(31,127,209,0.14); stroke: rgba(31,127,209,0.55); }
.gl-z2 { fill: rgba(167,139,250,0.12); stroke: rgba(167,139,250,0.5); }
.gl-z3 { fill: rgba(242,193,78,0.10); stroke: rgba(242,193,78,0.5); }
.gl-z4 { fill: rgba(99,217,255,0.10); stroke: rgba(99,217,255,0.45); }
.gl-lv { stroke-width: 1.4; stroke-dasharray: 5 4; }
.gl-lv1 { stroke: var(--liq-mid); }
.gl-lv2 { stroke: var(--ma-slow); }
.gl-lv3 { stroke: var(--ma-fast); }

/* ==========================================================================
   Ferramentas v2 (V 9.7) — seções (funded.now) + navegação/contagens (PFM)
   ========================================================================== */
.tools-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.03); }
.tools-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.page-hero--tools h1 { margin-top: 20px; }
.tools-stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; margin: 26px 0 0; padding: 0; max-width: 620px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.02); }
.tools-stats li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-right: 1px solid var(--line); }
.tools-stats li:last-child { border-right: 0; }
.tools-stats b { font-size: 24px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tools-stats span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.tools-pause { margin-top: 22px; }

/* barra fixa de categorias */
.tnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(5,6,7,0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tnav__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.tnav__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 4px 0; }
.tnav__chips::-webkit-scrollbar { display: none; }
.tnav__chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.tnav__chip span { font-size: 11px; color: var(--dim); }
.tnav__chip:hover { color: var(--text); border-color: var(--text); }
.tnav__chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tnav__chip[aria-current="true"] span { color: var(--accent-ink); opacity: 0.7; }
.tnav__chip--soon { border-style: dashed; }
.tnav__search { position: relative; flex: 0 0 260px; }
.tnav__search input { width: 100%; min-height: 40px; padding: 0 14px 0 40px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 14.5px; }
.tnav__search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tnav__search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--dim); }
.tnav__prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--liq-mid), var(--candle-up)); }

.tools-main { padding-bottom: clamp(48px, 7vw, 96px); }
.tools-count { margin: 28px 0 0; color: var(--dim); }
.tsec { padding-top: clamp(48px, 6vw, 80px); scroll-margin-top: calc(var(--header-h) + 72px); }
.tsec[hidden] { display: none; }
.tsec__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 24px; }
.tsec__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface-2), var(--graphite)); color: var(--text); }
.tsec__icon svg { width: 22px; height: 22px; }
.tsec__head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; line-height: 1.1; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.tsec__n { font-size: 12px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; font-weight: 500; letter-spacing: 0; }
.tsec__head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.tsec__badge { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }

/* destaque dos indicadores */
.spot { border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(180deg, var(--surface), var(--graphite)); overflow: hidden; }
.spot__tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.spot__tab { flex: 1 1 0; min-width: 220px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 24px; background: none; border: 0; border-right: 1px solid var(--line); color: var(--muted); font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; position: relative; transition: color 0.2s, background 0.2s; }
.spot__tab .mono { font-size: 11px; color: var(--dim); letter-spacing: 0.06em; }
.spot__tab:last-child { border-right: 0; }
.spot__tab:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.spot__tab[aria-selected="true"] { color: var(--text); background: rgba(255,255,255,0.035); }
.spot__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.spot__tab[hidden] { display: none; }
.spot__tab:focus-visible { outline-offset: -4px; }
.spot__stage { position: relative; overflow: hidden; }
.spot__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); padding: clamp(22px, 3vw, 36px); align-items: start; }
.spot__panel[hidden] { display: none; }
.spot__k { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); }
.spot__free { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text); }
.spot h3 { margin: 12px 0 10px; font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
.spot__desc { margin: 0; color: var(--muted); }
.spot__act { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.spot__note { margin: 12px 0 0; font-size: 11px; color: var(--dim); letter-spacing: 0.04em; }
.is-in-up { animation: spotUp 0.55s var(--ease); }
.is-in-down { animation: spotDown 0.55s var(--ease); }
@keyframes spotUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes spotDown { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
.spot__sweep { position: absolute; left: 0; right: 0; height: 1px; top: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(217,223,220,0.8), transparent); }
.sweep-up .spot__sweep { animation: sweepUp 0.6s var(--ease); }
.sweep-down .spot__sweep { animation: sweepDown 0.6s var(--ease); }

.feat { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.feat li { position: relative; padding-left: 26px; font-size: 15px; color: var(--text); line-height: 1.45; }
.feat li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--candle-up); border-bottom: 2px solid var(--candle-up); transform: rotate(-45deg); opacity: 0.85; }
.feat__k { margin: 16px 0 0; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--dim); }
.feat__k + .feat { margin-top: 10px; }

/* gráfico em replay */
.spot__chart { margin: 0; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg); overflow: hidden; }
.live__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 11px; letter-spacing: 0.07em; color: var(--dim); border-bottom: 1px solid var(--line); }
.live__bar span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--candle-up); animation: ping2 1.6s ease-in-out infinite; }
@keyframes ping2 { 50% { opacity: 0.25; } }
[data-live-quote] { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 6px; border: 1px solid transparent; }
[data-live-quote].is-up { animation: flashUp 0.7s var(--ease); }
[data-live-quote].is-down { animation: flashDown 0.7s var(--ease); }
.live { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.spot__chart figcaption { padding: 8px 14px 10px; font-size: 10.5px; color: var(--dim); letter-spacing: 0.04em; border-top: 1px solid var(--line); }
.lv-grid { stroke: rgba(255,255,255,0.05); }
.lc-up line { stroke: var(--candle-up); stroke-width: 1.1; } .lc-up rect { fill: var(--bg); stroke: var(--candle-up); stroke-width: 1.1; }
.lc-dn line { stroke: var(--candle-down); stroke-width: 1.1; } .lc-dn rect { fill: var(--candle-down); stroke: var(--candle-down); }
.lv-zone { stroke-width: 1; }
.lv-z1 { fill: rgba(31,127,209,0.13); stroke: rgba(31,127,209,0.6); }
.lv-z2 { fill: rgba(167,139,250,0.11); stroke: rgba(167,139,250,0.55); }
.lv-z3 { fill: rgba(242,193,78,0.09); stroke: rgba(242,193,78,0.55); }
.lv-hl { stroke: rgba(217,223,220,0.25); stroke-dasharray: 3 4; }
.lv-lbl { font: 600 10px var(--font-mono); fill: var(--muted); letter-spacing: 0.06em; }
.lv-lbl--r { text-anchor: end; }
.lv-sr { stroke-width: 1.6; }
.lv-30M { stroke: var(--liq-mid); } .lv-1H { stroke: var(--ma-slow); } .lv-4H { stroke: var(--ma-fast); }
.lv-sr.is-dead { stroke-dasharray: 3 4; opacity: 0.35; }
.lv-last { stroke: rgba(217,223,220,0.45); stroke-dasharray: 2 3; }
.lv-tag { fill: var(--candle-up); }
.lv-tagt { font: 600 10.5px var(--font-mono); fill: var(--bg); text-anchor: middle; }
.lv-ax { font: 10px var(--font-mono); fill: var(--dim); text-anchor: middle; }

/* cartões em "tela" (calculadoras, catálogos) */
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.scard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, var(--surface), var(--graphite)); transition: border-color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s; }
.scard[hidden] { display: none; }
.scard:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 22px 44px rgba(0,0,0,0.4); }
.scard__shot { position: relative; padding: 46px 18px 18px; background: radial-gradient(120% 90% at 50% 0%, rgba(31,127,209,0.12), transparent 70%), var(--bg-2); border-bottom: 1px solid var(--line); }
.scard__cat, .scard__free { position: absolute; top: 14px; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(5,6,7,0.7); }
.scard__cat { left: 14px; color: var(--muted); }
.scard__free { right: 14px; color: var(--text); }
.scard__screen { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); padding: 10px 12px 12px; box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
.scard__screen > .mono { display: block; font-size: 9.5px; color: var(--dim); letter-spacing: 0.08em; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard__screen::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(217,223,220,0.6), transparent); }
.scard:hover .scard__screen::after { animation: tscan 1.1s var(--ease) forwards; }
.scard.is-in .gl-l { animation: draw 1.6s var(--ease) 0.15s forwards; }
.scard.is-in .gl-l--ma { animation-delay: 0.6s; }
.scard.is-in .gl g { animation: glIn 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 0.15s); }
.scard__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.scard__body h3 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.scard__body > p:not(.feat__k) { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.btn--wide { width: 100%; justify-content: center; margin-top: auto; background: var(--accent); color: var(--accent-ink); }
.scard__body .feat + .btn--wide, .scard__body > p + .btn--wide { margin-top: 22px; }
.btn--wide:hover { box-shadow: 0 0 0 6px var(--accent-soft); }

/* cartões horizontais (extensões) */
.rgrid { display: grid; gap: 14px; }
.rcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--surface), var(--graphite)); transition: border-color 0.25s; }
.rcard[hidden] { display: none; }
.rcard:hover { border-color: var(--line-2); }
.rcard__logo { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg); padding: 8px; }
.rcard h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.rcard__sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.rcard__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.rcard__tags li { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.rcard__desc { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* por necessidade */
.needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.need { position: relative; display: block; padding: 22px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; background: rgba(255,255,255,0.015); transition: border-color 0.25s, background 0.25s, transform 0.35s var(--ease); }
.need:hover, .need:focus-visible { border-color: var(--accent); background: rgba(255,255,255,0.03); transform: translateY(-2px); }
.need__n { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.need h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.need p { margin: 0; color: var(--muted); font-size: 14.5px; }
.need ul { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 5px; font-size: 11px; color: var(--dim); letter-spacing: 0.03em; }

/* em breve */
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.soon-tile { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 18px; border: 1px dashed var(--line-2); border-radius: 16px; }
.soon-tile .tsec__icon { width: 42px; height: 42px; color: var(--muted); }
.soon-tile h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--muted); }
.soon-tile p { margin: 4px 0 0; color: var(--dim); font-size: 14px; }
.soon-tile > .mono { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); }
.tsec--faq .faq { max-width: 900px; }

@media (prefers-reduced-motion: reduce) {
  .is-in-up, .is-in-down, .sweep-up .spot__sweep, .sweep-down .spot__sweep, .live__dot { animation: none !important; }
  .scard:hover, .need:hover { transform: none; }
  .scard.is-in .gl-l { animation: none; stroke-dashoffset: 0; }
  .scard.is-in .gl g { animation: none; opacity: 1; }
}
.is-paused .live__dot { animation-play-state: paused; }

@media (max-width: 1020px) {
  .spot__panel { grid-template-columns: 1fr; }
  .spot__chart { order: -1; }
  .tnav__search { flex-basis: 200px; }
}
@media (max-width: 720px) {
  .tnav__in { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .tnav__search { flex: 1 1 100%; order: 2; }
  .tnav__chips { flex: 1 1 100%; }
  .tsec { scroll-margin-top: calc(var(--header-h) + 118px); }
  .tsec__head { grid-template-columns: auto 1fr; }
  .tsec__badge { display: none; }
  .spot__tab { min-width: 0; padding: 14px 16px; font-size: 14.5px; }
  .rcard { grid-template-columns: auto 1fr; }
  .rcard__act { grid-column: 1 / -1; }
  .rcard__act .btn { width: 100%; justify-content: center; }
  .tools-stats { grid-template-columns: 1fr 1fr; }
  .tools-stats li:nth-child(2n) { border-right: 0; }
  .tools-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.sgrid > .scard { max-width: 640px; }
@media (max-width: 720px) { .rcard { align-items: start; } .rcard__logo { width: 52px; height: 52px; } }

/* ---------- Ferramentas · Wallpapers (V 9.9) ---------- */
.wp__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.wp__devs { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--graphite); }
.wp__dev { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 14.5px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.wp__dev span { font-size: 11px; opacity: 0.7; }
.wp__dev:hover { color: var(--text); }
.wp__dev[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.wp__zip { min-height: 42px; font-size: 14px; }
.wp__zip .mono { font-size: 11px; color: var(--dim); font-weight: 400; }
.wp__zip[hidden] { display: none; }
.wp__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.wp__grid[hidden] { display: none; }
.wp__grid--pc { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wp__grid--celular { grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); }
.wp__item { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, var(--surface), var(--graphite)); transition: border-color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s; transition-delay: calc(var(--i, 0) * 40ms); }
.wp__item[hidden] { display: none; }
.wp__item:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 22px 44px rgba(0,0,0,0.45); transition-delay: 0s; }
.wp__thumb { position: relative; display: block; padding: 0; border: 0; background: var(--bg); cursor: zoom-in; overflow: hidden; }
.wp__thumb img { width: 100%; height: auto; aspect-ratio: auto; transition: transform 0.7s var(--ease), filter 0.4s; }
.wp__grid--pc .wp__thumb img { aspect-ratio: 16 / 9; object-fit: cover; }
.wp__grid--celular .wp__thumb img { aspect-ratio: 9 / 18; object-fit: cover; }
.wp__thumb:hover img, .wp__thumb:focus-visible img { transform: scale(1.04); filter: brightness(1.08); }
.wp__thumb::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(217,223,220,0.8), transparent); }
.wp__thumb:hover::after { animation: tscan 1.1s var(--ease) forwards; }
.wp__zoom { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 8px; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; background: rgba(5,6,7,0.78); border: 1px solid var(--line-2); color: var(--text); opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s var(--ease); }
.wp__thumb:hover .wp__zoom, .wp__thumb:focus-visible .wp__zoom { opacity: 1; transform: none; }
.wp__thumb:focus-visible { outline-offset: -3px; }
.wp__info { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }
.wp__info h3 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.wp__info p { margin: 2px 0 0; font-size: 10.5px; color: var(--dim); letter-spacing: 0.03em; }
.wp__dl { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 17px; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.wp__dl:hover, .wp__dl:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.is-swap .wp__item { animation: wpIn 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes wpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wp__grid--celular .wp__info { flex-direction: column; align-items: stretch; }
.wp__grid--celular .wp__dl { width: 100%; }

.wpbox { width: min(1200px, 94vw); max-height: 94vh; padding: 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-2); color: var(--text); overflow: hidden; }
.wpbox::backdrop { background: rgba(0,0,0,0.82); backdrop-filter: blur(6px); }
.wpbox.is-tall { width: min(520px, 94vw); }
.wpbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.wpbox__bar b { display: block; font-size: 16px; }
.wpbox__bar .mono { font-size: 11px; color: var(--dim); }
.wpbox__act { display: flex; gap: 8px; align-items: center; }
.wpbox__act .btn { min-height: 40px; font-size: 14px; }
.wpbox__x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: none; color: var(--text); font-size: 22px; cursor: pointer; }
.wpbox__x:hover { border-color: var(--accent); color: var(--accent); }
.wpbox__stage { position: relative; display: grid; place-items: center; background: var(--bg); min-height: 240px; }
.wpbox__stage img { max-width: 100%; max-height: calc(94vh - 80px); width: auto; height: auto; opacity: 0; transition: opacity 0.35s; }
.wpbox__stage img.is-on { opacity: 1; }
.wpbox__load { position: absolute; color: var(--dim); font-size: 12px; }
.wpbox__load[hidden] { display: none; }
.wpbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(5,6,7,0.7); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.wpbox__nav:hover { border-color: var(--accent); color: var(--accent); }
.wpbox__nav--p { left: 12px; } .wpbox__nav--n { right: 12px; }
@media (prefers-reduced-motion: reduce) {
  .is-swap .wp__item { animation: none; }
  .wp__item:hover, .wp__thumb:hover img { transform: none; }
}
@media (max-width: 720px) {
  .wp__bar { flex-direction: column; align-items: stretch; }
  .wp__devs { align-self: flex-start; }
  .wp__zip { justify-content: center; }
  .wpbox__bar { flex-wrap: wrap; }
}

/* replay FVG (V 10.0) */
.lv-gap { stroke-width: 1; }
.lv-fvgb { fill: rgba(31,127,209,0.16); stroke: rgba(31,127,209,0.7); }
.lv-fvgs { fill: rgba(167,139,250,0.14); stroke: rgba(167,139,250,0.65); }
.lv-ifvg { fill: rgba(242,193,78,0.12); stroke: rgba(242,193,78,0.7); stroke-dasharray: 4 3; }
.lv-ce { stroke: var(--ma-fast); stroke-width: 1; stroke-dasharray: 5 4; opacity: 0.75; }
.spot__act { align-items: center; }
.spot__fmt { font-size: 11px; color: var(--dim); letter-spacing: 0.04em; }

/* ---------- Indicadores por plataforma + carrossel (V 10.1) ---------- */
.plat + .plat { margin-top: clamp(36px, 5vw, 56px); }
.plat__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 16px; }
.plat__head img { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 6px; }
.plat__head h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.plat__head h3 .mono { font-size: 11px; font-weight: 400; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; letter-spacing: 0.04em; }
.plat__head p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.plat__link { color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; white-space: nowrap; }
.plat__link:hover { color: var(--accent); border-color: var(--accent); }

.rail { display: flex; align-items: stretch; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); background: rgba(5,6,7,0.35); }
.rail__cards { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail__cards::-webkit-scrollbar { display: none; }
.rail__card { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface-2), var(--graphite)); color: var(--muted); text-align: left; cursor: pointer; overflow: hidden; transition: border-color 0.25s, color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s, background 0.25s; }
.rail__card:hover { color: var(--text); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.rail__card[aria-selected="true"] { color: var(--text); border-color: var(--accent); background: linear-gradient(180deg, rgba(90,230,58,0.08), var(--graphite)); box-shadow: 0 0 0 4px var(--accent-soft), 0 16px 34px rgba(0,0,0,0.4); }
.rail__card[hidden] { display: none; }
.rail__card:focus-visible { outline-offset: 2px; }
.rail__top { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 0.07em; color: var(--dim); }
.rail__card[aria-selected="true"] .rail__top span:first-child { color: var(--accent); }
.rail__t { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.rail__m { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.rail__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.05); }
.rail__prog i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.1s linear; }
.is-manual .rail__prog { display: none; }
.rail__nav { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.rail__btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--graphite); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.rail__btn:hover { border-color: var(--accent); color: var(--accent); }
.spot__act .btn--ghost { min-height: 46px; }
@media (max-width: 720px) {
  .plat__head { grid-template-columns: auto 1fr; }
  .plat__link { grid-column: 1 / -1; justify-self: start; }
  .rail { flex-direction: column; padding: 12px; }
  .rail__cards { grid-auto-columns: 78%; }
  .rail__nav { flex-direction: row; justify-content: flex-end; }
}

/* ---------- Tutorial NinjaTrader (V 10.1) ---------- */
.page-hero--tut .crumb a { color: var(--muted); text-decoration: none; }
.page-hero--tut .crumb a:hover { color: var(--accent); }
.page-hero--tut h1 { max-width: 18ch; }
.page-hero--tut .spot__act { margin-top: 26px; position: relative; }
.tut { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 96px); max-width: 980px; }
.tut__before { padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255,255,255,0.02); }
.tut__before > .mono { margin: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.tut__steps { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0 0 0 34px; position: relative; }
.tut__steps::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--liq-mid), var(--line) 85%); }
.tut__step { position: relative; padding-bottom: clamp(32px, 4vw, 48px); }
.tut__dot { position: absolute; left: -34px; top: 4px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.tut__step.is-in .tut__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tut__n { margin: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.tut__step h2 { margin: 6px 0 8px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; font-weight: 600; }
.tut__step > p:not(.tut__n) { margin: 0; color: var(--muted); max-width: 720px; }
.tut__path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.tut__chip { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--graphite); font-size: 12px; color: var(--text); opacity: 0.35; transition: opacity 0.4s, border-color 0.4s, background 0.4s; transition-delay: calc(var(--i) * 260ms + 200ms); }
.tut__step.is-in .tut__chip { opacity: 1; }
.tut__step.is-in .tut__chip:last-child { border-color: var(--accent); background: rgba(90,230,58,0.1); }
.tut__sep { color: var(--dim); }
.tut__act { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tut__sec { margin-top: clamp(24px, 4vw, 40px); }
.tut__boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.tut__box { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.02); }
.tut__box h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.tut__box p { margin: 0; color: var(--muted); font-size: 15px; }
.tut__src { margin: 36px 0 0; font-size: 11px; color: var(--dim); letter-spacing: 0.03em; }
.tut__src a { color: var(--muted); }
.tut__risk { color: var(--dim); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .tut__chip { transition: none; } }
.no-js .tut__chip { opacity: 1; }

/* ==========================================================================
   Calculadoras (V 10.2) — boleta à esquerda, painel de resultado à direita
   ========================================================================== */
.page-hero--calc { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.page-hero--calc .crumb a { color: var(--muted); text-decoration: none; }
.page-hero--calc .crumb a:hover { color: var(--accent); }
.page-hero--calc h1 { max-width: 20ch; font-size: clamp(34px, 5vw, 64px); }

/* barra das calculadoras (troca como quem troca de ativo) */
.cnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(5,6,7,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.cnav__in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.cnav__in::-webkit-scrollbar { display: none; }
.cnav__i { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 10px; border: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.cnav__i .mono { font-size: 10px; color: var(--dim); letter-spacing: 0.07em; }
.cnav__i:hover { color: var(--text); border-color: var(--line-2); }
.cnav__i.is-on { color: var(--text); border-color: var(--accent); background: rgba(90,230,58,0.07); }
.cnav__i.is-on .mono { color: var(--accent); }

.calc { padding-top: 22px; padding-bottom: clamp(48px, 7vw, 96px); }
.calc-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
[data-share].is-copied { border-color: var(--accent); color: var(--accent); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.cpanel { border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, var(--surface), var(--graphite)); padding: 20px; }
.ticket { position: sticky; top: calc(var(--header-h) + 78px); max-height: calc(100vh - var(--header-h) - 96px); overflow-y: auto; scrollbar-width: thin; }
.cpanel__h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cpanel__h .mono { font-size: 10.5px; letter-spacing: 0.08em; color: var(--accent); }
.cpanel__h b { font-size: 17px; font-weight: 600; }
.cpanel__h--sub { margin-top: 20px; }
.cpanel--out { display: flex; flex-direction: column; gap: 16px; background: radial-gradient(90% 60% at 80% 0%, rgba(31,127,209,0.08), transparent 60%), linear-gradient(180deg, var(--surface), var(--graphite)); }

/* campos */
.cf { margin-bottom: 14px; }
.cf > label, .cf__lab { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.cf > label em { font-style: normal; color: var(--dim); font-size: 12px; }
.cf__in { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.cf__in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cf__in input { flex: 1; min-width: 0; height: 44px; padding: 0 10px; border: 0; background: none; color: var(--text); font-family: var(--font-mono); font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.cf__in input:focus { outline: none; }
.cf__u { display: grid; place-items: center; padding: 0 8px 0 2px; font-size: 11px; color: var(--dim); }
.cf__st { flex: 0 0 34px; border: 0; background: rgba(255,255,255,0.03); color: var(--muted); font-size: 17px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.cf__st:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.cf__st:active { background: var(--accent); color: var(--accent-ink); }
.cf__h { margin: 6px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.45; }
.cf__h a { color: var(--muted); }
.cf__note { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.cf__note[hidden] { display: none; }
.cgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cgrid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cgrid2--tight .cf { margin-bottom: 8px; }
.cgrid2--tight .cf > label { display: none; }
.cselect select { width: 100%; height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 14.5px; }
.cselect select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cseg { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); }
.cseg button { flex: 1; min-height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13.5px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.cseg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.cchips { display: flex; flex-wrap: wrap; gap: 6px; }
.cchip { min-width: 52px; min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); font-size: 12px; cursor: pointer; transition: all 0.2s; }
.cchip:hover { color: var(--text); border-color: var(--text); }
.cchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.crange { width: 100%; accent-color: var(--accent); margin-top: 4px; }
.crange__lab { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); }
.cswitch { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.cswitch input { position: absolute; opacity: 0; pointer-events: none; }
.cswitch span { position: relative; flex: 0 0 40px; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); transition: background 0.2s; }
.cswitch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform 0.25s var(--ease), background 0.2s; }
.cswitch input:checked + span { background: rgba(90,230,58,0.2); border-color: var(--accent); }
.cswitch input:checked + span::after { transform: translateX(18px); background: var(--accent); }
.cswitch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* resultados */
.cbig { display: flex; align-items: baseline; gap: 14px; padding: 6px 4px 2px; }
.cbig > .mono { font-size: 11px; letter-spacing: 0.08em; color: var(--dim); writing-mode: vertical-rl; transform: rotate(180deg); }
.cbig__v { font-size: clamp(64px, 9vw, 112px); line-height: 0.9; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; border-radius: 12px; padding: 0 8px; }
.cbig__u { font-size: 18px; color: var(--muted); }
.cstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cstats--4 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.cstats--3 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cs { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--graphite); }
.cs__l { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); }
.cs__v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 6px; align-self: flex-start; padding: 0 4px; margin-left: -4px; }
.cs--big .cs__v { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }
.cs__s { font-size: 11px; color: var(--muted); }
.cbig__v.is-up, .cs__v.is-up { animation: flashUp 0.8s var(--ease); }
.cbig__v.is-down, .cs__v.is-down { animation: flashDown 0.8s var(--ease); }
.calc-msg { margin: 0; font-size: 14px; color: var(--muted); }
.calc-msg:empty { display: none; }
.calc-msg.is-warn { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(242,193,78,0.45); background: rgba(242,193,78,0.07); color: var(--text); }
.calc-msg.is-info { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); }
.calc-ill { margin: 22px 0 18px; font-size: 13.5px; color: var(--dim); max-width: 900px; }

/* gráficos */
.cchart { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 12px 12px 8px; }
.cchart > figcaption, .cchart__h figcaption { font-size: 10.5px; letter-spacing: 0.07em; color: var(--dim); margin-bottom: 6px; }
.cchart__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.cchart__h figcaption { display: flex; flex-direction: column; letter-spacing: 0; margin: 0; }
.cchart__h figcaption b { color: var(--text); font-size: 15px; font-weight: 600; }
.cchart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cleg { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 6px 0 0; font-size: 10.5px; color: var(--dim); }
.cleg i { display: inline-block; width: 16px; height: 2px; margin-right: -8px; vertical-align: middle; }
.k-eq { background: var(--candle-up); } .k-peak { background: rgba(167,139,250,0.8); } .k-base { background: rgba(255,255,255,0.3); }
.k-fi { background: var(--liq-mid); } .k-fe { background: var(--ma-fast); }
.k-pass { background: var(--accent); } .k-dd { background: #e5484d; } .k-to { background: var(--dim); }
.cv-grid { stroke: rgba(255,255,255,0.05); }
.cv-ax { font: 10px var(--font-mono); fill: var(--dim); text-anchor: end; }
.cv-ax--c { text-anchor: middle; }
.cv-base { stroke: rgba(255,255,255,0.28); stroke-dasharray: 3 4; }
.cv-zone--risk { fill: rgba(90,99,106,0.22); }
.cv-zone--gain { fill: rgba(31,127,209,0.12); }
.cv-price { fill: none; stroke: var(--candle-up); stroke-width: 1.6; stroke-linejoin: round; }
.cv-entry, .cv-stop, .cv-target { stroke-width: 1.4; }
line.cv-entry { stroke: var(--candle-up); }
line.cv-stop { stroke: #8a939a; stroke-dasharray: 5 4; }
line.cv-target { stroke: var(--liq-high); stroke-dasharray: 5 4; }
.cv-tag rect { fill: var(--graphite); stroke: var(--line-2); }
.cv-tag text { font: 600 10.5px var(--font-mono); fill: var(--text); }
.cv-tag text.r { text-anchor: end; }
.cv-tag.cv-entry rect { fill: var(--candle-up); } .cv-tag.cv-entry text { fill: var(--bg); }
.cv-tag.cv-target rect { stroke: var(--liq-high); }
.cv-tag.cv-limit rect { stroke: var(--ma-fast); } .cv-tag.cv-limit text { fill: var(--ma-fast); }
.cv-eq { fill: none; stroke: var(--candle-up); stroke-width: 2; stroke-linejoin: round; }
.cv-area { fill: rgba(217,223,220,0.05); }
.cv-peak { fill: none; stroke: rgba(167,139,250,0.55); stroke-width: 1.2; stroke-dasharray: 2 3; }
.cv-last circle { fill: var(--candle-up); }
.cv-last circle { animation: cvPing 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes cvPing { 50% { opacity: 0.35; } }
.cv-bar { transform-box: fill-box; transform-origin: 50% 100%; }
.cv-bar--up { fill: var(--candle-up); opacity: 0.85; }
.cv-bar--dn { fill: var(--candle-down); }
.cv-bar--over { fill: var(--ma-fast); }
.cv-limit { stroke: var(--ma-fast); stroke-dasharray: 5 4; stroke-width: 1.4; }
.cv-daysep { stroke: rgba(255,255,255,0.08); stroke-dasharray: 2 4; }
.cv-bal { fill: none; stroke: var(--candle-up); stroke-width: 2; stroke-linejoin: round; }
.cv-pt { fill: var(--bg); stroke: var(--candle-up); stroke-width: 1.4; }
.cv-fi { fill: none; stroke: var(--liq-mid); stroke-width: 1.8; }
.cv-fe { fill: none; stroke: var(--ma-fast); stroke-width: 1.8; stroke-dasharray: 6 4; }
.cv-viol circle { fill: none; stroke: #e5484d; stroke-width: 2; animation: cvPing 1.2s ease-in-out infinite; }
.cv-viol text { font: 600 9.5px var(--font-mono); fill: #e5484d; text-anchor: middle; }
.cv-mc { fill: none; stroke-width: 1.2; opacity: 0.55; }
.cv-mc--pass { stroke: var(--accent); }
.cv-mc--dd, .cv-mc--daily { stroke: #e5484d; opacity: 0.45; }
.cv-mc--timeout { stroke: var(--dim); }
.cv-mc.cv-draw { transition-delay: calc(var(--i) * 18ms) !important; }

/* risco: cenários */
.cscen > p { margin: 0 0 8px; font-size: 10.5px; letter-spacing: 0.07em; color: var(--dim); }
.cscen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cscen li { display: grid; grid-template-columns: 72px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.cscen i { display: block; height: 10px; width: var(--w); min-width: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--liq-low), var(--liq-mid)); transition: width 0.5s var(--ease); }
.cscen b { text-align: right; color: var(--text); }

/* retorno: log */
.clog summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.clog__bar { display: flex; justify-content: flex-end; margin: 6px 0; }
.clog__wrap { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.clog table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.clog th, .clog td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.clog th { position: sticky; top: 0; background: var(--graphite); color: var(--dim); font-weight: 500; }
.clog tr.w td:nth-child(2) { color: var(--text); }
.clog tr.l td:nth-child(2) { color: var(--dim); }

/* consistência */
.c-status { display: grid; grid-template-columns: minmax(200px, 0.6fr) 1fr; gap: 20px; align-items: center; padding: 18px 20px; margin-bottom: 18px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, var(--surface), var(--graphite)); transition: border-color 0.3s; }
.c-status b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.c-status span { font-size: 13px; color: var(--muted); }
.c-status.is-ok { border-color: var(--accent); }
.c-status.is-ok b { color: var(--accent); }
.c-status.is-bad { border-color: rgba(242,193,78,0.7); }
.c-status.is-bad b { color: var(--ma-fast); }
.c-bar { position: relative; height: 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow: visible; }
.c-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: 999px; background: linear-gradient(90deg, var(--liq-mid), var(--candle-up)); transition: width 0.6s var(--ease); }
.c-status.is-bad .c-bar i { background: linear-gradient(90deg, var(--liq-mid), var(--ma-fast)); }
.c-bar::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: var(--l, 30%); width: 2px; background: var(--ma-fast); }
.c-bar span { position: absolute; top: -22px; left: var(--l, 30%); transform: translateX(-50%); font-size: 10px; color: var(--ma-fast); }
.c-days, .d-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.c-days li { display: grid; grid-template-columns: 1fr 34px; gap: 6px; }
.c-days label { display: grid; grid-template-columns: 64px 1fr; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.c-days label .mono { padding-left: 10px; font-size: 11px; color: var(--dim); }
.c-days input, .d-steps input { height: 38px; border: 0; background: none; color: var(--text); font-family: var(--font-mono); font-size: 14px; text-align: right; padding: 0 10px; min-width: 0; width: 100%; }
.c-days label:focus-within, .d-steps label:focus-within { border-color: var(--accent); }
.c-days input:focus, .d-steps input:focus { outline: none; }
.c-del { border: 1px solid var(--line-2); border-radius: 10px; background: none; color: var(--dim); font-size: 18px; cursor: pointer; }
.c-del:hover { color: var(--text); border-color: var(--text); }
#c-pastebox { display: grid; gap: 8px; margin-top: 8px; }
#c-pastebox[hidden] { display: none; }
#c-pastebox textarea { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-family: var(--font-mono); font-size: 13px; resize: vertical; }

/* drawdown */
.d-steps li { display: grid; grid-template-columns: 64px 1fr 92px 34px; gap: 6px; align-items: center; }
.d-steps label { border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); }
.d-day input { text-align: center; }
.d-bal { font-size: 12px; color: var(--muted); text-align: right; }
.d-flag { display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); align-self: flex-start; }
.d-flag.is-ok { color: var(--accent); border-color: rgba(90,230,58,0.5); }
.d-flag.is-bad { color: #ff8b8f; border-color: rgba(229,72,77,0.6); background: rgba(229,72,77,0.08); }
.cs--fi .cs__v { color: var(--liq-high); }
.cs--fe .cs__v { color: var(--ma-fast); }
.cexp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cexp > div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.cexp h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.cexp p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* desafio */
.sgauge { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; }
.sgauge__ring { --p: 0; position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 360deg), rgba(255,255,255,0.06) 0); transition: --p 0.8s; }
.sgauge__ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--graphite); border: 1px solid var(--line); }
.sgauge__ring > * { position: relative; }
.sgauge__ring b { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.sgauge__ring .mono { font-size: 10.5px; letter-spacing: 0.08em; color: var(--dim); }
#s-run.is-busy { opacity: 0.7; pointer-events: none; }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

@media (max-width: 1020px) {
  .calc-grid { grid-template-columns: 1fr; }
  .ticket { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .cgrid3 { grid-template-columns: 1fr 1fr; }
  .sgauge { grid-template-columns: 1fr; justify-items: center; }
  .sgauge__ring { width: 200px; }
  .c-status { grid-template-columns: 1fr; }
  .cexp { grid-template-columns: 1fr; }
  .d-steps li { grid-template-columns: 54px 1fr 74px 30px; }
  .cbig__v { font-size: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-last circle, .cv-viol circle { animation: none; }
  .cbig__v.is-up, .cbig__v.is-down, .cs__v.is-up, .cs__v.is-down { animation: none; }
  .sgauge__ring { transition: none; }
}
.gl-l--slow { stroke: var(--liq-mid); stroke-width: 1.3; }
.gl-l--dim { stroke: var(--dim); opacity: 0.7; }
.cgrid2 > *, .cgrid3 > * { min-width: 0; }
.cf > label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs__v { white-space: nowrap; }
.cstats--4 .cs--big .cs__v { font-size: clamp(17px, 1.5vw, 21px); }
.cstats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .cstats--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .cgrid2, .cgrid3 { grid-template-columns: 1fr; }
  .cgrid2--tight { grid-template-columns: 1fr 1fr; }
  .cgrid2--tight .cf__st { flex-basis: 28px; }
  .calc-tools { justify-content: stretch; } .calc-tools .btn { flex: 1; justify-content: center; }
}

/* ---------- Padrões harmônicos (V 10.7) ---------- */
.hlab-wrap { padding-top: 26px; padding-bottom: clamp(48px, 7vw, 96px); }
.hlab { border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(180deg, var(--surface), var(--graphite)); overflow: hidden; }
.hlab__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); background: rgba(5,6,7,0.35); }
.hrail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.hrail::-webkit-scrollbar { display: none; }
.hrail__b { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); font-size: 14px; cursor: pointer; transition: all 0.2s; }
.hrail__b:hover { color: var(--text); border-color: var(--text); }
.hrail__b[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: rgba(90,230,58,0.08); box-shadow: 0 0 0 3px var(--accent-soft); }
.hdir { min-width: 240px; }
.hlab__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; }
.hlab__chart { margin: 0; padding: 0; border-right: 1px solid var(--line); background: var(--bg); }
.hlab__chart .live__bar b { color: var(--text); font-weight: 600; }
.hlab__chart svg { display: block; width: 100%; height: auto; }
.hlab__chart figcaption { padding: 8px 14px 10px; font-size: 10.5px; color: var(--dim); border-top: 1px solid var(--line); }
.hlab__info { padding: clamp(18px, 2.5vw, 30px); }
.hlab__info h2 { margin: 10px 0 16px; font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; }
.hlab__info.is-swap > * { animation: spotUp 0.5s var(--ease) both; }
.hlab__info.is-swap > *:nth-child(2) { animation-delay: 0.05s; } .hlab__info.is-swap > *:nth-child(3) { animation-delay: 0.1s; } .hlab__info.is-swap > *:nth-child(4) { animation-delay: 0.15s; }
.hlab__dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hlab__dl div { padding: 12px 14px; background: var(--graphite); }
.hlab__dl dt { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); font-family: var(--font-mono); }
.hlab__dl dd { margin: 4px 0 0; font-size: 16px; color: var(--text); }
.hlab__tg { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.hlab__tg .mono { margin: 0 0 4px; font-size: 10.5px; letter-spacing: 0.07em; color: var(--dim); }
.hlab__tg p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.htag { display: inline-block; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.htag--bullish { color: var(--liq-high); border-color: rgba(99,217,255,0.5); }
.htag--bearish { color: var(--ma-slow); border-color: rgba(167,139,250,0.5); }

/* desenho */
.hg { stroke: rgba(255,255,255,0.05); }
.hleg { stroke: var(--candle-up); stroke-width: 2.6; stroke-linecap: round; }
.hmini .hleg { stroke-width: 2; }
.hc { stroke: rgba(255,255,255,0.32); stroke-width: 1.2; stroke-dasharray: 0.02 0.015; }
.hr rect { fill: var(--graphite); stroke: var(--line-2); }
.hr text { font: 600 11px var(--font-mono); fill: var(--ma-fast); text-anchor: middle; }
.hp circle { fill: var(--bg); stroke: var(--candle-up); stroke-width: 2; }
.hp--d circle { fill: var(--accent); stroke: var(--accent); }
.hp text { font: 600 14px var(--font-sans); fill: var(--text); text-anchor: middle; }
.hmini .hp text { font-size: 10px; fill: var(--muted); }
.hprz { fill: rgba(90,230,58,0.1); stroke: rgba(90,230,58,0.45); stroke-dasharray: 4 3; }
.hprz__t { font: 600 10px var(--font-mono); fill: var(--accent); letter-spacing: 0.08em; }
.ht line { stroke: var(--liq-high); stroke-dasharray: 5 4; opacity: 0.7; }
.ht text { font: 600 10.5px var(--font-mono); fill: var(--liq-high); text-anchor: end; }
.hreact { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
/* animação de formação */
.is-anim .hleg, .is-anim .hreact { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.45s cubic-bezier(.4,.1,.3,1) var(--d, 0s) forwards; }
.is-anim .hreact { animation-duration: 1.2s; }
.is-anim .hc { opacity: 0; animation: hfade 0.4s ease var(--d, 0s) forwards; }
.is-anim .hp, .is-anim .hr, .is-anim .ht, .is-anim .hprz, .is-anim .hprz__t { opacity: 0; animation: hpop 0.35s var(--ease) var(--d, 0s) forwards; transform-box: fill-box; transform-origin: center; }
.is-anim .hprz { animation: hpop 0.35s var(--ease) var(--d, 0s) forwards, hpulse 2.4s ease-in-out calc(var(--d, 0s) + 0.4s) infinite; }
.is-anim .hprz__t { animation-delay: calc(var(--d, 0s) + 2.2s); }
@keyframes hfade { to { opacity: 1; } }
@keyframes hpop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes hpulse { 50% { fill-opacity: 0.45; } }
.is-paused .is-anim .hprz { animation-play-state: paused; }

/* catálogo */
.hcat { margin-top: clamp(40px, 6vw, 72px); }
.hfilters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hfilters .tnav__search { flex: 1 1 260px; }
.hfilters .cseg { flex: 0 0 auto; }
.hfilters .cseg button { padding: 0 14px; }
.hmeas { margin-top: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; }
.hmeas summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.hmeas .cgrid3 { margin-top: 10px; }
.hbar { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; }
.hbar .mono { margin: 0; font-size: 12px; color: var(--dim); }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.hcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, var(--surface), var(--graphite)); transition: border-color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s; }
.hcard[hidden] { display: none; }
.hcard:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.hmini { display: block; width: 100%; height: auto; background: var(--bg); border-bottom: 1px solid var(--line); }
.hcard__b { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.hcard__b h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.hcard__tags { margin: 0; }
.hratios { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 11.5px; }
.hratios div { display: flex; gap: 6px; }
.hratios dt { color: var(--dim); min-width: 22px; }
.hratios dd { margin: 0; color: var(--text); }
.hcard__b .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1020px) {
  .hlab__body { grid-template-columns: 1fr; }
  .hlab__chart { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hlab__top { flex-direction: column; align-items: stretch; }
  .hdir { min-width: 0; }
  .hfilters .cseg { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .is-anim .hleg, .is-anim .hreact, .is-anim .hc, .is-anim .hp, .is-anim .hr, .is-anim .ht, .is-anim .hprz, .is-anim .hprz__t { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .hlab__info.is-swap > * { animation: none; }
}
.hratios { grid-template-columns: 1fr; gap: 3px; }
.hratios div { justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 3px; }

/* ==========================================================================
   Sobre — página imersiva (R030 · V 11.2)
   Trilho de níveis, hero com liquidez e mira, citação acesa pela rolagem,
   replay da trajetória, circuito pergunta → código → rotina, escada de
   pilares e personagem no contato. ".ab-still" = movimento pausado.
   ========================================================================== */
.page-about { overflow-x: clip; }
.page-about .section + .section, .ab-replay + .section { border-top: 1px solid var(--line); }

/* progresso, trilho e pausa */
.ab-progress { position: fixed; left: 0; right: 0; top: var(--header-h); height: 2px; z-index: 48; pointer-events: none; }
.ab-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.7)); }
.ab-rail { position: fixed; right: clamp(8px, 1.4vw, 22px); top: 50%; transform: translateY(-50%); z-index: 40; display: none; }
@media (min-width: 1180px) { .ab-rail { display: block; } }
.ab-rail ol { position: relative; list-style: none; margin: 0; padding: 6px 0; display: grid; gap: 2px; }
.ab-rail ol::before { content: ""; position: absolute; right: 9px; top: 16px; bottom: 16px; width: 1px; background: var(--line-2); }
.ab-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 7px 2px; text-decoration: none; color: var(--muted); }
.ab-rail a span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; background: rgba(10,12,14,0.9); border: 1px solid var(--line);
  opacity: 0; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s var(--ease); pointer-events: none;
}
.ab-rail a i { position: relative; width: 19px; height: 19px; display: grid; place-items: center; }
.ab-rail a i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--dim); transition: background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.ab-rail a:hover span, .ab-rail a:focus-visible span { opacity: 1; transform: none; }
.ab-rail a:hover i::before, .ab-rail a:focus-visible i::before { border-color: var(--accent); }
.ab-rail a[aria-current="true"] i::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent-glow); }

.ab-pause {
  position: fixed; left: clamp(10px, 1.6vw, 22px); bottom: clamp(10px, 1.6vw, 22px); z-index: 45;
  display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10,12,14,0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--muted); cursor: pointer; font-size: 10.5px; transition: color 0.2s, border-color 0.2s;
}
.ab-pause:hover { color: var(--text); border-color: var(--accent); }
.ab-pause__ico { position: relative; width: 10px; height: 10px; }
.ab-pause__ico::before, .ab-pause__ico::after { content: ""; position: absolute; top: 0; width: 3px; height: 10px; background: currentColor; border-radius: 1px; }
.ab-pause__ico::before { left: 1px; } .ab-pause__ico::after { right: 1px; }
.ab-pause[aria-pressed="true"] { color: var(--accent); border-color: rgba(90,230,58,0.5); }
.ab-pause[aria-pressed="true"] .ab-pause__ico::before { left: 1px; width: 0; height: 0; background: none; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor; }
.ab-pause[aria-pressed="true"] .ab-pause__ico::after { display: none; }
@media (min-width: 1180px) {
  .ab-pause { left: auto; bottom: auto; right: clamp(8px, 1.4vw, 22px); top: calc(50% + 130px); width: 23px; height: 23px; padding: 0; justify-content: center; border-radius: 50%; }
  .ab-pause .ab-pause__ico { transform: scale(0.8); }
  .ab-pause span[data-l] {
    position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
    padding: 3px 8px; border-radius: 6px; background: rgba(10,12,14,0.9); border: 1px solid var(--line); color: var(--text); transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .ab-pause:hover span[data-l], .ab-pause:focus-visible span[data-l] { opacity: 1; transform: translate(0, -50%); }
}

/* hero */
.ab-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 90% at 82% 18%, rgba(90,230,58,0.06), transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg));
}
.ab-hero__heat {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.6;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, rgba(0,0,0,0.35) 42%, #000 78%);
  mask-image: linear-gradient(90deg, transparent 8%, rgba(0,0,0,0.35) 42%, #000 78%);
}
.ab-hero__grid {
  position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(28px, 5vh, 64px); padding-bottom: clamp(28px, 5vh, 56px);
}
.ab-hero .crumb { margin: 0; color: var(--dim); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ab-hero .crumb b { color: var(--accent); font-weight: 600; }
.ab-hero h1 { margin: 18px 0 20px; font-size: clamp(42px, min(6.4vw, 10.5vh), 92px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 600; max-width: 12ch; }
.ab-dec i { font-style: normal; font-family: var(--font-mono); font-weight: 400; color: var(--dim); }
.ab-hero .lead { margin: 0; max-width: 560px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.ab-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.6vh, 32px); }
.ab-hero__cta .btn--primary .arrow { display: inline-block; }
.ab-hero__cta .btn--primary:hover .arrow { transform: translateY(3px); }
.ab-hero__path { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(20px, 3.6vh, 32px) 0 0; padding: 0; color: var(--dim); }
.ab-hero__path li { display: flex; align-items: center; gap: 10px; }
.ab-hero__path li + li::before { content: "→"; }
.ab-hero__path li:last-child { color: var(--text); }

.ab-window {
  position: relative; margin: 0; width: 100%; max-width: min(560px, calc((100svh - var(--header-h) - 150px)));
  justify-self: end; border-radius: 20px; border: 1px solid var(--line-2); background: var(--graphite); overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.02) inset;
  transform: perspective(1300px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease);
}
.ab-window { container-type: inline-size; }
@container (max-width: 470px) { .ab-live { display: none; } }
@container (max-width: 330px) { .ab-window__note { display: none; } }
.ab-window__bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10.5px; background: rgba(5,6,7,0.6); white-space: nowrap; overflow: hidden; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); }
.ab-window__note { color: var(--dim); }
.ab-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--dim); }
.ab-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--text); animation: abBlink 1.8s ease-in-out infinite; }
.ab-window__view { position: relative; aspect-ratio: 1 / 1; overflow: hidden; cursor: crosshair; }
.ab-window__view img { width: 100%; height: 100%; object-fit: cover; animation: abReveal 1.3s 0.15s var(--ease) both; }
.ab-window__view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(5,6,7,0.7)); pointer-events: none; }
.ab-window__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent); box-shadow: 0 0 18px rgba(99,217,255,0.6); opacity: 0; animation: abScanOnce 1.3s 0.15s var(--ease) both; pointer-events: none; }
.ab-axis { position: absolute; right: 0; top: 0; bottom: 0; z-index: 2; width: 70px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 10px; color: rgba(255,255,255,0.55); font-size: 10px; letter-spacing: 0.02em; text-align: right; background: linear-gradient(90deg, transparent, rgba(5,6,7,0.55)); pointer-events: none; }
.ab-xh { position: absolute; inset: 0; z-index: 3; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.ab-window__view.is-xh .ab-xh { opacity: 1; }
.ab-xh__v { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); border-left: 1px dashed rgba(255,255,255,0.6); }
.ab-xh__h { position: absolute; left: 0; right: 0; top: var(--y, 50%); border-top: 1px dashed rgba(255,255,255,0.6); }
.ab-xh__py { position: absolute; right: 4px; top: var(--y, 50%); transform: translateY(-50%); background: var(--text); color: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 10.5px; letter-spacing: 0.02em; }
.ab-xh__tx { position: absolute; bottom: 6px; left: var(--x, 50%); transform: translateX(-50%); background: var(--surface-2); color: var(--text); padding: 2px 6px; border-radius: 4px; font-size: 10.5px; letter-spacing: 0.02em; }
.ab-window figcaption { position: absolute; left: 14px; bottom: 14px; z-index: 4; padding: 6px 10px; border-radius: 8px; background: rgba(5,6,7,0.78); color: var(--muted); }

.ab-tape { position: relative; border-top: 1px solid var(--line); overflow: hidden; background: rgba(5,6,7,0.7); }
.ab-tape__track { display: flex; width: max-content; animation: abTape 52s linear infinite; }
.ab-tape ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ab-tape li { display: flex; align-items: center; gap: 10px; padding: 13px 26px; border-right: 1px solid var(--line); white-space: nowrap; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.ab-tape li b { color: var(--text); font-weight: 500; }
.ab-tape li span { font-size: 9px; }

/* história */
.ab-story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ab-story__aside { position: sticky; top: calc(var(--header-h) + 36px); }
.ab-story__aside .section-head { margin-bottom: 28px; }
.ab-quote { margin: 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; }
.ab-quote .w { color: rgba(255,255,255,0.16); transition: color 0.35s; }
.ab-quote .w.is-lit { color: var(--text); }
.ab-story__prose { padding-top: 6px; }
.ab-story__prose p { font-size: 18px; }
.ab-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ab-stat { position: relative; background: var(--bg); padding: 26px 26px 22px; }
.ab-stat__v { display: flex; align-items: baseline; gap: 8px; min-height: 56px; font-family: var(--font-mono); font-size: clamp(38px, 4.2vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.ab-stat__v em { font-style: normal; color: var(--muted); font-size: 0.7em; }
.ab-stat__v small { font-family: var(--font-sans); font-size: 18px; letter-spacing: -0.01em; color: var(--muted); font-weight: 500; }
.ab-stat > .mono { display: block; margin-top: 14px; color: var(--dim); }
.ab-inf { width: 1.9em; height: 0.95em; overflow: visible; }
.ab-inf path { fill: none; stroke-width: 4; stroke-linecap: round; }
.ab-inf__base { stroke: rgba(255,255,255,0.14); }
.ab-inf__run { stroke: var(--text); stroke-dasharray: 26 74; animation: abInf 3.2s linear infinite; }

/* replay — por padrão estático (sem JS ou com movimento reduzido) */
.ab-replay { position: relative; border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0; }
.ab-replay__head .section-head { margin-bottom: clamp(14px, 2.4vh, 26px); }
.ab-replay__frame { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, var(--graphite), var(--bg-2)); overflow: hidden; }
.ab-replay__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.ab-rec { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.ab-rec i { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--text); }
.ab-replay__chapters { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-replay__chapters button {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ab-replay__chapters button:hover { color: var(--text); border-color: var(--accent); }
.ab-replay__chapters button[aria-current="step"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ab-replay__track { margin-left: auto; width: clamp(80px, 14vw, 200px); height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.ab-replay__track i { display: block; height: 100%; background: var(--text); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.ab-replay__body { display: grid; grid-template-columns: 1fr; }
.ab-replay__chart { position: relative; height: clamp(300px, 52vh, 520px); }
.ab-replay__chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-replay__note { position: absolute; left: 12px; right: 76px; bottom: 6px; color: var(--dim); font-size: 9.5px; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-card { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.ab-chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.ab-chapters li { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; border-left: 1px solid var(--line); transition: background 0.3s; }
.ab-chapters li:first-child { border-left: 0; }
.ab-chapters li.is-on { background: rgba(255,255,255,0.03); }
.ab-chapters .mono { color: var(--dim); }
.ab-chapters li.is-on .mono:first-child { color: var(--text); }
.ab-chapters h3 { margin: 0; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.025em; line-height: 1.05; font-weight: 600; }
.ab-chapters p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ab-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 10.5px; }
.ab-chip i { position: relative; width: 6px; height: 14px; }
.ab-chip i::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--candle-up); }
.ab-chip i::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; bottom: 3px; border: 1px solid var(--candle-up); border-radius: 1px; background: var(--bg-2); }
.ab-card__sweep { display: none; }

/* replay ao vivo: a rolagem avança o tempo */
.ab-replay--live { height: 470vh; padding: 0; }
.ab-replay--live .ab-replay__sticky {
  position: sticky; top: var(--header-h); display: flex; flex-direction: column; overflow: hidden;
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); padding: clamp(16px, 3.4vh, 40px) 0 clamp(14px, 3vh, 32px);
}
.ab-replay--live .ab-replay__head .section-head h2 { font-size: clamp(26px, min(3.4vw, 5vh), 42px); }
.ab-replay--live .ab-replay__head .section-head p { margin-top: 6px; }
.ab-replay--live .ab-replay__wrap { flex: 1; min-height: 0; display: flex; }
.ab-replay--live .ab-replay__frame { flex: 1; min-height: 0; }
.ab-replay--live .ab-replay__body { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 360px); }
.ab-replay--live .ab-replay__chart { height: auto; min-height: 0; }
.ab-replay--live .ab-card { border-top: 0; border-left: 1px solid var(--line); }
.ab-replay--live .ab-chapters { display: block; position: absolute; inset: 0; }
.ab-replay--live .ab-chapters li {
  position: absolute; inset: 0; justify-content: center; gap: 12px; border-left: 0; padding: clamp(18px, 3vh, 32px) clamp(20px, 2vw, 28px);
  opacity: 0; transform: translateY(28px); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); pointer-events: none; background: none;
}
.ab-replay--live .ab-chapters li.is-before { transform: translateY(-28px); }
.ab-replay--live .ab-chapters li.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ab-replay--live .ab-chapters h3 { font-size: clamp(28px, min(2.6vw, 4.6vh), 40px); }
.ab-replay--live .ab-chapters p { font-size: clamp(15px, 1.15vw, 17px); }
.ab-replay--live .ab-card__sweep { display: block; position: absolute; left: 0; right: 0; top: 100%; height: 1px; z-index: 2; border-top: 1px dashed rgba(255,255,255,0.7); opacity: 0; pointer-events: none; }
.ab-card__sweep.is-go { animation: abSweep 0.7s var(--ease); }
.ab-card__sweep.is-go.is-down { animation-name: abSweepDown; }

/* conexões */
.ab-board__nodes { position: relative; }
.ab-traces { position: absolute; left: 0; top: 0; width: 100%; height: 84px; pointer-events: none; }
.ab-traces path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ab-traces path.dim { stroke: rgba(255,255,255,0.06); }
.ab-traces .sig { stroke: var(--liq-high); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 12 88; opacity: 0; transition: opacity 0.4s; animation: abSig 2.4s linear infinite; filter: drop-shadow(0 0 4px rgba(99,217,255,0.8)); }
.ab-traces .sig.is-hot { opacity: 1; }
.ab-board__tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
.ab-node { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 8px 6px; border: 0; background: none; color: var(--muted); cursor: pointer; text-align: center; border-radius: 12px; }
.ab-node__hex { position: relative; width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 8px; }
.ab-node__hex .hex { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ab-node__hex polygon { fill: var(--graphite); stroke: var(--line-2); stroke-width: 1.5; transition: stroke 0.25s, fill 0.25s; }
.ab-node__hex .ico { position: relative; width: 30px; height: 30px; color: var(--muted); transition: color 0.25s; }
.ab-node b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.ab-node .mono { color: var(--dim); }
.ab-node:hover polygon { stroke: var(--accent); }
.ab-node[aria-selected="true"] .hex { filter: drop-shadow(0 0 14px var(--accent-glow)); }
.ab-node[aria-selected="true"] polygon { stroke: var(--accent); fill: rgba(90,230,58,0.08); }
.ab-node[aria-selected="true"] .ico { color: var(--accent); }
.ab-node[aria-selected="true"] .mono { color: var(--accent); }
.ab-term { margin: 30px auto 0; max-width: 860px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: #07090a; box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9); }
.ab-term__bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 10.5px; }
.ab-term__panel { padding: 22px 24px 24px; }
.ab-term__panel + .ab-term__panel { border-top: 1px solid var(--line); }
.ab-board.is-live .ab-term__panel + .ab-term__panel { border-top: 0; }
.ab-term__d { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.ab-term pre { margin: 0; min-height: 8.8em; font-family: var(--font-mono); font-size: 14px; line-height: 1.75; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.ab-term .ln { display: block; width: fit-content; max-width: 100%; }
.ab-term .ln.p { color: var(--muted); }
.ab-term .ln.c { color: var(--dim); }
.ab-board.is-live .ln { clip-path: inset(0 100% 0 0); }
.ab-board.is-live .ln.is-shown { clip-path: inset(0 0 0 0); transition: clip-path 0.42s steps(24, end); }
.ab-board.is-live .ln.is-caret::after { content: ""; display: inline-block; width: 0.55em; height: 1.05em; margin-left: 4px; vertical-align: -0.18em; background: var(--text); animation: abCaret 1s steps(1) infinite; }
.ab-term__go { margin-top: 18px; }
.ab-board.is-live .ab-term__go { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.ab-board.is-live .ab-term__go.is-shown { opacity: 1; transform: none; }

/* pilares: escada de preços */
.ab-ladder { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.ab-ladder ul { list-style: none; margin: 0; padding: 0; }
.ab-ladder li { position: relative; display: grid; grid-template-columns: 150px minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 24px; align-items: center; padding: 22px 26px; border-top: 1px solid var(--line); transition: background 0.25s; }
.ab-ladder li:first-child { border-top: 0; }
.ab-ladder li::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,127,209,0), rgba(31,127,209,0.14) 55%, rgba(99,217,255,0.26)); opacity: 0; pointer-events: none; animation: abHeat 7.2s linear infinite; animation-delay: calc(var(--i) * 1.2s + 0.35s); }
.ab-ladder li > * { position: relative; }
.ab-ladder__sym { color: var(--dim); }
.ab-ladder h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ab-ladder p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ab-ladder li:hover { background: rgba(255,255,255,0.025); }
.ab-ladder li:hover .ab-ladder__sym { color: var(--text); }
.ab-ladder__scan { position: absolute; left: 0; right: 0; top: 0; z-index: 2; border-top: 1px dashed rgba(255,255,255,0.3); pointer-events: none; animation: abLadder 7.2s linear infinite; }

/* contato */
.ab-ct__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.ab-guide { position: relative; height: 330px; }
.ab-guide::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 70%; height: 16px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(90,230,58,0.22), transparent); }
.ab-guide__sprite { position: absolute; left: 50%; bottom: 4px; z-index: 1; height: 260px; aspect-ratio: 192 / 208; transform: translateX(-50%); background: url(../assets/v7/personagem-sprite.webp) 0 0 / 800% 700% no-repeat; }
.ab-guide__bubble { position: absolute; left: 50%; top: 0; z-index: 2; margin: 0; width: max-content; max-width: 230px; transform: translateX(-50%); padding: 10px 14px; border-radius: 12px 12px 12px 2px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 15px; line-height: 1.3; }
.ab-ct .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-ct .card { overflow: hidden; }
.ab-ct .card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(90,230,58,0.12), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.ab-ct .card:hover::before { opacity: 1; }
.ab-ct .card:hover, .ab-ct .card:focus-visible { border-color: rgba(90,230,58,0.45); transform: translateY(-3px); }
.ab-ct .card:hover .go { color: var(--accent); }

/* animações */
@keyframes abBlink { 50% { opacity: 0.25; } }
@keyframes abCaret { 50% { opacity: 0; } }
@keyframes abReveal { from { clip-path: inset(0 0 100% 0); filter: brightness(1.6) saturate(0.4); } to { clip-path: inset(0 0 0 0); filter: none; } }
@keyframes abScanOnce { 0% { top: 0; opacity: 1; } 92% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes abTape { to { transform: translateX(-50%); } }
@keyframes abInf { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes abSig { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes abHeat { 0% { opacity: 0; } 3% { opacity: 1; } 15% { opacity: 0; } 100% { opacity: 0; } }
@keyframes abLadder { from { top: 0; } to { top: 100%; } }
@keyframes abSweep { 0% { top: 100%; opacity: 1; } 100% { top: 0; opacity: 0; } }
@keyframes abSweepDown { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }

.ab-still .ab-tape__track, .ab-still .ab-inf__run, .ab-still .ab-traces .sig, .ab-still .ab-ladder li::before,
.ab-still .ab-live i, .ab-still .ab-ln::after { animation-play-state: paused; }
.ab-still .ab-ladder__scan { display: none; }
.ab-still .ab-ladder li::before { animation: none; }

/* responsivo */
@media (max-width: 1100px) {
  .ab-ladder li { grid-template-columns: 120px minmax(0, 1fr); }
  .ab-ladder li p { grid-column: 2; }
}
@media (max-width: 960px) {
  .ab-hero { min-height: 0; }
  .ab-hero__grid { grid-template-columns: 1fr; }
  .ab-window { justify-self: center; max-width: 520px; }
  .ab-story__grid { grid-template-columns: 1fr; }
  .ab-story__aside { position: static; }
  .ab-chapters { grid-template-columns: 1fr 1fr; }
  .ab-chapters li:nth-child(3) { border-left: 0; }
  .ab-chapters li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ab-replay--live .ab-replay__body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .ab-replay--live .ab-card { border-left: 0; border-top: 1px solid var(--line); height: clamp(190px, 30svh, 240px); }
  .ab-replay--live .ab-chapters li { justify-content: flex-start; gap: 6px; padding: 16px 18px; }
  .ab-replay--live .ab-chapters h3 { font-size: 24px; }
  .ab-replay--live .ab-chapters p { font-size: 14.5px; }
  .ab-ct__grid { grid-template-columns: 1fr; }
  .ab-guide { height: 260px; max-width: 300px; width: 100%; margin: 0 auto; }
  .ab-guide__sprite { height: 200px; }
}
@media (max-width: 640px) {
  .ab-window__note, .ab-live { display: none; }
  .ab-stats { grid-template-columns: 1fr; }
  .ab-replay--live { height: 420vh; }
  .ab-replay--live .ab-replay__head .section-head p { display: none; }
  .ab-replay__track { display: none; }
  .ab-replay__chapters button { padding: 0 10px; font-size: 10px; }
  .ab-chapters { grid-template-columns: 1fr; }
  .ab-chapters li { border-left: 0; border-top: 1px solid var(--line); }
  .ab-chapters li:first-child { border-top: 0; }
  .ab-traces { display: none; }
  .ab-node__hex { width: 62px; height: 62px; }
  .ab-node__hex .ico { width: 24px; height: 24px; }
  .ab-node b { font-size: 16px; }
  .ab-node .mono { font-size: 10px; }
  .ab-term__panel { padding: 18px 16px 20px; }
  .ab-term pre { font-size: 12.5px; min-height: 10.5em; }
  .ab-ladder li { grid-template-columns: 1fr; gap: 6px; padding: 18px 18px; }
  .ab-ladder li p { grid-column: auto; }
  .ab-ct .contact { grid-template-columns: 1fr; }
  .ab-pause span[data-l] { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ab-pause { width: 38px; height: 38px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-window { transform: none; }
  .ab-window__view img, .ab-window__scan, .ab-tape__track, .ab-inf__run, .ab-traces .sig, .ab-ladder li::before, .ab-ladder__scan, .ab-live i { animation: none; }
  .ab-window__scan, .ab-ladder__scan { display: none; }
  .ab-traces .sig.is-hot { opacity: 0.6; stroke-dasharray: none; }
  .ab-quote .w { color: var(--text); }
}

/* Análise do Mercado — placa "Em desenvolvimento" sobre o dashboard reservado (V 11.3) */
.reserved__area { position: relative; }
.reserved__area .slots { opacity: 0.55; }
.plate {
  position: absolute; left: 50%; top: calc(50% + 14px); z-index: 1; margin: 0;
  transform: translate(-50%, -50%) rotate(-2deg);
  padding: 6px; border-radius: 12px;
  background: repeating-linear-gradient(-45deg, var(--ma-fast) 0 14px, #15181b 14px 28px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.9), 0 0 0 1px rgba(242,193,78,0.35);
}
.plate__in {
  display: block; padding: 14px clamp(18px, 3vw, 34px); border-radius: 8px;
  background: var(--bg); border: 1px solid rgba(242,193,78,0.5);
  color: var(--text); font-size: clamp(13px, 1.6vw, 18px); font-weight: 600; letter-spacing: 0.14em; white-space: nowrap;
}
.plate__in::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 12px; vertical-align: 0.1em; border-radius: 50%; background: var(--ma-fast); }
@media (max-width: 640px) { .plate { top: calc(50% + 4px); } }

/* ==========================================================================
   Mercado — calendário, notícias e mapa de calor (R032 · V 11.4)
   ========================================================================== */
.page-hero--mkt { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.page-hero--mkt .page-hero__chart { opacity: 0.32; }
.page-hero .crumb a { color: var(--muted); text-decoration: none; }
.page-hero .crumb a:hover { color: var(--accent); }
.mkt-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 5vw, 64px); align-items: end; }
.mkt-hero h1 { max-width: 16ch; }

.mkt-clock { padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(10,12,14,0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mkt-clock__h { margin: 0 0 10px; color: var(--dim); }
.mkt-clock__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.mkt-clock__row:first-of-type { border-top: 0; }
.mkt-clock__row small { color: var(--dim); font-size: 10px; }
.mkt-clock__row b { font-weight: 500; font-size: 15px; color: var(--text); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.mkt-clock__row.is-main b { font-size: 24px; letter-spacing: -0.01em; }
.mkt-clock__st { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); cursor: help; }
.mkt-clock__st i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.mkt-clock__st[data-state="open"] i { background: var(--text); box-shadow: 0 0 0 4px rgba(255,255,255,0.08); animation: abBlink 1.8s ease-in-out infinite; }
.mkt-clock__st[data-state="pre"] i, .mkt-clock__st[data-state="post"] i { background: var(--ma-fast); }

.mkt { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(40px, 6vw, 72px); }
.mkt-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-bottom: 16px; }
.mkt-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.mkt-seg__l { color: var(--dim); }
.mkt-seg__b { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--graphite); }
.mkt-seg__b button { min-height: 32px; padding: 0 13px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: color 0.2s, background 0.2s; }
.mkt-seg__b button:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.mkt-seg__b button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.mkt-fixed { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--text); }
.mkt-fixed i { width: 14px; height: 10px; border-radius: 2px; background:
  linear-gradient(#3c5aa6 0 0) 0 0 / 45% 54% no-repeat,
  repeating-linear-gradient(180deg, #e8e8e8 0 1.43px, #b8323a 1.43px 2.86px); }
.mkt-hint { margin: 0; color: var(--dim); }

.mkt-frame { scroll-margin-top: calc(var(--header-h) + 84px); position: relative; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: #0a0c0e; box-shadow: 0 40px 100px -50px rgba(0,0,0,0.9); }
.mkt-frame__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-height: 44px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); background: var(--graphite); color: var(--muted); font-size: 10.5px; }
.mkt-frame__t { color: var(--text); }
.mkt-frame__live { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); }
.mkt-frame__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--text); animation: abBlink 1.8s ease-in-out infinite; }
.mkt-frame__act { margin-left: auto; display: flex; gap: 6px; }
.mkt-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.mkt-btn:hover { color: var(--accent); border-color: var(--accent); }
.mkt-frame__body { position: relative; }
.mkt-frame__body iframe { display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.5s var(--ease); }
.mkt-frame__body.is-ready iframe { opacity: 1; }
.mkt-frame__body--cal { height: clamp(560px, 78vh, 860px); }
.mkt-frame__body--heat { height: clamp(520px, 78vh, 900px); }
.mkt-frame__body--news { height: 820px; }
.mkt-frame:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.mkt-frame:fullscreen .mkt-frame__body { flex: 1; height: auto; }
.mkt-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin: 0; color: var(--dim); pointer-events: none; }
.mkt-frame__body--news .mkt-ph { min-height: 400px; }
.mkt-ph.is-err { color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-size: 15px; text-align: center; padding: 0 24px; }
.mkt-ph.is-err .mkt-ph__bars { display: none; }
.mkt-ph__bars { display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.mkt-ph__bars i { width: 6px; border: 1px solid var(--candle-up); border-radius: 1px; animation: mktBar 1.1s var(--ease) infinite alternate; }
.mkt-ph__bars i:nth-child(1) { height: 40%; } .mkt-ph__bars i:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.mkt-ph__bars i:nth-child(3) { height: 50%; animation-delay: 0.3s; background: var(--candle-down); border-color: var(--candle-down); }
.mkt-ph__bars i:nth-child(4) { height: 90%; animation-delay: 0.45s; } .mkt-ph__bars i:nth-child(5) { height: 60%; animation-delay: 0.6s; }
@keyframes mktBar { to { transform: scaleY(0.55); } }
.mkt-credit { margin: 12px 0 0; color: var(--dim); font-size: 10.5px; }
.mkt-credit a { color: var(--muted); }
.mkt-note { margin: 12px 0 28px; max-width: 820px; color: var(--muted); font-size: 15px; }

/* destaques do mapa */
.mkt-hls { margin-bottom: 26px; }
.mkt-hls .section-head { margin-bottom: 18px; }
.mkt-hls__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mkt-hl { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 16px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--graphite)); color: var(--muted); text-align: left; font-size: 14px; line-height: 1.4; cursor: pointer; overflow: hidden; transition: border-color 0.25s, transform 0.25s var(--ease); }
.mkt-hl b { color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.mkt-hl__c { color: var(--dim); font-size: 10.5px; }
.mkt-hl:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mkt-hl[aria-pressed="true"] { border-color: var(--accent); background: linear-gradient(180deg, rgba(90,230,58,0.08), var(--graphite)); }
.mkt-hl[aria-pressed="true"] .mkt-hl__c { color: var(--accent); }
.mkt-hl__heat { display: grid; grid-template-columns: 3fr 2fr 2fr 1fr 1fr 1fr; gap: 2px; width: 100%; height: 6px; margin-top: auto; padding-top: 0; opacity: 0.55; }
.mkt-hl__heat i:nth-child(odd) { background: var(--candle-up); } .mkt-hl__heat i:nth-child(even) { background: var(--candle-down); }
.mkt-hl__heat { border-radius: 2px; overflow: hidden; margin-top: 8px; }

@media (max-width: 860px) {
  .mkt-hero { grid-template-columns: 1fr; }
  .mkt-clock { max-width: 360px; }
}
@media (max-width: 640px) {
  .mkt-frame__live { display: none; }
  .mkt-frame__body--cal { height: 640px; }
  .mkt-frame__body--heat { height: 560px; }
  .mkt-seg { width: 100%; }
  .mkt-hls__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-color: var(--line-2) transparent; }
  .mkt-frame__body--news { height: 700px; }
}
@media (prefers-reduced-motion: reduce) {
  .mkt-ph__bars i, .mkt-frame__live i, .mkt-clock__st i { animation: none !important; }
}

/* ================================================================
   CURSOS DE PARCEIROS (R037) — cartão na Estudos e ficha curso-<id>.html
   ================================================================ */
.card--partner { background: linear-gradient(180deg, rgba(167,139,250,0.07), var(--graphite) 60%); border-color: rgba(167,139,250,0.22); }
.card__badge { align-self: flex-start; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(167,139,250,0.4); color: var(--ma-slow); font-size: 10.5px; }
.card--partner .card__foot span:first-child { font-size: 10.5px; }
.lib-note { margin: 28px 0 0; max-width: 760px; color: var(--dim); font-size: 14px; }

.cs-tile { display: grid; place-items: center; width: 96px; height: 96px; flex: none; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(160deg, #1b1830, var(--graphite)); }
.cs-tile svg { width: 52px; height: 52px; fill: none; stroke: var(--ma-fast); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.cs-tile svg circle { fill: var(--ma-slow); stroke: none; }
.cs-tile--img { overflow: hidden; padding: 0; }
.cs-tile--img img { width: 100%; height: 100%; object-fit: cover; }
.cs-tagline { margin: 22px 0 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.cs-tagline + .lead { margin-top: 10px; }

.cs-buy { position: relative; display: grid; gap: 10px; padding: 26px 28px 24px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(26,31,35,0.94), rgba(17,20,23,0.94)); border: 1px solid var(--line-2); box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.cs-route { width: 100%; height: auto; max-height: 170px; margin-bottom: 4px; }
.cs-route__grid line { stroke: rgba(255,255,255,0.05); }
.cs-route__shadow { fill: none; stroke: rgba(167,139,250,0.22); stroke-width: 7; stroke-linejoin: round; }
.cs-route__path { fill: none; stroke: var(--ma-fast); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cs-draw 2.4s var(--ease) 0.3s forwards; }
.cs-route__n { fill: var(--bg); stroke: var(--ma-slow); stroke-width: 1.6; }
.cs-route__n--a { fill: var(--ma-fast); stroke: none; }
@keyframes cs-draw { to { stroke-dashoffset: 0; } }
.cs-buy__k { color: var(--dim); }
.cs-buy__v { margin: 0; font-size: clamp(40px, 4.4vw, 58px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.cs-buy__c { margin: 0; color: var(--muted); font-size: 14px; }
.cs-buy__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cs-buy__go .btn { flex: 1 1 auto; justify-content: center; }
.cs-buy__when { margin: 2px 0 0; color: var(--dim); font-size: 10.5px; }

/* Percurso: temas como níveis de preço (ordem do DOM = ordem do curso; visual de baixo para cima) */
.cs-ladder { position: relative; max-width: 880px; padding: 8px 0 0; }
.cs-lv__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; }
.cs-lv { position: relative; display: grid; grid-template-columns: 96px 56px 1fr; align-items: center; margin: 0; min-height: 52px; border-bottom: 1px solid var(--line); }
.cs-lv__p { color: var(--dim); font-size: 13px; text-align: right; padding-right: 14px; transition: color 0.4s; }
.cs-lv__t { position: relative; height: 100%; }
.cs-lv__t::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.cs-lv__t::after { content: ""; position: absolute; left: calc(50% - 5px); top: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ma-slow); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.cs-lv__n { font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; letter-spacing: -0.01em; padding: 12px 0; transition: color 0.4s; }
.cs-lv::after { content: ""; position: absolute; left: 96px; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--ma-fast), transparent 70%); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.cs-ladder.is-in .cs-lv__list .cs-lv::after { transform: scaleX(1); transition-delay: calc(var(--i) * 0.16s + 0.2s); }
.cs-ladder.is-in .cs-lv__list .cs-lv__t::after { background: var(--ma-fast); border-color: var(--ma-fast); transition-delay: calc(var(--i) * 0.16s + 0.2s); }
.cs-ladder.is-in .cs-lv__list .cs-lv__p { color: var(--muted); transition-delay: calc(var(--i) * 0.16s + 0.2s); }
.cs-lv:hover .cs-lv__n { color: var(--ma-fast); }
.cs-lv--edge .cs-lv__n { font-size: 11px; color: var(--dim); }
.cs-lv--edge .cs-lv__t::after { border-style: dashed; }
.cs-lv--dest { border-top: 1px dashed var(--line-2); }
.cs-lv--dest .cs-lv__n { color: var(--ma-slow); }
.cs-lv--here .cs-lv__t::after { border-color: var(--text); }
.cs-lv--edge::after { display: none; }
.cs-ladder__ill { margin: 14px 0 0; color: var(--dim); font-size: 10.5px; }

.cs-whos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-who { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); border-top: 2px solid var(--ma-slow); background: linear-gradient(180deg, var(--surface), var(--graphite)); }
.cs-who + .cs-who { border-top-color: var(--liq-mid); }
.cs-who__k { color: var(--text); font-size: 12px; }
.cs-who p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

.cs-author { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.cs-face { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(circle at 50% 40%, #241d45, var(--graphite) 70%); display: grid; place-items: center; }
.cs-face img { width: 100%; height: 100%; object-fit: cover; }
.cs-face svg { position: absolute; width: 62%; height: 62%; fill: none; stroke: var(--ma-slow); stroke-width: 1.4; opacity: 0.8; }
.cs-face b { position: relative; font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: 0.06em; }
.cs-author__k { color: var(--accent); }
.cs-author h2 { margin: 8px 0 0; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; }
.cs-author__n { margin: 16px 0 0; font-size: 19px; font-weight: 600; }
.cs-author__n .mono { color: var(--dim); font-weight: 400; font-size: 11px; }
.cs-bio { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; max-width: 620px; }
.cs-bio li { position: relative; padding-left: 22px; color: var(--muted); font-size: 16px; }
.cs-bio li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1px; background: var(--ma-fast); }
.cs-author__src { margin: 16px 0 0; color: var(--dim); font-size: 10.5px; }

.cs-offer { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cs-incl { list-style: none; margin: 0; padding: 0; }
.cs-incl li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); font-size: 16px; }
.cs-incl li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 5px; border-left: 1.6px solid var(--ma-fast); border-bottom: 1.6px solid var(--ma-fast); transform: rotate(-45deg); }
.cs-offer__box { display: grid; gap: 10px; padding: 26px 28px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(26,31,35,0.94), rgba(17,20,23,0.94)); }

.cs-bar__name { display: grid; gap: 2px; margin-right: auto; line-height: 1.15; }
.cs-bar__name b { font-size: 15px; font-weight: 600; }
.cs-bar__name .mono { color: var(--muted); font-size: 11px; }

@media (max-width: 1020px) {
  .cs-offer { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cs-tile { width: 72px; height: 72px; border-radius: 18px; }
  .cs-tile svg { width: 40px; height: 40px; }
  .cs-whos { grid-template-columns: 1fr; }
  .cs-author { grid-template-columns: 1fr; }
  .cs-face { max-width: 220px; }
  .cs-lv { grid-template-columns: 74px 36px 1fr; }
  .cs-lv::after { left: 74px; }
  .cs-lv__p { font-size: 11.5px; padding-right: 8px; }
  .cs-bar__name .mono { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-route__path { animation: none; stroke-dashoffset: 0; }
  .cs-lv::after, .cs-lv__t::after, .cs-lv__p { transition: none !important; }
}
.cs-langnote { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 12px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); font-size: 14.5px; }
.cs-langnote .mono { padding: 3px 8px; border-radius: 999px; background: rgba(242,193,78,0.12); color: var(--ma-fast); font-size: 10px; }
.cs-offer__box .cs-langnote { margin: 2px 0 4px; justify-self: start; }
.cs-face img { position: relative; z-index: 1; }


/* ================================================================
   MOBILE — revisão de usabilidade (R040)
   ================================================================ */
/* calculadoras: painéis não podem forçar largura mínima (estouro em 360 px) */
.calc-grid > * { min-width: 0; }
@media (max-width: 400px) {
  .cpanel { padding: 16px; }
  .cgrid2--tight { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  /* alvos de toque: idioma, rodapé, seletores do Compare, estações da home */
  .lang a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; }
  .footer-grid li a { display: inline-block; padding: 7px 0; }
  .footer-grid ul { gap: 0; }
  .cmpx-sel select { min-height: 32px; width: 100%; }
  .station::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; }
  .host__text .mono small { font-size: 9.5px; }
  .mkt-btn { min-height: 36px; }
}


/* ================================================================
   HOME MOBILE (R041) — sem os 4 botões (dock); cartão com a foto no rodapé
   da tela e o personagem em pé em cima dele. Navegação pelos pontos do
   gráfico e pelo menu. Desktop sem mudança.
   ================================================================ */
@media (max-width: 760px) {
  .dock { display: none !important; }
  .hud__title { bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
  .hud__title .host-wrap { position: relative; margin-top: auto; padding-top: 0; }
  .hud__title .host { width: 100%; }
  .tiogu { left: auto; right: 18px; top: auto; bottom: calc(100% - 6px); height: 122px; pointer-events: none; }
  .illustrative-m { bottom: calc(112px + env(safe-area-inset-bottom)); } /* JS (frame) ajusta acima do cartão */
  .hud__title .host .host__text .mono { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 0; }
}
@media (max-width: 760px) and (max-height: 680px) {
  .tiogu { height: 96px; }
  .hud__title h1 { font-size: clamp(36px, 11vw, 52px); margin: 6px 0; }
}


/* ================================================================
   R042 — rolagem lateral, carrossel no toque e cartões do Compare
   ================================================================ */
/* indicador: o lado com mais conteúdo esmaece; blocos (tabelas) ganham aviso */
.xs.xs-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), rgba(0,0,0,0.12)); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), rgba(0,0,0,0.12)); }
.xs.xs-l { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.12), #000 48px); mask-image: linear-gradient(90deg, rgba(0,0,0,0.12), #000 48px); }
.xs.xs-l.xs-r { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.12), #000 48px, #000 calc(100% - 64px), rgba(0,0,0,0.12)); mask-image: linear-gradient(90deg, rgba(0,0,0,0.12), #000 48px, #000 calc(100% - 64px), rgba(0,0,0,0.12)); }
.xs-hint { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 8px; color: var(--dim); font-size: 10.5px; }
.xs-hint::after { content: "→"; color: var(--accent); font-size: 13px; animation: xs-nudge 1.6s var(--ease) infinite; }
.xs-hint[hidden] { display: none; }
@keyframes xs-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .xs-hint::after { animation: none; } }
/* faixas com chips e abas: um respiro no fim para o último item não ficar colado na borda esmaecida */
.xs--row.xs::after { content: ""; flex: 0 0 24px; }

/* carrossel: no toque o navegador não deve "segurar" o gesto */
.tk.is-moving .tk__track { backface-visibility: hidden; }

/* padrões harmônicos: a fileira de abas não pode ficar mais larga que o cartão */
@media (max-width: 760px) {
  .hlab__top { flex-wrap: nowrap; }
  .hrail { width: 100%; max-width: 100%; }
}

/* Compare no celular: cabeçalho, ficha técnica em 2 colunas alinhadas,
   faixa de preço com o desconto ao lado e ações embaixo */
@media (max-width: 640px) {
  .cmp-row, .cmp-row--plan { grid-template-columns: 1fr 1fr; gap: 0; padding: 16px 16px 14px; align-items: stretch; }
  .cmp-id { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .cmp-id .logo-tile { width: 60px; height: 60px; padding: 8px; border-radius: 14px; }
  .cmp-name { font-size: 19px; line-height: 1.15; }
  .cmp-row--plan .cmp-name { font-size: 17px; }
  .cmp-badge { margin: 6px 6px 2px 0; }
  .cmp-ok { display: inline-block; }
  .cmp-c[data-label]:not(.cmp-cost) { justify-content: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .cmp-c[data-label]:not(.cmp-cost):nth-child(even) { padding-right: 12px; }
  .cmp-c[data-label]:not(.cmp-cost):nth-child(odd) { padding-left: 14px; border-left: 1px solid var(--line); }
  .cmp-c[data-label]::before { margin-bottom: 5px; font-size: 9.5px; }
  .cmp-c small { font-size: 12px; line-height: 1.35; }
  .cmp-c b.mt { margin-top: 10px; }
  .cmp-c .pl-logos { flex-wrap: wrap; }
  .cmp-cost { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px; padding: 14px 0 12px; }
  .cmp-cost::before { grid-column: 1 / -1; }
  .cmp-cost [data-cost] { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .cmp-cost .price { font-size: 28px; }
  .cmp-act { grid-column: 1 / -1; display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
  .cmp-act .pf-off { align-self: center !important; margin: 0; font-size: 11px; padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; }
  .cmp-act .code { width: 100%; margin: 0; }
  .cmp-act .cmp-btns { grid-column: 1 / -1; width: 100%; margin: 0; }
  .cmp-act .cmp-btns .btn { min-height: 46px; }
}
