/*
 * TaskCrew website styles.
 *
 * The colours, radius and fonts are the app's own (apps/web/src/styles/tokens.css), so the site and the product look
 * like one thing. Light on :root, dark under prefers-color-scheme or data-theme="dark" (the toggle in the header).
 */

/* ------------------------------------------------------------------ tokens */

:root {
  --primary: oklch(0.55 0.21 277);
  --primary-hover: oklch(0.5 0.22 277);
  --primary-fg: oklch(0.99 0 0);
  --primary-soft: oklch(0.96 0.025 277);
  --primary-line: oklch(0.86 0.07 277);
  --agent: oklch(0.6 0.2 300);
  --agent-soft: oklch(0.96 0.03 300);
  --agent-line: oklch(0.86 0.08 300);

  --bg: oklch(0.99 0.002 270);
  --fg: oklch(0.21 0.02 270);
  --surface: oklch(1 0 0);
  --surface-muted: oklch(0.975 0.004 270);
  --muted: oklch(0.96 0.006 270);
  --muted-fg: oklch(0.52 0.02 270);
  --subtle-fg: oklch(0.62 0.015 270);
  --border: oklch(0.92 0.008 270);
  --border-strong: oklch(0.87 0.01 270);
  --sidebar: oklch(0.975 0.005 270);
  --sidebar-active: oklch(0.93 0.02 277);

  --success: oklch(0.62 0.16 150);
  --success-soft: oklch(0.96 0.04 150);
  --warning: oklch(0.72 0.16 70);
  --warning-soft: oklch(0.97 0.05 85);
  --danger: oklch(0.58 0.22 25);
  --danger-soft: oklch(0.96 0.03 25);
  --info: oklch(0.62 0.15 240);
  --info-soft: oklch(0.96 0.03 240);

  --band: oklch(0.2 0.03 275);
  --band-fg: oklch(0.96 0.01 275);
  --band-muted: oklch(0.75 0.03 275);
  --band-border: oklch(0.32 0.04 275);
  --band-surface: oklch(0.25 0.035 275);

  --grad: linear-gradient(135deg, #5046e5, #8b5cf6);
  --glow: oklch(0.55 0.21 277 / 0.16);
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 270 / 0.06);
  --shadow: 0 1px 2px oklch(0.2 0.02 270 / 0.05), 0 8px 24px -8px oklch(0.2 0.02 270 / 0.12);
  --shadow-lg: 0 2px 6px oklch(0.2 0.02 270 / 0.05), 0 30px 60px -20px oklch(0.25 0.06 277 / 0.28);

  --radius: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --primary: oklch(0.68 0.17 277);
    --primary-hover: oklch(0.73 0.15 277);
    --primary-fg: oklch(0.15 0.02 270);
    --primary-soft: oklch(0.27 0.06 277);
    --primary-line: oklch(0.42 0.1 277);
    --agent: oklch(0.72 0.17 300);
    --agent-soft: oklch(0.28 0.06 300);
    --agent-line: oklch(0.45 0.1 300);
    --bg: oklch(0.17 0.01 270);
    --fg: oklch(0.94 0.005 270);
    --surface: oklch(0.205 0.012 270);
    --surface-muted: oklch(0.19 0.01 270);
    --muted: oklch(0.25 0.012 270);
    --muted-fg: oklch(0.72 0.015 270);
    --subtle-fg: oklch(0.6 0.015 270);
    --border: oklch(0.29 0.014 270);
    --border-strong: oklch(0.35 0.016 270);
    --sidebar: oklch(0.185 0.011 270);
    --sidebar-active: oklch(0.28 0.03 277);
    --success: oklch(0.7 0.15 150);
    --success-soft: oklch(0.27 0.05 150);
    --warning: oklch(0.8 0.15 75);
    --warning-soft: oklch(0.29 0.05 75);
    --danger: oklch(0.68 0.19 25);
    --danger-soft: oklch(0.28 0.06 25);
    --info: oklch(0.72 0.13 240);
    --info-soft: oklch(0.27 0.05 240);
    --band: oklch(0.13 0.02 275);
    --band-surface: oklch(0.19 0.03 275);
    --band-border: oklch(0.29 0.04 275);
    --glow: oklch(0.68 0.17 277 / 0.18);
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.35), 0 10px 28px -10px oklch(0 0 0 / 0.6);
    --shadow-lg: 0 2px 6px oklch(0 0 0 / 0.4), 0 30px 70px -20px oklch(0 0 0 / 0.75);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --primary: oklch(0.68 0.17 277);
  --primary-hover: oklch(0.73 0.15 277);
  --primary-fg: oklch(0.15 0.02 270);
  --primary-soft: oklch(0.27 0.06 277);
  --primary-line: oklch(0.42 0.1 277);
  --agent: oklch(0.72 0.17 300);
  --agent-soft: oklch(0.28 0.06 300);
  --agent-line: oklch(0.45 0.1 300);
  --bg: oklch(0.17 0.01 270);
  --fg: oklch(0.94 0.005 270);
  --surface: oklch(0.205 0.012 270);
  --surface-muted: oklch(0.19 0.01 270);
  --muted: oklch(0.25 0.012 270);
  --muted-fg: oklch(0.72 0.015 270);
  --subtle-fg: oklch(0.6 0.015 270);
  --border: oklch(0.29 0.014 270);
  --border-strong: oklch(0.35 0.016 270);
  --sidebar: oklch(0.185 0.011 270);
  --sidebar-active: oklch(0.28 0.03 277);
  --success: oklch(0.7 0.15 150);
  --success-soft: oklch(0.27 0.05 150);
  --warning: oklch(0.8 0.15 75);
  --warning-soft: oklch(0.29 0.05 75);
  --danger: oklch(0.68 0.19 25);
  --danger-soft: oklch(0.28 0.06 25);
  --info: oklch(0.72 0.13 240);
  --info-soft: oklch(0.27 0.05 240);
  --band: oklch(0.13 0.02 275);
  --band-surface: oklch(0.19 0.03 275);
  --band-border: oklch(0.29 0.04 275);
  --glow: oklch(0.68 0.17 277 / 0.18);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow: 0 1px 2px oklch(0 0 0 / 0.35), 0 10px 28px -10px oklch(0 0 0 / 0.6);
  --shadow-lg: 0 2px 6px oklch(0 0 0 / 0.4), 0 30px 70px -20px oklch(0 0 0 / 0.75);
  color-scheme: dark;
}

/* -------------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
/* Line icons (viewBox 24) default to the text size; components set their own sizes where needed. */
svg[viewBox='0 0 24 24'] {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: oklch(0.55 0.21 277 / 0.22);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ layout */

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: calc(820px + 2 * var(--gutter));
}
.section {
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
}
.section-tight {
  padding: clamp(40px, 6vw, 72px) 0;
}
.section-muted {
  background: var(--surface-muted);
  border-block: 1px solid var(--border);
}
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-head.left {
  margin-left: 0;
  text-align: left;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow.agent {
  color: var(--agent);
}
.h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
  font-weight: 680;
}
.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted-fg);
  text-wrap: pretty;
}
.section-head .lead {
  margin: 16px auto 0;
  max-width: 640px;
}
.section-head.left .lead {
  margin-left: 0;
}
.muted {
  color: var(--muted-fg);
}
.small {
  font-size: 0.875rem;
}
.tiny {
  font-size: 0.78rem;
}
.mono {
  font-family: var(--mono);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center {
  text-align: center;
}
.stack > * + * {
  margin-top: 12px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row.center {
  justify-content: center;
}
.grid {
  display: grid;
  gap: 20px;
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.g5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .g4,
  .g5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .g2,
  .g3,
  .g4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .g5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split.even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.split.flip > :first-child {
  order: 2;
}
@media (max-width: 900px) {
  .split,
  .split.even {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.flip > :first-child {
    order: 0;
  }
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s,
    color 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.18) inset,
    0 6px 16px -6px oklch(0.55 0.21 277 / 0.55);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--primary-line);
  background: var(--primary-soft);
}
.btn-ghost {
  color: var(--muted-fg);
}
.btn-ghost:hover {
  color: var(--fg);
  background: var(--muted);
}
.btn-agent {
  background: var(--agent);
  color: white;
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
}
.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.btn .arrow {
  transition: transform 0.15s;
}
.btn:hover .arrow,
.link-arrow:hover .arrow {
  transform: translateX(3px);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
}
.link-arrow .arrow {
  transition: transform 0.15s;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta-row.center {
  justify-content: center;
}
.microcopy {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted-fg);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.microcopy.center {
  justify-content: center;
}
.microcopy span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.microcopy svg {
  width: 15px;
  height: 15px;
  color: var(--success);
}

/* -------------------------------------------------------- chips and badges */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 550;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-fg);
  white-space: nowrap;
}
.chip svg {
  width: 13px;
  height: 13px;
}
.chip.primary {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-line);
}
.chip.agent {
  background: var(--agent-soft);
  color: var(--agent);
  border-color: var(--agent-line);
}
.chip.success {
  background: var(--success-soft);
  color: var(--success);
  border-color: transparent;
}
.chip.warning {
  background: var(--warning-soft);
  color: oklch(0.55 0.14 65);
  border-color: transparent;
}
:root[data-theme='dark'] .chip.warning {
  color: var(--warning);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .chip.warning {
    color: var(--warning);
  }
}
.chip.danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}
.chip.info {
  background: var(--info-soft);
  color: var(--info);
  border-color: transparent;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--muted-fg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}
