/* Laser Arrows — pingee.app/laserarrows/
 *
 * The palette is the app's, value for value, out of Source/Theme.cpp: the
 * Daylight ground the game opens on and the Plum backdrop the promo art uses.
 * A site in colours the app does not have is a site that looks like somebody
 * else's.
 *
 * One stylesheet, no framework, no build step, no web fonts — the page is
 * four images and some text, and every byte it does not fetch is a byte it
 * does not wait for.
 */

:root {
  /* Daylight, from kDaylightChrome. */
  --sand-hi: #fefbf6;
  --sand: #f6efe2;
  --sand-lo: #dac9b2;
  --ink: #241a14;
  --ink-soft: #6b5542;

  /* Plum, from kPlumChrome — the deep ground the hero sits on. */
  --plum-hi: #6e57e8;
  --plum: #4a1fa8;
  --plum-lo: #220a4a;
  --ray-warm: #ec4899;

  /* The app's own button voices. */
  --red: #c42b22;
  --blue: #254c9e;
  --gold: #a88612;
  --green: #1c6e3e;

  --maxw: 1100px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sand-hi);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

a { color: var(--blue); }
a:hover { color: var(--red); }

/* ── header ───────────────────────────────────────────────────────────── */

.site-header {
  background: var(--sand);
  border-bottom: 1px solid var(--sand-lo);
  position: sticky; top: 0; z-index: 20;
}
.bar {
  display: flex; align-items: center; gap: 18px;
  min-height: 68px; flex-wrap: wrap;
}
.brandmark { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brandmark img { width: 40px; height: 40px; border-radius: 10px; display: block; object-fit: cover; }
.brandmark .name {
  font-weight: 800; font-size: 18px; color: var(--ink);
  text-decoration: none; letter-spacing: .2px; display: block;
}
.brandmark .badge { font-size: 12.5px; color: var(--ink-soft); text-decoration: none; }
.brandmark .badge:hover { color: var(--red); }

.header-actions { display: flex; align-items: center; }
@media (max-width: 880px) { .header-actions { display: none; } }

.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--red); }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(1100px 620px at 28% 24%, rgba(236,72,153,.30), transparent 62%),
    radial-gradient(900px 560px at 78% 78%, rgba(110,87,232,.38), transparent 60%),
    linear-gradient(170deg, var(--plum) 0%, var(--plum-lo) 100%);
  color: #fff;
  padding: 64px 0 72px;
  overflow: hidden;
  position: relative;
}
/* The beam, in CSS: in from the left, a bend, and away down the page. The
   game is about light turning a corner, so the page turns one too.
   It runs down the MARGIN. At 11% it went straight through the wordmark and
   the sentence under it — the same mistake the promo art made, and the type
   is the one thing in a hero that has to stay readable. */
.hero::before,
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  background: #ff3a26;
  box-shadow: 0 0 18px 3px rgba(255,58,38,.65);
}
.hero::before { left: 0; top: 76px; width: 3.6%; height: 3px; }
.hero::after  { left: 3.6%; top: 76px; width: 3px; height: 100%; }

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 44px; align-items: center;
}
/* height:auto on every image that CSS resizes.
   The markup carries width/height attributes so the browser can reserve the
   space before the file arrives — but without height:auto the HTML height
   WINS over the aspect ratio, and a 560x1217 capture asked to be 300px wide
   was drawn 300x1217. Every screenshot and the wordmark were stretched. */
.hero-mark { width: min(100%, 460px); height: auto; display: block; margin: 0 0 18px; }
.hero p.tag { font-size: 20px; line-height: 1.5; color: #efe2f6; margin: 0 0 26px; max-width: 30em; }
.hero-shot { justify-self: center; }
.hero-shot img {
  width: min(100%, 300px); height: auto; display: block; border-radius: 26px;
  box-shadow: 0 26px 60px rgba(0,0,0,.45);
}

/* ── store badges ─────────────────────────────────────────────────────── */

/* Apple's and Google's own artwork, as the sibling site uses — both stores
   require their supplied badge rather than a button you draw yourself. */
.store-badges {
  --badge-h: 3.4rem;
  /* Google draws its artwork tighter inside the button than Apple does: at a
     matched button height the Play logo and wordmark measure about 8% taller,
     inside a button already 12% wider, so the pair reads lopsided. 0.93 is
     the ratio of the two artworks and lines the wordmarks up optically. */
  --google-scale: 0.93;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.store-badges a {
  display: inline-block;
  transition: transform .2s cubic-bezier(.4, 0, .2, 1);
}
.store-badges a:hover { transform: scale(1.05); }
.store-badges img { height: var(--badge-h); width: auto; display: block; }
.store-badges .store-google img { height: calc(var(--badge-h) * var(--google-scale)); }

.store-badges-sm { --badge-h: 2.2rem; gap: 10px; }

@media (max-width: 639px) {
  .store-badges:not(.store-badges-sm) { --badge-h: 2.7rem; }
}

/* ── sections ─────────────────────────────────────────────────────────── */

section { padding: 62px 0; }
section.alt { background: var(--sand); border-block: 1px solid var(--sand-lo); }

h2 { font-size: 30px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.2px; }
h2 + .lede { color: var(--ink-soft); margin: 0 0 30px; max-width: 46em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--sand-hi); border: 1px solid var(--sand-lo);
  border-radius: var(--radius); padding: 22px 20px;
}
section.alt .card { background: #fff; }
.card h3 { margin: 0 0 7px; font-size: 17.5px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.card .pip {
  width: 34px; height: 5px; border-radius: 3px; display: block; margin-bottom: 14px;
}

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shots img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid var(--sand-lo);
  box-shadow: 0 10px 26px rgba(36,26,20,.13);
}

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact { text-align: center; }
.fact .n { font-size: 30px; font-weight: 800; display: block; line-height: 1.1; }
.fact .l { color: var(--ink-soft); font-size: 14.5px; }

/* ── footer ───────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--plum-lo); color: #cdbbdd;
  padding: 34px 0; font-size: 14.5px;
}
.site-footer a { color: #fff; }
.site-footer .row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer .row .spacer { margin-left: auto; }

/* ── long-form pages ──────────────────────────────────────────────────── */

.doc { padding: 54px 0 70px; }
.doc h1 { font-size: 32px; margin: 0 0 6px; }
.doc .updated { color: var(--ink-soft); margin: 0 0 30px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc p, .doc li { color: #3a2d24; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .note {
  background: var(--sand); border: 1px solid var(--sand-lo);
  border-left: 4px solid var(--green);
  border-radius: 12px; padding: 16px 18px; margin: 22px 0;
}

/* ── narrow ───────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-shot { order: -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; gap: 26px; }
  .site-nav { order: 3; width: 100%; padding-bottom: 12px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  h2 { font-size: 26px; }
  .hero { padding: 44px 0 52px; }
}
