/* Athlete Atlas marketing site, v2. Tokens follow docs/DESIGN_GUIDE_V1.md (section 2). */

:root {
  --background: #f8fafc;
  --card: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #475569;
  --primary: #304269;
  --primary-deep: #1b2744;
  --primary-foreground: #ffffff;
  --secondary: #91bed4;
  --tint: #eaf3f8;
  --cta: #f68924;
  --cta-foreground: #0f172a;
  --cta-strong: #b45309;
  --input: #64748b;
  --border: #cbd5e1;
  --success: #166534;
  --destructive: #b91c1c;
  --radius: 14px;
  --shadow:
    0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 30px rgba(15, 23, 42, 0.08);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem);
  font-weight: 700;
  max-width: 24ch;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 820px;
}

.container.center {
  text-align: center;
}

.container.center h2 {
  margin-left: auto;
  margin-right: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  white-space: nowrap;
}

/* Focus ring: navy on light surfaces, white on dark ones (orange on white is 2.5, under the 3 a ring needs) */
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hero .btn:focus-visible,
.band-dark .btn:focus-visible {
  outline-color: #ffffff;
}

.band-dark .pilot-form .btn:focus-visible {
  outline-color: var(--primary);
}

.btn-lg {
  min-height: 52px;
  padding: 12px 26px;
  font-size: 16px;
}

/* The owner's light-blue, borderless CTA (review round 1, 19 Oct 2026): ink text on light blue is 8.9 */
.btn-cta {
  background: var(--secondary);
  color: var(--cta-foreground);
  border-color: transparent;
}

.btn-cta:hover {
  background: #a3cadd;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--muted);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand img {
  width: 170px;
  height: auto;
}

.site-nav {
  display: none;
  gap: 22px;
  margin-left: auto;
}

.nav-signin {
  display: none;
}

/* Hamburger: shown under 960px, where the section links are hidden */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 959px) {
  .site-nav.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 4px 20px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.open a {
    display: block;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    font-size: 17px;
  }

  .site-nav.open a:first-child {
    border-top: 0;
  }

  .site-nav.open .nav-signin {
    display: block;
    color: var(--primary);
    font-weight: 600;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
}

.nav-actions .btn-ghost {
  display: none;
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }

  .nav-actions {
    margin-left: 0;
  }

  .nav-actions .btn-ghost {
    display: inline-flex;
  }
}

/* Eyebrows and labels */
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow.light {
  color: var(--secondary);
}

.side-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 6px 0 0;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 64ch;
}

.container.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.light-copy {
  color: #d9e8f5;
  font-size: 1.05rem;
  max-width: 58ch;
}

.fine-print {
  font-size: 14px;
  color: var(--muted-foreground);
}

.fine-print.light {
  color: #d9e8f5;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  overflow: hidden;
  background: var(--primary-deep);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.25) 0%,
      rgba(15, 23, 42, 0.55) 45%,
      rgba(15, 23, 42, 0.92) 100%
    ),
    linear-gradient(90deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.2) 70%);
}

.hero-content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 72px;
  max-width: var(--container);
}

.hero h1 {
  max-width: 22ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

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

.hero-lead {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  max-width: 56ch;
  color: #eef4f8;
  margin-bottom: 22px;
}

.hero-lines {
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #d9e8f5;
  max-width: 60ch;
}

.hero-lines strong {
  color: #ffffff;
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
}

@media (min-width: 960px) {
  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: 160px;
    padding-bottom: 96px;
  }
}

