/* ============================================================
   tendency-static.css — estilos das páginas estáticas
   (hub + iscas escritas à mão). Depende dos tokens :root e
   dos utilitários .glass/.orb/.tech-grid/.chip-glow/
   .btn-primary-glow/.grad-text/.tone-* de index-*.css.
   ============================================================ */

/* ---------- BASE + CHROME (compartilhado) ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: hsl(var(--ink));
  color: hsl(var(--cream));
  font-family: var(--font-body);
  overflow-x: hidden;
}
*, *::before, *::after { box-sizing: border-box; }

/* ---------- fundo cyber ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-fx .layer-grid { position: absolute; inset: 0; opacity: .5; }
.orb-a { width: 300px; height: 300px; background: hsl(var(--violet) / .30); top: -90px; right: -80px; }
.orb-b { width: 260px; height: 260px; background: hsl(var(--gold) / .14); bottom: 12vh; left: -70px; animation-delay: -3s; }
.orb-c { width: 220px; height: 220px; background: hsl(var(--violet-deep) / .55); top: 42vh; right: -60px; animation-delay: -5s; }

/* ---------- layout ---------- */
.shell { position: relative; z-index: 1; max-width: 36rem; margin: 0 auto; padding: 20px 20px 56px; }
header.hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.brand img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.ig-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 7px 12px; min-height: 34px;
  font-size: 11px; font-weight: 500; text-decoration: none;
  color: hsl(var(--cream) / .75); transition: color .2s;
}
.ig-chip:hover { color: hsl(var(--cream)); }

/* ---------- hero ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; padding: 6px 13px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.dot { width: 6px; height: 6px; border-radius: 999px; background: hsl(var(--green)); box-shadow: 0 0 10px hsl(var(--green) / .9); }
h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 9vw, 52px); line-height: 1.02; letter-spacing: -.035em;
  margin: 16px 0 0;
}
.sub { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: hsl(var(--cream) / .75); max-width: 46ch; }
.sub b { color: hsl(var(--cream) / .95); font-weight: 600; }

/* ---------- lista de iscas ---------- */
.cards { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.card { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; align-items: flex-start; gap: 12px; }
.ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.card-title { min-width: 0; flex: 1 1 auto; }
.card-title h2 { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; margin: 0; }
.meta { margin: 3px 0 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--cream) / .55); }
.badge {
  flex: 0 0 auto; border-radius: 999px; padding: 4px 9px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: hsl(var(--gold) / .14); color: hsl(var(--gold)); box-shadow: inset 0 0 0 1px hsl(var(--gold) / .3);
}
.desc { margin: 0; font-size: 14px; line-height: 1.6; color: hsl(var(--cream) / .8); }

.howto { border-radius: 14px; padding: 13px 14px; background: hsl(var(--ink) / .55); box-shadow: inset 0 0 0 1px hsl(var(--violet) / .18); }
.howto-label { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: hsl(var(--cream) / .5); margin-bottom: 9px; }
.howto ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 8px; }
.howto li { counter-increment: step; position: relative; padding-left: 26px; font-size: 13px; line-height: 1.5; color: hsl(var(--cream) / .82); }
.howto li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  background: hsl(var(--violet) / .22); color: hsl(var(--cream) / .9);
}
.howto b { font-weight: 600; color: hsl(var(--cream)); }
.howto code { font-family: var(--font-mono); font-size: 11.5px; color: hsl(var(--gold)); background: hsl(var(--gold) / .1); padding: 1px 5px; border-radius: 5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; border: 0; cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn-soon {
  background: hsl(var(--ink-2) / .8); color: hsl(var(--cream) / .45);
  box-shadow: inset 0 0 0 1px hsl(var(--cream) / .08); cursor: default;
}
.btn-soon:active { transform: none; }
.card--soon .ico { opacity: .55; }
.card--soon .card-title h2 { color: hsl(var(--cream) / .72); }

/* ---------- CTA bootcamp ---------- */
.cta { margin-top: 22px; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.cta h3 { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.02em; margin: 0; }
.cta p { margin: 0; font-size: 13.5px; line-height: 1.55; color: hsl(var(--cream) / .7); }
.cta a {
  margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600; color: hsl(var(--cream));
  background: hsl(var(--violet) / .16); box-shadow: inset 0 0 0 1px hsl(var(--violet) / .45);
}

/* ---------- rodapé ---------- */
footer { margin-top: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
footer span { font-size: 12px; color: hsl(var(--cream) / .5); }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: hsl(var(--cream) / .7); text-decoration: none; transition: color .2s; }
.socials a:hover { color: hsl(var(--cream)); }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .btn:active, .card { transition: none; }
}
/* ============================================================
   PROSA / GUIA — páginas de conteúdo pra ler
   ============================================================ */
.prose { margin-top: 30px; display: flex; flex-direction: column; }
.prose > * { margin: 0; }

.prose h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(21px, 5.4vw, 26px); line-height: 1.15; letter-spacing: -.03em;
  margin: 38px 0 0; scroll-margin-top: 20px;
}
.prose h2 + p { margin-top: 12px; }
.prose h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 16.5px; line-height: 1.25; letter-spacing: -.02em;
  margin: 26px 0 0; color: hsl(var(--cream) / .95);
}
.prose h3 + p { margin-top: 8px; }
.prose p { margin-top: 15px; font-size: 15.5px; line-height: 1.68; color: hsl(var(--cream) / .8); }
.prose p:first-child { margin-top: 0; }
.prose strong { font-weight: 600; color: hsl(var(--cream)); }
.prose em { font-style: normal; color: hsl(var(--gold)); }
.prose a { color: hsl(var(--gold)); text-decoration: none; box-shadow: inset 0 -1px hsl(var(--gold) / .45); }
.prose a:hover { box-shadow: inset 0 -2px hsl(var(--gold) / .8); }

