﻿/* =====================================================================
   Home e Planos: complementos ao design system (Styles/eg.css).
   Só o que o eg.css não cobre. Prefixo "hm-".
   ===================================================================== */

/* Hero em 2 colunas, imagem grande à direita (inspirado no hero da Conta Azul):
   - a partir de 1200px, o print do sistema começa mais à direita e vai até a borda da tela (.hm-hero-bleed);
   - o celular fica mais à esquerda que o print, sobrepondo a borda dele;
   - abaixo de 1200px, texto em cima e imagem embaixo. */
.hm-hero-media { position: relative; }
.hm-hero-shot { box-shadow: 0 34px 70px -26px rgba(3,18,40,.7), 0 10px 26px -14px rgba(3,18,40,.4); }
.hm-hero-phone { position: absolute; z-index: 2; width: 28%; min-width: 130px; left: 4%; bottom: -8%; margin: 0; }
@media (min-width: 1200px) {
  .hm-hero--split { padding-top: clamp(5rem, 2rem + 4vw, 8rem); padding-bottom: clamp(6.5rem, 3rem + 6vw, 11rem); }
  .hm-hero-media-col { align-self: center; }
  .hm-hero-bleed {
    --hm-extra: clamp(0px, 8vw - 60px, 110px);
    margin: 0 calc((100vw - var(--eg-container)) / -2 - 15px - var(--hm-extra)) 0 19%;
  }
  .hm-hero-bleed .hm-hero-shot { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
  .hm-hero-bleed .hm-hero-phone { width: 31%; left: max(-11%, -88px); bottom: -12%; }
}
@media (max-width: 1199.98px) { .hm-hero-media { max-width: 820px; margin: 40px auto 0; } .hm-hero-phone { width: 36%; min-width: 170px; left: auto; right: -2%; bottom: -10%; } }
@media (max-width: 575.98px) { .hm-hero-phone { display: none; } }
.eg-hero .eg-checks { margin-top: 4px; }


/* Fundo desenhado atrás dos mockups das seções "No escritório" (#por-dentro) e "Na baia" (#app):
   círculo azul-claro com as curvas de nível do site, anel com recorte, arco pontilhado, grade de pontos e um ponto
   no degradê de destaque (Images/Textura/mockup-fundo.svg). Fica atrás só do print, não da legenda nem das setas. */
.hm-deco-section { overflow-x: clip; }
.hm-deco { position: relative; isolation: isolate; }
.hm-deco::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1;
  background: url("/Images/Textura/mockup-fundo.svg") center / contain no-repeat;
}
.hm-deco--web::before { width: 96%; top: 0; left: 14%; translate: 0 -17%; }
.hm-deco--app::before { width: min(520px, 112%); top: 0; left: 50%; translate: -50% -8%; rotate: 150deg; }
@media (max-width: 991.98px) {
  .hm-deco--web::before { width: 84%; left: 18%; translate: 0 -14%; }
  .hm-deco--app::before { width: min(440px, 100%); }
}

/* TESTE: prints do hero inclinados em 3D (.hm-hero-3d na div .hm-hero-media). Para desfazer, basta tirar a classe.
   Só no desktop (>= 1200px). O print do sistema "deita" para a direita (a borda da tela fica mais distante),
   o celular vem à frente com uma inclinação menor; no hover os dois endireitam um pouco.
   Nitidez: sem will-change (ele congela a rasterização e borra o print) e sem rotateZ; ângulos moderados. */
@media (min-width: 1200px) {
  .hm-hero-3d { perspective: 1600px; perspective-origin: 20% 50%; }
  .hm-hero-3d .hm-hero-shot,
  .hm-hero-3d .hm-hero-phone { transition: transform .9s var(--eg-ease); }
  .hm-hero-3d .hm-hero-shot {
    transform-origin: left center;
    transform: rotateY(-12deg) rotateX(4deg);
    box-shadow: -30px 50px 90px -30px rgba(3,18,40,.75), 0 12px 30px -16px rgba(3,18,40,.45);
  }
  .hm-hero-3d .hm-hero-phone {
    transform: translateZ(60px) rotateY(-8deg) rotateX(3deg);
    box-shadow: -24px 40px 70px -20px rgba(3,18,40,.7), inset 0 0 0 2px #2a3a52;
  }
  .hm-hero-3d:hover .hm-hero-shot { transform: rotateY(-6deg) rotateX(2deg); }
  .hm-hero-3d:hover .hm-hero-phone { transform: translateZ(60px) rotateY(-4deg) rotateX(1deg); }
}
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
  .hm-hero-3d .hm-hero-shot, .hm-hero-3d .hm-hero-phone { transition: none; }
}

