/* Agencies page: editorial companion to the Cuebase homepage. */
.agency-page {
  background: #fff;
  color: var(--cb-ink);
  font: 400 18px/30px var(--cb-sans);
}

.agency-page *,
.agency-page *::before,
.agency-page *::after {
  box-sizing: border-box;
}

.agency-page main a {
  color: inherit;
  text-decoration: none;
}

.agency-page main a:focus-visible {
  outline: 3px solid var(--cb-blue);
  outline-offset: 5px;
}

.agency-page .wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: 72px;
}

.agency-page h1,
.agency-page h2,
.agency-page h3,
.agency-page p {
  margin: 0;
}

.agency-page h1,
.agency-page h2,
.agency-page h3 {
  font-family: var(--cb-head);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.agency-page .kicker,
.agency-page .sn,
.agency-page .note,
.agency-page .terms-note {
  font-family: var(--cb-mono);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agency-page .kicker {
  color: var(--cb-blue);
}

.agency-page .hero {
  padding-block: 104px 112px;
}

.agency-page .hero h1 {
  max-width: 970px;
  margin-top: 20px;
  font-size: clamp(64px, 5.5vw, 72px);
  line-height: 0.98;
}

.agency-page .grad-text {
  color: var(--cb-blue);
}

.agency-page .hero .lede {
  max-width: 700px;
  margin-top: 30px;
  color: var(--cb-muted);
  font-size: 20px;
  line-height: 30px;
}

.agency-page .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.agency-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 22px;
  border: 1px solid var(--cb-ink);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}

.agency-page .btn:hover {
  transform: translateY(-1px);
}

.agency-page .btn-accent {
  border-color: var(--cb-blue);
  background: var(--cb-blue);
  color: #fff;
}

.agency-page .btn-ghost {
  background: #fff;
  color: var(--cb-ink);
}

.agency-page .note {
  margin-top: 18px;
  color: var(--cb-muted);
  text-transform: none;
}

.agency-page .block {
  padding-block: 104px;
}

.agency-page .alt {
  background: var(--cb-blue);
  color: #fff;
}

.agency-page .sec-head {
  max-width: 790px;
  margin-bottom: 64px;
}

.agency-page .alt .kicker {
  color: #fff;
}

.agency-page .sec-head h2 {
  margin-top: 18px;
  font-size: clamp(48px, 4vw, 58px);
  line-height: 1;
}

.agency-page .sec-head p {
  max-width: 650px;
  margin-top: 24px;
  color: #fff;
}

.agency-page .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.48);
}

.agency-page .card {
  min-width: 0;
  padding: 32px 32px 0 0;
}

.agency-page .card + .card {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.48);
}

.agency-page .card .sn {
  color: #fff;
}

.agency-page .card h3 {
  margin-top: 28px;
  font-size: 30px;
  line-height: 34px;
}

.agency-page .card p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 28px;
}

.agency-page .split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(56px, 9vw, 150px);
  align-items: start;
}

.agency-page .split h2 {
  max-width: 590px;
  margin-top: 18px;
  font-size: clamp(48px, 4vw, 58px);
  line-height: 1;
}

.agency-page .offer-intro {
  max-width: 570px;
  margin-top: 28px;
  color: var(--cb-muted);
}

.agency-page .check {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cb-line);
}

.agency-page .check li {
  position: relative;
  padding: 18px 0 18px 30px;
  border-bottom: 1px solid var(--cb-line);
  color: var(--cb-muted);
  font-size: 16px;
  line-height: 24px;
}

.agency-page .check li::before {
  position: absolute;
  top: 18px;
  left: 0;
  color: var(--cb-blue);
  content: "→";
}

.agency-page .check strong {
  color: var(--cb-ink);
  font-weight: 600;
}

.agency-page .terms-note {
  margin-top: 18px;
  color: var(--cb-muted);
  letter-spacing: 0;
  text-transform: none;
}

.agency-page .terms-note a {
  color: var(--cb-blue);
}

.agency-page .final {
  padding-block: 112px;
  background: var(--cb-pale);
  text-align: center;
}

.agency-page .final h2 {
  max-width: 850px;
  margin-inline: auto;
  font-size: clamp(50px, 4.5vw, 64px);
  line-height: 1;
}

.agency-page .final p {
  max-width: 600px;
  margin: 24px auto 32px;
  color: var(--cb-muted);
}

@media (min-width: 1051px) and (max-width: 1280px) {
  .agency-page .wrap {
    padding-inline: 5vw;
  }

  .agency-page .hero h1 {
    font-size: clamp(60px, 5.5vw, 70px);
  }

  .agency-page .block,
  .agency-page .final {
    padding-block: 88px;
  }
}

@media (max-width: 1050px) {
  .agency-page .wrap {
    padding-inline: 24px;
  }

  .agency-page .hero {
    padding-block: 64px 72px;
  }

  .agency-page .hero h1 {
    margin-top: 16px;
    font-size: clamp(46px, 12vw, 58px);
    line-height: 0.98;
  }

  .agency-page .hero .lede {
    margin-top: 24px;
    font-size: 18px;
    line-height: 28px;
  }

  .agency-page .cta {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .agency-page .btn {
    width: 100%;
  }

  .agency-page .note {
    font-size: 12px;
    line-height: 18px;
  }

  .agency-page .block,
  .agency-page .final {
    padding-block: 72px;
  }

  .agency-page .sec-head {
    margin-bottom: 40px;
  }

  .agency-page .sec-head h2,
  .agency-page .split h2 {
    font-size: 46px;
    line-height: 48px;
  }

  .agency-page .cards,
  .agency-page .split {
    grid-template-columns: 1fr;
  }

  .agency-page .card {
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.48);
  }

  .agency-page .card + .card {
    padding-left: 0;
    border-left: 0;
  }

  .agency-page .card h3 {
    margin-top: 20px;
    font-size: 28px;
    line-height: 32px;
  }

  .agency-page .split {
    gap: 48px;
  }

  .agency-page .final h2 {
    font-size: 48px;
    line-height: 50px;
  }
}
