/* Tidewire — shared stylesheet
 * Design tokens pulled from the "home-dark" mockup.
 */

/* ─── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,500..900&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ─── Tokens ────────────────────────────────────────────────── */
:root {
  --bg:        #070B12;
  --bg-panel:  #0B111B;
  --bg-raised: #111A27;
  --bg-ink:    #0B0F16;
  --fg:        #E8EEF4;
  --fg-mute:   #B9C6D3;
  --fg-faint:  #8EA0B2;
  --fg-ghost:  #5E6E80;
  --rule:      rgba(232,238,244,.12);
  --rule-2:    rgba(232,238,244,.16);
  --rule-strong: rgba(232,238,244,.45);
  --accent:    #E07A3A;         /* primary orange */
  --accent-2:  #F7A23B;          /* warm highlight (gradients) */
  --accent-plum: #8A1F5E;        /* deep plum (gradients)      */
  --focus:     #5CC8FF;          /* a11y focus ring            */

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --font-disp: 'Archivo', system-ui, sans-serif;

  --radius: 6px;
  --radius-lg: 8px;

  /* Fluid gutter — 24px mobile, 64px desktop. Keeps everything on one grid. */
  --gutter: clamp(20px, 4vw, 64px);
  --maxw:   1440px;
}

/* ─── Base typography ───────────────────────────────────────── */
html { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--fg); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Layout ────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.page { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
section { padding: clamp(64px, 10vw, 104px) var(--gutter); }
section.alt { background: var(--bg-panel); }
section.border-top { border-top: 1px solid var(--rule); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-block;
}

/* ─── Display headings ──────────────────────────────────────── */
h1, h2, h3 { margin: 0; }
.display-xl, .display-lg, .display-md {
  font-family: var(--font-disp);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
  font-stretch: 68%;
}
.display-xl { font-size: clamp(56px, 10vw, 112px); }
.display-lg { font-size: clamp(44px, 7.5vw, 80px); line-height: 0.92; }
.display-md { font-size: clamp(36px, 6vw, 72px); line-height: 0.92; }
.display-cta { /* big CTA block headlines, extra condensed */
  font-family: var(--font-disp);
  font-weight: 900;
  font-stretch: 66%;
  font-size: clamp(56px, 11vw, 120px);
  line-height: 0.86;
  text-transform: uppercase;
}

.lede { color: var(--fg-mute); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 760px; }

/* ─── Header & nav ──────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  gap: 24px;
  flex-wrap: wrap;
}
.site-header.on-dark-image { border-bottom: 0; }
.site-header.bordered     { border-bottom: 1px solid var(--rule); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.brand svg { color: var(--fg); }
.brand .wordmark {
  font-family: var(--font-disp);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
}
.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a {
  text-decoration: none;
  padding: 12px 0;
  opacity: 0.8;
  transition: opacity .2s;
}
.site-nav a:hover { opacity: 1; }
.site-nav a[aria-current="page"] {
  opacity: 1;
  border-bottom: 2px solid var(--accent);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-cta .signin { text-decoration: none; font-weight: 500; opacity: 0.8; padding: 12px 2px; }
.header-cta .signin:hover { opacity: 1; }

/* ─── Buttons / CTAs ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: transform .15s, background-color .15s, border-color .15s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-ink);
}
.btn-primary:hover { transform: translateY(-1px); background: #ea8744; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(232,238,244,0.5);
  padding: 11px 19px;
}
.btn-ghost:hover { border-color: var(--rule-strong); background: rgba(232,238,244,.04); }
.btn-lg { font-size: 17px; padding: 16px 26px; }
.btn-lg.btn-ghost { padding: 15px 25px; }

/* ─── Cards (reusable, with hover lift) ─────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(232,238,244,.14);
  border-radius: var(--radius);
  background: transparent;
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--rule-strong); transform: translateY(-3px); background: var(--bg-raised); }
.card.accent-top { border-top: 3px solid var(--accent); }
.card.accent-ring { border: 2px solid var(--accent); }
.card h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; }
.card p  { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-mute); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  isolation: isolate;
}
.hero canvas,
.hero .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  z-index: 0;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,11,18,.94) 0%, rgba(7,11,18,.78) 34%, rgba(7,11,18,0) 62%);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(7,11,18,0) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 160px var(--gutter) 48px;
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-copy .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-hud {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 56px;
  width: min(500px, calc(100% - 2 * var(--gutter)));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: rgba(7,11,18,.74);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-hud .hud-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero-hud .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.hero-hud .scene-title { font-size: 17px; font-weight: 600; color: var(--fg); }
.hero-hud .scene-desc  { font-size: 14px; line-height: 1.5; color: var(--fg-mute); }
.hero-hud .fps { font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); }
.hero-hud .note { font-size: 12px; line-height: 1.5; color: var(--fg-faint); }
.hero-hud .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(232,238,244,.35);
  border-radius: var(--radius);
  padding: 7px 12px;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--bg-ink); border-color: var(--accent); }
.pause-btn {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(232,238,244,.35);
  border-radius: var(--radius);
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
}

/* ─── Marquee ───────────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 44s linear infinite;
  font-family: var(--font-disp);
  font-stretch: 70%;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.06em;
  color: var(--fg-ghost);
  white-space: nowrap;
}
.marquee-track .pop { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Playground ────────────────────────────────────────────── */
.playground {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.playground svg { background: #0B111B; border: 1px solid var(--rule-2); border-radius: var(--radius); }
.z-readout {
  font-family: var(--font-disp);
  font-stretch: 70%;
  font-weight: 900;
  font-size: clamp(96px, 14vw, 168px);
  line-height: 0.9;
  color: var(--accent);
}
.z-readout .ohm { font-size: 0.43em; color: var(--fg); }
.z-sub { font-family: var(--font-mono); font-size: 14px; color: var(--fg-mute); }
.slider-row { display: flex; flex-direction: column; gap: 8px; }
.slider-row .labels { display: flex; justify-content: space-between; font-size: 15px; }
.slider-row .labels .val { font-family: var(--font-mono); }
.slider-row input[type="range"] {
  width: 100%; height: 28px; accent-color: var(--accent);
}

/* ─── Numbers grid ──────────────────────────────────────────── */
.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}
.numbers .big {
  font-family: var(--font-disp);
  font-stretch: 70%;
  font-weight: 900;
  font-size: clamp(72px, 10vw, 120px);
  line-height: 0.9;
}
.numbers .big.pop { color: var(--accent); }
.numbers p { margin: 10px 0 0; font-size: 18px; line-height: 1.5; color: var(--fg-mute); }

/* ─── Path (4-step card row) ────────────────────────────────── */
.path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0; margin: 0;
}
.path-steps li { gap: 12px; }
.step-num { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }

/* ─── Pricing ───────────────────────────────────────────────── */
.pricing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(232,238,244,.2);
  border-radius: var(--radius);
}
.toggle button {
  background: transparent;
  color: var(--fg);
  border: 0;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}
.toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg-ink); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.pricing-grid .tier {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(232,238,244,.14);
  background: transparent;
  transition: border-color .2s, transform .2s, background .2s;
}
.pricing-grid .tier:hover { border-color: var(--rule-strong); transform: translateY(-3px); background: var(--bg-raised); }
.pricing-grid .tier.featured { border: 2px solid var(--accent); }
.pricing-grid .tier .name { font-size: 18px; font-weight: 600; }
.pricing-grid .tier .price {
  font-family: var(--font-disp);
  font-stretch: 70%;
  font-weight: 900;
  font-size: clamp(56px, 7vw, 72px);
  line-height: 1;
}
.pricing-grid .tier.featured .price { color: var(--accent); }
.pricing-grid .tier .note { font-size: 14px; color: var(--fg-faint); line-height: 1.5; }
.pricing-grid .tier ul {
  margin: 0; padding-left: 18px;
  font-size: 15px; line-height: 1.8;
}
.pricing-grid .tier .cta { margin-top: auto; }

.founding-strap {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 17px;
  line-height: 1.5;
}
.founding-strap .label { font-family: var(--font-mono); color: var(--accent); }

/* ─── Edition finder ───────────────────────────────────────── */
.finder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  gap: 56px;
  align-items: start;
}
.finder-row {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
  align-items: center;
}
.finder-row span { font-size: 18px; }
.finder-row .yn { display: flex; gap: 4px; }
.finder-row .yn button {
  background: transparent; color: var(--fg);
  border: 1px solid rgba(232,238,244,.3);
  border-radius: var(--radius);
  padding: 10px 18px; font-size: 14px; font-weight: 600;
}
.finder-row .yn button[aria-pressed="true"] { background: var(--accent); color: var(--bg-ink); border-color: var(--accent); }
.finder-rec {
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.finder-rec .name {
  font-family: var(--font-disp);
  font-stretch: 70%;
  font-weight: 900;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.9;
  text-transform: uppercase;
}
.finder-rec .price {
  font-family: var(--font-disp);
  font-stretch: 80%; font-weight: 700;
  font-size: 26px;
  color: var(--accent);
}
.finder-rec p { margin: 0; color: var(--fg-mute); line-height: 1.6; }

/* ─── Comparison tables ─────────────────────────────────────── */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.compare thead th {
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--fg);
}
.compare tbody th {
  padding: 16px 12px 16px 0;
  text-align: left;
  font-weight: 500;
  color: var(--fg-mute);
}
.compare tbody td { padding: 16px 12px; }
.compare tbody tr { border-bottom: 1px solid var(--rule); }
.compare-wrap { overflow-x: auto; }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 48px; }
.faq-grid h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.faq-grid p  { color: var(--fg-mute); margin: 0; font-size: 16px; line-height: 1.6; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--fg-faint);
  margin-top: auto;
}
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; opacity: .9; }
.site-footer a:hover { opacity: 1; }

