/* AgePony — shared design system for guides/hub pages.
   Mirrors the tokens used by the hand-built index/support/privacy pages so
   new pages stay visually identical. Existing pages keep their inline styles;
   only new pages (guides, hub) link this file. */

:root {
  --bg: #0d0c0a;
  --bg-card: #16140f;
  --bg-card-2: #1a1813;
  --fg: #f5f0e8;
  --fg-muted: #8a857c;
  --fg-dim: #5a554d;
  --accent: #d4a574;
  --accent-bright: #e8be8f;
  --cool: #7ea892;
  --border: #2a2722;
  --border-soft: #1f1d18;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 165, 116, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(126, 168, 146, 0.05), transparent 60%),
    var(--bg);
  color: var(--fg);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 1;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* Top bar / nav */
header.top {
  padding: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

header.top a { color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
header.top a:hover { color: var(--accent); }

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.home-link::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cool);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cool);
}

nav.crumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  margin: 44px 0 0;
}
nav.crumbs a { color: var(--fg-muted); text-decoration: none; }
nav.crumbs a:hover { color: var(--accent); }
nav.crumbs .sep { margin: 0 8px; color: var(--fg-dim); }

/* Article header */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 56px 0 22px;
}

h1.title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 22px;
}
h1.title .ital { font-style: italic; color: var(--accent); }

.lede {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 24px);
  color: var(--fg-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Prose body */
.prose { padding: 40px 0 8px; }
.prose h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
  color: var(--fg);
  margin: 52px 0 18px;
  letter-spacing: -0.01em;
}
.prose h2 .ital { font-style: italic; color: var(--accent); }
.prose h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--fg);
  margin: 34px 0 12px;
}
.prose p {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 18px;
}
.prose p strong { color: var(--fg); font-weight: 500; }
.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 165, 116, 0.25);
  transition: border-color 0.2s;
}
.prose a:hover { border-bottom-color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 20px 0; padding-left: 22px; color: var(--fg-muted); }
.prose li { margin-bottom: 9px; font-size: 16px; }
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--bg-card-2);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--accent-bright);
}

/* Code block */
.codeblock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--fg);
  overflow-x: auto;
  margin: 8px 0 24px;
  position: relative;
  white-space: pre;
}
.codeblock::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.codeblock .c { color: var(--fg-dim); }
.codeblock .k { color: var(--cool); }

/* Callout */
.callout {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 8px 0 28px;
}
.callout .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.callout p { font-size: 14.5px; margin-bottom: 0; color: var(--fg-muted); }

/* CTA block (app download) */
.cta {
  margin: 48px 0 8px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, rgba(212,165,116,0.06), transparent 70%),
    var(--bg-card);
  text-align: center;
}
.cta .ctatitle {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  color: var(--fg);
  margin-bottom: 8px;
}
.cta .ctatitle .ital { font-style: italic; color: var(--accent); }
.cta p { font-size: 14.5px; color: var(--fg-muted); margin-bottom: 20px; }

/* Store badges */
.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-card-2);
  text-decoration: none;
  min-width: 168px;
}
.badge .sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.badge .lg {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--fg);
}
.badge.soon { opacity: 0.62; }
.badge.soon .lg { color: var(--fg-muted); }

/* Waitlist */
.waitlist-row { display: flex; gap: 10px; flex-wrap: wrap; max-width: 440px; margin: 0 auto; }
.waitlist-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 15px;
  color: var(--fg);
  font-family: 'Geist', sans-serif;
  font-size: 14.5px;
}
.waitlist-row input[type="email"]::placeholder { color: var(--fg-dim); }
.waitlist-row input[type="email"]:focus { outline: none; border-color: var(--accent); }
.waitlist-btn {
  background: var(--accent);
  color: #20180e;
  border: none;
  border-radius: 9px;
  padding: 12px 22px;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.2s;
}
.waitlist-btn:hover { background: var(--accent-bright); }
.waitlist-btn:disabled { opacity: 0.5; cursor: default; }
.waitlist-msg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  margin-top: 14px;
  min-height: 16px;
  color: var(--cool);
}
.waitlist-msg.err { color: #c98b6f; }

/* Guides hub cards */
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 32px 0 8px; }
.guide-card {
  display: block;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  transition: padding-left 0.2s;
}
.guide-card:hover { padding-left: 8px; }
.guide-card:last-child { border-bottom: none; }
.guide-card .gnum {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.guide-card h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--fg);
  margin-bottom: 8px;
}
.guide-card h3 .ital { font-style: italic; color: var(--accent); }
.guide-card p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.6; }

/* Footer */
footer {
  margin-top: 64px;
  padding: 44px 0 56px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.foot-left {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.45;
  max-width: 460px;
}
.foot-left a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 165, 116, 0.25);
}
.foot-left a:hover { border-bottom-color: var(--accent); }
.foot-right {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  text-align: right;
  line-height: 1.9;
}
.foot-right a { color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.foot-right a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .container { padding: 0 22px; }
  header.top { font-size: 11px; }
  .prose { padding: 28px 0 4px; }
  footer { flex-direction: column; align-items: flex-start; }
  .foot-right { text-align: left; }
  .waitlist-row input[type="email"] { min-width: 100%; }
  .waitlist-btn { width: 100%; }
}
