/* Spec 588: vitrine compacta (Xbox, SVA e smartwatch da home), no mesmo desenho dos "Recursos pensados para
   pilotos" (#ai-briefing, ftab-): abas arredondadas com ícone, a escolhida vira superfície, e a imagem numa
   moldura de tablet. Escala de raio (rev. 22/11): 8 peça pequena, 12 tela/imagem interna, 22 aba, 26 moldura,
   pílula só no botão principal. Raio interno = externo menos o espaçamento (22 - 12 = 10 no ícone, 26 - 12 = 14
   na tela). Escuro por padrão, versão clara pelos tokens. */

.shc { --shc-t1: #EEF0F3; --shc-t2: #AEB5BF; --shc-t3: #878E99; --shc-amber: #E5B11E; --shc-amber-text: #E5B11E; --shc-on-amber: #141310;
  --shc-line: rgba(255,255,255,.08); --shc-line2: rgba(255,255,255,.12); --shc-hover: rgba(255,255,255,.04);
  --shc-active: rgba(255,255,255,.05); --shc-active-shadow: 0 22px 50px -24px rgba(0,0,0,.7);
  --shc-ic-bg: rgba(255,255,255,.06); --shc-ic-fg: rgba(255,255,255,.55);
  --shc-dur: 6s; --shc-screen-ar: 1.6;
  position: relative; padding: 88px 16px; color: var(--shc-t1); }
.shc *, .shc *::before, .shc *::after { box-sizing: border-box; }
html:not(.dark) .shc { --shc-t1: #14161A; --shc-t2: #5B6270; --shc-t3: #8A909B; --shc-amber-text: #9A7000;
  --shc-line: rgba(0,0,0,.08); --shc-line2: rgba(0,0,0,.08); --shc-hover: rgba(20,24,33,.04);
  --shc-active: #FFFFFF; --shc-active-shadow: 0 20px 48px -26px rgba(10,14,22,.45);
  --shc-ic-bg: rgba(20,24,33,.05); --shc-ic-fg: rgba(20,24,33,.5); }

