/* Design E "Pro Pixel Tomato", same tokens as app/src/theme.ts */
:root {
  --bg: #1e120c;
  --panel: #2b1a12;
  --line: #4e2e1f;
  --text: #f6ede3;
  --muted: #dccbbe;
  --faint: #b4a194;
  --link: #ff5a45;
  --screen: #ecf0e4; /* the mascot GIF's own background */
  --accent: linear-gradient(90deg, #ff5a45, #f23a26);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 0 20px;
}
a { color: var(--link); }
.wrap { max-width: 860px; margin: 0 auto; }
header { display: flex; align-items: center; gap: 10px; padding: 18px 0; }
header img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; }
header .name { font-weight: 700; font-size: 19px; text-decoration: none; color: var(--text); }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 40px 0 56px; }
.screen {
  width: 240px; height: 240px; border-radius: 28px; background: var(--screen);
  box-shadow: 0 0 0 6px var(--panel), 0 0 0 7px var(--line), 0 18px 40px rgba(0, 0, 0, .35);
  display: grid; place-items: center; overflow: hidden;
}
.screen img { width: 100%; height: 100%; image-rendering: pixelated; }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.02em; }
h1 span { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; max-width: 34em; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; min-height: 54px;
  padding: 6px 18px; border-radius: 12px; background: #000; border: 1px solid var(--line);
  color: #fff; text-decoration: none; line-height: 1.2;
}
.badge small { font-size: 12px; color: var(--faint); }
.badge b { font-size: 18px; }
.badge[aria-disabled=true] { opacity: .55; pointer-events: none; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 56px; }
.features div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.features h2 { font-size: 17px; margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 16px; }

.doc { padding-bottom: 48px; }
.doc h1 { font-size: 32px; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
/* an unfilled [PLACEHOLDER] from docs/launch/*.md: must never reach the live site */
mark.todo { background: #ffd400; color: #000; padding: 0 3px; border-radius: 3px; font-weight: 700; }

@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
  .screen { width: 180px; height: 180px; order: -1; }
  .features { grid-template-columns: 1fr; }
}
