/* Landing typography follows the wireframe, per Grant; colours use the brand palette. */
@font-face {
  font-family: "Inter Landing";
  src: url("/assets/inter-latin-496a588b.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

main.page-container.landing-page {
  --font-body: "Inter Landing", system-ui, sans-serif;
  --font-heading: var(--font-body);
  --text-h1: 2.125rem;
  --leading-h1: 1.176471;
  --text-h2: 1.375rem;
  --leading-h2: 1.272727;
  --text-h3: 1.25rem;
  --leading-h3: 1.4;
  --text-small: 0.9375rem;
  --leading-small: 1.333333;
  --text-caption: 0.875rem;
  --leading-caption: 1.428571;
  max-width: none;
  padding: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.landing-page :is(h2, h3), .landing-page :is(.primary-link, .secondary-link, .ghost-link) {
  font-weight: 600;
}

.landing-page h1 {
  font-weight: 700;
}

.landing-hero {
  background: var(--surface-tint);
}

.landing-hero-inner {
  display: grid;
  align-items: center;
  gap: 2rem;
  padding-block: 1.25rem 2.5rem;
}

.landing-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-control);
}

.landing-hero-copy {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  max-width: 41rem;
}

.landing-hero-copy p, .landing-hero-copy h1 {
  margin: 0;
}

.landing-hero-eyebrow {
  color: var(--link-color);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.384615;
}

.landing-hero-description {
  color: var(--color-slate);
}

.landing-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.landing-page .ghost-link {
  text-decoration: none;
}

.landing-page .ghost-link:disabled {
  border-color: transparent;
  background: transparent;
  color: var(--link-color);
}

/* Remaining landing sections: desktop 33:192–40:236; mobile 46:241–46:412. */
.landing-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding-block: 2.5rem;
}

.landing-section :is(h2, h3, p), .landing-steps, .landing-quote {
  margin: 0;
}

.landing-section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.landing-featured-heading {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.landing-featured-heading .ghost-link {
  flex-shrink: 0;
  padding-inline: 0;
}

.landing-eyebrow {
  color: var(--link-color);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.384615;
}

.landing-band {
  background: var(--surface-tint);
}

#how-it-works, #visit {
  scroll-margin-block-start: 1.5rem;
}

.landing-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 0.75rem;
}

.landing-product {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-width: 0;
  color: var(--text-color);
  text-decoration: none;
}

.landing-product:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.catalogue-photo.landing-product-photo {
  height: auto;
  aspect-ratio: 1;
}

.landing-product-heading, .landing-step-number, .landing-stars {
  display: flex;
  align-items: center;
}

.landing-product-heading {
  justify-content: space-between;
  gap: 0.5rem;
}

.landing-product-heading h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.landing-steps {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.landing-step, .landing-testimonial {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.landing-step-number {
  gap: 0.75rem;
  color: var(--link-color);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
}

.landing-section > .ghost-link {
  align-self: flex-start;
}

.landing-stars {
  gap: 2px;
}

.landing-testimonials-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.landing-testimonial {
  min-width: 0;
  scroll-snap-align: start;
}

.landing-testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.landing-testimonial-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  cursor: pointer;
}

.landing-testimonial-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}

.landing-map {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: var(--radius-control);
}

.landing-visit-details, .landing-visit-details address {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-style: normal;
  overflow-wrap: anywhere;
}

.landing-closing {
  text-align: center;
}

.landing-closing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 64rem) {
  main.page-container.landing-page {
    --text-h1: 3.5rem;
    --leading-h1: 1.142857;
    --text-h2: 1.75rem;
    --leading-h2: 1.285714;
  }

  .landing-section {
    gap: 2rem;
    padding-block: 4.5rem;
  }

  .landing-featured-grid, .landing-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .landing-featured-grid {
    gap: 1.5rem;
  }

  .landing-product-heading h3 {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    line-height: var(--leading-h3);
    font-weight: 600;
  }

  .landing-steps {
    gap: 1rem;
  }

  .landing-visit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 3rem;
  }

  .landing-testimonials-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
  }

  .landing-testimonial-controls {
    display: none;
  }

  .landing-map {
    height: 320px;
  }

  .landing-visit-details .secondary-link {
    align-self: flex-start;
  }

  .landing-closing-actions {
    flex-direction: row;
    justify-content: center;
  }

  .landing-hero-inner {
    grid-template-columns: minmax(0, 41fr) minmax(0, 35fr);
    gap: 4rem;
    padding-block: 4.5rem;
  }

  .landing-hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

:root[data-theme="dark"] {
  .landing-band {
    background: var(--surface-muted);
  }

  .landing-page img[src$=".svg"] {
    /* Some wireframe glyphs include a white canvas: invert it to black,
       then screen it out while retaining the light icon strokes. */
    filter: invert(1) grayscale(1);
    mix-blend-mode: screen;
  }

  .landing-hero {
    background: radial-gradient(ellipse at 80% 45%, var(--surface-tint), var(--page-background) 75%);
  }
}