.pill-link:hover {
  border-color: var(--primary-line);
}
.pill-link b {
  font-weight: 600;
  color: var(--fg);
}
.pill-link .tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--grad);
  color: white;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.card p {
  color: var(--muted-fg);
  font-size: 0.94rem;
  margin: 0;
}
a.card,
.card.hover {
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
a.card:hover,
.card.hover:hover {
  border-color: var(--primary-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card .card-link {
  margin-top: 14px;
  font-size: 0.875rem;
}
.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
  flex: none;
}
.icon-tile svg {
  width: 20px;
  height: 20px;
}
.icon-tile.agent {
  background: var(--agent-soft);
  color: var(--agent);
}
.icon-tile.success {
  background: var(--success-soft);
  color: var(--success);
}
.icon-tile.warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.icon-tile.emoji {
  font-size: 20px;
  background: var(--muted);
}
.card-plain {
  padding: 4px 0;
}
.card-plain h3 {
  font-size: 1.02rem;
  margin: 0 0 6px;
}
.card-plain p {
  color: var(--muted-fg);
  font-size: 0.94rem;
  margin: 0;
}

/* ------------------------------------------------------------------ header */

.announce {
  background: var(--band);
  color: var(--band-fg);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px var(--gutter);
}
.announce a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--band-fg);
}
.announce b {
  font-weight: 600;
}
.announce .arrow {
  opacity: 0.7;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 680;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin-right: 14px;
  flex: none;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -4px oklch(0.55 0.21 277 / 0.6);
}
.logo-mark svg {
  width: 15px;
  height: 15px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 520;
  color: var(--muted-fg);
  transition:
    color 0.15s,
    background 0.15s;
}
.nav-link:hover,
.nav-item.open > .nav-link,
.nav-link[aria-current='page'] {
  color: var(--fg);
  background: var(--muted);
}
.nav-link .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.nav-item.open .chev {
  transform: rotate(180deg);
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-toggle,
.menu-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted-fg);
}
.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--muted);
  color: var(--fg);
}
.theme-toggle svg,
.menu-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .moon {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: none;
  }
  :root:not([data-theme='light']) .theme-toggle .moon {
    display: block;
  }
}
.menu-toggle {
  display: none;
}
.mega {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 560px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s,
    transform 0.15s,
    visibility 0.15s;
}
.nav-item.open .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.mega-cols {
  display: grid;
  gap: 8px 24px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
}
.mega-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--subtle-fg);
  font-weight: 600;
  margin: 4px 10px 8px;
}
.mega-col a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.12s;
}
.mega-col a:hover {
  background: var(--muted);
}
.mega-col a .mi {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.mega-col a .mi svg {
  width: 16px;
  height: 16px;
}
.mega-col a b {
  display: block;
  font-size: 0.9rem;
  font-weight: 560;
  line-height: 1.3;
}
.mega-col a small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted-fg);
  line-height: 1.35;
  margin-top: 2px;
}
.mega-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.85rem;
}
.mega-foot a {
  color: var(--muted-fg);
  padding: 4px 10px;
  border-radius: 8px;
}
.mega-foot a:hover {
  color: var(--fg);
  background: var(--muted);
}
@media (max-width: 1080px) {
  .nav-menu,
  .nav-right .hide-md {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
}
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--bg);
  overflow-y: auto;
  padding: 12px var(--gutter) 40px;
  display: none;
}
.drawer.open {
  display: block;
}
.drawer details {
  border-bottom: 1px solid var(--border);
}
.drawer summary {
  list-style: none;
  padding: 16px 4px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.drawer summary::-webkit-details-marker {
  display: none;
}
.drawer details[open] summary svg {
  transform: rotate(180deg);
}
.drawer summary svg {
  width: 18px;
  transition: transform 0.2s;
}
.drawer .drawer-links {
  padding: 0 4px 16px;
  display: grid;
  gap: 2px;
}
.drawer .drawer-links h5 {
  margin: 10px 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--subtle-fg);
}
.drawer .drawer-links a {
  padding: 8px 0;
  color: var(--muted-fg);
}
.drawer > a.drawer-top {
  display: block;
  padding: 16px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.drawer .drawer-cta {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
body.drawer-open {
  overflow: hidden;
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 50% -80px, var(--glow), transparent 70%),
    radial-gradient(500px 300px at 85% 10%, oklch(0.6 0.2 300 / 0.08), transparent 70%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black 30%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.hero .container {
  position: relative;
}
.hero-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-center .lead {
  margin: 22px auto 0;
  max-width: 700px;
}
.hero-center .cta-row {
  justify-content: center;
  margin-top: 32px;
}
.hero-center .microcopy {
  justify-content: center;
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-split .lead {
  margin-top: 20px;
}
.hero-split .cta-row {
  margin-top: 28px;
}
@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hero-visual {
  margin-top: clamp(40px, 6vw, 64px);
  position: relative;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-bottom: 18px;
}
.breadcrumb a:hover {
  color: var(--fg);
}

/* ------------------------------------------------- app window (screenshots) */

.window {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.window-glow {
  position: relative;
}
.window-glow::before {
  content: '';
  position: absolute;
  inset: 8% 6% -6%;
  background: var(--grad);
  filter: blur(70px);
  opacity: 0.22;
  border-radius: 40px;
  z-index: -1;
}
.window-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.window-bar .url {
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--subtle-fg);
  font-family: var(--mono);
  padding: 3px 14px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window img {
  width: 100%;
}
.shot {
  position: relative;
}
.shot figcaption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--subtle-fg);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.shot figcaption svg {
  width: 14px;
  height: 14px;
}
figure {
  margin: 0;
}
.phone {
  width: 260px;
  border-radius: 34px;
  padding: 10px;
  background: oklch(0.2 0.02 270);
  box-shadow: var(--shadow-lg);
}
.phone img {
  border-radius: 26px;
}
.dark-only {
  display: none;
}
:root[data-theme='dark'] .dark-only {
  display: block;
}
:root[data-theme='dark'] .light-only {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .dark-only {
    display: block;
  }
  :root:not([data-theme='light']) .light-only {
    display: none;
  }
}

/* --------------------------------------------- live product mock (HTML UI) */

.app {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 440px;
  font-size: 13px;
  text-align: left;
  background: var(--bg);
}
.app-side {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-ws {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 4px 6px 12px;
}
.app-ws .logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.app-ws .logo-mark svg {
  width: 11px;
  height: 11px;
}
.app-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--muted-fg);
}
.app-nav svg {
  width: 15px;
  height: 15px;
}
.app-nav.active {
  background: var(--sidebar-active);
  color: var(--fg);
  font-weight: 550;
}
.app-nav .count {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 10.5px;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.app-side h6 {
  margin: 12px 8px 4px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle-fg);
  font-weight: 600;
}
.app-main {
  padding: 16px 18px;
  min-width: 0;
  overflow: hidden;
}
.app-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.app-head .ic {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--surface);
  font-size: 14px;
}
.app-head b {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.app-crumb {
  font-size: 11px;
  color: var(--subtle-fg);
}
.app-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  width: max-content;
  margin-bottom: 14px;
  max-width: 100%;
  overflow: hidden;
}
.app-tabs span {
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted-fg);
  font-size: 12px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}
.app-tabs span.on {
  background: var(--surface);
  color: var(--fg);
  font-weight: 560;
  box-shadow: var(--shadow-sm);
}
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 10px;
  overflow: hidden;
}
.col {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  min-height: 300px;
}
.col-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 8px;
  font-weight: 600;
  font-size: 12.5px;
}
.col-head .ring {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.col-head .n {
  color: var(--subtle-fg);
  font-weight: 500;
}
.tcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 7px;
  box-shadow: var(--shadow-sm);
  animation: card-in 0.35s ease both;
}
.tcard .key {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--subtle-fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tcard .t {
  font-weight: 550;
  margin: 3px 0 6px;
  line-height: 1.35;
}
.tcard .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tcard .meta span {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-fg);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tcard .meta .money {
  color: var(--success);
  border-color: var(--success-soft);
  background: var(--success-soft);
  font-weight: 600;
}
.tcard.agent-on {
  border-color: var(--agent-line);
  box-shadow: 0 0 0 3px var(--agent-soft);
}
.av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 8.5px;
  font-weight: 700;
  color: white;
  flex: none;
}
.av.ai {
  background: var(--agent-soft);
  font-size: 10px;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* --------------------------------------------------- team switcher (hero) */

.switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
}
.switcher button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--muted-fg);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s;
}
.switcher button:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}
.switcher button[aria-selected='true'] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.switch-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-fg);
}
@media (max-width: 760px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-side {
    display: none;
  }
  .board {
    grid-auto-columns: minmax(160px, 72%);
    overflow-x: auto;
  }
}

/* ------------------------------------------------------------- run timeline */

.run {
  border: 1px solid var(--agent-line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  font-size: 13.5px;
  text-align: left;
  box-shadow: var(--shadow-lg);
}
.run-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--agent-soft), transparent);
  border-bottom: 1px solid var(--border);
}
.run-head .tm {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--agent-soft);
  border: 1px solid var(--agent-line);
  flex: none;
}
.run-head b {
  display: block;
  font-size: 14.5px;
}
.run-head small {
  display: block;
  color: var(--muted-fg);
  font-size: 12px;
}
.run-head .status {
  margin-left: auto;
}
.run-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted-fg);
  border-bottom: 1px solid var(--border);
}
.run-meta .sep {
  opacity: 0.4;
}
.run-steps {
  list-style: none;
  padding: 12px 16px 6px;
  position: relative;
  min-height: 300px;
}
.run-step {
  position: relative;
  padding: 0 0 14px 30px;
  animation: step-in 0.35s ease both;
}
.run-step::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.run-step:last-child::before {
  display: none;
}
.run-step .ico {
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted-fg);
}
.run-step .ico svg {
  width: 11px;
  height: 11px;
}
.run-step.ok .ico {
  color: var(--success);
  border-color: var(--success);
}
.run-step.wait .ico {
  color: var(--warning);
  border-color: var(--warning);
}
.run-step.no .ico {
  color: var(--danger);
  border-color: var(--danger);
}
.run-step .txt {
  color: var(--fg);
}
.run-step .sub {
  color: var(--muted-fg);
  font-size: 12px;
}
.tool {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  background: var(--surface-muted);
}
.tool .ro {
  margin-left: auto;
  font-family: var(--font);
  font-size: 11px;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool .ms {
  color: var(--subtle-fg);
  font-family: var(--font);
  font-size: 11px;
}
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}
.typing::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 8px;
  margin-left: 6px;
  background: radial-gradient(circle, currentColor 2px, transparent 2.5px) 0 50% / 6px 6px repeat-x;
  animation: dots 1s steps(4) infinite;
  vertical-align: middle;
  opacity: 0.6;
}
@keyframes dots {
  from {
    width: 0;
  }
  to {
    width: 24px;
  }
}

/* --------------------------------------------------------- approval card */

.approval {
  margin-top: 8px;
  border: 1px solid var(--agent-line);
  border-radius: 12px;
  background: color-mix(in oklch, var(--agent-soft) 45%, var(--surface));
  padding: 12px;
  display: grid;
  gap: 10px;
  font-size: 13px;
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--agent-soft) 70%, transparent);
}
.approval.closed {
  background: var(--surface);
  box-shadow: none;
  border-color: var(--border);
}
.approval-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.approval-head .who {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}
.approval-head .who small {
  display: block;
  color: var(--muted-fg);
  font-size: 11.5px;
}
.approval-head .tm-icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-radius: 8px;
}
.approval-head .q {
  width: 16px;
  height: 16px;
  color: var(--agent);
  flex: none;
  margin-top: 2px;
}
.approval-args {
  margin: 0;
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 9px 10px;
  display: grid;
  grid-template-columns: minmax(70px, auto) 1fr;
  gap: 5px 12px;
  font-size: 12px;
}
.approval-args dt {
  color: var(--muted-fg);
  font-weight: 560;
  font-size: 11.5px;
}
.approval-args dd {
  margin: 0;
  word-break: break-word;
}
.approval-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.approval-status p {
  margin: 0;
  flex: 1;
  min-width: 180px;
  font-size: 11.5px;
  color: var(--agent);
  display: flex;
  gap: 6px;
  align-items: center;
}
.approval-status p svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.approval-status p .left {
  color: var(--muted-fg);
}
.approval-status p.ok {
  color: var(--success);
}
.approval-status p.no {
  color: var(--danger);
}
.approval-status .btns {
  display: flex;
  gap: 8px;
}
.approval .btn {
  height: 30px;
  font-size: 12.5px;
  padding: 0 12px;
  border-radius: 8px;
}
.btn-approve {
  background: var(--agent);
  color: white;
}
.btn-approve:hover {
  filter: brightness(1.08);
}
.btn-reject {
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.btn-reject:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.reject-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reject-form input {
  flex: 1 1 160px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 0 10px;
  font-size: 12.5px;
}
.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}
.result-comment {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-muted);
  font-size: 12.5px;
}
.result-comment b {
  font-size: 12.5px;
}
.run-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted-fg);
  background: var(--surface-muted);
}
.run-foot button {
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
}

/* ------------------------------------------------------------ dark band */

.band {
  background: var(--band);
  color: var(--band-fg);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 360px at 15% 0%, oklch(0.55 0.21 277 / 0.32), transparent 70%),
    radial-gradient(600px 360px at 95% 100%, oklch(0.6 0.2 300 / 0.22), transparent 70%);
  pointer-events: none;
}
.band .container {
  position: relative;
}
.band .lead,
.band .muted,
.band .card p {
  color: var(--band-muted);
}
.band .eyebrow {
  color: oklch(0.78 0.12 285);
}
.band .card {
  background: var(--band-surface);
  border-color: var(--band-border);
  box-shadow: none;
}
.band .icon-tile {
  background: oklch(0.55 0.21 277 / 0.22);
  color: oklch(0.82 0.1 285);
}
.band .btn-secondary {
  background: transparent;
  color: var(--band-fg);
  border-color: var(--band-border);
}
.band .btn-secondary:hover {
  background: oklch(1 0 0 / 0.06);
}
.band .link-arrow {
  color: oklch(0.8 0.12 285);
}
.band .chip {
  background: oklch(1 0 0 / 0.06);
  border-color: var(--band-border);
  color: var(--band-fg);
}

/* ------------------------------------------------------------- feature row */

.frow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.frow + .frow {
  margin-top: clamp(64px, 9vw, 112px);
}
.frow.flip .frow-text {
  order: 2;
}
.frow-text .h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}
.frow-text .lead {
  margin-top: 14px;
  font-size: 1.05rem;
}
.checks {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.checks li svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--primary);
}
.checks.agent li svg {
  color: var(--agent);
}
@media (max-width: 900px) {
  .frow {
    grid-template-columns: minmax(0, 1fr);
  }
  .frow.flip .frow-text {
    order: 0;
  }
}

/* ------------------------------------------------------------------- tabs */

