/* Afya iClinic — camada v7 de páginas internas.
   Componentes novos usados pelas páginas de especialidade, personas,
   assinatura digital, migração, contato, recepcionista e páginas legais.
   Carregada depois de pages.css, só nas páginas que usam. */

/* ---------- Eyebrow / selo de seção ---------- */
.v7-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--v6-blue-140);
  background: var(--v6-alice);
  color: var(--v6-royal);
  font-family: var(--v6-font-cta);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v7-eyebrow-solid {
  border-color: transparent;
  background: var(--v6-blue);
  color: #ffffff;
}

/* Destaque tipográfico numa palavra do título (grifo de marca-texto) */
.v7-mark {
  position: relative;
  white-space: nowrap;
}

.v7-mark::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.06em;
  height: 0.34em;
  border-radius: 4px;
  background: var(--v6-blue-150);
  z-index: -1;
}

.v7-mark-pink::after {
  background: rgba(206, 0, 88, 0.18);
}

/* ---------- Hero de página em duas colunas com painel de prova ---------- */
.v7-hero {
  padding-top: clamp(24px, 3vw, 44px);
}

.v7-hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 60px);
  border-radius: var(--v6-radius-block);
  background: linear-gradient(160deg, var(--v6-navy) 0%, var(--v6-prussian) 52%, var(--v6-royal) 100%);
  color: #ffffff;
  overflow: hidden;
}

.v7-hero-band h1 {
  margin: 0 0 16px;
  font-size: var(--v6-fs-h2-lg);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.v7-hero-band .v7-eyebrow {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.v7-hero-sub {
  max-width: 46ch;
  margin: 0 0 24px;
  font-size: var(--v6-fs-body-lg);
  color: rgba(255, 255, 255, 0.86);
}

.v7-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.v7-hero-note {
  display: block;
  margin-top: 14px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Painel de prova do hero: números, checklist ou mini-card de produto */
.v7-hero-panel {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2vw, 26px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(2px);
}

.v7-hero-panel h2 {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.v7-hero-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v7-hero-panel li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.92);
}

.v7-hero-panel li::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  /* Traço branco: o check.svg do repositório é preto (feito para máscara CSS) */
  background: rgba(255, 255, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* b e span ocupam a 2ª coluna (o ::before já ocupa a 1ª na linha 1) */
.v7-hero-panel li > * {
  grid-column: 2;
}

.v7-hero-panel li b {
  display: block;
  font-weight: 700;
}

.v7-hero-panel li span {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 900px) {
  .v7-hero-band {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Faixa de números ---------- */
.v7-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  border-radius: var(--v6-radius-block);
  background: var(--v6-blue-150);
  overflow: hidden;
}

.v7-stat {
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--v6-alice);
  text-align: left;
}

.v7-stat dt {
  font-size: 0.9rem;
  color: var(--v6-madison);
}

.v7-stat dd {
  margin: 0 0 6px;
  font-family: var(--v6-font-cta);
  font-size: clamp(1.9rem, 1.2rem + 2vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--v6-royal);
}

/* ---------- Timeline "o seu dia com o Afya iClinic" ---------- */
.v7-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: v7step;
}

.v7-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(18px, 2vw, 26px) 0;
  border-top: 1px solid var(--v6-blue-150);
  counter-increment: v7step;
}

.v7-timeline li:last-child {
  border-bottom: 1px solid var(--v6-blue-150);
}

.v7-timeline li::before {
  content: counter(v7step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--v6-alice);
  color: var(--v6-blue);
  font-family: var(--v6-font-cta);
  font-size: 1rem;
  font-weight: 800;
}

.v7-timeline h3 {
  margin: 0 0 6px;
  font-size: var(--v6-fs-h3);
  font-weight: 700;
  color: var(--v6-navy);
}

.v7-timeline p {
  margin: 0;
  max-width: 66ch;
  color: var(--v6-muted);
}

.v7-timeline .v7-timeline-when {
  display: block;
  margin-bottom: 4px;
  font-family: var(--v6-font-cta);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--v6-blue);
}

