/* Guia de instalação do PixProtect — complementa pixguard.css (mesmos tokens, cores e fonte) */

.nav > a[aria-current="page"] { color: var(--orange); }

/* ═══ Hero compacto ═══ */
.guide-hero .hero-grid { min-height: 440px; }
.guide-hero .hero-actions { margin-bottom: 28px; }

/* ═══ Layout: índice + etapas ═══ */
.s-guide {
  background: var(--bg-deep);
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.guide-layout {
  display: grid; grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px); align-items: start;
}

/* índice lateral */
.guide-layout > * { min-width: 0; }
.guide-index {
  position: sticky; top: 96px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px;
}
.index-title {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--peach);
  margin: 0 8px 12px;
}
.guide-index ol { display: flex; flex-direction: column; gap: 2px; list-style: none; }
.guide-index a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: var(--radius-xs);
  font-size: .86rem; font-weight: 700; line-height: 1.3;
  color: var(--ink-secondary);
  transition: background .2s, color .2s;
}
.guide-index a span {
  flex: 0 0 auto; width: 26px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  color: var(--ink-muted); transition: color .2s;
}
.guide-index a:hover { background: rgba(255, 255, 255, .04); color: var(--ink); }
.guide-index a.is-active { background: rgba(255, 122, 50, .1); color: #fff; }
.guide-index a.is-active span { color: var(--orange); }

/* ═══ Etapas ═══ */
.guide-steps { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.step {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 44px);
  scroll-margin-top: 96px;
}
.step-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.step-num {
  flex: 0 0 auto;
  width: 64px; height: 64px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  box-shadow: 0 8px 28px rgba(255, 122, 50, .22);
}
.step-kicker {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 6px;
}
.step h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.12; margin: 0;
}
.step h3 {
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em;
  margin: 30px 0 14px; line-height: 1.25;
}
.step-body > p {
  font-size: .95rem; line-height: 1.75;
  color: var(--ink-secondary); margin-bottom: 14px;
  max-width: 760px;
}
.step-body > p strong { color: var(--ink); font-weight: 700; }
.step-body > h3:first-child { margin-top: 0; }