.tabs-list {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tabs-list.left {
  justify-content: flex-start;
}
.tab-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 560;
  font-size: 0.9rem;
  color: var(--muted-fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.tab-btn:hover {
  color: var(--fg);
}
.tab-btn[aria-selected='true'] {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.tab-panel[hidden] {
  display: none;
}
.tab-panel {
  animation: fade-in 0.3s ease;
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 900px) {
  .showcase {
    grid-template-columns: minmax(0, 1fr);
  }
}
.suggested {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-strong);
}
.suggested .tiny {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle-fg);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

/* ------------------------------------------------------------ step flow */

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.step .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.step p {
  color: var(--muted-fg);
  font-size: 0.93rem;
  margin: 0;
}
.steps-v {
  list-style: none;
  display: grid;
  gap: 4px;
}
.steps-v li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  cursor: default;
  transition: background 0.15s;
}
.steps-v li.on {
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.steps-v .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  font-weight: 650;
  font-size: 0.85rem;
  color: var(--muted-fg);
  background: var(--surface);
}
.steps-v li.on .num {
  background: var(--grad);
  color: white;
  border-color: transparent;
}
.steps-v h3 {
  font-size: 1rem;
  margin: 4px 0 4px;
}
.steps-v p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.93rem;
}

/* ------------------------------------------------------- before / after */

.ba {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .ba {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ba-col {
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.ba-col.without {
  background: var(--surface-muted);
}
.ba-col.with {
  border-color: var(--primary-line);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.ba-col h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ba-col ul {
  list-style: none;
  display: grid;
  gap: 12px;
}
.ba-col li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
}
.ba-col li svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
}
.ba-col.without li svg {
  color: var(--danger);
}
.ba-col.with li svg {
  color: var(--success);
}
.sprawl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.sprawl span {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed var(--border-strong);
  font-size: 0.8rem;
  color: var(--muted-fg);
  background: var(--surface);
  transform: rotate(var(--r, 0deg));
}

/* ------------------------------------------------------------ tool picker */

.picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .picker {
    grid-template-columns: minmax(0, 1fr);
  }
}
.picker-opts {
  display: grid;
  gap: 8px;
}
.picker-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.picker-opt:hover {
  border-color: var(--border-strong);
}
.picker-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.picker-opt .box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.15s;
}
.picker-opt .box svg {
  width: 13px;
  height: 13px;
  color: white;
  opacity: 0;
}
.picker-opt:has(input:checked) {
  border-color: var(--primary-line);
  background: var(--primary-soft);
}
.picker-opt:has(input:checked) .box {
  background: var(--primary);
  border-color: var(--primary);
}
.picker-opt:has(input:checked) .box svg {
  opacity: 1;
}
.picker-opt:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.picker-opt b {
  font-weight: 560;
  font-size: 0.95rem;
}
.picker-opt small {
  display: block;
  color: var(--muted-fg);
  font-size: 0.8rem;
}
.picker-out {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border-radius: var(--radius-xl);
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.picker-big {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.picker-big .to {
  font-size: 1.2rem;
  color: var(--muted-fg);
  font-weight: 500;
}
.picker-list {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.picker-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-muted);
  animation: fade-in 0.25s ease;
}
.picker-list li .arrow {
  color: var(--subtle-fg);
}
.picker-list li b {
  font-weight: 600;
}

/* --------------------------------------------------------- item type grid */

.items-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1000px) {
  .items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.item-tile {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.18s;
  display: block;
}
.item-tile:hover {
  border-color: var(--primary-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.item-tile .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: white;
}
.item-tile .ico svg {
  width: 19px;
  height: 19px;
}
.item-tile b {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
}
.item-tile small {
  display: block;
  color: var(--muted-fg);
  font-size: 0.83rem;
  margin-top: 3px;
  line-height: 1.4;
}

/* ---------------------------------------------------------- teammate cards */

.tm-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.18s;
  text-align: left;
  width: 100%;
}
.tm-card:hover {
  border-color: var(--agent-line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.tm-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tm-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
  background: var(--agent-soft);
  border: 1px solid var(--agent-line);
}
.tm-card b {
  font-size: 0.98rem;
  font-weight: 600;
  display: block;
  line-height: 1.3;
}
.tm-card .cat {
  font-size: 0.75rem;
  color: var(--subtle-fg);
}
.tm-card p {
  font-size: 0.88rem;
  color: var(--muted-fg);
  margin: 0;
  line-height: 1.5;
}
.tm-needs {
  font-size: 0.78rem;
  color: var(--muted-fg);
}
.tm-needs code {
  font-size: 0.75rem;
  background: var(--muted);
  padding: 1px 6px;
  border-radius: 5px;
}
.tm-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.conn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  padding: 2px 8px 2px 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-fg);
}
.conn-chip i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: white;
  font-style: normal;
  font-size: 8.5px;
  font-weight: 700;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}
.filter-bar .search {
  flex: 1 1 240px;
  max-width: 340px;
  position: relative;
}
.filter-bar .search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  color: var(--subtle-fg);
}
.input {
  width: 100%;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 0 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.55 0.21 277 / 0.18);
}
.filter-bar .search .input {
  padding-left: 36px;
}
textarea.input {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.fchip {
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 540;
  color: var(--muted-fg);
  transition: all 0.15s;
}
.fchip:hover {
  color: var(--fg);
}
.fchip[aria-pressed='true'] {
  background: var(--agent);
  border-color: var(--agent);
  color: white;
}
.fchip .n {
  opacity: 0.65;
  margin-left: 4px;
  font-size: 0.78rem;
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted-fg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

/* dialog (teammate detail) */
dialog.sheet {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  width: min(640px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-lg);
}
dialog.sheet::backdrop {
  background: oklch(0.2 0.02 270 / 0.45);
  backdrop-filter: blur(3px);
}
.sheet-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
}
.sheet-head .tm-icon {
  width: 46px;
  height: 46px;
  font-size: 22px;
}
.sheet-head h3 {
  font-size: 1.25rem;
}
.sheet-head .close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted-fg);
  flex: none;
}
.sheet-head .close:hover {
  background: var(--muted);
}
.sheet-body {
  padding: 18px 24px 24px;
}
.sheet-body h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle-fg);
  margin: 20px 0 10px;
}
.sheet-body h4:first-child {
  margin-top: 0;
}
.inputs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.inputs-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.inputs-table td:first-child {
  width: 34%;
  font-family: var(--mono);
  font-size: 0.8rem;
  padding-right: 12px;
}
.task-example {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface-muted);
}
.task-example b {
  display: block;
  margin-bottom: 6px;
}
.task-example pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--muted-fg);
}

/* -------------------------------------------------------- control grid */

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .control-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------- code block */

.code {
  border-radius: var(--radius-lg);
  border: 1px solid oklch(0.3 0.03 275);
  background: oklch(0.17 0.02 275);
  color: oklch(0.92 0.01 275);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.code-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 8px 0;
  border-bottom: 1px solid oklch(0.28 0.03 275);
  overflow-x: auto;
}
.code-tabs button {
  padding: 8px 12px;
  font-size: 0.8rem;
  color: oklch(0.7 0.03 275);
  border-radius: 7px 7px 0 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.code-tabs button[aria-selected='true'] {
  color: white;
  border-bottom-color: oklch(0.7 0.15 285);
}
.code-tabs .copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border: 1px solid oklch(0.32 0.03 275);
}
.code-tabs .copy:hover {
  color: white;
}
.code-tabs .copy svg {
  width: 13px;
  height: 13px;
}
.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
}
.code .c {
  color: oklch(0.6 0.03 275);
}
.code .k {
  color: oklch(0.78 0.14 300);
}
.code .s {
  color: oklch(0.8 0.13 150);
}
.code .p {
  color: oklch(0.75 0.12 240);
  user-select: none;
}
.inline-code {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--muted);
  border: 1px solid var(--border);
}

/* terminal (mcp + self-host) */
.term-log {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.75;
  padding: 18px 20px;
  min-height: 250px;
}
.term-log div {
  animation: step-in 0.3s ease both;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-log .ok {
  color: oklch(0.8 0.13 150);
}
.term-log .dim {
  color: oklch(0.62 0.03 275);
}
.term-log .tool {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: oklch(0.78 0.14 300);
  font-size: inherit;
}

/* --------------------------------------------------------------- spec table */

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec th,
.spec td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec tr:last-child th,
.spec tr:last-child td {
  border-bottom: 0;
}
.spec th {
  width: 36%;
  font-weight: 560;
  background: var(--surface-muted);
}
.spec td {
  color: var(--muted-fg);
}
@media (max-width: 640px) {
  .spec th,
  .spec td {
    display: block;
    width: 100%;
  }
  .spec th {
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .spec td {
    padding-top: 0;
  }
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.ctable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 720px;
}
.ctable th,
.ctable td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.ctable thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  font-size: 0.95rem;
  z-index: 1;
}
.ctable thead th small {
  display: block;
  font-weight: 450;
  color: var(--muted-fg);
  font-size: 0.8rem;
}
.ctable tbody th {
  font-weight: 500;
  color: var(--fg);
}
.ctable td {
  color: var(--muted-fg);
}
.ctable td.us {
  background: color-mix(in oklch, var(--primary-soft) 55%, transparent);
  color: var(--fg);
}
.ctable thead th.us {
  background: var(--primary-soft);
  color: var(--primary);
}
.ctable .grp th {
  background: var(--surface-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle-fg);
  font-weight: 600;
  padding-top: 18px;
}
.ctable .yes {
  color: var(--success);
  font-weight: 600;
}
.ctable .no {
  color: var(--subtle-fg);
}
.ctable tr:last-child td,
.ctable tr:last-child th {
  border-bottom: 0;
}
.checked-line {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted-fg);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.checked-line svg {
  width: 14px;
  height: 14px;
}

/* ------------------------------------------------------------------ pricing */

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  gap: 2px;
  box-shadow: var(--shadow-sm);
}
.billing-toggle button {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--muted-fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.billing-toggle button[aria-pressed='true'] {
  background: var(--fg);
  color: var(--bg);
}
.billing-toggle .save {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-weight: 650;
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1080px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.plan.pop {
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px var(--primary-soft),
    var(--shadow);
}
.plan .badge {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: white;
  font-size: 0.74rem;
  font-weight: 650;
}
.plan h3 {
  font-size: 1.15rem;
}
.plan .tagline {
  color: var(--muted-fg);
  font-size: 0.88rem;
  min-height: 2.8em;
  margin: 6px 0 18px;
  line-height: 1.4;
}
.plan .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 52px;
}
.plan .price b {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan .price span {
  color: var(--muted-fg);
  font-size: 0.85rem;
  line-height: 1.3;
}
.plan .price-note {
  font-size: 0.8rem;
  color: var(--muted-fg);
  min-height: 2.6em;
  margin: 8px 0 18px;
}
.plan ul {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-top: 22px;
  font-size: 0.9rem;
}
.plan li {
  display: flex;
  gap: 9px;
}
.plan li svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 4px;
  color: var(--primary);
}
.plan .ai-line {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--agent-soft);
  color: var(--agent);
  font-size: 0.82rem;
  font-weight: 560;
  display: flex;
  gap: 8px;
  align-items: center;
}
.plan .ai-line svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* calculator */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
}
.calc-in {
  padding: 28px;
  display: grid;
  gap: 22px;
  align-content: start;
}
.calc-out {
  padding: 28px;
  background: var(--surface-muted);
  border-left: 1px solid var(--border);
  display: grid;
  gap: 16px;
  align-content: start;
}
@media (max-width: 860px) {
  .calc-out {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}
.calc label.lbl {
  display: flex;
  justify-content: space-between;
  font-weight: 560;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.calc label.lbl output {
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  font-weight: 650;
}
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--muted);
}
.seg button {
  flex: 1;
  height: 36px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--muted-fg);
}
.seg button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
input[type='range'] {
  width: 100%;
  accent-color: var(--primary);
  height: 24px;
}
.calc-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.calc-stat:last-of-type {
  border-bottom: 0;
}
.calc-stat span {
  color: var(--muted-fg);
  font-size: 0.9rem;
}
.calc-stat b {
  font-size: 1.35rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.calc-stat b small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-fg);
  letter-spacing: 0;
}
.meter {
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
  position: relative;
}
.meter i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--grad);
  transition:
    width 0.3s,
    background 0.3s;
}
.meter-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--subtle-fg);
  margin-top: 6px;
}
.calc-msg {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.calc-msg svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}
.calc-msg.warn {
  border-color: var(--warning);
  background: var(--warning-soft);
}
.calc-msg.stop {
  border-color: var(--agent-line);
  background: var(--agent-soft);
}

