/* Zee Download — Product & Release Website Stylesheet
 * Monochrome visual DNA matching app/ui/themes/tokens.py
 */

:root {
  /* Core Dark Monochrome Palette (matches DARK_PALETTE in app/ui/themes/tokens.py) */
  --bg-primary: #090909;
  --bg-secondary: #111111;
  --bg-surface: #151515;
  --bg-elevated: #1c1c1c;
  --bg-hover: #222222;
  --border-subtle: #242424;
  --border-strong: #3a3a3a;
  --text-primary: #f5f5f5;
  --text-secondary: #b8b8b8;
  --text-muted: #8a8a8a;
  --btn-primary-bg: #f5f5f5;
  --btn-primary-fg: #090909;
  --btn-primary-hover: #dcdcdc;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --progress-track: #232323;
  --status-ok: #d4d4d4;
  --status-warn: #f59e0b;

  /* Typography */
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing Scale (8-pt) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Layout Rhythm */
  --nav-h: 72px;
  --gut: 80px;
  --wrap-max: 1280px;

  /* Nested Radii */
  --r-lg: 12px;
  --r-md: 8px;
  --r-sm: 6px;

  /* Motion */
  --t-in: 140ms;
  --t-out: 180ms;
  --t-press: 80ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #f3f3f5;
  --bg-surface: #ffffff;
  --bg-elevated: #f5f5f7;
  --bg-hover: #eaeaef;
  --border-subtle: #e4e4e7;
  --border-strong: #c8c8d0;
  --text-primary: #09090b;
  --text-secondary: #3f3f46;
  --text-muted: #63636c;
  --btn-primary-bg: #111111;
  --btn-primary-fg: #ffffff;
  --btn-primary-hover: #27272a;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --progress-track: #e4e4e7;
  --status-ok: #27272a;
  --status-warn: #b45309;
}

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

html {
  margin: 0;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Skip Link */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 10px 16px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-radius: var(--r-sm);
  z-index: 100;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Container & 12-Column Grid */
.wrap {
  width: min(100% - 2 * var(--gut), var(--wrap-max));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* Focus Visible (WCAG AA) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 50;
}

.nav__bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--t-in) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-in) var(--ease);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--t-in) var(--ease),
              border-color var(--t-in) var(--ease),
              color var(--t-in) var(--ease),
              transform var(--t-press) var(--ease);
}

.icon-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.icon-btn:active {
  transform: scale(0.97);
}

.nav__menu-btn {
  display: none;
}

/* Mobile Nav Drawer */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg-primary);
  z-index: 45;
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  height: 56px;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu__cta {
  padding-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background-color var(--t-in) var(--ease),
              border-color var(--t-in) var(--ease),
              color var(--t-in) var(--ease),
              transform var(--t-press) var(--ease);
}

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

.btn--primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn--xl {
  min-height: 60px;
  padding: 0 32px;
  font-size: 17px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color var(--t-in) var(--ease), color var(--t-in) var(--ease);
}

.text-link:hover {
  border-color: var(--text-primary);
}