/* Stat strip */
.strip {
  background: var(--primary-deep);
  color: #ffffff;
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.strip-grid {
  display: grid;
  gap: 22px 28px;
  grid-template-columns: 1fr 1fr;
  /* Every figure starts on the same line, however many lines its caption takes */
  align-items: start;
}

/* Four across once each figure fits on one line. A column is as wide as its figure (a short one gets a floor), and the
   caption fills that width instead of setting it, so it wraps to two lines rather than squeezing a column */
@media (min-width: 1080px) {
  .strip-grid {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 22px 32px;
  }

  .stat {
    min-width: 12.5rem;
  }

  .stat-txt {
    width: 0;
    min-width: 100%;
  }
}

.strip-label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-num {
  font-size: clamp(2rem, 1.2rem + 2vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-txt {
  font-size: 15px;
  line-height: 1.45;
  color: #d9e8f5;
  margin-top: 6px;
}

.strip-source {
  margin: 22px auto 0;
  font-size: 12px;
  color: #91bed4;
}

/* Bands */
.band {
  padding: 64px 0;
}

@media (min-width: 960px) {
  .band {
    padding: 96px 0;
  }
}

.band-muted {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band-dark {
  background: var(--primary-deep);
  color: #ffffff;
}

#pilot.band-dark {
  background:
    linear-gradient(
      90deg,
      rgba(27, 39, 68, 0.96) 0%,
      rgba(27, 39, 68, 0.86) 100%
    ),
    url("/assets/skater-spray-dark.jpg") center / cover no-repeat;
  background-image:
    linear-gradient(
      90deg,
      rgba(27, 39, 68, 0.96) 0%,
      rgba(27, 39, 68, 0.86) 100%
    ),
    image-set(
      url("/assets/skater-spray-dark.webp") type("image/webp"),
      url("/assets/skater-spray-dark.jpg") type("image/jpeg")
    );
}

.band-dark h2,
.band-dark h3 {
  color: #ffffff;
}

/* Two-column helper */
.two-col {
  display: grid;
  gap: 20px 48px;
  align-items: start;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 140px 1fr;
  }

  .two-col.wide {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 15px;
  font-weight: 500;
}

.chip:nth-child(3n) {
  border-color: var(--primary);
  color: var(--primary);
}

/* Scenarios */
.scenarios {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

@media (min-width: 720px) {
  .scenarios {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .scenarios {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scenario {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.scenario h3 {
  font-size: 1.15rem;
  margin: 12px 0 8px;
}

.scenario p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 15px;
}

.scenario-private {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #ffffff;
}

.scenario-private h3 {
  color: #ffffff;
}

.scenario-private p {
  color: #d9e8f5;
}

.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary);
}

.scenario-private .tag {
  background: var(--cta);
  color: var(--cta-foreground);
}

/* Passport figure */
.passport {
  margin: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
}

.passport figcaption {
  font-size: 12px;
  color: #91bed4;
  text-align: center;
  padding: 6px 0 8px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.checklist li {
  padding-left: 30px;
  position: relative;
  margin: 10px 0;
  color: #eef4f8;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cta);
}

/* Personas */
.personas {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

@media (min-width: 820px) {
  .personas {
    grid-template-columns: repeat(2, 1fr);
  }
}

.persona {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}

.persona img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.persona-body {
  padding: 24px;
}

.persona-hook {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.persona ul {
  margin: 0;
  padding-left: 18px;
}

.persona li {
  margin: 8px 0;
  color: var(--muted-foreground);
}

.persona-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Who-sees table */
.table-wrap {
  margin: 28px 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.who-sees {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.who-sees th,
.who-sees td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.who-sees thead th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.who-sees tbody th {
  font-weight: 600;
  width: 34%;
}

.who-sees td.no {
  color: var(--muted-foreground);
}

.who-sees tbody tr:last-child td,
.who-sees tbody tr:last-child th {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .who-sees {
    font-size: 13px;
    min-width: 560px;
  }

  .table-wrap {
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
  }

  .chip {
    font-size: 14px;
    padding: 8px 12px;
  }

  .chips {
    gap: 8px;
  }

  .strip {
    padding: 36px 0 24px;
  }

  .strip-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .stat {
    padding-left: 16px;
  }

  .stat-num {
    font-size: 2.4rem;
    white-space: normal;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    padding-top: 96px;
    padding-bottom: 56px;
  }

  .who-sees th,
  .who-sees td {
    padding: 10px 8px;
  }
}

.table-note {
  font-size: 14px;
  color: var(--muted-foreground);
}

/* Fit grid */
.fit-grid {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  text-align: left;
}

@media (min-width: 720px) {
  .fit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fit-grid > div {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.fit-grid dt {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.fit-grid dd {
  margin: 0;
  color: var(--muted-foreground);
}

/* FAQ */
details {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 18px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

summary::after {
  content: "+";
  color: var(--primary);
  font-weight: 700;
  flex: 0 0 auto;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0 0 16px;
  color: var(--muted-foreground);
}

/* Pilot */
.pilot-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 960px) {
  .pilot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.pilot-form {
  background: var(--card);
  color: var(--foreground);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.pilot-form h3 {
  color: var(--foreground);
  margin-bottom: 16px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.optional {
  color: var(--muted-foreground);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--input);
  border-radius: 10px;
  font: inherit;
  color: var(--foreground);
  background: var(--card);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.field.invalid input,
.field.invalid select {
  border-color: var(--destructive);
}

.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted-foreground);
}

.field-consent input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin-top: 2px;
  flex: 0 0 20px;
  accent-color: var(--primary);
}

.field-consent.invalid label {
  color: var(--destructive);
}

.form-note {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 12px 0 0;
}

.form-status {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.ok {
  color: var(--success);
}

.form-status.err {
  color: var(--destructive);
}

/* Footer */
.site-footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-tag {
  color: var(--muted-foreground);
  font-size: 14px;
  margin: 12px 0 0;
  max-width: 40ch;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.copyright {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted-foreground);
}
