/* ============================================================
   store.css — the "get the app" pages and their policy pages (round 56)
   ------------------------------------------------------------
   One stylesheet for every page shared/tools/store-pages.mjs writes; a copy
   goes into each page's own folder, so a page stands alone like every other
   directory of the site.

   TWO THEMES, AND THEY ARE THE SITE'S TWO GROUNDS. `space` is the
   Immersiverse's night sky with the hub plate's dark glass and the lime
   accent; `putty` is the industrial page's paper with ink type. The orange is
   the site's one orange (#DC7634) on both.

   ⚠ THE BADGES ARE THE STORES' OWN ARTWORK AND ARE NOT RESTYLED. Apple's and
   Google's terms both ask for the badge as supplied: no recolouring, no
   cropping, clear space around it. They are black on both grounds.
   ============================================================ */
@font-face { font-family: 'Space Grotesk'; src: url('./fonts/SpaceGrotesk-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('./fonts/SpaceGrotesk-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('./fonts/SpaceGrotesk-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --orange: #DC7634;
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
html[data-theme="space"] {
  --bg: #0B1020;
  --ink: #F4F2EE;
  --text: rgba(244, 242, 238, 0.8);
  --muted: rgba(244, 242, 238, 0.52);
  --hi: #BCF314;
  --card: rgba(9, 13, 26, 0.58);
  --line: rgba(244, 242, 238, 0.11);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
  --glow: #3C4F77;
  --glow-mix: 64%;
  --disc: rgba(244, 242, 238, 0.06);
}
html[data-theme="putty"] {
  --bg: #E6E1D7;
  --ink: #232624;
  --text: #2C302E;
  --muted: #6A706C;
  --hi: #DC7634;
  --card: rgba(255, 255, 255, 0.5);
  --line: rgba(44, 48, 46, 0.14);
  --shadow: 0 26px 60px rgba(35, 38, 36, 0.12);
  --glow: #FFFFFF;
  --glow-mix: 62%;
  --disc: rgba(35, 38, 36, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(58% 46% at 50% 36%, color-mix(in srgb, var(--glow) var(--glow-mix), transparent), transparent 72%),
    var(--bg);
}

/* ---- the lock-up, as in the site's header ---- */
.top { padding: 1.5rem 3rem 0; }
.lockup {
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: 1.3rem; letter-spacing: 0.12em;
  color: var(--ink); text-decoration: none;
}
.lockup img { height: 36px; width: auto; margin-right: 0.75rem; display: block; }
.lockup .dot { color: var(--orange); }
.lockup .sub { font-size: 0.6rem; letter-spacing: 0.3em; margin-left: 0.6rem; color: var(--muted); font-weight: 500; }

/* ---- the page: one card in the middle of the window ---- */
.stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.4rem 2.4rem;
}
.card {
  width: 100%; max-width: 31rem;
  padding: 2.4rem 2.4rem 2rem;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.picture {
  width: 136px; height: 136px; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--disc);
  overflow: hidden;
}
/* ⚠ THE PICTURES ARE THE ORRERY'S OWN 224px THUMBNAILS, and the subject fills
   well under half of one — they were framed for a 44px list tile. So the
   image is drawn LARGER than its box and the circle crops the empty margin.
   1.55 is as far as 224px stretches on a 2x screen before it goes soft; a
   picture made for this page (448px or more, subject filling the frame) wants
   this `scale` taken back to 1. */
.picture img { width: 112px; height: 112px; display: block; object-fit: contain; scale: 1.55; }
.eyebrow {
  font-weight: 500; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange);
}
.name {
  margin: 0.7rem 0 0.9rem;
  font-weight: 500; font-size: clamp(2rem, 7vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink);
}
.name em { font-style: normal; color: var(--hi); }
.blurb { max-width: 36ch; margin: 0 auto; font-size: 1rem; line-height: 1.6; }
.get {
  margin: 1.9rem 0 0.9rem;
  display: flex; align-items: center; gap: 0.9rem;
  font-weight: 500; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}
.get::before, .get::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.9rem; }
.badge { display: block; border-radius: 9px; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.badge img { height: 52px; width: auto; display: block; }
.badge:hover { transform: translateY(-2px); }
.badge:focus-visible, .lockup:focus-visible, .foot a:focus-visible { outline: 2px solid var(--hi); outline-offset: 4px; }
.hint { margin-top: 1.3rem; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }

/* ---- the small print under it ---- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem;
  padding: 0 1.4rem calc(1.6rem + env(safe-area-inset-bottom));
  font-size: 0.74rem; letter-spacing: 0.08em; color: var(--muted);
}
.foot a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.foot a:hover { color: var(--ink); }

/* ---- a document (an app's privacy policy), in the same frame ----
   The document arrives as plain h1 / h2 / p / ul and nothing here knows which
   app's it is. The first h1 is the document's title; the others are its
   sections. */
.doc {
  flex: 1; width: 100%; max-width: 46rem; margin: 0 auto;
  padding: 3.2rem 1.6rem 4rem;
  font-size: 1rem; line-height: 1.72;
}
.doc h1 {
  margin: 2.6rem 0 0.8rem;
  font-weight: 500; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--ink);
}
.doc .eyebrow + h1 {
  margin-top: 0.7rem;
  font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em;
}
.doc h2 { margin: 1.9rem 0 0.6rem; font-weight: 500; font-size: 1.12rem; line-height: 1.3; color: var(--ink); }
.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1rem 1.3rem; }
.doc li { margin-bottom: 0.5rem; }
.doc li > p { margin-bottom: 0.5rem; }
.doc strong { font-weight: 700; color: var(--ink); }
.doc a { color: inherit; }

@media (max-width: 900px) {
  .top { padding: 1.1rem 1.4rem 0; }
  .lockup { font-size: 1.1rem; }
  .lockup img { height: 26px; margin-right: 0.5rem; }
  .lockup .sub { font-size: 0.5rem; letter-spacing: 0.2em; margin-left: 0.42rem; }
}
@media (max-width: 480px) {
  .stage { padding: 1.4rem 1rem 1.8rem; }
  .card { padding: 1.9rem 1.3rem 1.6rem; }
  .picture { width: 116px; height: 116px; margin-bottom: 1.2rem; }
  .picture img { width: 96px; height: 96px; }
  .badge img { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .badge { transition: none; }
}
