.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--dl-layout-space-twounits, 32px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); max-width: 960px; }
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--dl-color-template-fl-lt-grey, #fcfcfc);
  border: 1px solid var(--dl-color-template-gray-200);
  border-radius: 20px;
  padding: var(--dl-layout-space-twounits, 32px);
}

.app-icon {
  mix-blend-mode: multiply;
  height: 104px;
  width: auto;
  margin-bottom: var(--dl-layout-space-unit, 16px);
}

.app-hero-icon {
  mix-blend-mode: multiply;
  height: 160px;
  width: auto;
  margin: 0 auto var(--dl-layout-space-unit, 16px);
}

.app-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.app-name a {
  text-decoration: none;
  color: inherit;
}

.app-tag,
.app-hero-tag {
  font-weight: 600;
  margin-top: var(--dl-layout-space-halfunit, 8px);
}

.app-hero-tag {
  font-size: 24px;
  margin-bottom: var(--dl-layout-space-unit, 16px);
}

.app-desc {
  color: #5a6270;
  line-height: 1.5;
  margin-top: var(--dl-layout-space-unit, 16px);
}

.app-list {
  list-style: none;
  display: grid;
  gap: 12px;
  text-align: left;
  margin-top: var(--dl-layout-space-oneandhalfunits, 24px);
}

.app-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.4;
}

.app-list svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  fill: none;
  stroke: #000000;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-get {
  margin-top: auto;
  padding-top: var(--dl-layout-space-twounits, 32px);
}

.gs-hero .app-get {
  margin-top: var(--dl-layout-space-twounits, 32px);
  padding-top: 0;
}

.app-back {
  text-align: center;
}

.app-back a {
  font-weight: 600;
}

@media (max-width: 767px) {
  .app-hero-icon { height: 120px; }
}

/* Partners carousel: the track holds two identical halves so the loop is seamless */
.partner-carousel {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000000 8%, #000000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000000 8%, #000000 92%, transparent);
}

.partner-track {
  display: flex;
  gap: var(--dl-layout-space-twounits, 32px);
  width: max-content;
  animation: partner-scroll 30s linear infinite;
}

.partner-carousel:hover .partner-track {
  animation-play-state: paused;
}

.partner-tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  padding: 0 40px;
  border-radius: 20px;
  background-color: #000000;
}

.partner-tile img {
  height: 40px;
  width: auto;
}

@keyframes partner-scroll {
  to { transform: translateX(calc(-50% - var(--dl-layout-space-unit, 16px))); }
}

@media (prefers-reduced-motion: reduce) {
  .partner-carousel {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .partner-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
  .partner-tile[aria-hidden="true"] {
    display: none;
  }
}

/* Home page: platform overview */
.platform-elm {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--dl-layout-space-sixunits, 96px) var(--dl-layout-space-twounits, 32px) var(--dl-layout-space-fiveunits, 80px);
}

.platform-inner {
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.platform-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
}

.platform-intro {
  max-width: 760px;
  margin: var(--dl-layout-space-oneandhalfunits, 24px) auto var(--dl-layout-space-fourunits, 64px);
  font-size: 20px;
  line-height: 1.5;
  color: #5a6270;
}

.platform-card {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.platform-cta {
  margin-top: var(--dl-layout-space-fourunits, 64px);
}

@media (max-width: 767px) {
  .platform-title { font-size: 34px; }
  .platform-intro { font-size: 18px; }
}

/* "What people are saying" band: blue panel with three offset quote blocks */
.say-band {
  position: relative;
  text-align: center;
  color: #ffffff;
  background-color: var(--dl-color-template-blue-bg, #22548c);
  border-radius: 28px;
  padding: var(--dl-layout-space-fourunits, 64px) var(--dl-layout-space-twounits, 32px) var(--dl-layout-space-sixunits, 96px);
  margin-bottom: var(--dl-layout-space-fiveunits, 80px);
}

.say-mark {
  width: 72px;
  height: 72px;
  fill: rgba(255, 255, 255, 0.3);
}

.say-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: var(--dl-layout-space-unit, 16px);
}

.say-kicker {
  margin-top: var(--dl-layout-space-halfunit, 8px);
  opacity: 0.8;
}

.say-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dl-layout-space-twounits, 32px);
  align-items: start;
  margin-top: var(--dl-layout-space-threeunits, 48px);
  text-align: left;
}

/* offset arrangement: the middle block sits lower, and the last lower still */
.say-card:nth-child(2) { margin-top: 48px; }
.say-card:nth-child(3) { margin-top: 24px; }

