/*
 * FUDISLTE website. Colours follow the product's design tokens (packages/ui/src/styles.css):
 * soft gray-blue canvas, white panels and the bright blue accent; deep navy in dark mode.
 * No external fonts or requests: the system font stack keeps the page fast and private.
 */

:root {
  color-scheme: light;
  --bg: oklch(0.985 0.004 255);
  --bg-alt: oklch(0.97 0.008 255);
  --card: oklch(1 0 0);
  --fg: oklch(0.208 0.042 265.755);
  --fg-soft: oklch(0.372 0.044 257.287);
  --muted: oklch(0.554 0.046 257.417);
  --primary: oklch(0.546 0.245 262.881);
  --primary-hover: oklch(0.488 0.243 264.376);
  --primary-fg: oklch(0.985 0 0);
  --primary-soft: oklch(0.955 0.023 254.6);
  --primary-soft-fg: oklch(0.488 0.243 264.376);
  --border: oklch(0.929 0.013 255.508);
  --border-strong: oklch(0.894 0.018 254);
  --ok: oklch(0.627 0.194 149.214);
  --ok-soft: oklch(0.962 0.044 156.743);
  --ok-fg: oklch(0.448 0.119 151.328);
  --warn: oklch(0.769 0.188 70.08);
  --warn-soft: oklch(0.962 0.059 95.617);
  --warn-fg: oklch(0.476 0.114 61.907);
  --code-bg: oklch(0.208 0.042 265.755);
  --code-head: oklch(0.255 0.045 265);
  --code-fg: oklch(0.929 0.013 255.508);
  --code-muted: oklch(0.704 0.04 256.788);
  --code-key: oklch(0.79 0.12 300);
  --header-bg: oklch(0.985 0.004 255 / 0.82);
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.04), 0 1px 3px rgb(15 23 42 / 0.04);
  --shadow-lg: 0 24px 48px -12px rgb(15 23 42 / 0.14), 0 4px 12px rgb(15 23 42 / 0.05);
  --radius: 14px;
  --radius-sm: 10px;
  --logo: #155dfc;
  --font: "Inter", "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

.dark {
  color-scheme: dark;
  --bg: oklch(0.165 0.025 264);
  --bg-alt: oklch(0.185 0.027 264);
  --card: oklch(0.215 0.028 264);
  --fg: oklch(0.955 0.008 255);
  --fg-soft: oklch(0.86 0.015 255);
  --muted: oklch(0.71 0.035 257);
  --primary: oklch(0.623 0.214 259.815);
  --primary-hover: oklch(0.68 0.19 258);
  --primary-soft: oklch(0.29 0.07 263);
  --primary-soft-fg: oklch(0.809 0.105 251.813);
  --border: oklch(1 0 0 / 9%);
  --border-strong: oklch(1 0 0 / 15%);
  --ok: oklch(0.723 0.219 149.579);
  --ok-soft: oklch(0.723 0.219 149.579 / 16%);
  --ok-fg: oklch(0.82 0.15 152);
  --warn: oklch(0.795 0.184 86.047);
  --warn-soft: oklch(0.795 0.184 86.047 / 16%);
  --warn-fg: oklch(0.86 0.14 88);
  --code-bg: oklch(0.13 0.02 264);
  --code-head: oklch(0.175 0.024 264);
  --header-bg: oklch(0.165 0.025 264 / 0.8);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 24px 48px -12px rgb(0 0 0 / 0.55), 0 0 0 1px oklch(1 0 0 / 4%);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.1em 0.38em;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-soft-fg);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--primary);
  color: var(--primary-fg);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 820px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo rect {
  fill: var(--logo);
}

.logo path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 600;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-sm {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 15px 24px;
  font-size: 1.02rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--primary) 60%, transparent);
}

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

.btn-outline {
  background: var(--card);
  color: var(--fg);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--primary);
}

.icon-accent {
  color: var(--primary);
}

.btn-light {
  background: #fff;
  color: oklch(0.488 0.243 264.376);
}

.btn-light:hover {
  background: oklch(0.955 0.023 254.6);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.45);
}

.btn-ghost-light:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: #fff;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--fg-soft);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.icon-sun,
.dark .icon-moon {
  display: none;
}

.dark .icon-sun {
  display: block;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.beta-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-soft-fg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 2px;
  margin: 0 auto;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.main-nav a .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: color 0.15s;
}

