/* Shared base styles for standalone marketing/content pages (about,
   glossary term pages, public tabletop scenario pages, free tools).
   Extracted from index.html's own inline <style> block (2026-08-14,
   GK-203's SEO content push) rather than duplicated per-file, since
   this set of pages is expected to grow into the hundreds (one file
   per glossary term) - copy-pasting a ~150-line design system into
   every one of those would turn any future visual tweak into a
   hundreds-of-files find-and-replace. index.html and getting-started.html
   themselves are NOT migrated to this file - deliberately out of scope,
   they predate this and work fine as-is; this is for new pages only.
   Same brand palette as the app (app/css/main.css) and index.html,
   lighter-handed: more whitespace, simpler hierarchy, no dense UI chrome. */
:root {
  --bg: #0B0C0F;
  --bg-raise: #101216;
  --panel: #14161A;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #EAECEF;
  --dim: #9AA1AC;
  --accent: #D9A23C;
  --accent-strong: #E4B55E;
  --accent-glow: rgba(217, 162, 60, 0.12);
  --role-exec: #8a6bb0;
  --role-soc: #b5541f;
  --role-grc: #8a7a4a;
  --role-arch: #4a7a8a;
  --font-ui: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E") repeat,
    radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }

nav.top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; row-gap: 14px;
  padding: 22px 0;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: 0.2px; }
.logo .logo-text, .foot-brand .logo-text { color: var(--accent); }
.logo .logo-text span, .foot-brand .logo-text span { color: var(--text); }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; display: block; }
.nav-cta {
  font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 8px;
  background: var(--accent); color: #1A1305; text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent-strong); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 10px; }
.nav-cta-secondary {
  font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: border-color 0.15s;
}
.nav-cta-secondary:hover { border-color: var(--border-strong); }
.nav-link-plain {
  font-size: 13px; font-weight: 600; color: var(--dim); text-decoration: none;
  transition: color 0.15s;
}
.nav-link-plain:hover { color: var(--text); }

.hero { padding: 80px 0 60px; text-align: center; }
.hero-kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
h1 { font-size: 44px; font-weight: 800; line-height: 1.15; max-width: 780px; margin: 0 auto 20px; }
.hero-sub { font-size: 18px; color: var(--dim); max-width: 620px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; font-weight: 700; font-size: 14.5px; padding: 14px 26px;
  border-radius: 10px; text-decoration: none; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s,
              transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s ease;
}
.btn-primary { background: var(--accent); color: #1A1305; }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(217,162,60,0.25); }
.btn-primary:active { transform: translateY(0) scale(0.97); box-shadow: 0 4px 12px rgba(217,162,60,0.2); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0) scale(0.97); }
.btn:focus-visible, .nav-cta:focus-visible, .nav-cta-secondary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

section { padding: 64px 0; border-top: 1px solid var(--border); }
.section-kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
h2 { font-size: 30px; font-weight: 800; margin-bottom: 16px; max-width: 640px; }
.lede { font-size: 16px; color: var(--dim); max-width: 640px; margin-bottom: 40px; }

footer { border-top: 1px solid var(--border); padding: 40px 0; text-align: center; }
footer .foot-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
footer .foot-brand img { width: 18px; height: 18px; }
footer .foot-disclaimer { font-size: 11px; color: var(--dim); max-width: 640px; margin: 0 auto; line-height: 1.6; }

/* ---- Motion (GK-260): shared scroll-reveal/count-up utilities for
   every page using this stylesheet - see js/motion.js (repo root) for
   the plain-IntersectionObserver engine, no framework/animation
   library involved. Purely opt-in per element via these classes/
   attributes, so every existing page using this file today is
   completely unaffected until a page's own markup adds them. ---- */
.reveal-on-scroll {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--d, 0s);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
/* Above-the-fold content (a hero) is already in the viewport at load
   time, so IntersectionObserver never fires for it - pure CSS animation
   with a per-element delay instead, no JS involved at all. */
.reveal-load {
  opacity: 0; transform: translateY(16px);
  animation: revealLoadIn 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes revealLoadIn { to { opacity: 1; transform: translateY(0); } }
[data-countup] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll, .reveal-load { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .btn, .nav-cta, .nav-cta-secondary { transition: none !important; }
}

@media (max-width: 760px) {
  h1 { font-size: 30px; }
  .nav-actions { width: 100%; }
}
