/*
 * FOTOGRAFUS · Home (public/index.html) · redesign aprovado (outubro/2026)
 *
 * Complementa fotografus-site.css (carregada antes desta folha):
 *   <link rel="stylesheet" href="/assets/css/site-home.css?v=20261013-redesign">
 * Classes hm-* existem só nesta página e só têm efeito dentro de body.fs-site.
 * As ilustrações (painel, turma e celular) não mostram números nem nomes de clientes.
 */

/* ==========================================================================
   Utilitários da página
   ========================================================================== */

/* Cor de apoio aplicada ao texto (use junto de fs-teal, fs-copper, fs-blue...). */
.fs-site .hm-tone { color: var(--fs-tone-fg, var(--fs-muted)); }
.fs-site .hm-dim { color: var(--fs-dim); }

/* Cabeçalho de seção sem limite de largura (título curto em uma linha, como no layout). */
.fs-site .hm-head-fit { max-width: none; }

/* Larguras das barras ilustrativas (sem estilo em linha). */
.fs-site .hm-fill-100 { width: 100%; }
.fs-site .hm-fill-70 { width: 70%; }
.fs-site .hm-fill-68 { width: 68%; }

/* ==========================================================================
   Abertura: ilustração do painel do estúdio
   ========================================================================== */

.fs-site .hm-hero-visual { margin-bottom: 8px; }

.fs-site .hm-app {
  display: flex;
  min-width: 0;
}

.fs-site .hm-app-rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 56px;
  padding: 16px 0;
  border-right: 1px solid var(--fs-line);
}

.fs-site .hm-app-rail img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.fs-site .hm-rail-item {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--fs-line-strong);
}

.fs-site .hm-rail-item.hm-rail-active { background: var(--fs-primary); }

.fs-site .hm-app-main { flex: 1 1 auto; }

.fs-site .hm-app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
}

.fs-site .hm-app-kicker {
  margin: 0;
  color: var(--fs-faint);
  font-size: 12px;
  line-height: 1.4;
}

