/* The product page (index.html), on top of styles.css (the manual's: tokens, the day colour, the
   theme, the radius family). Only the page's own layout lives here. */

.sprite { position: absolute; }
.home { max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

.home section { padding: 48px 0; border-bottom: 1px solid var(--md-sys-color-outline-variant); scroll-margin-top: calc(var(--bar-height) + 8px); }
.home section:last-of-type { border-bottom: 0; }
.home h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; font-weight: 600; margin: 0 0 16px; letter-spacing: -0.01em; }
.home h2 { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.2; font-weight: 500; margin: 0 0 20px; }
.home h3 { font-size: 18px; line-height: 26px; font-weight: 500; margin: 0 0 6px; }
.home p { margin: 0 0 12px; }
.lead { font-size: 18px; line-height: 28px; color: var(--md-sys-color-on-surface-variant); max-width: 46em; }
.muted { color: var(--md-sys-color-on-surface-variant); }
.small { font-size: 14px; line-height: 20px; }

.buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.buy .btn { text-decoration: none; }

/* the MK3's two screens, side by side in a black bezel */
.screens {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px;
  background: #0b0b0c; padding: 8px; border-radius: var(--r);
  box-shadow: var(--md-sys-elevation-2);
}
.screens img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 272; border-radius: var(--r-xs); }
/* a moving card: both screens in one 60 fps loop (tools/site_day_videos.py), the gap drawn in the bezel's colour */
.screens.live { grid-template-columns: minmax(0, 1fr); }
.screens.live img { aspect-ratio: 966 / 272; border-radius: 0; }
.screens-caption { margin: 8px 0 0; font-size: 14px; color: var(--md-sys-color-on-surface-variant); }

/* what you get */
.features { display: grid; gap: 36px; }
/* the screens first (left on a wide page, above on a phone), the text after; a thin line between features,
   fading out at both ends */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; }
.feature > .screens { order: -1; }
.feature + .feature {
  padding-top: 36px;
  background: linear-gradient(90deg, transparent, var(--md-sys-color-outline-variant) 15%,
    var(--md-sys-color-outline-variant) 85%, transparent) top / 100% 1px no-repeat;
}
@media (min-width: 860px) {
  .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; }
}
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.more .card { padding: 18px; }
.more .card p { margin: 0; color: var(--md-sys-color-on-surface-variant); font-size: 14px; line-height: 20px; }

.video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #0b0b0c; }

/* editions */
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.edition { display: flex; flex-direction: column; padding: 22px; }
.edition.full { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.price { font-size: 34px; line-height: 40px; font-weight: 600; margin: 4px 0 12px; }
.edition ul { padding-left: 20px; margin: 0 0 16px; flex: 1; }
.edition li { margin-bottom: 4px; }
.edition .buy { margin: 0; }
.edition .buy .btn { flex: 1; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.home ol, .home ul { padding-left: 22px; }
.home li { margin-bottom: 8px; }

/* FAQ */
.faq details { background: var(--md-sys-color-surface-container); border-radius: var(--r); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin: 10px 0 0; color: var(--md-sys-color-on-surface-variant); }

/* the home page (elton47.com): one big card per product */
.home section.landing { padding-bottom: 24px; border-bottom: 0; }
.home section.products {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; padding-top: 8px;
}
.product {
  display: flex; flex-direction: column; gap: 18px; padding: 16px; margin: 0;
  color: inherit; text-decoration: none; border-radius: var(--r);
  transition: box-shadow .15s ease, transform .15s ease;
}
.product:hover { box-shadow: var(--md-sys-elevation-3), inset 0 0 0 2px var(--md-sys-color-primary); transform: translateY(-2px); }
.product:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 3px; }
.product-text { padding: 0 6px 6px; }
.product-text h2 { margin: 0 0 8px; }
.product-text .btn { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .product { transition: none; } .product:hover { transform: none; } }

/* a product not out yet: no link, no hover, a keyboard drawn in the day's colour */
.product.is-coming:hover { box-shadow: none; transform: none; }
.keys-art { background: #0b0b0c; padding: 8px; border-radius: var(--r); box-shadow: var(--md-sys-elevation-2); }
.keys-art svg { display: block; width: 100%; height: auto; aspect-ratio: 980 / 276; }
.keys-white rect { fill: #e9e4e2; }
.keys-black rect { fill: #151313; stroke: #000; stroke-width: 1; }
.keys-lights { fill: var(--md-sys-color-primary); opacity: .85; }
.coming {
  display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: var(--r-full);
  background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container);
  font-size: 14px; line-height: 20px; font-weight: 500;
}
