/* ════════════════════════════════════════════════════════════════════════
   SolutionHero — hero compartilhada das páginas de Soluções da FOOZ
   ────────────────────────────────────────────────────────────────────────
   Um único componente para Gerenciar, Economizar, Individualizar
   (Residencial e Comercial) e FOOZ Find. O que é IGUAL em todas as páginas
   mora aqui: grid, largura máxima, tipografia, eyebrow, escala do H1, CTAs,
   raios, sombras, espaçamentos, cards flutuantes, animações e
   responsividade. O que MUDA é só a atmosfera — cada página aplica um
   modificador de fundo (.shero--escuro, --produto, --app, --doc) e monta a
   própria composição de produto dentro de .shero-comp.

   Regra do projeto: a composição usa TELAS REAIS da Plataforma FOOZ e do
   FOOZ App. Os cards flutuantes são HTML (não imagem) para ler bem em
   qualquer tamanho, responder ao tema e continuar acessíveis.

   Depende, na página que a inclui: .wrap, .btn, .btn-primary, .eyebrow,
   .migalha e as variáveis --navy-*, --blue-*, --cyan-*, --gray-*, --grad.
   ════════════════════════════════════════════════════════════════════════ */

/* ─── 1. Estrutura ───────────────────────────────────────────────────── */

.shero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.2rem, 4vw, 3.4rem) 0 clamp(2.6rem, 4.4vw, 4rem);
  background: #fff;
}

/* camada de atmosfera: gradientes, glows e grid técnico */
.shero-fundo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.shero-fundo svg { width: 100%; height: 100%; display: block; }

