/* Marketing chrome — GALLERY WHITE (decision 2026-08-06, audition C):
   editorial white, oversized humanist type, one rust accent. Handoff cues
   (mono metadata, version labels, faint grid) appear INSIDE demonstrations,
   never across the page. Marketing pages are light-only by direction; the
   app keeps its own light/dark themes via tokens.css. Anything on two or
   more pages lives here so the pages can't drift. */

@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/lato-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('fonts/lato-900.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/plexmono-400.woff2') format('woff2'); }

:root {
  --bg: #FFFFFF; --text: #101418; --muted: #5F666D; --hair: #E8EAED; --accent: #C9451C;
  /* component vars shared with demo-hubs.js (switcher panel, grid cards, embed) */
  --panel: #FFFFFF; --panel2: #F7F8FA; --edge: #E8EAED; --edge2: #D6D9DD;
  --faint: #5F666D; --accent-soft: rgba(201, 69, 28, .08); --hover: #F4F5F6;
  --scrim: rgba(16, 20, 24, .4);
  --font-sans: 'Lato', system-ui, sans-serif; --font-mono: 'IBM Plex Mono', monospace;
  --grid-faint: rgba(16, 20, 24, .045);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans);
  line-height: 1.5; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; font-weight: 700; }
.skip:focus { left: 0; }
.mono { font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- nav ---------- */

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 22px clamp(20px, 6vw, 80px); position: relative; z-index: 45; background: var(--bg); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.05rem;
  color: var(--text); text-decoration: none; min-height: 44px; }
.mk { width: 22px; height: 22px; flex: none;
  background: url('assets/brand/handoff-mark.svg') no-repeat center/contain; }
.topbar nav { display: inline-flex; gap: clamp(14px, 2.6vw, 30px); align-items: center;
  font-size: .92rem; font-weight: 700; color: var(--muted); }
.topbar nav a.navlink { color: inherit; text-decoration: none; display: inline-flex;
  align-items: center; min-height: 44px; }
.topbar nav a.navlink:hover { color: var(--text); }
.topbar nav a.navlink.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.signin { color: var(--accent); text-decoration: none; font-weight: 700; display: inline-flex;
  align-items: center; min-height: 44px; white-space: nowrap; }
.menubtn { display: none; background: none; border: 1px solid var(--hair); border-radius: 10px;
  color: var(--text); font: inherit; font-weight: 700; font-size: .9rem; padding: 0 16px;
  min-height: 44px; min-width: 44px; cursor: pointer; }
.menubtn:hover, .menubtn[aria-expanded="true"] { border-color: var(--muted); }
.menupanel { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid var(--hair); padding: 8px 20px 18px; display: flex; flex-direction: column; }
.menupanel[hidden] { display: none; }
.menupanel a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: 1.05rem; font-weight: 700; }
.menupanel a:hover { background: var(--hover); }
.menupanel a.on { color: var(--accent); }
.menupanel .menupanel-cta { margin: 12px 12px 4px; background: var(--accent); color: #fff;
  justify-content: center; border-radius: 999px; }
.menuscrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); }
.menuscrim[hidden] { display: none; }
@media (max-width: 720px) {
  .topbar nav a.navlink { display: none; }
  .menubtn { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- shared type + controls ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--text);
  color: #fff; border: 0; cursor: pointer; border-radius: 999px; padding: 0 1.8rem; min-height: 52px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.btn.accent, .btn.btn-primary { background: var(--accent); }
.btn.btn-secondary { background: transparent; color: var(--text); border: 2px solid var(--text); }
.quietlink { font-weight: 700; color: var(--text); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px; background: none; cursor: pointer; font: inherit; }
.eyebrow { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); }
.pagehead { max-width: 1080px; margin: 0 auto; padding: clamp(40px, 8vh, 90px) clamp(20px, 6vw, 80px) 0;
  width: 100%; }
.pagehead h1 { font-weight: 900; letter-spacing: -.03em; line-height: 1.02; margin: 10px 0 0;
  font-size: clamp(2.2rem, 5.6vw, 4rem); }
.pagehead h1 .a { color: var(--accent); }
.pagehead .deck { font-size: clamp(1rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 56ch;
  margin: 22px 0 0; line-height: 1.55; }
.sect { max-width: 1080px; margin: 0 auto; padding: clamp(44px, 8vh, 88px) clamp(20px, 6vw, 80px) 0;
  width: 100%; }
.sect > h2 { font-weight: 900; letter-spacing: -.025em; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 6px 0 8px; }
.sect > .sub { color: var(--muted); max-width: 58ch; margin: 0 0 26px; font-size: 1rem; }
.hairtop { border-top: 2px solid var(--text); padding-top: 16px; }

/* ---------- shared cards (starter grid on home + product) ---------- */

.cellgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.cell { background: var(--bg); border: 1px solid var(--hair); border-radius: 14px; padding: 20px; }
.cell b { display: block; font-size: 1rem; font-weight: 900; margin-bottom: 5px; }
.cell p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- footer ---------- */

footer.sitefoot { border-top: 1px solid var(--hair); margin-top: clamp(50px, 9vh, 100px);
  padding: 26px 20px 24px; text-align: center; font-size: .85rem; color: var(--muted); }
.footnav { display: flex; gap: 8px 24px; justify-content: center; flex-wrap: wrap; font-weight: 700; margin-bottom: 12px; }
.footnav a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footnav a:hover { color: var(--text); }
.footbrand { font-weight: 700; font-size: .78rem; }
.ocrah-credit { display: inline-block; width: 2.24em; height: .9em; vertical-align: -0.13em;
  background: currentColor;
  -webkit-mask: url('assets/brand/ocrah-credit.svg') no-repeat center / contain;
  mask: url('assets/brand/ocrah-credit.svg') no-repeat center / contain; }
