/* ============================================================
   components.css — peças reutilizadas em várias sections:
   botões, pílula de tag e cabeçalho de section.
   ============================================================ */

/* ---------- Botões ------------------------------------------
   Os dois botões compartilham a mesma estrutura: um wrapper com
   overflow escondido guarda dois rótulos empilhados. No hover o
   primeiro sobe e o segundo entra por baixo (animação em
   js/buttons.js, letra a letra). O `overflow: clip` no botão é
   o que mantém o rótulo de baixo fora de vista.
   ------------------------------------------------------------ */

.btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--r-xs);
  overflow: clip;
}

.btn--primary {
  background-image: var(--gradient-primary);
  box-shadow: 0 28px 17px #00000005;
}

.btn--secondary {
  border: 1px solid var(--stroke);
  background-color: var(--white);
  box-shadow:
    inset 87px 55px 67px #ffffff26,
    0 0 60px #20c7b71a,
    0 8px 250px #0d7f740d,
    0 10px 10px #0000000f;
}

/* Variante mais alta usada nos cartões de preço. */
.btn--tall {
  padding-block: 1.125rem;
}

.btn__labels {
  position: relative;
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  overflow: clip;
}

.btn__label {
  font-size: var(--fs-base);
  line-height: var(--lh-100);
  font-weight: var(--fw-regular);
  white-space: nowrap;
}

/* Rótulo de reserva, sobreposto exatamente ao primário. Fica
   escondido abaixo da linha visível — o js/buttons.js desce suas
   letras uma altura e as traz de volta no hover. O deslocamento é
   feito só ali, nas letras: se fosse aplicado também aqui no
   contêiner, os dois se somariam e o rótulo pararia fora da caixa.

   A centralização é por text-align, não flex: flex trataria cada
   letra como item e engoliria os espaços entre as palavras. */
.btn__label--alt {
  position: absolute;
  inset: 0;
  text-align: center;
}

.btn--primary .btn__label {
  color: var(--brand-deep);
}

.btn--secondary .btn__label {
  color: var(--text-color);
}

/* ---------- Pílula de tag -----------------------------------
   Rótulo pequeno acima do título da section, com um ícone
   circular em gradiente à esquerda.
   ------------------------------------------------------------ */

.tag {
  display: inline-block;
  padding: 0.375rem;
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  background-color: var(--light-bg);
  box-shadow:
    inset 87px 55px 67px #ffffff26,
    0 0 60px #20c7b71a,
    0 8px 250px #0d7f740d,
    0 10px 10px -3.75px #0000000f;
}

.tag__flex {
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.tag__icon-wrap {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--r-circle);
  background-image: var(--gradient-primary);
}

.tag__icon {
  width: 0.75rem;
  height: 0.75rem;
}

.tag__text {
  color: var(--paragraph-color);
  font-size: var(--fs-base);
  line-height: var(--lh-120);
  font-weight: var(--fw-regular);
}

/* ---------- Cabeçalho de section ----------------------------
   Bloco tag + título + texto que abre quase toda section.
   Centralizado por padrão; a largura máxima varia por section
   através dos modificadores abaixo, porque cada título quebra
   em um ponto diferente.
   ------------------------------------------------------------ */

.section-head {
  margin-bottom: 3.25rem;
  text-align: center;
}

.section-head--left {
  text-align: left;
}

.section-head--about {
  max-width: 67rem;
  margin-inline: auto;
  margin-bottom: 3.75rem;
}

.section-head--process   { max-width: 32.625rem; margin-inline: auto; }
.section-head--metrics   { max-width: 34rem;     margin-inline: auto; }
.section-head--features  { max-width: 33.125rem; margin-inline: auto; }
.section-head--reviews   { max-width: 47.125rem; margin-inline: auto; }
.section-head--pricing,
.section-head--blog      { max-width: 27.375rem; margin-inline: auto; }

/* Espaço entre a tag e o título. */
.section-head__tag-wrap {
  margin-bottom: 1.875rem;
}

.section-head__title {
  color: var(--text-color);
  font-size: var(--fs-h2);
  line-height: var(--lh-130);
  font-weight: var(--fw-medium);
}

.section-head__title--gap {
  margin-bottom: 0.75rem;
}

.section-head__text {
  color: var(--paragraph-color);
  font-size: var(--fs-base);
  line-height: var(--lh-150);
  font-weight: var(--fw-regular);
}
