/* Gladsay design system "dark + gold": the ONE shared token sheet (source of truth: .claude/skills/gladsay-design/SKILL.md).
   Dark is the default. Served same-origin (CSP style-src 'self'); system font stack, no font CDN.
   Holds tokens plus the shared primitives every screen uses (base, wrap, nav, buttons, chip, form field, focus ring).
   Screen-specific rules live in the screen's own sheet (landing: site-9.css). */
:root {
  --bg:#0c0b0a; --panel:#141311; --panel-2:#1a1917; --line:#2a2824;
  --ink:#f5f2ea; --muted:#a09a8c; --dim:#6f6a5f;
  --gold:#f5b942; --gold-d:#d99a1f; --gold-ink:#1a1300;
  --gold-soft-bg:#1d1708; --gold-soft-line:#4a3a12;
  --ok:#7fd1a3; --ok-line:#1f3a2c; --danger:#ff8a7a;
  /* --line is 1.3:1 on --bg: fine for dividers, too faint for the edge of a control (WCAG 1.4.11 needs 3:1).
     --control-line = --dim, 3.6:1 on --bg and 3.2:1 on --panel-2: use it for input and ghost-button borders. */
  --control-line:var(--dim);
  /* Design pass F14: the outer edge of a card or app panel. --line (1.2-1.3:1) nearly vanishes on phones; --panel-line is 1.7:1 on --bg and
     1.6:1 on --panel: still a thin quiet edge, no shadow. Dividers inside a card stay on --line. */
  --panel-line:#3a3731;
  --font:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color-scheme:dark;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; font:16px/1.55 var(--font); color:var(--ink); background:var(--bg); -webkit-font-smoothing:antialiased; }
a { color:var(--ink); }
.wrap { max-width:1080px; margin:0 auto; padding:0 24px; }

/* Focus: 2px --ink ring, 2px offset (17.6:1 on --bg). */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible, .tablewrap:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }

/* Nav: brand left, links right, bottom rule. */
.nav { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); }
.brand { display:inline-flex; align-items:center; gap:8px; min-height:44px; font-size:18px; font-weight:700; letter-spacing:-.02em; color:var(--ink); text-decoration:none; }
.brand .mark { width:24px; height:24px; flex:none; }
.mark .q { fill:var(--gold); }
.mark .s { fill:none; stroke:var(--gold); stroke-width:8; stroke-linecap:round; }
.nav-links, .nav-menu { display:flex; align-items:center; gap:8px; }
.nav-links a:not(.btn) { display:inline-flex; align-items:center; min-height:44px; padding:0 8px; color:var(--muted); text-decoration:none; font-size:14px; }
.nav-links a:not(.btn):hover { color:var(--ink); }
.nav-links .btn { margin-left:8px; }

/* Buttons: one gold primary per view; everything else is a ghost. */
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:11px 18px; border:1px solid var(--gold); border-radius:8px; background:var(--gold); color:var(--gold-ink); font:inherit; font-size:15px; font-weight:650; text-decoration:none; cursor:pointer; }
.btn:hover { background:var(--gold-d); border-color:var(--gold-d); }
.btn[disabled] { opacity:.6; cursor:wait; }
.btn.ghost { background:transparent; color:var(--ink); border-color:var(--control-line); }
.btn.ghost:hover { background:var(--panel-2); border-color:var(--muted); }

/* Chip: neutral by default; the key word inside <b> is gold. */
.chip { display:inline-block; font-size:13px; color:var(--muted); border:1px solid var(--line); border-radius:99px; padding:5px 12px; }
.chip b { color:var(--gold); font-weight:600; }

/* Form field: 16px text (no iOS zoom), visible label above. */
.field-label { display:block; font-size:14px; color:var(--muted); margin:0 0 6px; }
.field { min-height:44px; padding:11px 14px; border:1px solid var(--control-line); border-radius:8px; background:var(--panel-2); color:var(--ink); font:inherit; font-size:16px; }
.field::placeholder { color:var(--muted); opacity:1; }

.sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip { position:absolute; left:8px; top:-80px; z-index:10; padding:10px 16px; background:var(--panel); color:var(--ink); border:1px solid var(--control-line); border-radius:8px; font-weight:600; }
.skip:focus { top:8px; }

@media (max-width:700px) {
  .wrap { padding:0 16px; }
  /* Phones: brand on row one, the section links on a full-width second row, then the waitlist button.
     No `order`: the visual order is the DOM order, so keyboard focus never jumps back up (design pass F9). Nothing hidden, no script. */
  .nav { flex-wrap:wrap; row-gap:4px; }
  .nav-links { display:contents; }
  .nav-menu { flex:1 0 100%; margin:0 -8px; }
  .nav-links .btn { margin-left:0; flex:1 0 100%; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