/* numeração de seção em mono, estilo terminal */
.prose .kicker {
  display: block; margin: 40px 0 -4px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: hsl(var(--violet) / .95);
}
.prose .kicker + h2 { margin-top: 10px; }

/* listas */
.prose ul, .prose ol { margin-top: 15px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.6; color: hsl(var(--cream) / .82); }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, hsl(var(--violet)), hsl(var(--gold)));
}
.prose ol { counter-reset: pstep; }
.prose ol li { counter-increment: pstep; position: relative; padding-left: 32px; font-size: 15px; line-height: 1.6; color: hsl(var(--cream) / .82); }
.prose ol li::before {
  content: counter(pstep, decimal-leading-zero); position: absolute; left: 0; top: 2px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: hsl(var(--gold));
}
.prose li strong { color: hsl(var(--cream)); }

/* destaque / callout */
.prose .callout {
  margin-top: 20px; border-radius: 16px; padding: 15px 16px;
  background: hsl(var(--ink-2) / .6);
  box-shadow: inset 0 0 0 1px hsl(var(--violet) / .28);
  display: flex; flex-direction: column; gap: 7px;
}
.prose .callout .callout-label {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: hsl(var(--gold));
}
.prose .callout p { margin: 0; font-size: 14.5px; line-height: 1.6; }

/* citação */
.prose blockquote {
  margin: 22px 0 0; padding: 2px 0 2px 16px;
  border-left: 2px solid hsl(var(--violet) / .55);
  font-family: var(--font-display); font-weight: 500;
  font-size: 17px; line-height: 1.45; letter-spacing: -.02em; color: hsl(var(--cream) / .92);
}
.prose blockquote cite { display: block; margin-top: 8px; font-family: var(--font-body); font-size: 12.5px; font-style: normal; font-weight: 400; color: hsl(var(--cream) / .55); }

/* código inline e bloco copiável */
.prose code { font-family: var(--font-mono); font-size: 13px; color: hsl(var(--gold)); background: hsl(var(--gold) / .1); padding: 1.5px 6px; border-radius: 5px; }
.snippet { margin-top: 18px; border-radius: 16px; overflow: hidden; }
.snippet-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: hsl(var(--ink) / .6); }
.snippet-bar span { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--cream) / .5); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; cursor: pointer; border-radius: 999px; padding: 8px 14px; min-height: 36px;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  background: hsl(var(--violet) / .2); color: hsl(var(--cream) / .9);
  box-shadow: inset 0 0 0 1px hsl(var(--violet) / .45); transition: background .2s;
}
.copy-btn:hover { background: hsl(var(--violet) / .32); }
.copy-btn[data-copied="1"] { background: hsl(var(--green) / .22); box-shadow: inset 0 0 0 1px hsl(var(--green) / .5); color: hsl(var(--cream)); }
.snippet-body { position: relative; }
.snippet-body.clamped pre { max-height: 260px; overflow: hidden; }
.snippet-body.clamped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; pointer-events: none;
  background: linear-gradient(to top, hsl(var(--ink-2) / .96) 15%, hsl(var(--ink-2) / 0));
}
.snippet-more {
  display: none; width: 100%; min-height: 44px; border: 0; cursor: pointer;
  align-items: center; justify-content: center; gap: 7px;
  background: hsl(var(--ink) / .55); color: hsl(var(--cream) / .8);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  box-shadow: inset 0 1px hsl(var(--cream) / .07);
}
.snippet-more.on { display: flex; }
.snippet-more:hover { color: hsl(var(--cream)); }
.snippet-more svg { transition: transform .2s; }
.snippet-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.snippet pre { margin: 0; padding: 14px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: hsl(var(--cream) / .85); white-space: pre-wrap; word-break: break-word; }

/* separador */
.prose hr { margin: 34px 0 0; border: 0; height: 1px; background: linear-gradient(90deg, transparent, hsl(var(--violet) / .4), transparent); }

/* voltar pro hub */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 7px 12px; min-height: 34px;
  font-size: 11px; font-weight: 500; text-decoration: none;
  color: hsl(var(--cream) / .75); transition: color .2s;
}
.back-link:hover { color: hsl(var(--cream)); }
