/* ==========================================================================
   Relais — Vitrine Web 14.2.2 (Architectural Sheet)
   ========================================================================== */

:root,
[data-theme="light"] {
  color-scheme: light;
  --ground: #f1ede8;
  --ground-raised: #faf7f3;
  --ground-sunken: #e5e0da;
  --room-fill: rgba(60, 40, 25, 0.06);
  --room-fill-hover: rgba(60, 40, 25, 0.1);
  --ink: #171412;
  --ink-2: #51483f;
  --tint: #171412;
  --tint-hover: #2c2723;
  --on-tint: #f6f2ed;
  --line: rgba(23, 20, 18, 0.14);
  --line-strong: #8b7b6c;
  --mark-bg: #2c2723;
  --mark-fg: #f1ede8;
  --working: #2f5d4c;
  --working-soft: rgba(28, 103, 103, 0.1);
  --on-working-soft: #1c5b5c;
  --waiting: #8a5600;
  --waiting-soft: rgba(138, 86, 0, 0.1);
  --on-waiting-soft: #7a4c04;
  --neutral-soft: rgba(31, 22, 27, 0.06);
  --on-neutral-soft: #5f4e56;
  --bezel: #171412;
  --bezel-stroke: rgba(23, 20, 18, 0.22);
  --elev-3: 0 0 0 0.5px rgba(31, 22, 27, 0.06), 0 24px 64px rgba(31, 22, 27, 0.16);
}

[data-theme="dark"] {
  color-scheme: dark;
  --ground: #1b1816;
  --ground-raised: #2c2723;
  --ground-sunken: #0f0d0c;
  --room-fill: rgba(255, 235, 215, 0.06);
  --room-fill-hover: rgba(255, 235, 215, 0.11);
  --ink: #f4efe9;
  --ink-2: #b9aea5;
  --tint: #f4efe9;
  --tint-hover: #e5ded5;
  --on-tint: #171412;
  --line: rgba(244, 239, 233, 0.15);
  --line-strong: #8f8175;
  --mark-bg: #3a332e;
  --mark-fg: #f4efe9;
  --working: #8fd0b8;
  --working-soft: rgba(127, 208, 200, 0.1);
  --on-working-soft: #91d5ce;
  --waiting: #f0c05a;
  --waiting-soft: rgba(240, 192, 90, 0.1);
  --on-waiting-soft: #f1c771;
  --neutral-soft: rgba(246, 239, 241, 0.06);
  --on-neutral-soft: #c2b4ba;
  --bezel: #0f0d0c;
  --bezel-stroke: rgba(244, 239, 233, 0.16);
  --elev-3: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 24px 64px rgba(0, 0, 0, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ground: #1b1816;
    --ground-raised: #2c2723;
    --ground-sunken: #0f0d0c;
    --room-fill: rgba(255, 235, 215, 0.06);
    --room-fill-hover: rgba(255, 235, 215, 0.11);
    --ink: #f4efe9;
    --ink-2: #b9aea5;
    --tint: #f4efe9;
    --tint-hover: #e5ded5;
    --on-tint: #171412;
    --line: rgba(244, 239, 233, 0.15);
    --line-strong: #8f8175;
    --mark-bg: #3a332e;
    --mark-fg: #f4efe9;
    --working: #8fd0b8;
    --working-soft: rgba(127, 208, 200, 0.1);
    --on-working-soft: #91d5ce;
    --waiting: #f0c05a;
    --waiting-soft: rgba(240, 192, 90, 0.1);
    --on-waiting-soft: #f1c771;
    --neutral-soft: rgba(246, 239, 241, 0.06);
    --on-neutral-soft: #c2b4ba;
    --bezel: #0f0d0c;
    --bezel-stroke: rgba(244, 239, 233, 0.16);
    --elev-3: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 24px 64px rgba(0, 0, 0, 0.55);
  }
}

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

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

  .btn,
  .segmented__item,
  .footer__link,
  .doc-link {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  padding: 10px 16px;
  background: var(--tint);
  color: var(--on-tint);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
}

/* Architectural Sheet (1240px) */
.sheet {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--ground-raised);
  border-inline: 1px solid var(--line);
}

@media (max-width: 1240px) {
  .sheet {
    border-inline: 0;
  }
}

