/* ==========================================================================
   Perplan Incorporação — Section (Figma node 6336:2351)
   Mobile-first — breakpoint em 1024px (Notebook)
   ========================================================================== */

.perplan {
  background-color: var(--brand-color-secondary);
}

.perplan__inner {
  padding-block: 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* esta seção usa 1120px como largura máxima também no XL — não cresce
   para 1440px como o .container padrão */
@media (min-width: 1440px) {
  .perplan__inner {
    max-width: var(--container-lg);
  }
}

/* --------------------------------------------------------------------------
   Bloco superior — eyebrow/título, estatística e texto
   -------------------------------------------------------------------------- */
.perplan__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .perplan__top {
    flex-direction: row;
    align-items: flex-start;
  }
}

.perplan__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 1024px) {
  .perplan__intro {
    flex: 0 0 320px;
  }
}

.perplan__pattern {
  display: none;
}

@media (min-width: 1024px) {
  .perplan__pattern {
    display: block;
    position: absolute;
    z-index: 0;
    top: -24px;
    left: -16px;
    width: 260px;
    height: auto;
    opacity: 0.5;
    pointer-events: none;
  }
}

.perplan__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-family-02);
  font-weight: var(--font-weight-regular);
  font-size: 14px;
  line-height: var(--line-height-default);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}

.perplan__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-family-01);
  font-weight: var(--font-weight-light);
  font-size: var(--h2-font-size);
  line-height: var(--line-height-md);
  letter-spacing: var(--letter-spacing-lg);
  text-transform: uppercase;
  color: var(--white);
}

.perplan__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.perplan__stat-number {
  margin: 0;
  font-family: var(--font-family-01);
  font-weight: var(--font-weight-light);
  font-size: var(--h1-font-size);
  line-height: var(--line-height-md);
  letter-spacing: var(--letter-spacing-lg);
  color: var(--white);
}

.perplan__stat-label {
  margin: 0;
  font-family: var(--font-family-01);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-md);
  color: rgba(214, 211, 203, 0.65);
}

.perplan__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .perplan__text {
    flex: 1 1 0;
    min-width: 0;
  }
}

.perplan__text p {
  margin: 0;
  font-family: var(--font-family-01);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-md);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Bloco inferior — divisor, logo e texto legal
   -------------------------------------------------------------------------- */
.perplan__divider {
  margin: 0;
  border: none;
  border-top: var(--border-width-default) solid rgba(184, 171, 23, 0.4);
}

.perplan__bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .perplan__bottom {
    flex-direction: row;
    gap: 40px;
  }
}

.perplan__brand {
  flex-shrink: 0;
}

.perplan__logo {
  width: 120px;
  height: auto;
}

.perplan__legal {
  margin: 0;
  font-family: var(--font-family-01);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-md);
  color: rgba(214, 211, 203, 0.6);
}

.perplan__stats {
  display: grid;
}

@media (min-width: 1024px) {
  .perplan__stats {
    flex: 0 0 150px;
  }
}

.perplan__stat {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    visibility 0.8s ease;
}

.perplan__stat.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.perplan__stat.is-leaving {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-24px);
}
