/* The marketing site (story 3244, docs/marketing-site.md): the game's tokens and components on the bare domain,
   dark by design, no script. Everything else comes from theme.css, so the brand cannot drift. */
html.fab-site, body.fab-site { background: var(--fab-void); }
html.fab-site { scroll-behavior: smooth; scroll-padding-top: 5.5rem; } /* anchors land under the sticky nav; the game's layout turns smooth scrolling off for Turbo, this page has no Turbo */
@media (prefers-reduced-motion: reduce) { html.fab-site { scroll-behavior: auto; } }
body.fab-site { background-image: radial-gradient(120% 70% at 50% 0%, #2A1270 0%, var(--fab-void) 60%); background-repeat: no-repeat; color: var(--fab-lilac); min-height: 100vh; }

.site-hero { padding: clamp(2.5rem, 9vw, 5.5rem) 0 clamp(2rem, 6vw, 4rem); overflow-x: clip; } /* the floor's rays reach past the photo's box */
.site-hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .site-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; } }
.site-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--fab-ice); margin: 0 0 .6rem; }
.site-hero__title { font-size: clamp(2.8rem, 8vw, 4.4rem); line-height: .95; margin: 0 0 .6rem; color: #fff; text-shadow: 0 6px 30px rgba(155, 61, 255, .35); } /* white, the colour stays on the elements round it (Nick, 2026-10-09) */
.site-hero__tagline { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 0 0 1rem; }
.site-hero__blurb { font-size: 1.1rem; line-height: 1.5; max-width: 36rem; opacity: .9; margin: 0; }
.site-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.5rem 0 .75rem; }
.site-pill, .site-store { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .6rem 1.1rem; border-radius: 2rem; font-weight: 700; text-decoration: none; }
.site-pill { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: var(--fab-lilac); opacity: .85; }
.site-store { background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.site-store:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.site-hero__note { font-size: .9rem; opacity: .7; margin: 0; }
.site-hero__art { position: relative; display: grid; place-items: center; min-height: 18rem; padding-bottom: 2.5rem; }
.site-collage { position: relative; z-index: 1; width: min(100%, 36rem); aspect-ratio: 4 / 3; margin: 2rem auto 0; --stage-rgb: 47, 230, 255; --pad-x: 50%; --pad-y: 88%; }
.site-collage__floor { z-index: 0; } /* the stage's floor (theme.css), anchored at the front row's feet; the tiles stand on it */
.site-collage__tile { position: absolute; height: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5)); }
/* The class photo (stories 3250, 3251): the flyers overhead, then six at the back, five in the middle and three in
   front, each row a step lower and a little bigger than the one behind it, so legs hide and heads, shoulders and
   chests show; the front row's feet sit on the ring's centre line (story 3252). */
.site-collage__tile--fly1 { width: 20%; left: 1%; top: -2%; z-index: 1; rotate: -8deg; }
.site-collage__tile--fly2 { width: 18%; left: 27%; top: -6%; z-index: 1; rotate: 5deg; }
.site-collage__tile--fly3 { width: 20%; left: 54%; top: -4%; z-index: 1; rotate: -4deg; }
.site-collage__tile--fly4 { width: 18%; left: 80%; top: 0%; z-index: 1; rotate: 8deg; }
.site-collage__tile--b1 { width: 24%; left: -3%; top: 14%; z-index: 2; rotate: -3deg; }
.site-collage__tile--b2 { width: 24%; left: 12%; top: 12%; z-index: 2; rotate: 2deg; }
.site-collage__tile--b3 { width: 24%; left: 28.5%; top: 11%; z-index: 2; }
.site-collage__tile--b4 { width: 24%; left: 48%; top: 11%; z-index: 2; }
.site-collage__tile--b5 { width: 24%; left: 64%; top: 12%; z-index: 2; rotate: -2deg; }
.site-collage__tile--b6 { width: 24%; left: 79%; top: 14%; z-index: 2; rotate: 3deg; }
.site-collage__tile--m1 { width: 27%; left: -3%; top: 33%; z-index: 3; rotate: -3deg; }
.site-collage__tile--m2 { width: 27%; left: 16%; top: 31%; z-index: 3; }
.site-collage__tile--m3 { width: 27%; left: 36.5%; top: 30%; z-index: 3; }
.site-collage__tile--m4 { width: 27%; left: 57%; top: 31%; z-index: 3; }
.site-collage__tile--m5 { width: 27%; left: 76%; top: 33%; z-index: 3; rotate: 3deg; }
/* Story 3271 (a trial): two more in the gaps either side of the middle row's centre, just behind it. */
.site-collage__tile--g1 { width: 21%; left: 27%; top: 33%; z-index: 2; rotate: -2deg; }
.site-collage__tile--g2 { width: 21%; left: 52%; top: 33%; z-index: 2; rotate: 2deg; }
.site-collage__tile--f1 { width: 33%; left: 4%; top: 54%; z-index: 4; rotate: -2deg; }
.site-collage__tile--f2 { width: 34%; left: 33%; top: 52%; z-index: 5; }
.site-collage__tile--f3 { width: 33%; left: 63%; top: 54%; z-index: 4; rotate: 2deg; }