/* Type Roles */
.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Brand AppMark */
.app-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--mark-bg);
  color: var(--mark-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-mark--lg {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.app-mark--sm {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

/* Tags (3px radius) */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.tag--neutral {
  background: var(--neutral-soft);
  color: var(--on-neutral-soft);
}

.tag--positive {
  background: var(--working-soft);
  color: var(--on-working-soft);
}

.tag--caution {
  background: var(--waiting-soft);
  color: var(--on-waiting-soft);
}

/* Capsule Buttons (Secondary strictly unstroked room-fill) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 140ms ease, transform 80ms ease;
}

.btn--lg {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.btn--sm {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

.btn--primary {
  background: var(--tint);
  color: var(--on-tint);
}

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

.btn--secondary {
  background: var(--room-fill);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--room-fill-hover);
}

.btn:active {
  transform: scale(0.98);
}

/* Segmented Control (capsule pill) */
.segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9999px;
  background: var(--room-fill);
}

.segmented__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 13px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.segmented__item:hover {
  color: var(--ink);
}

.segmented--nav .segmented__item.is-active {
  background: var(--tint);
  color: var(--on-tint);
}

.segmented--subtle .segmented__item {
  height: 24px;
  padding: 0 10px;
  font-size: 11.5px;
}

.segmented--subtle .segmented__item.is-active {
  background: var(--ground-raised);
  color: var(--ink);
}

/* Topbar (0px docked sheet header) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
  padding: 0 32px;
  background: var(--ground-raised);
  border-bottom: 1px solid var(--line);
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.topbar__center {
  justify-self: center;
}

.topbar__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--ink);
}

.nav-toggle:hover {
  background: var(--room-fill);
}

.theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle__icon--sun {
    display: block;
  }

  :root:not([data-theme]) .theme-toggle__icon--moon {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  flex-direction: column;
  background: var(--ground-raised);
  border-bottom: 1px solid var(--line);
}

.mobile-drawer__link {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid var(--line);
}

.mobile-drawer__link:first-child {
  border-top: 0;
}

.mobile-drawer__link:hover {
  background: var(--room-fill);
}

.mobile-drawer__link[aria-current="page"] {
  background: var(--room-fill);
}

/* Hero Architectural Split */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  padding: 48px 40px 40px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__title {
  margin: 0;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 508px;
}

.hero__lead {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 492px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Flush PropertyRows */
.prop-rows {
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.prop-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.prop-row dt {
  font-size: 12px;
  color: var(--ink-2);
}

.prop-row dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
}

.sources-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
}

.source-more {
  font-size: 12.5px;
  color: var(--ink-2);
}

.source-mark {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--ink);
}

.source-mark--waiting {
  color: var(--waiting);
}

.source-mark--working {
  color: var(--working);
}

/* Hero Specimen Plinth */
.plinth {
  background: var(--ground);
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

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

.plinth__sub {
  font-size: 12px;
  color: var(--ink-2);
}

.phones-desktop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 286px));
  justify-content: center;
  gap: 16px;
  align-items: stretch;
}

.phone-mobile {
  display: none;
}

/* iPhone Device Specimen */
.iphone {
  width: 100%;
  max-width: 286px;
  background: var(--ground);
  border: 5px solid var(--bezel);
  outline: 1px solid var(--bezel-stroke);
  border-radius: 36px;
  box-shadow: var(--elev-3);
  overflow: hidden;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iphone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 10px 0;
  font-size: 10.5px;
  font-weight: 600;
}

.iphone__island {
  width: 72px;
  height: 18px;
  border-radius: 9999px;
  background: var(--bezel);
}

.iphone__sysicons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.iphone__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 0;
}

.iphone__nav-title {
  margin: 4px 2px 2px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.iphone__pill-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: var(--ground-raised);
  border: 1px solid var(--line);
  margin-left: auto;
  color: var(--ink-2);
}

