:root {
  color-scheme: dark;
  --background: oklch(0.135 0 0);
  --foreground: oklch(0.96 0 0);
  --card: oklch(0.17 0 0);
  --secondary: oklch(0.215 0 0);
  --muted-foreground: oklch(0.64 0 0);
  --border: oklch(1 0 0 / 0.15);
  --border-strong: oklch(1 0 0 / 0.3);
  --radius: 0.5rem;
  --brand: oklch(0.71 0.051 289);
  --brand-soft: oklch(0.71 0.051 289 / 0.12);
  --brand-tint: oklch(0.71 0.051 289 / 0.22);
  --ui-blue: oklch(0.69 0.056 243.5);
  --ui-teal: oklch(0.69 0.07 171.5);
  --ui-coral: oklch(0.711 0.071 43.9);
  --ui-amber: oklch(0.715 0.081 78);
  --ui-purple: oklch(0.71 0.051 289);
  --ui-pink: oklch(0.704 0.069 359.6);
  --ui-green: oklch(0.694 0.087 130.6);
  --ui-gray: oklch(0.708 0.01 100.1);
  --ui-red: oklch(0.703 0.085 19.4);
  --chrome-bg: oklch(0.17 0 0);
  --chrome-border: oklch(1 0 0 / 0.15);
  --chrome-text: oklch(0.9 0 0);
  --chrome-muted: oklch(0.64 0 0);

  /* Font scale (Tailwind-like) */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@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;
  }
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: var(--text-sm);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Language-optimized font stacks for CJK.
   Latin / Korean / Cyrillic are already well covered by Pretendard Variable. */
:lang(ja) body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', YuGothic, 'Meiryo', 'Noto Sans JP', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}
:lang(ja) .hero-title {
  font-family: 'Bricolage Grotesque', 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', -apple-system, sans-serif;
}

:lang(zh-CN) body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}
:lang(zh-CN) .hero-title {
  font-family: 'Bricolage Grotesque', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, sans-serif;
}

:lang(zh-TW) body {
  font-family: 'PingFang TC', 'Heiti TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}
:lang(zh-TW) .hero-title {
  font-family: 'Bricolage Grotesque', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', -apple-system, sans-serif;
}

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

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--background);
  border-bottom: 0.5px solid var(--border);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 max(2.5rem, calc((100vw - 1100px) / 2 + 2.5rem));
  z-index: 1000;
  gap: 1rem;
}
.nav-brand {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--brand);
  white-space: nowrap;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: opacity 0.35s ease;
  transform: translateZ(0);
  will-change: opacity;
  -webkit-font-smoothing: antialiased;
}
.nav-brand.is-hidden {
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 768px) {
  .nav-brand.is-hidden {
    opacity: 1;
    pointer-events: auto;
  }
}
.nav-brand .wordmark strong { font-weight: 700; }
.nav-brand .dim { color: var(--muted-foreground); font-weight: 500; }

.brand-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-icon--lg {
  width: 0.9em;
  height: 0.9em;
  stroke-width: 2.25;
  margin-right: 0.15em;
  vertical-align: -0.08em;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-left: 1.5rem;
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--foreground); }
.nav-spacer { flex: 1; }
.nav-cta {
  padding: 0 1rem;
  height: 32px;
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--background);
  background: var(--brand);
  border-radius: 16px;
  font-weight: 700;
  transition: opacity 0.15s;
  white-space: nowrap;
  gap: 0.4rem;
}
.nav-cta:hover { opacity: 0.9; }
.nav-github {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.nav-github:hover {
  color: var(--foreground);
  background: var(--secondary);
}
.nav-github svg { display: block; }

.nav-lang {
  position: relative;
  margin-right: 0.15rem;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.nav-lang > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  color: var(--muted-foreground);
  font-weight: 600;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-lang > summary::-webkit-details-marker { display: none; }
.nav-lang > summary:hover {
  color: var(--foreground);
  background: var(--secondary);
}
.nav-lang[open] > summary {
  color: var(--foreground);
  background: var(--secondary);
}
.nav-lang .lang-chevron {
  transition: transform 0.15s;
  opacity: 0.7;
}
.nav-lang[open] .lang-chevron { transform: rotate(180deg); }
.nav-lang .lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  padding: 0.4rem;
  background: var(--card);
  border: 0.5px solid var(--border-strong);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.1),
    0 20px 40px -15px rgb(0 0 0 / 0.6);
  z-index: 50;
}
.nav-lang .lang-opt {
  font-family: -apple-system, 'Pretendard Variable', Pretendard, sans-serif;
  font-size: var(--text-sm);
  letter-spacing: -0.005em;
  color: var(--muted-foreground);
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  font-weight: 500;
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
}
.nav-lang .lang-opt:hover {
  color: var(--foreground);
  background: var(--secondary);
}
.nav-lang .lang-opt.is-active {
  color: var(--foreground);
  background: var(--secondary);
  font-weight: 600;
}

/* ── Main ── */
main {
  margin-top: 52px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2.5rem;
}
section {
  padding: 4rem 0;
  border-bottom: 0.5px solid var(--border);
}
section:last-child { border-bottom: none; }

/* ── Typography ── */
.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.eyebrow.teal { color: var(--ui-teal); }
.eyebrow.amber { color: var(--ui-amber); }
.eyebrow.coral { color: var(--ui-coral); }

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--foreground);
  word-break: keep-all;
}
h1 .brand { color: var(--brand); }
h1 .wordmark { color: var(--brand); font-weight: 500; }
h1 .wordmark strong { font-weight: 800; }

h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--foreground);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

