/* Site do LiveTrader (D-089). Cores copiadas dos tokens de ui/src/theme.css e da marca (D-039).
   Fontes do app servidas pelo próprio site: Sora 600 nos títulos e Inter variável no texto (SIL OFL). */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/sora-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter.woff2') format('woff2-variations');
}

:root {
  --bg: #121014;
  --surface: #1d1a20;
  --surface-2: #26222b;
  --border: #2e2934;
  --border-strong: #3d3744;
  --text: #f6f1ea;
  --text-muted: #a8a097;
  --text-faint: #77706a;
  --accent: #e6c17a;
  --accent-soft: rgb(230 193 122 / 12%);
  --accent-line: rgb(230 193 122 / 35%);
  --on-accent: #121014;
  --back: #10b981;
  --back-text: #6ee7b7;
  --lay: #a3214a;
  --topo: rgb(18 16 20 / 88%);
  --sombra: rgb(0 0 0 / 50%);
  --font: 'Inter Variable', 'Segoe UI', system-ui, sans-serif;
  --font-title: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --raio: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h2 { margin: 0 0 20px; font-size: 26px; }
h3 { margin: 0 0 6px; font-size: 17px; }
p { margin: 0 0 14px; }

.faixa { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
main > section { padding-top: 56px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 10; background: var(--topo); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topo-linha { display: flex; align-items: center; gap: 16px; height: 60px; }
.marca { display: flex; flex-shrink: 0; }
.marca img { height: 26px; width: auto; }
.atalhos { display: none; }
.topo .botao { margin-left: auto; }

/* Botões: área de toque de 44 px ou mais */
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 650; text-decoration: none; transition: filter 0.15s ease; }
.botao:hover { filter: brightness(1.08); }
.botao:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.botao.secundario { background: transparent; color: var(--text); border-color: var(--border-strong); }
.botao.secundario:hover { border-color: var(--accent-line); filter: none; }
.botao.pequeno { min-height: 40px; padding: 0 18px; font-size: 15px; }
.botao.desligado { border-style: dashed; border-color: var(--border-strong); background: transparent; color: var(--text-faint); cursor: default; }
.botao.desligado:hover { filter: none; }

/* Abertura */
.abertura { padding-top: 40px; }
main > section.abertura { padding-top: 40px; }
.sobretitulo { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
h1 { margin: 0 0 16px; font-size: clamp(32px, 8.5vw, 56px); }
.destaque { color: var(--accent); }
.lead { max-width: 680px; color: var(--text-muted); font-size: 17px; }
.chamada { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 14px; }
.requisitos { color: var(--text-faint); font-size: 14px; }
.barras { display: flex; gap: 6px; margin: 28px 0 20px; }
.barras span { height: 4px; flex: 1; border-radius: 2px; transform: skewX(-15deg); }
.barras span:nth-child(1) { background: var(--lay); }
.barras span:nth-child(2) { background: var(--accent); }
.barras span:nth-child(3) { background: var(--back); }
.tela { border: 1px solid var(--border); border-radius: var(--raio); box-shadow: 0 18px 48px var(--sombra); }

/* Integração com a 96ex.one */
.rotulo { margin-bottom: 8px; color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.lead-secao { max-width: 760px; color: var(--text-muted); font-size: 17px; }
.lead-secao strong { color: var(--text); }
.esquema { display: flex; flex-direction: column; align-items: stretch; margin: 28px 0 24px; }
.no { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--raio); background: var(--surface); }
.no img { flex-shrink: 0; width: 40px; height: 40px; }
.no strong { display: block; font-family: var(--font-title); font-size: 17px; font-weight: 600; }
.no span { color: var(--text-muted); font-size: 14px; }
.no-exchange { border-color: var(--accent-line); }
.selo-exchange { display: grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--surface-2); color: var(--accent); font-family: var(--font-title); font-size: 16px; font-weight: 600; }
.no .selo-exchange { color: var(--accent); font-size: 16px; }
.ligacao { position: relative; display: flex; justify-content: center; height: 56px; }
.ligacao::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); transform: translateX(-50%); }
.ligacao span { position: relative; align-self: center; padding: 4px 12px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--bg); color: var(--accent); font-size: 12px; font-weight: 600; }
.cartoes.dois { margin-bottom: 0; }

