/* Shared chrome: tokens, nav, footer and the App Store button.
   Landing-only styles are in landing.css. The site wears the app's Sticker Sky look: the indigo
   sky, cream sticker cards with a graphite outline and a hard drop shadow, and the sticker palette.
   Values from StarBattle/Views/StickerKit/StickerKitTokens.swift. */
:root {
  /* Sticker Sky */
  --sky: #20275a;        /* screen background */
  --sky-top: #3a3e8c;    /* top of the sky wash */
  --deep: #171c48;       /* "sky window" cards, footer */
  --cream: #fff8e0;      /* card fill, text on the sky */
  --ink: #1b1b22;        /* outlines, text on cream */
  --shadow: rgba(8, 10, 36, 0.55);
  --gold: #f0c75e;
  --pink: #e8637a;
  --cyan: #5ec4e8;
  --violet: #a87ce0;
  --mint: #5ee8a0;
  --orange: #e89a5e;
  --blue: #5e8ce8;
  --magenta: #d65ee8;
  --outline: 3px solid var(--ink);
  --hard: 0 5px 0 var(--shadow);
  --text: var(--cream);                       /* body text on the sky */
  --muted: rgba(255, 248, 224, 0.75);         /* secondary text on the sky */
  --ink-soft: rgba(27, 27, 34, 0.6);          /* secondary text on cream */
  --line: rgba(255, 248, 224, 0.16);
  --accent: var(--cyan);
  /* older names still used by landing.css */
  --night: var(--sky);
  --night-2: var(--deep);
  --night-3: #2b3270;
  --sans: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 56px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--sky) linear-gradient(to bottom, var(--sky-top), var(--sky) 60vh) no-repeat;
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Nav: deep indigo glass with a cream hairline */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(23, 28, 72, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; height: 100%; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 19px; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  color: var(--cream);
}
.brand img { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--shadow); }
.nav nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; font-weight: 800; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav nav a:hover { color: var(--gold); }
@media (max-width: 640px) {
  .nav nav { gap: 14px; font-size: 13px; }
  .nav nav a:nth-child(-n+2) { display: none; }
}

/* Sticker pieces shared by every section */
.sticker-card {
  background: var(--cream); color: var(--ink);
  border: var(--outline); border-radius: 22px; box-shadow: var(--hard);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 3px; border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--pill, var(--gold)); color: var(--ink); box-shadow: 0 3px 0 var(--shadow);
  font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}

/* App Store button: Apple's black badge, unchanged, set on a cream sticker card */
.store-card {
  display: inline-flex; padding: 8px; background: var(--cream);
  border: var(--outline); border-radius: 22px; box-shadow: var(--hard);
}
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 16px; border-radius: 14px;
  background: #000; color: #fff;
  text-decoration: none; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600; font-size: 20px; line-height: 1.05; letter-spacing: -0.01em;
  transition: transform 0.2s ease;
}
.store-btn svg { width: 22px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: 0.85; }
a.store-btn:hover { transform: scale(1.03); }
.store-btn.is-soon { cursor: default; }

/* Footer */
.foot { background: var(--deep); color: var(--muted); font-size: 13px; border-top: 3px solid var(--ink); }
.foot-inner { max-width: 1080px; margin: 0 auto; padding: 32px 16px 40px; }
.foot .brand { font-size: 17px; }
.foot .brand img { width: 26px; height: 26px; border-radius: 7px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 14px; font-weight: 700; }
.foot nav a { color: var(--cream); text-decoration: none; }
.foot nav a:hover { color: var(--gold); }
.foot p { margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }
