/* Core layout, typography (strictly 400 / 500 / 600 Figtree), full-screen 100svh hero, partner strip & homepage sections. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --page: #ffffff;
  --ink: #192322;
  --ink-hover: #263533;
  --soft: #f4f6f4;
  --tint: #eef2ef;
  --line: #dce2de;
  --border-strong: #76847e;
  --muted: #525e59;
  --focus: #006678;
  --error: #b3261e;
  --error-bg: #fdf2f1;
  --measure: 74rem;
  --gutter: clamp(1.25rem, 4.8vw, 4.5rem);
  --section-space: clamp(3.5rem, 5.6vw, 5.25rem);
  --column-gap: clamp(1.75rem, 1.2rem + 2.4vw, 3.75rem);
  --space-3: .75rem;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 400 1.0625rem/1.62 'Figtree', system-ui, -apple-system, sans-serif;
}

@media (max-width: 640px) {
  body { font-size: 1rem; line-height: 1.6; }
}

b, strong { font-weight: 600; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 {
  font-weight: 500;
  text-wrap: balance;
  color: inherit;
}

p {
  max-width: 52ch;
  margin: 1em 0;
}

.wrap, .hero-content {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* Header bar */
.site-bar {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  min-height: 3.5rem;
  padding: .5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #ffffff;
  background: transparent;
  z-index: 1000;
  isolation: isolate;
}

.site-bar img {
  display: block;
  width: 7.5rem;
  height: auto;
}

.site-bar > nav:not(#mobile-links) {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: .96rem;
  font-weight: 500;
}

.site-bar > nav:not(#mobile-links) a {
  white-space: nowrap;
}

.site-bar > nav:not(#mobile-links) a:hover {
  text-decoration: underline;
  text-underline-offset: .28em;
}

.bar-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.site-bar #menu,
.site-bar nav[hidden],
#mobile-links[hidden],
.site-bar > nav .nav-logo,
.site-bar > nav .nav-cta {
  display: none;
}

/* Full-viewport Hero (#top) — fills 100% of arrival screen cleanly so partner strip never peeks on load */
#top {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  color: #ffffff;
  background: #192322 url('/assets/video/poster-athletics.jpg') center/cover no-repeat;
  min-height: 100vh;
  min-height: 100svh;
}

#top video,
#top .shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

#top .hero-video {
  opacity: 0;
  transition: opacity .6s ease;
}

#top .hero-video.is-active {
  opacity: 1;
}

@media (max-width: 650px) {
  #top .hero-video[data-clip-id=swimming] { object-position: 30% center; }
}

#top .shade {
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(9, 18, 15, .88) 0%, rgba(9, 18, 15, .64) 45%, rgba(9, 18, 15, .20) 78%, rgba(9, 18, 15, .10) 100%),
    linear-gradient(180deg, rgba(8, 15, 13, .54) 0%, transparent 24%, transparent 78%, rgba(8, 15, 13, .44) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(6rem, 11vh, 7.5rem) clamp(3.5rem, 7vh, 5rem);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 1.85rem + 3.3vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 .42em;
  max-width: 13ch;
}

.hero-content p {
  font-size: clamp(1.05rem, .98rem + .28vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.58;
  max-width: 39ch;
  margin: 0 0 1.85rem;
  color: rgba(245, 248, 246, .90);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
}

/* Buttons & CTAs */
.cta, .header-cta, .nav-cta, .menu-cta, .hero-cta, .explore-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.header-cta {
  min-height: 2.75rem;
  padding: .48rem 1.05rem;
  font-size: .94rem;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #ffffff;
}

.header-cta:hover {
  background: #eef3f0;
  border-color: #eef3f0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

#top .hero-cta {
  min-height: 3.25rem;
  padding: .75rem 1.65rem;
  font-size: 1rem;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #ffffff;
}

#top .hero-cta:hover {
  background: #eef3f0;
  border-color: #eef3f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

#top .explore-product {
  min-height: 3.25rem;
  padding: .75rem 1.55rem;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(14, 24, 21, .38);
  border: 1px solid rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#top .explore-product:hover {
  background: rgba(255, 255, 255, .15);
  border-color: #ffffff;
  text-decoration: none;
}