/* --------------------------------------------------------------------- FAQ */

.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 4px;
  font-weight: 560;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex: none;
  transition:
    transform 0.2s,
    background 0.2s;
}
.faq summary .plus svg {
  width: 14px;
  height: 14px;
}
.faq details[open] summary .plus {
  transform: rotate(45deg);
  background: var(--muted);
}
.faq .ans {
  padding: 0 4px 22px;
  color: var(--muted-fg);
  max-width: 720px;
}
.faq .ans p:last-child {
  margin: 0;
}
.faq .ans a {
  color: var(--primary);
  font-weight: 550;
}

/* -------------------------------------------------------------- final CTA */

.final {
  padding: clamp(64px, 9vw, 104px) 0;
}
.final-box {
  border-radius: 28px;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
  background: var(--band);
  color: var(--band-fg);
  position: relative;
  overflow: hidden;
}
.final-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 50% -10%, oklch(0.55 0.21 277 / 0.5), transparent 70%),
    radial-gradient(400px 260px at 90% 110%, oklch(0.6 0.2 300 / 0.35), transparent 70%);
}
.final-box > * {
  position: relative;
}
.final-box .h2 {
  max-width: 760px;
  margin: 0 auto;
}
.final-box .lead {
  color: var(--band-muted);
  margin: 16px auto 0;
  max-width: 560px;
}
.final-box .cta-row {
  justify-content: center;
  margin-top: 30px;
}
.final-box .btn-secondary {
  background: transparent;
  border-color: var(--band-border);
  color: var(--band-fg);
}
.final-box .btn-secondary:hover {
  background: oklch(1 0 0 / 0.07);
}
.final-box .microcopy {
  justify-content: center;
  color: var(--band-muted);
}
.final-box .spark {
  width: 44px;
  height: 44px;
  margin: 0 auto 22px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px oklch(0.55 0.21 277 / 0.8);
}
.final-box .spark svg {
  width: 22px;
  height: 22px;
}

/* ------------------------------------------------------------------ strips */

.logo-strip {
  text-align: center;
}
.logo-strip p {
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-bottom: 18px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}
.logo-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 540;
  color: var(--muted-fg);
}
.mono-tile {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  flex: none;
  letter-spacing: -0.02em;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 540;
  color: var(--muted-fg);
  white-space: nowrap;
}
.security-strip {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.security-strip .items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  flex: 1;
}
.security-strip .items span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 520;
}
.security-strip .items svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* -------------------------------------------------------- proof / receipts */

.receipts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .receipts {
    grid-template-columns: minmax(0, 1fr);
  }
}
.receipt {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.receipt .big {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
}
.receipt p {
  font-size: 0.9rem;
  color: var(--muted-fg);
  margin: 0 0 10px;
}
.receipt .src {
  display: flex;
  gap: 6px;
  align-items: center;
  word-break: break-all;
  font-size: 0.76rem;
  font-family: var(--mono);
  color: var(--subtle-fg);
}
.letter {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 1.05rem;
  line-height: 1.75;
}
.letter p {
  color: var(--fg);
}
.letter .sig {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted-fg);
  font-size: 0.95rem;
}

/* changelog */
.cl-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1000px) {
  .cl-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .cl-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cl-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: block;
  transition: all 0.15s;
}
.cl-card:hover {
  border-color: var(--primary-line);
  transform: translateY(-2px);
}
.cl-card time {
  font-size: 0.78rem;
  color: var(--subtle-fg);
  font-family: var(--mono);
}
.cl-card b {
  display: block;
  margin: 8px 0 6px;
  font-size: 0.98rem;
  line-height: 1.35;
}
.cl-card p {
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin: 0;
}
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.tl-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 48px;
  position: relative;
}
.tl-entry::before {
  content: '';
  position: absolute;
  left: 160px;
  top: 10px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-entry::after {
  content: '';
  position: absolute;
  left: 155px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.tl-date {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted-fg);
  padding-top: 2px;
  text-align: right;
}
.tl-body {
  padding-left: 22px;
}
.tl-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.tl-body > p {
  color: var(--muted-fg);
}
.tl-body ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.tl-body li {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.93rem;
}
.tl-body li b {
  font-weight: 600;
}
.tl-body li .chip {
  height: 22px;
  font-size: 0.72rem;
  margin-right: 8px;
}
@media (max-width: 700px) {
  .tl-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .tl-entry::before,
  .tl-entry::after {
    display: none;
  }
  .tl-date {
    text-align: left;
  }
  .tl-body {
    padding-left: 0;
  }
}

/* ------------------------------------------------------------ mini mocks */

.mock {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  font-size: 13px;
  text-align: left;
  overflow: hidden;
}
.mock-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
  margin-bottom: 14px;
}
.mock-title .ic {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 14px;
}
.mock-title .right {
  margin-left: auto;
  font-weight: 500;
}
.mrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--surface);
}
.mrow .grow {
  flex: 1;
  min-width: 0;
}
.mrow .grow b {
  display: block;
  font-weight: 560;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mrow .grow small {
  color: var(--muted-fg);
  font-size: 11.5px;
}
.mrow .ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--muted);
  flex: none;
  font-size: 14px;
}
.mrow .ic svg {
  width: 15px;
  height: 15px;
}
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}
.bar.success i {
  background: var(--success);
}
.bar.agent i {
  background: var(--agent);
}
.bar.warning i {
  background: var(--warning);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.kpi {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.kpi small {
  color: var(--muted-fg);
  font-size: 11px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.kpi b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 2px;
}
.mgrid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.mgrid th {
  text-align: left;
  font-weight: 560;
  color: var(--muted-fg);
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface-muted);
}
.mgrid td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.mgrid .tag {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 550;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding: 0 4px;
}
.bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: var(--primary);
  opacity: 0.85;
  transform-origin: bottom;
  animation: grow 0.8s ease both;
}
.bars i:nth-child(odd) {
  background: color-mix(in oklch, var(--primary) 60%, var(--agent));
}
@keyframes grow {
  from {
    transform: scaleY(0);
  }
}
.donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  flex: none;
}
.donut::after {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--surface);
}
.legend {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.legend span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.vault-row .mask {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted-fg);
}
.chat-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.chat-msg .bubble {
  font-size: 13px;
  line-height: 1.5;
}
.chat-msg .bubble b {
  font-size: 12.5px;
  margin-right: 6px;
}
.chat-msg .bubble small {
  color: var(--subtle-fg);
  font-size: 11px;
}
.chat-msg .bubble .made {
  margin-top: 6px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--primary-line);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 560;
}
.av-lg {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.form-field {
  margin-bottom: 12px;
}
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 560;
  margin-bottom: 5px;
}
.form-field .fake {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  padding: 7px 10px;
  color: var(--muted-fg);
  font-size: 12.5px;
  background: var(--surface);
}
.goal-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.goal-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.goal-card b {
  font-weight: 600;
  font-size: 13px;
}
.goal-card .pct {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.plus-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--primary);
}
.plus-btn:hover {
  background: var(--primary-soft);
}

/* -------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  padding: 64px 0 32px;
  font-size: 0.9rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(0, 1fr));
  gap: 32px 24px;
}
@media (max-width: 1080px) {
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.footer-brand p {
  color: var(--muted-fg);
  margin: 14px 0 18px;
  max-width: 300px;
  font-size: 0.88rem;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 9px;
}
.footer-col a {
  color: var(--muted-fg);
  font-size: 0.86rem;
}
.footer-col a:hover {
  color: var(--fg);
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  color: var(--muted-fg);
  font-size: 0.82rem;
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-bottom a:hover {
  color: var(--fg);
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted-fg);
}
.status-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}

/* ------------------------------------------------------------- page bits */

.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.anchor-nav .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 10px;
  padding-bottom: 10px;
}
.anchor-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 540;
  color: var(--muted-fg);
  white-space: nowrap;
}
.anchor-nav a:hover,
.anchor-nav a.on {
  color: var(--fg);
  background: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.field label {
  display: block;
  font-weight: 560;
  font-size: 0.9rem;
  margin-bottom: 7px;
}
.form-card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-done {
  text-align: center;
  padding: 30px 10px;
}
.form-done .icon-tile {
  margin: 0 auto 16px;
}
.note-box {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 0.92rem;
  color: var(--muted-fg);
  display: flex;
  gap: 12px;
}
.note-box svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--primary);
}
.note-box b {
  color: var(--fg);
}
.can-cant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .can-cant {
    grid-template-columns: minmax(0, 1fr);
  }
}
.can-cant .card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.can-cant .card li {
  display: flex;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--muted-fg);
}
.can-cant .card li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
}
.can-cant .can li svg {
  color: var(--success);
}
.can-cant .cant li svg {
  color: var(--danger);
}
.diagram {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(18px, 3vw, 32px);
}
.diagram svg {
  width: 100%;
  height: auto;
}
.kbd {
  font-family: var(--mono);
  font-size: 0.78em;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border-strong);
}
.prose {
  max-width: 720px;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
}
.prose p,
.prose li {
  color: var(--muted-fg);
}
.prose ul {
  padding-left: 20px;
  margin-bottom: 1em;
}
.prose a {
  color: var(--primary);
}

/* ------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* agent queue (MCP mock) */
.queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 34px auto auto;
  gap: 0 8px;
}
.queue .col {
  grid-row: 1 / 4;
  min-height: 170px;
}
.queue .spacer {
  grid-row: 1;
  grid-column: 1;
}
.queue .tcard {
  margin: 0 7px 7px;
  z-index: 1;
  align-self: start;
  font-size: 12px;
}
.queue [data-state='todo'] {
  grid-column: 1;
}
.queue [data-state='progress'] {
  grid-column: 2;
  border-color: var(--warning);
}
.queue [data-state='done'] {
  grid-column: 3;
  border-color: var(--success);
}
.queue [data-state='done'] .t {
  text-decoration: line-through;
  color: var(--muted-fg);
}

