/* Big Shoulders Display Black, the Blue Chips brand face (SIL OFL 1.1, fonts/BigShouldersDisplay-OFL.txt).
   Instanced at weight 900 and subset to Latin-1 from the blue-chips repo's build/brand/font. */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/blue-chips/fonts/BigShouldersDisplay-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Blue Chips. Colors come from the app's design system (App/DesignSystem.swift): midnight and navy for the
   scoreboard surfaces, gold and amber for the accents, cream for the paper. The hero, the showcase and the price
   board stay navy in both themes, like the game desk; the paper sections follow light and dark mode. */
:root {
  --midnight: #04182c;
  --navy: #0b2a4f;
  --navy-2: #12233a;
  --cream: #f5eedd;
  --gold: #e5a133;
  --amber: #fcd34d;
  --orange: #dd7223;

  --paper: #faf6ec;
  --paper-2: #f3ecdb;
  --ink: #0f1b2d;
  --sub: #4e5b6c;
  --rule: #dcd3bf;
  --gold-ink: #8a5f00;
  --link: #0b2a4f;
  --shadow: 0 1px 2px rgba(4, 24, 44, 0.12), 0 18px 40px -18px rgba(4, 24, 44, 0.45);

  --serif: ui-serif, "Source Serif 4", "New York", Georgia, serif;
  --brand: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  --measure: 36rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #050e1a;
    --paper-2: #0a1828;
    --ink: #f3f5f8;
    --sub: #aebaca;
    --rule: #22364d;
    --gold-ink: #e5a133;
    --link: #fad166;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 20; padding: 0.6rem 1rem; background: var(--cream); color: var(--midnight); border-radius: 6px; }
.skip-link:focus { top: 1rem; }
section[id] { scroll-margin-top: 4.5rem; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }

h2, .tagline { font-family: var(--serif); }
h2 { font-weight: 800; letter-spacing: -0.01em; }

/* The small caps label the app sets above its headings. */
.label {
  display: block;
  margin: 0 0 0.6rem;
  font-family: var(--brand);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* Seven-segment scoreboard digits (inline SVG from the app's SevenSegmentDisplay). */
.seg { display: inline-block; line-height: 0; color: var(--amber); }
.seg svg { height: 100%; width: auto; fill: currentColor; overflow: visible; }
.seg .off { opacity: 0.07; }

/* Masthead: navy in both themes, sitting on the hero. */
.masthead { position: sticky; top: 0; z-index: 10; background: var(--midnight); color: var(--cream); border-bottom: 1px solid rgba(245, 238, 221, 0.1); }
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .masthead { background: rgba(4, 24, 44, 0.9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
}
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
/* The brand wordmark (outlined SVG from build/brand, no font needed). Never under 96px wide. */
.wordmark { display: block; flex-shrink: 0; line-height: 0; }
.wordmark img { width: 149px; height: auto; }
.masthead nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.masthead nav a { color: rgba(245, 238, 221, 0.78); text-decoration: none; white-space: nowrap; }
.masthead nav a:hover { color: var(--amber); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background: var(--midnight);
  border-bottom: 4px solid var(--gold);
}
/* The arena art fills the hero; the scrim keeps the text side dark enough for cream text in both crops. */
/* Narrow: the tall crop covers the top of the hero (text and scoreboard) and fades into midnight behind the phone. */
.hero-art { position: absolute; left: 0; right: 0; top: 0; height: min(100%, 64rem);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; max-width: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 24, 44, 0.5) 0%, rgba(4, 24, 44, 0.62) 28rem, rgba(4, 24, 44, 0.45) 48rem, rgba(4, 24, 44, 0.85) 64rem, rgba(4, 24, 44, 0.95) 100%);
}
@media (min-width: 56rem) {
  .hero-art { bottom: 0; height: auto; -webkit-mask-image: none; mask-image: none; }
  .hero-art img { object-position: 50% 62%; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(4, 24, 44, 0.92) 0%, rgba(4, 24, 44, 0.8) 38%, rgba(4, 24, 44, 0.35) 70%, rgba(4, 24, 44, 0.5) 100%),
      linear-gradient(180deg, rgba(4, 24, 44, 0.3) 0%, transparent 30%, transparent 75%, rgba(4, 24, 44, 0.6) 100%);
  }
}
.hero-grid { position: relative; z-index: 2; display: grid; gap: 2.5rem; padding-top: 4rem; padding-bottom: 4rem; align-items: center; }
.hero .label { color: var(--amber); }
.hero h1 { margin: 0; line-height: 0; }
/* The app's on-art treatment: a soft drop shadow under the mark (black 45 percent, 10pt blur, 4pt down). */
.hero-wordmark { width: min(100%, 30rem); height: auto; transform: translateX(-2.4%); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.hero .lede, .hero .tagline, .hero .label { text-shadow: 0 1px 12px rgba(4, 24, 44, 0.8); }
.tagline { margin: 1rem 0 0; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.1; color: var(--gold); }
.hero .lede { max-width: var(--measure); margin: 1.25rem 0 0; font-size: 1.2rem; color: rgba(245, 238, 221, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { width: 150px; height: 50px; }
.store-badge.on-paper { margin-top: 0.5rem; }
.more { color: var(--amber); font-weight: 600; text-decoration: none; }
.more::after { content: " \2192"; }
.more:hover { color: var(--cream); }

/* Scoreboard strip */
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.25rem 0 0;
  max-width: 30rem;
  background: rgba(4, 24, 44, 0.75);
  border: 1px solid rgba(245, 238, 221, 0.14);
  border-radius: 12px;
  overflow: hidden;
}
.board > div { display: flex; flex-direction: column-reverse; align-items: center; gap: 0.45rem; padding: 0.9rem 0.5rem 0.75rem; }
.board > div + div { border-left: 1px solid rgba(245, 238, 221, 0.1); }
.board dt { font-family: var(--brand); font-size: 0.9rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245, 238, 221, 0.72); text-align: center; }
.board dd { margin: 0; height: 2.4rem; }
.board .seg { height: 100%; }

/* Phones */
.phone, .phone-shot picture {
  display: block;
  position: relative;
  padding: 7px;
  border-radius: 2.4rem;
  background: linear-gradient(145deg, #1d2f47, #050c16);
  box-shadow: 0 0 0 1px rgba(245, 238, 221, 0.12), var(--shadow);
}
.phone video, .phone-shot img { width: 100%; border-radius: calc(2.4rem - 7px); background: var(--midnight); }
.hero-phone { margin: 0 auto; width: min(19rem, 78vw); }
.hero-phone figcaption { margin-top: 0.8rem; text-align: center; font-size: 0.9rem; color: rgba(245, 238, 221, 0.68); }
.phone video { aspect-ratio: 480 / 1040; object-fit: cover; }

.loop-toggle {
  position: absolute; right: 1rem; bottom: 1rem;
  min-width: 44px; min-height: 36px; padding: 0.35rem 0.85rem;
  border: 0; border-radius: 999px;
  background: rgba(4, 24, 44, 0.78); color: var(--cream);
  font: 600 0.85rem/1 var(--sans);
  box-shadow: 0 0 0 1px rgba(245, 238, 221, 0.25);
  cursor: pointer;
}
.loop-toggle:hover { background: var(--midnight); color: var(--amber); }

@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 7fr 4fr; gap: 4rem; padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .hero-phone { width: 100%; max-width: 20rem; }
}

/* The feature sections */
.play { padding: 4.5rem 0; border-bottom: 1px solid var(--rule); }
.play:nth-child(even) { background: var(--paper-2); }
.play-grid { display: grid; gap: 2.5rem; align-items: center; }
.play-no {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--brand); font-size: 1.1rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.play-no .seg {
  height: 2.3rem; padding: 0.45rem 0.55rem;
  background: var(--midnight); border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(245, 238, 221, 0.12);
  box-sizing: border-box;
}
.play h2, .feature h2, .ipad h2, .price h2, .support h2 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.05;
}
.play-text p { max-width: var(--measure); margin: 0 0 1rem; color: var(--ink); }
.play-text p:last-child { margin-bottom: 0; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 32rem; width: 100%; margin: 0 auto; }
.shots.single { grid-template-columns: minmax(0, 1fr); max-width: 17rem; }
.shots .phone-shot:nth-child(2) { margin-top: 2.5rem; }
.phone-shot { margin: 0; }
.phone-shot figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: var(--sub); text-align: center; }

