/* Public pages (homepage, roadmap, proposals, 404): page layout and text on the shared palette.
   Interactive controls on these pages are @brett_lamy/ui islands (ui.js / ui.css); this file only
   styles the static content around them. Fonts come from ui.css (same origin). The variable names
   below are the ones roadmap.css and roadmap.js's output already use, so the task views follow the
   same palette without changing that renderer. */
:root {
  color-scheme: dark;
  --bg: #151410;
  --surface: #1c1a16;
  --surface-2: #23211c;
  --ink: #ece8e1;
  --text: #ece8e1;
  --muted: #b9b2a7;
  --dim: #8c867c;
  --line: rgb(236 232 225 / 0.13);
  --accent: #e4a853;
  --cyan: #e4a853; /* historical name used by roadmap.css */
  --green: #8fbf86;
  --amber: #e4a853;
  --red: #e0644f;
  --panel: #1c1a16;
  --panel-2: #23211c;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(40px, 6.2vw, 68px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
code { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.wv-site-wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.wv-skip { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 10px 14px; background: var(--ink); color: var(--bg); }
.wv-skip:focus { top: 12px; }
.wv-site-header { position: sticky; top: 0; z-index: 30; background: rgb(21 20 16 / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wv-site-header .wv-site-wrap { min-height: 56px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.wv-site-fallback-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.wv-lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 54ch; }
.wv-muted { color: var(--muted); }
.wv-text-link { color: var(--accent); text-underline-offset: 3px; }
.wv-label { display: inline-block; font: 500 13px/1 var(--mono); color: var(--accent); border: 1px solid rgb(228 168 83 / 0.45); border-radius: 999px; padding: 6px 10px; }
.wv-section { padding-block: 72px; border-top: 1px solid var(--line); }
.wv-section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 64ch; }
.wv-section-head p { color: var(--muted); }
/* Standalone actions (a link on its own line under a heading or lede) are tap targets, not prose
   links: each owns a 44 px tall box. Links inside paragraphs keep their inline size. */
:is(.inner-hero, .wv-section-head) > a { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; }

/* Footer */
.wv-site-footer { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--muted); font-size: 15px; }
.wv-site-footer .wv-site-wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wv-site-footer nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.wv-site-footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.wv-site-footer a:hover { color: var(--ink); }

/* ── Homepage ─────────────────────────────────────────────────────────── */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 72px 64px; }
.home-hero-copy { display: grid; gap: 22px; align-content: start; }
.home-start-fallback { display: flex; gap: 16px; flex-wrap: wrap; }
.home-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.home-facts div { display: grid; gap: 4px; }
.home-facts strong { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.home-facts span { color: var(--muted); font-size: 15px; }
.home-facts a { color: var(--accent); font-size: 15px; text-underline-offset: 3px; }
.home-layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.home-layers article { display: grid; gap: 8px; align-content: start; padding-block: 22px; border-top: 1px solid var(--line); }
.home-layers p { color: var(--muted); font-size: 16px; }
.home-layers a { color: var(--accent); font-size: 15px; text-underline-offset: 3px; }

/* The architecture model (hero-scene.js). Its native layer/motion controls stay in the figure as
   the scene's inputs; the visible controls are the library island. */
.machine-model { margin: 0; display: grid; gap: 14px; min-width: 0; }
.model-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 15px; color: var(--muted); }
.model-kind { font: 13px var(--mono); color: var(--dim); }
.model-stage { position: relative; height: 340px; border: 1px solid var(--line); border-radius: 10px; background: #100f0c; overflow: hidden; }
.model-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.model-stage canvas:active { cursor: grabbing; }
.model-selected-label { position: absolute; top: 14px; left: 16px; font: 13px var(--mono); color: var(--ink); pointer-events: none; }
.model-axis { display: none; }
.model-fallback { padding: 64px 24px; color: var(--muted); line-height: 1.8; }
.machine-model .model-motion, .machine-model .model-controls { display: none; }
.machine-model figcaption { color: var(--muted); font-size: 16px; min-height: 3.4em; max-width: 56ch; }
.machine-model figcaption strong { color: var(--ink); font-weight: 600; }
.machine-model figcaption a { color: var(--accent); white-space: nowrap; text-underline-offset: 3px; }

/* Embedded session */
.live-demo { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #100f0c; }
.live-demo-header { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 13px var(--mono); color: var(--muted); }
.live-demo iframe { display: block; width: 100%; height: 440px; border: 0; }
.live-body { padding: 28px 20px; display: grid; gap: 14px; justify-items: start; }
.live-body p { color: var(--muted); max-width: 52ch; }
.try-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }

/* Measurements (landing-benchmarks.js fills the rows from the committed JSON). */
.bench-detail { margin-top: 24px; }
.workload-bench { display: grid; gap: 14px; padding-block: 28px; border-top: 1px solid var(--line); }
.bench-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bench-head h3 { margin-block: 4px 8px; }
.bench-head .sub { color: var(--muted); font-size: 15px; max-width: 64ch; }
.kicker { font: 13px var(--mono); color: var(--accent); }
.bench-meta { font: 13px var(--mono); color: var(--dim); }
.bench-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.bench-wrap:focus-visible { outline-offset: 2px; }
.bench-table { border-collapse: collapse; width: 100%; min-width: 820px; font: 13px/1.55 var(--mono); }
.compute-diagnostic-table { min-width: 520px; }
.bench-table th, .bench-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bench-table th { font: 500 12px/1.4 var(--font); color: var(--muted); background: var(--surface); position: sticky; top: 0; }
.bench-table tr:last-child td { border-bottom: 0; }
.workload-runtime strong { font: 600 13px var(--font); white-space: nowrap; }
.workload-runtime span, .workload-p95, .workload-throughput { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.workload-pending, .workload-unavailable-summary { color: var(--muted); }
/* Keep each figure on one line; only an unavailability reason wraps. */
.workload-cell:not(.workload-unavailable), .workload-cell:not(.workload-unavailable) span { white-space: nowrap; }
.workload-unavailable { min-width: 18ch; }
.bench-note { font-size: 14px; color: var(--muted); max-width: 80ch; }
.bench-note a { color: var(--accent); text-underline-offset: 3px; }
.compute-diagnostic { display: grid; gap: 10px; margin-top: 16px; }
.table-scroll-hint { display: none; font: 13px var(--mono); color: var(--dim); }
.measurement-note { display: grid; gap: 6px; margin-bottom: 8px; color: var(--muted); max-width: 70ch; }
.measurement-note a { color: var(--accent); text-underline-offset: 3px; }

/* ── Proposal pages (products, work market, security) ─────────────────── */
.inner-hero { display: grid; gap: 20px; padding-block: 64px 48px; border-bottom: 1px solid var(--line); }
.inner-hero h1 { max-width: 18ch; }
.inner-hero .lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.proposal-label { display: inline-block; justify-self: start; width: fit-content; max-width: 100%; font: 500 13px/1.35 var(--mono); color: var(--accent); border: 1px solid rgb(228 168 83 / 0.45); border-radius: 999px; padding: 7px 11px; }
.editorial-section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-block: 48px; border-bottom: 1px solid var(--line); }
.editorial-section h2 { font-size: 28px; }
.editorial-body { display: grid; gap: 16px; max-width: 68ch; }
.editorial-body p, .editorial-body li { color: var(--muted); }
.editorial-body ul { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.editorial-body h3 { margin-top: 12px; }
.editorial-body a, .inner-hero a, .text-link { color: var(--accent); text-underline-offset: 3px; }
.editorial-rows { display: grid; }
.editorial-rows article { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding-block: 18px; border-top: 1px solid var(--line); }
.editorial-rows article:first-child { border-top: 0; padding-top: 0; }
.editorial-callout { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: var(--muted); }
.section-number, .eyebrow { font: 13px var(--mono); color: var(--dim); }

/* ── Case studies (moved from the retired marketing.css, retoned) ────── */
.case-status { display: block; font: 500 12px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.case-list { list-style: none; padding: 0; margin: 0; display: grid; }
.case-item { display: grid; gap: 8px; padding-block: 22px; border-top: 1px solid var(--line); }
.case-item:first-child { border-top: 0; padding-top: 0; }
.case-item h3 { margin: 0; font-size: 22px; }
.case-item h3 a { color: var(--ink); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.case-item h3 a:hover { color: var(--accent); }
.case-item p { margin: 0; }
.case-steps { list-style: decimal-leading-zero; padding-left: 30px; margin: 8px 0; }
.case-steps li { padding: 14px 0 14px 8px; border-top: 1px solid var(--line); }
.case-steps li::marker { color: var(--accent); font: 13px var(--mono); }
.case-steps strong { color: var(--ink); font-weight: 600; }
.case-prompt { margin: 8px 0; padding: 20px 22px; border-left: 2px solid var(--accent); background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.case-prompt span { display: block; margin-bottom: 10px; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.case-chat { display: grid; gap: 8px; margin: 8px 0; }
.case-message { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.case-message.user { background: var(--surface); border-color: rgb(228 168 83 / 0.35); }
.case-message span { font: 500 12px/1.7 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.case-message p { margin: 0; font-size: 15px; }
.case-disclosure { font: 13px/1.7 var(--mono); color: var(--dim); }
.case-table-wrap { max-width: 100%; margin: 8px 0; overflow-x: auto; }
.case-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 15px; line-height: 1.6; }
.case-table caption { text-align: left; font: 13px var(--mono); color: var(--accent); padding-bottom: 12px; }
.case-table th, .case-table td { border-top: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; color: var(--muted); }
.case-table thead th { color: var(--dim); font: 500 12px var(--mono); text-transform: uppercase; }
.case-table tbody th { width: 22%; font-weight: 600; color: var(--ink); }
.sandbox-stack { margin: 8px 0; max-width: 760px; }
.sandbox-stack figcaption { font: 13px/1.7 var(--mono); color: var(--dim); margin-top: 14px; max-width: 65ch; }
.sandbox-boundary { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--surface); min-width: 0; }
.sandbox-boundary .sandbox-boundary { margin-top: 18px; background: var(--surface-2); }
.sandbox-boundary .sandbox-workload { background: #2a2620; border-color: rgb(228 168 83 / 0.5); }
.sandbox-boundary h3 { margin: 10px 0; font-size: 21px; }
.sandbox-boundary p { margin: 0; font-size: 15px; color: var(--muted); }

/* ── Roadmap: retones roadmap.css's fixed colors; layout stays its own. ── */
.roadmap-page .rm-viewtoggle, .roadmap-page .rm-field, .roadmap-page .rm-detail-close { display: none; }
.roadmap-page .rm-field > span { display: none; }
.roadmap-page .rm-progress { background: var(--surface-2); border-radius: 2px; }
.roadmap-page .rm-detail { background: var(--surface); border-color: var(--line); }
.roadmap-page .rm-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 24px; }
.roadmap-page .roadmap-scrim { background: rgb(5 5 4 / 0.66); }

/* ── 404 ─────────────────────────────────────────────────────────────── */
.not-found { display: grid; justify-items: start; gap: 20px; padding-block: 96px; max-width: 60ch; }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 48px; }
  .try-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wv-site-wrap { width: calc(100% - 32px); }
  .wv-lede, .inner-hero .lede { font-size: 17px; }
  .wv-section { padding-block: 48px; }
  .model-stage { height: 260px; }
  .home-facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-layers { grid-template-columns: minmax(0, 1fr); }
  .editorial-section { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 36px; }
  .editorial-rows article { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .case-message { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .case-prompt { font-size: 16px; padding: 18px; }
  .sandbox-boundary { padding: 16px; }
  /* The RV-Phone comparison table reads as stacked rows on a phone. */
  .case-table thead { display: none; }
  .case-table tbody tr { display: block; border-top: 1px solid var(--line); padding: 10px 0; }
  .case-table tbody th, .case-table tbody td { display: block; width: auto; border: 0; padding: 4px 0; }
  .case-table tbody td::before { display: block; color: var(--dim); font: 500 12px var(--mono); text-transform: uppercase; margin-top: 6px; }
  .case-table tbody td:first-of-type::before { content: "Typical dev-board path"; }
  .case-table tbody td:last-of-type::before { content: "Planned browser path"; }
  .live-demo iframe { height: 380px; }
  .table-scroll-hint { display: block; }
  .roadmap-page .rm-toolbar { grid-template-columns: minmax(0, 1fr); }
  /* Scrolled sideways, each row keeps its environment name in view. */
  .bench-table :is(th, td):first-child { position: sticky; left: 0; z-index: 1; max-width: 46vw; background: var(--bg); box-shadow: inset -1px 0 var(--line); }
  .bench-table th:first-child { z-index: 2; background: var(--surface); }
  .workload-runtime strong { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.roadmap-page button { font: inherit; }