p {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.lead {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 680px;
  margin-bottom: 2rem;
}
main section > .lead { max-width: none; }
.muted { color: var(--muted-foreground); }

code {
  font-family: 'SF Mono', Monaco, Menlo, 'Noto Sans Mono', monospace;
  font-size: var(--text-sm);
  background: var(--secondary);
  color: var(--foreground);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* ── Hero ── */
.hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: none;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.hero-text { min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: var(--text-xs);
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}
.hero-eyebrow .brand-icon { width: 14px; height: 14px; }
.hero-eyebrow .eyebrow-mark strong { font-weight: 700; }
.hero-eyebrow .eyebrow-sep { color: var(--border-strong); font-weight: 400; }
.hero-eyebrow .eyebrow-sub { color: var(--muted-foreground); font-weight: 500; }

.hero-title {
  font-family: 'Bricolage Grotesque', 'Pretendard Variable', 'Pretendard', -apple-system, sans-serif;
  font-size: clamp(2.75rem, 7.2vw, 5.25rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 1.75rem;
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  font-variation-settings: 'opsz' 72;
}
.hero-title .line {
  display: block;
  text-wrap: balance;
}
.hero-title .line + .line { margin-top: -0.02em; }
.hero-title .line--brand { color: var(--brand); }
.hero-title .punct {
  color: var(--brand);
  font-weight: 700;
  margin-left: -0.01em;
}
.hero-title .line--brand .punct { color: var(--foreground); }

.hero-sub {
  font-size: clamp(var(--text-base), 1.35vw, var(--text-lg));
  color: var(--muted-foreground);
  line-height: 1.55;
  margin-bottom: 2.25rem;
  max-width: 30em;
}
.br-desktop { display: inline; }

.install-block {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 2rem 0 1rem;
}
.install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.1rem;
  min-height: 50px;
  box-sizing: border-box;
  background: var(--chrome-bg);
  color: var(--chrome-text);
  border-radius: 8px;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: var(--text-sm);
  font-weight: 500;
  border: 0.5px solid var(--chrome-border);
}
.install-cmd .prompt { color: var(--brand); }
.install-cmd .copy-btn {
  background: transparent;
  border: 0.5px solid var(--chrome-border);
  color: var(--chrome-text);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--text-lg);
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  margin-left: 0.25rem;
}
.install-cmd .copy-btn:hover { background: var(--secondary); color: var(--foreground); }
.install-cmd .copy-btn.copied {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--background);
  transform: scale(1.05);
}
.install-cmd .copy-btn.copied:hover { background: var(--brand); }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  min-height: 50px;
  box-sizing: border-box;
  background: var(--brand);
  color: var(--background);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary .btn-icon { display: block; margin-top: -2px; }
.hero-meta {
  margin-top: 0.75rem;
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.hero-meta .ok { color: var(--ui-green); }

/* ── Hero stack (overlapping session cards) ── */
.hero-stack {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 38vw, 520px);
  perspective: 1200px;
}
.stack-card {
  position: absolute;
  width: clamp(240px, 22vw, 296px);
  animation: stack-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}
.stack-card-inner {
  background: var(--chrome-bg);
  border: 0.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.95rem 1.1rem 1.05rem;
  box-shadow:
    inset 0 0 0 0.5px oklch(1 0 0 / 0.04),
    0 1px 2px rgb(0 0 0 / 0.3),
    0 30px 60px -24px rgb(0 0 0 / 0.75),
    0 8px 16px -8px rgb(0 0 0 / 0.4);
  backdrop-filter: blur(2px);
}

.card-1 {
  top: 8%;
  left: 0;
  z-index: 2;
  animation-delay: 0.15s;
}
.card-1 .stack-card-inner { transform: rotate(-3deg); }

.card-2 {
  top: 36%;
  right: 0;
  z-index: 3;
  animation-delay: 0.32s;
}
.card-2 .stack-card-inner {
  transform: rotate(2.2deg);
  border-color: color-mix(in oklch, var(--ui-amber) 55%, var(--border-strong));
  box-shadow:
    inset 0 0 0 0.5px oklch(1 0 0 / 0.04),
    0 0 0 0.5px color-mix(in oklch, var(--ui-amber) 30%, transparent),
    0 1px 2px rgb(0 0 0 / 0.3),
    0 30px 60px -24px rgb(0 0 0 / 0.75),
    0 0 48px -12px color-mix(in oklch, var(--ui-amber) 40%, transparent);
}

.card-3 {
  bottom: 0;
  left: 6%;
  z-index: 1;
  animation-delay: 0.48s;
}
.card-3 .stack-card-inner { transform: rotate(-1.2deg); }

@keyframes stack-enter {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .stack-card { animation: none; }
}