.official-link {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  background: rgba(255, 122, 50, .06);
  border: 1px solid rgba(255, 122, 50, .18);
  border-radius: var(--radius-sm);
  padding: 14px 18px; margin: 18px 0 4px;
  font-size: .9rem; font-weight: 700;
}
.official-link span {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--peach);
}
.official-link a { color: #fff; word-break: break-all; transition: color .2s; }
.official-link a:hover { color: var(--orange); }

/* lista numerada */
.steps-list { list-style: none; counter-reset: item; display: flex; flex-direction: column; margin: 0 0 8px; max-width: 760px; }
.steps-list li {
  counter-increment: item;
  position: relative; padding: 13px 0 13px 46px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem; line-height: 1.6; color: var(--ink);
}
.steps-list li:last-child { border-bottom: 0; }
.steps-list li::before {
  content: counter(item);
  position: absolute; left: 0; top: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; color: var(--orange);
  background: rgba(255, 122, 50, .1);
  border: 1px solid rgba(255, 122, 50, .22);
}
.steps-list strong { color: #fff; font-weight: 800; }

/* avisos */
.callout {
  margin: 24px 0 0; max-width: 760px;
  background: var(--bg-surface);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
}
.callout strong {
  display: block; margin-bottom: 6px;
  font-size: .76rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange);
}
.callout p { font-size: .9rem; line-height: 1.65; color: var(--ink-secondary); }
.callout p + p { margin-top: 8px; }
.callout--attention { border-left-color: var(--coral); }
.callout--attention strong { color: var(--coral); }
.callout--tip { border-left-color: var(--peach); }
.callout--tip strong { color: var(--peach); }

.callout p strong {
  display: inline; margin: 0; font-size: inherit;
  letter-spacing: 0; text-transform: none; color: var(--ink);
}

/* lista com marcadores */
.bullet-list { list-style: none; margin: 0 0 8px; max-width: 760px; }
.bullet-list li {
  position: relative; padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem; line-height: 1.6; color: var(--ink-secondary);
}
.bullet-list li:last-child { border-bottom: 0; }
.bullet-list li::before {
  content: ''; position: absolute; left: 2px; top: 19px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}
.bullet-list strong { color: #fff; font-weight: 800; }
.step-body > p + .bullet-list { margin-top: 4px; }

/* cartões menores (permissões, senhas) */
.mini-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin: 4px 0 0;
}
.mini-grid > .mini-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mini-card p + p { margin-top: 8px; }
.mini-card {
  background: var(--bg-surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px 20px;
  transition: border-color .3s, transform .25s;
}
.mini-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.mini-icon {
  width: 38px; height: 38px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 122, 50, .08); border-radius: var(--radius-xs);
  color: var(--orange);
}
.mini-card h4 {
  font-size: .98rem; font-weight: 800; letter-spacing: -0.01em;
  line-height: 1.25; margin-bottom: 6px;
}
.mini-card p { font-size: .86rem; line-height: 1.6; color: var(--ink-secondary); }

/* checklist */
.check-progress {
  display: flex; align-items: center; gap: 14px;
  margin: 4px 0 18px; max-width: 760px;
  font-size: .85rem; font-weight: 700; color: var(--ink-secondary);
}
.check-progress b { color: var(--orange); font-weight: 800; }
.check-bar { flex: 1; height: 6px; border-radius: 100px; background: var(--line); overflow: hidden; }
.check-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--orange-light), var(--orange));
  border-radius: 100px; transition: width .3s ease;
}
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 860px; }
.checklist li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.checklist label {
  display: flex; align-items: flex-start; gap: 14px; cursor: pointer;
  height: 100%;
  background: var(--bg-surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: .88rem; line-height: 1.5; color: var(--ink-secondary);
  transition: border-color .2s, background .2s, color .2s;
}
.checklist label:hover { border-color: var(--line-strong); }
.checklist input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.check-box {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid var(--line-strong); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.check-box::after {
  content: ''; width: 10px; height: 6px;
  border-left: 2.5px solid #0a0a0a; border-bottom: 2.5px solid #0a0a0a;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform .15s ease;
}
.checklist input:checked ~ .check-box { background: var(--orange); border-color: var(--orange); }
.checklist input:checked ~ .check-box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checklist label:has(input:checked) { border-color: rgba(255, 122, 50, .35); background: rgba(255, 122, 50, .05); color: var(--ink); }
.checklist input:focus-visible ~ .check-box { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ═══ Informações importantes ═══ */
.s-info {
  background: var(--bg-surface);
  padding: clamp(72px, 9vw, 120px) 0;
}
.s-info h2 { margin-bottom: 36px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.info-grid .sec-card { background: var(--bg-card); }
.info-grid .sec-card:hover { transform: none; }
.info-grid .sec-card p { font-size: .92rem; }

/* CTA do guia usa .s-cta de pixguard.css */
.s-cta .cta-tagline {
  font-size: clamp(.82rem, 1.2vw, .95rem); font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  margin: 0 auto 28px; max-width: none;
}

/* ═══ Responsivo ═══ */
@media (max-width: 1050px) {
  .guide-layout { grid-template-columns: 1fr; gap: 24px; }

  /* índice vira barra horizontal fixa sob o header */
  .guide-index {
    position: sticky; top: 84px; z-index: 20;
    border-radius: 100px; padding: 8px;
    background: rgba(17, 17, 17, .94);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .index-title { display: none; }
  .guide-index ol {
    flex-direction: row; gap: 6px; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .guide-index ol::-webkit-scrollbar { display: none; }
  .guide-index li { flex: 0 0 auto; }
  .guide-index a {
    padding: 8px 14px; gap: 8px; white-space: nowrap;
    border: 1px solid var(--line); border-radius: 100px;
  }
  .guide-index a span { width: auto; }
  .guide-index a.is-active { border-color: rgba(255, 122, 50, .4); }
  .step { scroll-margin-top: 150px; }
}

@media (max-width: 768px) {
  .guide-index { top: 76px; }
  .guide-hero .hero-grid { min-height: 0; }
  .step-head { gap: 14px; margin-bottom: 20px; }
  .step-num { width: 52px; height: 52px; font-size: 1.25rem; }
  .mini-grid, .checklist, .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .step { padding: 24px 18px; }
  .steps-list li { padding-left: 42px; font-size: .9rem; }
}