/* icon sizing in inline contexts */
.run-meta span,
.run-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.run-meta svg,
.run-foot svg {
  width: 14px;
  height: 14px;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.eyebrow svg {
  width: 15px;
  height: 15px;
}
.app-tabs span svg {
  width: 13px;
  height: 13px;
}
.tcard .meta svg {
  width: 11px;
  height: 11px;
}
.tcard .meta span {
  white-space: nowrap;
}
.tcard .key .chip svg {
  width: 10px;
  height: 10px;
}
.mrow > svg {
  width: 16px;
  height: 16px;
}
.kpi small svg {
  width: 12px;
  height: 12px;
}
.breadcrumb svg {
  width: 14px;
  height: 14px;
}
.tool svg {
  width: 13px;
  height: 13px;
}
.tool .ro svg {
  width: 11px;
  height: 11px;
}
.tab-btn svg {
  width: 16px;
  height: 16px;
}
.ba-col h3 svg {
  width: 18px;
  height: 18px;
}
.run-step .sub .tool {
  color: var(--fg);
}

/* A live run grows as it plays: keep the hero text still beside it. */
.hero-split:has(.run) {
  align-items: start;
}
.hero-split:has(.run) > :first-child {
  padding-top: clamp(0px, 4vw, 56px);
}
.split:has(> .reveal > .run) {
  align-items: start;
}

/* Brighter gradient text on dark backgrounds. */
:root[data-theme='dark'] .grad-text {
  background-image: linear-gradient(135deg, #8f8cff, #c4a5fa);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .grad-text {
    background-image: linear-gradient(135deg, #8f8cff, #c4a5fa);
  }
}

/* Mega menus open from the left edge of the menu bar, so none can run off the screen. */
.nav-menu {
  position: relative;
}
.nav-menu .nav-item {
  position: static;
}
.mega {
  left: 0;
  transform: translateY(6px);
}
.nav-item.open .mega {
  transform: translateY(0);
}

/* The full menu bar needs about 1200px; below that the compact menu takes over. */
.nav-link {
  white-space: nowrap;
}
@media (max-width: 1200px) {
  .nav-menu,
  .nav-right .hide-md {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
}

/* ---- ai.css ---- */
/* AI pages: the sandbox architecture, the delegation tree and the tools table. */

.arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1.2fr) 70px minmax(0, 0.9fr);
  align-items: center;
  gap: 0;
}
.arch-box {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.arch-box h4 {
  font-size: 0.98rem;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.arch-box h4 svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.arch-box.sandbox {
  border: 2px dashed var(--agent-line);
  background: color-mix(in oklch, var(--agent-soft) 40%, var(--surface));
}
.arch-box.sandbox h4 svg {
  color: var(--agent);
}
.arch-box ul {
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--muted-fg);
}
.arch-box li {
  display: flex;
  gap: 8px;
}
.arch-box li svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--success);
}
.arch-box li.no svg {
  color: var(--danger);
}
.arch-sub {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 0.85rem;
}
.arch-sub b {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
}
.arch-sub span {
  color: var(--muted-fg);
}
.arch-link {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted-fg);
  text-align: center;
  padding: 0 6px;
}
.arch-link i {
  display: block;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 6px, transparent 6px 10px);
  position: relative;
}
.arch-link i::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--primary);
}
.arch-out {
  display: grid;
  gap: 10px;
}
.arch-out .arch-box {
  padding: 14px 16px;
}
.arch-out .arch-box b {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
}
.arch-out .arch-box b svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}
.arch-out .arch-box small {
  display: block;
  color: var(--muted-fg);
  font-size: 0.78rem;
  margin-top: 2px;
}
@media (max-width: 1000px) {
  .arch {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .arch-link {
    padding: 8px 0;
  }
  .arch-link i {
    width: 2px;
    height: 34px;
    background: repeating-linear-gradient(180deg, var(--primary) 0 6px, transparent 6px 10px);
  }
  .arch-link i::after {
    right: -4px;
    top: auto;
    bottom: -6px;
    border-left-color: transparent;
    border-top-color: var(--primary);
  }
}

/* delegation tree */
.tree {
  display: grid;
  justify-items: center;
  gap: 0;
}
.tree-node {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
  max-width: 100%;
}
.tree-node .tm-icon {
  width: 32px;
  height: 32px;
  font-size: 16px;
}
.tree-node b {
  display: block;
  font-size: 0.9rem;
}
.tree-node small {
  color: var(--muted-fg);
  font-size: 0.78rem;
}
.tree-node.lead {
  border-color: var(--agent-line);
  box-shadow: 0 0 0 4px var(--agent-soft);
}
.tree-stem {
  width: 2px;
  height: 26px;
  background: var(--agent-line);
}
.tree-kids {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  padding-top: 26px;
  width: 100%;
}
.tree-kids::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16.6%;
  right: 16.6%;
  height: 2px;
  background: var(--agent-line);
}
.tree-kids > div {
  position: relative;
  display: grid;
  justify-items: center;
}
.tree-kids > div::before {
  content: '';
  position: absolute;
  top: -26px;
  left: 50%;
  width: 2px;
  height: 26px;
  background: var(--agent-line);
}
.tree-back {
  margin-top: 18px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--agent);
  font-weight: 560;
}
.tree-back svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 760px) {
  .tree-kids {
    grid-template-columns: minmax(0, 1fr);
  }
  .tree-kids::before {
    display: none;
  }
  .tree-kids > div::before {
    display: none;
  }
}

/* status chips legend */
.status-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.status-flow .arrow {
  color: var(--subtle-fg);
}

/* MCP tools table */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.tools-grid .card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.tools-grid .card li {
  font-size: 0.86rem;
  color: var(--muted-fg);
  line-height: 1.45;
}
.tools-grid .card li code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fg);
  background: var(--muted);
  padding: 1px 6px;
  border-radius: 5px;
  margin-right: 4px;
}
.prompt-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 20px;
}
.prompt-card blockquote {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-muted);
  border-left: 3px solid var(--primary);
  font-size: 0.88rem;
  color: var(--muted-fg);
}

/* gallery packs */
.pack {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 24px;
}
.pack + .pack {
  margin-top: 16px;
}
.pack-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  margin-bottom: 16px;
}
.pack-head h3 {
  font-size: 1.15rem;
}
.pack-head p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.92rem;
}
.ways {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1000px) {
  .ways {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.way {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 14px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 540;
}
.way .icon-tile {
  margin: 0 auto 10px;
}

/* ---- company.css ---- */
/* Trust, company and docs pages: enterprise, self-hosted, security, integrations, changelog, about, contact, demo
   (c-) and the docs (d-). Built on the tokens in public/css/site.css. */

/* ------------------------------------------------------------------ forms */

.c-form .form-grid {
  gap: 16px 18px;
}
.c-form textarea.input {
  min-height: 120px;
}
.c-opt {
  font-weight: 450;
  color: var(--subtle-fg);
  font-size: 0.8rem;
  margin-left: 4px;
}
.c-form-foot {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}
.c-form-foot p {
  margin: 0;
  flex: 1 1 220px;
}
.c-form-foot a,
.c-form .form-done a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.c-form .form-done .h3 {
  margin-top: 4px;
}
.c-mail {
  display: flex;
  flex-direction: column;
}
.c-mail-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 560;
  color: var(--primary);
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}
.c-mail-link svg {
  width: 16px;
  height: 16px;
}
.c-mail-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -------------------------------------------------------- page headers */

.c-hero-sm {
  padding-bottom: clamp(28px, 4vw, 48px);
}
.c-hero-sm .h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

/* ----------------------------------------------------------- anchor nav */

.c-anchored {
  scroll-margin-top: 58px;
}
.anchor-nav .container a[href] {
  scroll-margin: 0;
}

/* ----------------------------------------------------------- fact lists */

.c-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 760px) {
  .c-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}
.c-fact {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  gap: 14px;
}
.c-fact > svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--primary);
}
.c-fact.agent > svg {
  color: var(--agent);
}
.c-fact h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.c-fact p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.92rem;
}
.c-fact code,
.c-spec code,
.c-text code {
  font-family: var(--mono);
  font-size: 0.84em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--muted);
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.c-spec td a,
.c-text a,
.c-fact a {
  color: var(--primary);
}
.c-spec td a:hover,
.c-text a:hover,
.c-fact a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.c-sub {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.c-sub svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* ------------------------------------------------------- admin mocks */

.c-mock-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.c-mock-tabs span {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-fg);
}
.c-mock-tabs span.on {
  background: var(--primary-soft);
  border-color: var(--primary-line);
  color: var(--primary);
  font-weight: 560;
}
.c-setting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}
.c-setting .grow {
  flex: 1;
  min-width: 0;
}
.c-setting b {
  display: block;
  font-weight: 560;
  font-size: 13px;
}
.c-setting small {
  color: var(--muted-fg);
  font-size: 11.5px;
}
.c-switch {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  flex: none;
}
.c-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.25);
}
.c-switch.on {
  background: var(--primary);
}
.c-switch.on::after {
  left: 16px;
}
.c-log {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.c-log div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.c-log div:last-child {
  border-bottom: 0;
}
.c-log time {
  color: var(--subtle-fg);
  font-family: var(--mono);
  font-size: 11px;
  padding-top: 1px;
}
.c-log small {
  display: block;
  color: var(--muted-fg);
  font-size: 11.5px;
}

/* -------------------------------------------------------- deployment */

.c-deploy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 800px) {
  .c-deploy {
    grid-template-columns: minmax(0, 1fr);
  }
}
.c-deploy .card {
  padding: clamp(24px, 3vw, 32px);
}
.c-deploy h3 {
  font-size: 1.3rem;
}

/* ------------------------------------------------- self-hosted stack */

.c-stack {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  font-size: 13px;
  display: grid;
  gap: 10px;
  text-align: left;
}
.c-stack-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 14px;
  margin-bottom: 4px;
}
.c-stack-head .chip {
  margin-left: auto;
  font-weight: 500;
}
.c-tier {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--surface);
}
.c-tier .ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex: none;
}
.c-tier .ic svg {
  width: 16px;
  height: 16px;
}
.c-tier b {
  display: block;
  font-weight: 600;
}
.c-tier small {
  color: var(--muted-fg);
  font-size: 11.5px;
}
.c-tier .port {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-fg);
  white-space: nowrap;
}
.c-tier.sandbox {
  border: 1.5px dashed var(--agent-line);
  background: color-mix(in oklch, var(--agent-soft) 45%, var(--surface));
}
.c-tier.sandbox .ic {
  background: var(--agent-soft);
  color: var(--agent);
}
.c-tier.yours {
  background: var(--surface-muted);
}
.c-tier.yours .ic {
  background: var(--success-soft);
  color: var(--success);
}
.c-stack-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.c-arrow {
  display: flex;
  justify-content: center;
  color: var(--subtle-fg);
  font-size: 11px;
  gap: 6px;
  align-items: center;
  font-family: var(--mono);
}
.c-arrow svg {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
}
@media (max-width: 520px) {
  .c-stack-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-tier .port {
    display: none;
  }
}

/* ----------------------------------------------------- compare table */

.c-table td,
.c-table th {
  min-width: 180px;
}
.c-table tbody th {
  width: 22%;
}
.c-table code {
  font-family: var(--mono);
  font-size: 0.82em;
}

/* --------------------------------------------------------- integrations */

/* Groups flow down three columns, so short categories don't leave half-empty rows. */
.c-conn-groups {
  columns: 3 300px;
  column-gap: 16px;
}
.c-conn-group {
  break-inside: avoid;
  padding-bottom: 26px;
}
.c-conn-group h3 {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle-fg);
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.c-conn-group h3 .n {
  font-weight: 500;
  letter-spacing: 0;
}
.c-conn-grid {
  display: grid;
  gap: 12px;
}
.c-conn {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.c-conn .mono-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
}
.c-conn-body {
  min-width: 0;
  flex: 1;
}
.c-conn-name {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  margin-bottom: 4px;
}
.c-conn-name b {
  font-weight: 620;
  font-size: 1rem;
}
.c-conn-name .chip {
  height: 21px;
  font-size: 0.7rem;
  padding: 0 8px;
}
.c-conn p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted-fg);
}
.c-conn.custom {
  border-style: dashed;
  border-color: var(--border-strong);
  background: var(--surface-muted);
}
.c-conn.custom .mono-tile {
  background: var(--muted);
  color: var(--fg);
}
.c-conn.custom .mono-tile svg {
  width: 18px;
  height: 18px;
}

/* ------------------------------------------------------------- changelog */

.c-tl-entry {
  scroll-margin-top: 24px;
}
.c-tl-entry .tl-body h3 a:hover {
  color: var(--primary);
}
.c-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 4px;
}
.c-tags .chip {
  height: 23px;
  font-size: 0.72rem;
}
.c-tl-entry:target .tl-body h3 {
  color: var(--primary);
}
.c-tl-entry .tl-body li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.c-tl-entry .tl-body li .chip {
  flex: none;
  margin-right: 0;
  min-width: 96px;
  justify-content: center;
}
@media (max-width: 520px) {
  .c-tl-entry .tl-body li {
    flex-direction: column;
    gap: 6px;
  }
  .c-tl-entry .tl-body li .chip {
    min-width: 0;
  }
}

/* ------------------------------------------------------------------ about */