.stack-card .card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.7rem;
  border-bottom: 0.5px solid var(--chrome-border);
}
.stack-card .card-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stack-card .card-dot.busy {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--brand);
  border-top-color: transparent;
  background: transparent;
  animation: mockup-spin 0.9s linear infinite;
}
.stack-card .card-dot.input {
  background: var(--ui-amber);
  animation: mockup-pulse 1.6s ease-in-out infinite;
}
.stack-card .card-dot.review {
  background: var(--brand);
  animation: mockup-pulse 2.2s ease-in-out infinite;
}
.stack-card .card-name {
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  color: var(--chrome-text);
  font-weight: 600;
  flex: 1;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stack-card .card-time {
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  color: var(--chrome-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.stack-card .card-badge {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  white-space: nowrap;
}
.stack-card .card-badge.amber {
  color: var(--ui-amber);
  background: color-mix(in oklch, var(--ui-amber) 16%, transparent);
  border: 0.5px solid color-mix(in oklch, var(--ui-amber) 40%, transparent);
}
.stack-card .card-badge.brand {
  color: var(--brand);
  background: var(--brand-soft);
  border: 0.5px solid var(--brand-tint);
}

.stack-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 10.5px;
  line-height: 1.5;
}
.stack-card .card-row {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.stack-card .card-row .k {
  color: var(--brand);
  font-weight: 700;
  width: 32px;
  flex-shrink: 0;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-align: right;
}
.stack-card .card-row .p {
  color: var(--chrome-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
  transform: translateY(2px);
}
.stack-card .card-row.done .k { color: var(--ui-green); text-align: left; width: 12px; transform: translateY(-2px); }
.stack-card .card-row.done .p { color: var(--chrome-muted); }
.stack-card .card-row.running .k { color: var(--ui-amber); text-align: left; width: 12px; }
.stack-card .card-row.running .p { color: var(--chrome-muted); font-style: italic; }
.stack-card .card-row.waiting .k { color: var(--brand); text-align: left; width: 12px; transform: translateY(-2px); }
.stack-card .card-row.waiting .p { display: inline-flex; align-items: flex-end; min-height: 2.5em; }
.stack-card .card-row.waiting .caret { background: var(--brand); height: 13px; width: 6px; }
.stack-card .card-row .caret {
  display: inline-block;
  width: 5px;
  height: 0.9em;
  background: var(--ui-amber);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caret-blink 1s steps(2) infinite;
}
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.stack-card .card-prompt {
  color: var(--chrome-text);
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 11px;
  line-height: 1.55;
  padding: 0.55rem 0.7rem;
  background: color-mix(in oklch, var(--ui-amber) 10%, transparent);
  border-left: 2px solid var(--ui-amber);
  border-radius: 2px 4px 4px 2px;
  margin-bottom: 0.55rem;
}
.stack-card .card-prompt code {
  background: transparent;
  padding: 0;
  color: var(--ui-amber);
  font-size: 10.5px;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
}
.stack-card .card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stack-card .card-actions .ca {
  color: var(--chrome-muted);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.stack-card .card-actions kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--chrome-text);
  background: color-mix(in oklch, var(--foreground) 8%, transparent);
  border: 0.5px solid var(--chrome-border);
  border-radius: 3px;
}

/* ── Preview section ── */
.preview {
  padding: 2rem 0 4rem;
  border-bottom: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.preview-stack {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 2rem;
}
.preview-desktop {
  display: block;
}
.preview-mobile {
  position: absolute;
  right: 2%;
  bottom: -6%;
  width: clamp(180px, 20%, 280px);
  z-index: 2;
}
.preview-mobile img { border-radius: 26px; }

/* ── Screenshot ── */
.screenshot-wrap {
  margin: 2.5rem 0 1rem;
  padding: 0;
  margin-left: clamp(-13rem, calc((100% - 100vw + 2.5rem) / 2), 0px);
  margin-right: clamp(-13rem, calc((100% - 100vw + 2.5rem) / 2), 0px);
}
.screenshot-frame {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  overflow: hidden;
}
.screenshot-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0.65rem;
}
.screenshot-titlebar .dots { display: flex; gap: 0.3rem; }
.screenshot-titlebar .dots span { width: 10px; height: 10px; border-radius: 50%; }
.screenshot-titlebar .dots span:nth-child(1) { background: #ff5f57; }
.screenshot-titlebar .dots span:nth-child(2) { background: #febc2e; }
.screenshot-titlebar .dots span:nth-child(3) { background: #28c840; }
.screenshot-titlebar .address {
  flex: 1;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-family: 'SF Mono', Monaco, Menlo, monospace;
}
.placeholder {
  aspect-ratio: 16 / 9;
  background: var(--secondary);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 0.5px dashed var(--border);
}
.placeholder .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.placeholder.mobile { aspect-ratio: 9 / 16; max-width: 280px; margin: 0 auto; }

.shot {
  display: block;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot--desktop img {
  border-radius: 12px;
  outline: 1.5px solid #2a2a2a;
  outline-offset: -1.5px;
}
.shot--stats img {
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.08),
    0 18px 40px -16px rgb(0 0 0 / 0.35),
    0 48px 96px -40px rgb(0 0 0 / 0.5);
}
.shot--stats {
  display: block;
  margin: 2rem auto 0;
  max-width: 900px;
}
.shot--stats img {
  border: 0.5px solid var(--border);
}

/* ── Stats showcase with callouts ── */
.stats-showcase {
  position: relative;
  max-width: 1000px;
  margin: 2.5rem auto 0;
}
.stats-screen {
  display: block;
}
.stats-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 0.5px solid var(--border);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.1),
    0 30px 60px -25px rgb(0 0 0 / 0.5);
}

.stats-callout {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transform: translate(0, calc(-50% + 16px)) scale(0.88);
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  pointer-events: none;
}
.stats-callout--left {
  transform: translate(-100%, calc(-50% + 16px)) scale(0.88);
  flex-direction: row-reverse;
}
.stats-showcase.is-visible .stats-callout {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}
.stats-showcase.is-visible .stats-callout--left {
  transform: translate(-100%, -50%) scale(1);
}
.stats-showcase.is-visible .stats-callout:nth-child(2) { transition-delay: 0.05s; }
.stats-showcase.is-visible .stats-callout:nth-child(3) { transition-delay: 0.18s; }
.stats-showcase.is-visible .stats-callout:nth-child(4) { transition-delay: 0.32s; }
.stats-showcase.is-visible .stats-callout:nth-child(5) { transition-delay: 0.46s; }
@media (prefers-reduced-motion: reduce) {
  .stats-callout { transition: opacity 0.2s linear; transform: translate(0, -50%); }
  .stats-callout--left { transform: translate(-100%, -50%); }
}
.stats-callout .callout-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--background);
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 3px var(--background),
    0 0 0 4px var(--brand),
    0 6px 16px rgb(0 0 0 / 0.5);
  animation: callout-pulse 2.6s ease-in-out infinite;
}
@keyframes callout-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--background), 0 0 0 4px var(--brand), 0 6px 16px rgb(0 0 0 / 0.5), 0 0 0 4px color-mix(in oklch, var(--brand) 30%, transparent); }
  50%      { box-shadow: 0 0 0 3px var(--background), 0 0 0 4px var(--brand), 0 6px 16px rgb(0 0 0 / 0.5), 0 0 0 10px color-mix(in oklch, var(--brand) 0%, transparent); }
}
.stats-callout .callout-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.55rem 0.85rem;
  background: var(--card);
  border: 0.5px solid var(--border-strong);
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.55);
}
.stats-callout .callout-label strong {
  font-size: var(--text-xs);
  color: var(--foreground);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.stats-callout .callout-label span {
  font-size: 10px;
  color: var(--muted-foreground);
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  letter-spacing: 0.01em;
}

/* Mobile: callouts flow as a list below the image */
@media (max-width: 767px) {
  .stats-showcase { display: flex; flex-direction: column; gap: 0; }
  .stats-showcase .stats-screen { order: 0; }
  .stats-callout {
    position: static;
    transform: translateY(12px);
    opacity: 0;
    flex-direction: row;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    margin-top: 0.6rem;
    background: var(--secondary);
    border-left: 2px solid var(--brand);
  }
  .stats-showcase.is-visible .stats-callout,
  .stats-showcase.is-visible .stats-callout--left { transform: translateY(0); opacity: 1; }
  .stats-callout:first-of-type { margin-top: 1.25rem; }
  .stats-callout--left { flex-direction: row; transform: translateY(12px); }
  .stats-callout .callout-num {
    width: 22px;
    height: 22px;
    font-size: 9.5px;
    box-shadow: none;
    animation: none;
  }
  .stats-callout .callout-label {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    white-space: normal;
    flex: 1;
  }
}
.shot--mobile {
  max-width: 260px;
  margin: 0 auto;
  padding: 7px;
  background: var(--card);
  border: 0.5px solid oklch(1 0 0 / 0.22);
  border-radius: 36px;
  box-shadow:
    inset 0 0 0 0.5px rgb(255 255 255 / 0.04),
    0 1px 2px rgb(0 0 0 / 0.1),
    0 24px 48px -20px rgb(0 0 0 / 0.4);
}
.shot--mobile img {
  border-radius: 30px;
}

.screenshot-pair {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  align-items: center;
  margin-top: 1.5rem;
}

/* ── Pain highlight (why section) ── */
.pain-highlight {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
  margin: 2rem 0 0;
  padding: 2rem;
  background: var(--brand-soft);
  border: 0.5px solid var(--brand-tint);
  border-radius: 10px;
}
.pain-highlight-visual { display: flex; justify-content: center; }
.limit-widget {
  width: 100%;
  max-width: 320px;
  background: var(--chrome-bg);
  border: 0.5px solid var(--chrome-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  font-family: 'Pretendard', -apple-system, sans-serif;
}
.limit-widget-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px dashed var(--chrome-border);
}
.limit-widget-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--chrome-text);
  letter-spacing: 0.02em;
}
.limit-widget-sub {
  font-size: var(--text-xs);
  color: var(--chrome-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.limit-bar-group { display: flex; flex-direction: column; gap: 0.85rem; }
.limit-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.limit-bar-label {
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: var(--text-xs);
  color: var(--chrome-text);
  font-weight: 600;
}
.limit-bar-meta {
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: var(--text-xs);
  color: var(--chrome-muted);
  font-variant-numeric: tabular-nums;
}
.limit-bar-meta .pct { font-weight: 700; margin-left: 0.2rem; }
.limit-bar-meta .pct.red { color: var(--ui-red); }
.limit-bar-meta .pct.amber { color: var(--ui-amber); }
.limit-bar-track {
  height: 6px;
  background: var(--chrome-border);
  border-radius: 3px;
  overflow: hidden;
}
.limit-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--ui-teal);
  transition: width 0.3s;
  position: relative;
}
.limit-bar-fill.red { background: var(--ui-red); }
.limit-bar-fill.amber { background: var(--ui-amber); }
.limit-widget-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 0.5px dashed var(--chrome-border);
  font-size: var(--text-xs);
  color: var(--chrome-muted);
  font-variant-numeric: tabular-nums;
}
.limit-widget-footer strong { color: var(--chrome-text); font-weight: 700; margin-left: 0.15rem; }

