/* Guia de instalação interativo (30/09/2026) — public/instalar.html.
   Página pública, sem base.css de propósito: o base.css carrega o layout do
   painel (sidebar, zoom do body) que aqui só atrapalharia. Cores em tokens,
   com tema escuro pelo sistema operacional. */
:root {
  --bg: #f5f4f8;
  --surface: #ffffff;
  --surface-2: #f8f6fb;
  --text: #1c1b22;
  --muted: #5d5a68;
  --soft: #8a8794;
  --border: #e4e1ea;
  --brand: #660099;
  --brand-2: #7d22b5;
  --brand-soft: #f3eaf9;
  --on-brand: #ffffff;
  --ok: #127a3c;
  --ok-soft: #e8f6ee;
  --warn: #8a5a00;
  --warn-soft: #fff6e0;
  --err: #b42318;
  --err-soft: #fdecea;
  --code-bg: #15131c;
  --code-text: #e9e6f2;
  --code-dim: #9d97b0;
  --sombra: 0 1px 2px rgba(20, 10, 40, .05), 0 8px 24px rgba(20, 10, 40, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121118;
    --surface: #1b1a23;
    --surface-2: #22202c;
    --text: #ece9f3;
    --muted: #b3aec2;
    --soft: #8d889c;
    --border: #2f2c3b;
    --brand: #b67ee6;
    --brand-2: #c99af0;
    --brand-soft: #2a2036;
    --on-brand: #160d1f;
    --ok: #5fd08f;
    --ok-soft: #15291e;
    --warn: #f0c060;
    --warn-soft: #2c2412;
    --err: #ff8a80;
    --err-soft: #331a19;
    --code-bg: #0c0b11;
    --code-text: #ece9f3;
    --code-dim: #8d889c;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121118; --surface: #1b1a23; --surface-2: #22202c; --text: #ece9f3; --muted: #b3aec2;
  --soft: #8d889c; --border: #2f2c3b; --brand: #b67ee6; --brand-2: #c99af0; --brand-soft: #2a2036;
  --on-brand: #160d1f; --ok: #5fd08f; --ok-soft: #15291e; --warn: #f0c060; --warn-soft: #2c2412;
  --err: #ff8a80; --err-soft: #331a19; --code-bg: #0c0b11; --code-text: #ece9f3; --code-dim: #8d889c;
  --sombra: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: var(--brand); }
button { font: inherit; color: inherit; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.topo-in { max-width: 1100px; margin: 0 auto; padding: 12px 16px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.marca img { flex: none; border-radius: 9px; }
.marca-txt { min-width: 0; }
.marca-t { font-weight: 800; font-size: 16px; letter-spacing: -.01em; line-height: 1.25; }
.marca-s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 10px; display: flex; align-items: center; gap: 12px; }
.prog { flex: 1; height: 8px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; }
.prog-b { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; transition: width .35s ease; }
.prog-t { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- botões ---------- */
.btn, .btn-sec, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 11px; cursor: pointer;
  font-weight: 700; font-size: 14.5px; text-decoration: none; border: 1px solid transparent;
}
.btn { background: var(--brand); color: var(--on-brand); }
.btn:hover { filter: brightness(1.08); }
.btn-sec { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-sec:hover { border-color: var(--brand); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); min-height: 38px; padding: 0 14px; font-size: 13.5px; flex: none; }
.btn-ghost:hover { border-color: var(--brand); }
.ic { display: inline-flex; flex: none; line-height: 1; }
.link-reset { background: none; border: 0; padding: 4px 0; color: var(--soft); font-size: 12.5px; text-decoration: underline; cursor: pointer; }

/* ---------- grade ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 48px; }
.grade { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.lateral { position: sticky; top: 104px; min-width: 0; }
.lateral-abrir { display: none; }
.etapas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.etapas button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: none; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--muted); font-size: 14px;
}
.etapas button:hover { background: var(--surface); color: var(--text); }
.etapas li.atual button { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--sombra); }
.etapas .n {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.etapas li.atual .n { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.etapas li.feita .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.etapas li.ajuda { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.etapas .rot { min-width: 0; }
.lateral-rodape { margin-top: 14px; padding-left: 10px; }

.conteudo { min-width: 0; outline: none; }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; box-shadow: var(--sombra); margin-bottom: 16px; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 18px; line-height: 1.3; margin: 22px 0 8px; }
h2:first-child { margin-top: 0; }
h3 { font-size: 15.5px; margin: 16px 0 6px; }
p { margin: 0 0 10px; }
.lead { font-size: 16px; color: var(--muted); max-width: 66ch; }
.muted { color: var(--muted); }
.peq { font-size: 13px; }
ul.lista, ol.lista { margin: 0 0 12px; padding-left: 22px; }
ul.lista li, ol.lista li { margin: 4px 0; }
.kbd, kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); font-size: 12.5px; white-space: nowrap; }
code.in { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; overflow-wrap: anywhere; }

/* fatos rápidos (requisitos) */
.fatos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0 14px; }
.fato { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); min-width: 0; }
.fato b { display: block; font-size: 15px; }
.fato span { font-size: 12.5px; color: var(--muted); }

