/* TeachReplay promo site — cozy pixel-art feel, low saturation, warm. */

:root {
  --bg: #f7f1e5;
  --card: #fffaf0;
  --ink: #4a3b2a;
  --ink-soft: #7a6a55;
  --line: #d9c9ae;
  --accent: #c87941;
  --accent-deep: #a35c2c;
  --ok: #7a9c6b;
  --shadow: 3px 3px 0 rgba(74, 59, 42, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    repeating-linear-gradient(0deg, rgba(74, 59, 42, 0.025) 0 1px, transparent 1px 24px),
    var(--bg);
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  line-height: 1.55;
}

[id] { scroll-margin-top: 56px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 40px 20px 48px; }

/* pixel corners on cards/images */
.card, .tile, .hero-img, .demo-gif, .terminal {
  image-rendering: pixelated;
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: var(--card);
}

/* ── sticky nav ───────────────────────────────────── */
.sitenav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 3px solid var(--line);
}
.sitenav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
}
.sitenav-inner a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.sitenav-inner a:hover { color: var(--accent-deep); }
.sitenav-gh { margin-left: auto; color: var(--accent-deep) !important; }

/* ── hero ─────────────────────────────────────────── */
.hero { text-align: center; padding-bottom: 8px; }
.hero-img { width: 100%; height: auto; margin-bottom: 22px; }
h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 rgba(200, 121, 65, 0.28);
}
.tagline { font-size: 18px; margin: 8px 0 14px; color: var(--accent-deep); }
.lede { max-width: 640px; margin: 0 auto 22px; color: var(--ink-soft); font-size: 14.5px; }

.buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.06s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(74, 59, 42, 0.18); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(74, 59, 42, 0.18); }
.btn-primary { background: var(--accent); color: #fff7ec; }

/* ── sections ─────────────────────────────────────── */
section { margin-top: 40px; }
h2 {
  font-size: 20px;
  letter-spacing: 1px;
  border-bottom: 3px dashed var(--line);
  padding-bottom: 8px;
  margin-bottom: 18px;
}
h3 { margin: 0 0 6px; font-size: 15px; }
p { margin: 0; }
a { color: var(--accent-deep); }
.section-intro { color: var(--ink-soft); font-size: 13px; margin-bottom: 14px; }

/* ── demo ─────────────────────────────────────────── */
.demo { padding: 14px; text-align: center; }
.demo-gif { width: 100%; height: auto; border: none; box-shadow: none; border-radius: 6px; }
.demo-caption { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }

/* ── workflow ─────────────────────────────────────── */
.flow {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  align-items: center;
  padding: 0;
  margin: 0;
}
.flow li { display: flex; flex-direction: column; align-items: center; }
.flow li b {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.flow li span { font-size: 11px; color: var(--ink-soft); max-width: 120px; text-align: center; margin-top: 6px; }
.flow li.arrow { color: var(--accent); font-weight: 700; padding-bottom: 18px; }

/* ── highlights / packages / integrations ──────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tile { padding: 14px 16px; }
.tile p { font-size: 12.5px; color: var(--ink-soft); }
.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--bg);
  font-size: 14px;
  color: var(--accent-deep);
}

.rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
}
.row-note { color: var(--ink-soft); font-size: 12.5px; }
.dot { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }
.pkg-mark { width: 12px; flex: none; text-align: center; color: var(--ink-soft); font-size: 13px; }

/* ── quick start terminal ─────────────────────────── */
.terminal { overflow: hidden; }
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--line); }
.term-dot:nth-child(1) { background: var(--accent); }
.term-dot:nth-child(2) { background: var(--ok); }
.terminal-title { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.terminal-body {
  margin: 0;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.cmt { color: var(--ink-soft); }

/* ── limitations ──────────────────────────────────── */
.limits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.limits li { position: relative; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.limits li::before { content: "·"; position: absolute; left: 2px; top: -2px; color: var(--accent); font-weight: 700; font-size: 18px; }

/* ── footer ───────────────────────────────────────── */
footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 3px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
footer a { text-decoration: none; }
footer .sep { margin: 0 8px; }

@media (max-width: 560px) {
  .flow li.arrow { display: none; }
  .flow { justify-content: center; }
  .wrap { padding-top: 24px; }
  .sitenav-inner { justify-content: flex-start; }
  .terminal-body { font-size: 12px; }
}