.pain-highlight-text { display: flex; flex-direction: column; }
.pain-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ui-red);
  background: oklch(0.703 0.085 19.4 / 0.15);
  border: 0.5px solid oklch(0.703 0.085 19.4 / 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
  margin-bottom: 1rem;
}
.pain-highlight-text h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.pain-highlight-text p {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
.pain-highlight-text p:last-child { margin-bottom: 0; }
.pain-highlight-text .hl {
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
}
.pain-highlight-text .hl.red { color: var(--ui-red); background: oklch(0.703 0.085 19.4 / 0.16); }
.pain-highlight-text .hl.amber { color: var(--ui-amber); background: oklch(0.715 0.081 78 / 0.16); }

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}
.feature-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--border-strong);
}
.feature-shot {
  aspect-ratio: 16 / 9;
  background: var(--secondary);
  border-bottom: 0.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.feature-shot-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--background);
  padding: 0.4rem 0.7rem;
  border: 0.5px solid var(--border);
}
.feature-shot-inner .icon { font-size: var(--text-base); }

/* ── Feature mockups ── */
.mockup {
  width: 88%;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
}
.mockup .dot { flex-shrink: 0; border-radius: 50%; }

/* Shared keyframes for mockups */
@keyframes mockup-spin { to { transform: rotate(360deg); } }
@keyframes mockup-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* 1. Multi-session dashboard — 2x2 tiles */
.mockup-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.mockup-dashboard .tile {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 3px;
  min-width: 0;
}
.mockup-dashboard .indicator {
  flex-shrink: 0;
  display: inline-block;
}
.mockup-dashboard .indicator.busy {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--muted-foreground);
  border-top-color: transparent;
  border-radius: 50%;
  animation: mockup-spin 0.9s linear infinite;
}
.mockup-dashboard .indicator.review,
.mockup-dashboard .indicator.input,
.mockup-dashboard .indicator.idle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mockup-dashboard .indicator.review {
  background: var(--brand);
  animation: mockup-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.mockup-dashboard .indicator.input {
  background: var(--ui-amber);
  animation: mockup-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.mockup-dashboard .indicator.idle {
  background: transparent;
  border: 1px solid color-mix(in oklch, var(--muted-foreground) 60%, transparent);
  box-sizing: border-box;
}
.mockup-dashboard .meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mockup-dashboard .name {
  font-size: 9px;
  color: var(--foreground);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-dashboard .sub { font-size: 8px; color: var(--muted-foreground); }

/* 2. Live session view — chat-style */
.mockup-timeline {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mockup-timeline .msg.user {
  display: flex;
  justify-content: flex-end;
}
.mockup-timeline .msg .bubble {
  background: var(--brand-soft);
  color: var(--brand);
  border: 0.5px solid var(--brand-tint);
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 8px 8px 2px 8px;
  max-width: 78%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-timeline .row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 2px;
}
.mockup-timeline .type {
  font-size: 8px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 24px;
  flex-shrink: 0;
}
.mockup-timeline .text {
  font-size: 9px;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.mockup-timeline .text.path { color: var(--brand); }
.mockup-timeline .status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 2px;
  margin-top: 2px;
}
.mockup-timeline .spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--muted-foreground);
  border-top-color: transparent;
  border-radius: 50%;
  animation: mockup-spin 0.9s linear infinite;
}
.mockup-timeline .elapsed {
  font-size: 9px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* 3. Sessions tab groups */
.mockup-sessions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup-sessions .group { display: flex; flex-direction: column; gap: 2px; }
.mockup-sessions .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8.5px;
  letter-spacing: 0.06em;
}
.mockup-sessions .label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--foreground);
  text-transform: uppercase;
  font-weight: 600;
}
.mockup-sessions .dot { width: 6px; height: 6px; }
.mockup-sessions .count { color: var(--muted-foreground); font-size: 8.5px; }
.mockup-sessions .item {
  padding-left: 11px;
  font-size: 9px;
  color: var(--muted-foreground);
}
.mockup-sessions .dot.amber { background: var(--ui-amber); }
.mockup-sessions .dot.blue { background: var(--ui-blue); }
.mockup-sessions .dot.muted { background: var(--muted-foreground); opacity: 0.45; }