@media (max-width: 30rem) {
  .phone, .phone-shot picture { padding: 4px; border-radius: 1.5rem; }
  .phone video, .phone-shot img { border-radius: calc(1.5rem - 4px); }
  .shots { gap: 0.75rem; }
  .shots .phone-shot:nth-child(2) { margin-top: 1.5rem; }
}

@media (min-width: 56rem) {
  .play-grid { grid-template-columns: 6fr 5fr; gap: 4rem; }
  .play:nth-child(even) .play-grid { grid-template-columns: 5fr 6fr; }
  .play:nth-child(even) .play-text { order: 2; }
}

/* Make it yours: a navy showcase, like a team-color header. */
.feature { padding: 4.5rem 0; background: linear-gradient(160deg, var(--midnight), var(--navy)); color: var(--cream); border-top: 4px solid var(--gold); }
.feature-grid { display: grid; gap: 2.5rem; align-items: center; }
.feature .play-no { color: var(--amber); }
.feature p { max-width: var(--measure); margin: 0 0 1rem; color: rgba(245, 238, 221, 0.88); }
.feature .phone-shot { max-width: 17rem; margin: 0 auto; width: 100%; }
.feature .phone-shot figcaption { color: rgba(245, 238, 221, 0.7); }
@media (min-width: 56rem) { .feature-grid { grid-template-columns: 6fr 5fr; gap: 4rem; } }