.main-nav a:hover .icon,
.main-nav a.active .icon {
  color: var(--primary);
}

.main-nav a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.main-nav a.active {
  color: var(--primary-soft-fg);
  background: var(--primary-soft);
}

.header-actions .btn .icon {
  width: 16px;
  height: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.lang-switch button {
  border: 0;
  border-radius: 7px;
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--primary-soft);
  color: var(--primary-soft-fg);
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 480px at 85% 10%, color-mix(in oklab, var(--primary) 10%, transparent), transparent 70%),
    radial-gradient(700px 400px at 0% 0%, color-mix(in oklab, var(--primary) 6%, transparent), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-soft-fg);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(2.3rem, 3.9vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
}

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

.lead {
  margin-top: 24px;
  max-width: 560px;
  color: var(--fg-soft);
  font-size: 1.12rem;
  line-height: 1.65;
}

.lead strong {
  color: var(--fg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--fg-soft);
  font-size: 0.95rem;
}

.checks li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.checks .icon {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  stroke-width: 3;
}

/* ---------- App preview ---------- */

.app-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--fg);
  user-select: none;
}

.app-mock .icon {
  width: 14px;
  height: 14px;
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 12px;
}

.mock-brand .logo {
  width: 18px;
  height: 18px;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 260px;
  margin: 0 auto;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--muted);
}

.mock-search kbd {
  margin-left: auto;
  font: inherit;
  font-size: 10px;
}

.mock-top-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}

.av-blue { background: oklch(0.546 0.245 262.881); }
.av-rose { background: oklch(0.645 0.246 16.439); }
.av-green { background: oklch(0.627 0.194 149.214); }
.av-violet { background: oklch(0.606 0.25 292.717); }
.av-amber { background: oklch(0.705 0.191 47.604); }

.dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--card);
}

.dot.online { background: var(--ok); }
.dot.busy { background: oklch(0.637 0.237 25.331); }
.dot.coding { background: oklch(0.623 0.214 259.815); }
.dot.away { background: var(--warn); }

.mock-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) 132px;
  min-height: 430px;
}

.mock-sidebar {
  padding: 12px 10px;
  border-right: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-alt) 60%, var(--card));
}

.mock-workspace {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
}

.mock-workspace strong,
.mock-workspace small {
  display: block;
}

.mock-workspace small {
  color: var(--muted);
  font-size: 9.5px;
}

.ws-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 800;
}

.mock-nav,
.mock-channels {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-nav li,
.mock-channels li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--fg-soft);
}

.mock-nav li.active,
.mock-channels li.active {
  background: var(--primary-soft);
  color: var(--primary-soft-fg);
  font-weight: 600;
}

.mock-nav b {
  margin-left: auto;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 9.5px;
}

.mock-label {
  margin: 14px 8px 5px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 12px 16px;
  min-width: 0;
}

.mock-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mock-chat-head strong {
  font-size: 13.5px;
}

.mock-chat-head small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.mock-head-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.mock-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.mock-tabs span {
  padding-bottom: 6px;
}

.mock-tabs .active {
  color: var(--primary);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--primary);
}

.mock-pinned {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary-soft-fg);
}

.mock-pinned strong,
.mock-pinned small {
  display: block;
}

.mock-pinned small {
  color: var(--fg-soft);
  font-size: 10px;
}

.mock-pinned em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.mock-msg {
  display: flex;
  gap: 10px;
}

.mock-msg > div {
  min-width: 0;
  flex: 1;
}

.mock-msg time {
  color: var(--muted);
  font-size: 10px;
  margin-left: 4px;
}

.reactions {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}

.reactions span {
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--bg-alt);
  font-size: 10.5px;
}

.mock-code {
  margin-top: 6px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--code-bg);
  color: var(--code-fg);
}

.mock-code-head {
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  background: var(--code-head);
  color: var(--code-muted);
  font-size: 10px;
  font-weight: 600;
}

.mock-code pre {
  margin: 0;
  padding: 8px 10px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
}

.mock-code code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.mock-code i {
  font-style: normal;
  color: var(--code-key);
}

.mock-code u,
.tree u {
  text-decoration: none;
  color: var(--code-muted);
}

.mock-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 7px 7px 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--muted);
}

.mock-composer b {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
}

