/* Hero
--------------------------------------------*/
.hero {
  padding: 8rem 0 4rem;
  padding: 12rem 0 8rem;
  background:
    linear-gradient(180deg, var(--muted) 0%, var(--background) 76%),
    radial-gradient(circle at 15% 20%, color-mix(in oklch, var(--primary) 14%, transparent), transparent 32%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: 3rem;
  align-items: center;
}
.hero-head {
  max-width: 40rem;
  margin-bottom: 2.0rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2rem;
}
@media (max-width: 35rem) {
  .hero {
    padding: 3.5rem 0 2.625rem;
  }
}


/* Section Head
--------------------------------------------*/
.section-head {
  max-width: 45rem;
  text-align: center;
  margin: 0 auto 3rem;
}
.section-head.left {
  text-align: left;
  margin: 0;
}
/* Heading typography lives in typography.css; the wrapper only re-centres the
   lead paragraph when the head is centred. */
.section-head p {
  margin-inline: auto;
}
.section-head.left p {
  margin-inline: 0;
}
main>section.soft {
  background: var(--muted);
}


/* Showcase
--------------------------------------------*/
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(22rem, 1.05fr) minmax(0, 0.95fr);
  gap: 4rem;
  align-items: center;
}
.showcase-copy {
  max-width: 39rem;
}
.showcase .section-head {
  margin-bottom: 1.0rem;
}
.showcase-features {
  border-top: 1px solid var(--border);
}
.showcase-feature {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.0rem 0;
  border-bottom: 1px solid var(--border);
}
.showcase-feature svg {
  color: var(--muted-foreground);
}
.showcase-feature p {
  margin: 0;
  color: var(--muted-foreground);
}
.showcase-feature strong {
  color: var(--foreground);
}
.showcase .footnote {
  margin-top: 1.25rem;
}
.showcase-visual {
  min-height: 30rem;
}
/* reverse: copy on the left. rtl swaps the two columns and is a no-op once stacked. */
.showcase.reverse .showcase-grid {
  direction: rtl;
}
.showcase.reverse .showcase-copy,
.showcase.reverse .showcase-visual {
  direction: ltr;
}
@media (max-width: 58.75rem) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .showcase-visual {
    min-height: 22rem;
  }
}


/* CTA
--------------------------------------------*/
.cta .container {
  padding: 4rem;
  border-radius: var(--radius-xl);
  background-color: var(--foreground);
  color: var(--background);
}
.cta .section-head {
  max-width: 35rem;
}
.cta .section-head p {
  max-width: 25rem;
  color: inherit;
  opacity: 0.65;
}
.cta footer {
  text-align: center;
}
.cta footer a {
  color: var(--foreground);
}
@media (max-width: 35rem) {
  .cta .container {
    padding: 2.5rem 1.5rem;
  }
}


/* Cards
--------------------------------------------*/
/* Column count follows the card count: auto-fit packs as many 16rem+ columns
   as the width allows and stretches them to fill, reflowing as it narrows. */
.cards {
  display: grid;
  gap: 1.125rem;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}


/* Split
--------------------------------------------*/
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
  align-items: center;
}
@media (max-width: 58.75rem) {
  .split {
    grid-template-columns: 1fr;
  }
}