/* Anos de mercado no hero: uma linha discreta abaixo dos botões, para não competir com o título */
.hm-hero-since { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; font-size: var(--eg-fs-sm); color: rgba(255,255,255,.72); }
.hm-hero-since i { color: var(--eg-blue-200); font-size: 1rem; }
.hm-hero-since strong { font-weight: 600; color: rgba(255,255,255,.92); }

/* Vídeo de apresentação (seção logo depois das logos). Toca só no clique: eg.js, [data-eg-autovideo="manual"] */
.hm-video {
  position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #2a8fd6;
  border-radius: var(--eg-radius-xl); box-shadow: 0 30px 70px -28px rgba(9,30,60,.45), 0 8px 24px -12px rgba(9,30,60,.2);
}
.hm-video__el { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-video__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  background: rgba(14,39,71,.82); box-shadow: 0 18px 40px -12px rgba(3,18,40,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hm-video__play:hover, .hm-video__play:focus { background: rgba(14,39,71,.94); }
.hm-video__play[hidden] { display: none; }

/* Depoimentos: um por vez, centralizado, direto no fundo da seção (como no site antigo).
   Usa o carrossel do eg.js; os slides esticam até o mais alto, então a seção não "pula" ao trocar. */
.hm-depo { max-width: 860px; margin-inline: auto; }
.hm-depo__slide { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 0 8px; text-align: center; height: auto; }
.hm-depo__slide blockquote { max-width: 62ch; margin: 0 0 20px; font: 500 clamp(1.0625rem, .95rem + .45vw, 1.3125rem)/1.6 var(--eg-font-heading); color: var(--eg-ink-700); }
.hm-depo__who { display: flex; align-items: center; justify-content: center; gap: 10px; font-style: italic; color: var(--eg-ink-500); }
.hm-depo__logo { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: contain; padding: 3px; background: #fff; border: 1px solid var(--eg-line); }
.hm-depo__who strong { font-style: normal; text-transform: uppercase; letter-spacing: .03em; color: var(--eg-primary); }
.hm-depo .eg-carousel__nav { margin-top: 28px; }
@media (max-width: 575.98px) { .hm-depo .eg-carousel__dots { display: none; } .hm-depo .eg-carousel__nav { gap: 24px; } }

/* Módulos: cards brancos sobre o fundo cinza da seção; ícone solto (sem quadradinho, para não repetir os cards de "Para quem é") e seta no canto */
.hm-head-split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.hm-head-split > div { max-width: 720px; }
.hm-modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-module {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%;
  padding: 24px 22px 26px; background: #fff; border: 1px solid var(--eg-line); border-radius: var(--eg-radius-lg);
  color: var(--eg-ink-500); text-decoration: none !important; transition: border-color var(--eg-dur-fast), box-shadow var(--eg-dur-fast);
}
.hm-module > i { margin-bottom: 10px; font-size: 1.75rem; line-height: 1; color: var(--eg-primary); }
/* Seta no canto: discreta parada, anda na diagonal no hover */
.hm-module::after { content: "\2197"; position: absolute; top: 20px; right: 20px; font-size: 1.125rem; line-height: 1; color: var(--eg-ink-400); transition: transform var(--eg-dur-fast), color var(--eg-dur-fast); }
.hm-module:hover, .hm-module:focus-visible { border-color: var(--eg-primary); box-shadow: 0 0 0 3px var(--eg-blue-50); color: var(--eg-ink-500); }
.hm-module:hover::after, .hm-module:focus-visible::after { transform: translate(3px, -3px); color: var(--eg-primary); }
.hm-module:focus { outline: none; }
.hm-module:focus-visible { box-shadow: var(--eg-focus-ring); }
.hm-module__title { font: 700 1.125rem/1.3 var(--eg-font-heading); color: var(--eg-ink-900); }
.hm-module__text { font-size: var(--eg-fs-sm); line-height: 1.5; }
.hm-module .eg-badge { font-family: var(--eg-font-body); }
/* Selo ao lado do ícone (fora do fluxo), para não deixar o card mais alto que os outros.
   Centro vertical = padding-top (24px) + metade do ícone (1.75rem). */
.hm-module__badge { position: absolute; top: calc(24px + .875rem); left: calc(22px + 1.75rem + 12px); transform: translateY(-50%); }
@media (max-width: 1199.98px) { .hm-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .hm-modules { grid-template-columns: 1fr; gap: 12px; }
  .hm-module { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; padding: 18px 44px 18px 18px; }
  .hm-module > i { grid-row: 1 / span 3; margin: 2px 0 0; font-size: 1.5rem; }
  .hm-module .eg-badge { justify-self: start; }
  .hm-module__badge { position: static; transform: none; }
}

/* Lista de módulos: uma linha extra esfumaçada (.hm-modules--fade) sugere que há mais, com o botão por cima.
   A linha é cortada pela altura e some num degradê para o fundo da seção; não é clicável. */
.hm-modules-more { position: relative; margin-top: 16px; }
.hm-modules--fade {
  max-height: 150px; overflow: hidden; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 55%, transparent 100%);
}
.hm-modules--fade .hm-module::after { content: none; }
.hm-modules-more__btn { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); box-shadow: 0 12px 28px -12px rgba(33,86,151,.55); }
.hm-modules-more__btn:hover { transform: translate(-50%, calc(-50% - 2px)); }
@media (max-width: 575.98px) { .hm-modules--fade { max-height: 120px; } }

/* Lojas de aplicativo (badges maiores que os do footer) */
.hm-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hm-stores a { display: inline-block; border-radius: 10px; transition: transform var(--eg-dur-fast) var(--eg-ease); }
.hm-stores a:hover { transform: translateY(-2px); }
.hm-stores img { height: 48px; width: auto; display: block; }


/* Planos resumidos: nota sob o botão */
.hm-plan-sub { font-size: var(--eg-fs-xs); color: var(--eg-ink-500); text-align: center; margin: -4px 0 0; }
.hm-plan-actions { display: grid; gap: 10px; }
.hm-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 20px; font-size: var(--eg-fs-sm); color: var(--eg-ink-500); }
.hm-pay img { height: 24px; width: auto; }

