/* One document scrolls through the four screens, About, and Contact. */
html { scroll-snap-type: y mandatory; }
.product, .approach, .contact { scroll-snap-align: start; scroll-snap-stop: always; }
/* Give the document's final edge a snap position so mandatory snapping can reach it. */
body > footer { scroll-snap-align: end; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  height: calc(100dvh - var(--header-height));
}
.media { min-height: 100%; }
.product-copy { min-height: 0; padding: clamp(2rem, 5vh, 4rem) var(--gutter) clamp(3.5rem, 7vh, 5rem); }
.product-copy h2 { font-size: clamp(3rem, 5.4vw, 6rem); margin: 1.2rem 0; }
.product-copy h1 { max-width: 13ch; }
.product-copy > p { margin: .4rem 0; font-size: 1rem; }
.product-copy ul { margin: 2rem 0 1.5rem; }
.product-copy li { padding: .75rem 0; font-size: .82rem; }
.slide-count { right: var(--gutter); bottom: 1.5rem; }
.dialog-benefits { padding-left: 1.2rem; color: var(--muted); line-height: 1.7; }

@media (max-width: 800px) {
  .product {
    height: auto;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .media {
    height: clamp(210px, 40dvh, 400px);
    min-height: 0;
  }
  .product-copy { justify-content: center; padding: 1.5rem var(--gutter) 3.5rem; }
  .product-copy h2 { font-size: clamp(2.6rem, 8vw, 4.5rem); margin: .75rem 0; }
  .product-copy h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
  .product-copy > p { font-size: .95rem; }
  .product-copy ul { display: none; }
  .detail-button { margin-top: 1rem; font-size: .9rem; }
  .slide-count { bottom: 1rem; }
}
@media (max-width: 420px) {
  .media { height: clamp(195px, 38dvh, 340px); }
  .media-tag { bottom: .8rem; font-size: .55rem; }
  .product-copy { padding: 1.1rem var(--gutter) 2.9rem; }
  .product-copy h2 { font-size: clamp(2.15rem, 10vw, 2.7rem); margin: .55rem 0; }
  .product-copy > p { font-size: .9rem; line-height: 1.45; }
  .detail-button { margin-top: .7rem; }
}
@media (max-height: 650px) and (min-width: 801px) {
  html { scroll-snap-type: y proximity; }
  .product { height: auto; min-height: calc(100dvh - var(--header-height)); }
  .product-copy { padding-top: 1.5rem; padding-bottom: 2.5rem; }
  .product-copy h2 { font-size: clamp(2.6rem, 4.5vw, 4.5rem); margin: .5rem 0; }
  .product-copy ul { margin: .75rem 0; }
  .product-copy li { padding: .4rem 0; }
}
/* Short mobile screens may need a few extra pixels to read a full panel. */
@media (max-height: 700px) and (max-width: 800px) {
  html { scroll-snap-type: y proximity; }
}
@media (max-height: 540px) and (max-width: 800px) {
  .media { height: min(36dvh, 240px); min-height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
}
