/* ==========================================================================
   Vitrine de personas — LP de site institucional.
   Cada persona é um site de exemplo completo, exibido num navegador simulado.
   ========================================================================== */

.hero-center { max-width: 880px; margin: 0 auto; text-align: center; }
.hero-center .lead { margin-inline: auto; max-width: 680px; }
.hero-center .hero-ctas { justify-content: center; }

.showcase { margin-top: 52px; }

/* Abas */
.sc-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sc-tab {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 11px 20px; border-radius: 0;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-2);
  font: 400 1.15rem/1.15 var(--serif); cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.sc-tab small { font: 400 0.68rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); transition: color 0.2s; }
.sc-tab:hover { color: var(--text); border-color: var(--text-3); }
.sc-tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); font-style: italic; }
.sc-tab[aria-selected="true"] small { color: color-mix(in srgb, var(--bg) 65%, transparent); font-style: normal; }

/* Navegador simulado */
.sc-frame {
  margin-top: 24px; overflow: hidden; text-align: left;
  border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface);
  box-shadow: 0 60px 140px -60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.sc-bar {
  display: flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.sc-dots { display: flex; gap: 7px; }
.sc-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.sc-url {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; max-width: 440px;
  height: 30px; padding: 0 12px; border-radius: 5px;
  border: 1px solid var(--border); background: var(--bg);
  font: 400 0.8rem/1 var(--mono); color: var(--text-2);
}
.sc-url .i { width: 13px; height: 13px; color: var(--text-3); }
.sc-url span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc-tag {
  padding: 4px 9px; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent);
  font: 500 0.68rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.sc-open {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: 0.85rem; color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.sc-open:hover { color: var(--text); }
.sc-open .i { width: 15px; height: 15px; }

/* Altura calculada para abas + página + descrição caberem juntas numa tela */
.sc-viewport { position: relative; height: clamp(360px, calc(100vh - 380px), 640px); background: #fff; }
@supports (height: 100dvh) {
  .sc-viewport { height: clamp(360px, calc(100dvh - 380px), 640px); }
}
.sc-viewport iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.sc-viewport iframe.is-active { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease), visibility 0s; }
.sc-viewport.is-loading::after {
  content: "Carregando o site de exemplo…"; position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text-3); font: 500 0.85rem/1 var(--mono);
}
.sc-noscript { display: grid; gap: 8px; place-content: center; height: 100%; padding: 24px; text-align: center; color: #333; }
.sc-noscript a { color: #1f5fbf; }

/* Leitura da estrutura */
.sc-info { display: grid; grid-template-columns: 1fr 2.4fr; gap: 28px; margin-top: 18px; text-align: left; }
.sc-label {
  display: block; margin-bottom: 8px;
  font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.sc-question { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; color: var(--text); }
.sc-structure { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.sc-structure li {
  counter-increment: s; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  font-size: 0.8rem; line-height: 1.4; color: var(--text-2);
}
.sc-structure li::before { content: counter(s, decimal-leading-zero); font: 500 0.66rem/1 var(--mono); color: var(--accent); }

/* Cards "a pergunta do visitante" */
.q-card { display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: border-color 0.3s, transform 0.3s var(--ease); }
.q-card:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.q-card.is-current { border-color: var(--accent); }
.q-meta { display: flex; justify-content: space-between; gap: 12px; font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.q-meta b { color: var(--accent); font-weight: 500; }
.q-card blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.2; color: var(--text); }
.q-card p { color: var(--text-2); font-size: 0.95rem; }
.q-card .btn { align-self: flex-start; margin-top: auto; }

/* ==========================================================================
   Visão no celular — popup flutuante (lado direito, acima do WhatsApp)
   ========================================================================== */
.phone-pop, .phone-pill {
  position: fixed; right: 20px; bottom: 92px; z-index: 58;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(20px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.phone-pop.is-visible, .phone-pill.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s;
}
.phone-pop {
  width: 252px; padding: 10px 10px 12px; border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.ph-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; }
.ph-title {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3);
}
.ph-title b { color: var(--text); font-weight: 500; white-space: nowrap; }
.ph-title .i { width: 14px; height: 14px; color: var(--accent); }
.ph-min {
  display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; padding: 0;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); cursor: pointer;
}
.ph-min:hover { color: var(--text); background: var(--surface-2); }
.ph-min .i { width: 14px; height: 14px; }
.ph-device { padding: 8px; border-radius: 34px; background: #050506; box-shadow: inset 0 0 0 1.5px #2b2b31; }
.ph-screen {
  --ph-scale: 0.576; --ph-status: 28px;
  position: relative; width: 216px; height: 432px; overflow: hidden; border-radius: 26px; background: #fff;
}
/* Barra de status: o site começa abaixo dela, como num celular real (nada fica sob a ilha) */
.ph-status {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--ph-status); padding: 2px 15px 0 22px;
  background: var(--ph-bar, #fff); color: var(--ph-bar-ink, #111);
  font: 600 10px/1 -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; letter-spacing: 0.01em;
  transition: background-color 0.3s, color 0.3s;
}
.ph-status-icons { display: flex; align-items: center; gap: 4px; }
.ph-status svg { display: block; height: 9px; width: auto; fill: currentColor; }
.ph-screen iframe {
  position: absolute; top: var(--ph-status); left: 0; width: 375px;
  height: calc((432px - var(--ph-status)) / var(--ph-scale));
  border: 0; transform: scale(var(--ph-scale)); transform-origin: 0 0;
}
.ph-island { position: absolute; z-index: 3; top: 6px; left: 50%; width: 58px; height: 17px; transform: translateX(-50%); border-radius: 999px; background: #050506; pointer-events: none; }
.ph-screen.is-loading::after {
  content: "Carregando…"; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  background: #f4f4f5; color: #71717a; font: 500 0.75rem/1 var(--mono);
}
.ph-hint { display: none; margin-top: 10px; text-align: center; font-size: 0.72rem; line-height: 1.4; color: var(--text-3); }
.phone-pop.is-synced .ph-hint { display: block; }

.phone-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 400 0.76rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
}
.phone-pill:hover { border-color: var(--text-3); }
.phone-pill .i { width: 18px; height: 18px; color: var(--accent); }

/* Com o celular aberto, a vitrine abre espaço à direita para nada ficar coberto
   (292px = 252 do celular + 20 de margem + 20 de respiro; o resto é a margem lateral do conteúdo) */
.showcase { transition: padding-right 0.45s var(--ease); }
.phone-open .showcase { padding-right: max(0px, calc(292px - (100vw - min(100vw - 2 * var(--gutter), var(--container))) / 2)); }

/* Só em telas de computador com espaço suficiente; no celular a vitrine já é a versão mobile */
@media (max-width: 1199px), (max-height: 680px) {
  .phone-pop, .phone-pill { display: none; }
  .phone-open .showcase { padding-right: 0; }
}

@media (max-width: 760px) {
  .sc-tabs {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
  }
  .sc-tabs::-webkit-scrollbar { display: none; }
  .sc-tab { flex-shrink: 0; }
  .sc-tag, .sc-dots { display: none; }
  .sc-open b { display: none; }
  .sc-viewport { height: 72vh; }
  .sc-info { grid-template-columns: 1fr; gap: 20px; }
}
