/* Solutions page: the demo showcase. Shares the home page's fonts, colors and tile shapes (home.css). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-500.woff2") format("woff2");
}

:root {
  --canvas: #ECE7DC;
  --tile: #FFFFFF;
  --tile-soft: #F4F1EA;
  --ink: #161616;
  --ink-2: #3C3A36;
  --muted: #55524C;
  --coral: #C9501F;
  --coral-bright: #EE6A33;
  --coral-ink: #B8441A;
  --screen: #F5F2EF;
  --phone-w: clamp(250px, 24vw, 318px);
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
}

a {
  color: var(--coral-ink);
}

a:hover {
  color: #8E3312;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 5;
  background: var(--ink);
  color: #F4F1EA;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
}

.skip:focus {
  top: 12px;
}

.page {
  width: 100%;
  padding-bottom: 32px;
}

/* Header and footer match the home page. */
.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 24px;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: Archivo, sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: var(--tile);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--coral-ink);
}

.nav a.nav-beta,
.nav a.nav-beta:hover {
  background: var(--ink);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 999px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px 0;
  display: grid;
  gap: 16px;
}

.kicker {
  margin: 0 0 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--coral-ink);
}

/* Intro */
.intro {
  border-radius: 24px;
  background: var(--ink);
  color: #F4F1EA;
  padding: 44px 48px;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral-bright);
}

.intro h1 {
  margin: 0;
  max-width: 900px;
  font-family: Archivo, sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -1.5px;
}

.intro .dot {
  color: var(--coral-bright);
}

.intro .lede {
  margin: 20px 0 0;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.55;
  color: #E6E1D6;
}

/* The showcase: players | phone | parents + coaches */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.side {
  display: grid;
  gap: 16px;
}

.group {
  border-radius: 24px;
  background: var(--tile);
  padding: 26px 22px 18px;
}

.group-head {
  padding: 0 6px;
}

.group-head h2 {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
}

.group-head p:not(.kicker) {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.people {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.person img {
  display: block;
  height: 180px;
  max-width: 100%;
  object-fit: contain;
  /* Cutouts with a white background blend into the tile. */
  mix-blend-mode: multiply;
  transition: transform 200ms ease;
}

.person:hover,
.person:focus-visible {
  background: var(--tile-soft);
}

.person:hover img,
.person:focus-visible img {
  transform: translateY(-4px) scale(1.03);
}

.person[aria-pressed="true"] {
  background: var(--tile-soft);
  box-shadow: inset 0 0 0 3px var(--coral);
}

.person-label {
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}

.person-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--tile);
  border: 1.5px solid currentColor;
}

.person-chip.pilot {
  color: var(--coral-ink);
}

.person-chip.soon {
  color: var(--muted);
}

.person.is-soon img {
  opacity: 0.72;
  filter: grayscale(0.35);
}

/* The phone */
.stage {
  width: calc(var(--phone-w) + 40px);
  display: grid;
  gap: 14px;
  justify-items: center;
  position: sticky;
  top: 16px;
}

.phone {
  position: relative;
  width: var(--phone-w);
  padding: 11px;
  border-radius: calc(var(--phone-w) * 0.16);
  background: #111;
  box-shadow: 0 30px 70px rgba(60, 30, 10, 0.28);
}

.screen {
  position: relative;
  aspect-ratio: 780 / 1768;
  border-radius: calc(var(--phone-w) * 0.13);
  overflow: hidden;
  background: var(--coral);
}

.island {
  position: absolute;
  top: calc(11px + var(--phone-w) * 0.022);
  left: 50%;
  width: 30%;
  height: calc(var(--phone-w) * 0.075);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111;
}

.phone-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--screen);
  opacity: 0;
  transition: opacity 250ms ease;
}

.phone.is-playing .phone-video {
  opacity: 1;
}

.screen-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.screen-card[hidden] {
  display: none;
}

