/* ==================================================
   COOKIE DEVS
   PERFORMANCE
   ================================================== */

.performance {
  position: relative;

  background: #111111;
  color: #ffffff;

  overflow: hidden;
}

/* ==================================================
   BACKGROUND DETAIL
   ================================================== */

.performance::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);

  background-size: 96px 96px;

  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);

  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7),
    transparent 85%
  );
}

/* ==================================================
   CONTAINER
   ================================================== */

.performance-container {
  position: relative;
  z-index: 1;
}

/* ==================================================
   HEADING
   ================================================== */

.performance-heading {
  max-width: 900px;

  margin-bottom: 88px;
}

.performance-eyebrow {
  margin-bottom: 22px;

  color: rgba(255, 255, 255, 0.52);

  font-size: 12px;
  font-weight: 700;
  line-height: 1;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.performance-heading h2 {
  color: #ffffff;

  font-size: clamp(54px, 6.5vw, 104px);
  line-height: 0.93;

  letter-spacing: -0.065em;
}

.performance-description {
  max-width: 720px;

  margin-top: 34px;

  color: rgba(255, 255, 255, 0.66);

  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
}

/* ==================================================
   PERFORMANCE GRID
   ================================================== */

.performance-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  border-top: 1px solid rgba(255, 255, 255, 0.15);

  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.performance-item {
  min-height: 360px;

  padding: 44px;

  border-right: 1px solid rgba(255, 255, 255, 0.15);

  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.performance-number {
  margin-bottom: 90px;

  color: rgba(255, 255, 255, 0.3);

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.12em;
}

.performance-item h3 {
  margin-bottom: 18px;

  color: #ffffff;

  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;

  letter-spacing: -0.05em;
}

.performance-item > p:last-child {
  max-width: 460px;

  color: rgba(255, 255, 255, 0.58);

  font-size: 16px;
  line-height: 1.65;
}

/* ==================================================
   PROOF AREA
   ================================================== */

.performance-proof {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  gap: 80px;

  align-items: end;

  margin-top: 96px;
}

.performance-proof-copy {
  max-width: 520px;
}

.performance-proof-label {
  margin-bottom: 18px;

  color: #ffffff;

  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 700;
  line-height: 1.05;

  letter-spacing: -0.045em;
}

.performance-proof-copy > p:last-child {
  color: rgba(255, 255, 255, 0.55);

  font-size: 16px;
  line-height: 1.65;
}

/* ==================================================
   SCORE PREVIEW
   ================================================== */

.performance-score-preview {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  border-top: 1px solid rgba(255, 255, 255, 0.16);

  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.performance-score-preview > div {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  min-height: 120px;

  padding: 22px;

  border-right: 1px solid rgba(255, 255, 255, 0.16);

  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.performance-score-preview span {
  color: rgba(255, 255, 255, 0.52);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.04em;
}

.performance-score-preview strong {
  color: rgba(255, 255, 255, 0.85);

  font-size: 34px;
  line-height: 1;
}

/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1024px) {
  .performance-heading {
    margin-bottom: 68px;
  }

  .performance-item {
    min-height: 320px;

    padding: 36px;
  }

  .performance-number {
    margin-bottom: 72px;
  }

  .performance-proof {
    gap: 52px;

    margin-top: 76px;
  }
}

/* ==================================================
   SMALL TABLET
   ================================================== */

@media (max-width: 820px) {
  .performance-grid {
    grid-template-columns: 1fr;
  }

  .performance-item {
    min-height: auto;

    padding: 36px 28px;
  }

  .performance-number {
    margin-bottom: 54px;
  }

  .performance-proof {
    grid-template-columns: 1fr;

    gap: 44px;
  }
}

/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 640px) {
  .performance::before {
    background-size: 64px 64px;
  }

  .performance-heading {
    margin-bottom: 52px;
  }

  .performance-heading h2 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .performance-description {
    margin-top: 26px;

    font-size: 17px;
  }

  .performance-item {
    padding: 30px 22px;
  }

  .performance-number {
    margin-bottom: 42px;
  }

  .performance-item h3 {
    font-size: 32px;
  }

  .performance-item > p:last-child {
    font-size: 15px;
  }

  .performance-proof {
    margin-top: 60px;
  }

  .performance-score-preview {
    grid-template-columns: 1fr;
  }

  .performance-score-preview > div {
    min-height: 94px;
  }
}

/* ==================================================
   REDUCED MOTION
   ================================================== */

@media (prefers-reduced-motion: reduce) {
  .performance *,
  .performance *::before,
  .performance *::after {
    transition: none;
  }
}