.say-card {
  color: #000000;
  background-color: var(--dl-color-template-gray-100, #e6e9ed);
  border-radius: 36px;
  padding: var(--dl-layout-space-twounits, 32px);
}

.say-card blockquote {
  line-height: 1.5;
  font-size: 18px;
}

.say-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: var(--dl-layout-space-oneandhalfunits, 24px);
}

.say-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  background-color: #000000;
}

.say-who {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.say-who i {
  font-style: normal;
  font-size: 14px;
  color: #5a6270;
}

@media (max-width: 899px) {
  .say-grid { grid-template-columns: 1fr; }
  .say-card:nth-child(2),
  .say-card:nth-child(3) { margin-top: 0; }
  .say-card:nth-child(2) { margin-left: 24px; }
  .say-card:nth-child(3) { margin-right: 24px; }
  .say-title { font-size: 32px; }
}

/* Developer page */
.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dl-layout-space-unit, 16px);
  justify-content: center;
  margin-top: var(--dl-layout-space-twounits, 32px);
}

.dev-secondary {
  display: inline-block;
  font-weight: 600;
  padding: var(--dl-layout-space-unit, 16px) var(--dl-layout-space-threeunits, 48px);
  border-radius: 56px;
  border: 1px solid #000000;
  transition: 0.3s;
}

.dev-secondary:hover {
  background-color: #000000;
  color: #ffffff;
}

.dev-code {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--dl-layout-space-twounits, 32px);
  border-radius: 20px;
  background-color: #000000;
  color: #ffffff;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.6;
}

/* Partner category cards */
.partner-cat {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.partner-cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.partner-cat-more {
  margin-top: auto;
  padding-top: var(--dl-layout-space-unit, 16px);
  font-weight: 600;
}

/* Contact form */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: var(--dl-layout-space-oneandhalfunits, 24px);
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field label {
  font-weight: 600;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  font: inherit;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--dl-color-template-gray-100, #e6e9ed);
  background-color: var(--dl-color-template-fl-lt-grey, #fcfcfc);
  color: #000000;
}

.contact-field textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--dl-color-template-blue-bg, #22548c);
  outline: none;
}

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

.contact-status {
  min-height: 1.5em;
  text-align: center;
  color: #5a6270;
}

.contact-status.contact-error {
  color: #b00020;
}

.contact-submit {
  justify-self: center;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.contact-field select {
  width: 100%;
  font: inherit;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--dl-color-template-gray-100, #e6e9ed);
  background-color: var(--dl-color-template-fl-lt-grey, #fcfcfc);
  color: #000000;
}

.contact-field select:focus {
  border-color: var(--dl-color-template-blue-bg, #22548c);
  outline: none;
}

.contact-field[hidden] { display: none; }

/* In-place contact form: slides open under the button */
.contact-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.contact-panel .contact-form {
  padding-top: var(--dl-layout-space-twounits, 32px);
}

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

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dl-layout-space-unit, 16px);
  justify-content: center;
  align-items: center;
}

.contact-cancel {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: var(--dl-layout-space-unit, 16px) var(--dl-layout-space-threeunits, 48px);
  border-radius: 56px;
  border: 1px solid #000000;
  background: transparent;
  color: #000000;
  transition: 0.3s;
}

.contact-cancel:hover {
  background-color: #000000;
  color: #ffffff;
}

/* the link must really disappear when hidden, whatever display its button style sets */
a[data-contact-open][hidden] { display: none; }


/* Home hero: floating fan comments around the athlete collage */
.home-dashboard-preview-elm {
  position: relative;
}

.fan-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.fan-bubble {
  position: absolute;
  top: 8%;
  left: 4%; /* start spot if JavaScript is off; fan-bubbles.js scatters them */
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background-color: #ffffff;
  border: 1px solid var(--dl-color-template-gray-100, #e6e9ed);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  animation: fan-drift var(--dur, 20s) ease-in-out var(--delay, 0s) infinite alternate;
}

.fan-bubble-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--dl-color-template-blue-bg, #22548c);
}

.fan-bubble-body {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.3;
  color: #000000;
}

.fan-bubble-body b {
  font-size: 13px;
}


@keyframes fan-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(var(--dx, 0px), var(--dy, 0px)); }
}

@media (max-width: 991px) {
  .fan-bubble { max-width: 190px; padding: 8px 12px 8px 8px; gap: 8px; }
  .fan-bubble-avatar { width: 28px; height: 28px; font-size: 13px; }
  .fan-bubble-body { font-size: 12px; }
  .fan-bubble-body b { font-size: 11px; }
  }

@media (max-width: 599px) {
  .fan-bubble { max-width: 150px; padding: 6px 10px 6px 6px; gap: 6px; }
  .fan-bubble-avatar { width: 24px; height: 24px; font-size: 11px; }
  .fan-bubble-body { font-size: 11px; }
  .fan-bubble-body b { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .fan-bubble { animation: none; }
}

.fan-bubble[hidden] { display: none; }

/* Avatar colors taken from the athlete collage: red, orange, green, teal, blue and purple */
.fan-b1 .fan-bubble-avatar { background-color: #d9381e; }
.fan-b2 .fan-bubble-avatar { background-color: #e0701a; }
.fan-b3 .fan-bubble-avatar { background-color: #3f8a1f; }
.fan-b4 .fan-bubble-avatar { background-color: #1fa7b2; }
.fan-b5 .fan-bubble-avatar { background-color: #22548c; }
.fan-b6 .fan-bubble-avatar { background-color: #8a2a9f; }





/* Home: "Three apps. One league." Muted blue band, white cards with a navy top rule and soft shadow. */
.platform-elm {
  background-color: #e8eef5;
}

.platform-elm .platform-card {
  background-color: #ffffff;
  border: 0;
  box-shadow: 0 10px 28px rgba(18, 73, 106, 0.12);
}

.platform-elm .platform-card:hover {
  box-shadow: 0 16px 36px rgba(18, 73, 106, 0.2);
}

.platform-elm .platform-card .app-icon {
  /* plain icon, no frame */
  height: 104px;
  width: auto;
}

.platform-elm .platform-card .app-tag {
  color: var(--dl-color-template-blue-bg, #22548c);
}

.platform-elm .platform-intro {
  color: #3d4b5c;
}


/* Sports page: each app screen sits beside the feature it shows */
.shot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--dl-layout-space-fourunits, 64px);
  align-items: center;
  margin-bottom: var(--dl-layout-space-fourunits, 64px);
}

.shot-row-flip .shot-img { order: 2; }

.shot-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
}

.shot-img-tall {
  width: auto;
  max-height: 560px;
}

@media (max-width: 767px) {
  .shot-row { grid-template-columns: 1fr; gap: var(--dl-layout-space-twounits, 32px); }
  .shot-row-flip .shot-img { order: 0; }
}


/* A long page title stays no wider than the logo above it. */

/* Home features: icons drawn to match each card */
.home-features-elm .feat-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: var(--dl-layout-space-oneandhalfunits, 24px);
}

.home-features-elm .feat-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Home features: four equal cards, with the same space above the content as below it. */
.home-features-elm .home-cards-elm1 {
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: var(--dl-layout-space-twounits, 32px);
  align-items: stretch;
}

.home-features-elm .home-container12,
.home-features-elm .home-container13 {
  display: contents;
}

.home-features-elm .card {
  height: auto;
  box-sizing: border-box;
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (max-width: 767px) {
  .home-features-elm .home-cards-elm1 {
    grid-template-columns: 1fr;
  }
}

/* Home hero: the athlete collage sits straight on the page, with no band and no card. */
.home-hero-elm {
  background-color: transparent;
  padding: 0 32px 72px;
}

.home-dashboard-preview-elm { max-width: 1100px; }

.home-image-elm {
  border-radius: 0;
  mix-blend-mode: multiply;
}

/* "What people are saying": three smaller boxes stacked down the band, each in its own spot:
   1 top left, 2 middle right, 3 bottom center. */
.say-band {
  padding-bottom: 56px;
}

.say-band .say-grid {
  display: flex;
  flex-direction: column;
  gap: var(--dl-layout-space-twounits, 32px);
  align-items: stretch;
}

.say-band .say-card:nth-child(n) {
  width: min(380px, 100%);
  margin: 0;
  padding: 22px 24px;
  border-radius: 24px;
}

.say-band .say-card:nth-child(1) { align-self: flex-start; }
.say-band .say-card:nth-child(2) { align-self: flex-end; }
.say-band .say-card:nth-child(3) { align-self: center; }

.say-band .say-card blockquote {
  font-size: 16px;
}

.say-band .say-card figcaption {
  margin-top: var(--dl-layout-space-unit, 16px);
}

/* "See it in the app": phone-shaped placeholders until the real screens arrive */
.screens-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dl-layout-space-twounits, 32px);
  justify-content: center;
}

.screen-ph,
.screen-img {
  width: 220px;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
}

.screen-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 2px dashed #b9c0cb;
  background-color: var(--dl-color-template-gray-100, #e6e9ed);
  color: #5a6270;
  font-weight: 600;
}

.screen-img {
  display: block;
  object-fit: cover;
  height: auto;
}

/* Text wordmark for a partner without a logo file yet */
.partner-wordmark {
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* Branding page */
.brand-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--dl-layout-space-fourunits, 64px) var(--dl-layout-space-twounits, 32px);
  background-color: #ffffff;
  border: 1px solid var(--dl-color-template-gray-200);
  border-radius: 20px;
}

.brand-logo-box img {
  width: min(420px, 100%);
  height: auto;
  /* the logo file has the TM mark hanging off its right edge, so shift it right
     to put the FAN LEAGUE wordmark itself in the middle of the box */
  transform: translateX(3%);
}

.brand-dl-row { text-align: center; margin-top: var(--dl-layout-space-unit, 16px); }

.brand-dl {
  display: inline-block;
  margin-top: var(--dl-layout-space-unit, 16px);
  font-weight: 600;
  text-decoration: underline;
  color: inherit;
}

.brand-dl-row .brand-dl { margin-top: 0; }

.brand-app { text-align: center; }

.brand-icon {
  display: block;
  height: 96px;
  width: auto;
  margin: 0 auto var(--dl-layout-space-unit, 16px);
  mix-blend-mode: multiply;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--dl-layout-space-twounits, 32px);
}

.swatch { display: flex; flex-direction: column; gap: 4px; }

.swatch-chip {
  display: block;
  height: 88px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
}

.swatch-name { font-weight: 700; }
.swatch-hex { color: #5a6270; font-size: 14px; letter-spacing: 0.04em; }

.type-quicksand { font-family: Quicksand, sans-serif; }
.type-inter { font-family: Inter, sans-serif; }

/* Policies landing page: the two cards sit in the page's normal content width */
.pol-cards {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--dl-layout-space-twounits, 32px) var(--dl-layout-space-twounits, 32px) var(--dl-layout-space-sixunits, 96px);
  box-sizing: border-box;
}

.app-icon-link { display: block; }
.app-icon-link .app-icon { margin-left: auto; margin-right: auto; }

/* On the About page the section is left-aligned, so the open form lines up with its heading */
.co-inner .contact-form {
  margin-left: 0;
  margin-right: 0;
}

.co-inner .contact-actions {
  justify-content: flex-start;
}

/* Plain text pages (License): comfortable reading width and line spacing */
.gs-prose { max-width: 720px; margin-left: auto; margin-right: auto; }
.gs-prose p { font-size: var(--gs-body-size); line-height: 1.7; color: #5a6270; margin-bottom: 16px; }
.gs-prose a:not(.gs-cta-button) { text-decoration: underline; }


/* Music page: two phone screens shown side by side */
.shot-pair {
  display: flex;
  justify-content: center;
  gap: var(--dl-layout-space-twounits, 32px);
}

.shot-pair picture {
  display: block;
  flex: 0 1 240px;
  min-width: 0;
}

.shot-pair .shot-img {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid var(--dl-color-template-gray-200, #eff0f2);
}

@media (max-width: 767px) {
  .shot-pair { gap: var(--dl-layout-space-unit, 16px); }
}
.shot-row-flip .shot-pair { order: 2; }
@media (max-width: 767px) { .shot-row-flip .shot-pair { order: 0; } }
.shot-row-wide { grid-template-columns: 3fr 2fr; }
.shot-row-wide.shot-row-flip { grid-template-columns: 2fr 3fr; }
@media (max-width: 767px) { .shot-row-wide, .shot-row-wide.shot-row-flip { grid-template-columns: 1fr; } }
.shot-row-wide .gs-step { background: none; border: 0; padding: 0; }

/* Two screens: staggered, the second lower and slightly overlapping the first */
.shot-pair { gap: 0; align-items: flex-start; padding-bottom: 56px; }
.shot-pair picture:nth-child(2) { margin: 56px 0 -56px -28px; position: relative; z-index: 1; }
.shot-pair .shot-img { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); }
@media (max-width: 767px) {
  .shot-pair { padding-bottom: 32px; }
  .shot-pair picture:nth-child(2) { margin: 32px 0 -32px -20px; }
}
.shot-pair { min-width: 0; }
.shot-row-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.shot-row-wide.shot-row-flip { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
@media (max-width: 767px) { .shot-row-wide, .shot-row-wide.shot-row-flip { grid-template-columns: minmax(0, 1fr); } }

/* Home: audience links in the middle of the top bar (menu.js moves them there) */
.home-audience-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0 48px;
}

.home-audience-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.home-audience-nav a:hover { text-decoration: underline; }

@media (max-width: 479px) {
  .home-audience-nav { gap: 0 14px; }
  .home-audience-nav a { font-size: 14px; }
}

/* Text inside cards, on every page */
.gs-step-text,
.app-desc,
.app-tag,
.app-list li {
  font-size: 18px;
}
