/* =====================================================================
   Homepage (templates/home.html) — design "Enginova Landing" feito no
   Claude Design (dez/2026). Só a home carrega este arquivo; regras que
   valem pro site todo continuam em site.css.
   Prefixo .hm- em tudo pra não colidir com Bootstrap/site.css.
   ===================================================================== */

/* A home usa o cabeçalho próprio do hero, sem a navbar fixa do site. */
body.hm-page { padding-top: 0 !important; background: #f3f6f8; }

.hm {
  --ink: #0d1b26;
  --blue: #014976;
  --amber: #fca311;
  --plum: #846075;
  --muted: #5a6b78;
  --line: #eef2f5;
  --border: #d5dee4;
  --text2: #33444f;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  font-family: 'Urbanist', system-ui, sans-serif;
  color: var(--ink);
  background: #f3f6f8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm a { color: var(--blue); text-decoration: none; }
.hm a:hover { color: var(--plum); }
.hm h1, .hm h2, .hm h3 { font-family: inherit; }
.hm svg { flex: none; }

@keyframes hm-prog { from { width: 0; } to { width: 100%; } }
@keyframes hm-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hm-scan { 0% { top: -60px; } 100% { top: 100%; } }
@keyframes hm-pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Botões pílula ---------- */
.hm .hm-pill-dark {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.hm .hm-pill-dark:hover { background: var(--blue); color: #fff; }

/* =====================================================================
   HERO
   ===================================================================== */
.hm-hero {
  position: relative;
  overflow: hidden;
  padding: 28px var(--gutter) 56px;
  background:
    radial-gradient(55% 45% at 18% 8%, #fde5b8 0%, rgba(253,229,184,0) 70%),
    radial-gradient(50% 55% at 88% 18%, #c9dcea 0%, rgba(201,220,234,0) 70%),
    radial-gradient(55% 45% at 75% 70%, #e2d3dc 0%, rgba(226,211,220,0) 70%),
    #eef2f4;
}

/* ---------- Cabeçalho ---------- */
.hm-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hm .hm-brand { display: flex; align-items: center; flex: none; }
/* Logo horizontal (ícone + "Enginova Soluções Industriais"), ocupando o
   espaço que no design era ícone + "E" + nome. */
/* O PNG (500x250) tem ~16% de margem transparente em cima/embaixo e ~6% na
   esquerda; as margens negativas fazem o desenho visível ter --logo-h. */
.hm-brand__img {
  --logo-h: 64px;
  display: block; width: auto;
  height: calc(var(--logo-h) * 250 / 170);
  margin: calc(var(--logo-h) * -41 / 170) 0 calc(var(--logo-h) * -39 / 170) calc(var(--logo-h) * -31 / 170);
}
@media (max-width: 639px) { .hm-brand__img { --logo-h: 46px; } }

.hm-nav {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 6px;
}
.hm .hm-nav a {
  padding: 10px 16px; border-radius: 999px;
  color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap;
}
.hm .hm-nav a:hover { background: #fff; color: var(--ink); }
.hm-top__actions { display: flex; gap: 8px; flex: none; }

@media (min-width: 1060px) { .hm-nav { display: flex; } }
@media (max-width: 639px) { .hm-top__extra { display: none !important; } }

/* ---------- Palco do tablet (escala calculada em home.js -> --sc) ---------- */
.hm-stage {
  --sc: .5;
  position: relative;
  z-index: 1;
  margin-top: clamp(16px, 3vw, 40px);
  height: var(--stage-h, calc(830px * var(--sc)));
}
.hm-stage__scaler {
  position: absolute; left: 50%; top: 0;
  width: 1120px; height: 780px; margin-left: -560px;
  transform-origin: 50% 0;
  transform: scale(var(--sc));
  perspective: 2400px;
}
.hm-tilt {
  width: 1120px; height: 780px;
  transform: rotateX(12deg) rotateY(-6deg) rotateZ(5deg);
  transition: transform .9s var(--ease);
  transform-style: preserve-3d;
}
.hm-tablet {
  width: 1120px; height: 780px;
  border-radius: 56px;
  background: #11161b;
  padding: 18px;
  box-shadow: 0 60px 120px -30px rgba(1,30,50,.45), 0 0 0 2px #2a3138 inset;
}
.hm-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 38px; overflow: hidden;
  background: linear-gradient(140deg, #f6f8f9 0%, #eef3f6 55%, #f4efe9 100%);
}

/* Barra lateral de ícones do tablet */
.hm-rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: 76px;
  display: flex; flex-direction: column; align-items: center; padding-top: 26px;
}
.hm-rail__e {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 18px; font-weight: 600;
}
.hm-rail__icons { margin-top: 150px; display: flex; flex-direction: column; gap: 16px; align-items: center; color: var(--muted); }
.hm-rail__icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  transition: all .4s;
}
.hm-rail__icon[data-hm-pick] { cursor: pointer; }
.hm-rail__icon.is-active { background: var(--ink); color: #fff; }
.hm-rail__icon--energy.is-active { color: var(--amber); }

/* Telas dos dois apps (só uma visível por vez) */
.hm-app {
  position: absolute; left: 76px; right: 0; top: 0; bottom: 0;
  padding: 22px 22px 22px 4px;
  display: flex; gap: 18px;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .7s ease, transform .7s ease;
}
.hm-app.is-active { opacity: 1; transform: none; pointer-events: auto; }

.hm-col { width: 430px; flex: none; display: flex; flex-direction: column; gap: 16px; }
.hm-card { background: #fff; border-radius: 26px; padding: 22px; box-shadow: 0 1px 2px rgba(1,73,118,.06); }
.hm-card--grow { flex: 1; padding: 20px 22px; }
.hm-card--main { flex: 1; position: relative; overflow: hidden; }
.hm-card__head { display: flex; justify-content: space-between; align-items: flex-start; }
.hm-card__title { font-size: 28px; font-weight: 500; letter-spacing: -.01em; }
.hm-card__sub { font-size: 15px; color: var(--muted); margin-top: 4px; }
.hm-card__h { font-size: 20px; font-weight: 500; }
.hm-badge {
  font-size: 13px; font-weight: 600; color: var(--blue);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px;
}

.hm-seg { margin-top: 16px; display: flex; background: var(--line); border-radius: 999px; padding: 4px; font-size: 15px; }
.hm-seg span { flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; color: var(--ink); }
.hm-seg span.is-on { background: var(--ink); color: #fff; }

.hm-label { font-size: 14px; color: var(--muted); margin: 16px 0 8px; }

.hm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hm-tile { height: 124px; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: #fff; }
.hm-tile--blue { background: linear-gradient(160deg, #1a6a9e, #014976); border: 2px solid var(--amber); }
.hm-tile--plum { background: linear-gradient(160deg, #9c7a8e, #846075); }
.hm-tile--sky  { background: linear-gradient(160deg, #4f8ab0, #2d6f99); }
.hm-tile__body { flex: 1; display: grid; place-items: center; }
.hm-tile__body--kpi { display: block; padding: 12px; }
.hm-tile__small { font-size: 13px; opacity: .85; }
.hm-tile__big { font-size: 26px; font-weight: 300; margin-top: 6px; }
.hm-tile__foot { background: rgba(255,255,255,.92); color: var(--ink); text-align: center; font-size: 15px; padding: 7px 0; }
.hm-tile--blue .hm-tile__foot { background: var(--amber); font-weight: 500; }

.hm-row-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin: 18px 0 8px; }
.hm-track { position: relative; height: 36px; background: var(--line); border-radius: 10px; }
.hm-track__fill {
  position: absolute; top: 0; bottom: 0; left: var(--from, 0%); width: 0;
  background: var(--amber); border-radius: 10px;
  transition: width 1.4s var(--ease) .3s;
}
.hm-track__scale {
  position: absolute; inset: 0;
  display: flex; justify-content: space-around; align-items: center;
  font-size: 14px; color: var(--ink);
}
.hm-track__pin {
  position: absolute; top: -12px; left: 0; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 13px; border-radius: 6px; padding: 3px 7px;
  transition: left 1.4s var(--ease) .3s;
}
.hm-app.is-on .hm-track__fill { width: var(--to); }
.hm-app.is-on .hm-track__pin { left: var(--to); }

.hm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.hm-kpi { background: #f3f6f8; border-radius: 18px; padding: 14px; }
.hm-kpi__ic { color: var(--blue); }
.hm-kpi__lbl { font-size: 14px; color: var(--muted); margin-top: 14px; }
.hm-kpi__val { font-size: 36px; font-weight: 300; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hm-glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(252,163,17,.42), rgba(252,163,17,.12) 60%, rgba(252,163,17,0));
}
.hm-main-head { position: relative; display: flex; justify-content: space-between; align-items: center; }
.hm-main-head__aside { font-size: 14px; color: var(--muted); }
.hm-legend { display: flex; gap: 16px; font-size: 14px; color: var(--muted); align-items: center; }
.hm-legend span { display: flex; align-items: center; gap: 6px; }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Gantt (app Project) */
.hm-gantt-head { position: relative; display: grid; grid-template-columns: 150px 1fr; margin-top: 18px; font-size: 13px; color: var(--muted); }
.hm-gantt-weeks { display: grid; grid-template-columns: repeat(12, 1fr); text-align: center; }
.hm-gantt { position: relative; margin-top: 8px; }
.hm-gantt__row { display: grid; grid-template-columns: 150px 1fr; height: 56px; border-top: 1px solid var(--line); align-items: center; }
.hm-gantt__name { font-size: 15px; font-weight: 500; color: var(--ink); }
.hm-gantt__meta { font-size: 13px; color: var(--muted); }
.hm-gantt__lane {
  position: relative; height: 100%;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333% - 1px), #f1f4f6 calc(8.333% - 1px), #f1f4f6 8.333%);
}
.hm-gantt__bar {
  position: absolute; top: 16px; height: 24px; left: var(--l); width: 0;
  background: #cfdde8; border-radius: 8px; overflow: hidden;
  transition: width 1s var(--ease); transition-delay: var(--d);
}
.hm-gantt__bar i { display: block; height: 100%; width: var(--p); background: var(--blue); border-radius: 8px; }
.hm-gantt__bar--crit { background: #fde3b0; }
.hm-gantt__bar--crit i { background: var(--amber); }
.hm-app.is-on .hm-gantt__bar { width: var(--w); }
.hm-today-line { position: absolute; top: -6px; bottom: 0; left: calc(150px + (100% - 150px) * .58); border-left: 1.5px dashed var(--ink); }
.hm-today {
  position: absolute; bottom: -4px; left: calc(150px + (100% - 150px) * .58); transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 13px; padding: 3px 9px; border-radius: 999px;
}

/* Cartão escuro flutuante com 3 números */
.hm-float { position: absolute; display: flex; flex-direction: column; align-items: center; animation: hm-floaty 5s ease-in-out infinite; }
.hm-float--gantt { right: 22px; top: 118px; }
.hm-float--chart { right: 0; top: 4px; }
.hm-stats {
  display: flex; background: var(--ink); color: #fff;
  border-radius: 18px; padding: 12px 6px;
  box-shadow: 0 20px 40px -12px rgba(13,27,38,.5);
}
.hm-stats > div { padding: 0 16px; }
.hm-stats > div + div { border-left: 1px solid #34434f; }
.hm-stats b { display: block; font-size: 28px; font-weight: 300; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-float--chart .hm-stats b { font-size: 26px; }
.hm-stats small { display: block; font-size: 12px; color: #b9c4cc; }
.hm-float__stem { width: 1.5px; height: 22px; background: var(--ink); }
.hm-float__dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }

/* Processamento da fatura (app Energy) */
.hm-proc {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(255,255,255,.96);
  display: flex; gap: 26px; align-items: center; padding: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity .6s ease;
}
.hm-proc.is-visible { opacity: 1; }
.hm-invoice {
  position: relative; width: 250px; height: 340px; flex: none;
  border-radius: 18px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 24px 50px -24px rgba(1,73,118,.35);
  padding: 18px; overflow: hidden;
}
.hm-invoice__head { display: flex; align-items: center; gap: 10px; }
.hm-invoice__ic { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--amber); display: grid; place-items: center; }
.hm-invoice__t { font-size: 15px; font-weight: 600; }
.hm-invoice__s { font-size: 12px; color: var(--muted); }
.hm-invoice__rows { margin-top: 16px; display: flex; flex-direction: column; font-size: 12px; }
.hm-invoice__rows > div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.hm-invoice__rows span:first-child { color: var(--muted); }
.hm-invoice__rows span:last-child { font-weight: 500; }
.hm-invoice__rows .is-alert span:last-child { color: var(--plum); }
.hm-invoice__rows .is-total { padding: 10px 0 0; border-top: 1px solid var(--ink); font-size: 14px; }
.hm-invoice__rows .is-total span:first-child { color: var(--ink); font-weight: 500; }
.hm-invoice__rows .is-total span:last-child { font-weight: 600; }
.hm-scan {
  position: absolute; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, rgba(252,163,17,0), rgba(252,163,17,.28));
  border-bottom: 2px solid var(--amber);
  animation: hm-scan 1.5s ease-in-out infinite;
}
.hm-proc__info { flex: 1; min-width: 0; }
.hm-proc__title { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.hm-file {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--blue);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px;
}
.hm-proc__pct { margin-top: 18px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.hm-proc__pct b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.hm-proc__bar { margin-top: 6px; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.hm-proc__bar i { display: block; height: 100%; width: 0; background: var(--amber); border-radius: 999px; transition: width .6s ease; }
.hm-proc__steps { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.hm-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #8a98a3; transition: color .3s; }
.hm-step__ck {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--border); color: #fff;
  transition: all .3s;
}
.hm-step.is-current, .hm-step.is-done { color: var(--ink); }
.hm-step.is-current .hm-step__ck { border-color: var(--amber); }
.hm-step.is-done .hm-step__ck { background: var(--blue); border-color: var(--blue); }

/* Economia + gráfico de demanda (app Energy) */
.hm-econ { position: relative; display: flex; gap: 24px; align-items: flex-end; margin-top: 10px; }
.hm-gauge { position: relative; width: 280px; height: 160px; flex: none; }
.hm-gauge__arc { stroke-dashoffset: 377; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.hm-app.is-on .hm-gauge__arc { stroke-dashoffset: 105.56; }
.hm-gauge__val { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; }
.hm-gauge__val b { display: block; font-size: 46px; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hm-gauge__val small { font-size: 14px; color: var(--muted); }
.hm-econ__list { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.hm-econ__list > div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.hm-econ__list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hm-econ__list b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hm-chart { position: relative; margin-top: 26px; height: 250px; }
.hm-chart__bars { position: absolute; left: 0; right: 0; top: 0; bottom: 24px; display: flex; align-items: flex-end; gap: 10px; }
.hm-chart__bars i {
  flex: 1; height: 2%;
  background: #cfdde8; border-radius: 8px 8px 4px 4px;
  transition: height 1s var(--ease); transition-delay: var(--d);
}
.hm-chart__bars i.is-mid { background: var(--blue); }
.hm-chart__bars i.is-peak { background: var(--amber); }
.hm-app.is-on .hm-chart__bars i { height: var(--h); }
.hm-chart__limit { position: absolute; left: 0; right: 0; bottom: calc(24px + 226px * .72); border-top: 1.5px dashed var(--plum); }
.hm-chart__limit-lbl { position: absolute; right: 0; bottom: calc(30px + 226px * .72); font-size: 13px; color: var(--plum); }
.hm-chart__months { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.hm-chart__months span { flex: 1; }

/* ---------- Rodapé do hero: título + abas ---------- */
.hm-hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: clamp(300px, 48%, 460px);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: linear-gradient(to top, rgba(4,28,46,.92) 0%, rgba(4,28,46,.7) 45%, rgba(4,28,46,0) 100%);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
  pointer-events: none;
}
.hm-hero__foot {
  position: relative; z-index: 3;
  /* A sobreposição do título no tablet acompanha a escala do tablet (--hero-sc). */
  margin-top: calc(-1 * clamp(70px, min(13vw, calc(240px * var(--hero-sc, 1))), 230px));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap;
}
@media (max-width: 745px) { .hm-hero__foot { margin-top: -34px; } }
.hm-hero__title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(54px, min(9vw, 14vh), 148px);
  line-height: .95;
  letter-spacing: -.035em;
  color: #fff;
}
.hm-hero__title span { color: #c7d3dc; }

.hm-tabs { display: flex; flex-direction: column; gap: 10px; min-width: 260px; }
.hm-tabs__hint { font-size: 15px; color: #c7d3dc; }
.hm-tab {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font: 500 16px 'Urbanist', sans-serif;
  cursor: pointer; text-align: left;
  transition: all .4s;
}
.hm-tab.is-active { background: #fff; color: var(--ink); border-color: #fff; }
.hm-tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.hm-tab small { font-size: 15px; opacity: .75; }
.hm-tab__prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--amber); }
.hm-tab.is-active .hm-tab__prog { animation: hm-prog var(--dur, 6s) linear forwards; }

/* Sem animação automática pra quem pediu menos movimento no sistema. */
@media (prefers-reduced-motion: reduce) {
  .hm-float, .hm-scan { animation: none; }
  .hm-tab.is-active .hm-tab__prog { animation: none; width: 100%; }
}

/* =====================================================================
   PEÇAS COMUNS DAS SEÇÕES
   ===================================================================== */
.hm-wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.hm-section { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.hm-kicker { font-size: 15px; font-weight: 500; color: var(--plum); letter-spacing: .04em; }
.hm-kicker--blue { color: var(--blue); }
.hm-kicker--amber { color: var(--amber); }
.hm-h2 {
  margin: 12px 0 0;
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: inherit;
  text-wrap: balance;
}
.hm-h2--xl { margin: 0; font-size: clamp(38px, 5vw, 68px); }
.hm-accent { color: var(--plum); }
.hm-lead { margin: 18px 0 0; font-size: 19px; color: var(--text2); max-width: 620px; line-height: 1.55; }
.hm-split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hm-split__text { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text2); max-width: 460px; }
.hm-num {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-size: 18px; font-variant-numeric: tabular-nums;
}

.hm .hm-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; padding: 16px 26px;
  font-size: 16px; font-weight: 500;
}
.hm .hm-btn--dark { background: var(--ink); color: #fff; }
.hm .hm-btn--dark:hover { background: var(--blue); color: #fff; }
.hm .hm-btn--ghost { border: 1px solid #c5d2db; color: var(--ink); }
.hm .hm-btn--ghost:hover { background: #fff; color: var(--ink); }
.hm-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Introdução ---------- */
.hm-intro {
  padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hm-intro__text { display: flex; flex-direction: column; gap: 18px; font-size: 19px; line-height: 1.6; color: var(--text2); text-wrap: pretty; }
.hm-intro__text p { margin: 0; }

/* ---------- Faixa "Contrato de risco" ---------- */
.hm-band-wrap { padding: 0 var(--gutter); }
.hm-band {
  max-width: 1320px; margin: 0 auto;
  position: relative; overflow: hidden;
  border-radius: 40px;
  background: radial-gradient(60% 90% at 100% 0%, #1f6a99 0%, rgba(31,106,153,0) 60%), #014976;
  color: #fff;
  padding: clamp(40px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px; align-items: end;
}
.hm-band__rings { position: absolute; right: -120px; top: -120px; opacity: .18; }
.hm-band__head { position: relative; }
.hm-chip-amber { display: inline-block; border: 1px solid var(--amber); color: var(--amber); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; }
.hm-band__title {
  margin: 22px 0 0; font-weight: 300;
  font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -.03em;
  color: #fff; text-wrap: balance;
}
.hm-band__title span { color: var(--amber); }
.hm-band__text { position: relative; margin: 0; font-size: 19px; line-height: 1.6; color: #dbe6ee; text-wrap: pretty; }

/* ---------- Como trabalhamos ---------- */
.hm-steps { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.hm-stepcard {
  background: #fff; border-radius: 30px; padding: 30px;
  display: flex; flex-direction: column; gap: 14px; min-height: 280px;
  box-shadow: 0 1px 2px rgba(1,73,118,.05);
}
.hm-stepcard__top { display: flex; justify-content: space-between; align-items: center; }
.hm-stepcard__tag { font-size: 15px; color: var(--muted); }
.hm-stepcard h3 { margin: auto 0 0; font-weight: 400; font-size: 30px; letter-spacing: -.02em; color: var(--ink); }
.hm-stepcard p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text2); text-wrap: pretty; }

/* =====================================================================
   APPS (celulares)
   ===================================================================== */
.hm-apps {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #cfe0ea 0%, #b9d1df 50%, #d8cdd4 100%);
  padding: clamp(64px, 9vw, 128px) var(--gutter);
}
.hm-apps__rings { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .5; pointer-events: none; }
.hm-apps__inner { position: relative; max-width: 1320px; margin: 0 auto; }

.hm-phones { margin-top: 56px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.hm-phone {
  width: 300px; height: 620px; border-radius: 40px; padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(1,30,50,.45);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.hm-phone--low { margin-top: 60px; }
@media (max-width: 999px) { .hm-phone--low { margin-top: 0; } }
.hm-phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px; }
.hm-phone__btns { display: flex; gap: 8px; }
.hm-phone__btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.8); display: grid; place-items: center;
}
.hm-phone__btn--dot::after {
  content: ""; position: absolute; top: 9px; right: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
}
.hm-phone__hero { border-radius: 24px; padding: 16px; color: #fff; height: 130px; display: flex; flex-direction: column; justify-content: space-between; }
.hm-phone__card { background: #fff; border-radius: 24px; padding: 16px; }
.hm-phone__search {
  flex: 1; height: 44px; border-radius: 999px; background: #fff;
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  color: var(--muted); font-size: 14px;
}
.hm-phone__mini { background: #e9f0f4; border-radius: 22px; padding: 14px; height: 132px; display: flex; flex-direction: column; }
.hm-phone__mini-lbl { margin-top: auto; font-size: 14px; color: var(--muted); }
.hm-phone__mini-val { font-size: 32px; font-weight: 300; }
.hm-phone__tabbar { background: #fff; border-radius: 999px; padding: 6px; display: flex; justify-content: space-between; font-size: 15px; }
.hm-phone__tabbar span { display: flex; align-items: center; gap: 5px; padding: 10px 8px; }
.hm-phone__tabbar span.is-on { padding: 10px 12px; border-radius: 999px; background: var(--ink); color: #fff; }

/* Grade da semana (celular do meio) */
.hm-week {
  position: relative; margin-top: 10px; flex: 1; border-radius: 18px;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 46px, #e7edf1 46px, #e7edf1 47px);
}
.hm-week__row { position: relative; height: 62px; }
.hm-week__task {
  position: absolute; top: 10px; height: 42px; border-radius: 14px;
  border: 1.5px solid; display: flex; align-items: center; gap: 8px; padding: 0 8px;
}
.hm-week__task span {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--ink); color: #fff; font-size: 13px;
  display: grid; place-items: center;
}
.hm-week__task b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-week__now { position: absolute; top: 0; bottom: 0; left: 160px; border-left: 1.5px dashed var(--ink); }
.hm-week__dot { position: absolute; left: 153px; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); }
.hm-week__dot--pulse { animation: hm-pulse 1.8s ease-out infinite; }

/* Cards de recursos dos apps */
.hm-features { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.hm-feature {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 30px; padding: 30px;
}
.hm-feature__head { display: flex; align-items: center; gap: 12px; }
.hm-feature__title { font-size: 24px; font-weight: 500; }
.hm-feature__sub { font-size: 14px; color: var(--text2); }
.hm-checks { list-style: none; margin: 20px 0 0; padding: 0; }
.hm-checks li {
  position: relative; padding: 12px 0 12px 30px;
  border-top: 1px solid rgba(1,73,118,.12);
  font-size: 17px; line-height: 1.45;
}
.hm-checks li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (prefers-reduced-motion: reduce) { .hm-week__dot--pulse { animation: none; } }

/* =====================================================================
   SOLUÇÕES
   ===================================================================== */
.hm-section--flush-top { padding-top: 0; }
.hm-solutions { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.hm .hm-solution {
  background: #fff; border-radius: 30px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px; min-height: 300px;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(1,73,118,.05);
  transition: transform .3s, box-shadow .3s, background .3s;
}
.hm .hm-solution:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(1,73,118,.35); color: var(--ink); }
.hm-solution__top { display: flex; justify-content: space-between; align-items: center; }
.hm-solution__tag { font-size: 15px; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; color: var(--blue); }
.hm-solution__go { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.hm-solution h3 { margin: auto 0 0; font-weight: 400; font-size: 27px; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; color: inherit; }
.hm-solution p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text2); text-wrap: pretty; }
.hm .hm-solution--cta { background: var(--ink); color: #fff; justify-content: space-between; }
.hm .hm-solution--cta:hover { background: var(--blue); color: #fff; }
.hm-solution__cta-kicker { font-size: 15px; color: var(--amber); }
.hm-solution__cta-title { font-size: 30px; font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
.hm-solution__cta-go { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 16px; }

/* =====================================================================
   QUEM SOMOS
   ===================================================================== */
.hm-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hm-about__p { margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: var(--text2); text-wrap: pretty; }
.hm-about__p + .hm-about__p { margin-top: 16px; }
.hm-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.hm-person { background: #fff; border-radius: 30px; padding: 10px; box-shadow: 0 1px 2px rgba(1,73,118,.05); }
.hm-person__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #dfe7ee; }
.hm-person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-person__photo span {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 16px; font-weight: 500;
}
.hm-person p { margin: 0; padding: 16px 10px 10px; font-size: 15px; line-height: 1.5; color: var(--text2); }

/* =====================================================================
   FAQ
   ===================================================================== */
.hm-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hm-faq__list { display: flex; flex-direction: column; gap: 10px; }
.hm-faq__item { background: #fff; border-radius: 24px; padding: 4px 22px; }
.hm-faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; padding: 18px 0;
  font: 500 19px 'Urbanist', sans-serif; color: var(--ink);
  cursor: pointer; text-align: left;
}
.hm-faq__q:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.hm-faq__q i {
  position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: var(--line); color: var(--ink);
  transition: all .3s;
}
.hm-faq__q i::before, .hm-faq__q i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px; margin: -1px 0 0 -7px;
  background: currentColor; border-radius: 2px;
}
.hm-faq__q i::after { transform: rotate(90deg); }
.hm-faq__q[aria-expanded="true"] i { background: var(--ink); color: #fff; transform: rotate(45deg); }
.hm-faq__a { margin: 0; padding: 0 0 20px; font-size: 17px; line-height: 1.6; color: var(--text2); max-width: 620px; }

/* =====================================================================
   DIAGNÓSTICO / CONTATO
   ===================================================================== */
.hm-cta-wrap { padding: 0 var(--gutter) clamp(40px, 5vw, 64px); }
.hm-cta {
  max-width: 1320px; margin: 0 auto;
  position: relative; overflow: hidden;
  border-radius: 40px;
  background:
    radial-gradient(50% 70% at 0% 100%, rgba(132,96,117,.55) 0%, rgba(132,96,117,0) 70%),
    radial-gradient(60% 80% at 100% 0%, #1f6a99 0%, rgba(31,106,153,0) 60%),
    #014976;
  color: #fff;
  padding: clamp(36px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px;
}
.hm-cta__p { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: #dbe6ee; text-wrap: pretty; }
.hm-contacts { margin-top: 32px; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.hm-contacts > div {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18);
}
.hm-contacts > div > span:first-child { color: #b9cddb; }
.hm .hm-contacts a { color: #fff; }
.hm .hm-contacts a:hover { color: var(--amber); }

.hm-form-card { background: #fff; color: var(--ink); border-radius: 30px; padding: clamp(22px, 3vw, 34px); align-self: start; }
.hm-form__title { font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.hm-form__sub { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.hm-form__fields { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.hm-form__fields input {
  height: 54px; border-radius: 16px;
  border: 1px solid var(--border); background: #f6f8f9;
  padding: 0 18px; font: 400 16px 'Urbanist', sans-serif; color: var(--ink);
  outline: none; width: 100%;
}
.hm-form__fields input:focus { border-color: var(--blue); background: #fff; }
.hm-form__areas { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-form__areas legend { float: none; width: 100%; font-size: 15px; color: var(--muted); margin: 18px 0 10px; padding: 0; }
.hm-form__areas label { margin: 0; cursor: pointer; }
.hm-form__areas input { position: absolute; opacity: 0; pointer-events: none; }
.hm-form__areas span {
  display: inline-block; border-radius: 999px; padding: 10px 16px;
  font: 500 14px 'Urbanist', sans-serif;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  transition: all .2s;
}
.hm-form__areas input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.hm-form__areas input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.hm-form__send {
  margin-top: 24px; width: 100%; height: 58px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 500 17px 'Urbanist', sans-serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s;
}
.hm-form__send:hover { background: var(--blue); }
.hm-form-done { padding: 40px 0; text-align: center; }
.hm-form-done__ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--ink); color: var(--amber); display: grid; place-items: center; }
.hm-form-done__t { margin-top: 18px; font-size: 26px; font-weight: 500; }
.hm-form-done p { margin: 8px auto 0; font-size: 16px; color: var(--muted); max-width: 320px; line-height: 1.5; }
/* =====================================================================
   PÁGINAS DE SOLUÇÃO (templates/solucoes/_base_solucao.html)
   ===================================================================== */
.hm-subhero {
  position: relative; overflow: hidden;
  padding: 28px var(--gutter) clamp(56px, 8vw, 112px);
  background:
    radial-gradient(55% 60% at 12% 0%, #fde5b8 0%, rgba(253,229,184,0) 70%),
    radial-gradient(50% 70% at 92% 10%, #c9dcea 0%, rgba(201,220,234,0) 70%),
    radial-gradient(55% 60% at 70% 100%, #e2d3dc 0%, rgba(226,211,220,0) 70%),
    #eef2f4;
}
.hm-subhero__body { position: relative; max-width: 1320px; margin: clamp(40px, 7vw, 96px) auto 0; }
.hm .hm-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 22px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: rgba(255,255,255,.6);
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.hm .hm-back:hover { background: #fff; color: var(--ink); }
.hm-subhero__title {
  margin: 14px 0 0; max-width: 1050px;
  font-weight: 300; font-size: clamp(44px, 6.5vw, 96px);
  line-height: 1; letter-spacing: -.035em; color: var(--ink);
  text-wrap: balance;
}
.hm-subhero__lead { margin: 24px 0 0; max-width: 680px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text2); text-wrap: pretty; }
.hm-subhero__ctas { margin-top: 30px; }

.hm .hm-btn--amber { background: var(--amber); color: var(--ink); }
.hm .hm-btn--amber:hover { background: #fff; color: var(--ink); }
.hm .hm-btn--light { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.hm .hm-btn--light:hover { background: rgba(255,255,255,.12); color: #fff; }

.hm-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.hm-stat { background: #fff; border-radius: 30px; padding: 28px; box-shadow: 0 1px 2px rgba(1,73,118,.05); }
.hm-stat__val { margin-top: 26px; font-size: clamp(34px, 3.4vw, 46px); font-weight: 300; letter-spacing: -.02em; line-height: 1.05; }
.hm-stat p { margin: 8px 0 0; font-size: 17px; line-height: 1.5; color: var(--text2); }

.hm-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hm-panel { background: #fff; border-radius: 30px; padding: 30px; box-shadow: 0 1px 2px rgba(1,73,118,.05); }

/* Galeria: cada card tem 1 foto larga ou 2 em pé, com a mesma altura. */
.hm-gallery { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.hm-shot { margin: 0; background: #fff; border-radius: 30px; padding: 10px; box-shadow: 0 1px 2px rgba(1,73,118,.05); }
.hm-shot__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hm-shot__imgs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; display: block; background: #dfe7ee; }
.hm-shot__imgs--one { grid-template-columns: 1fr; }
.hm-shot__imgs--one img { aspect-ratio: auto; height: 100%; min-height: 0; }
.hm-shot__imgs--one { aspect-ratio: 8 / 5.06; }
.hm-shot figcaption { display: flex; gap: 12px; align-items: flex-start; padding: 16px 10px 10px; font-size: 16px; line-height: 1.5; color: var(--text2); }
.hm-shot__n { flex: none; font-size: 14px; font-weight: 600; color: var(--plum); margin-top: 2px; }

/* Galeria de telas/prints (proporções variadas): mostra a imagem inteira. */
.hm-shot__imgs--screen { grid-template-columns: 1fr; }
.hm-shot__imgs--screen img { aspect-ratio: 4 / 3; object-fit: contain; background: #eef2f5; padding: 10px; }
.hm-shot__t { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 500; color: var(--ink); }
.hm-gallery--two {grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }

/* Passos compactos (listas longas de etapas, ex.: PCM). */
.hm-steps--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.hm-steps--compact .hm-stepcard { min-height: 0; padding: 26px; gap: 10px; }
.hm-steps--compact .hm-stepcard h3 { margin-top: 18px; font-size: 22px; }
.hm-steps--compact .hm-stepcard p { font-size: 16px; }

.hm-cta--simple { align-items: end; }
.hm-cta__actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (min-width: 900px) { .hm-cta__actions { align-items: flex-end; } }

.hm-others { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.hm .hm-solution--mini { min-height: 190px; padding: 24px; }
.hm-solution--mini h3 { font-size: 22px; }

.hm-form__isca { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hm-form__erro { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: #fdecea; color: #a3261b; font-size: 15px; }
.hm-form__send[disabled] { opacity: .6; cursor: progress; }
.hm .hm-form-done__wa {
  display: inline-flex; margin-top: 18px; padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500;
}
.hm .hm-form-done__wa:hover { background: var(--blue); color: #fff; }
.hm-form-done__back { display: block; margin-left: auto; margin-right: auto; }
.hm-form-done__back {margin-top: 18px; background: none; border: 0; color: var(--blue); font: 500 15px 'Urbanist', sans-serif; cursor: pointer; text-decoration: underline; }
