/* Sydes landing — identity v2 (DESIGN.md §SYDES identity v2, D1).
   Ink/paper/white + volt only. 3px borders, hard offset shadows, square
   corners (pills excepted). Bricolage Grotesque. */

:root {
  --ink: #15140F;
  --paper: #F4F3EE;
  --white: #FFFFFF;
  --volt: #D9FF3B;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
  overflow-x: hidden;
}

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.topbar-mark {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 20px; letter-spacing: 0.02em;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }

.lang-pill {
  font-family: inherit; font-weight: 600; font-size: 14px;
  border: 3px solid var(--ink); border-radius: 999px;
  background: var(--white); color: var(--ink);
  padding: 4px 14px; cursor: pointer;
}
.lang-pill:hover { background: var(--volt); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 800; color: var(--paper); background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(21, 20, 15, 0.25);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(21,20,15,.3); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(21,20,15,.3); }
.btn-small { font-size: 15px; padding: 8px 18px; box-shadow: 4px 4px 0 rgba(21,20,15,.25); }
.btn-big { font-size: clamp(18px, 2.4vw, 22px); padding: 16px 34px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 10vw, 120px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 100px);
  text-align: center;
  overflow: hidden;
}
/* Art frames the text column (UX v2 #1) — full-strength ink, but positioned
   in the margins. On narrow screens the pitch goes fainter and the corner
   pieces shrink so text never fights a drawing. */
.hero-art { position: absolute; inset: 0; pointer-events: none; }
@media (max-width: 860px) {
  .hero-art .par[data-depth="1"] { opacity: 0.25; }
  .hero-art .par[data-depth="2"] { width: 76px !important; }
  .hero-art .par[data-depth="3"] { width: 70px !important; opacity: 0.85; }
}
.par { position: absolute; will-change: transform; }

.hero-kicker, .kicker {
  font-weight: 600; font-size: 14px; letter-spacing: 0.18em;
}
.hero-kicker, .hero .wordmark, .hero-line, .hero-sub, .hero-actions { position: relative; z-index: 2; }
.hero-kicker { margin-bottom: 8px; }

.wordmark {
  position: relative;
  font-weight: 800;
  font-size: clamp(72px, 16vw, 190px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: inline-block;
}
.wm-fill { position: relative; z-index: 1; }
.wm-outline {
  position: absolute; left: 0.045em; top: 0.055em; z-index: 0;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
  text-stroke: 2.5px var(--ink);
}

.hero-line {
  font-weight: 800;
  font-size: clamp(24px, 4.4vw, 44px);
  line-height: 1.1;
  margin-top: clamp(18px, 3vw, 30px);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 520px; margin: 14px auto 0;
}
.hero-actions {
  margin-top: clamp(24px, 4vw, 40px);
  display: flex; align-items: center; justify-content: center;
  gap: 26px; flex-wrap: wrap;
}

.sticker {
  display: inline-block;
  background: var(--volt); color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800; font-size: 15px;
  padding: 8px 14px;
  transform: rotate(-4deg);
  transition: transform 150ms ease;
}
.sticker:hover { transform: rotate(2deg) scale(1.04); }

/* ---------- ticker ---------- */
.ticker {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding: 10px 0;
  font-weight: 800; font-size: 16px; letter-spacing: 0.08em;
  color: var(--volt);
  animation: ticker 28s linear infinite;
}
.ticker-track span { padding: 0 18px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- features ---------- */
.feature {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px);
  max-width: 1080px; margin: 0 auto;
  flex-wrap: wrap;
}
.feature.flip { flex-direction: row-reverse; }
.feature-copy { flex: 1 1 320px; max-width: 460px; }
.feature-art { flex: 0 1 340px; display: flex; justify-content: center; }

.kicker { margin-bottom: 10px; }
.feature h2 {
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.08;
  margin-bottom: 14px;
}
.feature p:not(.kicker) { font-size: clamp(16px, 1.9vw, 18px); }

.ill {
  width: 100%; max-width: 300px;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 18px;
}

/* ---------- game card (the hero card — volt shadow is reserved for it) ---------- */
.gamecard {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--volt), 8px 8px 0 3px var(--ink);
  padding: 22px 24px;
  min-width: 280px;
}
.gamecard-top { font-weight: 800; font-size: 14px; letter-spacing: 0.1em; }
.gamecard-mid { font-size: 15px; margin-top: 10px; }
.gamecard-big {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 56px);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  margin: 6px 0 16px;
}
.gamecard-big span:last-child { font-size: 0.4em; font-weight: 600; }
.gamecard-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 3px solid var(--ink); border-radius: 999px;
  background: var(--white);
  font-size: 14px; padding: 4px 12px;
}
.pill b { font-weight: 800; }
.pill-paid { background: var(--volt); }

/* ---------- closer + footer ---------- */
.closer {
  text-align: center;
  padding: clamp(56px, 9vw, 110px) 20px;
  border-top: 3px solid var(--ink);
  background: var(--white);
}
.closer h2 {
  font-weight: 800;
  font-size: clamp(30px, 5vw, 52px);
  margin-bottom: 26px;
}
.closer-note { margin-top: 16px; font-size: 15px; }

footer {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
  padding: 26px 20px;
  border-top: 3px solid var(--ink);
  background: var(--paper);
  font-size: 14px;
}
footer nav { display: flex; gap: 14px; }
footer a { color: var(--ink); font-weight: 600; }

/* ---------- reveals / motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .par { transform: none !important; }
  .btn, .sticker { transition: none; }
}

@media (max-width: 640px) {
  .hero-art { opacity: 0.3; }
  .feature { text-align: left; }
}

/* ---------- UX v2 additions (2026-08-25) ---------- */

/* fine caption under a feature paragraph */
.finecap { margin-top: 10px; font-size: 13.5px; color: #6b675c; }

/* the lineup flow: chat → paste → game, steps light up in sequence */
.flow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.flow-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 3px solid var(--ink); background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px 10px 10px; width: 130px;
  opacity: 0.35; transform: translateY(4px);
  transition: opacity 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.flow-step.lit { opacity: 1; transform: translateY(0); box-shadow: 5px 5px 0 var(--volt), 5px 5px 0 3px var(--ink); }
.flow-ill { width: 84px; height: 70px; }
.flow-lbl { font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }
.flow-arrow { font-size: 24px; font-weight: 800; }
@media (max-width: 640px) {
  .flow { gap: 6px; }
  .flow-step { width: 30%; padding: 10px 6px 8px; }
  .flow-ill { width: 64px; height: 54px; }
  .flow-lbl { font-size: 11px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-step { opacity: 1; transform: none; }
}

/* money board: pills flip to paid, the outstanding amount counts down */
.pill .pstate { transition: none; }
.pill { transition: background 250ms ease, border-color 250ms ease; }
.gamecard-due { margin-top: 12px; font-size: 15px; font-weight: 600; }
.gamecard-due b { font-weight: 800; font-variant-numeric: tabular-nums; }