/* ─── Final CTA ─────────────────────────────────────────────── */
.final-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

/* ─── Big beta signup / form ────────────────────────────────── */
.beta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  padding: 36px;
  background: var(--bg-panel);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
}
.beta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.beta-form input, .beta-form select {
  background: var(--bg-ink);
  color: var(--fg);
  border: 1px solid rgba(232,238,244,.25);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-sans);
}
.beta-form label { font-size: 13px; color: var(--fg-faint); }
.beta-form .checkbox-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.4; color: var(--fg-faint);
}
.beta-form .status { font-size: 14px; color: var(--accent); min-height: 20px; }
.beta-form .error  { font-size: 14px; color: #ff9a7a; min-height: 20px; }

/* ─── GPU check panel ───────────────────────────────────────── */
.gpu-check {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  background: var(--bg);
  min-height: 300px;
}
.gpu-check .row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  gap: 24px;
}
.gpu-check .row span:first-child { font-size: 15px; color: var(--fg-faint); }
.gpu-check .row span:last-child  { font-family: var(--font-mono); font-size: 15px; text-align: right; }
.gpu-check .ok     { color: #7BE0A4; }
.gpu-check .warn   { color: #F7A23B; }
.gpu-check .err    { color: #ff9a7a; }
.gpu-check .note   { font-size: 14px; color: var(--fg-faint); padding: 14px 0 4px; }

/* ─── Platform tabs (download) ──────────────────────────────── */
.platforms {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.platforms button {
  background: transparent; color: var(--fg);
  border: 1px solid rgba(232,238,244,.3);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 15px; font-weight: 600;
}
.platforms button[aria-selected="true"] { background: var(--accent); color: var(--bg-ink); border-color: var(--accent); }

/* ─── Capabilities ──────────────────────────────────────────── */
.cap-filters {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cap-filters input[type="search"] {
  background: var(--bg-panel);
  color: var(--fg);
  border: 1px solid rgba(232,238,244,.25);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  width: 100%;
  max-width: 480px;
}
.cap-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cap-chips button {
  background: transparent; color: var(--fg);
  border: 1px solid rgba(232,238,244,.25);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px; font-weight: 600;
}
.cap-chips button[aria-pressed="true"] { background: var(--accent); color: var(--bg-ink); border-color: var(--accent); }
.cap-count { font-family: var(--font-mono); font-size: 13px; color: var(--fg-faint); }

.cap-table { display: flex; flex-direction: column; }
.cap-table .row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 240px 150px;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.cap-table .row.header {
  padding: 12px 0;
  border-bottom: 2px solid var(--fg);
  font-size: 13px; font-weight: 600; color: var(--fg-mute);
}
.cap-table .row .name { font-size: 16px; font-weight: 600; }
.cap-table .row .details { font-size: 15px; line-height: 1.55; color: var(--fg-mute); }
.cap-table .row .details small { display: block; margin-top: 4px; font-size: 13px; color: var(--fg-faint); }
.cap-table .row .set { font-size: 14px; line-height: 1.55; }
.cap-table .row .status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
}
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.status-now     { color: #7BE0A4; } .status-now .status-dot     { background: #7BE0A4; }
.status-dev     { color: #5CC8FF; } .status-dev .status-dot     { background: #5CC8FF; }
.status-plan    { color: var(--fg-faint); } .status-plan .status-dot { background: transparent; border: 1.5px solid var(--fg-faint); box-sizing: border-box; }
.cap-group-head {
  margin: 36px 0 12px;
  font-family: var(--font-disp);
  font-stretch: 70%;
  font-weight: 900;
  font-size: 28px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Workspace mock (platform page) ────────────────────────── */
.workspace {
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  overflow: hidden;
}
.workspace .bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.workspace .bar .mono { font-family: var(--font-mono); font-size: 13px; color: var(--fg-faint); }
.workspace .tabs { display: flex; gap: 4px; }
.workspace .tabs button {
  background: transparent; color: var(--fg); border: 0;
  border-radius: var(--radius); padding: 8px 16px;
  font-size: 14px; font-weight: 600;
}
.workspace .tabs button[aria-selected="true"] { background: var(--accent); color: var(--bg-ink); }
.workspace .pane {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  min-height: 480px;
}
.workspace .sidebar {
  padding: 16px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.workspace .sidebar .mute { color: var(--fg-mute); }
.workspace .sidebar .pad1 { padding-left: 14px; }
.workspace .sidebar .pad2 { padding-left: 28px; }
.workspace .sidebar .pad3 { padding-left: 42px; }
.workspace .sidebar .head { color: var(--fg); font-weight: 600; }
.workspace .canvas-area { padding: 16px; display: flex; align-items: center; justify-content: center; min-height: 480px; }
.workspace .canvas-area svg { width: 100%; height: auto; max-width: 760px; }
.workspace .inspector {
  padding: 16px 20px;
  border-left: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.workspace .inspector .label-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.workspace .inspector .ins-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.workspace .inspector .ins-row small { font-size: 12px; color: var(--fg-faint); }
.workspace .inspector .ins-row span  { font-size: 15px; color: var(--fg); }

/* ─── Use cases rows ────────────────────────────────────────── */
.usecase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.usecase-row.flip { grid-template-areas: "sim copy"; }
.usecase-row.flip .copy { grid-area: copy; }
.usecase-row.flip .sim  { grid-area: sim;  }
.usecase-row .copy { display: flex; flex-direction: column; gap: 20px; }
.usecase-row ul { padding-left: 20px; font-size: 16px; line-height: 1.8; }
.usecase-row .pullquote {
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-panel);
  font-size: 16px;
  line-height: 1.55;
}
.usecase-sim { aspect-ratio: 16 / 9; background: var(--bg-ink); border: 1px solid var(--rule-2); border-radius: var(--radius); position: relative; overflow: hidden; }
.usecase-sim canvas,
.usecase-sim video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.usecase-sim .cap { position: absolute; bottom: -24px; left: 0; font-size: 13px; color: var(--fg-faint); }

/* ─── Validation table ─────────────────────────────────────── */
.validation { font-size: 17px; }
.validation th {
  padding: 18px 16px 18px 0;
  font-weight: 600;
  text-align: left;
}
.validation td { padding: 18px 16px; color: var(--fg-mute); }
.validation .pub { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .site-nav { gap: 20px; font-size: 14px; }
  .playground, .finder-grid, .beta-card, .workspace .pane { grid-template-columns: 1fr; }
  .finder-rec { position: static; }
  .workspace .sidebar, .workspace .inspector { border: 0; border-top: 1px solid var(--rule); }
  .usecase-row, .usecase-row.flip { grid-template-areas: none; grid-template-columns: 1fr; }
  .usecase-row.flip .copy, .usecase-row.flip .sim { grid-area: auto; }
  .cap-table .row { grid-template-columns: 1fr; gap: 8px; }
  .cap-table .row.header { display: none; }
  .cap-table .row .name { font-size: 18px; }
  .cap-table .row .set::before { content: "You can set: "; color: var(--fg-faint); font-size: 13px; }
}
@media (max-width: 720px) {
  .site-header { padding: 16px var(--gutter); }
  .site-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; gap: 16px; }
  .header-cta .signin { display: none; }
  .btn-lg { font-size: 15px; padding: 14px 20px; }
  .hero { min-height: 640px; }
  .hero-copy { padding-top: 112px; }
  .hero-hud { position: static; margin: 24px var(--gutter) 32px; width: auto; }
  .final-cta { align-items: flex-start; }
}

/* ─── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .card, .pricing-grid .tier, .btn-primary { transition: none; }
  .btn-primary:hover { transform: none; }
}
