/* Shared styles for the text pages (privacy.html, support.html), in the
   landing page's style: chip-grey background, the floating GT-3000 logo,
   film grain, the lime progress frame round the screen, a few floating
   pixel foods in the header, LED dots on the section headings, and the
   site's footer with Apple's App Store badge. On the 8px scale.
   (The landing page keeps its styles inline in index.html; the values
   here are copied from its tokens.) */
:root {
  --lime: #BCD542;
  --offwhite: #F5F5F3;
  --bg-black: #131313;
  --sheet: #1F1F1F;
  --chip: #28282A;
  --grey-bright: #969696;
  --ok: #2EFE0E;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --hairline: color-mix(in srgb, var(--offwhite) 12%, transparent);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--chip); color: var(--grey-bright);
  font-family: var(--font-body); font-weight: 300;
  font-size: 16px; line-height: 24px;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
.pixel { image-rendering: pixelated; }
a { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }
a:hover { color: var(--offwhite); }

/* ── The floating GT-3000 logo, as on the landing page ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 16px 0; display: flex; justify-content: center;
  pointer-events: none;
  background: linear-gradient(var(--chip) 60%, transparent);   /* text scrolls under it softly */
}
.wordmark {
  pointer-events: auto;
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: 14px; letter-spacing: 19.2px;
  color: var(--offwhite); text-decoration: none;
}
.wordmark > span:last-child { margin-right: -19.2px; }   /* cancel the tracking after the last "0" */
.wordmark:hover { color: var(--lime); }

/* ── Header: kicker, big title, lead line, with pixel food floating round it ── */
.page-head {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  padding: 160px 16px 64px;
}
.page-head-inner { position: relative; z-index: 1; max-width: 680px; }
.kicker {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12px; line-height: 16px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey-bright);
  margin-bottom: 16px;
}
.dot {
  --c: var(--ok);
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: color-mix(in srgb, var(--c) 30%, transparent);
  border: 1px solid var(--c);
}
h1 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: 64px; line-height: 64px; letter-spacing: 1px; color: var(--offwhite);
  margin-bottom: 24px;
}
.lead { font-size: 24px; line-height: 32px; color: var(--offwhite); margin-bottom: 16px; }
.updated {
  font-family: var(--font-display); font-size: 12px; line-height: 16px;
  letter-spacing: 1.5px; text-transform: uppercase;
}

/* the pixel food: placed by --x / --y (% of the header) and --w, bobbing gently */
.float {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  filter: drop-shadow(0 8px 8px rgb(0 0 0 / 0.45));
  animation: bob var(--t, 2.4s) ease-in-out var(--d, 0s) infinite alternate;
}
@keyframes bob { to { translate: 0 -12px; } }

/* ── Body: sections split by hairlines, each heading with an LED ── */
.page { max-width: 1100px; margin: 0 auto; padding: 0 16px 96px; }
.section {
  max-width: 680px;
  padding: 32px 0; border-top: 1px solid var(--hairline);
}
h2 {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 16px; line-height: 24px; letter-spacing: 1.5px; color: var(--offwhite);
  margin-bottom: 16px;
}
h2 .dot { --c: var(--lime); }
p + p, p + ul, ul + p { margin-top: 16px; }
ul { list-style: none; }
li { position: relative; padding-left: 24px; }
li + li { margin-top: 8px; }
li::before {                          /* a small lime pixel as the bullet */
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 6px; height: 6px; background: var(--lime);
}
strong { font-weight: 500; color: var(--offwhite); }

/* the contact card */
.card {
  margin-top: 16px; padding: 24px;
  background: var(--sheet); border-radius: 24px;
  font-size: 16px; line-height: 24px; color: var(--offwhite);
}

/* to fill in before launch: impossible to miss */
.todo { background: var(--lime); color: #000; padding: 0 4px; border-radius: 4px; font-weight: 500; }

/* ── Footer: Apple's badge and the page links, as on the landing page ── */
footer {
  background: var(--bg-black); padding: 32px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.store-badge img { height: 40px; width: auto; }   /* Apple's minimum on-screen height */
footer nav { display: flex; gap: 24px; font-size: 16px; font-weight: 500; }
footer nav a { color: var(--grey-bright); text-decoration: none; padding: 8px 0; }
footer nav a:hover, footer nav a[aria-current] { color: var(--offwhite); }

/* ── The lime progress frame round the screen (drawn by the script) ── */
.hud { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.hud-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hud-frame path {
  fill: none; stroke: var(--lime); stroke-width: 3;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}

/* ── Film grain, as on the landing page ── */
.grain { position: fixed; inset: 0; z-index: 110; pointer-events: none; overflow: hidden; opacity: 0.07; }
.grain::before {
  content: ""; position: absolute; inset: -50%;
  background: url("grain.png") repeat; background-size: 80px 80px;
  animation: grain-jitter 0.8s steps(1) infinite; will-change: transform;
}
@keyframes grain-jitter {
  0%   { transform: translate(0, 0); }
  17%  { transform: translate(-7%, 4%); }
  33%  { transform: translate(5%, -6%); }
  50%  { transform: translate(-3%, -9%); }
  67%  { transform: translate(8%, 3%); }
  83%  { transform: translate(-6%, 7%); }
}

@media (prefers-reduced-motion: reduce) {
  .grain::before, .float { animation: none; }
}

/* ── Phones ── */
@media (max-width: 820px) {
  .hud { display: none; }   /* no border frame on phones: browser bars and rounded screen corners cut into it */
  .page-head { padding-top: 192px; padding-bottom: 48px; }   /* room for the food above the title */
  h1 { font-size: 40px; line-height: 40px; }
  .lead { font-size: 16px; line-height: 24px; }
  .float { width: calc(var(--w) * 0.6); filter: drop-shadow(0 4px 4px rgb(0 0 0 / 0.45)); }
  .float { left: var(--px, var(--x)); top: var(--py, var(--y)); }   /* phones: up above the title, clear of the text */
}
