/* VisionInPlay: premium store layout, dark, high contrast, blind-first.
   Brand: royal blue. Every text/background pair is 7:1 or better (WCAG AAA).
   #1f43b8 royal blue (white text 8.2:1), #a8bdff light royal (10:1+ on #000 and #1d1d1f). */
:root {
  --bg: #000000;
  --surface: #1d1d1f;
  --surface-2: #161617;
  --text: #f5f5f7;
  --muted: #c7c7cc;
  --royal: #1f43b8;
  --royal-light: #a8bdff;
  --line: #424245;
  --radius: 1.125rem;
}
* { box-sizing: border-box; }
html { font-size: 125%; } /* 20px base */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--royal-light); text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.12em; }
:focus-visible { outline: 3px solid var(--royal-light); outline-offset: 3px; border-radius: 0.25rem; }
h1, h2, h3 { color: var(--text); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
p, li { max-width: 42em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  background: var(--text); color: #000; padding: 0.5rem 1rem; font-weight: 600; border-radius: 0.5rem;
}
.skip-link:focus { top: 0.5rem; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }

/* Global nav */
.globalnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 22, 23, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .globalnav { background: rgba(22, 22, 23, 0.82); backdrop-filter: saturate(180%) blur(20px); }
}
.globalnav-inner {
  max-width: 64rem; margin: 0 auto; padding: 0.5rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; min-height: 2.75rem;
}
.brand { color: var(--text); font-weight: 600; font-size: 0.95rem; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { text-decoration: underline; }
.globalnav ul { list-style: none; margin: 0; padding: 0; }
.globalnav nav a { color: var(--text); text-decoration: none; font-size: 0.8rem; }
.globalnav nav a:hover, .globalnav nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.nav-wide { display: none; flex: 1; }
.nav-wide ul { display: flex; justify-content: center; gap: 2rem; }
.menu { margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; font-size: 0.8rem; color: var(--text);
  padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 980px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.menu nav ul { max-width: 64rem; margin: 0 auto; padding: 0.75rem 1.25rem 1.25rem; }
.menu nav li { border-bottom: 1px solid var(--line); }
.menu nav li:last-child { border-bottom: 0; }
.menu nav a { display: block; padding: 0.75rem 0; font-size: 1.1rem; font-weight: 600; }
.nav-buy {
  display: none; background: var(--royal); color: #fff; text-decoration: none;
  font-size: 0.75rem; padding: 0.3rem 0.85rem; border-radius: 980px; white-space: nowrap;
}
.nav-buy:hover { text-decoration: underline; }
@media (min-width: 30rem) { .nav-buy { display: inline-block; } }
@media (min-width: 52rem) {
  .menu { display: none; }
  .nav-wide { display: block; }
}

/* Buttons */
.pill {
  display: inline-block; background: var(--royal); color: #fff; text-decoration: none;
  font-size: 0.9rem; font-weight: 500; padding: 0.55rem 1.2rem; border-radius: 980px; margin: 0.25rem 0.5rem 0.25rem 0;
}
.pill:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.pill-link { font-size: 0.9rem; white-space: nowrap; }
.pill-link::after { content: " \203A"; }
.actions { margin: 1.25rem 0 0; }

/* Store hero */
.store-hero { padding-top: 3.5rem; padding-bottom: 1.5rem; }
.store-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; max-width: 18em; }
.chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chips a {
  display: inline-block; background: var(--surface); color: var(--text); text-decoration: none;
  padding: 0.6rem 1.1rem; border-radius: 980px; font-size: 0.85rem; border: 1px solid var(--line);
}
.chips a:hover { border-color: var(--royal-light); text-decoration: underline; }

/* Section heads, Apple style: bold lead, muted follow-on */
.section-head { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 3.5rem 0 1.5rem; max-width: 24em; }

/* Product cards */
.products {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.product {
  background: var(--surface); border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; min-height: 20rem; max-width: none;
  box-shadow: 0 0 0 1px #2c2c2e, 0 0.6rem 2rem rgba(0, 0, 0, 0.6);
  border-top: 3px solid var(--royal);
}
.product h2, .product h3 { font-size: 1.45rem; margin: 0.25rem 0 0.75rem; }
.product h2 a, .product h3 a { color: var(--text); text-decoration: none; }
.product h2 a:hover, .product h3 a:hover { text-decoration: underline; }
.product > p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.product .actions { margin-top: auto; padding-top: 1.5rem; }
.eyebrow { color: var(--royal-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .product { transition: transform 0.3s ease; }
  .product:hover { transform: scale(1.01); }
}

/* Tiles (feature cards) */
.tiles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.tile { background: var(--surface); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.tile h3 { font-size: 1.25rem; margin: 0 0 0.6rem; }
.tile p, .tile li { font-size: 0.9rem; color: var(--muted); }
.tile ul { padding-left: 1.1rem; margin: 0; }
.tile-wide { grid-column: 1 / -1; }
.tile-wide p { font-size: 1.05rem; color: var(--text); }
.tile-accent { background: var(--royal); }
.tile-accent p, .tile-accent h3, .tile-accent a { color: #fff; }
.tile-accent .pill { background: #fff; color: var(--royal); }

/* Product page hero */
.hero { padding-top: 4rem; padding-bottom: 1rem; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0.4rem auto 0.8rem; max-width: 14em; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--muted); margin: 0 auto; max-width: 32em; }
.hero .actions { margin-top: 1.5rem; }
.back { margin: 2.5rem 0 0; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 2rem; }

/* Closing band */
.closing { text-align: center; padding-top: 4rem; padding-bottom: 4rem; }
.closing-line { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 600; letter-spacing: -0.015em; margin: 0 auto 1rem; }

/* Plain text pages */
.prose { padding-top: 3rem; padding-bottom: 3rem; max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1.25rem; }
.prose h2 { font-size: 1.4rem; margin: 2.25rem 0 0.75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.about p { font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.45; font-weight: 500; }
.about .actions { margin-top: 2rem; }
.notice { border-left: 4px solid var(--royal-light); padding: 0.75rem 1rem; background: var(--surface); border-radius: 0 0.5rem 0.5rem 0; }
dl dt { font-weight: 600; margin-top: 0.75rem; }
dl dd { margin: 0; }

/* Footer */
.globalfooter { background: var(--surface-2); border-top: 1px solid var(--line); margin-top: 4rem; padding: 2.5rem 0 3rem; font-size: 0.8rem; color: var(--muted); }
.footer-tag { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0 0 1.5rem; }
.footer-cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.footer-cols h2 { font-size: 0.8rem; font-weight: 600; margin: 0 0 0.6rem; letter-spacing: 0; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 0.4rem 0; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--text); }
.legal { margin: 1.25rem 0 0; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (prefers-contrast: more) { :root { --line: #ffffff; --muted: #f5f5f7; } .product, .tile { border: 2px solid #fff; } }
@media (forced-colors: active) { .pill, .nav-buy, .chips a { border: 2px solid ButtonText; } }

/* Photos: shown on a light stage, like product shots */
.hero-media { margin: 2.5rem auto 0; max-width: 40rem; }
.hero-media img, .gallery img, .product-img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  background: #f5f5f7;
}
.hero-media img { max-height: 34rem; object-fit: contain; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.gallery li { max-width: none; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 1 / 1; object-fit: contain; }
.product-img { aspect-ratio: 4 / 3; object-fit: contain; margin: -0.25rem 0 1.25rem; }
