/* ==========================================================================
   Sections — the blocks a website is made of: hero, features, pricing,
   testimonials, call to action, logo cloud, stats, footer.
   Mobile first: everything stacks on a phone and spreads out on bigger screens.

   <section class="section"> <div class="container"> … </div> </section>
   ========================================================================== */

/* Section: even vertical rhythm. On a painted background (theme-blue-deep …) it just works. */
.section { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.section-sm { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.section-lg { padding-block: clamp(4rem, 2.5rem + 7vw, 8rem); }
.section-alt { background: var(--mo-bg-surface); }   /* alternate sections: page / surface / page … */

/* Section head: an eyebrow, a title and a short intro, above the content */
.section-head { display: grid; align-content: start; gap: .75rem; max-width: 42rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-head-center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head > :is(h1, h2, h3, .h1, .h2, .h3) { margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); letter-spacing: -.025em; text-wrap: balance; }
.section-head > p { margin: 0; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); line-height: 1.6; color: var(--mo-fg-2); text-wrap: pretty; }
.eyebrow {
  font-size: .8125rem;
  font-weight: var(--mo-font-weight-semibold);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mo-theme-fg);
}

/* Hero -----------------------------------------------------------------------
   .hero              the first section of a page: big title, lead, buttons
   .hero-center       everything centered
   .hero-split        text beside a picture from md up (the picture goes under it on phones)
   .hero-glow         a soft glow of the brand color behind it                                  */
.hero { position: relative; padding-block: clamp(3.5rem, 2rem + 7vw, 8rem); }
.hero-body { display: grid; gap: 1.25rem; justify-items: start; max-width: 40rem; }
.hero-title { margin: 0; font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem); font-weight: var(--mo-font-weight-bold); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.hero-lead { margin: 0; max-width: 36rem; font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem); line-height: 1.55; color: var(--mo-fg-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero-note { font-size: .875rem; color: var(--mo-fg-3); }
.hero-center .hero-body { margin-inline: auto; text-align: center; justify-items: center; }
.hero-center .hero-actions { justify-content: center; }
.hero-split .container, .hero-split > .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (width >= 768px) { .hero-split .container, .hero-split > .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero-media { position: relative; min-width: 0; }
.hero-media > :is(img, video, picture) { display: block; width: 100%; height: auto; border-radius: var(--mo-radius-card); }
.hero-glow::before {
  position: absolute;
  inset: -20% -10% auto;
  z-index: -1;
  height: 80%;
  content: "";
  background: radial-gradient(closest-side, color-mix(in oklab, var(--mo-theme-base) 18%, transparent), transparent);
  pointer-events: none;
}
.hero-glow { isolation: isolate; overflow: clip; }
/* On phones, buttons in a hero fill the width: easier to tap */
@media (width < 576px) { .hero-actions > .btn { flex: 1 1 auto; } }

/* Features ---------------------------------------------------------------------
   .feature-grid   as many columns as fit (one on phones)
   .feature        an icon, a title and a sentence           .feature-icon  the tinted icon tile */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.feature { display: grid; gap: .5rem; align-content: start; }
.feature > :is(h3, h4, .feature-title) { margin: .25rem 0 0; font-size: 1.0625rem; font-weight: var(--mo-font-weight-semibold); }
.feature > p { margin: 0; color: var(--mo-fg-2); line-height: 1.6; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.375rem;
  color: var(--mo-theme-subtle-text);
  background: var(--mo-theme-subtle);
  border-radius: var(--mo-radius-control);
}

/* Pricing ------------------------------------------------------------------------
   .pricing           the cards side by side (stacked on phones)
   .price-card        one plan (a card) — .is-featured lifts the recommended one
   .price             the amount, .price-period  "/ month"                               */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1.25rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); background: var(--mo-bg-surface); border-radius: var(--mo-radius-card); }
.price-card > .btn { margin-top: auto; }
.price-name { margin: 0; font-size: 1.0625rem; font-weight: var(--mo-font-weight-semibold); }
.price { display: flex; align-items: baseline; gap: .25rem; margin: 0; font-size: clamp(2.25rem, 1.8rem + 1.5vw, 2.75rem); font-weight: var(--mo-font-weight-bold); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-period { font-size: .9375rem; font-weight: var(--mo-font-weight-normal); letter-spacing: 0; color: var(--mo-fg-3); }
.price-card.is-featured { box-shadow: 0 0 0 2px var(--mo-theme-base), var(--mo-shadow-lg); }
@media (width >= 1024px) { .price-card.is-featured { translate: 0 -.5rem; } }

/* Testimonials ------------------------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 1.25rem; }
.testimonial { display: flex; flex-direction: column; gap: 1.25rem; margin: 0; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); background: var(--mo-bg-surface); border-radius: var(--mo-radius-card); }
.testimonial > blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
.testimonial > figcaption { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.testimonial-name { font-weight: var(--mo-font-weight-semibold); }
.testimonial-role { font-size: .875rem; color: var(--mo-fg-3); }

/* Call to action --------------------------------------------------------------------
   <div class="cta theme-default-solid"> on a painted background, or plain              */
.cta {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding: clamp(2rem, 1.25rem + 3vw, 4rem);
  background: var(--mo-surface-bg, var(--mo-bg-surface));
  border-radius: var(--mo-radius-dialog);
}
.cta > :is(h2, h3) { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -.025em; text-wrap: balance; }
.cta > p { margin: 0; max-width: 36rem; font-size: 1.0625rem; color: var(--mo-fg-2); }
.cta-center { justify-items: center; text-align: center; }
.cta-center > .hero-actions { justify-content: center; }
@media (width >= 768px) {
  .cta-split { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 2rem; }
  .cta-split > .hero-actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

/* Logo cloud: quiet, gray logos that come to life on hover --------------------------- */
.logo-cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.logo-cloud > * { display: inline-flex; align-items: center; gap: .5rem; height: 2rem; font-size: 1.125rem; font-weight: var(--mo-font-weight-semibold); color: var(--mo-fg-3); opacity: .85; filter: grayscale(1); }
.logo-cloud > * > :is(img, svg) { height: 100%; width: auto; }
@media (hover: hover) { .logo-cloud > a:hover { opacity: 1; filter: none; color: var(--mo-fg-body); } }
@media (prefers-reduced-motion: no-preference) { .logo-cloud > * { transition: opacity .2s, filter .2s, color .2s; } }

/* Stats band: big numbers in a row (uses .stat from Card) --------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: 1.5rem 2rem; }
.stats .stat-value { font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem); }

/* Footer -----------------------------------------------------------------------------
   .footer         the page footer        .footer-grid   brand + columns of links
   .footer-bottom       the last line: copyright and small links                              */
.footer { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem) 2rem; font-size: .9375rem; background: var(--mo-bg-surface); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (width >= 768px) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: auto; } }
.footer-title { margin: 0 0 .75rem; font-size: .8125rem; font-weight: var(--mo-font-weight-semibold); letter-spacing: .04em; text-transform: uppercase; color: var(--mo-fg-3); }
.footer-links { display: grid; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.footer-links a { color: var(--mo-fg-2); text-decoration: none; }
.footer-links a:hover { color: var(--mo-fg-body); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-top: 1.5rem; margin-top: 2.5rem; font-size: .8125rem; color: var(--mo-fg-3); border-top: var(--mo-border-width) solid var(--mo-border-color); }
.footer-bottom a { color: inherit; }