/* avisos */
.aviso { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.aviso .ic { margin-top: 2px; }
.aviso.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.aviso.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.aviso.err { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.aviso > div { min-width: 0; }

/* tabela do registro A */
.tab-wrap { overflow-x: auto; margin: 10px 0 14px; border: 1px solid var(--border); border-radius: 12px; }
table.dns { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
table.dns th, table.dns td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
table.dns th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.dns tr:last-child td { border-bottom: 0; }

/* campos */
.campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.campo { min-width: 0; }
.campo label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.campo input {
  width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); padding: 0 12px; font-size: 15px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.campo input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.campo .dica { font-size: 12px; color: var(--soft); margin-top: 4px; }
.campo.erro input { border-color: var(--err); }

/* abas de sistema operacional */
.so-abas { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.so-abas button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.so-abas button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.so-detect { font-size: 12.5px; color: var(--soft); }

/* bloco de comando */
.cmd { margin: 10px 0 14px; border-radius: 12px; overflow: hidden; background: var(--code-bg); border: 1px solid var(--border); min-width: 0; }
.cmd-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cmd-h span { font-size: 12px; color: var(--code-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-copiar {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 12.5px; font-weight: 700;
}
.cmd-copiar:hover { background: rgba(255,255,255,.18); }
.cmd-copiar.ok { background: #127a3c; border-color: #127a3c; }
.cmd pre { margin: 0; padding: 12px 14px; overflow-x: auto; color: var(--code-text); font-size: 13.5px; line-height: 1.65; white-space: pre; tab-size: 2; }
.cmd .falta { background: rgba(255, 196, 0, .2); color: #ffd666; border-radius: 4px; padding: 0 3px; }
.cmd .coment { color: var(--code-dim); }

/* saída esperada */
.saida { margin: 8px 0 14px; border-left: 3px solid var(--ok); background: var(--surface-2); border-radius: 0 10px 10px 0; padding: 10px 12px; font-size: 13px; overflow-x: auto; }
.saida pre { margin: 0; white-space: pre; font-size: 12.5px; color: var(--muted); }

/* caixas de "já fiz" */
.checks { margin: 18px 0 4px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--border); background: var(--surface-2); }
.checks-t { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.chk { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14.5px; }
.chk input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }

/* navegação de baixo */
.nav-baixo { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.nav-baixo .btn { margin-left: auto; }

/* opções (caminho A / B) */
.opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 10px 0; }
.opcao { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); min-width: 0; }
.opcao h3 { margin-top: 0; }
.selo { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); margin-left: 6px; vertical-align: 2px; }

/* resultado do DNS */
.dns-res { margin-top: 8px; }

/* ajuda (problemas comuns) */
.busca { position: relative; margin: 6px 0 14px; }
.busca input { width: 100%; height: 44px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 14px; font-size: 15px; }
.prob { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: var(--surface); overflow: hidden; }
.prob summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 14.5px; }
.prob summary::-webkit-details-marker { display: none; }
.prob summary .seta { margin-left: auto; flex: none; color: var(--soft); transition: transform .2s; }
.prob[open] summary .seta { transform: rotate(180deg); }
.prob .tag { flex: none; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); margin-top: 2px; }
.prob .corpo { padding: 0 14px 12px; font-size: 14px; }
.prob .sint { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.prob-vazio { padding: 14px; color: var(--muted); }

/* final */
.fim { text-align: center; padding: 30px 24px; }
.fim .grande { font-size: 44px; line-height: 1; margin-bottom: 10px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .grade { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lateral { position: static; }
  .lateral-abrir {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
    font-weight: 700; cursor: pointer;
  }
  .lateral .etapas, .lateral .lateral-rodape { display: none; }
  .lateral.aberta .etapas { display: flex; margin-top: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px; }
  .lateral.aberta .lateral-rodape { display: block; }
  .lateral.aberta .seta { transform: rotate(180deg); }
  .card { padding: 18px 16px; border-radius: 14px; }
  h1 { font-size: 22px; }
  .wrap { padding-top: 14px; }
  .prog-t { font-size: 11.5px; }
  .nav-baixo .btn, .nav-baixo .btn-sec { flex: 1 1 140px; }
}
@media (max-width: 420px) {
  .marca-t { font-size: 15px; }
  .btn-ghost span:not(.ic) { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .prog-b, .toast, .prob summary .seta { transition: none; }
}
.fim .nav-baixo .btn { margin-left: 0; }
