/*
 * Página de agências (mkt.dorckcoding.com/agencies/): só o que é desta página. O resto (tokens,
 * botões, cards, formulário, agendador, rodapé...) está em ../assets/base.css, carregado antes.
 */

/* ── Hero: barra de progresso do relatório semanal ─────────────────────────── */
.progress { margin-top: 1rem; }
.progress-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 500; }
.progress-top .mono { font-size: 0.6875rem; font-weight: 400; color: var(--zinc-500); }
.progress-track { height: 0.25rem; overflow: hidden; border-radius: var(--radius-xs); background: var(--zinc-100); }
.progress-bar { width: 64%; height: 100%; border-radius: var(--radius-xs); background: var(--brand-500); }

/* ── Ilustrações dos cards de benefícios ───────────────────────────────────── */
/* Barras: meses cheios altos (o maior em azul) e meses fracos quase em zero. */
.bars { display: flex; align-items: flex-end; gap: 0.375rem; height: 2.75rem; margin-top: 0.625rem; }
.bars span { flex: 1; border-radius: var(--radius-xs); background: var(--zinc-200); }
.bars span:nth-child(1) { height: 68%; }
.bars span:nth-child(2) { height: 44%; }
.bars span:nth-child(3) { height: 6%; }
.bars span:nth-child(4) { height: 100%; }
.bars span:nth-child(5) { height: 30%; }
.bars span:nth-child(6) { height: 6%; }
.bars .is-high { background: var(--brand-500); }
/* Marca da agência em destaque; a da Dorck, tracejada, atrás. */
.brand-chip { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0 0.5rem; padding: 0.375rem 0.5rem; border: 1px solid var(--zinc-950); border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; color: var(--zinc-950); }
.brand-chip .report-logo { width: 1rem; height: 1rem; }
.brand-chip .report-logo::after { inset: 0.28125rem; }
.brand-chip-back { margin-bottom: 0; border: 1px dashed var(--zinc-300); background: var(--zinc-50); font-weight: 500; color: var(--zinc-600); }
.brand-chip-back .icon { width: 1rem; height: 0.875rem; }

/* ── Calculadora (CostCalculator.vue): campos de um lado, resultado do outro ── */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 2.5rem; padding: 0; overflow: hidden; }
.calc-fields { display: grid; gap: 1.5rem; padding: 1.5rem; }
/* Controle deslizante (RangeField.vue do site), com trilho e botão próprios. */
/* No celular o valor fica embaixo do rótulo (os rótulos são longos); lado a lado a partir de 640px. */
.range-top { display: flex; flex-direction: column; gap: 0.25rem; }
.range-top label { font-size: 0.875rem; font-weight: 500; line-height: 1.4; }
.range-top output { flex-shrink: 0; font-weight: 500; white-space: nowrap; }
.range input {
  /* Parte preenchida do trilho, atualizada pelo lp.js. */
  --fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 2.5rem;
  margin-top: 0.125rem;
  background: transparent;
  cursor: pointer;
}
/* Trilho: azul até o botão e cinza depois. O linear-gradient aqui é um corte seco entre duas cores
   (não um degradê): é o jeito de pintar o trecho preenchido no Chrome e no Safari. */
.range input::-webkit-slider-runnable-track { height: 0.25rem; border-radius: var(--radius-xs); background: linear-gradient(to right, var(--brand-500) var(--fill), var(--zinc-200) var(--fill)); }
.range input::-moz-range-track { height: 0.25rem; border-radius: var(--radius-xs); background: var(--zinc-200); }
.range input::-moz-range-progress { height: 0.25rem; border-radius: var(--radius-xs); background: var(--brand-500); }
/* Botão: quadrado preto de cantos de 4px, como os CTAs. */
.range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -0.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--zinc-950);
  box-shadow: var(--shadow-sm);
}
.range input::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--zinc-950);
  box-shadow: var(--shadow-sm);
}
.range input:hover::-webkit-slider-thumb { background: var(--zinc-800); }
.range input:hover::-moz-range-thumb { background: var(--zinc-800); }
.range-limits { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.75rem; color: var(--zinc-600); }
.calc-source { font-size: 0.8125rem; line-height: 1.5; color: var(--zinc-500); }
.calc-result { display: flex; flex-direction: column; padding: 1.5rem; border-top: 1px solid var(--zinc-200); background: var(--zinc-50); }
.calc-label { font-size: 0.875rem; font-weight: 500; color: var(--zinc-600); }
.calc-value {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  /* Valor perdido em vermelho, como no comparativo de custo da calculadora do MVP no site. */
  color: var(--red-600);
}
.calc-value.is-long { font-size: 1.625rem; }
.calc-note { min-height: 2.75rem; margin-top: 0.625rem; font-size: 0.875rem; line-height: 1.5; color: var(--zinc-600); }
.calc-result .btn { margin-top: 1.25rem; }

/* ── Quem está por trás (CtaBanner.vue com foto): foto da equipe em P&B de fundo, sob um véu escuro
   chapado (sem degradê), e texto claro por cima ─────────────────────────────── */
.team { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-sm); background: var(--zinc-950); color: #fff; }
.team picture img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right; filter: grayscale(1); }
/* 70% é o mínimo para o texto claro passar no contraste até sobre a parte mais clara da foto. */
.team::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(9 9 11 / 0.7); }
.team-text { max-width: 40rem; padding: 3.5rem 1.5rem; }
/* No escuro, o destaque do título usa o azul mais claro (como o RichText do site). */
.team .mark { color: var(--brand-400); }
.team-quote { margin-top: 1.5rem; padding-left: 1.25rem; border-left: 2px solid #fff; font-size: 1.1875rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.015em; text-wrap: pretty; }
/* Quem assina a frase: retrato em P&B ao lado do nome. */
.team-author { display: flex; align-items: center; gap: 0.875rem; margin-top: 1.5rem; }
.team-author img { flex-shrink: 0; width: 3.5rem; height: 3.5rem; border-radius: var(--radius-sm); background: var(--zinc-800); object-fit: cover; filter: grayscale(1); }
.team-name { display: grid; gap: 0.125rem; }
.team-name strong { font-weight: 600; }
.team-name span { color: var(--zinc-300); }

/* ── A partir de 640px ─────────────────────────────────────────────────────── */
@media (min-width: 40rem) {
  .calc-fields, .calc-result { padding: 2rem; }
  .range-top { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .calc-value { font-size: 2.75rem; }
  .calc-value.is-long { font-size: 2rem; }
  .calc-result .btn { align-self: flex-start; }
  .team-text { padding: 5rem 2.5rem; }
  .team-quote { font-size: 1.375rem; }
}

/* ── A partir de 1024px ────────────────────────────────────────────────────── */
@media (min-width: 64rem) {
  .calc { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 3rem; }
  .calc-fields { grid-column: span 7; }
  .calc-result { grid-column: span 5; justify-content: center; border-top: 0; border-left: 1px solid var(--zinc-200); }
  .team-text { padding: 6rem 4rem; }
}