/* Soluções: card com etiqueta */
.hm-sol-tag { font-size: var(--eg-fs-xs); font-weight: 600; color: var(--eg-primary); margin: 0; }

/* Planos (página): tabela de comparação */
.hm-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--eg-line); border-radius: var(--eg-radius-lg); background: #fff; box-shadow: var(--eg-shadow-sm); max-width: 900px; margin-inline: auto; }
.hm-compare { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--eg-fs-sm); }
.hm-compare caption { caption-side: top; padding: 0; }
.hm-compare th, .hm-compare td { padding: 14px 20px; border-bottom: 1px solid var(--eg-line); text-align: left; vertical-align: middle; }
.hm-compare thead th { background: var(--eg-bg-alt); font: 700 var(--eg-fs-sm)/1.3 var(--eg-font-heading); color: var(--eg-ink-900); }
.hm-compare tbody th { font-weight: 500; color: var(--eg-ink-700); }
.hm-compare td { color: var(--eg-ink-900); font-weight: 600; width: 30%; }
.hm-compare tr:last-child > * { border-bottom: 0; }
.hm-compare .bi-check-circle-fill { color: var(--eg-success); font-size: 1.1rem; }

/* Planos (página): formas de pagamento */
.hm-paycards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); max-width: 900px; margin-inline: auto; }
.hm-paycard { display: flex; gap: 16px; align-items: flex-start; }
.hm-paycard__media { margin-top: 12px; }
.hm-paycard__media img { height: 26px; width: auto; }

/* Âncoras antigas (#features, #mobile, #plans...) mantidas para links externos:
   são só pontos de rolagem, sem caixa. */
.eg-anchor#banner, .eg-anchor#about-software, .eg-anchor#features, .eg-anchor#mobile,
.eg-anchor#statistics, .eg-anchor#testimonials, .eg-anchor#plans, .eg-anchor#planos, .eg-anchor#websites, .eg-anchor#contact {
  margin: 0 !important; padding: 0 !important; min-height: 0 !important; height: 0;
  background: none !important; box-shadow: none !important;
}
section#faq { margin: 0; }
section#solucoes { padding: var(--eg-section-y) 0; }

/* Hero: dois botões grandes lado a lado na coluna de texto */
@media (min-width: 1200px) {
  .eg-hero__actions { flex-wrap: nowrap; }
  .eg-hero__actions > .eg-btn--lg { padding: 0 22px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .eg-hero__actions { flex-wrap: wrap; }
}


/* Título do hero: frase mais longa que o padrão do display, então um degrau menor
   para caber em 3-4 linhas ao lado do mockup, sem esticar a primeira dobra */
#hm-hero-title { font-size: clamp(2rem, 1.35rem + 2.1vw, 2.875rem); line-height: 1.12; }

/* Aviso dentro do card de boleto (Precos.aspx) */
.hm-paycard__note { margin-top: 14px; padding: 12px 14px; gap: 10px; font-size: var(--eg-fs-sm); }
.hm-paycard__note > i { font-size: 1.1rem; }

/* Nota abaixo dos botões do hero (teste grátis sem cartão) */
.hm-hero-note { margin: 14px 0 0; font-size: var(--eg-fs-sm); color: rgba(255,255,255,.72); }