.idle {
  align-items: center;
  gap: 22px;
  color: #FFFFFF;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}

.idle p {
  margin: 0;
  max-width: 200px;
}

.chevrons {
  width: 46%;
  fill: #FFFFFF;
}

.soon {
  background: var(--screen);
  align-items: flex-start;
  text-align: left;
}

.soon-problem {
  margin: 0 0 22px;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 23px;
  line-height: 1.15;
}

.soon-link {
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.tap-play {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.tap-play[hidden] {
  display: none;
}

/* Under the phone: what's playing */
.now {
  width: 100%;
  border-radius: 20px;
  background: var(--tile);
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.5;
}

.now p {
  margin: 0;
}

.now-idle p:not(.kicker) {
  color: var(--muted);
}

.now-who {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--coral-ink);
}

.badge {
  color: var(--coral-ink);
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 2px 8px;
}

.badge[hidden] {
  display: none;
}

.now-problem {
  margin-top: 8px !important;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}

.now-step {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 3em;
  color: var(--ink-2);
}

.now-step-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--coral-ink);
}

.progress {
  margin-top: 10px;
  height: 4px;
  border-radius: 2px;
  background: var(--tile-soft);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--coral);
}

.controls {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ctl {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--tile-soft);
  color: var(--ink);
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.ctl:hover {
  background: #E9E3D6;
}

.status-note {
  margin-top: 12px !important;
  font-size: 13px;
  color: var(--muted);
}

/* Hover card next to a person */
.pop {
  position: fixed;
  z-index: 20;
  width: min(330px, calc(100vw - 32px));
  border-radius: 18px;
  background: var(--ink);
  color: #F4F1EA;
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.pop[hidden] {
  display: none;
}

.pop p {
  margin: 0;
}

.pop-who {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--coral-bright);
}

.pop-problem {
  margin-top: 8px !important;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 21px;
  line-height: 1.15;
}

.pop-quotes {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #CFC9BC;
}

.pop-quotes:empty {
  display: none;
}

.pop-action {
  margin-top: 14px !important;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--coral-bright);
}

/* What we heard */
.heard {
  border-radius: 24px;
  background: var(--tile);
  padding: 36px 40px;
}

.heard-head {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
}

.heard-head h2 {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 34px;
}

.heard-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.heard-quotes {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3 260px;
  column-gap: 12px;
}

.heard-quotes li {
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: 16px;
  background: var(--tile-soft);
  padding: 18px 20px;
  font-size: 17px;
  line-height: 1.45;
}

.heard-quotes .from {
  display: block;
  margin-top: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--coral-ink);
}

/* Partner tile and footer, as on the home page */
.link-tile {
  border-radius: 24px;
  background: var(--tile);
  padding: 32px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.link-tile:hover {
  color: var(--ink);
  background: #F7F4EE;
}

.wide-copy {
  display: grid;
  gap: 8px;
}

.link-tile .kicker {
  margin: 0;
}

.link-tile h3 {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 24px;
}

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

.wide-go {
  flex: 0 0 auto;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--coral-ink);
  white-space: nowrap;
}

.site-footer {
  border-radius: 24px;
  background: var(--ink);
  color: #CFC9BC;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-brand img {
  height: 18px;
  display: block;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: Archivo, sans-serif;
  font-weight: 600;
}

.footer-nav a {
  color: #F4F1EA;
  text-decoration: none;
}

/* Full-size player */
.full {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}

.full::backdrop {
  background: rgba(14, 13, 12, 0.88);
}

.full-video {
  display: block;
  height: min(92vh, 1920px);
  max-width: 96vw;
  border-radius: 18px;
  background: var(--canvas);
}

.full-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #F4F1EA;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* Tablet: phone first, the three groups side by side underneath */
@media (max-width: 1080px) {
  .showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stage {
    grid-column: 1 / -1;
    grid-row: 1;
    position: static;
    width: 100%;
    grid-template-columns: auto minmax(0, 420px);
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .side {
    display: contents;
  }

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

  .person img {
    height: 150px;
  }
}

/* Phone: everything stacks; each group scrolls sideways */
@media (max-width: 720px) {
  .site-header,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    padding: 6px 6px 6px 14px;
  }

  .intro {
    padding: 32px 24px;
  }

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

  .stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  :root {
    --phone-w: min(300px, 76vw);
  }

  .people {
    grid-auto-flow: column;
    grid-auto-columns: 42%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .person {
    scroll-snap-align: start;
  }

  .heard {
    padding: 28px 22px;
  }

  .link-tile {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
