/* athly.pro. The look is the app's own dark side with the logo's teal in front: night-rink navy,
   fine field lines behind the headings, and the app itself in every picture. Files named in url()
   are in public/; build.mjs gives them their final names. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.e3a28eade2.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.3100e775e8.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070b13;
  --bg-raised: #0a101b;
  --surface: #101826;
  --surface-2: #162033;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.15);
  --ink: #eef2f8;
  --soft: #c2ccdb;
  --muted: #8d9bb1;
  --teal: #2fc4bb;
  --teal-ink: #05211f;
  --amber: #ffd43b;
  --blue: #6ea0ff;
  --accent: var(--teal);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  flex: none;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--teal-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Headings and running text */

h1,
h2 {
  font-family: var(--display);
  font-stretch: 108%;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  font-weight: 800;
  line-height: 0.98;
}

h1 span {
  display: block;
}

h1 .accent {
  color: var(--teal);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 760;
  line-height: 1.04;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
}

.lead {
  max-width: 44rem;
  color: var(--soft);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--display);
  font-stretch: 118%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.button-primary {
  background: var(--teal);
  color: var(--teal-ink);
}

.button-primary:hover {
  background: #4ad6cd;
}

.button-primary .icon {
  transition: transform 0.15s;
}

.button-primary:hover .icon {
  transform: translateX(3px);
}

.button-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-ghost:hover {
  border-color: rgb(255 255 255 / 0.32);
  background: rgb(255 255 255 / 0.04);
}

.button-quiet {
  min-height: 40px;
  padding: 0 16px;
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 0.05);
  font-size: 0.9375rem;
}

.button-quiet:hover {
  background: rgb(255 255 255 / 0.1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* The bar at the top */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}

.top-solid {
  border-bottom-color: var(--line);
  background: rgb(7 11 19 / 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-stretch: 108%;
  font-size: 1.3125rem;
  font-weight: 780;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 12px;
}

.top-nav a,
.bottom nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.top-nav a:hover,
.bottom nav a:hover {
  color: var(--ink);
}

/* The pages of their own, beside the front page's parts: a tab, lit on its own page. */

.top-nav .top-page {
  margin-left: 2px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
}

.top-nav .top-page:hover {
  border-color: rgb(255 255 255 / 0.32);
  background: rgb(255 255 255 / 0.04);
}

.top-nav .top-page[aria-current] {
  border-color: color-mix(in srgb, var(--teal) 45%, transparent);
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal);
}

/* On a narrower screen the same links open from a button. */

.menu {
  display: none;
  position: relative;
}

.menu summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.05);
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary .icon + .icon,
.menu[open] summary .icon:first-child {
  display: none;
}

.menu[open] summary .icon + .icon {
  display: block;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: grid;
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.9);
}

.menu-panel a {
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--soft);
  font-weight: 500;
  text-decoration: none;
}

.menu-panel a:hover {
  background: rgb(255 255 255 / 0.05);
  color: var(--ink);
}

.menu-panel .menu-page {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  padding-top: 15px;
  color: var(--ink);
  font-weight: 600;
}

.menu-panel .menu-page[aria-current] {
  color: var(--teal);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.langs {
  display: flex;
  gap: 2px;
}

.langs a {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.langs a:hover {
  color: var(--ink);
}

.langs a[aria-current] {
  color: var(--ink);
  background: rgb(255 255 255 / 0.07);
}

/* The first screen */

.hero {
  position: relative;
  margin-top: -69px;
  padding: calc(69px + clamp(36px, 4.5vw, 56px)) 0 clamp(72px, 10vw, 130px);
  background:
    radial-gradient(52% 44% at 78% 4%, rgb(47 196 187 / 0.17), transparent 70%),
    radial-gradient(40% 36% at 8% 30%, rgb(110 160 255 / 0.08), transparent 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/lines.b0cd5845a9.svg") right -220px top -60px / 980px auto no-repeat;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 92%);
}

.sports-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--display);
  font-stretch: 116%;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sports-line span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 12px 2px;
  border-radius: 50%;
  background: var(--teal);
}

.hero .lead {
  max-width: 47rem;
  margin-top: 24px;
}

.hero .actions {
  margin-top: 28px;
}

.hero-stage {
  position: relative;
  margin-top: clamp(44px, 5vw, 60px);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(47 196 187 / 0.3), transparent);
  filter: blur(60px);
}

.hero-window {
  width: min(100%, 1060px);
}

.hero-phone {
  position: absolute;
  right: 0;
  bottom: -6%;
  width: clamp(150px, 19.5%, 232px);
}

/* The app in a frame */

.window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(0 0 0 / 0.4);
}

.window img,
.window video {
  width: 100%;
}

.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #0c131f;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
}

