@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Public site with the PlayX identity (ADR 0037, docs/brand/README.md). The --px-* tokens have
   the same names and values in the site, the panel and the admin. */
:root {
  color-scheme: dark;
  --px-bg: #040400;
  --px-surface: #0d0d06;
  --px-surface-2: #15150a;
  --px-line: #2a2a14;
  --px-ink: #fcfcf8;
  --px-muted: #a3a38c;
  --px-lime: #f0fc44;
  --px-olive: #acb024;
  --px-on-lime: #040400;
  --px-card: linear-gradient(180deg, #f3ff48, #f8ff96);

  /* Site-only values. */
  --site-button-line: #55553c;
  /* Long reading text (legal pages): the ink softened, 14.9:1 on --px-bg. */
  --site-body: #dcdcd2;
  --site-radius-card: 18px;
  --site-font:
    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--px-bg);
  color: var(--px-ink);
  font: 400 16px/1.6 var(--site-font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  font-family: var(--site-font);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
/* Visible focus on every interactive element. On the lime card the ring turns black. */
:focus-visible {
  outline: 2px solid var(--px-lime);
  outline-offset: 2px;
}
.playCard :focus-visible {
  outline-color: var(--px-on-lime);
}
.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}
.container.narrow {
  width: min(820px, 100% - 32px);
}
.skipLink {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--px-lime);
  color: var(--px-on-lime);
  font-weight: 700;
}
.skipLink:focus {
  top: 12px;
}

/* Wordmark (PlayXLogo): outlined paths coloured by the tokens. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 6px 0;
  border-radius: 6px;
}
.pxLogo {
  display: block;
  height: 22px;
  width: auto;
  aspect-ratio: 4533 / 700;
}
.pxLogo .pxLogoPlay {
  fill: var(--px-ink);
}
.pxLogo .pxLogoX {
  fill: var(--px-lime);
}
.pxLogo[data-variant='black'] path {
  fill: var(--px-on-lime);
}
.pxLogo[data-variant='white'] path {
  fill: var(--px-ink);
}

/* Buttons: primary lime, secondary outlined; dark variants sit on the lime card. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s;
}
.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button.large {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 16px;
}
.button.primary {
  background: var(--px-lime);
  color: var(--px-on-lime);
}
.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(240, 252, 68, 0.28);
}
.button.secondary {
  border-color: var(--site-button-line);
  color: var(--px-ink);
}
.button.secondary:hover {
  border-color: var(--px-lime);
}
.button.ghost {
  color: var(--px-muted);
}
.button.ghost:hover {
  color: var(--px-ink);
}
.button.dark {
  background: var(--px-on-lime);
  color: var(--px-lime);
}
.button.dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(4, 4, 0, 0.3);
}
.button.darkOutline {
  border-color: rgba(4, 4, 0, 0.6);
  color: var(--px-on-lime);
}
.button.darkOutline:hover {
  border-color: var(--px-on-lime);
}

/* Header */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 4, 0, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--px-line);
}
.headerInner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.mainNav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.mainNav a {
  border-radius: 6px;
  color: var(--px-muted);
  font-size: 14px;
  font-weight: 500;
}
.mainNav a:hover {
  color: var(--px-ink);
}
.headerActions {
  display: flex;
  gap: 8px;
}

/* Hero: neon background (docs/brand/assets) under a PlayX-black gradient where the text sits.
   Landscape crops on larger screens, the portrait crop on phones. The shade stays at 90% up to
   the right edge of the body text (container edge + 560px), so the muted text keeps at least
   6:1 over the brightest neon line; the neon shows to the right of it. */
.hero {
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100svh - 72px));
  padding: clamp(64px, 9vw, 120px) 0;
  background-color: #040400;
  background-image:
    linear-gradient(180deg, rgba(4, 4, 0, 0) 70%, #040400 100%),
    linear-gradient(
      90deg,
      rgba(4, 4, 0, 0.84) 0%,
      rgba(4, 4, 0, 0.62) 36%,
      rgba(4, 4, 0, 0.28) 64%,
      rgba(4, 4, 0, 0.05) 100%
    ),
    url('brand/playx-neon-1920x1080.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.heroCopy {
  max-width: 760px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--px-lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.eyebrow span {
  width: 22px;
  height: 1px;
  background: currentColor;
}
.slogan {
  font-size: clamp(40px, 10.5vw, 88px);
  line-height: 1;
}
.slogan em {
  display: block;
  font-style: normal;
  color: var(--px-lime);
}
.heroTagline {
  max-width: 600px;
  margin-top: 26px;
  color: var(--px-ink);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.heroTagline strong {
  display: block;
  font-weight: 800;
}
.lead {
  max-width: 560px;
  margin-top: 16px;
  color: var(--px-muted);
  font-size: clamp(16px, 1.6vw, 18px);
}
.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.platforms {
  margin-top: 26px;
  color: var(--px-muted);
  font-size: 14px;
}
.platforms strong {
  color: var(--px-ink);
  font-weight: 600;
}

/* Sections */
.section {
  padding: clamp(64px, 8vw, 104px) 0;
}
.section.alt {
  background: var(--px-surface);
  border-block: 1px solid var(--px-line);
}
.sectionHeading {
  max-width: 640px;
  margin-bottom: 40px;
}
.sectionHeading h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
}
.card {
  padding: 28px;
  border: 1px solid var(--px-line);
  border-radius: var(--site-radius-card);
  background: var(--px-surface);
}
.section.alt .card {
  background: var(--px-surface-2);
}
.card h3 {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.3;
}
.card p {
  margin-top: 8px;
  color: var(--px-muted);
  font-size: 15px;
}
.featureGrid,
.steps,
.packageGrid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.featureGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.featureIcon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(240, 252, 68, 0.28);
  border-radius: 14px;
  background: rgba(240, 252, 68, 0.08);
  color: var(--px-lime);
}
.featureIcon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stepNumber {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--px-lime);
  color: var(--px-on-lime);
  font-size: 16px;
  font-weight: 800;
}
.packageGrid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 340px));
}
.packageCard {
  display: flex;
  flex-direction: column;
}
.packageCard h3 {
  margin-top: 0;
}
.card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
}
.price strong {
  color: var(--px-ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.card .installations {
  color: var(--px-lime);
  font-weight: 600;
}
.packageText {
  flex: 1;
}
.packageCard .button {
  margin-top: 24px;
}
.packageFallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.card.packageFallback p {
  margin: 0;
  color: var(--px-ink);
}
.finePrint {
  margin-top: 20px;
  color: var(--px-muted);
  font-size: 14px;
}
.finePrint a {
  color: var(--px-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--px-line);
  border-radius: 14px;
  background: var(--px-surface-2);
}
.faq details[open] {
  border-color: rgba(172, 176, 36, 0.45);
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  border-radius: 14px;
  color: var(--px-ink);
  font-weight: 600;
  list-style-position: inside;
}
.faq summary::marker {
  color: var(--px-lime);
}
.faq details p {
  padding: 0 22px 20px;
  color: var(--px-muted);
}

/* Closing call to action on the "Play" card gradient: text on lime is always PlayX black. */
.ctaBand {
  padding: clamp(56px, 7vw, 96px) 0;
}
.playCard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: 24px;
  background: var(--px-card);
  color: var(--px-on-lime);
}
.playCardSlogan {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.playCard h2 {
  max-width: 580px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
}
.playCard .heroActions {
  margin-top: 0;
}

/* Footer */
.siteFooter {
  padding: 36px 0;
  border-top: 1px solid var(--px-line);
  background: var(--px-bg);
  color: var(--px-muted);
  font-size: 14px;
}
.siteFooter .pxLogo {
  height: 18px;
}
.footerInner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}
.footerInner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.footerInner nav a {
  border-radius: 4px;
}
.footerInner nav a:hover {
  color: var(--px-ink);
}

/* Page not found */
.notFound h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
}
.notFound .lead {
  margin-top: 16px;
}