.fs-site .hm-app-title {
  margin: 0;
  color: var(--fs-text);
  font-family: var(--fs-font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.fs-site .hm-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fs-site .hm-kpi-label {
  margin: 0;
  color: var(--fs-dim);
  font-size: 11px;
  line-height: 1.35;
}

.fs-site .hm-kpi-value {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.fs-site .hm-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 10px;
}

.fs-site .hm-tile-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fs-site .hm-tile-agenda { gap: 8px; }

.fs-site .hm-tile-title {
  margin: 0;
  color: var(--fs-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.fs-site .hm-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.fs-site .hm-thumbs img {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: var(--fs-radius-xs);
}

.fs-site .hm-thumbs img.hm-picked { outline: 2px solid var(--fs-copper); }

.fs-site .hm-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--fs-dim);
  font-size: 11px;
  line-height: 1.4;
}

.fs-site .hm-agenda-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.35;
}

.fs-site .hm-agenda-item::before {
  content: "";
  flex: none;
  width: 3px;
  height: 26px;
  border-radius: 2px;
  background: var(--fs-tone-solid, var(--fs-primary));
}

.fs-site .hm-agenda-item.hm-agenda-primary::before { background: var(--fs-primary); }

.fs-site .hm-agenda-item > div { min-width: 0; }

.fs-site .hm-agenda-item strong {
  display: block;
  color: var(--fs-text);
  font-weight: 700;
}

.fs-site .hm-agenda-item span {
  display: block;
  color: var(--fs-dim);
}

.fs-site .hm-float-title {
  margin: 0;
  color: var(--fs-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.fs-site .hm-float-note {
  margin: 0;
  color: var(--fs-dim);
  font-size: 12px;
  line-height: 1.4;
}

/* ==========================================================================
   Segmentos
   ========================================================================== */

.fs-site .hm-segments-title {
  margin: 0;
  color: var(--fs-dim);
  font-family: var(--fs-font-ui);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
}

/* ==========================================================================
   Formaturas em lote
   ========================================================================== */

.fs-site .fs-checks > li.hm-check-soon > svg { color: var(--fs-warn); }

.fs-site .hm-check-soon > span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.fs-site .hm-lote {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fs-site .hm-lote-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fs-site .hm-lote-name {
  margin: 0;
  color: var(--fs-text);
  font-family: var(--fs-font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.fs-site .hm-progress {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fs-site .hm-progress-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fs-site .hm-progress-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  color: var(--fs-text-2);
  font-size: 14px;
  line-height: 1.45;
}

.fs-site .hm-progress-meta b {
  color: var(--fs-text);
  font-weight: 700;
}

.fs-site .hm-students {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fs-site .hm-student {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.fs-site .hm-student img {
  display: block;
  width: 100%;
  height: 84px;
  object-fit: cover;
  border-radius: var(--fs-radius-sm);
}

.fs-site .hm-student figcaption {
  color: var(--fs-muted);
  font-size: 12px;
  line-height: 1.4;
}

.fs-site .hm-student-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  border: 1px dashed var(--fs-line-strong);
  border-radius: var(--fs-radius-sm);
  background: var(--fs-surface-2);
  color: var(--fs-muted);
  font-size: 13px;
  text-align: center;
}

/* ==========================================================================
   Programas e ORYSIA
   ========================================================================== */

.fs-site .hm-orysia-copy {
  display: flex;
  flex: 1 1 480px;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.fs-site .hm-orysia-title { font-size: 20px; }

.fs-site .hm-orysia-text {
  margin: 4px 0 0;
  color: var(--fs-orysia-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ==========================================================================
   Aplicativo do cliente
   ========================================================================== */

.fs-site .hm-split-app { gap: 64px; }

.fs-site .hm-phone-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 18px 14px;
}

.fs-site .hm-phone-kicker {
  color: var(--fs-dim);
  font-size: 11px;
}

.fs-site .hm-phone-title {
  color: var(--fs-text);
  font-family: var(--fs-font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.fs-site .hm-phone-hint {
  color: var(--fs-copper);
  font-size: 11px;
}

.fs-site .hm-phone-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 4px;
  min-height: 0;
  padding: 0 4px;
  overflow: hidden;
}

.fs-site .hm-phone-grid img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.fs-site .hm-phone-grid img.hm-phone-right { object-position: right; }

.fs-site .hm-phone-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--fs-line);
  color: var(--fs-text);
  font-size: 12px;
}

.fs-site .hm-phone-cta {
  padding: 8px 12px;
  border-radius: var(--fs-radius-sm);
  background: var(--fs-primary-fill);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.fs-site .hm-app-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fs-site .hm-app-item {
  padding: 16px;
  color: var(--fs-text);
  font-size: 15px;
  line-height: 1.4;
}

.fs-site .hm-app-store { margin: 0; }

/* ==========================================================================
   Planos
   ========================================================================== */

.fs-site .hm-plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* billing-plans.js esconde planos inativos com o atributo hidden. */
.fs-site .hm-plan[hidden] { display: none; }

.fs-site .hm-plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.fs-site .hm-plan-name {
  margin: 0;
  color: var(--fs-text);
  font-family: var(--fs-font-ui);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.fs-site .hm-plan-lines {
  display: flex;
  flex-direction: column;
  color: var(--fs-muted);
  font-size: 14px;
  line-height: 1.8;
}

.fs-site .hm-plan-lines > [role="listitem"] { display: block; }

.fs-site .hm-plan > .fs-btn { margin-top: auto; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 640px) {
  .fs-site .hm-hero-visual { margin-bottom: 0; }
  .fs-site .hm-app-rail { display: none; }
  .fs-site .hm-app-main { padding: 16px; }
  .fs-site .hm-kpis { gap: 8px; }
  .fs-site .hm-kpis > .fs-tile { padding: 10px; }
  .fs-site .hm-kpi-value { font-size: 13px; }
  .fs-site .hm-orysia-copy { flex-basis: 100%; }
}

@media (max-width: 560px) {
  .fs-site .hm-app-grid { grid-template-columns: minmax(0, 1fr); }
  .fs-site .hm-split-app { gap: 40px; }

  /* Segmentos em duas colunas para não empilhar cinco fotos altas. */
  .fs-site .hm-segments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .fs-site .hm-segments > .fs-media { height: 150px; }
  .fs-site .hm-segments > .fs-media:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  /* Indicadores em linhas: rótulo à esquerda, situação à direita. */
  .fs-site .hm-kpis { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fs-site .hm-kpis > .fs-tile {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 12px;
    padding: 10px 12px;
  }
  .fs-site .hm-kpi-value { margin: 0; }
  .fs-site .hm-students { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-site .hm-orysia-copy { flex-direction: column; align-items: flex-start; }
  .fs-site .hm-orysia .fs-btn { width: 100%; }
}
