/* Spin Shop's public pages (the home page and the privacy policy): the shop's
   own look (index.html: VREE's live tokens, the system font), no web fonts,
   no images to wait for, nothing from other sites. */
:root {
  color-scheme: dark;
  --ink: #161a1d;
  --tile: #1d2126;
  --grey: #2c2c31;
  --line: rgba(255, 255, 255, 0.06);
  --band: rgba(255, 255, 255, 0.12);
  --muted: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.5);
  --cta: #2f5bf9;
  --link: #8ea4ff; /* the blue, lightened to read as text on the dark (7:1) */
  --ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font: 16px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: #b3c2ff; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---------- header ---------- */
.top {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 16px;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.wordmark svg { width: 26px; height: 26px; display: block; flex: none; }
.wordmark span { font: 700 18px/1 var(--ui); letter-spacing: -0.01em; }
.top nav a { color: var(--muted); font-size: 15px; text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: #fff; }

main { max-width: 960px; margin: 0 auto; padding: 24px 16px 56px; }

/* ---------- home ---------- */
.hero {
  padding: 32px 20px 36px;
  text-align: center;
  background: var(--tile);
  border-radius: 20px;
}
.pill {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(47, 91, 249, 0.16);
  color: #c9d3ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font: 800 clamp(32px, 7vw, 48px)/1.06 var(--ui);
  letter-spacing: -0.025em;
}
.lede { margin: 16px auto 0; max-width: 46ch; color: var(--muted); font-size: 17px; }
.ring { display: block; width: 188px; height: 188px; margin: 28px auto 0; }

.section { margin-top: 40px; }
.section > h2 { margin: 0 0 16px; font: 800 26px/1.15 var(--ui); letter-spacing: -0.02em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; padding: 20px; background: var(--tile); border-radius: 16px; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.steps h3, .cards h2 { margin: 0 0 6px; font: 700 18px/1.3 var(--ui); }
.steps p, .cards p { margin: 0; color: var(--muted); }

.cards { display: grid; gap: 12px; }
.cards article { padding: 20px; background: var(--tile); border-radius: 16px; }

@media (min-width: 720px) {
  main { padding-top: 32px; }
  .hero { padding: 48px 32px 44px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- privacy policy ---------- */
.doc { max-width: 720px; margin: 0 auto; }
.doc h1 { margin: 8px 0 4px; font: 800 clamp(30px, 6vw, 40px)/1.1 var(--ui); letter-spacing: -0.025em; }
.doc .date { margin: 0 0 24px; color: var(--faint); font-size: 15px; }
.doc h2 { margin: 40px 0 10px; font: 800 22px/1.25 var(--ui); letter-spacing: -0.015em; scroll-margin-top: 16px; }
.doc h3 { margin: 24px 0 6px; font: 700 17px/1.35 var(--ui); }
.doc p { margin: 0 0 12px; color: var(--muted); }
.doc ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
.doc li { margin-bottom: 6px; }
.doc strong { color: #fff; font-weight: 600; }
.doc .short { margin: 0 0 8px; padding: 20px 20px 8px; background: var(--tile); border-radius: 16px; }
.doc .short h2 { margin-top: 0; }
.doc .toc { columns: 2 200px; column-gap: 24px; padding-left: 20px; }

/* ---------- footer ---------- */
.foot {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--faint);
  font-size: 14px;
}
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }
