/* App product pages and the home-page app grid. Each page sets its palette on body.app-<slug>. */

.app-page {
  --app-bg: #111111;
  --app-accent: var(--yellow);
}

.app-picklepunks { --app-bg: #0b1730; --app-accent: #d9f24a; }
.app-skipper { --app-bg: #10223f; --app-accent: #ffb627; }
.app-snugpop { --app-bg: #4b2a74; --app-accent: #ffc6dc; }
.app-counterwave { --app-bg: #06171f; --app-accent: #3fe0d0; }
.app-gateblink { --app-bg: #0e1530; --app-accent: #6ce8ff; }
.app-wickle { --app-bg: #1d4a40; --app-accent: #f0bf5a; }
.app-playcaller { --app-bg: #0e242c; --app-accent: #ccf06e; }

.app-hero {
  color: var(--paper);
  background: var(--app-bg);
}

.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 80px;
}

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.app-hero h1 {
  margin: 14px 0 10px;
  font-size: 76px;
  line-height: 0.95;
}

.app-hero .eyebrow {
  margin-top: 28px;
  color: var(--app-accent);
}

.app-title-detail {
  display: block;
  margin-top: 14px;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.app-faq { padding: 72px 0; }
.app-faq h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 12px 0 30px; }
.app-questions { max-width: 850px; margin-bottom: 28px; }
.app-questions details { border-bottom: 1px solid var(--line); }
.app-questions summary { padding: 20px 0; font-size: 18px; font-weight: 700; cursor: pointer; }
.app-questions details p { max-width: 740px; margin: 0 0 22px; line-height: 1.7; }
.app-questions summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.app-related { margin-top: 36px; }
.app-related h3 { font-size: 18px; }
.app-related ul { padding-left: 20px; }
.app-related li { margin-top: 12px; }

.app-tagline {
  margin: 0 0 18px;
  color: var(--app-accent);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.app-intro {
  max-width: 560px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  width: 150px;
  height: auto;
}

.store-badge.coming-soon {
  margin: 0;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.app-trailer {
  justify-self: center;
  width: min(100%, 340px);
}

.app-trailer video {
  display: block;
  width: 100%;
  aspect-ratio: 886 / 1920;
  border: 8px solid #000;
  border-radius: 44px;
  background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.app-screens {
  padding: 88px 0 72px;
  background: var(--soft);
}

.app-screens h2,
.app-features h2,
.app-facts h2 {
  margin: 10px 0 32px;
  font-size: 44px;
  line-height: 1.05;
}

.screen-rail {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0 max(24px, calc((100% - var(--max-width)) / 2)) 16px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 max(24px, calc((100% - var(--max-width)) / 2));
}

.screen-rail li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.screen-rail img {
  width: 230px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.app-features {
  padding: 88px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  padding: 32px 32px 36px 0;
  border-bottom: 1px solid var(--line);
}

.feature-item:nth-child(odd) {
  padding-right: 48px;
  border-right: 1px solid var(--line);
}

.feature-item:nth-child(even) {
  padding-left: 48px;
}

.feature-item h3 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.feature-item p:last-child {
  margin: 0;
  color: #444;
}

.app-facts {
  padding: 88px 0;
  background: var(--soft);
}

.press-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}

.press-contact {
  margin-top: 20px;
  font-size: 14px;
}

.fact-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.fact-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fact-list dd {
  margin: 0;
}

.app-cta h2 {
  margin-bottom: 28px;
}

/* Development previews are visibly separate from the available release. */
.preview-hero { margin: 0; }
.preview-hero > img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #000;
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.preview-hero figcaption {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-align: center;
}
.preview-hero strong { color: var(--app-accent); }
.app-preview { padding: 88px 0; background: var(--paper); }
.app-preview h2 { max-width: 700px; margin: 12px 0 24px; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.preview-intro { max-width: 720px; font-size: 20px; }
.preview-notice { max-width: 760px; padding-left: 18px; border-left: 3px solid #bd6b00; color: #555; }
.preview-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 48px 0 16px; }
.preview-gallery figure { min-width: 0; margin: 0; }
.preview-gallery a { display: block; max-width: 260px; margin-inline: auto; border-radius: 24px; }
.preview-gallery img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15); }
.preview-gallery h3 { margin: 24px 0 10px; font-size: 22px; line-height: 1.2; }
.preview-gallery p { margin: 0; color: #555; }
.preview-features { margin-top: 48px; }
.release-caption { margin: -12px 0 32px; color: #555; }
.release-trailer { margin-top: 36px; }
.release-trailer summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.release-trailer video { display: block; width: min(100%, 300px); height: auto; margin: 24px auto 0; border-radius: 24px; }

@media (max-width: 680px) {
  .app-preview { padding: 56px 0; }
  .preview-gallery { grid-template-columns: 1fr; gap: 40px; }
  .preview-gallery figcaption { max-width: 340px; margin-inline: auto; }
  .preview-intro { font-size: 18px; }
}

/* Home page: the app grid. */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.app-card {
  display: flex;
  height: 100%;
  padding: 24px;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  background: var(--paper);
  transition: border-color 160ms ease, transform 160ms ease;
}

.app-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.app-card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.app-card h3 {
  margin: 8px 0 0;
  font-size: 20px;
}

.app-card p {
  margin: 0;
  color: #555;
  font-size: 15px;
}

.app-card .text-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .app-hero-grid,
  .press-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .app-hero h1 {
    font-size: 58px;
  }

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

  .feature-item:nth-child(odd),
  .feature-item:nth-child(even) {
    padding: 28px 0;
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .app-hero-grid {
    padding: 48px 0 56px;
  }

  .app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .app-hero h1 {
    font-size: 46px;
  }

  .app-tagline {
    font-size: 20px;
  }

  .app-screens h2,
  .app-features h2,
  .app-facts h2 {
    font-size: 32px;
  }

  .screen-rail img {
    width: 180px;
  }

  .fact-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

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

  .app-card:hover {
    transform: none;
  }
}

/* A landscape game: a still picture in place of a trailer, or a trailer framed sideways (Playcaller). */
.app-trailer.app-trailer-wide { width: min(100%, 620px); }
.app-trailer-wide video { aspect-ratio: 1280 / 590; border-width: 6px; border-radius: 22px; }
.app-trailer.app-still { margin: 0; width: min(100%, 620px); }
.app-still img { display: block; width: 100%; height: auto; border: 6px solid #000; border-radius: 22px; background: #000; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.screen-rail-landscape img { width: 460px; border-radius: 14px; }
@media (max-width: 700px) { .screen-rail-landscape img { width: 300px; } }

/* A companion section on a product page (Second Guess on the Playcaller page). */
.app-companion { padding: 88px 0; background: #0e242c; color: #fff; }
.app-companion .section-index { color: #ccf06e; }
.companion-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.app-companion h2 { margin: 10px 0 18px; font-size: 44px; line-height: 1.05; color: #fff; }
.companion-intro { margin: 0 0 26px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.companion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.companion-button { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 34px; border-radius: 16px; background: #ccf06e; color: #12262e;
  border: 2px solid #ccf06e; font-size: 20px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(204, 240, 110, 0.25); }
.companion-button:hover { background: #dbf78f; border-color: #dbf78f; }
.companion-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.companion-start { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.companion-art img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.companion-points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.companion-points li { padding: 22px 24px 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.companion-points h3 { margin: 0 0 6px; font-size: 18px; color: #ccf06e; }
.companion-points p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }
.companion-note { flex: 1 1 280px; margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 860px) {
  .app-companion { padding: 64px 0; }
  .companion-grid { grid-template-columns: 1fr; }
  .app-companion h2 { font-size: 32px; }
  .companion-points { grid-template-columns: 1fr; }
  .companion-button { width: 100%; }
}

/* A product page's pointer to pages that explain its subject (Playcaller: the football pages; Pickle Punks: the pickleball pages). */
.app-guide { padding: 72px 0; background: var(--soft); }
.app-guide h2 { margin: 12px 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.guide-intro { max-width: 640px; margin: 0 0 24px; font-size: 18px; line-height: 1.6; }
.guide-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.guide-links a { display: block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: inherit; font-weight: 600; text-decoration: none; }
.guide-links a:hover { border-color: var(--ink); }
body.game-campaign section.app-guide { padding: 64px 0; border-top: 1px solid #0c1b3325; background: transparent; color: #0c1b33; }
body.game-campaign section.app-guide h2 { margin: 0 0 18px; }
body.game-campaign section.app-guide .section-index { margin: 0 0 18px; color: inherit; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
@media (max-width: 800px) { body.game-campaign section.app-guide { padding: 46px 0; } }