.c-letter-title {
  font-size: 1.6rem;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.c-letter .sig .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.c-letter .sig b {
  display: block;
  color: var(--fg);
}

/* ------------------------------------------------------------------- docs */

.d-hero {
  padding: clamp(36px, 5vw, 56px) 0 clamp(26px, 3vw, 36px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(700px 260px at 20% -60px, var(--glow), transparent 70%),
    var(--surface-muted);
}
.d-hero .lead {
  max-width: 760px;
  margin-top: 14px;
}
.d-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.035em;
}
.d-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding-top: 40px;
  padding-bottom: 96px;
  align-items: start;
}
.d-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.d-toc summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle-fg);
  margin-bottom: 10px;
  pointer-events: none;
}
.d-toc summary::-webkit-details-marker {
  display: none;
}
.d-toc summary svg {
  width: 15px;
  height: 15px;
}
.d-toc ul {
  list-style: none;
}
.d-toc a {
  display: block;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--muted-fg);
  border-left: 2px solid transparent;
}
.d-toc ul ul a {
  padding-left: 22px;
  font-size: 0.8rem;
  color: var(--subtle-fg);
}
.d-toc a:hover {
  color: var(--fg);
  background: var(--muted);
}
.d-toc a.on {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 560;
}
@media (max-width: 960px) {
  .d-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 24px;
  }
  .d-side {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .d-toc {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 12px 14px;
  }
  .d-toc summary {
    pointer-events: auto;
    cursor: pointer;
    margin: 0;
    font-size: 0.85rem;
    color: var(--fg);
  }
  .d-toc summary::after {
    content: '';
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted-fg);
    border-bottom: 2px solid var(--muted-fg);
    transform: rotate(45deg);
    transition: transform 0.15s;
  }
  .d-toc[open] summary::after {
    transform: rotate(225deg);
  }
  .d-toc[open] nav {
    margin-top: 10px;
    max-height: 60vh;
    overflow-y: auto;
  }
}

.d-prose {
  max-width: 800px;
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.72;
}
.d-prose > :first-child {
  margin-top: 0;
}
.d-prose h2 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  margin: 56px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.d-prose > h2:first-child {
  border-top: 0;
  padding-top: 0;
}
.d-prose h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 36px 0 10px;
}
.d-prose h4 {
  font-size: 1rem;
  margin: 26px 0 8px;
}
.d-prose h2 code,
.d-prose h3 code {
  font-size: 0.85em;
}
.d-anchor {
  margin-left: 10px;
  color: var(--subtle-fg);
  font-weight: 450;
  opacity: 0;
  transition: opacity 0.15s;
}
.d-prose :is(h2, h3, h4):hover .d-anchor,
.d-anchor:focus-visible {
  opacity: 1;
}
.d-prose p,
.d-prose li {
  color: color-mix(in oklch, var(--fg) 82%, var(--muted-fg));
}
.d-prose p {
  margin: 0 0 1em;
}
.d-prose ul,
.d-prose ol {
  padding-left: 22px;
  margin: 0 0 1em;
}
.d-prose li {
  margin: 0.3em 0;
}
.d-prose li > p {
  margin: 0 0 0.5em;
}
.d-prose li > ul,
.d-prose li > ol {
  margin: 0.3em 0 0.4em;
}
.d-prose ul {
  list-style: disc;
}
.d-prose ul ul {
  list-style: circle;
}
.d-prose li::marker {
  color: var(--subtle-fg);
}
.d-prose strong {
  font-weight: 620;
  color: var(--fg);
}
.d-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary-line);
  text-underline-offset: 2px;
}
.d-prose a:hover {
  text-decoration-color: currentColor;
}
.d-prose a.d-anchor {
  text-decoration: none;
}
.d-prose .d-ref {
  font-family: var(--mono);
  font-size: 0.86em;
}
.d-prose :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.84em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--muted);
  border: 1px solid var(--border);
  overflow-wrap: break-word;
  color: var(--fg);
}
.d-prose pre {
  margin: 0 0 1.2em;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid oklch(0.3 0.03 275);
  background: oklch(0.17 0.02 275);
  color: oklch(0.92 0.01 275);
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.65;
  max-width: 100%;
}
.d-prose pre code {
  font-size: inherit;
  background: none;
  border: 0;
  padding: 0;
}
.d-prose blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--primary-line);
}
.d-prose blockquote p {
  color: var(--muted-fg);
}
.d-prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.d-table {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.d-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.55;
}
.d-table th,
.d-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.d-table th {
  background: var(--surface-muted);
  font-weight: 600;
  white-space: nowrap;
}
.d-table td {
  color: color-mix(in oklch, var(--fg) 82%, var(--muted-fg));
  min-width: 120px;
}
.d-table tr:last-child td {
  border-bottom: 0;
}
.d-next {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.d-next p {
  margin-bottom: 18px;
}
.c-doc-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
}
.c-doc-mini .icon-tile {
  margin: 0;
}
.c-doc-mini b {
  display: block;
  font-size: 0.95rem;
  color: var(--fg);
}
.c-doc-mini small {
  color: var(--muted-fg);
  font-size: 0.8rem;
}
.d-prose .c-doc-mini,
.d-prose .c-doc-mini:hover {
  text-decoration: none;
}

/* docs hub */
.c-doc {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
}
.c-doc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.c-doc-top .icon-tile {
  margin: 0;
}
.c-doc .h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.c-doc-toc {
  list-style: none;
  margin: 16px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.c-doc-toc li {
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-fg);
}
.c-doc .card-link {
  margin-top: auto;
  padding-top: 16px;
}

.c-table a {
  color: var(--primary);
}
.c-table a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.c-table code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--muted);
  border: 1px solid var(--border);
}

/* ---- product.css ---- */
/* Product pages (/product and /product/*): the template's own pieces, the hub's groups and the product mocks.
   Every class starts with p-. Colours come from the site tokens, so light and dark both work. */

/* ------------------------------------------------------------ template */

.p-hero-visual {
  max-width: 1040px;
  margin-inline: auto;
}
.p-sublabel {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle-fg);
  margin: 0 0 12px;
}
.p-ai-cards {
  margin-top: clamp(28px, 4vw, 44px);
}
.p-ai-cards .grid {
  gap: 16px;
}
.p-ai-side {
  display: grid;
  gap: 14px;
}
.p-works .card h3 {
  display: flex;
  gap: 8px;
  align-items: center;
}
.p-sec-lead {
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.95rem;
  margin: 0 auto 16px;
  max-width: 640px;
}

/* ------------------------------------------------------------- the hub */

.p-group {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.p-group-head {
  position: sticky;
  top: calc(var(--header-h) + 80px);
}
.p-group-head .h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.p-group-head p {
  color: var(--muted-fg);
  margin: 12px 0 18px;
}
@media (max-width: 900px) {
  .p-group {
    grid-template-columns: minmax(0, 1fr);
  }
  .p-group-head {
    position: static;
  }
}
.p-fgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 620px) {
  .p-fgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.p-fcard {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
a.p-fcard:hover {
  border-color: var(--primary-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.p-fcard .icon-tile {
  margin: 0;
  width: 38px;
  height: 38px;
}
.p-fcard .icon-tile svg {
  width: 18px;
  height: 18px;
}
.p-fcard b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.98rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}
.p-fcard b svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  transition: transform 0.15s;
}
a.p-fcard:hover b svg {
  transform: translateX(3px);
}
.p-fcard p {
  color: var(--muted-fg);
  font-size: 0.88rem;
  margin: 4px 0 0;
  line-height: 1.5;
}
.p-person {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 28px;
}
@media (max-width: 560px) {
  .p-person {
    grid-template-columns: minmax(0, 1fr);
  }
}
.p-person div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.p-person svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: oklch(0.78 0.12 285);
}
.p-person b {
  display: block;
  font-weight: 620;
}
.p-person p {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--band-muted);
}
.band .shot figcaption {
  color: var(--band-muted);
}

/* ------------------------------------------------------- mock pieces */

.p-ring {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex: none;
}
.p-sq {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}
.p-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.p-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 560px) {
  .p-two,
  .p-three {
    grid-template-columns: minmax(0, 1fr);
  }
}
.p-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface);
  min-width: 0;
}
.p-box.p-soft {
  background: var(--surface-muted);
}
.p-h6 {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle-fg);
  margin: 12px 0 7px;
}
.p-h6:first-child {
  margin-top: 0;
}
.p-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.p-chips .chip {
  height: 22px;
  font-size: 11px;
  padding: 0 8px;
}
.p-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 5px 0;
  min-width: 0;
}
.p-line + .p-line {
  border-top: 1px dashed var(--border);
}
.p-line svg {
  width: 14px;
  height: 14px;
  color: var(--muted-fg);
  flex: none;
}
.p-line .r {
  margin-left: auto;
  color: var(--subtle-fg);
  font-size: 11.5px;
  white-space: nowrap;
}
.p-line .t {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-tok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-line);
  font-weight: 600;
  white-space: nowrap;
}
.p-tok.agent {
  background: var(--agent-soft);
  color: var(--agent);
  border-color: var(--agent-line);
}
.p-sentence {
  line-height: 2.1;
  font-size: 13px;
}
.p-note {
  font-size: 11.5px;
  color: var(--muted-fg);
  margin-top: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.p-note svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  white-space: nowrap;
}
.p-btn.primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: transparent;
}
.p-btn.agent {
  background: var(--agent);
  color: white;
  border-color: transparent;
}
.p-btn svg {
  width: 13px;
  height: 13px;
}
.p-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.p-arrow {
  display: grid;
  place-items: center;
  color: var(--subtle-fg);
  padding: 6px 0;
}
.p-arrow svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}
.p-toggle {
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: var(--primary);
  position: relative;
  flex: none;
}
.p-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
}
.p-toggle.off {
  background: var(--border-strong);
}
.p-toggle.off::after {
  right: auto;
  left: 2px;
}

/* charts drawn in SVG */
.p-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.p-chart .axis {
  stroke: var(--border);
  stroke-width: 1;
}
.p-chart .ideal {
  stroke: var(--border-strong);
  stroke-dasharray: 4 4;
  fill: none;
  stroke-width: 1.5;
}
.p-chart .actual {
  stroke: var(--primary);
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.p-chart .actual.agent {
  stroke: var(--agent);
}
.p-chart .area {
  fill: var(--primary-soft);
  opacity: 0.7;
}
.p-chart .p-dot {
  fill: var(--surface);
  stroke: var(--primary);
  stroke-width: 2;
}
.p-chart text {
  fill: var(--subtle-fg);
  font-size: 10px;
  font-family: var(--font);
}
.p-chart .p-bar {
  fill: var(--primary);
  opacity: 0.85;
}
.p-chart .p-bar.alt {
  fill: var(--agent);
  opacity: 0.75;
}

/* horizontal bars */
.p-hbars {
  display: grid;
  gap: 7px;
}
.p-hbar {
  display: grid;
  grid-template-columns: var(--p-lbl, 104px) minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
}
.p-hbar span:first-child {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}
.p-hbar span:last-child {
  text-align: right;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}
.p-hbar .bar {
  height: 10px;
  border-radius: 4px;
}
.p-hbar .bar i {
  border-radius: 4px;
}

/* mind map */
.p-mm rect {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1;
}
.p-mm .sub rect {
  fill: var(--surface-muted);
  stroke: var(--border);
}
.p-mm .root rect {
  fill: var(--primary);
  stroke: none;
}
.p-mm text {
  fill: var(--fg);
  font-size: 12px;
  font-family: var(--font);
  dominant-baseline: central;
  text-anchor: middle;
}
.p-mm .sub text {
  fill: var(--muted-fg);
  font-size: 11px;
}
.p-mm .root text {
  fill: var(--primary-fg);
  font-weight: 650;
  font-size: 13px;
}
.p-mm path {
  stroke: var(--border-strong);
  fill: none;
  stroke-width: 1.5;
}
.p-mm circle {
  stroke: none;
}

/* timeline strip (baselines) */
.p-tl {
  display: grid;
  gap: 8px;
}
.p-tl-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
}
.p-tl-row > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-tl-track {
  position: relative;
  height: 22px;
}
.p-tl-track i {
  position: absolute;
  height: 8px;
  border-radius: 4px;
}
.p-tl-track .p-tl-plan {
  top: 13px;
  background: var(--border-strong);
  opacity: 0.6;
}
.p-tl-track .p-tl-real {
  top: 2px;
  background: var(--primary);
}
.p-tl-track .p-tl-real.p-tl-crit {
  background: var(--danger);
}
.p-tl-track .p-tl-ms {
  top: 1px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--agent);
}
.p-tl-track .p-tl-slip {
  position: absolute;
  top: -1px;
  font-size: 10px;
  font-weight: 650;
  color: var(--danger);
  font-style: normal;
}