/* 4. Workspace — single frame, 2 panes inside */
.mockup-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--background);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.mockup-workspace .pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mockup-workspace .pane + .pane {
  border-left: 0.5px solid var(--border);
}
.mockup-workspace .tabs {
  display: flex;
  align-items: stretch;
  height: 16px;
  background: var(--card);
  border-bottom: 0.5px solid var(--border);
}
.mockup-workspace .tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--muted-foreground);
  background: transparent;
  border-right: 0.5px solid var(--border);
  min-width: 0;
}
.mockup-workspace .tab:last-child { border-right: 0; }
.mockup-workspace .tab.active {
  background: var(--background);
  color: var(--foreground);
}
.mockup-workspace .tdot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-foreground);
  opacity: 0.5;
  flex-shrink: 0;
}
.mockup-workspace .tab.active .tdot {
  background: var(--brand);
  opacity: 1;
}
.mockup-workspace .tname {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-workspace .pbody {
  flex: 1;
  min-height: 48px;
  background: var(--background);
}

/* 5. Git diff */
.mockup-diff {
  display: flex;
  flex-direction: column;
  width: 88%;
  background: var(--background);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.mockup-diff .dhead {
  padding: 3px 8px;
  font-size: 8px;
  color: var(--muted-foreground);
  background: var(--secondary);
  border-bottom: 0.5px solid var(--border);
  letter-spacing: 0.02em;
}
.mockup-diff .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.mockup-diff .side {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
.mockup-diff .side + .side { border-left: 0.5px solid var(--border); }
.mockup-diff .line {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 1px 6px;
  min-height: 9px;
}
.mockup-diff .line .n {
  font-size: 7px;
  color: var(--muted-foreground);
  opacity: 0.6;
  width: 10px;
  text-align: right;
}
.mockup-diff .line .bar {
  flex: 1;
  height: 3px;
  background: var(--secondary);
  border-radius: 1px;
}
.mockup-diff .line.add { background: color-mix(in oklch, var(--ui-green) 18%, transparent); }
.mockup-diff .line.add .bar { background: color-mix(in oklch, var(--ui-green) 65%, transparent); }
.mockup-diff .line.remove { background: color-mix(in oklch, var(--ui-coral) 18%, transparent); }
.mockup-diff .line.remove .bar { background: color-mix(in oklch, var(--ui-coral) 65%, transparent); }

/* 6b. Terminal — real shell */
.mockup-terminal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 90%;
  padding: 8px 10px;
  background: var(--background);
  border: 0.5px solid var(--border);
  border-radius: 4px;
}
.mockup-terminal .term-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1.35;
}
.mockup-terminal .t-user { color: var(--ui-teal); font-weight: 600; }
.mockup-terminal .t-sym { color: var(--brand); font-weight: 700; }
.mockup-terminal .t-cmd { color: var(--foreground); }
.mockup-terminal .t-caret {
  display: inline-block;
  width: 4px;
  height: 8px;
  background: var(--foreground);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caret-blink 1s steps(2) infinite;
}

/* 6. Self-hosted / local */
.mockup-selfhost {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 82%;
}
.mockup-selfhost .tree {
  font-size: 9px;
  line-height: 1.45;
  background: var(--background);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 6px 9px;
}
.mockup-selfhost .tline.root { color: var(--foreground); font-weight: 600; }
.mockup-selfhost .tline.sub { color: var(--muted-foreground); }
.mockup-selfhost .badges { display: flex; gap: 4px; }
.mockup-selfhost .b {
  font-size: 7.5px;
  padding: 1px 5px;
  border: 0.5px solid var(--border);
  border-radius: 2px;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mockup-selfhost .b.accent {
  color: var(--ui-amber);
  border-color: color-mix(in oklch, var(--ui-amber) 50%, transparent);
}

.feature-body { padding: 1.25rem 1.5rem 1.5rem; }
.feature-title { font-size: var(--text-base); font-weight: 700; margin-bottom: 0.4rem; }
.feature-desc { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.7; }

/* ── Category section ── */
.category {
  margin-top: 2rem;
}
.category-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.5px solid var(--border);
}
.category-name { font-size: var(--text-base); font-weight: 700; }
.category-count { font-size: var(--text-xs); color: var(--muted-foreground); }
.category-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.65rem;
  padding: 0;
}
.category-list li {
  padding: 0.75rem 0.95rem;
  background: var(--secondary);
  font-size: var(--text-sm);
  border-left: 2px solid var(--border);
}
.category-list li strong {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
}
.category-list li .sub { font-size: var(--text-xs); color: var(--muted-foreground); }