/* ---------- Cards com ícone ---------- */
.v7-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v7-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--v6-blue-150);
  border-radius: 20px;
  background: #ffffff;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

a.v7-card {
  text-decoration: none;
  color: inherit;
}

a.v7-card:hover,
a.v7-card:focus-visible {
  border-color: var(--v6-blue-140);
  transform: translateY(-3px);
  box-shadow: var(--v6-shadow-card);
}

.v7-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--v6-alice);
}

.v7-card-icon .v6-icon {
  width: 22px;
  height: 22px;
  background-color: var(--v6-blue);
}

.v7-card h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--v6-navy);
}

.v7-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--v6-muted);
}

.v7-card-tag {
  margin-top: auto;
  font-family: var(--v6-font-cta);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--v6-blue);
}

/* ---------- Split: copy + arte/tela ---------- */
.v7-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.v7-split-reverse > *:first-child {
  order: 2;
}

.v7-split-media img,
.v7-split-media svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--v6-radius-block);
}

@media (max-width: 900px) {
  .v7-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .v7-split-reverse > *:first-child {
    order: 0;
  }
}

/* ---------- Faixa de confiança / conformidade ---------- */
/* Faixa escura de confiança. Flex em vez de grid com auto-fit: auto-fit criava
   trilhas fantasma e a distribuição saía irregular. Divisória vertical entre as
   colunas para o olho ler quatro blocos, não um bloco de texto corrido. */
.v7-trust {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 36px);
  border-radius: var(--v6-radius-block);
  background: var(--v6-navy);
  color: #ffffff;
  list-style: none;
  row-gap: clamp(24px, 2.6vw, 32px);
}

.v7-trust li {
  flex: 1 1 200px;
  min-width: 0;
  padding-inline: clamp(16px, 1.8vw, 26px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

/* Primeiro item de cada linha não leva divisória nem recuo à esquerda */
.v7-trust li:first-child {
  padding-left: 0;
  border-left: 0;
}

.v7-trust li:last-child {
  padding-right: 0;
}

@media (max-width: 900px) {
  .v7-trust li {
    flex-basis: calc(50% - 1px);
  }

  .v7-trust li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .v7-trust li {
    flex-basis: 100%;
    padding-left: 0;
    border-left: 0;
  }
}



.v7-trust strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.3;
}

.v7-trust span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Índice de especialidades ---------- */
.v7-esp-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.v7-esp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--v6-blue-150);
  border-radius: 999px;
  background: #ffffff;
  color: var(--v6-royal);
  font-family: var(--v6-font-cta);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.v7-esp-chip:hover,
.v7-esp-chip:focus-visible {
  border-color: var(--v6-blue-140);
  background: var(--v6-alice);
}

.v7-esp-chip[aria-pressed="true"] {
  border-color: transparent;
  background: var(--v6-blue);
  color: #ffffff;
}

/* 3 colunas fixas: as 9 especialidades fecham em 3 linhas cheias. Com
   auto-fill davam 4 colunas e a última linha ficava com buraco. */
.v7-esp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v7-esp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--v6-blue-150);
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.v7-esp-card:hover,
.v7-esp-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--v6-blue-140);
  box-shadow: var(--v6-shadow-card);
}

.v7-esp-card-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--v6-alice);
}

.v7-esp-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 20px 22px 22px;
}

.v7-esp-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--v6-navy);
}

.v7-esp-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--v6-muted);
}

.v7-esp-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--v6-font-cta);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--v6-blue);
}

.v7-esp-card-badge {
  align-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--v6-alice);
  color: var(--v6-royal);
  font-family: var(--v6-font-cta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Card "sua especialidade não está aqui?" */
.v7-esp-card-ghost {
  justify-content: center;
  border-style: dashed;
  background: var(--v6-alice);
}

.v7-esp-empty {
  padding: 28px;
  border: 1px dashed var(--v6-blue-140);
  border-radius: 20px;
  background: var(--v6-alice);
  color: var(--v6-madison);
  text-align: center;
}

/* ---------- Páginas legais: sumário + texto corrido ---------- */
.v7-legal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.v7-legal-toc {
  position: sticky;
  top: calc(var(--v6-header-h) + 24px);
  padding: 20px;
  border: 1px solid var(--v6-blue-150);
  border-radius: 18px;
  background: var(--v6-alice);
}

.v7-legal-toc h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v6-madison);
}

