/* Home page — extends product-page-v2.css, plugins-page.css, reviews-page.css */

.ag-home-page {
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
  overflow-x: clip;
}

.ag-home-page .hero {
  padding-top: 0;
}

.ag-home-page .hero--archive .hero--center__inner {
  max-width: 880px;
}

.ag-home-page .hero--archive .hero__tagline {
  max-width: 44em;
  padding-inline: 80px;
}

.home-hero h1 {
  padding-top: 80px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.home-hero__actions .btn {
  text-decoration: none;
}

/* Trust logos — directly below hero */
.ag-home-page .trust-logos {
  border-bottom: none;
}

/* Featured plugins */
.home-plugins {
  padding-top: 0;
}

.home-plugins .section__header {
  padding-top: 50px;
}

.home-plugins__cta {
  margin: 40px 0 0;
  text-align: center;
}

.home-plugins__cta .btn {
  text-decoration: none;
  color: var(--white);
}

/* Reviews */
.home-reviews {
  padding-top: 72px;
}

.ag-home-page button.review-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Blog — dark section matching live site (bg-darkestgrey) */
.home-blog {
  padding: 72px 0 88px;
  background: var(--darkest);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-blog .section__header h2 {
  color: var(--white);
}

.home-blog .section__header p {
  color: rgba(255, 255, 255, 0.72);
}

.home-post-grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .home-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.home-post-card {
  height: 100%;
}

.home-post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.home-post-card__link:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.home-post-card__category {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  background: var(--pink);
  border-radius: 999px;
}

.home-post-card__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--white);
}

.home-post-card__excerpt {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--medium);
}

.home-post-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--medium);
}

.home-post-card__author {
  font-weight: 500;
  color: var(--white);
}

.home-post-card__author::before {
  content: "by\00a0";
  font-weight: 300;
  color: var(--medium);
}

.home-blog .home-section__more a {
  color: var(--medium);
}

.home-blog .home-section__more a:hover {
  color: var(--white);
}

/* Section footer links */
.home-section__more {
  margin: 36px 0 0;
  text-align: center;
}

.home-section__more a {
  font-size: 15px;
  font-weight: 600;
  color: var(--pink);
  text-decoration: none;
}

.home-section__more a:hover {
  text-decoration: underline;
}
