/* ─────────────────────────────────────────────────────────────────────
   site.css — shared furniture for the maestromojo.com redesign bundle.

   Extracted from index.html's inline styles (item 1157); consumed by every
   page in marketing/www-next/ (#1158's /teams included). Contract:

   - TOKEN DISCIPLINE. Every color in this file goes through a :root token.
     No literal-alpha borders/glows baked into furniture; gradients are
     token-relative. A page that overrides the tokens (e.g. a `body.light`
     override block) must render correctly on this furniture without
     touching these rules.
   - Shared furniture only: base/reset, tokens, layout containers, header/
     nav, footer, section headings, compare table, buttons, diff grid, and
     the DM Mono @font-face pair. Page-specific styles stay inline in each
     page's own <style> block.
   ──────────────────────────────────────────────────────────────────── */

/* ── Fonts (self-hosted; committed at assets/fonts/, OFL licensed) ── */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/dm-mono-500.woff2") format("woff2");
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Tokens ─────────────────────────────────────────────────────── */
/* Space-age blue — the portal's deep-space dark identity (item 551).
   These tokens are the single theming surface: pages restyle by
   overriding them, never by overriding furniture rules. */
:root {
  --bg: #0f131a;
  --bg-elevated: #151a23;
  --bg-subtle: #1c2230;
  --border: #222937;
  --border-bright: #2b3344;
  --text: #e6eaf2;
  --text-secondary: #939db0;
  --text-dim: #8b95a7;
  --accent: #6f9aff;
  --accent-dim: rgba(111, 154, 255, 0.12);
  --accent-glow: rgba(111, 154, 255, 0.07);
  --accent-bright: #8caeff;
  --green: #43d68f;
  --green-dim: rgba(67, 214, 143, 0.12);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.12);
  --purple: #b592ff;
  --purple-dim: rgba(181, 146, 255, 0.12);
  --mono: 'DM Mono', monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Base ───────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────────── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────────── */
header {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeDown 0.8s ease both;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo img { width: 30px; height: 30px; display: block; }
/* satellites wrap the wordmark in a link home; the spine does not */
a.logo:hover { text-decoration: none; color: var(--text); }

/* flex + gap, not margins: six links and a pill must never wrap mid-pill
   onto the logo — whole items wrap as a row instead */
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}
nav a {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); text-decoration: none; }
nav a.nav-cta {
  color: var(--bg);
  background: var(--accent);
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 500;
}
nav a.nav-cta:hover { background: var(--accent-bright); color: var(--bg); }