.iphone__session-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.session-card {
  background: var(--ground-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.session-card__top,
.session-card__bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.session-card__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.session-card__title {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-card__time {
  font-size: 10px;
  color: var(--ink-2);
  flex-shrink: 0;
}

.session-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 9999px;
  background: var(--tint);
  color: var(--on-tint);
  font-size: 9.5px;
  font-weight: 600;
}

.session-card__state {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.state--waiting {
  color: var(--waiting);
}

.state--working {
  color: var(--working);
}

.state--muted {
  color: var(--ink-2);
}

.session-card__repo {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-2);
  flex-shrink: 0;
}

.iphone__searchbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.iphone__searchinput {
  flex: 1;
  height: 30px;
  border-radius: 9999px;
  background: var(--ground-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 10.5px;
  color: var(--ink-2);
}

.iphone__circle-btn {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: var(--ground-raised);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink);
  flex-shrink: 0;
}

/* Thread Phone */
.thread-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.thread-bar__back,
.thread-bar__count {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: var(--ground-raised);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.thread-bar__title-box {
  flex: 1;
  min-width: 0;
  background: var(--ground-raised);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 4px 10px;
  text-align: center;
}

.thread-bar__title {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-bar__sub {
  display: block;
  font-size: 9px;
  color: var(--waiting);
}

.thread-prose {
  margin: 0;
  padding: 0 2px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--ink);
}

.code-card {
  background: var(--ground-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}

.code-card__lang {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  margin-bottom: 3px;
}

.code-card pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.45;
  color: var(--ink);
  overflow: hidden;
}

.thread-disclosure {
  font-size: 10px;
  color: var(--ink-2);
  padding: 0 2px;
}

.approval-card {
  background: var(--ground-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.approval-card__head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.dot--waiting {
  background: var(--waiting);
}

.dot--working {
  background: var(--working);
}

.approval-card__cmd {
  background: var(--ground-sunken);
  border-radius: 7px;
  padding: 7px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.4;
  color: var(--ink);
}

.approval-card__caption {
  font-size: 10px;
  color: var(--ink);
}

.approval-card__path {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-2);
}

.approval-card__btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.btn--mini {
  height: 26px;
  padding: 0 10px;
  font-size: 10.5px;
}

.approval-card__hint {
  font-size: 9.5px;
  color: var(--ink-2);
}

.composer-bar {
  margin-top: auto;
  background: var(--ground-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.composer-bar__placeholder {
  font-size: 10.5px;
  color: var(--ink-2);
  padding: 0 2px;
}

.composer-bar__row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.composer-chip {
  height: 20px;
  padding: 0 7px;
  border-radius: 9999px;
  background: var(--room-fill);
  font-size: 9.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.composer-send {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--tint);
  color: var(--on-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* Mobile Single Plinth Approval Card */
.mobile-approval {
  background: var(--ground-raised);
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-approval .approval-card__head {
  font-size: 12px;
}

.mobile-approval .approval-card__cmd {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 4px;
}

.mobile-approval .btn--mini {
  height: 34px;
  font-size: 13px;
}

/* Band Header */
.section-head {
  padding: 36px 40px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 620px;
}

/* 3-Column Feature Strip */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.feature-col {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-col:last-child {
  border-right: 0;
}

.feature-col .tag {
  align-self: flex-start;
}

.feature-col__title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.feature-col__body {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Micro Specimens inside Feature Columns */
.micro-specimen {
  flex: 1;
  background: var(--ground);
  border: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.spec-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.spec-row__left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.spec-row__title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.spec-row__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
}

.btw-box {
  background: var(--ground-raised);
  border: 1px solid var(--line);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btw-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
}

.btw-box__head .tag {
  font-family: var(--font-sans);
  height: 20px;
  font-size: 10px;
}

.btw-box__question {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink);
}

.queue-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-2);
}

.swarm-panel .segmented--subtle {
  align-self: flex-start;
  margin-bottom: 2px;
}

.swarm-lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.swarm-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.swarm-line:first-child {
  padding-top: 0;
  border-top: 0;
}

/* 02 · Private by Design */
.privacy-split {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.privacy-copy {
  padding: 36px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-copy__body {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.pairing-box {
  margin-top: 4px;
  background: var(--ground);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.pairing-box__cmd {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.pairing-box__platforms {
  font-size: 11.5px;
  color: var(--ink-2);
}

.pairing-box__body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qr-frame {
  width: 79px;
  height: 79px;
  padding: 7px;
  background: var(--ground-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  flex-shrink: 0;
}

.pairing-box__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.pairing-box__title {
  font-size: 15px;
  font-weight: 500;
}

.pairing-box__desc {
  margin: 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.45;
}

.privacy-rows {
  display: flex;
  flex-direction: column;
}

.privacy-row {
  padding: 28px 36px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.privacy-row:last-child {
  border-bottom: 0;
}

.icon-tile {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--ground-sunken);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-row__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.privacy-row__desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Closing Band & Footer */
.closing {
  padding: 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.closing__left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.closing__title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.closing__sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.footer {
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 12px;
  color: var(--ink-2);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__brand strong {
  font-weight: 500;
  color: var(--ink);
}

.footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__link {
  transition: color 140ms ease;
}

.footer__link:hover {
  color: var(--ink);
}

.footer__link[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* Architectural Document Subpages (/privacy, /support) */
.doc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  border-bottom: 1px solid var(--line);
}

.doc-hero__copy {
  padding: 44px 40px 36px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc-hero__title {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.025em;
  max-width: 600px;
}

.doc-hero__lead {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 580px;
}

.doc-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.doc-hero__summary {
  background: var(--ground);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.doc-hero__summary .prop-rows {
  margin-top: 0;
}

.doc-hero__summary .prop-row {
  grid-template-columns: 112px minmax(0, 1fr);
}

.doc-band {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.doc-band__meta {
  padding: 36px 32px 36px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.doc-band__title {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.26;
  letter-spacing: -0.015em;
}

.doc-band__caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.doc-band__body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.doc-prose {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 68ch;
}

.doc-prose strong {
  font-weight: 500;
  color: var(--ink);
}

.doc-inline-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--ground-sunken);
  color: var(--ink);
  padding: 1px 5px;
  border-radius: 3px;
  word-break: break-word;
}

.doc-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 140ms ease;
}

.doc-link:hover {
  text-decoration-color: var(--ink);
}

.doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.doc-list__item {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 12px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.doc-list__term {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.doc-list__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  min-width: 0;
}

.doc-list__desc strong {
  font-weight: 500;
  color: var(--ink);
}

.doc-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.doc-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.doc-step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  padding-top: 2px;
}

.doc-step__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.doc-step__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

.doc-step__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.doc-step__desc strong {
  font-weight: 500;
  color: var(--ink);
}

.doc-code {
  margin: 0;
  padding: 12px 14px;
  background: var(--ground-sunken);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  overflow-x: auto;
}

.doc-callout {
  background: var(--ground);
  border: 1px solid var(--line);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-callout__title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.doc-callout__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}

.doc-callout__body strong {
  font-weight: 500;
  color: var(--ink);
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

/* Responsive: Tablet (<= 1080px) */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 36px 32px;
  }

  .hero__title,
  .hero__lead {
    max-width: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-col {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-col:last-child {
    border-bottom: 0;
  }

  .privacy-split {
    grid-template-columns: 1fr;
  }

  .privacy-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .doc-hero {
    grid-template-columns: 1fr;
  }

  .doc-hero__copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 36px 32px;
  }

  .doc-hero__title,
  .doc-hero__lead {
    max-width: none;
  }

  .doc-hero__summary {
    padding: 24px 32px;
  }

  .doc-band {
    grid-template-columns: 1fr;
  }

  .doc-band__meta {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 32px 20px;
  }

  .doc-band__body {
    padding: 24px 32px 32px;
  }
}

/* Responsive: Mobile (<= 760px) */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 48px;
  }

  .topbar {
    height: 48px;
    padding: 0 12px 0 10px;
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topbar__center {
    display: none;
  }

  .mobile-drawer.is-open {
    display: flex;
  }

  .theme-toggle {
    height: 26px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .hero__copy {
    padding: 24px 16px 20px;
    gap: 16px;
  }

  .hero__title {
    font-size: 32px;
    line-height: 1.16;
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .prop-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .plinth {
    padding: 20px 16px 24px;
  }

  .phones-desktop {
    display: none;
  }

  .phone-mobile {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .phone-mobile .iphone {
    margin: 0 auto;
    max-width: 300px;
  }

  .section-head {
    padding: 28px 16px 18px;
  }

  .section-title {
    font-size: 24px;
  }

  .feature-col {
    padding: 18px 16px;
    gap: 8px;
  }

  .feature-col .micro-specimen {
    display: none;
  }

  .privacy-copy {
    padding: 28px 16px 20px;
    gap: 12px;
  }

  .pairing-box {
    margin-top: 6px;
  }

  .privacy-row {
    padding: 16px;
    gap: 12px;
  }

  .closing {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 16px;
    gap: 18px;
  }

  .closing__title {
    font-size: 24px;
  }

  .footer {
    padding: 18px 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .doc-hero__copy {
    padding: 24px 16px 20px;
    gap: 14px;
  }

  .doc-hero__title {
    font-size: 28px;
    line-height: 1.18;
  }

  .doc-hero__lead {
    font-size: 14.5px;
  }

  .doc-hero__summary {
    padding: 18px 16px;
  }

  .doc-hero__summary .prop-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .doc-band__meta {
    padding: 22px 16px 16px;
    gap: 8px;
  }

  .doc-band__title {
    font-size: 20px;
  }

  .doc-band__body {
    padding: 18px 16px 24px;
    gap: 14px;
  }

  .doc-list__item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .doc-step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }
}