.text-link svg {
  transition: transform var(--t-in) var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* Sections */
.section {
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section--surface {
  background: var(--bg-secondary);
}

.section-head {
  margin-bottom: var(--s-6);
}

.section-head--split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: end;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

h2 .muted {
  color: var(--text-muted);
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.lead {
  margin: var(--s-4) 0 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 54ch;
}

.body-copy {
  margin: var(--s-2) 0 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.meta-line {
  margin: var(--s-4) 0 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Hero Section — First Screen */
.hero {
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + var(--s-8));
  padding-bottom: var(--s-8);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.hero__grid {
  align-items: start;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  padding-top: var(--s-2);
}

.hero__actions {
  margin-top: var(--s-6);
}

.hero__facts {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.fact__val {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.fact__label {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Live Desktop Window Frame (Hero) */
.app-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.app-window__chrome {
  height: 42px;
  padding: 0 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.app-window__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-window__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.app-window__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.app-window__tabs {
  display: flex;
  gap: 4px;
}

.app-tab {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.app-tab:hover {
  color: var(--text-primary);
}

.app-tab[aria-selected="true"] {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.app-window__body {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  min-height: 420px;
}

.app-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

.app-nav-item--active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 500;
}

.app-nav-count {
  font-size: 12px;
  color: var(--text-muted);
}

.app-main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-main[hidden] {
  display: none;
}

.app-main__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.app-main__heading {
  font-size: 14px;
  font-weight: 500;
}

.app-main__speed {
  font-size: 13px;
  color: var(--text-secondary);
}

.dl-row {
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dl-row__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-row__pct {
  font-size: 13px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.dl-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.dl-bar {
  height: 4px;
  width: 100%;
  background: var(--progress-track);
  border-radius: 2px;
  overflow: hidden;
}

.dl-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.dl-bar__fill--done {
  background: var(--text-primary);
}

.inspect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.inspect-cell {
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
}

.inspect-cell__k {
  font-size: 12px;
  color: var(--text-muted);
}

.inspect-cell__v {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
}

.inspect-alert {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

/* Platform Download Cards */
.release-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 14px 18px;
  margin-bottom: var(--s-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  font-size: 14px;
}

.release-bar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
}

.os-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: border-color var(--t-in) var(--ease), transform var(--t-in) var(--ease);
}

.os-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.os-card--recommended {
  border-color: var(--text-primary);
}

.os-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.os-card__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  color: var(--text-primary);
}

.os-card__tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.os-card--recommended .os-card__tag {
  color: var(--accent);
}

.os-card__desc {
  margin: var(--s-2) 0 var(--s-4) 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.os-card__file {
  padding: 7px 8px;
  margin-bottom: var(--s-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  font-size: 11.5px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-4);
  font-size: 13px;
  color: var(--text-muted);
}

.os-card__btn {
  width: 100%;
}

/* Integrity Verification Box */
.verify-box {
  margin-top: var(--s-5);
  padding: var(--s-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
}

.verify-box__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.verify-tabs {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  gap: 2px;
}

.verify-tab {
  min-height: 34px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: 0;
  border-radius: calc(var(--r-md) - 3px);
  color: var(--text-muted);
  cursor: pointer;
}

.verify-tab:hover {
  color: var(--text-primary);
}

.verify-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}

.code-bar code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color var(--t-in) var(--ease), transform var(--t-press) var(--ease);
}

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

.copy-btn:active {
  transform: scale(0.97);
}

/* Full-Width Two-Pane Product Workspace (#preview) */
.app-frame {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.app-frame__list {
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.app-frame__pane-head {
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.queue-item {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.queue-item:last-child {
  border-bottom: 0;
}

.queue-item:hover {
  background: var(--bg-hover);
}

.queue-item[aria-selected="true"] {
  background: var(--bg-elevated);
  box-shadow: inset 3px 0 0 var(--accent);
}

.queue-item__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.queue-item__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item__state {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.queue-item__sub {
  font-size: 13px;
  color: var(--text-muted);
}

.app-frame__detail {
  display: flex;
  flex-direction: column;
}

.detail-body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
}

.detail-title {
  font-size: 18px;
  font-weight: 500;
  word-break: break-word;
}

.detail-url {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-all;
}

.detail-badge {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.detail-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
}

.detail-kv {
  padding: 12px 14px;
  background: var(--bg-surface);
}

.detail-kv__k {
  font-size: 12px;
  color: var(--text-muted);
}

.detail-kv__v {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.detail-log {
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.detail-log__line {
  display: flex;
  gap: 10px;
}

.detail-log__tag {
  color: var(--accent);
  flex-shrink: 0;
}

/* Feature Architecture 2x2 Grid */
.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature-card__copy {
  padding: var(--s-6) var(--s-6) var(--s-5) var(--s-6);
}

.feature-card__copy p {
  margin: var(--s-2) 0 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 48ch;
}

.feature-card__visual {
  padding: var(--s-5) var(--s-6) var(--s-6) var(--s-6);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
}

/* Diagram inside Feature Card */
.pipeline-svg {
  width: 100%;
  height: auto;
}

.sig-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sig-table th,
.sig-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.sig-table th {
  font-weight: 500;
  color: var(--text-muted);
}

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

.sig-flag {
  color: var(--status-warn);
  font-weight: 500;
}

.conv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

.conv-chip {
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.conv-chip__out {
  color: var(--text-muted);
  font-size: 12px;
}

.recovery-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recovery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  font-size: 13px;
}

.recovery-row__state {
  color: var(--text-muted);
  font-size: 12px;
}

/* Open FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: var(--s-5) 0;
  border-top: 1px solid var(--border-subtle);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 500;
}

.faq-item p {
  margin: var(--s-2) 0 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 64ch;
}

/* Closing & Footer */
.closing {
  background: var(--bg-secondary);
  padding: var(--s-9) 0 var(--s-7) 0;
}

.closing__cta {
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
}

.closing__cta-copy {
  max-width: 560px;
}

.footer__cols {
  padding: var(--s-7) 0;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--t-in) var(--ease);
}

.footer__list a:hover {
  color: var(--text-primary);
}

.footer__legal {
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1180px) {
  :root {
    --gut: 48px;
  }

  .os-card.span-3 {
    grid-column: span 6;
  }
}

@media (max-width: 1023px) {
  .nav__links {
    display: none;
  }

  .nav__menu-btn {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + var(--s-6));
    padding-bottom: var(--s-7);
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }

  .os-card.span-3 {
    grid-column: span 6;
  }

  .footer__col.span-2 {
    grid-column: span 4;
  }

  .app-frame {
    grid-template-columns: 1fr;
  }

  .app-frame__list {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .section-head--split {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 639px) {
  :root {
    --nav-h: 56px;
    --gut: 24px;
  }

  .nav__cta-desktop {
    display: none;
  }

  .section {
    padding: var(--s-7) 0;
  }

  .os-card.span-3 {
    grid-column: span 12;
  }

  .hero__facts {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
  }

  .app-window__body {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .app-window__title {
    display: none;
  }

  .inspect-grid,
  .detail-rows,
  .conv-grid {
    grid-template-columns: 1fr;
  }

  .footer__col.span-2 {
    grid-column: span 6;
  }

  .code-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-btn {
    justify-content: center;
  }
}

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