@font-face {
  font-family: "JPM AM Pro";
  src: url("/assets/fonts/jpmamproreg-webfont.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Delight";
  src: url("/assets/fonts/Delight-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbfbfb;
  --ink: #242222;
  --body: #404040;
  --red: #db0707;
  --phone-width: 172.314px;
  --phone-height: 374.092px;
  --marquee-gap: 45px;
  font-family: "JPM AM Pro",Arial,sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

img {
  display: block;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

button:not(:disabled),a[href] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #e81240;
  outline-offset: 5px;
}

[hidden] {
  display: none!important;
}

h1,h2,p {
  margin: 0;
}

h1,h2 {
  font-family: "Delight", "JPM AM Pro", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: normal;
  text-wrap: balance;
}

p {
  line-height: 1.4;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 16px;
  left: 16px;
  padding: 16px;
  background: white;
  color: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.hero {
  position: relative;
  height: clamp(480px,45.87vw,760px);
  overflow: hidden;
  background: #171b1e;
}

.hero-image {
  position: absolute;
  left: -1.6%;
  top: -11%;
  width: 103.3%;
  height: 111%;
  object-fit: fill;
  object-position: center bottom;
  transform: translate3d(0,var(--hero-background-depth,0px),0);
}

/* Keep the native SVG dimensions intact;
scale the complete brand lockup. */
.logo-lockup {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 468.894px;
  height: 106.299px;
  transform: translate(-50%,-50%) translate3d(0,var(--hero-logo-depth,0px),0) scale(var(--logo-scale,1));
}

.logo-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}

.wordmark {
  position: absolute;
  top: 0;
  left: 0;
}

.tagline {
  position: absolute;
  top: 85.63px;
  left: 50%;
  transform: translateX(-50%);
}

/* Absolute positioning docks the banner to the hero, so it leaves with the hero. */
.beta-banner {
  position: absolute;
  right: 0;
  bottom: 44px;
  width: 450px;
  min-height: 156px;
  padding: 24px 25px 16px;
  border-radius: 8px 0 0 8px;
  background: var(--red);
  color: white;
}

.beta-banner>p {
  font-family: "Delight", "JPM AM Pro", Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: normal;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.beta-button {
  margin-top: 20px;
  transition: background-color 160ms ease-out;
}

.beta-button[href]:focus-visible {
  background: #383535;
}

.intro {
  position: relative;
  min-height: 676px;
  padding: 48px 24px 244px;
  background: radial-gradient(ellipse at 50% 110%,#8e8e8e,#3b3b3b 80%);
  color: white;
  isolation: isolate;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/images/intro-texture.webp") center/cover;
  opacity: .8;
  mask-image: url("/assets/images/8ce6d.svg");
  mask-size: 100% 100%;
}

/* Keep the fade behind the phones and copy, blending the dark panel into the page. */
.intro::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 311px;
  background: linear-gradient(to bottom, rgba(251,251,251,0), var(--paper));
  pointer-events: none;
}

.intro-copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 64px;
  max-width: 687px;
  margin: 0 auto 24px;
}

.intro-copy>p:not(.availability) {
  max-width: 549px;
  margin: 0 auto;
  font-size: 18px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

.store-badge {
  position: relative;
  display: block;
  cursor: pointer;
  flex: 0 0 206px;
  height: 62px;
  border: 2px solid white;
  border-radius: 6px;
  background: black;
  overflow: hidden;
  transition: transform 160ms ease-out, border-color 160ms ease-out;
  transform-origin: center;
}

.store-badge:focus-visible {
  transform: scale(1.035);
}

/* Restrict hover motion to mouse/trackpad input so touch taps do not latch it. */
@media (hover:hover) and (pointer:fine) {
  .store-badge:hover {
    transform: scale(1.035);
  }
  .beta-button[href]:hover {
    background: #383535;
  }
}

.beta-button[href]:active {
  background: #151414;
}

.store-badge img {
  position: absolute;
}

.apple .store-icon {
  left: 17.5px;
  top: 8px;
}

.apple .store-kicker {
  left: 63px;
  top: 9px;
}

.apple .store-name {
  left: 61px;
  top: 25px;
}

.google img {
  transform: scaleY(-1);
}

/* Both placements use the larger Figma badge artwork for consistent lettering. */
.google .store-icon {
  left: 13px;
  top: 9px;
}

.google .store-kicker {
  left: 59px;
  top: 9px;
}

.google .store-name {
  left: 58px;
  top: 24px;
}

.availability {
  font-size: 14px;
  margin-top: 12px;
  color: #ededed;
}

.screenshots {
  position: relative;
  margin-top: -195px;
  z-index: 1;
  padding-bottom: 80px;
}

.marquee-viewport {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}

.marquee-viewport::-webkit-scrollbar {
  display: none;
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  padding-right: var(--marquee-gap);
  flex-shrink: 0;
}

/* Equal groups include their trailing gap, so the loop has no visible seam. */
.screenshots.is-animated .marquee-track {
  animation: marquee 100s linear infinite;
  will-change: transform;
}

.marquee-viewport:focus-within .marquee-track {
  animation-play-state: paused;
}

@media(hover:hover) {
  .screenshots:hover .marquee-track {
    animation-play-state: paused;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.phone {
  position: relative;
  flex: 0 0 var(--phone-width);
  width: var(--phone-width);
  height: var(--phone-height);
  border: 4.4px solid #1d1f1a;
  outline: 2px solid #cacaca;
  border-radius: 24px;
  overflow: hidden;
  background: #242222;
}

.phone>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone .phone-overlay {
  position: absolute;
  inset: 0;
}

.features {
  max-width: 1116px;
  margin: 0 auto;
  padding: 0 0 64px;
}

.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 476px;
}

.feature-copy {
  padding-left: 60px;
}

.feature h2 {
  font-size: 50px;
  max-width: 520px;
  margin-bottom: 24px;
}

.feature p {
  font-size: 18px;
  color: var(--body);
  max-width: 511px;
}

.feature-art {
  position: relative;
  width: 100%;
  height: 440px;
}

/* Child layers provide depth while the outer artwork keeps its responsive scale. */
.feature-art .phone {
  transform: translate3d(0,var(--phone-depth,0px),0);
}

.feature-art .court {
  transform: translate3d(0,var(--court-depth,0px),0);
}

.feature-art .story-cutout {
  transform: translate3d(0,var(--article-depth,0px),0);
}

.feature-reverse {
  grid-template-columns: 1fr 1.1fr;
}

.feature-reverse .feature-copy {
  grid-column: 2;
  grid-row: 1;
  padding-left: 0;
}

.feature-reverse .feature-art {
  grid-column: 1;
  grid-row: 1;
}

.court {
  position: absolute;
  width: 396px;
  height: 247.122px;
  overflow: hidden;
}

/* Rotate the complete court so its texture and linework keep the same orientation. */
.court-surface {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 396px;
  height: 247.122px;
  background: url("/assets/images/court-texture.webp") center/cover;
  transform: translate(-50%,-50%);
}

.court-surface>img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}

.court-portrait {
  width: 247.122px;
  height: 396px;
}

.court-portrait .court-surface {
  transform: translate(-50%,-50%) rotate(90deg);
}

.news-art .court {
  top: 0;
  right: 120px;
}

.news-art .phone {
  position: absolute;
  top: 67px;
  left: 78px;
}

.story-cutout {
  position: absolute;
  left: 9px;
  top: 151px;
  width: 220px;
  height: 245px;
  object-fit: cover;
  /* The lifted article keeps the paper shadow specified in the website design. */
  box-shadow: 2px 4px 21.4px rgba(0,0,0,.25);
}

.dynasty-art .court {
  left: 0;
  top: 110px;
}

.dynasty-art .phone-first {
  position: absolute;
  left: 81px;
  top: 32px;
}

.dynasty-art .phone-second {
  position: absolute;
  left: 296px;
  top: 63px;
}

.rebuild-art .court {
  left: 92px;
  top: 8px;
}

.rebuild-art .phone {
  position: absolute;
  left: 216px;
  top: 71px;
}

.scouting-art .court {
  left: 95px;
  top: 114px;
}

.scouting-art .phone-first {
  position: absolute;
  left: 0;
  top: 91px;
}

.scouting-art .phone-second {
  position: absolute;
  left: 225px;
  top: 32px;
}

.feature-scouting {
  margin-bottom: 48px;
}

.footer {
  /* Match the background travel cap in main.js so scrolling cannot expose an edge. */
  --footer-overscan: 84px;
  position: relative;
  isolation: isolate;
  min-height: 696px;
  padding: 158px 24px 72px;
  color: white;
  background: var(--ink);
  text-align: center;
  overflow: hidden;
}

.footer-image {
  position: absolute;
  inset: calc(-1 * var(--footer-overscan)) 0;
  z-index: -2;
  width: 100%;
  height: calc(100% + var(--footer-overscan) * 2);
  object-fit: cover;
  object-position: center;
  transform: translate3d(0,var(--footer-background-depth,0px),0);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #0008;
}

.footer-content {
  max-width: 1040px;
  margin: 0 auto;
  transform: translate3d(0,var(--footer-content-depth,0px),0);
}

.footer h2 {
  font-size: 64px;
}

.footer-description {
  font-size: 26px;
  max-width: 945px;
  margin: 24px auto 0;
}

.footer-availability {
  font-size: 20px;
  margin-top: 56px;
}

.footer .store-buttons {
  margin-top: 32px;
}

.copyright {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  font-size: 14px;
  color: #d1d1d1;
}

@media(min-width:1600px) {
  .hero {
    max-height: 760px;
  }
  .features {
    max-width: 1200px;
  }
  .feature {
    min-height: 500px;
  }
}

@media(max-width:1150px) {
  .features {
    padding: 0 32px 48px;
  }
  .feature {
    gap: 32px;
  }
  .feature-copy {
    padding-left: 0;
  }
  .feature h2 {
    font-size: 44px;
  }
  .feature-art {
    transform: scale(.85);
    transform-origin: center;
  }
  .feature-reverse .feature-art {
    transform-origin: left center;
  }
  .feature {
    min-height: 440px;
  }
}

@media(max-width:850px) {
  .hero {
    height: 560px;
  }
  .hero-image {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .beta-banner {
    width: 360px;
    bottom: 24px;
  }
  .beta-banner>p {
    font-size: 28px;
  }
  .logo-lockup {
    top: 40%;
  }
  /* Fixed-size artwork must not set the grid's minimum width or clip the copy. */
  h1 {
    font-size: 52px;
    max-width: 600px;
  }
  .intro {
    padding-top: 56px;
  }
  .feature,.feature-reverse {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
    min-height: 0;
    padding: 40px 0;
  }
  .features {
    max-width: 600px;
    padding: 0 24px 24px;
  }
  .feature-copy,.feature-reverse .feature-copy {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }
  .feature h2 {
    font-size: 44px;
    max-width: 500px;
  }
  .feature p {
    max-width: 520px;
  }
  .feature-art,.feature-reverse .feature-art {
    grid-column: 1;
    grid-row: 2;
    width: 492px;
    max-width: none;
    justify-self: center;
    transform: scale(.95);
    transform-origin: center;
  }
  .feature-scouting {
    margin-bottom: 16px;
  }
  .footer {
    min-height: 640px;
    --footer-overscan: 52px;
    padding-top: 120px;
  }
  .footer h2 {
    font-size: 52px;
  }
  .footer-description {
    font-size: 24px;
  }
}

@media(max-width:520px) {
  :root {
    --marquee-gap: 24px;
  }
  .hero {
    height: 520px;
  }
  .hero-image {
    object-position: 48% bottom;
  }
  .logo-lockup {
    --logo-scale: .65;
    top: 36%;
  }
  .beta-banner {
    width: calc(100% - 48px);
    max-width: 340px;
    /* Content sets the phone banner's height; flex avoids space below the button's baseline. */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 20px 24px;
  }
  .beta-banner>p {
    font-size: 28px;
  }
  .beta-button {
    font-size: 16px;
    min-height: 44px;
  }
  .intro {
    padding: 48px 24px 200px;
    min-height: 0;
  }
  .intro::after {
    /* The stacked badges and availability line stay above the fade on phones. */
    height: 200px;
  }
  h1 {
    font-size: 42px;
    max-width: 360px;
  }
  .intro-copy>p:not(.availability) {
    font-size: 18px;
  }
  .store-buttons {
    gap: 12px;
    margin-top: 24px;
  }
  .store-badge {
    flex-basis: 206px;
  }
  .screenshots {
    margin-top: -128px;
    padding-bottom: 80px;
  }
  .marquee-group {
    padding-left: 0;
  }
  .features {
    overflow: hidden;
  }
  .feature {
    padding: 32px 0;
    gap: 0;
  }
  .feature h2 {
    font-size: 38px;
    max-width: 360px;
    margin-bottom: 20px;
  }
  .feature p {
    font-size: 18px;
  }
  .feature-art,.feature-reverse .feature-art {
    height: 400px;
    transform: scale(.72);
    margin: -24px 0 -48px;
    align-self: center;
  }
  .news-art {
    margin-top: -12px;
  }
  .footer {
    padding: 88px 24px 96px;
    min-height: 700px;
  }
  .footer h2 {
    font-size: 42px;
  }
  .footer-description {
    font-size: 22px;
  }
  .footer-availability {
    font-size: 18px;
    margin-top: 40px;
  }
  .footer .store-buttons {
    margin-top: 24px;
  }
}

@media(max-width:360px) {
  .logo-lockup {
    --logo-scale: .6;
  }
  .feature-art,.feature-reverse .feature-art {
    transform: scale(.62);
  }
}

@media(prefers-reduced-motion:reduce) {
  .footer {
    --footer-overscan: 0px;
  }
  .footer-image,
  .footer-content {
    transform: none;
  }
  .hero-image {
    transform: none;
  }
  .logo-lockup {
    transform: translate(-50%,-50%) scale(var(--logo-scale,1));
  }
  .feature-art .phone,
  .feature-art .court,
  .feature-art .story-cutout {
    transform: none;
  }
  .store-badge,
  .store-badge:hover,
  .store-badge:focus-visible,
  .beta-button,
  .beta-button[href]:hover,
  .beta-button[href]:focus-visible,
  .beta-button[href]:active {
    transition: none;
    transform: none;
  }
  .screenshots.is-animated .marquee-track {
    animation: none;
    transform: none;
    will-change: auto;
  }
  .marquee-group[aria-hidden="true"] {
    display: none;
  }
}
