/* Plenary Showcase — Warm Studio Craft (Light) & Obsidian Studio (Dark)
   Typography: Geist + Geist Mono. Palette grounded in docs/design/DESIGN.md. */

:root {
  --bg: #F8F7F4;
  --dot: #E4E2DC;
  --surface: #FFFFFF;
  --surface-alt: #F2F0EB;
  --surface-hover: #EBE8E1;
  --border: #E3E0D8;
  --border-strong: #C9C5BA;
  --fg: #18181B;
  --fg-muted: #52504A;
  --fg-dim: #625F57;
  --accent: #3B48E8;
  --accent-hover: #303CC9;
  --accent-fg: #FFFFFF;
  --accent-soft: rgba(59, 72, 232, 0.09);
  --brand-mark-ink: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.05), 0 1px 3px rgba(24, 24, 27, 0.06);
  --shadow-md: 0 8px 28px rgba(24, 24, 27, 0.08), 0 1px 3px rgba(24, 24, 27, 0.06);
  --shadow-lg: 0 24px 56px rgba(24, 24, 27, 0.16), 0 2px 8px rgba(24, 24, 27, 0.08);
  --code-bg: #16161B;
  --code-fg: #F1F1F4;
  --code-dim: #9A9AA8;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  --bg: #111113;
  --dot: #242429;
  --surface: #1A1A1E;
  --surface-alt: #16161A;
  --surface-hover: #25252C;
  --border: #2E2E36;
  --border-strong: #464652;
  --fg: #F4F4F5;
  --fg-muted: #B0B0BC;
  --fg-dim: #91919E;
  --accent: #818CF8;
  --accent-hover: #96A0FA;
  --accent-fg: #0E0F1A;
  --accent-soft: rgba(129, 140, 248, 0.14);
  --brand-mark-ink: #0E0F1A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --code-bg: #141418;
  --code-fg: #F4F4F5;
  --code-dim: #8D8D9E;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -0.008em;
  color: var(--fg);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

html[data-theme="dark"] body {
  line-height: 1.68;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.08em 0.36em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

.shell {
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero-grid > *,
.section-head > *,
.demo-theatre > *,
.spread > *,
.agent-split > *,
.honest-split > *,
.mobile-pair > * {
  min-width: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: inline-flex;
  color: var(--accent);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fg-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--fg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 36px;
  padding: 0 0.78rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

html[data-theme="light"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.btn-sm {
  min-height: 36px;
  padding: 0 0.88rem;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

/* Typography */
.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-sans);
  margin: 0;
  color: var(--fg);
}

h1 {
  font-size: clamp(2.45rem, 4.7vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.28rem, 1.85vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

/* Hero */
.hero {
  padding: clamp(2.75rem, 5vw, 4.75rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: start;
}

.hero-lead {
  margin: 1.3rem 0 0;
  font-size: clamp(1.06rem, 1.25vw, 1.16rem);
  font-weight: 500;
  color: var(--fg);
  max-width: 56ch;
  line-height: 1.55;
}

.hero-sub {
  margin: 0.9rem 0 0;
  font-size: 0.97rem;
  color: var(--fg-muted);
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.65rem;
}

.pillar-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 2.1rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pillar-item dt {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.pillar-item dd {
  margin: 0.22rem 0 0;
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.45;
}

/* Framed App Windows */
.window-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.56rem 0.85rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: inline-flex;
  gap: 6px;
}

.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  display: block;
}

.window-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--fg);
}

.window-media {
  background: #141418;
  aspect-ratio: 16 / 9.5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.window-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.window-media.is-mobile-capture {
  aspect-ratio: 16 / 10;
  background: #0F0F12;
  padding: 1rem;
}

.window-media.is-mobile-capture img {
  width: auto;
  height: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.window-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.58rem 0.72rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.seg-btn {
  flex: 1 1 auto;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.seg-btn:hover {
  background: var(--surface-alt);
  color: var(--fg);
}

.seg-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  border-color: color-mix(in srgb, var(--accent) 26%, transparent);
}

.stage-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  color: var(--fg-dim);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 6.5vw, 5.75rem) 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: color-mix(in srgb, var(--surface) 76%, var(--bg));
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2rem, 3.8vw, 3rem);
}

.section-summary {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.98rem;
  max-width: 58ch;
}

/* Demo Theatre */
.demo-theatre {
  display: grid;
  grid-template-columns: 316px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.demo-rail {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.demo-tab {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.demo-tab:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.demo-tab.is-active {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}

.demo-idx {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent);
  padding-top: 0.12rem;
}

.demo-meta {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.demo-meta strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.demo-meta span {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.38;
}

.demo-caption {
  padding: 1.15rem 1.35rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.demo-caption h3 {
  font-size: 1.1rem;
}

.demo-caption p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--fg-muted);
  max-width: 68ch;
}

/* Feature Spreads */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.14fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.25rem, 4.2vw, 3.5rem) 0;
  border-top: 1px solid var(--border);
}

.spread:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.spread-reverse .spread-copy {
  order: 2;
}

.spread-reverse .spread-visual {
  order: 1;
}

.spread-tag {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spread-copy p {
  margin: 0.9rem 0 0;
  color: var(--fg-muted);
  max-width: 58ch;
}

.spread-copy strong {
  color: var(--fg);
  font-weight: 600;
}

.spread-highlight {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg) !important;
  font-size: 0.93rem;
}

/* Mobile Paired Captures */
.mobile-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
  gap: 1rem;
  align-items: start;
}

.device-frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.device-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--fg-dim);
}