.mock-people {
  padding: 10px 12px;
  border-left: 1px solid var(--border);
}

.mock-people .mock-label {
  margin: 4px 0 8px;
}

.mock-role {
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
}

.person {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.person strong,
.person small {
  display: block;
}

.person small {
  color: var(--muted);
  font-size: 9.5px;
}

/* ---------- Highlights and stats ---------- */

.highlights {
  padding: 24px 0 80px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.features-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  color: var(--fg-soft);
}

.feature h3 {
  margin: 20px 0 10px;
}

.feature-icon {
  --tone: oklch(0.546 0.245 262.881);
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: color-mix(in oklab, var(--tone) 13%, var(--card));
  color: var(--tone);
}

.feature-icon .icon {
  width: 26px;
  height: 26px;
}

.feature-icon.sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.feature-icon.sm .icon {
  width: 19px;
  height: 19px;
}

.tone-blue { --tone: oklch(0.546 0.245 262.881); }
.tone-indigo { --tone: oklch(0.511 0.262 276.966); }
.tone-teal { --tone: oklch(0.6 0.118 184.704); }
.tone-violet { --tone: oklch(0.541 0.281 293.009); }
.tone-amber { --tone: oklch(0.666 0.179 58.318); }
.tone-rose { --tone: oklch(0.586 0.253 17.585); }
.tone-green { --tone: oklch(0.627 0.194 149.214); }

.dark .feature-icon {
  background: color-mix(in oklab, var(--tone) 22%, var(--card));
  color: color-mix(in oklab, var(--tone) 70%, white);
}

.stats-caption {
  margin: 48px 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 20px;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat > .icon {
  width: 30px;
  height: 30px;
  color: var(--primary);
  stroke-width: 1.7;
}

.stat dt {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat dd {
  margin: 0;
  max-width: 190px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.left {
  margin: 0;
  text-align: left;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--fg-soft);
  font-size: 1.08rem;
}

.why h3 {
  margin: 16px 0 10px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  font-weight: 600;
}

/* Check-mark lists */

.ticks {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
  color: var(--fg-soft);
  line-height: 1.5;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 6px;
  width: 5px;
  height: 8px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ticks.compact li {
  margin-top: 8px;
}

.detail h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
}

.preview-box h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.preview-box p {
  color: var(--fg-soft);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-soft-fg);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-ok {
  background: var(--ok-soft);
  color: var(--ok-fg);
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn-fg);
  white-space: normal;
}

/* Security */

.sec-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sec-list li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.sec-list li > .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
}

.sec-list strong {
  display: block;
  margin-bottom: 4px;
}

.sec-list p {
  color: var(--fg-soft);
}

/* Architecture */

.arch {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.arch-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 190px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.arch-node .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  color: var(--primary);
}

.arch-node small {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.arch-node.wide {
  min-width: 320px;
  max-width: 400px;
}

.arch-node.primary {
  border-color: color-mix(in oklab, var(--primary) 35%, var(--border));
  background: color-mix(in oklab, var(--primary) 5%, var(--card));
}

.arch-node.optional {
  border-style: dashed;
  border-color: var(--border-strong);
  box-shadow: none;
}

.arch-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.arch-link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 2px dashed color-mix(in oklab, var(--primary) 45%, transparent);
}

.arch-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin: 28px 0 16px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.arch-divider::before,
.arch-divider::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--border-strong);
}

.arch-link span {
  position: relative;
  padding: 2px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Requirements */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.req-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.req-table th,
.req-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.req-table thead th {
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.req-table tbody tr:last-child > * {
  border-bottom: 0;
}

.req-table tbody th {
  font-weight: 700;
}

.req-table tbody th small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.req-table td {
  color: var(--fg-soft);
}

.req-table td strong {
  color: var(--fg);
}

.row-optional {
  background: color-mix(in oklab, var(--warn) 5%, var(--card));
}

.req-facts {
  margin-top: 24px;
}

.fact h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
}

.fact p {
  font-size: 0.95rem;
}

/* Install */

/* Guided installation with Claude: the first thing in the install section. */
.ai-install {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  margin-bottom: 56px;
  padding: 32px;
  border-color: color-mix(in oklch, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-lg);
}

.ai-install-tag {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-install-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.ai-install-main > p {
  color: var(--fg-soft);
}

.ai-install-main .code-block {
  margin-top: 20px;
}

.ai-install-subtitle {
  margin: 0;
  font-weight: 700;
}

.ai-install-side .ticks li {
  margin-top: 12px;
}

.ai-install-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.manual-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
}

@media (max-width: 960px) {
  .ai-install {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 22px;
  }
}

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: step;
}