/* ── Mobile & Push section ── */
.mobile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}
.mobile-showcase {
  position: sticky;
  top: 72px;
  display: flex;
  justify-content: center;
}
.mobile-phone {
  position: relative;
  width: 280px;
  padding: 14px;
  background: var(--chrome-bg);
  border: 0.5px solid var(--chrome-border);
  border-radius: 36px;
}
.mobile-phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: var(--background);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.mobile-phone .placeholder.mobile {
  max-width: none;
  border-radius: 24px;
  aspect-ratio: 9 / 19;
}
.mobile-guide { display: flex; flex-direction: column; gap: 2rem; }
.guide-block { display: flex; flex-direction: column; }
.guide-block h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.5px solid var(--border);
}
.tabs {
  margin-top: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--secondary);
  border-left: 2px solid var(--brand);
}
.tab-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.guide-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.guide-steps li {
  position: relative;
  padding-left: 1.9rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  counter-increment: step;
  color: var(--foreground);
}
.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--brand-soft);
  color: var(--brand);
  border: 0.5px solid var(--brand-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
}
.guide-block pre.code {
  background: var(--chrome-bg);
  color: var(--chrome-text);
  border: 0.5px solid var(--chrome-border);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: var(--text-sm);
  overflow-x: auto;
  margin: 0.5rem 0;
}
.guide-block pre.code .c { color: var(--brand); }

/* ── Tailscale diagram ── */
.ts-diagram {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
  padding: 1.25rem 0.75rem 0.75rem;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 8px;
}
.ts-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.2rem;
  color: var(--muted-foreground);
  min-width: 56px;
}
.ts-node .ts-icon {
  width: 28px;
  height: 28px;
  stroke: var(--foreground);
}
.ts-node.ts-central .ts-icon { stroke: var(--brand); }
.ts-node .ts-logo {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.25);
}
.ts-node .ts-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ts-node .ts-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.005em;
}
.ts-node.ts-central .ts-label { color: var(--brand); }
.ts-node .ts-sub {
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 10px;
  color: var(--muted-foreground);
}
.ts-link {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-link::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.5px;
  background: repeating-linear-gradient(
    to right,
    var(--border) 0,
    var(--border) 4px,
    transparent 4px,
    transparent 8px
  );
}
.ts-link .ts-flow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px color-mix(in oklch, var(--brand) 60%, transparent);
  transform: translateY(-50%);
  animation: ts-packet 2.4s infinite linear;
  opacity: 0;
}
.ts-link .ts-flow:nth-child(2) { animation-delay: 0.8s; }
.ts-link .ts-flow:nth-child(3) { animation-delay: 1.6s; }
@keyframes ts-packet {
  0%   { left: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.ts-link .ts-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 0.5px solid var(--brand-tint);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 2;
}
.ts-link .ts-badge svg {
  width: 9px;
  height: 9px;
  stroke: var(--brand);
}


/* ── Stats section ── */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.stat-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat-card .stat-label {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.stat-card .stat-value {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-card .stat-delta {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}
.stat-card:nth-child(1) { border-top: 2px solid var(--brand); }
.stat-card:nth-child(2) { border-top: 2px solid var(--ui-teal); }
.stat-card:nth-child(3) { border-top: 2px solid var(--ui-amber); }
.stat-card:nth-child(4) { border-top: 2px solid var(--ui-green); }

/* ── Notes section ── */
.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}
.notes-mockup {
  background: var(--chrome-bg);
  border: 0.5px solid var(--chrome-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 72px;
}
.notes-mockup-header {
  padding: 0.85rem 1.25rem;
  background: var(--secondary);
  border-bottom: 0.5px solid var(--chrome-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notes-mockup-date {
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: var(--text-sm);
  color: var(--chrome-text);
  font-weight: 600;
}
.notes-mockup-meta {
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: var(--text-xs);
  color: var(--chrome-muted);
  font-weight: 500;
}
.notes-mockup-body {
  padding: 1.1rem 1.4rem 1.4rem;
  color: var(--chrome-text);
  line-height: 1.6;
}
.notes-mockup-body .md-brief {
  font-size: var(--text-sm);
  color: var(--chrome-text);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}
.notes-mockup-body .md-collapse {
  font-size: var(--text-xs);
  color: var(--chrome-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 0.5px solid var(--chrome-border);
}
.notes-mockup-body .md-project {
  font-size: var(--text-lg);
  color: var(--brand);
  font-weight: 700;
  margin: 0 0 0.85rem;
}
.notes-mockup-body .md-h3 {
  font-size: var(--text-sm);
  color: var(--chrome-text);
  font-weight: 700;
  margin: 1rem 0 0.35rem;
}
.notes-mockup-body .md-ul {
  list-style: none;
  padding: 0 0 0 0.85rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.notes-mockup-body .md-ul li {
  font-size: var(--text-xs);
  color: var(--chrome-muted);
  line-height: 1.6;
  position: relative;
  padding-left: 0.75rem;
}
.notes-mockup-body .md-ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: -0.05em;
  color: var(--chrome-muted);
  font-weight: 700;
}
.notes-points { display: flex; flex-direction: column; gap: 1.75rem; }

/* ── Architecture (ASCII) ── */
pre.ascii {
  background: var(--chrome-bg);
  color: var(--chrome-text);
  border: 0.5px solid var(--chrome-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: var(--text-xs);
  line-height: 1.55;
  overflow-x: auto;
  margin: 1.5rem 0 1rem;
}

/* ── Architecture diagram (structured) ── */
.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}
.arch-layer {
  width: 100%;
  max-width: 880px;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.arch-layer--brand {
  border-color: var(--brand-tint);
  background: linear-gradient(180deg, color-mix(in oklch, var(--brand-soft) 50%, var(--card)), var(--card));
}
.arch-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-right: 0.75rem;
  border-right: 0.5px solid var(--border);
}
.arch-label-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.005em;
}
.arch-layer--brand .arch-label-name { color: var(--brand); }
.arch-label-sub {
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 10px;
  color: var(--muted-foreground);
}
.arch-components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}
.arch-comp {
  background: var(--background);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.arch-comp-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--foreground);
}
.arch-comp-sub {
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 9.5px;
  color: var(--muted-foreground);
}

.arch-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0;
  position: relative;
}
.arch-bridge::before,
.arch-bridge::after {
  content: '';
  width: 0.5px;
  height: 12px;
  background: var(--border);
}
.arch-bridge--sm::before,
.arch-bridge--sm::after { height: 8px; }
.arch-bridge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  color: var(--brand);
  background: var(--brand-soft);
  border: 0.5px solid var(--brand-tint);
  border-radius: 12px;
  letter-spacing: 0.02em;
}
.arch-bridge-routes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.9rem;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 9.5px;
  color: var(--muted-foreground);
}
.arch-bridge-routes span::before {
  content: '↓';
  margin-right: 0.2rem;
  opacity: 0.5;
}

