/* pages.css — content pages (About, How it works, What it catches, Receipts).
   Links alongside style.css. Leans on --accent (purple); avoids --accent-2 (cyan).
   style.css already ships .page-glow + --header-h; this file offsets for the fixed
   header, defines --mono (absent in style.css), and gives the prose real presence. */

:root {
  --ok: #22c55e;
  --warn: #d9a441;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --line: rgba(255, 255, 255, .07);
  --line-accent: rgba(124, 58, 237, .28);
}

/* ---- header nav links ---- */
.nav-links { display: flex; gap: clamp(10px, 1.6vw, 22px); align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  letter-spacing: .01em; transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: var(--accent);
}

/* ---- layout: OFFSET FOR THE FIXED HEADER, sit above the glow ---- */
.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-h, 80px) + clamp(40px, 6vw, 64px)) 24px clamp(80px, 10vw, 120px);
}

/* ---- hero block ---- */
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 1.6px;
  font-size: 12px; color: var(--accent); margin: 0 0 18px;
}
.page-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: .7; }
.page h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.2rem);
  line-height: 1.07; font-weight: 800; letter-spacing: -.02em;
  margin: 0 0 22px; color: #f4f2fb;
}
.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.6;
  color: rgba(255, 255, 255, .82); margin: 0 0 8px; max-width: 64ch;
}

/* ---- prose ---- */
.page h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem); line-height: 1.2; font-weight: 700;
  letter-spacing: -.01em; margin: 2.6em 0 .7em; color: #f0eef9;
  position: relative; padding-left: 16px;
}
.page h2::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(124, 58, 237, .25));
}
.page h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 .35em; color: #ece9f6; }
.page p { line-height: 1.72; margin: 0 0 1.1em; color: var(--text); }
.page p.muted { color: var(--muted); }
.page strong { color: #fff; font-weight: 600; }
.page a.inline { color: var(--accent); text-underline-offset: 3px; }
.page code {
  font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px;
  background: rgba(124, 58, 237, .12); border: 1px solid rgba(124, 58, 237, .2); color: #cbb8f5;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 3em 0; }

/* ---- terminal: the signature surface (matches homepage) ---- */
.terminal {
  background: #0a0a0f; border: 1px solid var(--line-accent); border-radius: 14px;
  padding: 20px 22px; font-family: var(--mono); font-size: clamp(12px, 1.15vw, 13.5px);
  line-height: 1.7; color: var(--text); white-space: pre; overflow-x: auto; margin: 1.6em 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(34, 211, 238, .05);
}
.terminal .dim { color: var(--muted); }
.terminal .ok { color: var(--ok); }
.terminal .bad { color: #f08a8a; }
.terminal .warn { color: var(--warn); }
.terminal .key { color: #b794f6; }

.q { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin: .2em 0 .6em; }

/* ---- cards ---- */
.card {
  background: linear-gradient(180deg, rgba(18, 18, 26, .95), rgba(18, 18, 26, .9));
  border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; margin: 16px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-accent); }
.card h3 { margin-bottom: .3em; }
.feltby {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--accent);
  text-transform: uppercase; margin: 0 0 10px;
}

/* ---- status pills ---- */
.pill {
  display: inline-block; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 8px;
}
.pill-live { color: var(--ok); background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .3); }
.pill-building { color: var(--warn); background: rgba(217, 164, 65, .12); border: 1px solid rgba(217, 164, 65, .3); }
.pill-roadmap { color: var(--muted); background: rgba(169, 169, 191, .1); border: 1px solid rgba(169, 169, 191, .25); }

.status-head { display: flex; align-items: baseline; gap: 12px; margin: 2.4em 0 .4em; }
.status-head h2 { margin: 0; }

.receipt { margin: 1.5em 0; }
.receipt h3 { display: inline; }
.receipt .uses { color: var(--muted); font-size: .92rem; }

/* ---- grammar strip ---- */
.grammar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 1.4em 0; }
.grammar div {
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  background: rgba(255, 255, 255, .015); transition: border-color .2s ease;
}
.grammar div:hover { border-color: var(--line-accent); }
.grammar b { font-family: var(--mono); color: var(--accent); font-size: .82rem; font-weight: 600; }
.grammar span { display: block; color: var(--muted); font-size: .85rem; margin-top: 3px; }

/* ---- callout ---- */
.callout {
  border-left: 3px solid var(--accent); padding: 14px 0 14px 18px; margin: 2em 0;
  background: linear-gradient(90deg, rgba(124, 58, 237, .08), transparent 80%);
  border-radius: 0 8px 8px 0; font-size: 1.08rem; line-height: 1.6; color: var(--text);
}

.contact {
  background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(18, 18, 26, .9));
  border: 1px solid var(--line-accent); border-radius: 16px; padding: 26px; margin-top: 2.4em;
}
.contact a { color: var(--accent); font-family: var(--mono); }

@media (max-width: 720px) { .nav-links { display: none; } }
