/* /agency — cold email agency guides */

/* Hero */
.ag-hero { padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ag-hero__text { max-width: 700px; padding: 0 20px; display: flex; flex-direction: column; gap: 15px; }
.ag-hero__title { font-size: 48px; line-height: 53px; letter-spacing: -1.92px; font-weight: 500; color: var(--ink); text-align: center; }
.ag-hero__lead { font-size: 18px; line-height: 24px; font-weight: 400; color: var(--ink-60); }

/* Guide grid */
.ag-list { border-top: 1px solid var(--line); }
.ag-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ag-card {
  position: relative; min-height: 499px; padding: 40px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--white);
}
.ag-card:nth-child(3n) { border-right: 0; }
.ag-card__date { font-size: 12px; line-height: 14px; font-weight: 500; color: var(--ink); margin-bottom: 24px; align-self: flex-start; }
.ag-card__media { display: block; aspect-ratio: 387 / 202; overflow: hidden; margin-bottom: 20px; }
.ag-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ag-card__title { max-width: none; text-wrap: wrap; font-size: 20px; line-height: 26px; letter-spacing: -0.4px; font-weight: 500; color: var(--ink); }
.ag-card__title a { transition: color 0.2s var(--ease); }
.ag-card__title a:hover { color: var(--ink-60); }
.ag-card__desc { display: block; margin-top: 12px; font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }

/* Pagination */
.ag-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px; border-top: 1px solid rgba(23, 23, 23, 0.1); border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}
.ag-pager__pages { display: flex; gap: 4px; margin-left: auto; margin-right: auto; padding-left: 57px; }
.ag-pager__page {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 37px;
  font-size: 12px; line-height: 14px; font-weight: 500; color: var(--ink-60);
  transition: color 0.2s var(--ease);
}
.ag-pager__page.is-current { color: var(--ink); }
.ag-pager__page:hover, .ag-pager__page:focus-visible { color: var(--ink); }
.ag-pager__next {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 21px; font-weight: 500; color: var(--ink-60);
  transition: color 0.2s var(--ease);
}
.ag-pager__next img { width: 18px; height: 18px; opacity: 0.6; transition: opacity 0.2s var(--ease); }
.ag-pager__next:hover, .ag-pager__next:focus-visible { color: var(--ink); }
.ag-pager__next:hover img { opacity: 1; }

/* Free credits banner */
.ag-cta { position: relative; overflow: hidden; padding: 120px 60px; display: flex; justify-content: center; }
.ag-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.ag-cta__inner { position: relative; max-width: 500px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ag-cta__title { font-size: 44px; line-height: 48px; letter-spacing: -1.76px; font-weight: 500; color: var(--ink); }
.ag-cta__text { margin-top: 12px; font-size: 16px; line-height: 22px; letter-spacing: -0.2px; font-weight: 400; color: var(--ink-deep); }
.ag-cta__btn { margin-top: 28px; }

/* Footer spacing on this page (source: 12px between links, 20px under headings, 80px above legal) */
@media (min-width: 810px) {
  .site-footer__brand { gap: 32px; }
  .footer__col { gap: 20px; }
  .footer__links { gap: 12px; }
  .site-footer__legal { margin-top: 80px; }
}

/* Tablet */
@media (max-width: 1199px) {
  .ag-hero__lead { font-size: 16px; line-height: 22px; }
  .ag-grid { grid-template-columns: repeat(2, 1fr); }
  .ag-card { min-height: 0; padding: 32px 26px; }
  .ag-card__title { font-size: 18px; line-height: 24px; letter-spacing: -0.36px; }
  .ag-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .ag-card:nth-child(2n) { border-right: 0; }
  .ag-cta { padding: 120px 40px; }
  .ag-cta__title { font-size: 36px; line-height: 40px; letter-spacing: -1.4px; }
}

/* Phone */
@media (max-width: 809px) {
  .ag-hero { padding: 60px 20px; }
  .ag-hero__text { padding: 0; }
  .ag-hero__title { font-size: 40px; line-height: 44px; letter-spacing: -1.6px; text-wrap: wrap; }
  .ag-hero__lead { font-size: 14px; line-height: 19px; padding-right: 16px; }
  .ag-grid { grid-template-columns: 1fr; }
  .ag-card { padding: 20px; border-right: 0 !important; }
  .ag-card__media { margin-bottom: 16px; }
  .ag-pager__pages { padding-left: 0; margin-left: 0; }
  .ag-cta { padding: 40px 20px; }
  .ag-cta__text { font-size: 16px; line-height: 21px; }
  .ag-cta__btn { margin-top: 32px; }
}