/* iPad */
.ipad { padding: 4.5rem 0; border-bottom: 1px solid var(--rule); }
.ipad-heading { display: grid; gap: 0.5rem 3rem; margin-bottom: 2rem; }
.ipad-heading h2 { margin-bottom: 0; }
.ipad-heading p { margin: 0; max-width: var(--measure); color: var(--sub); }
@media (min-width: 56rem) { .ipad-heading { grid-template-columns: 1fr 1fr; align-items: end; } }
.tablet {
  position: relative; margin: 0;
  padding: clamp(6px, 1.2vw, 14px);
  border-radius: clamp(14px, 2.6vw, 30px);
  background: linear-gradient(145deg, #1d2f47, #050c16);
  box-shadow: 0 0 0 1px rgba(245, 238, 221, 0.12), var(--shadow);
}
.tablet video { width: 100%; aspect-ratio: 4 / 3; border-radius: clamp(8px, 1.6vw, 18px); background: var(--midnight); }
.tablet .loop-toggle { right: 1.5rem; bottom: 1.5rem; }

/* Price, set like a box score */
.price { padding: 4.5rem 0; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.price-grid { display: grid; gap: 2.5rem; align-items: center; }
.price-text p { max-width: var(--measure); margin: 0 0 1rem; }
.store-name { color: var(--sub); }
.store-name strong { color: var(--ink); }
.price-board { display: grid; gap: 1rem; }
.price-board .board { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; margin: 0; background: var(--midnight); }
.price-board .board dd { height: 2.6rem; }

.card {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: var(--paper);
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.4;
}
.card th {
  padding: 0.65rem 0.9rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--brand); font-size: 0.95rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; text-align: left;
}
.card th + th { color: var(--amber); }
.card td { width: 50%; padding: 0.85rem 0.9rem; vertical-align: top; border-top: 1px solid var(--rule); }
.card td + td, .card th + th { border-left: 1px solid var(--rule); }
.card th + th { border-left-color: rgba(245, 238, 221, 0.2); }
@media (prefers-color-scheme: dark) { .card { border-color: var(--rule); } }
@media (min-width: 56rem) { .price-grid { grid-template-columns: 5fr 6fr; gap: 4rem; } }
@media (max-width: 30rem) {
  .price-board .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-board .board > div:nth-child(3) { border-left: 0; }
  .price-board .board > div:nth-child(n+3) { border-top: 1px solid rgba(245, 238, 221, 0.1); }
}

/* Support */
.support { padding: 4.5rem 0; }
.support-grid { display: grid; gap: 2rem 4rem; }
.contact { margin-top: 1.25rem; padding: 1.1rem 1.25rem; background: var(--paper-2); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; }
.contact p { margin: 0; }
.contact a { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact .hint { margin-top: 0.4rem; font-size: 0.92rem; color: var(--sub); }
.faq h3 { margin: 1.6rem 0 0.35rem; font-size: 1.05rem; }
.faq h3:first-child { margin-top: 0; }
.faq p { margin: 0; color: var(--sub); }
@media (min-width: 56rem) { .support-grid { grid-template-columns: 5fr 6fr; } }

/* Footer */
.foot { padding: 2rem 0 2.5rem; background: var(--midnight); color: rgba(245, 238, 221, 0.72); font-size: 0.92rem; border-top: 4px solid var(--gold); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; }
.foot a { color: rgba(245, 238, 221, 0.85); }
.foot a:hover { color: var(--amber); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .masthead nav { gap: 0.9rem; font-size: 0.88rem; }
  .masthead nav a[href="/privacy.html"], .masthead nav a[href="#recruit"] { display: none; }
  .hero .lede { font-size: 1.08rem; }
  .hero-grid { padding-top: 2.75rem; padding-bottom: 3rem; }
  .board dt { font-size: 0.8rem; letter-spacing: 0.08em; }
  .play, .feature, .ipad, .price, .support { padding: 3.25rem 0; }
}