.step:not(:has(.code-block)) {
  grid-template-columns: 1fr;
}

.step-text {
  position: relative;
  padding-left: 52px;
}

.step-text::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 800;
}

.step h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--fg-soft);
}

.code-block {
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--code-bg);
  color: var(--code-fg);
}

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 8px 16px;
  background: var(--code-head);
  color: var(--code-muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.copy-btn {
  padding: 4px 10px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 7px;
  background: transparent;
  color: var(--code-fg);
  font: inherit;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: rgb(255 255 255 / 0.4);
}

.copy-btn.copied {
  border-color: var(--ok);
  color: var(--ok);
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.65;
}

.code-block code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.tabs {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.tab-list {
  display: flex;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.tab-list button {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-soft);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.tab-list button:hover {
  color: var(--fg);
}

.tab-list button[aria-selected="true"] {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel > p {
  color: var(--fg-soft);
}

.note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* Walkthrough: steps on the left, a drawn screen on the right. */

.section-tour {
  background:
    radial-gradient(60% 50% at 85% 10%, color-mix(in oklch, var(--primary) 9%, transparent), transparent 70%),
    var(--bg);
}

.tour {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: 40px;
  align-items: start;
}

.tour-steps {
  display: grid;
  gap: 6px;
}

.tour-steps [role="tab"] {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.tour-steps [role="tab"]:hover {
  background: var(--card);
}

.tour-steps [role="tab"][aria-selected="true"] {
  border-color: var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--fg);
}

.tour-num {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

[aria-selected="true"] .tour-num {
  background: var(--primary);
  color: var(--primary-fg);
}

.tour-step-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tour-step-text strong {
  font-size: 0.98rem;
}

.tour-step-text > span:last-child {
  display: none;
  font-size: 0.9rem;
  line-height: 1.5;
}

[aria-selected="true"] .tour-step-text > span:last-child {
  display: block;
}

.tour-who {
  justify-self: start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tour-who.it { color: var(--primary); }
.tour-who.emp { color: oklch(0.606 0.25 292.717); }

.tour-stage {
  position: sticky;
  top: 96px;
}

.tour-caption {
  display: none;
  margin: 14px 2px 0;
  color: var(--fg-soft);
}

.tour-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.tour-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tour-count b {
  color: var(--fg);
}

.tour-panel:not([hidden]) {
  animation: tour-in 0.25s ease-out;
}

@keyframes tour-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* The drawn screens (tm = tour mock) */

.tm-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  color: var(--fg);
  font-size: 13px;
  line-height: 1.45;
  user-select: none;
}

.tm-window .icon {
  width: 14px;
  height: 14px;
}

.tm-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

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

.tm-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.tm-url {
  display: inline-flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tm-url .icon {
  width: 12px;
  height: 12px;
  color: var(--ok);
}

.tm-auth,
.tm-app {
  position: relative;
  height: 420px;
}

.tm-auth {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--bg-alt), var(--bg));
}

.tm-card,
.tm-dialog {
  display: grid;
  width: min(330px, 86%);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.tm-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 6px;
  font-weight: 800;
}

.tm-brand .logo {
  width: 20px;
  height: 20px;
}

.tm-card h4,
.tm-dialog h4 {
  margin: 4px 0 2px;
  font-size: 15px;
}

.tm-card h4 {
  text-align: center;
}

.tm-sub {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11.5px;
}

.tm-card .tm-sub {
  text-align: center;
}

.tm-window label {
  margin: 8px 0 4px;
  font-size: 11.5px;
  font-weight: 600;
}

.tm-input {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tm-code {
  justify-content: center;
  border-color: var(--primary);
  font-family: var(--mono);
  letter-spacing: 0.25em;
}

.tm-mono {
  border-color: var(--primary);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.tm-mono .icon {
  color: var(--muted);
}

.tm-select::after {
  margin-left: auto;
  color: var(--muted);
  content: "⌄";
}

.tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 12.5px;
  font-weight: 600;
}

.tm-btn.ghost {
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--fg);
}

.tm-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.tm-row3 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
}

.tm-row3 > div {
  display: grid;
  min-width: 0;
}

.tm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.tm-actions.start {
  justify-content: flex-start;
}

.tm-key {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

.tm-key small {
  color: var(--muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

/* App frame: icon rail, content, optional dialog on top */

.tm-app {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  background: var(--bg);
}

.tm-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-right: 1px solid var(--border);
  background: var(--card);
}

.tm-ws {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 700;
}

.tm-side i {
  width: 22px;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

.tm-side i.on {
  background: var(--primary);
}

.tm-main {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.tm-dim {
  opacity: 0.35;
  filter: blur(0.5px);
}

.tm-h {
  font-size: 16px;
  font-weight: 700;
}

.tm-tabs {
  display: flex;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.tm-tabs .on {
  color: var(--primary);
  font-weight: 600;
}

.tm-block {
  height: 90px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.tm-block.short {
  height: 60px;
}

.tm-app .tm-dialog {
  position: absolute;
  top: 50%;
  left: calc(50% + 26px);
  transform: translate(-50%, -50%);
  width: min(380px, 80%);
  box-shadow: var(--shadow-lg);
}

.tm-welcome {
  display: grid;
  gap: 2px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(120deg, var(--primary-soft), var(--card) 70%);
}

.tm-welcome small,
.tm-welcome span {
  color: var(--muted);
  font-size: 12px;
}

.tm-welcome strong {
  font-size: 22px;
  letter-spacing: -0.01em;
}

.tm-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.tm-panel-h {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.tm-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.tm-person + .tm-person {
  border-top: 1px solid var(--border);
}

.tm-person > span:nth-child(2) {
  display: grid;
  flex: 1;
}

.tm-person small,
.tm-person em {
  color: var(--muted);
  font-size: 11.5px;
  font-style: normal;
}

.tm-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.tm-tr {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}

.tm-tr + .tm-tr {
  border-top: 1px solid var(--border);
}

.tm-tr.head {
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.tm-tr > span:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.tm-tr .avatar {
  width: 22px;
  height: 22px;
  font-size: 9.5px;
}

/* Terminal (dark in both themes) */

.tm-dark .tm-bar {
  border-color: oklch(0.3 0.03 265);
  background: oklch(0.24 0.035 265);
}

.tm-dark .tm-dots i {
  background: oklch(0.4 0.03 265);
}

.tm-dark .tm-url {
  background: oklch(0.2 0.035 265);
  color: oklch(0.72 0.03 256);
}

.tm-terminal {
  display: grid;
  align-content: start;
  gap: 3px;
  height: 420px;
  padding: 18px;
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--mono);
  font-size: 12.5px;
}

.tm-terminal p {
  margin: 0;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-prompt {
  color: var(--code-muted);
}

.tm-ok {
  color: oklch(0.78 0.17 150);
  font-weight: 700;
}

.tm-claude {
  margin-top: 8px !important;
  color: oklch(0.82 0.1 60);
  white-space: normal !important;
}

.tm-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--code-fg);
  animation: tm-blink 1s steps(1) infinite;
}

@keyframes tm-blink {
  50% { opacity: 0; }
}

@media (max-width: 960px) {
  .tour {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .tour-stage {
    position: static;
  }

  /* Steps become a row of numbered chips; the caption under the screen explains. */
  .tour-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tour-steps [role="tab"] {
    flex-shrink: 0;
    width: auto;
    padding: 8px 12px 8px 8px;
  }

  .tour-step-text > span:last-child,
  [aria-selected="true"] .tour-step-text > span:last-child,
  .tour-who {
    display: none;
  }

  .tour-caption {
    display: block;
  }

  .tm-auth,
  .tm-app,
  .tm-terminal {
    height: 380px;
  }
}

@media (max-width: 600px) {
  .tm-window {
    font-size: 12px;
  }

  .tm-app {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .tm-app .tm-dialog {
    left: calc(50% + 18px);
    width: 86%;
    padding: 14px;
  }

  .tm-row3 {
    grid-template-columns: 1fr 1fr;
  }

  .tm-row3 > div:last-child {
    display: none;
  }

  .tm-terminal {
    font-size: 11px;
    padding: 14px;
  }

  .tm-tr {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .tm-tr > span:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-panel:not([hidden]),
  .tm-cursor {
    animation: none;
  }
}

/* Roadmap */

.callout {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--warn);
  border-radius: 0 10px 10px 0;
  background: var(--warn-soft);
  color: var(--fg);
  font-size: 0.95rem;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  border-left: 2px solid var(--border-strong);
}

.timeline li {
  position: relative;
  padding: 0 0 22px 44px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg);
}

.timeline li.done::before {
  border-color: var(--ok);
  background: var(--ok);
}

.timeline li.done::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.timeline li.progress::before {
  border-color: var(--warn);
  background: linear-gradient(90deg, var(--warn) 50%, var(--bg) 50%);
}

.timeline strong {
  display: block;
  font-size: 1.02rem;
}

.timeline span {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Repository tree */

.tree pre {
  font-size: 0.84rem;
}

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--fg-soft);
}

/* Final call to action */

.cta {
  padding: 0 0 96px;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 56px;
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgb(255 255 255 / 0.18), transparent 70%),
    linear-gradient(135deg, oklch(0.546 0.245 262.881), oklch(0.457 0.24 277.023));
  color: #fff;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.cta p {
  margin-top: 8px;
  color: rgb(255 255 255 / 0.85);
  font-size: 1.08rem;
}

.cta .hero-actions {
  margin-top: 0;
}

/* Footer */

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand p {
  max-width: 380px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-content: flex-start;
}

.footer-links a {
  color: var(--fg-soft);
  font-weight: 500;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1140px) {
  .mock-body {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .mock-people {
    display: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .mock-body {
    grid-template-columns: 150px minmax(0, 1fr) 140px;
  }

  .mock-people {
    display: block;
  }

  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Below this width the links no longer fit beside the brand and the actions on
   one line, so they move into the menu. Keep in sync with setupMenu in script.js. */
@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-lg);
  }

  .nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 960px) {
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  /* The requirements table becomes one card per profile, each value under its label. */
  .table-wrap {
    overflow: visible;
  }

  .req-table {
    min-width: 0;
  }

  .req-table thead {
    display: none;
  }

  .req-table tr {
    display: block;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
  }

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

  .req-table th,
  .req-table td {
    display: block;
    padding: 0;
    border: 0;
  }

  .req-table tbody th {
    margin-bottom: 10px;
    font-size: 1.05rem;
  }

  .req-table tbody th small {
    display: inline;
  }

  .req-table td + td {
    margin-top: 10px;
  }

  .req-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .req-table .cell-empty {
    display: none;
  }

  .row-optional {
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .mock-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .mock-sidebar,
  .mock-people {
    display: none;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    gap: 12px;
  }

  .header-github span {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .hero {
    padding: 40px 0 40px;
  }

  .hero h1 {
    margin-top: 22px;
  }

  .lead {
    font-size: 1.04rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .card-grid.four,
  .stats {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat + .stat {
    justify-content: flex-start;
    border-left: 0;
    padding: 0;
  }

  .stat dd {
    max-width: none;
  }

  .card {
    padding: 22px;
  }

  .preview-box {
    flex-direction: column;
    gap: 12px;
  }

  .arch-node,
  .arch-node.wide {
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .step {
    padding: 20px;
  }

  .step-text {
    padding-left: 48px;
  }

  .tab-panel {
    padding: 18px;
  }

  .cta-inner {
    border-radius: 16px;
    padding: 32px 20px;
  }

  .mock-search {
    display: none;
  }

  .mock-pinned em {
    display: none;
  }
}

@media (max-width: 440px) {
  .header-github {
    display: none;
  }
}

/* Small tablets: the GitHub button keeps only its icon. */
@media (max-width: 720px) {
  .header-github span {
    display: none;
  }
}

/* Phones: the download button keeps its icon, the language buttons get tighter,
   so the menu button always fits. */
@media (max-width: 600px) {
  .beta-badge {
    display: none;
  }

  .header-download span {
    display: none;
  }

  .header-download {
    padding: 8px 10px;
  }

  .lang-switch button {
    padding: 5px 7px;
  }
}

@media (max-width: 340px) {
  .brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- Downloads ---------- */

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.download-card:hover,
.download-card:focus-visible {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.download-card .btn {
  margin-top: auto;
}

.downloads + .note {
  margin-top: 20px;
  text-align: center;
}