/* docs: cursors, menus, references */
.p-doc {
  font-size: 13.5px;
  line-height: 1.65;
}
.p-doc h4 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.p-doc p {
  margin: 0 0 8px;
  color: var(--fg);
}
.p-doc .todo {
  display: flex;
  gap: 8px;
  align-items: center;
}
.p-doc .todo i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  flex: none;
}
.p-doc .todo i.on {
  background: var(--primary);
  border-color: var(--primary);
}
.p-cur {
  position: relative;
  display: inline-block;
  width: 2px;
  height: 1.15em;
  vertical-align: text-bottom;
  margin: 0 1px;
}
.p-cur b {
  position: absolute;
  bottom: 100%;
  left: 0;
  font-size: 10px;
  font-weight: 650;
  color: white;
  padding: 0 5px;
  border-radius: 4px 4px 4px 0;
  white-space: nowrap;
  line-height: 1.6;
}
.p-sel {
  border-radius: 3px;
  padding: 1px 0;
}
.p-menu {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  font-size: 12.5px;
}
.p-menu .it {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 7px;
}
.p-menu .it.on {
  background: var(--muted);
}
.p-menu .it svg {
  width: 14px;
  height: 14px;
  color: var(--muted-fg);
  flex: none;
}
.p-menu .it small {
  margin-left: auto;
  color: var(--subtle-fg);
  font-size: 11px;
}
.p-menu .lbl {
  font-size: 10.5px;
  font-weight: 650;
  color: var(--subtle-fg);
  padding: 4px 8px 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.p-ref {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}
.p-ref svg {
  width: 12px;
  height: 12px;
}
.p-ref .k {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--subtle-fg);
}
.p-diff del {
  background: var(--danger-soft);
  color: var(--danger);
  text-decoration: line-through;
  border-radius: 3px;
  padding: 0 2px;
}
.p-diff ins {
  background: var(--success-soft);
  color: var(--success);
  text-decoration: none;
  border-radius: 3px;
  padding: 0 2px;
}

/* tables: views */
.p-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
}
.p-board .col {
  min-height: 0;
}
.p-board .tcard .t {
  margin-top: 0;
}
.p-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 11px;
}
.p-cal > div {
  min-height: 62px;
  padding: 5px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.p-cal > div:nth-child(7n) {
  border-right: 0;
}
.p-cal > div:nth-last-child(-n + 7) {
  border-bottom: 0;
}
.p-cal .dh {
  min-height: 0;
  background: var(--surface-muted);
  color: var(--muted-fg);
  font-weight: 600;
}
.p-cal .n {
  color: var(--subtle-fg);
  font-size: 10.5px;
}
.p-cal .ev {
  display: block;
  margin-top: 3px;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--border);
  background: var(--surface);
}
.p-cal .today .n {
  color: var(--primary);
  font-weight: 700;
}
.p-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 560px) {
  .p-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.p-gallery .g {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  font-size: 12px;
}
.p-gallery .cover {
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.p-gallery .g div:last-child {
  padding: 8px 10px;
}
.p-gallery b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-gallery small {
  color: var(--muted-fg);
  font-size: 11px;
}
.p-colhead {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.p-colhead svg {
  width: 12px;
  height: 12px;
  color: var(--subtle-fg);
}
.mgrid td.p-selcell {
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary-line);
}
.p-stars {
  color: var(--warning);
  letter-spacing: 1px;
}

/* goals */
.p-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.p-opt {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 12px;
  background: var(--surface);
}
.p-opt b {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 620;
  font-size: 12.5px;
}
.p-opt b svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}
.p-opt small {
  display: block;
  color: var(--muted-fg);
  font-size: 11px;
  margin-top: 2px;
  line-height: 1.4;
}
.p-opt.on {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.p-periods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.p-periods span {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--muted-fg);
  text-align: center;
}
.p-periods b {
  display: block;
  font-size: 13px;
  color: var(--fg);
}
.p-periods .ok b {
  color: var(--success);
}
.p-periods .now {
  border-color: var(--primary-line);
  background: var(--primary-soft);
}
.p-heat {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
}
.p-heat i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--muted);
}
.p-heat i.l1 {
  background: color-mix(in srgb, var(--success) 30%, var(--muted));
}
.p-heat i.l2 {
  background: color-mix(in srgb, var(--success) 62%, var(--muted));
}
.p-heat i.l3 {
  background: var(--success);
}

/* chat */
.p-chan {
  font-size: 12.5px;
}
.p-chan .h {
  font-size: 10.5px;
  font-weight: 650;
  color: var(--subtle-fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 10px 0 4px;
  display: flex;
  justify-content: space-between;
}
.p-chan .h:first-child {
  margin-top: 0;
}
.p-chan .c {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--muted-fg);
}
.p-chan .c.on {
  background: var(--muted);
  color: var(--fg);
}
.p-chan .c.bold {
  color: var(--fg);
  font-weight: 650;
}
.p-chan .c svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.p-chan .c .n {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--muted);
  color: var(--fg);
}
.p-chan .c .n.m {
  background: var(--primary);
  color: var(--primary-fg);
}
.p-react {
  display: flex;
  gap: 4px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.p-react span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted-fg);
  background: var(--surface);
}
.p-react span.me {
  border-color: var(--primary-line);
  background: var(--primary-soft);
  color: var(--primary);
}
.p-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 11.5px;
}
.p-file svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}
.p-file small {
  color: var(--subtle-fg);
}
.p-mention {
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 4px;
  padding: 0 3px;
  font-weight: 560;
}
.p-dock {
  position: relative;
  height: 340px;
  background: var(--bg);
  overflow: hidden;
}
.p-dock .bg {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  opacity: 0.55;
}
.p-dock .bg .col {
  min-height: 280px;
}
.p-dock .win {
  position: absolute;
  bottom: 0;
  width: 220px;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 11.5px;
}
.p-dock .win .wh {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
  font-size: 12px;
}
.p-dock .win .wh svg {
  width: 12px;
  height: 12px;
  color: var(--muted-fg);
}
.p-dock .win .wh .x {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.p-dock .win .wb {
  padding: 10px;
  display: grid;
  gap: 8px;
}
.p-dock .win .msg {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.p-dock .win .in {
  margin: 0 10px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--subtle-fg);
}
.p-dock .win.min {
  width: 170px;
}
@media (max-width: 600px) {
  .p-dock .win.hide-sm {
    display: none;
  }
  .p-dock .bg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p-dock .bg .col:nth-child(3) {
    display: none;
  }
}
.p-quote {
  border-left: 3px solid var(--border-strong);
  padding: 4px 10px;
  color: var(--muted-fg);
  font-size: 12px;
  margin: 6px 0;
}

/* dialogs and logs */
.p-dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}
.p-dialog h5 {
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 4px;
}
.p-dialog p {
  font-size: 12px;
  color: var(--muted-fg);
  margin: 0 0 10px;
}
.p-input {
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--muted-fg);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.p-input.focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.p-kv {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  font-size: 12.5px;
}
.p-kv > span:nth-child(odd) {
  color: var(--muted-fg);
}
.p-kv .val {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.p-kv .val .mono {
  font-family: var(--mono);
  letter-spacing: 0.08em;
}
.p-ico-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted-fg);
  flex: none;
}
.p-ico-btn svg {
  width: 12px;
  height: 12px;
}
.p-totp {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--fg);
}
.p-pie {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 62%, var(--muted) 62% 100%);
  flex: none;
}
.p-overlay {
  position: relative;
}
.p-overlay .p-dialog {
  position: relative;
  margin: -46px 18px 0 auto;
  max-width: 300px;
  z-index: 1;
}
@media (max-width: 560px) {
  .p-overlay .p-dialog {
    margin: 12px 0 0;
    max-width: none;
  }
}
.p-log .p-line .who {
  font-weight: 600;
}
.p-never {
  display: grid;
  gap: 8px;
}
.p-never div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 12.5px;
}
.p-never div > svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  color: var(--danger);
}
.p-never b {
  display: block;
  font-weight: 620;
}
.p-never small {
  color: var(--muted-fg);
  font-size: 11.5px;
}
.p-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 560px) {
  .p-health {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.p-health div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--muted-fg);
}
.p-health b {
  display: block;
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.p-health .bad b {
  color: var(--danger);
}
.p-health .warn b {
  color: var(--warning);
}

/* email preview */
.p-mail {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 12.5px;
}
.p-mail .mh {
  padding: 10px 12px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 2px;
}
.p-mail .mh small {
  color: var(--muted-fg);
  font-size: 11.5px;
}
.p-mail .mb {
  padding: 12px;
}

/* status update (comment) */
.p-update h6 {
  font-size: 12px;
  font-weight: 700;
  margin: 10px 0 3px;
}
.p-update h6:first-child {
  margin-top: 0;
}
.p-update p,
.p-update li {
  font-size: 12px;
  color: var(--muted-fg);
  margin: 0;
}
.p-update ul {
  margin: 0;
  padding-left: 16px;
}

/* anchors land below the sticky header (and the hub's jump chips) */
.frow[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.p-anchor {
  scroll-margin-top: calc(var(--header-h) + 52px);
}

/* hub: the ten item types under the hero */
.p-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 940px;
  margin-inline: auto;
}
.p-items a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 560;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.p-items a:hover {
  border-color: var(--primary-line);
  transform: translateY(-2px);
}
.p-items .ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
}
.p-items .ico svg {
  width: 14px;
  height: 14px;
}

/* ---- solutions.css ---- */
/*
 * Solutions, Compare and Switch pages (src/lib/solution-page.mjs, compare-page.mjs, solutions-kit.mjs).
 * Every class here starts with s-. Colours come from the site tokens, so light and dark mode both work.
 */

.s-anchor {
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.s-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.s-scroll .mgrid tfoot td {
  padding: 8px;
  background: var(--surface-muted);
  white-space: nowrap;
}
.s-key {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--subtle-fg);
  margin-right: 4px;
}
.s-mock-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted-fg);
}
.s-mock-note svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
  color: var(--primary);
}

/* ------------------------------------------------------------ pain cards */

.s-pain {
  display: flex;
  flex-direction: column;
}
.s-pain h3 {
  font-size: 1.12rem;
}
.s-fix {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 520;
  color: var(--fg);
}
.s-pain p {
  margin-bottom: 18px;
}
.s-fix {
  border-top: 1px dashed var(--border-strong);
}
.s-fix svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--success);
}

/* ------------------------------------------------------- template card */

.s-tpl-split {
  align-items: start;
}
.s-tpl {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 26px);
}
.s-tpl-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.s-tpl-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: none;
  border: 1px solid var(--border);
}
.s-tpl-head b {
  display: block;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}
.s-tpl-head small {
  display: block;
  color: var(--muted-fg);
  font-size: 0.88rem;
  margin-top: 2px;
  line-height: 1.45;
}
.s-tpl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 6px;
}
.s-tpl-item {
  border-top: 1px solid var(--border);
  padding: 14px 0 4px;
  margin-top: 10px;
}
.s-tpl-name {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.s-tpl-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 14px;
  flex: none;
}
.s-tpl-name b {
  font-weight: 620;
}
.s-tpl-type {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--subtle-fg);
}
.s-tpl-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}
.s-tpl-k {
  font-size: 0.75rem;
  color: var(--subtle-fg);
  font-weight: 560;
  padding-top: 4px;
}
.s-tpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.s-c {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 520;
  color: var(--fg);
  line-height: 1.3;
}
.s-c em {
  font-style: normal;
  color: var(--subtle-fg);
  font-weight: 450;
}
.s-c svg {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--primary);
}
.s-c .ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex: none;
}
.s-c .dot {
  width: 8px;
  height: 8px;
}
.s-tpl-note {
  font-size: 0.82rem;
  color: var(--muted-fg);
  margin: 4px 0 6px;
}
.s-tpl-grid {
  align-items: start;
}
.s-tpl-after {
  max-width: 760px;
  margin: 36px auto 0;
  display: grid;
  justify-items: center;
  text-align: center;
}
.s-tpl-after .checks {
  justify-items: start;
  text-align: left;
}
.s-tpl-after .cta-row {
  justify-content: center;
  align-items: center;
}
@media (max-width: 560px) {
  .s-tpl-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .s-tpl-k {
    padding-top: 0;
  }
}

/* ---------------------------------------------------------- AI section */

