/*
 * Sections Peer Land adds under the original page: How it works, FAQ and CTA. They sit
 * between the claim and the video strip, so the strip and footer stay last, untouched.
 * Only the site's own tokens and values are used: --ink, --green, --on-green, --white,
 * --r-pill, the .5px ink rules of its pricing table, #006b56 for the green hover, and the
 * type scale of its meta line (2rem), synopsis (2.2rem / 3.2rem, 300) and claim (13rem).
 */

/* The decor layer is pinned to page coordinates. Grow it by exactly the height added above
   the footer, and move the footer's bill square with the footer, so neither shifts. */
@media (min-width: 1081px) {
  .section--decor {
    height: calc(894.3rem + var(--pl-extra, 0px));
  }
  .decor__square {
    top: calc(869rem + var(--pl-extra, 0px));
  }
}

@media (max-width: 1080px) {
  .section--decor {
    height: calc(100% - var(--pl-extra, 0px));
  }
}

.peer-sec {
  position: relative;
  z-index: 1;
  padding: 14rem 3.2rem;
  font-size: 2rem;
  line-height: 3rem;
}

.peer-meta {
  display: flex;
  gap: 2.4rem;
  white-space: nowrap;
}

.peer-meta__title {
  font-weight: 800;
}

.peer-meta__sub {
  font-weight: 400;
}

.peer-title {
  font-size: 9.6rem;
  line-height: 11rem;
  font-weight: 200;
  letter-spacing: -0.005em;
}

.peer-title em {
  font-style: italic;
}

/* ---------------------------------------------------------------- How it works */

.peer-how .peer-title {
  margin-top: 6.4rem;
}

.peer-how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4.8rem;
  margin-top: 8rem;
  list-style: none;
}

.peer-how__step {
  border-top: 0.5px solid var(--ink);
  padding-top: 2.4rem;
}

.peer-how__num {
  display: block;
  font-size: 13rem;
  line-height: 1;
  font-weight: 400;
  color: var(--green);
}

.peer-how__step-title {
  margin-top: 2.4rem;
  font-size: 3.6rem;
  line-height: 4.4rem;
  font-weight: 400;
}

.peer-how__body {
  max-width: 48rem;
  margin-top: 1.6rem;
  font-size: 2.2rem;
  line-height: 3.2rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------- FAQ */

.peer-faq__grid {
  display: grid;
  grid-template-columns: 52rem 1fr;
  gap: 6.4rem;
  margin-top: 6.4rem;
  align-items: start;
}

.peer-faq__list {
  list-style: none;
  border-bottom: 0.5px solid var(--ink);
}

.peer-faq__item {
  border-top: 0.5px solid var(--ink);
}

.peer-faq__h {
  font: inherit;
}

.peer-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.2rem;
  width: 100%;
  padding: 2.8rem 0;
  text-align: left;
  font-size: 3.2rem;
  line-height: 4.2rem;
  font-weight: 200;
}

.peer-faq__icon {
  position: relative;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--green);
  border-radius: var(--r-pill);
}

.peer-faq__icon::before,
.peer-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.3rem;
  height: 1px;
  background: var(--green);
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.peer-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.peer-faq__item.is-open .peer-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.peer-faq__a {
  height: 0;
  overflow: hidden;
}

.peer-faq__a p {
  max-width: 88rem;
  padding: 0 8rem 3.2rem 0;
  font-size: 2.2rem;
  line-height: 3.2rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------- CTA */

.peer-cta {
  text-align: center;
  padding-bottom: 16rem;
}

.peer-cta__kicker {
  font-weight: 800;
}

.peer-cta__title {
  margin-top: 3.2rem;
  font-size: 13rem;
  line-height: 15rem;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.peer-cta__title em {
  font-style: italic;
  color: var(--green);
}

.peer-cta__body {
  max-width: 70rem;
  margin: 3.2rem auto 0;
  font-size: 2.4rem;
  line-height: 3.6rem;
  font-weight: 200;
  font-style: italic;
}

.peer-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 4.8rem;
}

.peer-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 5.9rem;
  min-width: 28rem;
  padding: 0 4rem;
  border-radius: var(--r-pill);
  background: var(--green);
  color: var(--on-green);
  font-size: 2.4rem;
  font-weight: 200;
  transition: background-color 0.25s ease;
}

.peer-cta__btn:hover,
.peer-cta__btn:focus-visible {
  background-color: #006b56;
}

.peer-cta__btn--ink {
  background: var(--ink);
  color: var(--white);
}

.peer-cta__btn--ink:hover,
.peer-cta__btn--ink:focus-visible {
  background-color: var(--green);
}

/* ---------------------------------------------------------------- small screens */

@media (max-width: 1080px) {
  .peer-sec {
    padding: 9.6rem 2.4rem;
    font-size: clamp(1.6rem, 4vw, 2rem);
    line-height: 1.5;
  }

  .peer-meta {
    white-space: normal;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .peer-title {
    font-size: clamp(3.6rem, 10vw, 7rem);
    line-height: 1.12;
  }

  .peer-how__steps {
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 4.8rem;
  }

  .peer-how__num {
    font-size: clamp(6rem, 18vw, 9rem);
  }

  .peer-how__step-title {
    font-size: clamp(2.6rem, 7vw, 3.4rem);
    line-height: 1.25;
  }

  .peer-faq__grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
    margin-top: 3.2rem;
  }

  .peer-faq__q {
    font-size: clamp(2rem, 5.4vw, 2.8rem);
    line-height: 1.35;
    padding: 2.2rem 0;
  }

  .peer-faq__a p {
    padding-right: 0;
    font-size: clamp(1.7rem, 4.4vw, 2.2rem);
    line-height: 1.5;
  }

  .peer-cta__title {
    font-size: clamp(4.2rem, 12vw, 9rem);
    line-height: 1.15;
  }

  .peer-cta__btn {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .peer-faq__icon::before,
  .peer-faq__icon::after,
  .peer-cta__btn {
    transition: none;
  }
}

/* ---------------------------------------------------------------- brand mark and X links */

/* The Peer Land mark beside the wordmark in the header and footer (transparent PNG). */
.brand-mark {
  display: inline-block;
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 0.8rem;
  vertical-align: -0.4rem;
}

/* X button: the same outline pill as the header's language button. */
.brand-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  height: 3.5rem;
  min-width: 3.5rem;
  border: 1px solid var(--green);
  border-radius: var(--r-pill);
  color: var(--green);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.brand-x:hover,
.brand-x:focus-visible {
  background: var(--green);
  color: var(--on-green);
}

.brand-x__icon {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
}

.brand-x--footer {
  margin-top: 0.8rem;
  padding: 0 1.4rem;
}

@media (max-width: 1080px) {
  .brand-mark {
    width: 2rem;
    height: 2rem;
    vertical-align: -0.3rem;
  }
  .brand-x {
    height: 3rem;
    min-width: 3rem;
    font-size: 1.4rem;
  }
}