/* ── Sections ───────────────────────────────────────────────────── */
section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-number {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h2 {
  font-weight: 650;
  font-size: 28px;
  line-height: 1.25;  /* body's 1.7 leaves a chasm in a two-line heading */
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

h2 em { font-style: normal; color: var(--accent); }

.section-desc {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-row a { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost {
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* the free-to-start line that follows a CTA row on every page */
.free-line {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-top: 16px;
}

/* ── Differentiators ────────────────────────────────────────────── */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.diff {
  background: var(--bg);
  padding: 28px 28px;
}

.diff-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.diff h3 {
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.diff p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.diff-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ── Compare table ─────────────────────────────────────────────── */
.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 20px;
}

.compare {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: var(--bg);
  table-layout: fixed;
}

.compare col.c-label { width: 19%; }
.compare col.c-prod { width: 16.2%; }

.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 400;
}

.compare th:last-child, .compare td:last-child { border-right: none; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }

.compare thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.compare thead th small {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: none;
}

.compare tbody th {
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
}

.compare td { color: var(--text-dim); }

.compare .col-maestro { background: var(--accent-glow); color: var(--text-secondary); }
.compare thead .col-maestro { color: var(--accent); background: var(--accent-dim); }

.compare .yes { color: var(--accent); font-family: var(--mono); font-weight: 500; }
.compare .none { opacity: 0.55; }

.compare-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}

.compare-verdict {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin-top: 40px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 760px;
}

.compare-verdict strong { color: var(--text); font-weight: 500; }

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.footer-text {
  font-size: 12px;
  color: var(--text-dim);
}

/* flex + gap, not margins — the link list grew past the point where a
   single no-wrap row fits a phone (item 1158 added Compare/Pricing/Teams) */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Scroll reveal ──────────────────────────────────────────────── */
/* Shared: every page runs the same IntersectionObserver and ships the
   same <noscript> override, so a JS-off visitor never meets a page of
   invisible sections. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Motion primitives ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   SATELLITE FURNITURE (item 1158) — /compare/*, /pricing/, /teams/

   Same contract as everything above: colors go through tokens only, so
   the `body.light` override at the bottom of this file restyles all of
   it without a single furniture rule being touched.
   ══════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb row ─────────────────────────────────────────────── */
/* It is a <nav>, so it inherits the header nav's flex-end alignment and
   12px links unless it says otherwise. It says otherwise. */
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px 10px;
  margin-bottom: 30px;
}
.crumbs a { color: var(--text-dim); font-size: 11px; }
.crumbs a:hover { color: var(--accent); text-decoration: none; }
.crumbs [aria-current] { color: var(--text-secondary); }
.crumbs-sep { opacity: 0.55; }

/* ── Satellite page head ────────────────────────────────────────── */
.page-head { padding: 72px 0 4px; }

.page-head h1 {
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--text);
}
.page-head h1 em { font-style: normal; color: var(--accent); }

.page-lead {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 660px;
}
.page-lead + .page-lead { margin-top: 14px; }

.dateline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-top: 24px;
}

/* ── Two-column mini matrix (Maestro vs one rival) ──────────────── */
.compare.two { min-width: 480px; }
.compare.two col.c-label { width: 30%; }
.compare.two col.c-prod { width: 35%; }

/* ── Row-by-row expansion ───────────────────────────────────────── */
.rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.row-x { background: var(--bg); padding: 24px 28px; }

.row-x h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}

.row-x p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.row-x p + p { margin-top: 10px; }

.r-side {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-right: 9px;
}
.r-side.alt { color: var(--text-secondary); }

/* ── Steelman ("where X is the right choice") ───────────────────── */
.steelman {
  border: 1px solid var(--border-bright);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  background: var(--bg-elevated);
  padding: 28px 30px;
}

.steelman h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}

.steelman p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.steelman p + p { margin-top: 12px; }

/* ── Link cards (hub grid + cross-links) ────────────────────────── */
.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.link-card {
  background: var(--bg);
  padding: 26px 28px;
  display: block;
  color: inherit;
  transition: background 0.2s;
}
.link-card:hover { background: var(--bg-elevated); text-decoration: none; }

.link-card h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
  transition: color 0.2s;
}
.link-card:hover h3 { color: var(--accent); }

.link-card p { font-size: 13px; color: var(--text-dim); line-height: 1.65; }

.lc-go {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Client roster ──────────────────────────────────────────────── */
/* Maestro is MCP-native, not Claude-only. Any page that talks about
   connecting says so with the same line. */
.client-roster {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-top: 20px;
}
.client-roster b { color: var(--text-secondary); font-weight: 500; }

/* ── "Also see" rail ────────────────────────────────────────────── */
.also {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
}
.also a {
  border: 1px solid var(--border-bright);
  border-radius: 2px;
  padding: 6px 13px;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.also a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cta-row + .also, .free-line + .also, p + .also { margin-top: 32px; }

/* ── Pricing table ──────────────────────────────────────────────── */
.price-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.price-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--bg);
}

.price-table th, .price-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: none; }

.price-table thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.price-table tbody th {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.price-table td { color: var(--text-dim); }

.price-cost {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
}

/* ── Free-tools grid ────────────────────────────────────────────── */
.free-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.free-cell { background: var(--bg); padding: 20px 24px; }

.free-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}