.v7-legal-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 0.92rem;
}

.v7-legal-toc a {
  color: var(--v6-royal);
  text-decoration: none;
}

.v7-legal-toc a:hover,
.v7-legal-toc a:focus-visible {
  text-decoration: underline;
}

.v7-prose {
  max-width: 74ch;
}

.v7-prose h2 {
  margin: 40px 0 12px;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--v6-navy);
  scroll-margin-top: calc(var(--v6-header-h) + 24px);
}

.v7-prose h2:first-child {
  margin-top: 0;
}

.v7-prose h3 {
  margin: 24px 0 8px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--v6-navy);
}

.v7-prose p,
.v7-prose li {
  color: var(--v6-text);
}

.v7-prose p {
  margin: 0 0 14px;
}

.v7-prose ul,
.v7-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.v7-prose a {
  color: var(--v6-blue);
}

.v7-prose-updated {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--v6-alice);
  font-size: 0.84rem;
  color: var(--v6-madison);
}

.v7-callout {
  margin: 0 0 20px;
  padding: 18px 20px;
  border-left: 4px solid var(--v6-blue);
  border-radius: 0 14px 14px 0;
  background: var(--v6-alice);
  font-size: 0.95rem;
  color: var(--v6-madison);
}

@media (max-width: 900px) {
  .v7-legal {
    grid-template-columns: minmax(0, 1fr);
  }

  .v7-legal-toc {
    position: static;
  }
}

/* ---------- Tabela ---------- */
.v7-table-wrap {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--v6-blue-150);
  border-radius: 16px;
}

.v7-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.v7-table th,
.v7-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--v6-blue-150);
}

.v7-table thead th {
  background: var(--v6-alice);
  font-weight: 700;
  color: var(--v6-navy);
  white-space: nowrap;
}

.v7-table tbody tr:last-child th,
.v7-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Formulário ---------- */
.v7-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--v6-blue-150);
  border-radius: var(--v6-radius-block);
  background: #ffffff;
}

.v7-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.v7-field {
  display: grid;
  gap: 6px;
}

.v7-field > span {
  font-family: var(--v6-font-cta);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--v6-navy);
}

.v7-field input,
.v7-field select,
.v7-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--v6-blue-150);
  border-radius: 12px;
  font-family: var(--v6-font);
  font-size: 0.96rem;
  color: var(--v6-text);
  background: #ffffff;
}

.v7-field input:focus-visible,
.v7-field select:focus-visible,
.v7-field textarea:focus-visible {
  outline: 2px solid var(--v6-blue);
  outline-offset: 1px;
  border-color: var(--v6-blue);
}

.v7-field textarea {
  min-height: 120px;
  resize: vertical;
}

.v7-field-hint {
  font-size: 0.84rem;
  color: var(--v6-muted);
}

.v7-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.9rem;
  color: var(--v6-muted);
}

.v7-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* ---------- Grade de canais de contato ---------- */
.v7-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v7-channel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: clamp(20px, 2.2vw, 26px);
  border: 1px solid var(--v6-blue-150);
  border-radius: 20px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.v7-channel:hover,
.v7-channel:focus-visible {
  transform: translateY(-3px);
  border-color: var(--v6-blue-140);
  box-shadow: var(--v6-shadow-card);
}

.v7-channel-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v7-channel h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--v6-navy);
}

.v7-channel-when {
  font-size: 0.84rem;
  color: var(--v6-muted);
}

.v7-channel-value {
  font-family: var(--v6-font-cta);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--v6-blue);
  word-break: break-word;
}

.v7-channel-note {
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--v6-muted);
}