.window-url {
  padding: 2px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.85);
}

.panel img {
  width: 100%;
}

.phone {
  --bezel: clamp(5px, 0.6vw, 8px);
  --corner: clamp(22px, 2.7vw, 36px);
  padding: var(--bezel);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--corner);
  background: #1a2333;
  box-shadow: 0 34px 70px -22px rgb(0 0 0 / 0.9), inset 0 0 0 1px rgb(0 0 0 / 0.5);
}

.phone img,
.phone video {
  width: 100%;
  border-radius: calc(var(--corner) - var(--bezel));
}

/* A feature and its parts */

.feature {
  padding: clamp(76px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.feature-amber {
  --accent: var(--amber);
}

.feature-blue {
  --accent: var(--blue);
}

.feature-teal {
  background: var(--bg-raised);
}

.feature-head {
  max-width: 50rem;
}

.feature-head .lead {
  margin-top: 22px;
}

/* Drawing a drill: the editor and the three steps */

.draw {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(44px, 6vw, 72px);
}

.steps {
  display: grid;
  gap: 30px;
}

.steps li {
  position: relative;
  padding-left: 58px;
}

.steps li + li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -30px;
  width: 2px;
  height: 26px;
  background: var(--line-strong);
}

.step-number {
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #101a2c;
  font-family: var(--display);
  font-weight: 800;
}

.steps h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1875rem;
}

.steps h3 .icon {
  color: var(--accent);
}

.steps p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(36px, 5vw, 56px);
}

.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.875rem;
  font-weight: 500;
}

/* One animated drill of each sport */

.sports {
  margin-top: clamp(56px, 8vw, 104px);
}

.sports-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 22px;
}

.sports-head h3 {
  font-family: var(--display);
  font-stretch: 106%;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 720;
  letter-spacing: -0.015em;
}

.sports-tabs,
.tab-list {
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  scrollbar-width: none;
}

.sports-tabs button,
.tab-list button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.sports-tabs button:hover,
.tab-list button:hover {
  color: var(--ink);
}

.sports-tabs button[aria-selected="true"],
.tab-list button[aria-selected="true"] {
  background: var(--accent);
  color: #101a2c;
}

.sports-stage {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #0a1120;
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.9);
}

.sports-stage video {
  width: 100%;
}

/* Text beside pictures */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: end;
}

.points {
  display: grid;
  gap: 22px;
}

.point {
  display: flex;
  gap: 16px;
}

.point-icon,
.card-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
}

.point p,
.card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9688rem;
  line-height: 1.55;
}

.points-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(48px, 6vw, 76px);
}

.points-row .point {
  flex-direction: column;
  gap: 14px;
}

/* Two windows, one over the other's corner */

.stack {
  position: relative;
  margin-top: clamp(48px, 7vw, 84px);
  padding-bottom: 9%;
}

.stack-back {
  width: 80%;
}

.stack-front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 41%;
}

/* The career line: the same log from one age group to the next */

.career {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 8px;
}

.career li {
  position: relative;
  padding-top: 26px;
  color: var(--muted);
  font-family: var(--display);
  font-stretch: 112%;
  font-size: clamp(0.66rem, 1.25vw, 0.875rem);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-align: center;
}

.career li::before {
  content: "";
  position: absolute;
  left: -50%;
  right: 50%;
  top: 6px;
  height: 2px;
  background: linear-gradient(to right, color-mix(in srgb, var(--accent) 35%, transparent), var(--accent));
}

.career li:first-child::before {
  display: none;
}

.career li::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.career-end {
  color: var(--ink);
}

.career .career-end::after {
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
}

.growth {
  position: relative;
  margin-top: clamp(40px, 6vw, 64px);
  padding-right: 9%;
}

.growth-phone {
  position: absolute;
  right: 0;
  top: 9%;
  width: 22%;
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 76px);
}

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 46rem;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9688rem;
}

.note .icon {
  margin-top: 3px;
  color: var(--accent);
}

/* The rest of the app: four pictures and nine short cards */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(44px, 6vw, 72px);
}

.tile {
  position: relative;
  grid-column: span 4;
  height: clamp(300px, 34vw, 430px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
}

.tile-wide {
  grid-column: span 8;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.tile-phone img {
  object-position: left 16%;
}

.tile figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 56px 22px 18px;
  background: linear-gradient(to top, rgb(7 11 19 / 0.97) 38%, rgb(7 11 19 / 0));
  color: var(--soft);
  font-size: 0.9375rem;
}

.tile figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 650;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(12px, 1.6vw, 20px);
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.card h3 {
  margin-top: 18px;
}

.roles {
  margin-top: clamp(56px, 8vw, 96px);
}

.roles h3 {
  font-family: var(--display);
  font-stretch: 106%;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 720;
  letter-spacing: -0.015em;
}

.roles dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin-top: 26px;
}

