/* Chip Runner website. Same "Emerald" look as the app. No scripts, no web fonts, no third-party requests. */
:root {
  --bg: #16201c;
  --surface: #202c27;
  --surface2: #2a3933;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7f5;
  --muted: #a9b7b0;
  --accent: #2fd08a;
  --accent-ink: #04140d;
  --gold: #e7bc52;
  --radius: 20px;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body {
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #6ce6ad; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.brand img { border-radius: 22.37%; display: block; }
.top nav { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 16px; font: inherit; font-weight: 750; text-decoration: none; border: 0; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #55dca0; color: var(--accent-ink); }
.btn.ghost { background: var(--surface2); color: var(--text); }
.btn.ghost:hover { background: #33453d; color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* Hero */
.hero { text-align: center; padding-top: 36px; padding-bottom: 30px; }
.logo { width: 120px; height: 120px; border-radius: 22.37%; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); display: block; margin: 0 auto; }
h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; margin-top: 20px; }
.lead { font-size: clamp(18px, 3.2vw, 22px); color: var(--muted); max-width: 580px; margin: 14px auto 0; line-height: 1.45; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Screenshot strip */
.shots { list-style: none; padding: 8px 20px 24px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.shots li { flex: none; scroll-snap-align: center; }
.shots img { display: block; height: min(62vh, 540px); width: auto; border-radius: 26px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4); }
/* Centre the row when it fits, but never trap the first screenshot off-screen when it doesn't. */
.shots li:first-child { margin-left: auto; }
.shots li:last-child { margin-right: auto; }

/* Sections */
section.block { padding: 34px 0; }
h2 { font-size: clamp(26px, 4.5vw, 34px); letter-spacing: -0.02em; line-height: 1.15; font-weight: 800; }
.sub { color: var(--muted); margin-top: 8px; max-width: 620px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 19px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; line-height: 1.55; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.callout p { color: var(--muted); max-width: 640px; margin: 8px auto 0; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
footer nav a { color: var(--text); text-decoration: none; }
footer nav a:hover { color: var(--accent); }

/* Text pages (privacy, terms, support) */
.doc { padding-top: 28px; padding-bottom: 20px; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); margin-top: 0; }
.doc h2 { font-size: 24px; margin-top: 38px; }
.doc h3 { font-size: 19px; margin-top: 26px; letter-spacing: -0.01em; }
.doc h4 { font-size: 17px; margin-top: 20px; }
.doc p, .doc li { color: #d6e0db; margin-top: 10px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
.doc .tabs { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.doc section + section { margin-top: 56px; padding-top: 6px; border-top: 1px solid var(--line); }
.faq { margin-top: 18px; display: grid; gap: 12px; }
.faq .card p { color: #d6e0db; }
.doc .card h3 { margin-top: 0; }

/* Contact form */
form { margin-top: 16px; display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 650; font-size: 15px; }
label small { color: var(--muted); font-weight: 500; }
input, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
form .btn { justify-self: start; }
.center { text-align: center; }
.thanks { padding-top: 64px; padding-bottom: 40px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