.device-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* AI Agents Split */
.agent-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.agent-copy p:not(.eyebrow) {
  margin: 0.95rem 0 0;
  color: var(--fg-muted);
  max-width: 56ch;
}

.cli-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.cli-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}

.mono-pill {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--fg-dim);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 32px;
  padding: 0 0.72rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--surface-hover);
}

.cli-code {
  margin: 0;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  overflow-x: auto;
}

.cli-code code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.c-dim {
  color: var(--code-dim);
}

/* Comparison table */
.table-wrap {
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  background: var(--surface-alt);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--fg-muted);
}

.data-table td strong {
  color: var(--fg);
  font-weight: 600;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table th.col-plenary,
.compare-table td.col-plenary {
  background: var(--accent-soft);
  color: var(--fg);
  min-width: 230px;
}

.compare-table th.col-plenary {
  color: var(--accent);
}

.honest-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.honest-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.honest-col h3 {
  font-size: 1.12rem;
}

.honest-col p {
  margin: 0.65rem 0 0;
  color: var(--fg-muted);
  font-size: 0.93rem;
}

.tagline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.tagline-chip {
  min-height: 34px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.tagline-chip.is-active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.tagline-preview {
  margin: 1rem 0 0;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.35;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 3.75rem;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-statement {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 58ch;
  color: var(--fg);
  line-height: 1.45;
}

.footer-meta {
  margin: 0.55rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--fg-dim);
}

.footer-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-meta a:hover {
  color: var(--fg);
}

.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Lightbox dialog */
.lightbox {
  width: min(94vw, 1320px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(14, 14, 18, 0.78);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.lightbox-body {
  background: #101014;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(92vh - 54px);
  overflow: auto;
  padding: 0.75rem;
}

.lightbox-body img {
  max-height: calc(90vh - 76px);
  width: auto;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid,
  .section-head,
  .demo-theatre,
  .spread,
  .agent-split,
  .honest-split {
    grid-template-columns: 1fr;
  }

  .spread-reverse .spread-copy,
  .spread-reverse .spread-visual {
    order: initial;
  }

  .header-nav {
    display: none;
  }

  .demo-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 1.5rem);
  }

  .brand-tag {
    display: none;
  }

  .header-inner {
    min-height: 56px;
    gap: 0.5rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .theme-toggle,
  .btn-sm {
    padding: 0 0.65rem;
    font-size: 0.8rem;
  }

  .demo-rail,
  .pillar-strip,
  .mobile-pair {
    grid-template-columns: 1fr;
  }

  .window-title {
    min-width: 0;
    flex: 1;
  }

  .window-switcher {
    gap: 0.3rem;
  }

  .seg-btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