.roles dl div {
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
}

.roles dt {
  color: var(--teal);
  font-weight: 650;
}

.roles dd {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9688rem;
}

.more {
  margin-top: clamp(40px, 5vw, 60px);
}

/* Four plain facts */

.trust {
  padding: clamp(40px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.trust ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.trust li {
  display: flex;
  gap: 14px;
  color: var(--teal);
}

.trust strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

.trust span {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* For partners: the marketplace's companies and coaches */

.partners {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.partners ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.partners li {
  display: flex;
  gap: 14px;
  color: var(--accent);
}

.partners strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

.partners span {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* How joining goes, in three numbered steps under the kinds of partner. */
.partners .partner-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: partner-step;
}

.partners .partner-steps li {
  display: block;
  counter-increment: partner-step;
}

.partners .partner-steps strong::before {
  content: counter(partner-step) ". ";
  color: var(--accent);
}

.partners .partner-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.partners .actions {
  margin-top: 36px;
}

/* The last word */

.closing {
  position: relative;
  padding: clamp(88px, 13vw, 170px) 0;
  border-top: 1px solid var(--line);
  background: radial-gradient(50% 70% at 50% 110%, rgb(47 196 187 / 0.2), transparent 70%);
  text-align: center;
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/lines.b0cd5845a9.svg") center 30% / 1100px auto no-repeat;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}

.closing h2 {
  font-size: clamp(2.4rem, 6.4vw, 4.75rem);
  font-weight: 800;
}

.closing .lead {
  margin: 22px auto 0;
}

.closing .actions {
  justify-content: center;
}

.closing-mail {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.closing-mail a {
  text-underline-offset: 3px;
}

.closing-mail a:hover {
  color: var(--ink);
}

.bottom {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.bottom .brand {
  color: var(--ink);
  font-size: 1.0625rem;
}

.bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-left: auto;
}

/* The features page (src/features.mjs): a lower first screen, the chapter bar, and chapters that
   each say why before they show how. */

.hero-features {
  padding-bottom: clamp(44px, 5vw, 64px);
}

.hero-features .lead {
  max-width: 44rem;
}

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.figures strong {
  display: block;
  color: var(--teal);
  font-family: var(--display);
  font-stretch: 108%;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 760;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.figures span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.chapters {
  position: sticky;
  top: 68px;
  z-index: 15;
  border-block: 1px solid var(--line);
  background: rgb(7 11 19 / 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.chapters ul {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 9px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.chapters ul::-webkit-scrollbar {
  display: none;
}

.chapters a {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9063rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}

.chapters a:hover {
  color: var(--ink);
}

.chapters a[aria-current] {
  background: color-mix(in srgb, var(--teal) 15%, transparent);
  color: var(--teal);
}

.chapter {
  padding: clamp(60px, 7.5vw, 104px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 124px;
}

.chapters + .chapter {
  border-top: 0;
}

.chapter-amber {
  --accent: var(--amber);
}

.chapter-blue {
  --accent: var(--blue);
}

.chapter-teal,
.chapter-raised {
  background: var(--bg-raised);
}

.chapter-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.why {
  color: var(--soft);
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.why strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--display);
  font-stretch: 118%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-window {
  width: 100%;
}

.points-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 36px;
  margin-top: clamp(44px, 5vw, 68px);
}

.chapter .actions {
  margin-top: 40px;
}

/* Before and in Athly */

.shift {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.shift li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.shift-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--teal) 13%, transparent);
  color: var(--teal);
}

.shift p span {
  display: block;
  margin-bottom: 2px;
  font-family: var(--display);
  font-stretch: 116%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.shift-was {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9688rem;
}

.shift-was s {
  text-decoration-color: rgb(255 255 255 / 0.3);
}

.shift-now {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9688rem;
  line-height: 1.55;
}

.shift-now span {
  color: var(--teal);
}

.principles {
  margin-top: clamp(56px, 7vw, 88px);
}

.principles h3 {
  font-family: var(--display);
  font-stretch: 106%;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 720;
  letter-spacing: -0.015em;
}

.principles ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin-top: 24px;
  counter-reset: principle;
}

.principles li {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9688rem;
  counter-increment: principle;
}

.principles li::before {
  content: counter(principle, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.principles strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

/* A chapter's tabs: each part with its text beside the app. */

.tab-list {
  width: fit-content;
}

.tab-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.62fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  margin-top: clamp(24px, 3vw, 36px);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel-phone {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tab-panel-phone .tab-media {
  display: flex;
  justify-content: center;
}

.tab-panel-phone .phone {
  width: min(100%, 300px);
}

.tab-text h3 {
  font-family: var(--display);
  font-stretch: 106%;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.tab-text p {
  margin-top: 14px;
  color: var(--soft);
  line-height: 1.6;
}

.ticks {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.ticks li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9688rem;
  line-height: 1.5;
}

.ticks .icon {
  margin-top: 2px;
  color: var(--accent);
}

/* A wide picture and a phone side by side */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.62fr);
  gap: clamp(16px, 3vw, 44px);
  align-items: center;
}

/* A window with a phone over its corner, inside a tab */

.growth-tab {
  margin-top: 0;
  padding-right: 15%;
}

.growth-tab .growth-phone {
  top: 12%;
  width: 31%;
}

/* The call to partners under the marketplace */

.partner-call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: clamp(40px, 5vw, 56px);
  padding: 24px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--teal) 7%, var(--surface));
}

.partner-call p {
  max-width: 40rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 550;
}

/* Plain facts about the platform */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
}

.facts li {
  display: flex;
  gap: 14px;
  color: var(--teal);
}

.facts strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}

.facts span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Pictures rise into place as they come into view, where the browser can do it by itself. */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .feature .window,
    .feature .panel,
    .feature .phone,
    .chapter .window,
    .chapter .panel,
    .chapter .phone,
    .shift li,
    .sports-stage,
    .tile,
    .card {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0.2;
    translate: 0 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* A wide but low window, as on a laptop: the first screen is drawn tighter, so the animation is
   already in sight under the heading. */

@media (min-width: 1000px) and (max-height: 840px) {
  .hero {
    padding-top: calc(69px + 28px);
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  .hero .lead {
    max-width: 52rem;
    margin-top: 18px;
    font-size: 1.0625rem;
  }

  .hero .actions {
    margin-top: 22px;
  }

  .hero-stage {
    margin-top: 36px;
  }
}

/* Narrower screens */

@media (max-width: 1120px) {
  .top-nav {
    display: none;
  }

  .menu {
    display: block;
  }
}

@media (max-width: 1000px) {

  .draw,
  .split {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .steps li {
    padding: 50px 0 0;
  }

  .steps li + li::before {
    display: none;
  }

  .step-number {
    top: 0;
  }

  .points-row,
  .points-grid,
  .shift {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust ul,
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-head,
  .tab-panel,
  .tab-panel-phone {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .tab-list {
    width: auto;
  }
}

@media (max-width: 720px) {
  .partners ul,
  .partners .partner-steps {
    grid-template-columns: 1fr;
  }

  .hero-phone {
    display: none;
  }

  .window {
    border-radius: 10px;
  }

  .window-bar {
    height: 26px;
  }

  .window-dots i {
    width: 7px;
    height: 7px;
  }

  .window-url {
    font-size: 0.625rem;
  }

  .steps,
  .pair,
  .roles dl,
  .principles ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .duo .phone {
    width: min(72%, 300px);
    margin-inline: auto;
  }

  .steps li {
    padding: 0 0 0 54px;
  }

  .step-number {
    top: -4px;
  }

  .tile,
  .tile-wide {
    grid-column: span 12;
    height: clamp(250px, 68vw, 380px);
  }

  /* Side by side they would be too small to read: one under the other instead. */
  .stack {
    display: grid;
    gap: 14px;
    padding-bottom: 0;
  }

  .stack-back,
  .stack-front {
    position: static;
    width: 100%;
  }

  /* Every other age group makes room for the rest. */
  .career li:nth-child(even):not(.career-end) {
    display: none;
  }

  .growth {
    padding-right: 0;
  }

  .growth-phone,
  .growth-tab .growth-phone {
    position: static;
    width: min(64%, 260px);
    margin: -18% auto 0;
  }

  .sports-tabs {
    width: 100%;
  }

  .bottom nav {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .points-row,
  .points-grid,
  .shift,
  .cards,
  .trust ul,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .actions .button {
    flex: 1 1 100%;
  }

  .top-row {
    gap: 12px;
  }

  .sports-line span + span::before {
    margin: 0 8px 2px;
  }
}

/* The picture for sharing the address (src/share.mjs): 1200 × 630, photographed, never visited. */

.share {
  position: relative;
  width: 1200px;
  height: 630px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgb(47 196 187 / 0.22), transparent 70%),
    var(--bg);
}

.share-text {
  position: absolute;
  left: 64px;
  top: 56px;
  z-index: 1;
}

.share .brand {
  gap: 16px;
  font-size: 2.25rem;
}

.share .brand img {
  border-radius: 14px;
}

.share h1 {
  margin-top: 36px;
  font-size: 3.5rem;
}

.share-picture {
  position: absolute;
  left: 470px;
  top: 356px;
  width: 940px;
  max-width: none;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 40px 90px -20px rgb(0 0 0 / 0.9);
  rotate: -4deg;
}
