/* Relay — operations OS. Shared marketing + app shell. 8px rhythm. */
:root {
  --white: #FFFFFF;
  --ink: #111827;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --pale: #F3F4F6;
  --success: #059669;
  --muted: #4B5563;
  --faint: #6B7280;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --blue-soft: #EFF6FF;
  --success-soft: #ECFDF5;
  --warn: #B45309;
  --warn-soft: #FFFBEB;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 12px 32px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 1px 2px rgba(17, 24, 39, 0.04), 0 24px 48px rgba(17, 24, 39, 0.08);
  --max: 1120px;
  --nav-h: 64px;
  --r: 8px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 16px; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.wrap-wide {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* Type */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}
h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}
h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--pale); }
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover { background: #000; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 17px;
}
.brand img { width: 24px; height: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); background: var(--pale); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.32);
  z-index: 30;
}
body.nav-open { overflow: hidden; }
body.nav-open .nav-overlay { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--ink); }
.footer-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--faint);
}

/* Hero */
.hero {
  padding: 80px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.hero h1 { max-width: 18ch; }
.hero .lead { margin-top: 20px; }
.hero .btn-row { margin-top: 32px; }
.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero-meta div { font-size: 13px; color: var(--muted); }
.hero-meta strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

/* Product mock */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: var(--pale);
  border-bottom: 1px solid var(--line);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D1D5DB;
  display: block;
}
.mock-url {
  flex: 1;
  height: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.mock-body { display: grid; grid-template-columns: 176px 1fr; min-height: 380px; }
.mock-side {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  background: #FCFCFD;
}
.mock-side .item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}
.mock-side .item.is-on { background: var(--blue-soft); color: var(--blue); font-weight: 550; }
.mock-side .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.mock-main { padding: 16px 20px 20px; }
.mock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.mock-toolbar h3 { font-size: 15px; }
.mock-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  font-family: var(--mono);
  font-size: 11px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.pill-ok { background: var(--success-soft); border-color: #A7F3D0; color: var(--success); }
.pill-risk { background: var(--warn-soft); border-color: #FDE68A; color: var(--warn); }
.pill-bad { background: var(--danger-soft); border-color: #FECACA; color: var(--danger); }
.pill-info { background: var(--blue-soft); border-color: #BFDBFE; color: var(--blue); }

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.kanban-col {
  background: var(--pale);
  border-radius: 8px;
  padding: 8px;
  min-height: 280px;
}
.kanban-col header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.kanban-col header span {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--faint);
}
.kcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}
.kcard .id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.kcard .title {
  font-size: 13px;
  font-weight: 550;
  margin: 4px 0 8px;
  letter-spacing: -0.01em;
}
.kcard .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--faint);
}

/* Sections */
.section { padding: 80px 0; }
.section-pale { background: var(--pale); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: end;
}
.section-head .lead { margin-top: 12px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  min-height: 220px;
}
.feature-card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 24px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 { color: #fff; max-width: 16ch; }
.cta-band p { color: #9CA3AF; margin-top: 12px; max-width: 40ch; }

/* Product deep dives */
.dive {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.dive:first-of-type { border-top: 0; padding-top: 0; }
.dive-copy .eyebrow { margin-bottom: 12px; }
.dive-copy h2 { margin-bottom: 16px; }
.dive-copy p { color: var(--muted); margin-bottom: 16px; }
.dive-copy ul { margin: 16px 0 0; }
.dive-copy li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.dive-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

.seg {
  display: inline-flex;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: 0;
  background: transparent;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
}
.seg button.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  padding: 12px 14px;
  background: var(--pale);
  border-bottom: 1px solid var(--line);
}
table.data td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #FAFBFC; }

/* Pricing */
.price-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.price-head .lead { margin: 16px auto 0; }
.billing-toggle { display: flex; justify-content: center; margin-bottom: 32px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.price-card .tier {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-card .blurb {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 24px;
  min-height: 40px;
}
.price-card .amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-card .amount b {
  font-size: 40px;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.price-card .amount span { color: var(--faint); font-size: 14px; }
.price-card .save {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--success);
  min-height: 16px;
  margin-top: 6px;
}
.price-card ul { margin: 24px 0 32px; flex: 1; }
.price-card li {
  font-size: 14px;
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--muted);
}
.price-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
}

.compare { margin-top: 72px; }
.compare h2 { margin-bottom: 8px; }
.compare .lead { margin-bottom: 24px; }
table.compare-table { font-size: 14px; }
table.compare-table td:not(:first-child),
table.compare-table th:not(:first-child) { text-align: center; }
.check { color: var(--success); font-weight: 600; }
.dash { color: #D1D5DB; }

/* Docs */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 48px 0 80px;
  min-height: 70vh;
}
.docs-side { position: sticky; top: 88px; align-self: start; }
.docs-search {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  margin-bottom: 20px;
}
.docs-search:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.docs-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
}
.docs-nav a:hover,
.docs-nav a.is-on { background: var(--pale); color: var(--ink); }
.docs-nav .group {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 16px 10px 6px;
}
.doc-article {
  padding-bottom: 56px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.doc-article:last-child { border-bottom: 0; }
.doc-article h2 { margin: 8px 0 16px; }
.doc-article p { color: var(--muted); margin-bottom: 14px; }
.doc-article pre,
.code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--ink);
  color: #E5E7EB;
  border-radius: 8px;
  padding: 16px 18px;
  overflow: auto;
  line-height: 1.6;
}
.doc-article code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--pale);
  padding: 1px 5px;
  border-radius: 4px;
}
.doc-article pre code { background: none; padding: 0; color: inherit; }
.doc-article h3 { margin: 28px 0 10px; }
.empty-docs {
  display: none;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--faint);
  text-align: center;
}
.docs-main.is-empty .empty-docs { display: block; }

