/*
  Gestão para síndicos (/produtos/gestao-sindicos) — visual v5.
  Fonte: Paper, "Matias · M22 Gestão para síndicos" (1440) e "M22m" (390).
*/
.p5-sd { background: var(--color-paper); overflow-x: clip; }

.p5-sd__h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 76px; font-weight: 800; letter-spacing: -0.05em; line-height: 76px;
  color: var(--color-ink);
}
.p5-sd__h2 {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: 56px; font-weight: 800; letter-spacing: -0.045em; line-height: 58px;
  color: var(--color-ink);
}
.p5-sd__lead { margin: 0; max-width: 560px; font-size: 18px; line-height: 28px; color: #3F3F46; }

/* Pílula preta com ícone âmbar (variante escura do .h5-tag). */
.p5-sd__tag {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 6px 16px 6px 6px;
  background: var(--color-ink);
  border-radius: 999px;
  font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 18px;
  color: #fff;
}
.p5-sd__tag-ic { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; background: var(--color-amber); }

.p5-sd__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 24px;
  border: 2px solid var(--color-ink);
  border-radius: 14px;
  font-family: var(--font-display); font-size: 17px; font-weight: 800; line-height: 22px;
  color: var(--color-ink);
  white-space: nowrap;
}
.p5-sd__btn--amber { background: var(--color-amber); box-shadow: var(--color-ink) 4px 4px 0; }
.p5-sd__btn--paper { background: #fff; padding-inline: 22px; font-weight: 700; }
.p5-sd__btn--ink { display: flex; padding: 14px; background: var(--color-ink); border: 0; color: #fff; font-size: 16px; line-height: 20px; }

/* ================= Hero ================= */
.p5-sd__hero { padding: 72px 0 88px; background: var(--color-amber-50); border-bottom: 2px solid var(--color-ink); }
.p5-sd__hero-wrap { display: flex; align-items: center; gap: 56px; }
.p5-sd__hero-txt { display: flex; flex-direction: column; gap: 20px; flex: 1 1 0; min-width: 0; }
.p5-sd__ctas { display: flex; gap: 12px; padding-top: 8px; }

.p5-sd__painel {
  display: flex; flex-direction: column; gap: 16px; flex: 0 0 460px;
  padding: 24px;
  background: var(--color-ink);
  border-radius: 24px;
  box-shadow: var(--color-amber) 8px 8px 0;
}
.p5-sd__painel-top { display: flex; align-items: center; justify-content: space-between; }
.p5-sd__painel-top strong { font-family: var(--font-display); font-size: 16px; font-weight: 800; line-height: 20px; color: #fff; }
.p5-sd__painel-top span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; line-height: 14px; color: var(--color-amber); }
.p5-sd__kpis { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.p5-sd__kpis li { display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-width: 0; padding: 14px; background: var(--dk-surface); border: 1.5px solid var(--dk-line); border-radius: 14px; }
.p5-sd__kpis b { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 32px; color: #fff; }
.p5-sd__kpis b.is-amber { color: var(--color-amber); }
.p5-sd__kpis li > span { font-size: 12px; line-height: 16px; color: var(--dk-muted); }
.p5-sd__agenda { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; background: var(--dk-surface); border: 1.5px solid var(--dk-line); border-radius: 14px; }
.p5-sd__agenda li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-top: 1.5px solid var(--dk-line); }
.p5-sd__agenda li:first-child { border-top: 0; }
.p5-sd__agenda li > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p5-sd__agenda strong { font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 18px; color: #fff; }
.p5-sd__agenda small { font-size: 12px; line-height: 16px; color: var(--dk-muted); }
.p5-sd__agenda em { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; font-family: var(--font-display); font-style: normal; font-size: 11px; font-weight: 800; line-height: 14px; color: var(--color-ink); }
.p5-sd__agenda em.is-teal { background: var(--color-teal); }
.p5-sd__agenda em.is-ok { background: var(--color-success); }
.p5-sd__agenda em.is-amber { background: var(--color-amber); }

/* ================= Recursos ================= */
.p5-sd__rec { padding: 96px 0 72px; }
.p5-sd__rec-wrap { display: flex; flex-direction: column; gap: 36px; }
.p5-sd__cards { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.p5-sd__cards li { display: flex; flex-direction: column; gap: 14px; flex: 1 1 0; min-width: 0; padding: 28px; background: #fff; border: 2px solid var(--color-ink); border-radius: 20px; box-shadow: var(--color-ink) 6px 6px 0; }
.p5-sd__cards li.is-amber { box-shadow: var(--color-amber) 6px 6px 0; }
.p5-sd__cards strong { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 26px; color: var(--color-ink); }
.p5-sd__cards li > span { font-size: 15px; line-height: 23px; color: #3F3F46; }
.p5-sd__ic { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; background: #fff; border: 2px solid var(--color-ink); border-radius: 12px; }
.p5-sd__ic--amber { background: var(--color-amber); }
.p5-sd__ic--teal { background: var(--color-teal); }

/* ================= Depoimento + CTA ================= */
.p5-sd__dep { padding-block: 80px; background: var(--color-teal-50); border-top: 2px solid var(--color-ink); }
.p5-sd__dep-wrap { display: flex; align-items: center; justify-content: center; gap: 56px; }
/* Sem depoimento, o cartão de CTA fica sozinho e centralizado. */
.p5-sd__dep-wrap > .p5-sd__cta:only-child { flex: 0 1 560px; }
.p5-sd__quote { display: flex; flex-direction: column; gap: 20px; flex: 1 1 0; min-width: 0; margin: 0; }
.p5-sd__quote blockquote { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 42px; color: var(--color-ink); }
.p5-sd__quote figcaption { display: flex; align-items: center; gap: 12px; }
.p5-sd__av { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; background: var(--color-amber); border: 2px solid var(--color-ink); border-radius: 999px; font-family: var(--font-display); font-size: 15px; font-weight: 800; line-height: 18px; }
.p5-sd__quote figcaption > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.p5-sd__quote figcaption strong { font-family: var(--font-display); font-size: 15px; font-weight: 800; line-height: 20px; color: var(--color-ink); }
.p5-sd__quote figcaption small { font-size: 13px; line-height: 18px; color: #52525B; }
.p5-sd__cta { display: flex; flex-direction: column; gap: 14px; flex: 0 0 380px; padding: 28px; background: var(--color-amber); border: 2px solid var(--color-ink); border-radius: 24px; box-shadow: var(--color-ink) 8px 8px 0; }
.p5-sd__cta h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 32px; color: var(--color-ink); }
.p5-sd__cta p { margin: 0; font-size: 15px; line-height: 22px; color: var(--color-ink); }

/* ================= Faixa intermediária ================= */
@media (max-width: 1240px) {
  .p5-sd__h1 { font-size: 62px; line-height: 64px; }
  .p5-sd__h2 { font-size: 48px; line-height: 50px; }
  .p5-sd__painel { flex-basis: 420px; }
  .p5-sd__quote blockquote { font-size: 28px; line-height: 36px; }
  .p5-sd__cta { flex-basis: 340px; }
}
@media (max-width: 1080px) {
  .p5-sd__h1 { font-size: 52px; line-height: 54px; }
  .p5-sd__hero-wrap { gap: 36px; }
  .p5-sd__painel { flex-basis: 380px; padding: 20px; }
  .p5-sd__kpis b { font-size: 24px; line-height: 28px; }
  .p5-sd__ctas { flex-wrap: wrap; }
  .p5-sd__cards li { padding: 22px; }
}

/* ================= Celular (M22m) ================= */
@media (max-width: 899.98px) {
  .p5-sd__hero { padding: 24px 0 32px; }
  .p5-sd__hero-wrap { flex-direction: column; align-items: stretch; gap: 16px; }
  .p5-sd__hero-txt { flex: none; gap: 16px; }
  .p5-sd__tag { gap: 0; padding: 5px 12px; font-size: 12px; line-height: 16px; }
  .p5-sd__tag-ic { display: none; }
  .p5-sd__h1 { font-size: 40px; line-height: 40px; }
  .p5-sd__lead { font-size: 15px; line-height: 22px; }
  .p5-sd__ctas { flex-direction: column; gap: 16px; padding-top: 0; }
  .p5-sd__ctas .p5-sd__btn { width: 100%; padding: 14px; border-radius: 12px; font-size: 15px; line-height: 20px; }
  .p5-sd__ctas .p5-sd__btn--paper { padding: 13px; }
  .p5-sd__painel { flex: none; gap: 12px; padding: 16px; border-radius: 18px; box-shadow: var(--color-amber) 5px 5px 0; margin-right: 5px; }
  .p5-sd__painel-top strong { font-size: 14px; font-weight: 700; line-height: 18px; }
  .p5-sd__painel-top span { font-size: 10px; }
  .p5-sd__kpis { gap: 8px; }
  .p5-sd__kpis li { padding: 10px; background: none; border-radius: 10px; }
  .p5-sd__kpis b { font-size: 20px; line-height: 24px; }
  .p5-sd__kpis li > span { font-size: 10px; line-height: 13px; }
  .p5-sd__agenda { background: none; border-radius: 10px; }
  .p5-sd__agenda li { padding: 10px 12px; }
  .p5-sd__agenda strong { font-size: 12px; line-height: 16px; }
  .p5-sd__agenda small { font-size: 10px; line-height: 13px; }
  .p5-sd__agenda em { padding: 2px 8px; font-size: 10px; font-weight: 700; }

  .p5-sd__rec { padding-block: 32px; }
  .p5-sd__rec-wrap { gap: 16px; }
  .p5-sd__h2 { font-size: 28px; line-height: 32px; letter-spacing: -0.04em; }
  .p5-sd__cards { flex-direction: column; gap: 16px; margin-right: 5px; }
  .p5-sd__cards li { gap: 8px; padding: 18px; border-radius: 16px; box-shadow: var(--color-ink) 5px 5px 0; }
  .p5-sd__cards li.is-amber { box-shadow: var(--color-amber) 5px 5px 0; }
  .p5-sd__ic { width: 36px; height: 36px; border-radius: 10px; }
  .p5-sd__ic svg { width: 18px; height: 18px; }
  .p5-sd__cards strong { font-size: 18px; line-height: 22px; letter-spacing: 0; }
  .p5-sd__cards li > span { font-size: 13px; line-height: 19px; color: #52525B; }

  .p5-sd__dep { padding: 32px 0 40px; }
  .p5-sd__dep-wrap { flex-direction: column; align-items: stretch; gap: 20px; }
  .p5-sd__quote { flex: none; gap: 20px; }
  .p5-sd__quote blockquote { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 28px; }
  .p5-sd__quote figcaption { gap: 10px; }
  .p5-sd__av { width: 38px; height: 38px; border-width: 1.5px; font-size: 13px; line-height: 16px; }
  .p5-sd__quote figcaption > span:last-child { gap: 0; }
  .p5-sd__quote figcaption strong { font-size: 14px; font-weight: 700; line-height: 18px; }
  .p5-sd__quote figcaption small { font-size: 12px; line-height: 16px; }
  .p5-sd__cta { flex: none; gap: 12px; padding: 20px; border-radius: 18px; box-shadow: var(--color-ink) 5px 5px 0; margin-right: 5px; }
  .p5-sd__cta h2 { font-size: 24px; line-height: 28px; }
  .p5-sd__cta p { font-size: 13px; line-height: 19px; }
  .p5-sd__btn--ink { padding: 12px; border-radius: 10px; font-size: 14px; line-height: 18px; }
}