@media (max-width: 760px) {
  body:has([data-cookie-notice]:not([hidden])) #top {
    padding-bottom: 9.5rem;
  }
}

.cta {
  min-height: 3.125rem;
  padding: .75rem 1.55rem;
  font-size: 1rem;
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}

.cta:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
  box-shadow: 0 8px 22px -6px rgba(25, 35, 34, .32);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

/* Partner logo strip below the fold */
.partners, .sport-window {
  overflow: hidden;
}

.partners-band {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.partners {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  padding-block: 1.65rem;
  background: #ffffff;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.ribbon {
  display: flex;
  width: max-content;
}

.roll {
  display: flex;
  align-items: center;
  flex: none;
}

.logos {
  animation: rightward 68s linear infinite;
}

.partners:hover .logos,
.logos.paused {
  animation-play-state: paused;
}

.logos .roll {
  gap: clamp(2rem, 3.6vw, 3.5rem);
  padding-right: clamp(2rem, 3.6vw, 3.5rem);
  min-width: min(var(--measure), 100vw);
  justify-content: space-around;
}

.logos img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 132px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .22s ease, opacity .22s ease;
}

.logos img.logo-crest {
  height: 44px;
  max-width: 108px;
}

.logos img.logo-wide {
  height: 32px;
  max-width: 154px;
}

.logos img:hover {
  filter: none;
  opacity: 1;
}

