/* Estilos das paginas tecnicas (ex.: SIP Trunk para Issabel).
   Complementa style.css e legal.css — nao substitui nenhum dos dois. */

.tech-hero { padding: 72px 0 44px; border-bottom: 1px solid var(--line); }
.tech-hero .eyebrow { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; display: block; margin-bottom: 14px; }
.tech-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 16px; max-width: 900px; }
.tech-hero .lead { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 720px; }
.tech-hero .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.tech-hero .btn { padding: 14px 24px; border-radius: 11px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 9px; transition: all .25s; }
.tech-hero .btn-primary { background: linear-gradient(135deg, #4ade80, #22d3a7); color: #05070f; }
.tech-hero .btn-primary:hover { transform: translateY(-2px); }
.tech-hero .btn-ghost { background: rgba(255,255,255,0.04); color: var(--ink); border: 1px solid var(--line); }
.tech-hero .btn-ghost:hover { border-color: var(--brand); }
.tech-hero .btn .icon { width: 16px; height: 16px; stroke-width: 2; }

/* Trilha de navegacao */
.crumbs { padding: 18px 0 0; font-size: 12px; color: var(--muted-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 7px; }

/* Blocos de configuracao */
.tech-body pre { background: #070b16; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 20px; overflow-x: auto; margin: 16px 0 22px; }
.tech-body pre code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; line-height: 1.7; color: #cbd5f5; white-space: pre; }
.tech-body code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--ink); }
.tech-body pre code { background: none; border: none; padding: 0; }
.ph { color: var(--warn); }

/* Passos numerados */
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 26px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 9px; background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.28); color: var(--brand); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps > li > strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }

/* Tabelas */
.tbl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 22px 0; }
.tbl table { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.tbl th { background: rgba(255,255,255,0.025); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.tbl td:first-child { color: var(--ink); font-weight: 600; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td.price { color: var(--brand); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Perguntas: <details> nativo, funciona sem JavaScript */
.qa { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--card); overflow: hidden; }
.qa summary { padding: 17px 20px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--brand); font-size: 20px; font-weight: 400; flex-shrink: 0; }
.qa[open] summary::after { content: '−'; }
.qa .ans { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }

/* Chamada final */
.tech-cta { text-align: center; padding: 52px 34px; border-radius: 22px; background: linear-gradient(135deg, rgba(74,222,128,0.07), rgba(96,165,250,0.04)); border: 1px solid rgba(74,222,128,0.2); margin: 56px 0 20px; }
.tech-cta h2 { font-size: 27px; font-weight: 800; letter-spacing: -0.6px; margin-bottom: 12px; border: none; padding: 0; }
.tech-cta p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; font-size: 15px; }

@media (max-width: 700px) {
  .tbl { overflow-x: auto; }
  .tech-body pre { padding: 14px; }
}

/* ============================================================
   SIMULADOR DE CUSTO
   Campos, seletores e botao. Reescrito para o tema escuro:
   o <select> nativo herdava as cores do sistema e ficava com
   contraste quebrado; e o botao herdava o sublinhado de
   ".legal-body a" (legal.css), que so vale para link de texto.
   ============================================================ */

.sim {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  padding: 8px 26px 26px;
  margin: 26px 0;
}

/* --- Linha de campo --------------------------------------- */
.sim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.sim-row:last-of-type { border-bottom: none; }
.sim-row label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1 1 240px;
  margin: 0;
}
.sim-row label strong { color: var(--ink); font-weight: 600; }

