/* Sportset's landing. True black, one family set light, a lot of air – and the app's own
   screens as the pictures. The pictogram stencils, in the app icon's blues, are the one
   ornament, dealt differently on every visit. */

:root {
  --black: #000000;
  --white: #f5f7fa;
  --soft: rgba(245, 247, 250, 0.66);
  --faint: rgba(245, 247, 250, 0.38);
  --line: rgba(245, 247, 250, 0.12);
  --navy: #0c1b6b;
  --cobalt: #1f4fe0;
  --cyan: #22b4d8;
  --ice: #bde6f6;

  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --margin: clamp(24px, 6vw, 96px);
  --column: 36rem;
  --wide: 1240px;
  --air: clamp(120px, 16vw, 240px);
  --screen-radius: clamp(10px, 1.2vw, 18px);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--black); color: var(--white); }

body {
  margin: 0;
  font: 300 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.75rem, 6.4vw, 6rem); line-height: 1.02; font-weight: 200; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; font-weight: 200; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }

p { margin: 0; max-width: var(--column); }
strong { font-weight: 500; color: var(--white); }

a { color: inherit; text-underline-offset: 4px; text-decoration-color: var(--faint); }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 1.5px solid var(--ice); outline-offset: 4px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--margin), var(--wide)); margin-inline: auto; }

/* Masthead */

.masthead { padding-block: clamp(28px, 4vw, 48px) 0; display: flex; align-items: center; justify-content: space-between; }
.wordmark { width: clamp(132px, 12vw, 172px); }
.masthead nav { display: flex; gap: 28px; font-size: 0.9375rem; color: var(--soft); }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { color: var(--white); }

/* Hero: a headline with room around it, then the app itself. */

.hero { padding-block: clamp(96px, 13vw, 200px) 0; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 36px; font-size: clamp(1.125rem, 1.4vw, 1.3125rem); color: var(--soft); max-width: 34rem; }
.hero .availability { margin-top: 28px; color: var(--faint); font-size: 0.9375rem; }
.hero .availability strong { color: var(--white); }

/* A screen: the app at its own 16:9 inside a bezel – a dark frame with a lit edge, as the
   set it plays on would have – so a black page around a black screen still reads as one. */
.screen {
  margin: 0;
  padding: clamp(5px, 0.6vw, 10px);
  border-radius: calc(var(--screen-radius) + clamp(5px, 0.6vw, 10px));
  background: linear-gradient(160deg, #2a2f37 0%, #121418 45%, #0b0c0e 100%);
  border: 1px solid rgba(245, 247, 250, 0.24);
  box-shadow: inset 0 1px 0 rgba(245, 247, 250, 0.08);
}
.screen img, .screen video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--screen-radius);
  background: #050505;
}

/* A screen still to come: the bezel and a dark screen, so the layout holds its place. */
.screen.placeholder > div {
  aspect-ratio: 16 / 9;
  border-radius: var(--screen-radius);
  background: radial-gradient(ellipse at 30% 20%, #15181d, #050505 70%);
}

.hero .screen { margin-top: clamp(72px, 9vw, 128px); }

/* The pictogram stencils beside the features: the app icon's figures, cut out of a colour. */

.stencil {
  -webkit-mask: var(--pic) center / contain no-repeat;
  mask: var(--pic) center / contain no-repeat;
  background: var(--ink);
}

.hero-controls { display: flex; gap: 24px; margin-top: 16px; }

.film-toggle {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--faint);
  font: 400 0.875rem var(--font);
  cursor: pointer;
}
.film-toggle:hover { color: var(--white); }

/* Sections: each one a headline and a column, a lot of black between them. */

.section { padding-top: var(--air); }
.section > h2 { max-width: 16ch; }
.section > .intro { margin-top: 28px; color: var(--soft); }

/* Steps: a real sequence, so numbered – small, thin, set apart from their text. */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
}
.steps li { counter-increment: step; display: grid; gap: 14px; align-content: start; border-top: 1px solid var(--line); padding-top: 24px; }
.steps li::before { content: counter(step); font-weight: 200; font-size: 2.5rem; line-height: 1; color: var(--cyan); }
.steps p { color: var(--soft); }

/* The picker, under the steps it finishes. */
.steps-screen { margin-top: clamp(56px, 7vw, 96px); }

/* Features: a screen and its words, alternating sides. */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  margin-top: clamp(80px, 10vw, 160px);
}
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.feature:nth-of-type(even) .copy { order: 2; }
.feature .copy { display: grid; gap: 18px; }
.feature .stencil { width: 44px; aspect-ratio: 1; transform: rotate(var(--r, 0deg)); }
.feature h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 300; letter-spacing: -0.025em; }
.feature p { color: var(--soft); }

/* The rest, without pictures: a quiet grid of four. */

.more {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  margin: clamp(96px, 12vw, 180px) 0 0;
  padding: 0;
}
.more li { display: grid; gap: 14px; align-content: start; }
.more .stencil { width: 36px; aspect-ratio: 1; transform: rotate(var(--r, 0deg)); }
.more p { color: var(--soft); font-size: 1rem; }

/* The gallery: every sport's page, a row to scroll. */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 42vw, 620px);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-inline: var(--margin);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margin);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { margin-top: 14px; color: var(--faint); font-size: 0.9375rem; }

/* Said plainly: privacy, and what comes next. */

.plain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 128px); }
.plain > div { display: grid; gap: 22px; align-content: start; }
.plain p { color: var(--soft); }

/* Questions */

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(40px, 7vw, 112px); margin-top: clamp(56px, 7vw, 96px); }
.qa { display: grid; gap: 12px; align-content: start; }
.qa h3 { font-weight: 400; font-size: 1.1875rem; }
.qa p { color: var(--soft); }

/* Footer */

.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  padding-block: var(--air) 48px;
  color: var(--faint);
  font-size: 0.875rem;
}
.colophon .wordmark { width: 112px; opacity: 0.8; }
.colophon nav { display: flex; gap: 24px; margin-left: auto; }

/* Privacy page */

.policy { padding-top: clamp(80px, 11vw, 160px); max-width: 44rem; }
.policy > * + * { margin-top: 18px; }
.policy h2 { margin-top: clamp(56px, 7vw, 88px); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 300; }
.policy p { color: var(--soft); }
.policy .updated { color: var(--faint); font-size: 0.9375rem; }
.policy .summary { color: var(--white); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.4; font-weight: 300; letter-spacing: -0.015em; margin-top: 40px; }

/* Narrow screens: one column throughout. */

@media (max-width: 860px) {
  .steps, .faq, .plain { grid-template-columns: minmax(0, 1fr); }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-of-type(even) .copy { order: 0; }
  .masthead nav { display: none; }
}
