/* FitShare site: same "race bib" look as the app. Ink, bone, volt. */
@font-face { font-family: "Big Shoulders"; src: url(fonts/bigshoulders.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(fonts/archivo.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0C0D0B; --raised: #171815; --bone: #F4F1EA; --muted: rgba(244, 241, 234, .66);
  --hair: rgba(244, 241, 234, .14); --volt: #C6F432;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 18px/1.6 Archivo, system-ui, sans-serif;
}
a { color: var(--volt); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.top, main, footer { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { color: var(--bone); text-decoration: none; font-weight: 800; letter-spacing: .3em; font-size: 15px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 10px 0; }
.top nav a:hover { color: var(--bone); }

h1, h2, h3 { font-family: "Big Shoulders", Impact, sans-serif; font-weight: 800; line-height: .95; margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-size: clamp(54px, 11vw, 120px); letter-spacing: -.01em; }
article h1 { font-size: clamp(44px, 8vw, 84px); }
h1 span { color: var(--volt); }
h2 { font-size: clamp(34px, 5vw, 52px); margin-top: 1.6em; }
h3 { font-size: 28px; }
.kicker { color: var(--muted); font-weight: 700; letter-spacing: .22em; font-size: 13px; margin: 48px 0 18px; }
.lead { font-size: clamp(19px, 2.4vw, 22px); color: var(--muted); max-width: 40em; }
.small { color: var(--muted); font-size: 15px; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 8px; }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 16px;
  background: var(--volt); color: var(--ink); font-weight: 700; text-decoration: none;
  transition: transform .16s ease-out;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--raised); color: var(--bone); box-shadow: inset 0 0 0 1px var(--hair); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px 0; }
.gallery img { border-radius: 22px; background: var(--raised); }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -20px; padding-right: 20px; }
  .gallery img { scroll-snap-align: start; }
}
.shot { max-width: 320px; border-radius: 22px; margin: 32px auto; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; padding: 16px 0; border-top: 1px solid var(--hair); }
.steps li::before { content: "0" counter(s); font: 800 30px/1 "Big Shoulders", sans-serif; color: var(--volt); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 56px; }
.grid div { background: var(--raised); border-radius: 20px; padding: 24px; box-shadow: inset 0 0 0 1px var(--hair); }
.grid p { color: var(--muted); margin: 0; }

.links { padding-left: 1.1em; }
.links li { margin: 8px 0; }

.faq details { border-top: 1px solid var(--hair); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 44px; }
.faq p { color: var(--muted); margin: 0 0 16px; }

article { max-width: 760px; }
article ul { padding-left: 1.1em; }
footer { margin-top: 96px; padding-top: 24px; padding-bottom: 48px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* app table: scrolls sideways inside its box on phones instead of widening the page */
.table { overflow-x: auto; margin: 24px 0; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--hair); }
.table table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 16px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--hair); vertical-align: top; }
.table thead th { border-top: 0; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.table td:first-child { font-weight: 700; white-space: nowrap; }
.table td:nth-child(2), .table td:nth-child(4) { color: var(--muted); }

/* phones: brand on its own line, links below, so four nav links never squeeze the wordmark */
@media (max-width: 480px) {
  .top { flex-wrap: wrap; gap: 0 16px; padding-top: 8px; }
  .top nav { gap: 0 16px; width: 100%; }
}
.steps span { overflow-wrap: anywhere; }

/* one-line pointer to the page in the other language (shown by a tiny inline script) */
.langbar { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 4px 12px; background: var(--raised); border-bottom: 1px solid var(--hair); font-size: 15px; }
.langbar[hidden] { display: none; }
.langbar a { padding: 10px 4px; font-weight: 600; }
.langbar button { font: inherit; color: var(--muted); background: none; border: 0; min-width: 44px; min-height: 44px; cursor: pointer; }