.free-cell p { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }

/* ── Terminal-chrome card (shared: hero cycler + static demos) ───── */
/* Promoted out of index.html by item 1158 — every page carries at least
   one session demo, and they all obey the same rule: show the ask and
   the result, never the MCP plumbing. */
.example-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 48px;
  overflow: hidden;
}

.example-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.example-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-bright);
}
.example-dot.active { background: var(--green); }

.example-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.example-body { padding: 20px 24px; }

.example-body code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  display: block;
  white-space: pre;
}

/* ── Static session demo (no JS — the hero owns the animation) ───── */
.demo-figure { margin: 0 0 44px; }
.demo-card { margin-bottom: 0; }

.demo-stage {
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
}

.demo-prompt {
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.demo-payoff {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-top: 12px;
  line-height: 1.6;
}

/* ── Payoff elements (shared vocabulary for every demo) ─────────── */
.po-pre { color: var(--text-dim); }
.po-reply { color: var(--text-secondary); overflow-wrap: break-word; }

.po-board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-bright);
  border-radius: 3px;
  background: var(--bg-subtle);
}
.po-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.po-dot.green { background: var(--green); }
.po-row-title {
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.po-chip {
  margin-left: auto;
  flex: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
}
.po-chip.ok { background: var(--green-dim); color: var(--green); }
.po-chip.alt { background: var(--purple-dim); color: var(--purple); }
.po-chip.muted { background: var(--bg); color: var(--text-dim); border: 1px solid var(--border-bright); }

.po-note { color: var(--text-dim); font-size: 11.5px; }

.po-deploy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--green);
  overflow-wrap: anywhere;
}
.po-lock { flex: none; transform: translateY(1px); }
.po-url { text-decoration: underline; text-underline-offset: 2px; }

.po-line { color: var(--text-secondary); }
.po-strong { color: var(--text); }
.po-concern { color: var(--purple); }
.po-impact { font-size: 15px; color: var(--text); }

/* attribution badge, as the activity trail renders it */
.po-via {
  align-self: flex-start;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
}

/* the one line a billable operation adds */
.po-cost {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11.5px;
}
.po-cost .po-credits { color: var(--accent); font-size: 12.5px; }

/* ── Visually hidden (screen-reader / crawler surface) ──────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHT THEME — token override only (item 1158, /teams).

   This block sets NOTHING but custom properties. If a page ever needs a
   furniture rule overridden to look right on paper, that furniture rule
   has a baked color in it and the bug is up there, not here.
   ══════════════════════════════════════════════════════════════════ */
body.light {
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --bg-subtle: #e9edf3;
  --border: #dde3ea;
  --border-bright: #c2ccd8;
  --text: #101720;
  --text-secondary: #3f4b5e;
  --text-dim: #57647a;
  --accent: #0f6ea8;
  --accent-dim: rgba(15, 110, 168, 0.10);
  --accent-glow: rgba(15, 110, 168, 0.06);
  --accent-bright: #0b587f;
  --green: #0c7048;
  --green-dim: rgba(12, 112, 72, 0.12);
  --blue: #1663bd;
  --blue-dim: rgba(22, 99, 189, 0.12);
  --purple: #6340bf;
  --purple-dim: rgba(99, 64, 191, 0.12);
}

/* ── Responsive (shared furniture only) ─────────────────────────── */
@media (max-width: 760px) {
  .link-cards, .free-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 60px 0; }
  .diff-grid, .diff-grid.three { grid-template-columns: 1fr; }
  nav { gap: 8px 14px; }
  nav a { font-size: 11px; }
  .page-head { padding: 52px 0 4px; }
  .row-x { padding: 22px 20px; }
  .steelman { padding: 24px 22px; }
  .link-card { padding: 22px 20px; }
  .demo-stage { padding: 18px 16px; font-size: 12px; }
}
