/* Zoupa — palette mirrored from Tumble/App/DesignSystem.swift.
   The game is dark-only; the site commits to the same single look.
   Headings use ui-rounded (SF Rounded on Apple devices) for the game's
   friendly voice; body text stays plain system. */

:root {
  --bg: #14151D;
  --card: #1E2029;
  --chip: #262935;
  --wall: #373B4D;
  --line: rgba(67, 72, 97, 0.55);      /* wallStroke 434861 */
  --ink: #F5EFE6;
  --subtle: #8A8FA3;
  --accent: #2EC4B6;                    /* teal */
  --coral: #F2617A;
  --amber: #FFB454;
  --violet: #9B7EDE;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h1, h2, h3 {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* ------------------------------------------------------------- header ---- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* The share-card lockup (ShareCard.swift: Mascot 40 + ZOUPA title 28,
   tracking 6 ≈ 0.21em), kept at the same 0.7 text:mascot ratio. */
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.wordmark svg { display: block; width: 40px; height: 40px; }
.wordmark span {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.site-header nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-header nav a { color: var(--subtle); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

/* --------------------------------------------------------------- index ---- */

.hero { margin: 3.5rem 0 3rem; }

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  margin-bottom: 1rem;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--subtle);
  max-width: 34rem;
}
.hero .lede strong { color: var(--ink); font-weight: 600; }

.soon {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.5rem 1rem;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--ink);
}
a.beta {
  color: var(--accent);
  border-color: rgba(46, 196, 182, 0.5);
  text-decoration: none;
  margin-left: 0.35rem;
}
a.beta:hover { color: var(--ink); border-color: var(--accent); }
/* .soon's display:inline-block would override the UA [hidden] rule */
a.beta[hidden] { display: none; }

.board-figure {
  /* The image's lower ~15% is the board's soft under-glow fading to the
     page background; the negative bottom margin cancels the following
     section's collapsed top margin so that glow area IS the bottom gap
     (keeps the visible frame's spacing symmetric). */
  margin: 3rem auto -2rem;
  display: flex;
  justify-content: center;
}
/* The screenshot's margins are the app background = the site background,
   so the tilted rectangle blends in seamlessly (no shadow — it would
   reveal the crop edges). */
.board-figure img {
  transform: rotate(-4deg);
  max-width: 100%;
  height: auto;
}

.features { display: grid; gap: 1rem; margin: 3rem 0; }

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
}

.feature h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.feature p { color: var(--subtle); }
.feature p strong { color: var(--ink); font-weight: 600; }

.privacy-note {
  margin: 3rem 0;
  padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--accent);
  background: var(--chip);
  border-radius: 0 16px 16px 0;
}
.privacy-note h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.privacy-note p { color: var(--subtle); }

/* --------------------------------------------------------------- prose ---- */

.prose h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.prose .effective { color: var(--subtle); font-size: 0.95rem; margin-bottom: 2rem; }
.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.prose p, .prose ul { margin-bottom: 1rem; }
.prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--accent); }

/* -------------------------------------------------------------- footer ---- */

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-footer a { color: var(--subtle); }
.site-footer a:hover { color: var(--ink); }
.site-footer .spacer { flex: 1; }

/* --------------------------------------------------------------- press ---- */

.kit-cta { margin: 0 0 2.5rem; }
.soon.dl { margin-top: 0; text-decoration: none; }
.soon.dl:hover { border-color: var(--accent); color: var(--accent); }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}
.facts dt { color: var(--subtle); }
.facts dd { color: var(--ink); }
@media (max-width: 30rem) {
  /* two columns collapse into label-over-value rather than squeezing */
  .facts { grid-template-columns: 1fr; gap: 0 0; }
  .facts dt { margin-top: 0.75rem; font-size: 0.9rem; }
}

/* `.prose ul` (0,0,1,1) out-specifies a bare `.shots`, so its 1.4rem indent
   would survive and squeeze the grid to a single column on a phone. */
.prose ul.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 1rem;
  padding-left: 0;
  list-style: none;
}
.shots li { margin: 0; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.shots a:hover img { border-color: var(--accent); }

.prose code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: var(--chip);
  border-radius: 5px;
  color: var(--ink);
}

.preview {
  display: block;
  width: 100%;
  max-width: 18rem;
  height: auto;
  margin: 1rem 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
}