/* Legal pages: terms of use, privacy policy and copyright notice. */
.pageHero {
  padding: clamp(44px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--px-line);
  background:
    radial-gradient(circle at 88% 0%, rgba(240, 252, 68, 0.16), transparent 42%),
    radial-gradient(circle at 10% 110%, rgba(172, 176, 36, 0.12), transparent 40%), var(--px-bg);
}
.pageHero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
}
.docVersion {
  margin-top: 14px;
  color: var(--px-olive);
  font-size: 14px;
  font-weight: 600;
}
.pageHero .lead {
  max-width: 680px;
  margin-top: 16px;
}
.legalBody {
  padding: clamp(36px, 5vw, 56px) 0 clamp(64px, 8vw, 104px);
  color: var(--site-body);
  line-height: 1.7;
  overflow-wrap: break-word;
}
.legalToc {
  padding: 22px 26px;
  border: 1px solid var(--px-line);
  border-radius: var(--site-radius-card);
  background: var(--px-surface);
}
.legalTocTitle {
  color: var(--px-ink);
  font-weight: 700;
}
.legalToc ol {
  margin: 10px 0 0;
  padding-left: 1.5em;
  columns: 240px 2;
  column-gap: 44px;
  color: var(--px-muted);
}
.legalToc li {
  padding: 3px 0;
  break-inside: avoid;
}
.legalToc a {
  border-radius: 4px;
  color: var(--px-lime);
  font-weight: 500;
}
.legalToc a:hover {
  text-decoration: underline;
}
.legalBody section {
  margin-top: 48px;
}
.legalBody h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  color: var(--px-ink);
}
.legalBody h3 {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 700;
  color: var(--px-ink);
}
.legalBody section p,
.legalBody section ul,
.legalBody section ol,
.legalBody section dl {
  margin: 14px 0 0;
}
.legalBody section ul,
.legalBody section ol {
  padding-left: 1.4em;
}
.legalBody section li + li {
  margin-top: 8px;
}
.legalBody section li::marker {
  color: var(--px-olive);
}
.legalBody section a {
  border-radius: 4px;
  color: var(--px-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legalBody section a:hover {
  color: var(--px-ink);
}
.legalBody strong,
.legalBody dt {
  color: var(--px-ink);
  font-weight: 600;
}
.legalBody dt {
  margin-top: 16px;
}
.legalBody dd {
  margin: 4px 0 0;
}
.notice {
  padding: 18px 22px;
  border: 1px solid var(--px-line);
  border-left: 4px solid var(--px-lime);
  border-radius: 12px;
  background: var(--px-surface-2);
  color: var(--px-ink);
}

@media (max-width: 1280px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(4, 4, 0, 0) 70%, #040400 100%),
      linear-gradient(
        90deg,
        rgba(4, 4, 0, 0.84) 0%,
        rgba(4, 4, 0, 0.62) 36%,
        rgba(4, 4, 0, 0.28) 64%,
        rgba(4, 4, 0, 0.05) 100%
      ),
      url('brand/playx-neon-1280x720.webp');
  }
}
@media (max-width: 980px) {
  .mainNav {
    display: none;
  }
  .headerActions {
    margin-left: auto;
  }
  .featureGrid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  /* Portrait crop: the neon shows at the top and the text sits on the dark part below. */
  .hero {
    align-items: flex-end;
    min-height: calc(100svh - 64px);
    padding: 32svh 0 56px;
    background-image:
      linear-gradient(
        180deg,
        rgba(4, 4, 0, 0.05) 0%,
        rgba(4, 4, 0, 0.42) 22%,
        rgba(4, 4, 0, 0.82) 42%,
        rgba(4, 4, 0, 0.95) 100%
      ),
      url('brand/playx-neon-900x1600.webp');
    background-position: center top;
  }
}
@media (max-width: 600px) {
  .headerInner {
    gap: 10px;
    min-height: 64px;
  }
  .siteHeader .pxLogo {
    height: 16px;
  }
  .headerActions {
    gap: 6px;
  }
  .headerActions .button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }
  .featureGrid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .heroActions .button {
    flex: 1 1 100%;
  }
  .card {
    padding: 22px;
  }
  .legalToc {
    padding: 18px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Platform availability chips in the hero (Roku live; Samsung, LG and Play Store coming soon). */
.availabilityRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.availabilityItem {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--px-line);
  border-radius: 999px;
  background: rgba(13, 13, 6, 0.72);
  backdrop-filter: blur(4px);
  color: var(--px-ink);
  font-size: 14px;
  font-weight: 600;
}
.availabilityItem small {
  color: var(--px-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.availabilityItem .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--site-button-line);
}
.availabilityItem.live {
  border-color: rgba(240, 252, 68, 0.45);
}
.availabilityItem.live small {
  color: var(--px-on-lime);
  background: var(--px-lime);
  padding: 2px 8px;
  border-radius: 999px;
}
.availabilityItem.live .dot {
  background: var(--px-lime);
  box-shadow: 0 0 0 3px rgba(240, 252, 68, 0.2);
}
