/* WYZORD inner pages — the landing "Stream" theme over the page content classes in style.css.
   Load order: style.css (content), landing.css (base, nav, footer), theme.css (this file). */

:root, html[data-theme] {
  --paper: var(--bg);
  --paper-2: rgba(255, 255, 255, 0.06);
  --ink: #f4f4f6;
  --ink-2: #c4c4cc;
  --muted: #a3a3ae;
  --rule: var(--line);
  --surface: rgba(12, 12, 17, 0.78);
  --surface-2: rgba(255, 255, 255, 0.03);
  --seat: #24242c;
  --placeholder: #6f6f7b;
  --topbar-bg: rgba(5, 5, 7, 0.72);
  --overlay-bg: rgba(5, 5, 7, 0.9);
  --band: rgba(12, 12, 17, 0.78);
  --band-ink: #f4f4f6;
  --err: #f87171;
  --ok: #4ade80;
  --on-accent: #0d0920;
  --display: var(--sans);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  color-scheme: dark;
}

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
main { position: relative; z-index: 2; }

/* Type: Geist, light weights, tight tracking (as on the landing page) */
.page-head h1, .section-head h2, .band h2, .closer h2, .entry-word, .proof figcaption strong, .result h3, .benefit-col h3 {
  font-family: var(--sans); font-weight: 400; font-stretch: normal; letter-spacing: -0.035em; color: var(--ink);
}
.page-head h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.02; }
.section-head h2, .band h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.entry-word { font-size: clamp(4.5rem, 9vw, 8rem); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; }
.steps h3, .chapters strong, .doc h2 { font-family: var(--sans); font-weight: 500; font-stretch: normal; letter-spacing: -0.02em; }
.doc h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }

/* Page head clears the fixed nav; a mono kicker line under the title */
.page-head { padding: calc(4.25rem + clamp(3rem, 7vw, 5.5rem)) var(--gutter) 2.5rem; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 40rem; }

/* Sections: same width and gutter as before, faint hairlines */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); border-top: 1px solid var(--line); }
.section-head { margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }
.zords-page { border-top: 0; padding-top: calc(4.25rem + clamp(3rem, 7vw, 5rem)); }

/* Hairlines that used full ink */
.spec, .manifest th, .steps, .faq, .anatomy, .chapters, .doc:first-child, .proof, .benefit-col h3, .closer,
.works ul, .works ul + ul { border-color: var(--line-strong); }
.manifest th { border-bottom-color: var(--line-strong); }
.chapters i { background: var(--accent); height: 2px; }

/* Buttons: the landing pill */
.button {
  height: 3rem; padding: 0 1.35rem; border: 0; border-radius: 9999px; background: var(--accent); color: var(--accent-ink);
  font: 500 0.95rem/1 var(--sans); transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s;
}
.button:hover { background: #cbbeff; border-color: transparent; color: var(--accent-ink); }
.button:active { transform: scale(0.97); }
.button-small { height: 2.4rem; padding: 0 1rem; font-size: 0.875rem; }
.button-ghost { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.button-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.text-button { color: var(--muted); }
.text-button:hover { color: var(--ink); }

/* Forms */
.field-label { color: var(--muted); }
.field-row { align-items: center; gap: 0.4rem; padding: 0.3rem; border: 1px solid var(--line-strong); border-radius: 9999px; background: var(--surface); }
.field-row:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-row input { height: 2.6rem; padding: 0 1rem; }
.field-row .button { margin: 0; height: 2.6rem; }
.pay-field input { border: 1px solid var(--line-strong); border-radius: 0.8rem; background: var(--surface); }

/* Panels and pictures: rounded, faint border */
.result, .ledger, .plan { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-tag, .soon-tag { color: var(--accent); border-color: rgba(185, 168, 255, 0.45); }
.soon-tag { border-radius: 9999px; }
.download { border: 1px solid var(--line-strong); border-radius: 0.9rem; }
.download:first-child { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.download:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.32); color: var(--ink); }
.screen-frame, .zords-shots img, .proof img { border: 1px solid var(--line-strong); border-radius: 1rem; background: var(--panel-solid); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); }
.shot button { border: 1px solid var(--line-strong); border-radius: 1rem; background: var(--panel-solid); }
.shot button:hover { border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
.shot figcaption { color: var(--muted); }
.lb-btn { border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(12, 12, 17, 0.8); }
.lb-btn:hover { background: var(--ink); color: var(--bg); }
.step-n { border: 1px solid var(--line-strong); font-family: var(--mono); color: var(--muted); }

/* Local-first band */
.band { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--band); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.boundary { gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.boundary > div { background: var(--panel-solid); }
.boundary h3 { color: var(--muted); }
.boundary li { border-top-color: var(--line); }
.boundary code { background: rgba(255, 255, 255, 0.06); color: var(--ink); }

/* Release table */
.manifest td { border-bottom-color: var(--line); }
.manifest-note a { color: var(--accent); }

/* Prose (docs, privacy, terms): landing.css resets margins, list markers and underlines */
.doc p, .legal p { margin: 0 0 0.75rem; }
.doc ul, .legal ul { list-style: disc; }
.doc ol, .legal ol, .entry-senses { list-style: decimal; }
.legal ul, .legal ol { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.legal { color: var(--ink-2); }
.legal > * { max-width: 46rem; }
.legal h2 { margin: 2.25rem 0 0.75rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; }
.legal li, .legal p { max-width: 70ch; }
.doc a, .legal a, .manifest-note a, .faq a, .entry a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(185, 168, 255, 0.5); }
.doc a:hover, .legal a:hover { color: var(--accent); }
.doc code { background: rgba(255, 255, 255, 0.06); border-radius: 0.35em; }
.doc-toc { top: 5.5rem; }
.doc-toc a { border-left-color: var(--line); }
.doc-toc a:hover { border-left-color: var(--accent); }
.entry-gram em { font-family: var(--serif); font-size: 1.1em; }

/* Current page in the nav */
.nav-links a[aria-current='page'], .menu-panel a[aria-current='page'] { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

/* The OAuth hand-off overlay keeps its look on the dark page */
.oauth-spinner { border-color: var(--line-strong); border-top-color: var(--accent); }

/* landing.css has its own .steps (numbered list in a panel) and .zords (hero card): give the page versions back */
.section .steps { padding: 0; counter-reset: none; }
.section .steps li { display: block; padding: 1.6rem 1.75rem 0.5rem 0; border-bottom: 0; }
.section .steps li + li { padding-left: 1.75rem; border-left-color: var(--line); }
.section .steps li::before { content: none; }
.section .steps h3 { font-size: 1.3rem; }
.section .steps p { margin-top: 0; font-size: 1rem; }
.zords-page .zords { padding: 0; gap: clamp(2.25rem, 5vw, 5rem); }
@media (max-width: 760px) {
  .section .steps li, .section .steps li + li { padding: 1.35rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