/* Telegram */
.cartao-telegram { padding: 24px 20px; border: 1px solid var(--accent-line); border-radius: 16px; background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }
.cartao-telegram h2 { font-size: 24px; }
.cartao-telegram p { color: var(--text-muted); }
.cartao-telegram .botao { width: 100%; margin-top: 6px; }
.marcados { margin: 0 0 16px; padding: 0; list-style: none; }
.marcados li { position: relative; padding: 4px 0 4px 28px; }
.marcados li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--back-text); border-bottom: 2px solid var(--back-text); transform: rotate(-45deg); }

/* Recursos */
.cartoes { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; }
.cartoes li { padding: 18px; border: 1px solid var(--border); border-radius: var(--raio); background: var(--surface); }
.cartoes p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Telas: carrossel de arrastar no celular, grade no computador */
.telas { display: flex; gap: 12px; margin: 0 -20px; padding: 4px 20px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.telas figure { flex: 0 0 86%; margin: 0; scroll-snap-align: center; }
.telas .tela { box-shadow: none; }
figcaption { margin-top: 8px; color: var(--text-faint); font-size: 14px; text-align: center; }
.dica-arrastar { color: var(--text-faint); font-size: 13px; text-align: center; }

/* Instalação */
.passos { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: passo; }
.passos li { position: relative; margin-bottom: 16px; padding-left: 44px; counter-increment: passo; }
.passos li::before { content: counter(passo); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-title); font-weight: 600; }
.nota { color: var(--text-muted); font-size: 15px; }

/* Perguntas */
details { margin-bottom: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
details[open] { background: var(--surface-2); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex-shrink: 0; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { margin: 0; padding: 0 16px 16px; color: var(--text-muted); }

/* Privacidade e termos */
.legal { font-size: 15px; }
.legal h2 { font-size: 22px; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.data { color: var(--text-faint); font-size: 13px; }

/* Rodapé */
.rodape { margin-top: 64px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); color: var(--text-faint); font-size: 14px; }
.rodape img { height: 22px; width: auto; margin-bottom: 12px; }
.rodape p { margin: 0 0 8px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.links a { color: var(--text-muted); }

/* Tablet */
@media (min-width: 720px) {
  .faixa { padding-left: 32px; padding-right: 32px; }
  main > section { padding-top: 80px; }
  h2 { font-size: 30px; }
  .chamada { flex-direction: row; flex-wrap: wrap; }
  .cartoes { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .esquema { flex-direction: row; align-items: center; }
  .esquema .no { flex: 1; }
  .ligacao { flex: 0 0 150px; height: auto; align-self: stretch; }
  .ligacao::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); transform: translateY(-50%); }
  .cartao-telegram { padding: 36px 40px; }
  .cartao-telegram .botao { width: auto; }
  .telas { margin: 0 -32px; padding: 4px 32px 16px; }
  .telas figure { flex-basis: 70%; }
}

/* Computador */
@media (min-width: 1080px) {
  .topo-linha { height: 68px; }
  .marca img { height: 30px; }
  .atalhos { display: flex; gap: 24px; margin-left: 40px; }
  .atalhos a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
  .atalhos a:hover { color: var(--text); }
  main > section.abertura { padding-top: 72px; text-align: center; }
  .abertura .lead { margin-left: auto; margin-right: auto; font-size: 19px; }
  .chamada { justify-content: center; }
  .barras { max-width: 240px; margin: 40px auto 32px; }
  .cartoes { grid-template-columns: repeat(3, 1fr); }
  .cartoes.dois { grid-template-columns: repeat(2, 1fr); }
  .ligacao { flex-basis: 200px; }
  .telas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; overflow: visible; }
  .dica-arrastar { display: none; }
  .legal { max-width: 820px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .botao { transition: none; }
}