.s-ai-split {
  margin-bottom: clamp(36px, 5vw, 56px);
  align-items: start;
}
.s-ai-split .h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

/* --------------------------------------------------------- runs itself */

.s-rule {
  display: flex;
  flex-direction: column;
}
.s-rule-k {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.s-rule-k svg {
  width: 15px;
  height: 15px;
}
.s-sentence {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--fg);
}
.s-rule p {
  margin-top: auto;
}
.s-runs-visual {
  max-width: 980px;
  margin: clamp(40px, 6vw, 64px) auto 0;
}

/* ------------------------------------------------------------- playbook */

.s-pb-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted-fg);
  margin-bottom: 8px;
}
.s-pb-phase + .s-pb-phase {
  margin-top: 12px;
}
.s-pb-phase h6 {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle-fg);
  margin-bottom: 6px;
}
.s-pb-phase ol {
  list-style: none;
  display: grid;
  gap: 6px;
}
.s-pb-step {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
}
.s-pb-ic svg {
  width: 16px;
  height: 16px;
  display: block;
  color: var(--subtle-fg);
}
.s-pb-step.done .s-pb-ic svg {
  color: var(--success);
}
.s-pb-step.ready .s-pb-ic svg {
  color: var(--primary);
}
.s-pb-step.done .s-pb-t b {
  color: var(--muted-fg);
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
}
.s-pb-t {
  min-width: 0;
}
.s-pb-t b {
  display: block;
  font-weight: 540;
  font-size: 12.5px;
  line-height: 1.35;
}
.s-pb-t small {
  display: block;
  font-size: 11px;
  color: var(--warning);
  margin-top: 2px;
}
.s-pb-who {
  font-size: 11px;
  color: var(--muted-fg);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--muted);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .s-pb-step {
    grid-template-columns: 18px minmax(0, 1fr);
  }
  .s-pb-who {
    grid-column: 2;
    justify-self: start;
  }
}

/* ---------------------------------------------------------- all projects */

.s-ap-sum {
  font-size: 12.5px;
  color: var(--muted-fg);
  margin-bottom: 10px;
}
.s-ap-pct {
  min-width: 96px;
}
.s-ap th {
  white-space: normal;
  vertical-align: bottom;
}
.s-ap td {
  vertical-align: top;
}
.s-ap-sub {
  display: block;
  font-size: 10.5px;
  color: var(--subtle-fg);
  margin-top: 2px;
  font-weight: 450;
}
.s-ap-pct .bar {
  height: 6px;
  margin-bottom: 4px;
}
.s-ap-pct small {
  font-size: 11px;
  color: var(--muted-fg);
}

/* ------------------------------------------------------------ public link */

.s-pub .window {
  box-shadow: var(--shadow-lg);
}
.s-pub-body {
  padding: 22px;
  font-size: 13px;
  background: var(--bg);
}
.s-pub-by {
  font-size: 11.5px;
  color: var(--subtle-fg);
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.s-pub-body h4 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
}
.s-pub-meta {
  color: var(--muted-fg);
  font-size: 12px;
  margin: 0 0 14px;
}
.s-pub-g {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 12.5px;
  margin: 12px 0 6px;
}
.s-pub-g .ring {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

/* ---------------------------------------------------------- history mock */

.s-hist {
  display: grid;
  gap: 2px;
}
.s-hist-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.s-hist-row svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}
.s-hist-row time {
  color: var(--subtle-fg);
  font-size: 11px;
  white-space: nowrap;
}
.s-hist-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

/* ------------------------------------------------------- AI limit mock */

.s-lim-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.s-lim-top > div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.s-lim-top small {
  display: block;
  color: var(--muted-fg);
  font-size: 11px;
}
.s-lim-top b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 2px;
}
.s-lim-marks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--subtle-fg);
  margin: 6px 0 14px;
}
.s-lim-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in oklch, var(--warning) 45%, transparent);
  background: var(--warning-soft);
  margin-bottom: 12px;
}
.s-lim-msg svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--warning);
}
.s-lim-msg b {
  display: block;
  font-size: 13px;
  font-weight: 620;
}
.s-lim-msg small {
  display: block;
  font-size: 12px;
  color: var(--muted-fg);
  margin-top: 2px;
}
.s-lim-by .mrow > span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 560;
}
.s-cr {
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.s-cr-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 7px;
  font-size: 12.5px;
}
.s-cr-top span {
  color: var(--muted-fg);
}
.s-cr-top span b {
  color: var(--fg);
}
.s-cr small {
  display: block;
  font-size: 11px;
  color: var(--subtle-fg);
  margin-top: 5px;
}

/* ----------------------------------------------------------- import mock */

.s-imp-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.s-imp-steps span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 560;
  background: var(--success-soft);
  color: var(--success);
}
.s-imp-steps svg {
  width: 12px;
  height: 12px;
}
.s-imp-map {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.s-imp-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 14px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.s-imp-row:last-child {
  border-bottom: 0;
}
.s-imp-row .k {
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle-fg);
}
.s-imp-row .from {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-imp-row svg {
  width: 13px;
  height: 13px;
  color: var(--subtle-fg);
}
.s-imp-row .to {
  font-weight: 560;
}
.s-imp-dry {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  margin-bottom: 12px;
}
.s-imp-dry svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--primary);
  margin-top: 1px;
}
.s-imp-dry b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}
.s-imp-dry small {
  display: block;
  font-size: 11.5px;
  color: var(--muted-fg);
  margin-top: 3px;
}
.s-imp-prog {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 12.5px;
}
.s-imp-prog .btn {
  height: 30px;
  font-size: 12px;
  pointer-events: none;
}
.s-imp-prog .btn svg {
  width: 13px;
  height: 13px;
}

/* ------------------------------------------------------------ story card */

.s-story {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto;
}
.s-story-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 0.82rem;
  color: var(--muted-fg);
}
.s-ex {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--fg);
  border: 1px solid color-mix(in oklch, var(--warning) 50%, transparent);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.s-story-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(20px, 4vw, 36px) clamp(18px, 3vw, 36px);
}
.s-story-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.s-av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.s-story-who b {
  font-size: 1.05rem;
}
.s-story-who small {
  color: var(--muted-fg);
  font-size: 0.85rem;
}
.s-story-who p {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--fg);
  line-height: 1.5;
}
.s-story-who p span {
  display: block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle-fg);
  margin-bottom: 4px;
}
.s-story-title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.s-tl {
  list-style: none;
  display: grid;
  gap: 0;
  position: relative;
}
.s-tl li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 18px;
  position: relative;
}
.s-tl li::before {
  content: '';
  position: absolute;
  left: 102px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.s-tl li::after {
  content: '';
  position: absolute;
  left: 106px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: var(--border-strong);
}
.s-tl li:last-child::after {
  display: none;
}
.s-tl time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted-fg);
  padding-top: 3px;
  text-align: right;
}
.s-tl li > div {
  padding-left: 22px;
}
.s-tl b {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}
.s-tl p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.93rem;
  line-height: 1.55;
}
.s-story-out {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--success-soft);
  border: 1px solid color-mix(in oklch, var(--success) 40%, transparent);
  font-size: 0.93rem;
  font-weight: 520;
}
.s-story-out svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--success);
}
@media (max-width: 760px) {
  .s-story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .s-story-who {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
  }
  .s-av {
    grid-row: span 3;
    margin: 0;
  }
  .s-story-who p {
    grid-column: 1 / -1;
  }
  .s-story-bar {
    align-items: flex-start;
  }
  .s-tl li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding-left: 22px;
  }
  .s-tl li::before {
    left: 0;
    top: 6px;
  }
  .s-tl li::after {
    left: 4px;
    top: 18px;
  }
  .s-tl time {
    text-align: left;
    padding: 0;
  }
  .s-tl li > div {
    padding-left: 0;
  }
}

/* ------------------------------------------------------------- team grid */

.s-teams .card {
  display: flex;
  flex-direction: column;
}
.s-teams ul {
  list-style: none;
  display: grid;
  gap: 7px;
  margin: 14px 0 18px;
}
.s-teams li {
  display: flex;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted-fg);
}
.s-teams li svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  color: var(--primary);
}
.s-teams .link-arrow {
  margin-top: auto;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------ grouped FAQ */

.s-faq {
  max-width: 820px;
  margin: 0 auto;
}
.s-faq-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle-fg);
  margin: 36px 0 4px;
}
.s-faq-h:first-child {
  margin-top: 0;
}
.s-faq-h svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* ---------------------------------------------------------- compare table */

.s-ctable th[scope='row'] {
  width: 22%;
  min-width: 150px;
}
.s-ctable td {
  width: 39%;
}
.s-ctable td.us {
  font-weight: 450;
}
.s-ctable thead th small {
  margin-top: 2px;
}
.s-ctable .s-nc {
  color: var(--subtle-fg);
  font-style: italic;
}
.s-ctable .s-span {
  vertical-align: middle;
  background: var(--surface-muted);
  color: var(--muted-fg);
  font-size: 0.86rem;
  line-height: 1.55;
  border-left: 1px dashed var(--border-strong);
}
.s-ctable .s-span b {
  display: block;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 4px;
}
.s-ctable a,
.checked-line a {
  color: var(--primary);
  font-weight: 550;
}
.s-ctable-wrap {
  box-shadow: var(--shadow);
}
.s-swipe {
  display: none;
}
@media (max-width: 760px) {
  .s-ctable {
    min-width: 640px;
  }
  .s-ctable th[scope='row'] {
    min-width: 116px;
    width: 116px;
  }
  .s-ctable tbody th[scope='row'] {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--border);
  }
  .s-swipe {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--muted-fg);
  }
  .s-swipe svg {
    width: 14px;
    height: 14px;
  }
}

/* ------------------------------------------------------ may fit better */

.s-fit {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.s-fit-side {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.s-fit-side .lead {
  margin-top: 16px;
}
.s-take {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-line);
  background: var(--primary-soft);
}
.s-take svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
  color: var(--primary);
}
.s-take b {
  display: block;
  margin-bottom: 4px;
}
.s-take p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--fg);
  line-height: 1.55;
}
.s-fit-list {
  display: grid;
  gap: 14px;
}
.s-fit-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.s-fit-item .icon-tile {
  margin: 0;
}
.s-fit-item h3 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.s-fit-item p {
  margin: 0;
  color: var(--fg);
  font-size: 0.94rem;
}
.s-fit-item p.s-fit-us {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-strong);
  color: var(--muted-fg);
  font-size: 0.88rem;
}
.s-fit-us span {
  display: block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle-fg);
  margin-bottom: 3px;
}
@media (max-width: 900px) {
  .s-fit {
    grid-template-columns: minmax(0, 1fr);
  }
  .s-fit-side {
    position: static;
  }
}
@media (max-width: 480px) {
  .s-fit-item {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
}

/* ---------------------------------------------------------------- switch */

.s-src {
  display: flex;
  flex-direction: column;
}
.s-src-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.s-src-head .mono-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
}
.s-src-head .mono-tile svg {
  width: 20px;
  height: 20px;
}
.s-src-head h3 {
  margin: 0 0 3px;
}
.s-file {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--muted-fg);
}
.s-file svg {
  width: 13px;
  height: 13px;
}
.s-src h4 {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle-fg);
  margin: 4px 0 8px;
}
.s-src ol {
  padding-left: 20px;
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--fg);
}
.s-src ol li::marker {
  color: var(--primary);
  font-weight: 650;
}
.s-src p {
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.s-src p.s-src-note {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}
.s-src-note svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--primary);
}
.s-src-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--subtle-fg);
}
.s-src-foot .link-arrow {
  font-size: 0.84rem;
}
.s-src:target {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.s-steps5 .steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.s-steps5 .step:last-child .num {
  background: var(--success);
}
@media (max-width: 1000px) {
  .s-steps5 .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .s-steps5 .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.s-limits .receipt p {
  font-size: 0.95rem;
}
.s-help {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.s-help .lead {
  margin-top: 14px;
}
.s-help-cta {
  display: grid;
  gap: 14px;
  justify-items: start;
}
@media (max-width: 860px) {
  .s-help {
    grid-template-columns: minmax(0, 1fr);
  }
}