@keyframes rightward {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Sections & headings */
.band {
  padding-block: var(--section-space);
}

.band h2 {
  font-size: clamp(1.85rem, 1.4rem + 1.65vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.band h3, #role-title {
  font-size: clamp(1.35rem, 1.15rem + .75vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.018em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--column-gap);
  align-items: start;
}

.problem {
  align-items: center;
}

.problem p {
  color: #2f3c38;
}

.survey {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.survey strong {
  display: block;
  font-size: clamp(2.6rem, 4.4vw, 3.85rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
}

.survey p {
  margin: .45em 0;
  max-width: 38ch;
  font-size: .98rem;
  color: #2f3c38;
}

.survey cite {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-style: normal;
}

.survey cite a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Collage responsive placement */
.input-collage img { display: block; max-width: 100%; }
.input-collage p { margin: 0; }
.input-collage .collage-art {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  grid-template-areas: "sheet strap" "audio footage" "report messages";
  align-items: center;
  gap: 12px;
  min-height: 0;
  aspect-ratio: auto;
}
.collage-art > .input-paper,
.collage-art > .input-film { position: relative; inset: auto; width: 100%; grid-column: auto; min-width: 0; }
.collage-art > .input-sheet { grid-area: sheet; transform: rotate(-2deg); }
.collage-art > .input-audio { grid-area: audio; }
.collage-art > .input-report { grid-area: report; transform: rotate(-2deg); }
.collage-art > .input-messages { grid-area: messages; }
.collage-art > .strap-photo { grid-area: strap; }
.collage-art > .footage-photo { grid-area: footage; transform: rotate(-2deg); }
.collage-art > .input-film { aspect-ratio: 1.6; min-height: 0; }
.collage-art > .input-film img { position: static; width: 100%; height: 100%; object-fit: cover; filter: none; }
.footage-photo b {
  position: absolute;
  background: #101813bc;
  color: #fff;
  font: 600 .6rem/1.5 ui-monospace, monospace;
  padding: 1px 5px;
  letter-spacing: .05em;
}
.camera-id { top: 6px; left: 6px; }
.timecode { bottom: 6px; right: 6px; }

@container (max-width: 28em) {
  .input-collage .collage-art {
    grid-template-areas: "sheet sheet" "strap footage" "audio audio" "report messages";
    gap: 9px;
  }
  .collage-art > .input-paper { padding: 10px; }
  .collage-art > .input-sheet table { font-size: .66rem; }
  .collage-art .input-messages p, .collage-art .input-report p { font-size: .72rem; }
  .collage-art .paper-heading { overflow-wrap: anywhere; }
}

@media (min-width: 1000px) {
  .input-collage .collage-art {
    display: block;
    position: relative;
    aspect-ratio: 1.13 / 1;
    min-height: 440px;
    max-width: 620px;
    margin-inline: auto;
  }
  .collage-art > .input-paper, .collage-art > .input-film { position: absolute; grid-area: auto; margin: 0; }
  .collage-art > .input-sheet { top: 2%; left: 2%; width: 60%; transform: rotate(-4deg); z-index: 2; }
  .collage-art > .strap-photo { top: 0; right: 4%; width: 30%; aspect-ratio: 1.15 / 1; transform: rotate(-5deg); z-index: 1; }
  .collage-art > .footage-photo { top: 27%; right: 0; width: 46%; aspect-ratio: 1.15 / 1; transform: rotate(4deg); z-index: 3; }
  .collage-art > .input-audio { top: 44%; left: 18%; width: 44%; transform: rotate(-2deg); z-index: 4; }
  .collage-art > .input-report { top: 59%; left: 0; width: 40%; transform: rotate(-7deg); z-index: 3; }
  .collage-art > .input-messages { top: 69%; left: 36%; width: 58%; transform: rotate(2deg); z-index: 5; }
}

/* CoachDIS section */
#how-it-works {
  background: var(--soft);
}

/* Audience roles section — strictly locked photo frame and button geometry across all 6 tabs */
.role-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  grid-template-areas: "photo choices" "photo details";
  gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.15rem, 2.5vw, 2.25rem);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.role-layout img {
  grid-area: photo;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 10px;
  align-self: start;
}

.role-options {
  grid-area: choices;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.role-options button {
  min-height: 2.75rem;
  padding: .55rem .75rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.25;
  font-size: .92rem;
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.role-options button:hover:not([aria-selected=true]) {
  background: #eef2ef;
  border-color: var(--ink);
}

.role-options button[aria-selected=true] {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

#role-panel {
  grid-area: details;
  min-width: 0;
  padding-top: .35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-wrap: anywhere;
}

#role-panel h3 {
  margin: 0;
  max-width: 34ch;
}

#role-panel p {
  margin: .65rem 0 0;
  max-width: 54ch;
  color: #2f3c38;
}

#role-panel .cta {
  margin-top: auto;
  padding-top: .75rem;
  padding-bottom: .75rem;
  min-width: 9.5rem;
}

#role-copy {
  margin-bottom: 1.25rem !important;
}

/* Sports gallery strip */
.sport-window {
  margin-top: 1.35rem;
}

.athletes {
  animation: rightward 130s linear infinite;
}

#sports .sport-window:hover .athletes,
.athletes.paused {
  animation-play-state: paused;
}

.athletes .roll {
  gap: 12px;
  padding-right: 12px;
}

.athletes figure {
  position: relative;
  width: clamp(150px, 20vw, 275px);
  border-radius: 10px;
  overflow: hidden;
}

.athletes img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.athletes figcaption {
  position: absolute;
  inset: auto 0 0;
  color: #ffffff;
  font-size: .94rem;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(9, 19, 14, .78));
  padding: 26px 12px 10px;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .role-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "choices" "photo" "details";
  }
  .role-layout img {
    aspect-ratio: 16 / 10;
  }
  .role-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  #top .hero-actions a {
    flex: 1 1 auto;
    min-height: 3.1rem;
    padding: .68rem 1.1rem;
  }
  .logos img { height: 32px; }
  .logos img.logo-crest { height: 38px; }
  .logos img.logo-wide { height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .logos, .athletes, #top .hero-video {
    animation: none !important;
    transition: none !important;
  }
  .partners, .sport-window {
    overflow-x: auto;
  }
}