/* --- Campos: input e select compartilham a mesma base ------ */
.sim-row input,
.sim-row select {
  flex: 0 0 auto;
  width: 252px;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 44px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.sim-row input {
  width: 128px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sim-row input:hover,
.sim-row select:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255,255,255,0.16); }
.sim-row input:focus,
.sim-row select:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(74, 222, 128, 0.06);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.14);
}
/* remove as setinhas de incremento do campo numerico */
.sim-row input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.sim-row input[type="number"]::-webkit-outer-spin-button,
.sim-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Select: aparencia nativa desligada + seta propria ----- */
.sim-row select {
  font-size: 14px;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a93ad' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.sim-row select::-ms-expand { display: none; }
/* as opcoes sao desenhadas pelo sistema: sem cor explicita elas
   saem branco-no-branco em navegador com tema escuro */
.sim-row select option {
  background-color: #0a0f1f;
  color: #eef2ff;
  font-weight: 500;
}

/* --- Resultado -------------------------------------------- */
.sim-out {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.sim-out span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.sim-out strong {
  font-size: clamp(30px, 5vw, 38px);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -1.2px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.sim-out em { font-style: normal; font-size: 12.5px; color: var(--muted-2); line-height: 1.6; }

/* --- Aviso de qualificacao -------------------------------- */
.sim-aviso {
  padding: 15px 17px;
  border-radius: 11px;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.24);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.sim-aviso strong { color: var(--warn); }

/* --- Botao -----------------------------------------------
   O ".legal-body a" define color/underline para links de texto.
   Aqui os tres precisam ser anulados explicitamente.          */
.sim-btn,
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.sim-btn {
  background: var(--wa);
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.22);
}
.sim-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3); }
.sim-btn:active { transform: translateY(0); }
.cta-btn {
  background: linear-gradient(135deg, #4ade80, #22d3a7);
  color: #05070f !important;
  box-shadow: 0 10px 28px rgba(74, 222, 128, 0.2);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(74, 222, 128, 0.3); }
.cta-btn:active { transform: translateY(0); }
.sim-btn .icon, .cta-btn .icon { width: 16px; height: 16px; stroke-width: 2.5; }

.sim-nota {
  font-size: 12.5px !important;
  color: var(--muted-2) !important;
  margin: 16px 0 0 !important;
  line-height: 1.65;
}

@media (max-width: 620px) {
  .sim { padding: 4px 18px 22px; }
  .sim-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 0; }
  .sim-row label { flex: 1 1 auto; }
  .sim-row input, .sim-row select { width: 100%; text-align: left; }
  .sim-btn, .cta-btn { width: 100%; }
}

/* data e tempo de leitura no topo do artigo */
.meta-post { margin-top: 20px; font-size: 13px; color: var(--muted-2); }

/* ---------- Diagrama de isolamento (plataforma de cobrança) ---------- */
.iso { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 30px 26px; margin: 26px 0; }
.iso-topo { text-align: center; margin-bottom: 8px; }
.iso-cx { display: inline-block; padding: 11px 22px; border-radius: 11px; font-size: 13.5px; font-weight: 700; }
.iso-tenant { background: rgba(96,165,250,0.12); border: 1px solid rgba(96,165,250,0.34); color: #cbd9f5; }
.iso-linha { height: 26px; width: 1px; background: var(--line); margin: 0 auto; }
.iso-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 4px; }
.iso-col { border: 1px solid var(--line); border-radius: 13px; padding: 16px 14px; background: rgba(255,255,255,0.02); text-align: center; }
.iso-col .cred { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.iso-db { border: 1px dashed rgba(74,222,128,0.4); border-radius: 9px; padding: 9px 8px; background: rgba(74,222,128,0.06); font-family: 'SFMono-Regular', Consolas, monospace; font-size: 11.5px; color: var(--brand); }
.iso-col .perm { display: block; margin-top: 9px; font-size: 11px; color: var(--muted-2); line-height: 1.5; }
.iso-nota { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted-2); line-height: 1.65; }
.iso-nota strong { color: var(--warn); }

/* ---------- Fluxo em etapas ---------- */
.fluxo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.fluxo-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; background: var(--card); position: relative; }
.fluxo-item .n { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: var(--brand); text-transform: uppercase; }
.fluxo-item .t { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin: 7px 0 5px; }
.fluxo-item .d { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

@media (max-width: 860px) { .fluxo { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .iso-grade, .fluxo { grid-template-columns: 1fr; } .iso { padding: 22px 18px; } }