.arch-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.arch-group {
  background: var(--background);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.arch-group-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.arch-mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.arch-mini-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.arch-mini {
  display: inline-flex;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 10px;
  color: var(--foreground);
  background: var(--secondary);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.01em;
}

.arch-highlights {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 0.5px dashed var(--border);
}
.arch-highlights--inline {
  margin-top: 0.5rem;
  padding-top: 0.4rem;
}
.arch-hl {
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: 10px;
  padding: 0.22rem 0.55rem;
  color: var(--brand);
  background: var(--brand-soft);
  border: 0.5px solid var(--brand-tint);
  border-radius: 3px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.arch-layer:not(.arch-layer--brand) .arch-hl {
  color: var(--muted-foreground);
  background: var(--background);
  border-color: var(--border);
}


/* ── Quickstart steps ── */
.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  align-items: start;
}
.step-num {
  width: 32px;
  height: 32px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  border: 0.5px solid var(--brand-tint);
}
.step-body h3 { margin-bottom: 0.35rem; }
.step-body p { font-size: var(--text-sm); color: var(--muted-foreground); margin-bottom: 0.5rem; }
.step-body pre.code {
  background: var(--chrome-bg);
  color: var(--chrome-text);
  border: 0.5px solid var(--chrome-border);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  font-size: var(--text-xs);
  overflow-x: auto;
  margin-top: 0.5rem;
}
.step-body pre.code .c { color: var(--brand); }

/* ── FAQ ── */
.faq { display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.faq details {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: border-color 0.15s;
  background: var(--card);
}
.faq details[open] { border-color: var(--brand); background: var(--brand-soft); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--muted-foreground);
  transition: transform 0.15s;
}
.faq details[open] summary::after { content: '−'; color: var(--brand); }
.faq details p {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 0.5px solid var(--border);
}
.faq details[open] p { border-top-color: var(--brand-tint); }

/* ── Closing CTA ── */
.cta-section {
  padding: 4rem 0 5rem;
  border-bottom: none;
}
.cta-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.75rem 2.5rem;
  background: linear-gradient(180deg, color-mix(in oklch, var(--brand-soft) 60%, var(--card)), var(--card));
  border: 0.5px solid var(--brand-tint);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
  pointer-events: none;
}
.cta-card .eyebrow { margin-bottom: 0.5rem; }
.cta-card h2 { margin-bottom: 0.6rem; }
.cta-card .lead {
  font-size: var(--text-base);
  max-width: 560px;
  margin-bottom: 0;
}
.cta-card .cta-install {
  margin: 0;
  position: relative;
  z-index: 1;
}
.cta-card .cta-body { position: relative; z-index: 1; }

