/* ShadowJab marketing site. Shares the game's palette and nothing else:
   the game stylesheet lives in play/game.css and the two never load together. */

:root {
  --ink: #05070C;
  --bg: #06080F;
  --surface: #0E1523;
  --surface-2: #111A2B;
  --accent: #34E7F3;
  --glow: #7C5CFF;
  --ember: #FF8A3D;
  --target: #FF3B47;
  --obstacle: #3D7BFF;
  --success: #32E67F;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .22);
  --text: #F2F6FF;
  --text-2: rgba(242, 246, 255, .72);
  --text-3: rgba(242, 246, 255, .45);
  --wrap: 1160px;
  --radius: 18px;
  --head-h: 62px;
  /* One punch landing on the target in the hero picture. */
  --beat: 2.6s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--ink);
  padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 800;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: clamp(25px, 3.2vw, 34px); }

/* ------------------------------------------------------------------ header */

.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  background: rgba(6, 8, 15, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 16px; height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.brand-text { font-size: 17.5px; font-weight: 800; letter-spacing: -.03em; }

.head-link {
  margin-left: auto; color: var(--text-2); text-decoration: none;
  font-size: 15px; font-weight: 600;
}
.head-link:hover { color: var(--text); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 13px;
  font-size: 16px; font-weight: 800; letter-spacing: -.015em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-icon { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: var(--accent); color: var(--ink);
  box-shadow: 0 10px 34px rgba(52, 231, 243, .26);
}
.btn-primary:hover { background: #5FEEF8; box-shadow: 0 12px 40px rgba(52, 231, 243, .38); }
.btn-small { gap: 7px; padding: 9px 16px; font-size: 14.5px; background: var(--accent); color: var(--ink); flex: none; }
.btn-small .btn-icon { width: 14px; height: 14px; }
.btn-large { padding: 18px 32px; font-size: 17.5px; }

/* --------------------------------------------------------------------- hero */

.hero { position: relative; padding: clamp(28px, 4.5vw, 56px) 0 clamp(44px, 6vw, 76px); }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 820px; z-index: 0;
  background:
    radial-gradient(46% 40% at 22% 30%, rgba(52, 231, 243, .13), transparent 70%),
    radial-gradient(40% 38% at 84% 16%, rgba(124, 92, 255, .15), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  /* Wide enough for "Scored by camera tracking." on one line at 45px. */
  display: grid; grid-template-columns: auto minmax(0, 560px);
  justify-content: center;
  gap: clamp(28px, 5vw, 68px); align-items: center;
}

/* ------------------------------------------------------- the game panel */

.board-link { position: relative; display: block; text-decoration: none; justify-self: center; }
.board-link::before {
  content: ""; position: absolute; z-index: 0;
  inset: 5% -22% 5% -22%;
  background:
    radial-gradient(48% 42% at 24% 22%, rgba(52, 231, 243, .52), transparent 70%),
    radial-gradient(48% 42% at 76% 82%, rgba(124, 92, 255, .54), transparent 70%);
  filter: blur(54px);
  pointer-events: none;
}

.board {
  position: relative; z-index: 1; display: block;
  /* Sized off the viewport height as well as the width: the panel is a tall
     portrait phone and it has to sit inside the first screen. */
  width: min(370px, 74vw, calc((100vh - 195px) * .58));
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(160deg, #262F42, #0B0F18 55%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .07) inset;
  transition: transform .22s ease, box-shadow .22s ease;
}
.board-link:hover .board { transform: translateY(-5px); box-shadow: 0 48px 100px rgba(0, 0, 0, .68), 0 0 0 1px rgba(52, 231, 243, .22) inset; }

.board-screen {
  display: block; position: relative;
  /* The hero render's own shape, so nothing in it is cropped away. */
  aspect-ratio: 941 / 1672;
  border-radius: 31px; overflow: hidden; background: #05070C;
}
.board-plate { width: 100%; height: 100%; object-fit: cover; }
.board-fx { position: absolute; inset: 0; width: 100%; height: 100%; }

.board-cta {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  max-width: calc(100% - 34px);
  padding: 11px 18px; border-radius: 99px;
  background: rgba(5, 7, 12, .74);
  border: 1px solid rgba(52, 231, 243, .45);
  backdrop-filter: blur(10px);
  color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  transition: background .18s ease, border-color .18s ease;
}
.board-cta svg { width: 13px; height: 13px; color: var(--accent); }
.board-link:hover .board-cta { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.board-link:hover .board-cta svg { color: var(--ink); }

/* --------------------------------------------------- the loop on the panel */

/* Two things move over the still: the punch in the picture landing on its
   target once a beat, and the camera's sweep. Both are drawn in the render's
   own pixels, so the origin below is the bullseye's. */
.board-fx .fx-hit, .board-fx .fx-shock { opacity: 0; }
.fx-hit, .fx-shock, .fx-scan { transform-box: view-box; }
.fx-hit, .fx-shock { transform-origin: 806px 516px; }

.board-fx .fx-hit { animation: fx-hit var(--beat) linear infinite; }
.board-fx .fx-shock { animation: fx-shock var(--beat) linear infinite; }
.board-fx .fx-scan { animation: fx-scan 4.4s linear infinite; }

/* A glow rather than a solid disc: the target under it is a photograph, and
   a flat white blob over a photograph reads as a glitch. */
@keyframes fx-hit {
  0%, 47%  { opacity: 0; transform: scale(.6); }
  48.5%    { opacity: .85; transform: scale(1); }
  57%      { opacity: 0; transform: scale(1.8); }
  100%     { opacity: 0; transform: scale(.6); }
}
@keyframes fx-shock {
  0%, 47.5% { opacity: 0; transform: scale(.7); }
  49%       { opacity: .85; transform: scale(.95); }
  61%       { opacity: 0; transform: scale(2.3); }
  100%      { opacity: 0; transform: scale(.7); }
}
@keyframes fx-scan {
  0%   { transform: translateY(0); opacity: 0; }
  14%  { opacity: .45; }
  86%  { opacity: .45; }
  100% { transform: translateY(1932px); opacity: 0; }
}

/* --------------------------------------------------------------- hero copy */

.hero-title { font-size: clamp(31px, 3.6vw, 45px); }
.lede { font-size: clamp(16.5px, 1.7vw, 18.5px); color: var(--text-2); margin-top: 18px; max-width: 40ch; }
.hero-copy > .btn { margin-top: 28px; }
.cta-note { font-size: 14px; color: var(--text-3); margin-top: 13px; }
.hero-stores { margin-top: 30px; max-width: 470px; }

/* --------------------------------------------------------------- divider */

.rule {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3);
}
.rule::before, .rule::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }

/* --------------------------------------------------------------- stores */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.store {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  flex: 1 1 200px; max-width: 240px;
  padding: 12px 20px 12px 17px; border-radius: 13px;
  border: 1px solid var(--line-strong); background: rgba(14, 21, 35, .8);
  color: var(--text); text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.store:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.store-glyph { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; text-align: left; font-size: 16px; font-weight: 700; line-height: 1.2; }
.store small { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.soon {
  position: absolute; top: -8px; right: 10px;
  padding: 2px 8px; border-radius: 99px;
  background: var(--ember); color: var(--ink);
  font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-style: normal;
}

/* ---------------------------------------------------------------- set up */

.setup { padding: clamp(46px, 6vw, 74px) 0; border-top: 1px solid var(--line); }
.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 36px;
  margin-top: 28px;
}
.steps li {
  counter-increment: step; position: relative; padding-left: 48px;
  font-size: 15px; color: var(--text-3);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -10px;
  font-size: 40px; font-weight: 800; letter-spacing: -.05em; line-height: 1;
  color: rgba(52, 231, 243, .16);
  -webkit-text-stroke: 1.5px rgba(52, 231, 243, .45);
}
.steps b { display: block; font-size: 16.5px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }

/* ----------------------------------------------------------------- bands */

.band { padding: clamp(46px, 6.5vw, 78px) 0; border-top: 1px solid var(--line); }
.band.alt { background: linear-gradient(180deg, #080B14, #06080F); }

/* ----------------------------------------------------------------- modes */

.cards {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.card { padding: 28px 30px 30px; }
.card + .card { border-left: 1px solid var(--line); }
.card-tag {
  display: inline-block; margin-bottom: 14px;
  padding: 5px 12px; border-radius: 99px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.tag-red { background: rgba(255, 59, 71, .14); color: #FF6E77; border: 1px solid rgba(255, 59, 71, .35); }
.tag-cyan { background: rgba(52, 231, 243, .12); color: var(--accent); border: 1px solid rgba(52, 231, 243, .35); }
.card p { font-size: 15.5px; color: var(--text-2); }
.card-where {
  margin-top: 18px; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-3) !important;
}

/* ------------------------------------------------------------------- faq */

.faq { margin-top: 26px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 44px 18px 0; position: relative;
  font-size: 17px; font-weight: 700; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--accent); }
.faq p { padding: 0 20px 20px 0; font-size: 15.5px; color: var(--text-2); max-width: 64ch; }

/* ------------------------------------------------------------------- get */

.get {
  text-align: center; padding: clamp(56px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(58% 100% at 50% 0%, rgba(52, 231, 243, .12), transparent 70%),
    linear-gradient(180deg, #080B14, #06080F);
}
.get h2 { max-width: 18ch; margin: 0 auto 28px; }
.get .rule { max-width: 420px; margin: 30px auto 0; }
.get .stores { justify-content: center; max-width: 500px; margin-inline: auto; }

.trust {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 22px; margin-top: 30px; font-size: 14px; color: var(--text-3);
}
.trust li { position: relative; }
.trust li + li::before {
  content: ""; position: absolute; left: -12px; top: 50%;
  width: 3px; height: 3px; margin-top: -1px; border-radius: 50%; background: var(--line-strong);
}
.requirements { font-size: 13.5px; color: var(--text-3); margin: 14px auto 0; max-width: 56ch; }

/* ------------------------------------------------------------------ footer */

.site-foot { border-top: 1px solid var(--line); padding: 34px 0 26px; background: #05070C; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; align-items: center; }
.foot-note { font-size: 14px; color: var(--text-3); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.foot-nav a:hover { color: var(--accent); }
.foot-nav a[aria-current="page"] { color: var(--text); }
.foot-legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-legal p { font-size: 12.5px; color: var(--text-3); }

/* ------------------------------------------------------------ legal pages */

/* The privacy policy and the terms. Long reading, so a narrower measure and
   quieter type than the landing page, and numbered sections the documents can
   point at ("see section 7"). The header and footer are the landing page's. */

.legal { padding: clamp(32px, 5vw, 60px) 0 clamp(56px, 8vw, 96px); }

.legal-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.legal-head h1 { font-size: clamp(32px, 5vw, 46px); margin-top: 10px; }
.legal-meta { margin-top: 12px; font-size: 14px; color: var(--text-3); }
.legal-intro { margin-top: 18px; font-size: 16.5px; color: var(--text-2); }
.legal-intro + .legal-intro { margin-top: 10px; }

.legal-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.legal-switch a {
  padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line-strong);
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 700;
}
.legal-switch a:hover { color: var(--text); border-color: var(--accent); }
.legal-switch a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* The short version: the whole document in a few lines, for most readers the
   only part they will read, so it has to be true on its own. */
.legal-summary {
  margin-top: 32px; padding: 24px 26px 26px;
  border: 1px solid rgba(52, 231, 243, .28); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(52, 231, 243, .07), rgba(124, 92, 255, .05));
}
.legal-summary h2 { font-size: 19px; letter-spacing: -.015em; }
.legal-summary ul { list-style: none; margin-top: 14px; }
.legal-summary li {
  position: relative; padding-left: 26px;
  font-size: 15.5px; color: var(--text-2);
}
.legal-summary li + li { margin-top: 10px; }
.legal-summary li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 9px; height: 5px; margin-top: -1px;
  border-left: 2px solid var(--success); border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}
.legal-summary strong { color: var(--text); }
.legal-summary .legal-fineprint { margin-top: 16px; font-size: 13.5px; color: var(--text-3); }

.toc { margin-top: 34px; }
.toc h2 {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3);
}
.toc ol { list-style: none; margin-top: 12px; columns: 2; column-gap: 36px; }
.toc li { break-inside: avoid; padding: 4px 0; }
.toc a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--accent); }

.legal-body section { padding-top: 40px; }
.legal-body h2 { font-size: clamp(21px, 2.4vw, 25px); }
.legal-body h3 { font-size: 17px; letter-spacing: -.01em; margin-top: 26px; }
.legal-body p, .legal-body li, .legal-body dd { font-size: 16px; color: var(--text-2); }
.legal-body p { margin-top: 12px; }
.legal-body h2 + p, .legal-body h3 + p { margin-top: 10px; }
.legal-body ul, .legal-body ol { margin-top: 12px; padding-left: 22px; }
.legal-body li + li { margin-top: 7px; }
.legal-body li::marker { color: var(--accent); }
.legal-body strong { color: var(--text); font-weight: 700; }
.legal-body a { text-underline-offset: 2px; overflow-wrap: anywhere; }

/* Which part of the GDPR a section leans on. Required, and of interest to
   about one reader in a thousand, so it sits back. */
.legal-body .basis { font-size: 14.5px; color: var(--text-3); }
.legal-body .basis strong { color: var(--text-2); }

.legal-address {
  margin-top: 14px; padding: 14px 18px;
  border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0;
  background: var(--surface); font-style: normal; color: var(--text-2);
}

/* Who gets what: a list rather than a table so it reads on a phone. */
.legal-parties { margin-top: 14px; border-top: 1px solid var(--line); }
.legal-parties > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-parties dt { font-weight: 700; color: var(--text); }
.legal-parties dd { margin-top: 4px; }

.legal-table { width: 100%; margin-top: 14px; border-collapse: collapse; }
.legal-table th, .legal-table td {
  padding: 12px 16px 12px 0; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); font-size: 15px;
}
.legal-table thead th {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
}
.legal-table tbody th { width: 42%; color: var(--text); font-weight: 700; }
.legal-table td { color: var(--text-2); }

/* Health and safety, and anything else a reader must not skim past. */
.legal-callout {
  margin-top: 16px; padding: 18px 22px 20px;
  border: 1px solid rgba(255, 138, 61, .38); border-radius: 14px;
  background: rgba(255, 138, 61, .06);
}
.legal-callout > :first-child { margin-top: 0; }

.legal-end { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }

/* Details only the owner can supply, such as the postal address. Loud on
   purpose; tools/check-site.py lists every one and fails on them with
   --release, so none of them can reach the live site by accident. */
mark.todo {
  padding: 1px 6px; border-radius: 6px;
  background: rgba(255, 138, 61, .18); color: var(--ember);
  outline: 1px dashed rgba(255, 138, 61, .7); outline-offset: 1px;
  font-weight: 700;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  /* Headline for context, then the game, then the way in. Unwrapping the copy
     column lets the panel sit between the title and the button. */
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { display: contents; }
  /* Sized off the width so the headline's second line never wraps and
     strands a word: that line is about 12.3 times the font size wide, and
     the column is the viewport less 44px of gutter. */
  .hero-title { order: 1; font-size: min(40px, calc(8vw - 4px)); text-align: center; }
  .board-link { order: 2; margin-top: 24px; }
  .board { width: min(310px, 64vw, calc((100vh - 320px) * .50)); }
  .lede { order: 3; margin: 20px auto 0; text-align: center; max-width: 38ch; font-size: 16px; }
  .hero-copy > .btn { order: 4; margin-top: 22px; width: 100%; max-width: 420px; margin-inline: auto; }
  .cta-note { order: 5; margin-top: 12px; text-align: center; }
  .hero-stores { order: 6; margin: 28px auto 0; }
  .stores { justify-content: center; }

  .steps { grid-template-columns: 1fr; gap: 20px; }
  .cards { grid-template-columns: 1fr; }
  .card + .card { border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn-long { display: none; }
  .head-link { font-size: 14px; }
  .store { flex: 1 1 100%; max-width: none; }
  .board-cta { font-size: 13px; padding: 10px 15px; bottom: 22px; }

  .toc ol { columns: 1; }
  .legal-summary { padding: 20px 18px 22px; }
  .legal-callout { padding: 16px 16px 18px; }
  .legal-body p, .legal-body li, .legal-body dd { font-size: 15.5px; }
}

@media (max-width: 360px) {
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  /* The panel is authored as a complete frame, so stopping the loop leaves a
     still of a round in progress rather than an empty screen. The camera sweep
     is the one part with nothing to say standing still. */
  .board-fx * { animation: none !important; }
  .board-fx .fx-scan { display: none; }
}

/* The legal pages are the ones people print, and save as PDF to keep. */
@media print {
  .skip, .site-head, .site-foot, .legal-switch { display: none; }
  body { background: #FFFFFF; color: #000000; font-size: 11pt; }
  .legal *, .legal *::before { color: #000000 !important; background: none !important; }
  .legal-summary, .legal-callout, .legal-address, .legal-table th, .legal-table td,
  .legal-parties, .legal-parties > div { border-color: #999999 !important; }
  .legal a { text-decoration: underline; }
  .legal h2, .legal h3 { break-after: avoid; }
}