/* grid técnico discreto — dados + infraestrutura, sem exagero futurista */
.shero-malha {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .07;
  -webkit-mask-image: radial-gradient(circle at 72% 42%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 72% 42%, #000 0%, transparent 72%);
}

.shero-grid {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  grid-template-areas: "txt comp" "provas comp";
  align-content: center;
  column-gap: clamp(1.5rem, 3.4vw, 3.2rem);
  row-gap: 0;
  min-height: clamp(540px, 60vh, 668px);
}
.shero-txt  { grid-area: txt;  align-self: end; padding-block: clamp(.5rem, 2vw, 1.4rem) 0; }
.shero-prov { grid-area: provas; align-self: start; }
.shero-comp { grid-area: comp; align-self: center; }

/* ─── 2. Tipografia e ações (idênticas em todas as Soluções) ─────────── */

.shero .migalha { margin-bottom: 16px; }
.shero .eyebrow { display: block; text-align: left; letter-spacing: .2em; }

.shero h1 {
  margin-top: 14px;
  text-align: left;
  /* o título ocupa a coluna inteira: com "ch" de uma fonte larga como a
     Sora, qualquer limite em ch estrangula a linha e multiplica as quebras */
  max-width: 100%;
  font-size: clamp(2.35rem, 3.7vw, 3.7rem);
  line-height: 1.0;
  font-weight: 800;
  letter-spacing: -0.038em;
  color: var(--navy-900);
}
.shero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.shero-lead {
  margin-top: 20px;
  max-width: 46ch;
  font-size: clamp(16.5px, 1.35vw, 18.5px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--navy-800);
}
.shero-lead strong { font-weight: 700; }

.shero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.shero-ctas .btn { padding: 16px 28px; font-size: 15px; }
.shero-ctas .btn svg { transition: transform .22s; }
.shero-ctas .btn:hover svg { transform: translateX(3px); }

/* ─── 3. Indicadores / provas (no máximo três conceitos) ─────────────── */

.shero-prov {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
}
.shero-prov > div { padding: 0 22px; border-left: 1px solid var(--gray-200); }
.shero-prov > div:first-child { padding-left: 0; border-left: none; }
.shero-prov b {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.shero-prov span {
  display: block;
  margin-top: 6px;
  max-width: 18ch;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gray-500);
}
.shero-nota {
  margin-top: 16px;
  max-width: 64ch;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--gray-400, #9aa7bd);
}

/* ─── 4. Composição do produto ───────────────────────────────────────── */

.shero-comp { position: relative; }
.shero-palco {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 640px;
  margin-inline: auto;
}

/* peça solta da composição (imagem sem moldura: app, produto, arte) */
.shero-peca {
  position: absolute;
  margin: 0;
  filter: drop-shadow(0 34px 60px rgba(6, 16, 44, .42));
}
.shero-peca img { display: block; width: 100%; height: auto; }

/* foto real de operação: entra como peça da composição, com moldura
   discreta para descolar do fundo escuro sem virar "card". */
.shero-foto {
  position: absolute;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 46px 86px -34px rgba(4, 10, 28, .82),
    0 0 0 1px rgba(255, 255, 255, .10);
}
.shero-foto img { display: block; width: 100%; height: auto; }

/* notebook: moldura em CSS em volta de um print real da plataforma */
.shero-note { position: absolute; margin: 0; }
.shero-note-tela {
  border-radius: 14px 14px 4px 4px;
  padding: 9px 9px 0;
  background: linear-gradient(165deg, #22304f, #0d1830 60%, #060d1e);
  box-shadow:
    0 40px 80px -34px rgba(4, 10, 28, .7),
    0 0 0 1px rgba(255, 255, 255, .07) inset;
}
.shero-note-tela img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px 7px 0 0;
  background: #fff;
}
.shero-note-base {
  height: 13px;
  margin: 0 -5.6%;
  border-radius: 0 0 11px 11px;
  background: linear-gradient(180deg, #24324f, #131d36 55%, #0a1226);
  box-shadow: 0 18px 30px -16px rgba(4, 10, 28, .8);
  position: relative;
}
.shero-note-base::after {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 15%; height: 4px;
  transform: translateX(-50%);
  border-radius: 0 0 5px 5px;
  background: rgba(255, 255, 255, .13);
}

/* ─── 5. Cards flutuantes (elementos reais da plataforma) ────────────── */

.shero-card {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: clamp(166px, 13.6vw, 214px);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(15, 32, 80, .07);
  box-shadow: 0 22px 46px -22px rgba(6, 16, 44, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.shero-card-ic {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: var(--blue-500);
  background: var(--ice-100, #e8f1ff);
}
.shero-card--risco  .shero-card-ic { color: #d94a3d; background: #fdecea; }
.shero-card--alerta .shero-card-ic { color: #c98a04; background: #fdf3dd; }
.shero-card--ok     .shero-card-ic { color: #0f9d6e; background: #e4f7f0; }
.shero-card b {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.shero-card span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--gray-500);
}
.shero-card i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.shero-card i::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: sheroPulso 2.4s ease-in-out infinite;
}

/* pílula solta: um número curto, sem virar card */
.shero-pilula {
  position: absolute;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 11px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(15, 32, 80, .07);
  box-shadow: 0 20px 40px -20px rgba(6, 16, 44, .45);
}
.shero-pilula b {
  font-family: "Sora", sans-serif;
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--navy-900);
}
.shero-pilula span { font-size: 11.5px; font-weight: 600; color: var(--gray-500); }

/* ─── 6. Microinterações (só onde significam algo) ───────────────────── */

@keyframes sheroEntra {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes sheroFlutua {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes sheroPulso {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.82); }
}

.shero-card, .shero-pilula {
  animation: sheroEntra 620ms cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: var(--d, 0ms);
}
.shero-flutua { animation: sheroEntra 620ms cubic-bezier(.22,1,.36,1) both var(--d, 0ms),
                           sheroFlutua 7s ease-in-out infinite calc(var(--d, 0ms) + 700ms); }

@media (prefers-reduced-motion: reduce) {
  .shero-card, .shero-pilula, .shero-flutua { animation: none; }
  .shero-card i::before { animation: none; }
}

/* ─── 7. Atmosferas por solução ──────────────────────────────────────── */

/* GERENCIAR — azul-marinho, grid técnico, profundidade */
/* Fundo escuro é o padrão de TODAS as páginas de Soluções (a de Gerenciar
   é a referência). O que muda de página para página é onde a luz cai: cada
   uma acende o seu protagonista com --luz-x / --luz-y, para que as quatro
   heros sejam do mesmo sistema sem virarem a mesma hero. */
.shero--escuro { background: var(--navy-950, #050d24); color: #fff; }
.shero--escuro .shero-fundo {
  background:
    radial-gradient(900px 520px at var(--luz-x, 78%) var(--luz-y, 18%), rgba(56, 189, 248, .20), transparent 62%),
    radial-gradient(760px 480px at 6% 74%, rgba(40, 103, 255, .22), transparent 60%),
    linear-gradient(165deg, #050d24 0%, #0a1736 52%, #0f2050 100%);
}
.shero--escuro .shero-malha { color: #7dd3fc; opacity: .09; }
.shero--escuro h1 { color: #fff; }
.shero--escuro h1 em {
  background: linear-gradient(120deg, #7dd3fc 0%, #38bdf8 40%, #2867ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shero--escuro .eyebrow { color: var(--cyan-300, #7dd3fc); }
.shero--escuro .shero-lead { color: rgba(226, 238, 255, .84); }
.shero--escuro .shero-lead strong { color: #fff; }
.shero--escuro .migalha { color: rgba(198, 214, 244, .6); }
.shero--escuro .migalha a { color: var(--cyan-300, #7dd3fc); }
.shero--escuro .migalha span[aria-hidden] { color: rgba(198, 214, 244, .35); }
.shero--escuro .shero-prov { border-top-color: rgba(255, 255, 255, .14); }
.shero--escuro .shero-prov > div { border-left-color: rgba(255, 255, 255, .14); }
.shero--escuro .shero-prov b { color: #fff; }
.shero--escuro .shero-prov span { color: rgba(198, 214, 244, .66); }
.shero--escuro .btn-linha {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .26);
}
.shero--escuro .shero-nota { color: rgba(198, 214, 244, .55); }
.shero--escuro .shero-pilula b { color: var(--navy-900, #0a1736); }
.shero--escuro .btn-linha:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(125, 211, 252, .6);
  color: #fff;
}

/* FOOZ FIND — fundo muito claro: documentos, interface e fluxo */
.shero--doc { background: #fff; }
.shero--doc .shero-fundo {
  background:
    radial-gradient(700px 420px at 80% 16%, rgba(56, 189, 248, .16), transparent 58%),
    linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%);
}
.shero--doc .shero-malha { color: #2867ff; opacity: .045; }

/* ─── 8. Responsivo ──────────────────────────────────────────────────── */

/* tablet: a composição encolhe antes de quebrar a grade */
@media (max-width: 1080px) {
  .shero-grid { grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); }
  .shero h1 { font-size: clamp(2.1rem, 4.2vw, 2.9rem); }
  .shero-card { width: clamp(156px, 17vw, 196px); padding: 10px 12px; }
  .shero-card span { font-size: 11px; }
}

/* mobile: composição própria, não é a desktop reduzida por scale().
   Ordem: eyebrow → headline → descrição → CTAs → visual → indicadores. */
@media (max-width: 860px) {
  .shero { padding: 26px 0 40px; }
  .shero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "txt" "comp" "provas";
    row-gap: 30px;
    min-height: 0;
  }
  .shero-txt, .shero-prov, .shero-comp { align-self: auto; }
  .shero h1 { max-width: none; font-size: clamp(2rem, 8.4vw, 2.6rem); line-height: 1.04; }
  .shero-lead { max-width: none; font-size: 16px; }
  .shero-ctas { margin-top: 22px; }
  .shero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .shero-palco { aspect-ratio: 1 / .96; max-width: 520px; max-height: none; }
  /* menos elementos flutuantes no mobile — só o que prova o produto */
  .shero-comp .sh-mob-off { display: none; }
  .shero-card { width: min(62%, 232px); }
  .shero-prov { margin-top: 0; }
  .shero-prov > div { padding: 0 16px; }
}

@media (max-width: 520px) {
  .shero-palco { aspect-ratio: 1 / 1.02; }
  .shero-card { width: min(70%, 218px); }
  .shero-prov { gap: 18px 0; }
  .shero-prov > div { flex: 1 0 44%; }
  .shero-prov span { max-width: none; }
}