/* Card de canal destacado (WhatsApp) */
.v7-channel-featured {
  border-color: rgba(0, 197, 43, 0.4);
  background: linear-gradient(180deg, rgba(0, 197, 43, 0.06), #ffffff 60%);
}

.v7-channel-featured .v7-channel-value {
  color: #0a8a26;
}

/* ---------- Comparativo antes/depois ---------- */
.v7-ba {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v7-ba-col {
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 22px;
}

.v7-ba-before {
  border: 1px solid rgba(206, 0, 88, 0.22);
  background: rgba(206, 0, 88, 0.04);
}

.v7-ba-after {
  border: 1px solid var(--v6-blue-140);
  background: var(--v6-alice);
}

.v7-ba-col h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--v6-navy);
}

.v7-ba-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v7-ba-col li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.95rem;
  color: var(--v6-text);
}

.v7-ba-before li::before {
  content: "×";
  font-weight: 800;
  color: var(--v6-pink);
  line-height: 1.4;
}

.v7-ba-after li::before {
  content: "✓";
  font-weight: 800;
  color: var(--v6-blue);
  line-height: 1.4;
}

/* ---------- Depoimento em destaque ---------- */
.v7-quote {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 3.2vw, 44px);
  border-radius: var(--v6-radius-block);
  background: var(--v6-alice);
}

.v7-quote blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--v6-navy);
  text-wrap: balance;
}

.v7-quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--v6-madison);
}

.v7-quote figcaption img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.v7-quote figcaption strong {
  display: block;
  color: var(--v6-navy);
}

/* ---------- Arte de especialidade no hero ---------- */
.v7-hero-art {
  position: relative;
}

.v7-hero-art img,
.v7-hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 12, 28, 0.34);
}

/* Faixa de cross-link para o hub de especialidades */
.v7-hub-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.8vw, 36px);
  border: 1px solid var(--v6-blue-150);
  border-radius: var(--v6-radius-block);
  background: var(--v6-alice);
}

.v7-hub-link p {
  margin: 0;
  max-width: 62ch;
  color: var(--v6-madison);
}

.v7-hub-link strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
  color: var(--v6-navy);
}

/* ---------- Ritmo vertical ----------
   A margem entre a intro da seção e o bloco seguinte vive em pages.css, para
   valer no site inteiro. Aqui ficam só os empilhamentos entre blocos v7. */

/* Blocos v7 empilhados dentro da mesma seção também precisam de respiro */
.v7-cards + .v7-cards,
.v7-cards + .v7-trust,
.v7-ba + .v7-cards,
.v7-timeline + .v7-cards,
.v7-stats + .v7-cards,
.v7-quote + .v7-quote,
.v7-table-wrap + .v7-callout,
.v7-channels + .v7-callout,
.v7-esp-grid + .v7-esp-empty {
  margin-top: clamp(24px, 3vw, 40px);
}

/* CTA sob um bloco: separa do card, não cola nele */
.v7-cards + .v6-pg-section-cta,
.v7-esp-grid + .v6-pg-section-cta,
.v7-quote + .v6-pg-section-cta,
.v7-timeline + .v6-pg-section-cta {
  margin-top: clamp(28px, 3.5vw, 44px);
}

/* Faixa de confiança e hub-link são blocos isolados: respiro nos dois lados */
.v6-pg-main .v7-trust,
.v6-pg-main .v7-hub-link {
  margin-block: clamp(8px, 1vw, 16px);
}

/* Selo/eyebrow dentro de card não deve encostar no título */
.v7-card > .v7-eyebrow {
  align-self: start;
  margin-bottom: 2px;
}

/* Texto de apoio dentro do card de plano respira do preço */
.v7-card h3 + p {
  margin-top: 2px;
}

/* ---------- Contagem de colunas explícita nas grades de card ----------
   Com auto-fit e minmax(260px), 1.200px de conteúdo sempre dão 4 colunas —
   então uma grade de 6 cards virava 4 + 2 e deixava um buraco de meia largura
   na segunda linha. As classes abaixo fixam a contagem conforme o número de
   itens (aplicadas por tools/ajustar-grades.js). */
.v7-cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v7-cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v7-cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .v7-cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .v7-cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .v7-cards-2,
  .v7-cards-3,
  .v7-cards-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cards de canal e de especialidade: mesma lógica */
.v7-channels-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .v7-channels-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .v7-channels-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .v7-esp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .v7-esp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