.shc-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-rows: auto auto 1fr; column-gap: 56px; }
.shc-head, .shc-tabs, .shc-actions { grid-column: 1; }
.shc-stage { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.shc-flip { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.shc-flip .shc-head, .shc-flip .shc-tabs, .shc-flip .shc-actions { grid-column: 2; }
.shc-flip .shc-stage { grid-column: 1; }

/* Cabeçalho */
.shc .shc-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 18px; color: var(--shc-amber-text); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.shc .shc-tag { padding: 3px 9px; border-radius: 8px; background: var(--shc-ic-bg); color: var(--shc-t2); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; }
.shc h2 { margin: 0; color: var(--shc-t1); font-size: clamp(30px, 3.6vw, 46px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.shc h2 span { display: block; color: var(--shc-amber-text); }
.shc .shc-intro { margin: 18px 0 0; color: var(--shc-t2); font-size: 16px; line-height: 1.65; }
.shc .shc-intro a { color: var(--shc-amber-text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Abas: a escolhida vira superfície arredondada (raio 22, espaçamento 12) e o ícone fica amarelo (raio 10) */
.shc-tabs { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.shc .shc-group { margin: 14px 0 2px; padding: 0 12px; color: var(--shc-t2); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.shc-tab { position: relative; display: flex; align-items: flex-start; gap: 14px; width: 100%; margin: 0; padding: 12px; border-radius: 22px;
  border: 1px solid transparent; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.shc-tab:hover { background: var(--shc-hover); }
.shc-tab.is-active { background: var(--shc-active); border-color: var(--shc-line2); box-shadow: var(--shc-active-shadow); }
.shc-tab:focus-visible { outline: 2px solid var(--shc-amber); outline-offset: 2px; }
.shc-ic { flex-shrink: 0; position: relative; overflow: hidden; width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--shc-ic-bg); color: var(--shc-ic-fg); transition: background .3s ease, color .3s ease; }
.shc-ic svg { position: relative; z-index: 1; width: 22px; height: 22px; }
.shc-tab.is-active .shc-ic { background: var(--shc-amber); color: var(--shc-on-amber); }
/* Avanço automático: o ícone ativo enche de baixo para cima */
.shc-ic::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.28); transform: scaleY(0); transform-origin: bottom; }
.shc.is-playing .shc-tab.is-active .shc-ic::after { animation: shcFill var(--shc-dur) linear both; }
@keyframes shcFill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.shc-tab-text { display: flex; flex-direction: column; min-width: 0; padding-top: 2px; }
.shc-tab-title { color: var(--shc-t2); font-size: 16.5px; font-weight: 600; line-height: 1.35; transition: color .3s ease; }
.shc-tab:hover .shc-tab-title, .shc-tab.is-active .shc-tab-title { color: var(--shc-t1); }
.shc-tab-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s ease, opacity .3s ease; }
.shc-tab-body > span { overflow: hidden; color: var(--shc-t2); font-size: 14.5px; line-height: 1.55; }
.shc-tab.is-active .shc-tab-body { grid-template-rows: 1fr; opacity: 1; }
.shc-tab.is-active .shc-tab-body > span { padding-top: 6px; }

/* Ações */
.shc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 26px; padding-left: 12px; align-self: start; }
.shc-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--shc-amber);
  color: var(--shc-on-amber) !important; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.shc-cta:hover { background: #f0c13a; transform: translateY(-1px); }
.shc-cta:focus-visible { outline: 2px solid var(--shc-amber); outline-offset: 3px; }
.shc-meta { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.shc-meta li { padding: 6px 12px; border-radius: 12px; background: var(--shc-ic-bg); color: var(--shc-t2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }

/* Palco: moldura de tablet (raio 26, espaçamento 12) e tela (raio 14) com as imagens trocando por opacidade */
.shc-stage { position: relative; width: 100%; max-width: 680px; justify-self: center; touch-action: pan-y; }
.shc-device { position: relative; padding: 12px; border-radius: 26px; background: linear-gradient(155deg, #1f232a 0%, #101216 62%);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 50px 96px -42px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.shc-device::before { content: ''; position: absolute; top: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: rgba(255,255,255,.22); }
.shc-screen { position: relative; width: 100%; aspect-ratio: var(--shc-screen-ar); border-radius: 14px; overflow: hidden; background: #0d0f12; }
.shc-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.shc-slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
.shc-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; cursor: zoom-in; }
.shc-shot.shc-fit { object-fit: contain; }
.shc-shot:focus-visible { outline: 2px solid var(--shc-amber); outline-offset: -4px; }
/* Simulador na tela inteira e o app por cima, no mesmo instante (raio 8: peça pequena, solta dentro da tela) */
.shc-pip { position: absolute; right: 3.5%; bottom: 5%; width: 46%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px;
  border: 2px solid #101216; box-shadow: 0 18px 36px -14px rgba(0,0,0,.75); }
.shc-cap { display: none; max-width: 600px; margin: 14px auto 0; color: var(--shc-t2); font-size: 13px; line-height: 1.55; text-align: center; }
.shc-cap.is-active { display: block; }

/* Smartwatch: caixa redonda, a tela troca */
.shc-watch .shc-stage { max-width: 380px; }
.shc-watch .shc-device { border-radius: 50%; }
.shc-watch .shc-device::before { display: none; }
.shc-watch .shc-screen { aspect-ratio: 1 / 1; border-radius: 50%; }

/* Números da SVA: uma superfície arredondada, divisórias de 1 px dentro */
.shc-stats { max-width: 1240px; margin: 48px auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 22px; background: var(--shc-ic-bg); overflow: hidden; }
.shc-stats li { padding: 18px 22px; border-left: 1px solid var(--shc-line); }
.shc-stats li:first-child { border-left: 0; }
.shc-stats strong { display: block; color: var(--shc-t1); font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.shc-stats span { display: block; margin-top: 2px; color: var(--shc-t2); font-size: 13px; line-height: 1.4; }
.shc .shc-also { margin: 10px 12px 0; color: var(--shc-t2); font-size: 14px; line-height: 1.6; }
.shc .shc-also strong { color: var(--shc-t1); font-weight: 600; }
.shc .shc-note { max-width: 1240px; margin: 40px auto 0; color: var(--shc-t3); font-size: 12px; line-height: 1.6; }
.shc .shc-note a { color: var(--shc-t2); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1023px) {
  .shc { padding: 64px 16px; }
  .shc-inner, .shc-flip { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .shc-head, .shc-tabs, .shc-actions, .shc-stage,
  .shc-flip .shc-head, .shc-flip .shc-tabs, .shc-flip .shc-actions, .shc-flip .shc-stage { grid-column: 1; grid-row: auto; }
  /* No celular a imagem vem logo depois do título, antes das abas */
  .shc-head { order: 1; }
  .shc-stage { order: 2; margin-top: 28px; max-width: 600px; }
  .shc-tabs { order: 3; margin-top: 20px; }
  .shc-actions { order: 4; }
  .shc-stats { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .shc-stats li:nth-child(3) { border-left: 0; }
  .shc-stats li:nth-child(n+3) { border-top: 1px solid var(--shc-line); }
}
@media (max-width: 640px) {
  .shc { padding: 56px 16px; }
  .shc .shc-intro { font-size: 15.5px; }
  /* Moldura menor: 20 - 8 = 12 na tela */
  .shc-device { padding: 8px; border-radius: 20px; }
  .shc-screen { border-radius: 12px; }
  .shc-watch .shc-stage { max-width: 280px; }
  .shc-watch .shc-device { padding: 10px; border-radius: 50%; }
  .shc-watch .shc-screen { border-radius: 50%; }
  .shc-pip { border-radius: 6px; }
  /* Aba menor: 20 - 10 = 10 no ícone */
  .shc-tab { padding: 10px; border-radius: 20px; }
  .shc-ic { width: 40px; height: 40px; }
  .shc-tab-title { font-size: 16px; }
  .shc-cap { font-size: 12.5px; }
  .shc-stats { border-radius: 20px; }
  .shc-stats li { padding: 14px; }
  .shc-stats strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .shc-slide, .shc-slide.is-active, .shc-tab, .shc-tab-body, .shc-tab-title, .shc-ic, .shc-cta { transition: none; }
  .shc.is-playing .shc-tab.is-active .shc-ic::after { animation: none; }
}