/* ── Comparison table ── */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-top: 1.5rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 0.5px solid var(--border);
}
.compare thead th {
  font-weight: 700;
  color: var(--foreground);
  background: var(--secondary);
  font-size: var(--text-xs);
}
.compare thead th:last-child {
  background: var(--brand);
  color: var(--background);
  letter-spacing: 0.02em;
}
.compare tbody td:last-child {
  background: var(--brand-soft);
  font-weight: 600;
  color: var(--foreground);
  border-left: 0.5px solid var(--brand-tint);
}
.compare tbody td:last-child.check { color: var(--brand); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.check { color: var(--ui-green); font-weight: 600; }
.compare td.cross { color: var(--muted-foreground); }
.compare tbody tr.tradeoff td {
  background: var(--secondary);
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  font-weight: 500;
  font-style: italic;
  border-top: 0.5px dashed var(--border-strong);
}
.compare tbody tr.tradeoff td:first-child { font-style: normal; font-weight: 600; color: var(--foreground); }
.compare tbody tr.tradeoff td:last-child {
  background: var(--secondary);
  color: var(--muted-foreground);
  font-weight: 500;
  border-left-color: var(--border);
}

/* ── Self-host section ── */
.selfhost { padding: 4rem 0; }
.selfhost-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.selfhost-text .eyebrow { margin-bottom: 0.75rem; }
.selfhost-text h2 { margin-bottom: 1rem; }
.selfhost-text .lead { margin-bottom: 1.5rem; max-width: 520px; }
.selfhost-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.selfhost-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  background: var(--secondary);
  border: 0.5px solid var(--border);
  border-radius: 5px;
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  letter-spacing: 0.01em;
}
.selfhost-badge strong {
  color: var(--ui-amber);
  font-weight: 800;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.selfhost-visual {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-left: 2px solid var(--ui-amber);
  border-radius: 4px;
}
.selfhost-visual .mockup-selfhost {
  width: 100%;
  max-width: 260px;
}
.selfhost-visual .mockup-selfhost .tree {
  font-size: var(--text-sm);
  line-height: 1.6;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
  padding: 0.9rem 1.1rem;
  background: var(--background);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.85rem;
}
.selfhost-visual .mockup-selfhost .tline.root { color: var(--foreground); font-weight: 700; }
.selfhost-visual .mockup-selfhost .tline.sub { color: var(--muted-foreground); }
.selfhost-visual .mockup-selfhost .badges { display: flex; gap: 0.4rem; }
.selfhost-visual .mockup-selfhost .b {
  font-size: var(--text-xs);
  padding: 0.25rem 0.55rem;
  border: 0.5px solid var(--border);
  border-radius: 3px;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'SF Mono', Monaco, Menlo, monospace;
}
.selfhost-visual .mockup-selfhost .b.accent {
  color: var(--ui-amber);
  border-color: color-mix(in oklch, var(--ui-amber) 50%, transparent);
}

/* ── Footer ── */
footer {
  padding: 3rem 2.5rem;
  border-top: 0.5px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}
footer .foot-brand { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; color: var(--brand); flex-wrap: wrap; }
footer .foot-brand .wordmark strong { font-weight: 700; }
footer .foot-tagline {
  margin-left: 0.6rem;
  padding-left: 0.85rem;
  border-left: 0.5px solid var(--border);
  color: var(--muted-foreground);
  font-weight: 500;
  letter-spacing: 0.01em;
}
footer .foot-tagline .pct {
  color: var(--brand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
footer .foot-links { display: flex; gap: 1.25rem; }
footer .foot-links a:hover { color: var(--foreground); }

/* ── Responsive ──
 * Tailwind breakpoints:
 *   md = 768px  (max-md: ≤767)
 *   sm = 640px  (max-sm: ≤639)
 */

/* max-md: tablet portrait and below */
@media (max-width: 767px) {
  main { padding: 0 1.25rem; }
  h1 { font-size: var(--text-4xl); line-height: 1.25; }
  h2 { font-size: var(--text-xl); }

  .nav { padding: 0 1rem; gap: 0.5rem; }
  .nav-links { display: none; }

  .hero { padding: 2rem 0 2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-title { margin-bottom: 1.25rem; }
  .hero-sub { font-size: var(--text-base); margin-bottom: 1.75rem; }
  .hero-stack { min-height: 400px; max-width: 260px; margin: 0 auto; }
  .stack-card { width: min(240px, 72vw); }
  .card-1 { top: 0; left: -30%; }
  .card-2 { top: 30%; right: -30%; }
  .card-3 { bottom: 0; left: -13%; }
  .br-desktop { display: none; }

  .install-block { flex-direction: column; align-items: stretch; }
  .install-cmd { justify-content: space-between; }
  .btn-primary { justify-content: center; }

  .preview { padding: 1rem 0 3rem; }
  .preview-desktop { display: none; }
  .preview-mobile {
    position: static;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .pain-highlight { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .pain-highlight-text h3 { font-size: var(--text-xl); }

  .mobile-layout { grid-template-columns: 1fr; gap: 2rem; }
  .mobile-showcase { position: static; }
  .mobile-phone { width: 240px; }

  .notes-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .notes-mockup { position: static; }

  .stat-card .stat-value { font-size: var(--text-2xl); }

  .arch-layer { grid-template-columns: 1fr; gap: 0.6rem; padding: 0.85rem; }
  .arch-label { border-right: 0; border-bottom: 0.5px solid var(--border); padding: 0 0 0.5rem; flex-direction: row; align-items: baseline; gap: 0.5rem; }
  .arch-split { grid-template-columns: 1fr; }

  .selfhost { padding: 3rem 0; }
  .selfhost-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .selfhost-text .lead { max-width: none; }
  .selfhost-visual { padding: 1.25rem; }
  .selfhost-visual .mockup-selfhost { max-width: 100%; }

  footer { padding: 2rem 1.25rem; flex-direction: column; align-items: flex-start; }
}

/* max-sm: small mobile */
@media (max-width: 639px) {
  .ts-diagram { grid-template-columns: 1fr; gap: 0.75rem; padding: 1rem; }
  .ts-link { height: 32px; transform: rotate(90deg); width: 60px; margin: 0 auto; }
  .ts-link .ts-badge { transform: translateX(-50%) rotate(-90deg); top: 50%; left: 50%; margin-top: -8px; }
}