/* The sections (story 3245). */
.site-section { padding: clamp(2rem, 6vw, 4.5rem) 0; }
.site-section__title { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.05; margin: 0 0 .6rem; }
.site-section__lead { font-size: 1.05rem; line-height: 1.5; opacity: .88; max-width: 40rem; margin: 0 0 1.25rem; }
.site-sub { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
.site-link { color: var(--fab-ice); text-decoration: none; font-weight: 600; }
.site-link:hover { text-decoration: underline; color: var(--fab-ice); }

.site-steps { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .site-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.site-step { display: grid; gap: .9rem; padding: 1rem; border-radius: 1.4rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.site-step__shot { width: 100%; max-width: 15rem; margin: 0 auto; }
.site-step__shot--text { aspect-ratio: 300 / 652; display: grid; place-items: center; font-size: 3rem; color: var(--fab-ice); border-radius: 1.25rem; background: radial-gradient(60% 60% at 50% 40%, rgba(47, 230, 255, .18), transparent); }
/* The frame round every screen (story 3254, after the RailsYeah window Nick liked): a thick soft translucent border
   with a crisp inner edge, the screen rounded inside it, and a purple-ice halo behind. */
.site-frame { position: relative; z-index: 0; display: block; padding: .55rem; border-radius: 1.9rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08) 45%, rgba(47, 230, 255, .16));
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 0 0 1px rgba(18, 6, 58, .55), 0 24px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(155, 61, 255, .28), 0 0 22px rgba(47, 230, 255, .14); }
.site-frame img { display: block; width: 100%; height: auto; border-radius: 1.3rem; }
.site-frame::before { content: ""; position: absolute; inset: -1.5rem; z-index: -1; border-radius: 3rem;
  background: radial-gradient(55% 55% at 50% 45%, rgba(155, 61, 255, .4), rgba(47, 230, 255, .12) 60%, transparent 75%); filter: blur(20px); }
.site-step__number { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: linear-gradient(135deg, var(--fab-purple), var(--fab-pink)); color: #fff; font-weight: 800; margin-bottom: .4rem; }
.site-step__title { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.3rem; margin: 0 0 .3rem; }
.site-step__body p { margin: 0; opacity: .88; line-height: 1.5; }

/* The roster's band (story 3253, Nick): its own ground, a purple wash deepening to ink with an ice glow behind the
   strip, and a hairline above and below that fades at the ends, so the page has a seam here. */
.site-section--roster { position: relative; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3.5rem);
  background: radial-gradient(55% 60% at 50% 62%, rgba(47, 230, 255, .12), transparent 70%),
              linear-gradient(180deg, rgba(155, 61, 255, 0) 0%, rgba(155, 61, 255, .16) 40%, rgba(29, 11, 78, .55) 100%); }
.site-section--roster::before, .site-section--roster::after { content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 230, 255, .6) 30%, rgba(255, 63, 191, .5) 70%, transparent); }
.site-section--roster::before { top: 0; }
.site-section--roster::after { bottom: 0; }
.site-roster { display: flex; gap: .9rem; overflow-x: auto; padding: 1rem clamp(.75rem, 4vw, 3rem) 1.5rem; scroll-padding-inline: clamp(.75rem, 4vw, 3rem); scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.site-roster::-webkit-scrollbar { display: none; }
.site-roster__tile { flex: 0 0 9.5rem; scroll-snap-align: start; display: grid; justify-items: center; gap: .4rem; padding: .9rem .6rem; border-radius: 1.2rem; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid rgba(var(--rarity-rgb, 255, 255, 255), .4); box-shadow: 0 0 1.4rem rgba(var(--rarity-rgb, 255, 255, 255), .16), 0 10px 24px rgba(0, 0, 0, .35); }
.site-roster__tile img { width: 6.5rem; height: 6.5rem; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
.site-roster__name { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: .95rem; text-align: center; line-height: 1.15; }

.site-more, .site-families { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .site-more { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .site-families { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.site-more__shot, .site-families__shot { width: 100%; max-width: 17rem; margin: 0 auto; }
.site-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.site-features li { display: flex; gap: .7rem; align-items: baseline; line-height: 1.45; }
.site-features .bi { color: var(--fab-gold); flex: 0 0 auto; font-size: 1.1rem; translate: 0 .1rem; }
.site-promises { margin: 0 0 .5rem; padding-left: 1.2rem; display: grid; gap: .5rem; line-height: 1.45; }
.site-promises--outside li::marker { color: var(--fab-gold); }

.site-faq details { border-top: 1px solid rgba(255, 255, 255, .12); padding: .9rem 0; }
.site-faq details:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-faq summary { cursor: pointer; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.site-faq summary::-webkit-details-marker { display: none; }
.site-faq summary::after { content: "+"; color: var(--fab-ice); font-weight: 800; }
.site-faq details[open] summary::after { content: "–"; }
.site-faq details p { margin: .6rem 0 0; opacity: .88; line-height: 1.5; max-width: 44rem; }

.site-footer { padding: 2rem 0 max(2rem, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.site-footer__brand { font-size: 1.2rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer__copy { margin-left: auto; opacity: .7; font-size: .9rem; }

/* The top navigation (story 3247): the game's chip (theme.css glass tokens), sticky, the links scrolling sideways on a phone. */
.site-nav { position: sticky; top: .75rem; z-index: 20; padding: .75rem 0 0; }
.site-nav__row { display: flex; align-items: center; gap: .75rem; padding: .45rem .55rem .45rem 1rem; border-radius: 2rem; background: var(--fab-glass-fill, rgba(29, 11, 78, .7)); border: 1px solid var(--fab-glass-rim, rgba(255, 255, 255, .14)); box-shadow: var(--fab-glass-shadow, 0 10px 30px rgba(0, 0, 0, .35)); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
.site-nav__brand { font-size: 1.1rem; color: #fff; text-decoration: none; white-space: nowrap; }
.site-nav__links { display: flex; gap: .15rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.site-nav__links::-webkit-scrollbar { display: none; }
.site-nav__links a { padding: .45rem .7rem; border-radius: 1.5rem; color: var(--fab-lilac); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; opacity: .85; }
.site-nav__links a:hover, .site-nav__links a:focus-visible { opacity: 1; background: rgba(255, 255, 255, .1); color: #fff; }
.site-nav__links a.is-active { opacity: 1; color: #fff; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 18px rgba(47, 230, 255, .18); } /* the section in view (story 3256, site.js) */
.site-nav__play { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 1.5rem; background: linear-gradient(135deg, var(--fab-purple), var(--fab-pink)); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(255, 63, 191, .35); }
.site-nav__play:hover { color: #fff; filter: brightness(1.08); }
/* On a phone (story 3248): one row, the section links scrolling sideways beside Play, a fade at the edge saying so;
   the wordmark waits for md, since the hero names the game a thumb's width below. */
@media (max-width: 767.98px) {
  .site-nav { padding: .75rem .75rem 0; } /* the chip inset from the screen's edges, like the game's (story 3255) */
  .site-nav__row { padding: .4rem .45rem .4rem .8rem; gap: .5rem; }
  .site-nav__brand { font-size: .95rem; flex: 0 0 auto; } /* pinned at the left like Play at the right; the links scroll between (story 3257) */
  .site-nav__links { margin-left: 0; flex: 1 1 auto; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 85%, transparent); padding: 0 1.5rem 0 .75rem; }
  .site-nav__links a { padding: .5rem .6rem; font-size: .9rem; }
  .site-nav__play { flex: 0 0 auto; }
}

/* The closing band (story 3257): the ask once more, on the roster band's ground turned pink. */
.site-cta { position: relative; text-align: center;
  background: radial-gradient(55% 60% at 50% 40%, rgba(255, 63, 191, .14), transparent 70%),
              linear-gradient(180deg, rgba(29, 11, 78, 0) 0%, rgba(155, 61, 255, .14) 50%, rgba(29, 11, 78, .55) 100%); }
.site-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 63, 191, .5) 30%, rgba(47, 230, 255, .6) 70%, transparent); }
.site-cta .site-section__lead { max-width: 34rem; }
.site-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }

/* Features (story 3270): a grid of cards on its own gradient band, a seam above and below like the roster's. */
.site-section--features { position: relative;
  background: radial-gradient(60% 50% at 20% 0%, rgba(255, 63, 191, .16), transparent 70%),
              radial-gradient(60% 50% at 85% 100%, rgba(47, 230, 255, .14), transparent 70%),
              linear-gradient(180deg, rgba(29, 11, 78, .2) 0%, rgba(155, 61, 255, .2) 50%, rgba(29, 11, 78, .45) 100%); }
.site-section--features::before, .site-section--features::after { content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 201, 60, .6) 30%, rgba(255, 63, 191, .55) 70%, transparent); }
.site-section--features::before { top: 0; }
.site-section--features::after { bottom: 0; }
.site-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.site-feature { padding: 1.1rem 1.15rem; border-radius: 1.2rem; background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.site-feature__title { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.15rem; margin: 0 0 .35rem; color: #fff; }
.site-feature__text { margin: 0; line-height: 1.45; opacity: .85; font-size: .95rem; }

/* The roster strip's scroll cues (story 3272): a fade on each edge only while there is more that way, arrows on a pointer screen. */
.site-roster-wrap { position: relative; }
.site-roster-wrap::before, .site-roster-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(2.5rem, 8vw, 6rem); z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.site-roster-wrap::before { left: 0; background: linear-gradient(90deg, #170842, rgba(23, 8, 66, 0)); }
.site-roster-wrap::after { right: 0; background: linear-gradient(270deg, #170842, rgba(23, 8, 66, 0)); }
.site-roster-wrap.can-left::before, .site-roster-wrap.can-right::after { opacity: 1; }
.site-roster__arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 2.75rem; height: 2.75rem; border-radius: 50%; padding: 0;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(29, 11, 78, .75); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.site-roster__arrow:hover { background: rgba(155, 61, 255, .55); }
.site-roster__arrow--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.site-roster__arrow--next { right: clamp(.5rem, 2vw, 1.5rem); }
.site-roster__arrow[hidden] { display: none; }

/* The wide team photo (story 3273): the copy centred above, the photo across the page below it. */
.site-hero--wide .site-hero__grid { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
.site-hero--wide .site-hero__blurb { margin-inline: auto; }
.site-hero--wide .site-hero__actions { justify-content: center; }
.site-wide { position: relative; width: 100%; aspect-ratio: 16 / 7.5; margin: 1rem auto 0; max-width: 72rem; --stage-rgb: 47, 230, 255; --pad-x: 50%; --pad-y: 89%; }
.site-wide__floor { z-index: 0; }
.site-wide__tile { position: absolute; height: auto; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .5)); transform-origin: 50% 100%; pointer-events: none; } /* story 3276: scaled from the feet, so each one keeps its spot on the floor */
@media (max-width: 575.98px) { .site-wide { aspect-ratio: 16 / 10; width: 125%; margin-left: -12.5%; } } /* a little bigger on a phone, the edges cropped by the hero */

/* The wide photo beside the copy (story 3274): the photo's column gets more room, the photo a squarer box so the
   rows are not tiny, the hero a little tighter. */
@media (min-width: 768px) { .site-hero--wide-side .site-hero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 1.5rem; } }
.site-hero--wide-side { padding-top: clamp(1.5rem, 5vw, 3.5rem); }
.site-hero--wide-side .site-hero__title { font-size: clamp(2.6rem, 6.5vw, 4rem); }
.site-wide--side { aspect-ratio: 16 / 8.6; margin: 0; max-width: none; --pad-y: 83%; }
.site-hero--wide-side .site-hero__art { padding-bottom: 0; min-height: 0; display: block; }
@media (min-width: 768px) { .site-hero--wide-side .site-hero__art { top: 50px; } }
@media (max-width: 767.98px) { .site-hero--wide-side .site-hero__art { margin-top: 2.5rem; } } /* story 3279: the grown back rows reach up over the note */ /* Nick, 2026-10-11: the group and ring sit lower beside the copy */
/* Map grid behind the hero (story 3275): the app loading screen's faint white lines, faded in and out by a soft
   ellipse centred on the photo and reaching back under the copy. */
.site-hero--wide-side { position: relative; isolation: isolate; }
.site-hero--wide-side::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  --cell: clamp(48px, 6vw, 84px);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 62% 55%, #000 0%, rgba(0, 0, 0, .55) 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 62% at 62% 55%, #000 0%, rgba(0, 0, 0, .55) 50%, transparent 100%);
}
@media (max-width: 767.98px) {
  .site-hero--wide-side::before {
    -webkit-mask-image: radial-gradient(ellipse 90% 45% at 50% 68%, #000 0%, rgba(0, 0, 0, .55) 50%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 45% at 50% 68%, #000 0%, rgba(0, 0, 0, .55) 50%, transparent 100%);
  }
}

