/* ==========================================================================
   Homepage — estilos específicos de mcp.php
   Requer homepage-shared.css carregado antes.
   ========================================================================== */

@media (max-width: 860px) {
  .client-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .client-tabs::-webkit-scrollbar { display: none; /* Chrome/Safari */ }
  .client-tab {
    font-size: 11.5px;
    padding: 7px 12px;
    gap: 6px;
  }
  .client-tab i {
    font-size: 11px;
  }
  .copy-btn { display: none !important; }
}

/* ── Hero ── */
.mcp-hero {
  padding: 80px 0 56px;
  background: linear-gradient(180deg, #f7f8ff 0%, #ffffff 100%);
  text-align: center;
}

.mcp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(23,90,226,.08);
  border: 1px solid rgba(23,90,226,.2);
  color: var(--brand-blue);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.mcp-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.5px;
  max-width: 780px;
  margin: 0 auto 20px;
}

.mcp-hero h1 .accent {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mcp-hero-desc {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 32px;
}

.mcp-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Sections shared (specifics) ── */
section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.4px;
}

/* ── O que é (explicação em analogia) ── */
.explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .explain-grid { grid-template-columns: 1fr; gap: 32px; }
}

.explain-grid p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.explain-grid strong { color: var(--ink); }

.analogy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

.analogy-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.analogy-row:last-child { border-bottom: none; }

.analogy-row i {
  color: var(--brand-blue);
  font-size: 16px;
  margin-top: 3px;
  width: 20px;
  flex-shrink: 0;
}

.analogy-row b { display: block; font-size: 14px; margin-bottom: 3px; }
.analogy-row span { font-size: 13.5px; color: var(--ink-soft); }

/* ── Fluxo (como funciona, com "tradutor") ── */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
}

@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
}

.flow-step {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px 22px;
  position: relative;
}

.flow-step:not(:last-child) { border-right: none; }

@media (max-width: 960px) {
  .flow-step:not(:last-child) { border-right: 1px solid var(--line); border-bottom: none; }
}

.flow-step:first-child { border-radius: 12px 0 0 12px; }
.flow-step:last-child { border-radius: 0 12px 12px 0; }

@media (max-width: 960px) {
  .flow-step:first-child { border-radius: 12px 12px 0 0; }
  .flow-step:last-child { border-radius: 0 0 12px 12px; }
}

.flow-step .flow-num {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.flow-step h3 { font-size: 14.5px; margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--ink-soft); margin: 0; }

.flow-arrow {
  display: none;
}

/* ── Ferramentas (tools) ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .tools-grid { grid-template-columns: 1fr; }
}

.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.tool-card i { color: var(--brand-blue); font-size: 17px; margin-bottom: 10px; display: block; }
.tool-card h4 { font-size: 14px; margin-bottom: 4px; }
.tool-card p { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 8px; }
.tool-card .tool-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── Setup guiado ── */
.setup-guided {
  position: relative;
  background: linear-gradient(160deg, #0b0e2d 0%, #14103f 55%, #1a0f4a 100%);
  border-radius: 24px;
  padding: 56px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 860px) {
  .setup-guided { padding: 32px 20px; border-radius: 18px; }
}

.setup-guided::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(167,139,250,.28) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.setup-guided::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(23,90,226,.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.setup-guided-head {
  max-width: 680px;
}

.setup-guided .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9b8ff;
  background: rgba(167,139,250,.12);
  border: 1px solid rgba(167,139,250,.3);
  padding: 5px 14px;
  border-radius: 50px;
}

.setup-guided-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -.4px;
  color: #fff;
  margin: 16px 0 12px;
}

.setup-guided-head p {
  color: rgba(255,255,255,.62);
  font-size: 15px;
  max-width: 600px;
}

.setup-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 40px 0;
}

@media (max-width: 860px) {
  .setup-steps-row { grid-template-columns: 1fr; }
}

.setup-step-card {
  position: relative;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color .2s, background .2s, transform .2s;
}

.setup-step-card:hover {
  border-color: rgba(167,139,250,.5);
  background: rgba(255,255,255,.07);
  transform: translateY(-2px);
}

.setup-step-card .step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.setup-step-card h4 { font-size: 15px; color: #fff; margin-bottom: 6px; }
.setup-step-card p { font-size: 13px; color: rgba(255,255,255,.55); margin: 0; }

/* Painel de tabs por cliente */
.client-panel {
  background: #05060f;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6);
}

.client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px;
  background: #0d0f26;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.client-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.5);
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.client-tab i { font-size: 12px; }

.client-tab:hover { color: #fff; background: rgba(255,255,255,.05); }

.client-tab.active {
  background: #fff;
  color: #0b0e2d;
}

.client-panel-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.client-panel-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}

.client-panel-topbar .dot-label {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  margin-left: 4px;
}

.client-panel-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px;
}

.client-panel-body pre {
  margin: 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: #d7e0ff;
  overflow-x: auto;
  flex: 1;
}

.client-panel-body pre .k { color: #7fb2ff; }
.client-panel-body pre .s { color: #b6f2c9; }
.client-panel-body pre .c { color: #7dd88a; }

.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}

.copy-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.copy-btn.copied { background: #1f9d55; border-color: #1f9d55; }

.client-panel-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

.client-panel-footer i { color: #7dd88a; font-size: 11px; }
.client-panel-footer code { color: rgba(255,255,255,.6); font-family: 'Roboto Mono', monospace; }

/* ── Segurança / créditos ── */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .safety-grid { grid-template-columns: 1fr; }
}

.safety-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.safety-card i {
  color: var(--brand-blue);
  font-size: 20px;
  margin-bottom: 14px;
  display: block;
}

.safety-card h3 { font-size: 15px; margin-bottom: 8px; }
.safety-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ── Final CTA (specifics) ── */
.final-cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