/* Login */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual {
  background: var(--ink);
  color: #fff;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-visual .brand { color: #fff; }
.auth-visual h1 {
  font-size: 40px;
  max-width: 12ch;
  margin-top: 80px;
}
.auth-visual p { color: #9CA3AF; margin-top: 16px; max-width: 36ch; }
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-card { width: min(400px, 100%); }
.auth-card h2 { margin: 8px 0 8px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}
.field input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: transparent;
}
.auth-msg {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 14px;
  margin-bottom: 16px;
}
.auth-msg.is-on { display: block; }
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--faint);
  font-size: 12px;
}
.or::before, .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.demo-note { font-size: 13px; color: var(--faint); margin-top: 16px; text-align: center; }

/* App shell */
.app-body {
  background: #F8F9FB;
  min-height: 100vh;
  color: var(--ink);
}
.demo-banner {
  height: 32px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.demo-banner a { color: #93C5FD; text-decoration: underline; }
.app-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: calc(100vh - 32px);
}
.app-side {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
}
.app-side .brand { padding: 8px 10px 20px; }
.app-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}
.app-nav a.is-on,
.app-nav a:hover { background: var(--pale); color: var(--ink); }
.app-nav .ico {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--pale);
  border: 1px solid var(--line);
  flex: none;
}
.app-nav a.is-on .ico { background: var(--blue-soft); border-color: #BFDBFE; }
.app-side .grow { flex: 1; }
.ws-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.ws-chip b { display: block; font-size: 13px; }
.app-main { min-width: 0; }
.app-top {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}
.app-search {
  height: 36px;
  width: min(360px, 50vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--pale);
  font-size: 13px;
}
.app-user {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.app-content { padding: 24px; }
.app-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}
.app-title-row h1 {
  font-size: 24px;
  letter-spacing: -0.03em;
}
.app-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.stat .lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat .val {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 6px;
}
.app-split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-h h3 { font-size: 14px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px 0; }
.filter-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}
.filter-btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chart-box { padding: 16px 16px 20px; }
.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
}
.app-table td, .app-table th { white-space: nowrap; }

/* Utilities */
.page-hero { padding: 64px 0 24px; }
.page-hero .lead { margin-top: 16px; }
.hidden { display: none !important; }

@media (max-width: 960px) {
  .feature-grid, .price-grid, .app-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head, .dive, .auth-page, .docs-layout, .app-shell, .app-split, .mock-body {
    grid-template-columns: 1fr;
  }
  .mock-side { display: none; }
  .kanban { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; }
  .auth-visual { display: none; }
  .hero { padding-top: 48px; }
}
@media (max-width: 760px) {
  .wrap, .wrap-wide { width: calc(100% - 32px); }
  .nav-links, .nav-actions .hide-sm { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    z-index: 41;
    align-items: stretch;
  }
  body.nav-open .nav-links a { padding: 12px; }
  body.nav-open .nav-actions {
    position: fixed;
    top: auto;
    left: 16px;
    right: 16px;
    bottom: 24px;
    z-index: 41;
    background: #fff;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    justify-content: stretch;
  }
  body.nav-open .nav-actions .btn { flex: 1; }
  body.nav-open .nav-actions .hide-sm { display: inline-flex; }
  .kanban { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .app-search { display: none; }
  .app-content { padding: 16px; }
}

@media (max-width: 960px) {
  .app-shell { min-height: calc(100vh - 32px); }
  .app-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .app-side .brand { padding: 4px 8px 4px 0; }
  .app-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
  .app-nav a { margin: 0; }
  .app-side .grow { display: none; }
  .ws-chip { margin-left: auto; }
}
