/* Rendezvous site. Plain CSS, no build. Light and dark via tokens. */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/sora-600.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f3f4fa;
  --surface: #ffffff;
  --text: #171b36;
  --muted: #4a5074;
  --heading: #141a52;
  --line: #dcdfee;
  --line-strong: #c3c8e2;
  --accent: #2d55c4;
  --accent-hover: #1d3f9e;
  --mk-a: #2b3290;
  --mk-d: #3f7fe0;
  --code-bg: #f1f2f9;
  --code-text: #1b2046;
  --clear-bg: rgba(229, 160, 21, 0.2);
  --clear-ink: #8a5600;
  --sealed-bg: rgba(63, 127, 224, 0.13);
  --sealed-ink: #2348a8;
  --consent-bg: #edf3ff;
  --pill-text: #ffffff;
  --focus: #e0a020;
  --shadow: 0 18px 40px -22px rgba(20, 26, 82, 0.35);

  /* the indigo field (hero, install band) is the same in both themes, a little deeper in dark */
  --field: #232a7a;
  --field-2: #1b2166;
  --on-field: #ffffff;
  --on-field-muted: #cbd1f6;
  --on-field-line: rgba(255, 255, 255, 0.18);
  --field-code: rgba(6, 9, 40, 0.42);

  --font-display: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0c0f26;
    --bg-alt: #111538;
    --surface: #161b45;
    --text: #e6e8fa;
    --muted: #aab0d8;
    --heading: #f3f4ff;
    --line: #272d63;
    --line-strong: #39408a;
    --accent: #9dbcff;
    --accent-hover: #c4d6ff;
    --mk-a: #c7cffd;
    --mk-d: #7fb0ff;
    --code-bg: #0f1333;
    --code-text: #dfe3ff;
    --clear-bg: rgba(240, 180, 60, 0.2);
    --clear-ink: #f3c46a;
    --sealed-bg: rgba(127, 176, 255, 0.16);
    --sealed-ink: #a9c8ff;
    --consent-bg: #1b2560;
    --pill-text: #0c0f26;
    --focus: #f2c14e;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
    --field: #191e5a;
    --field-2: #141849;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0c0f26;
  --bg-alt: #111538;
  --surface: #161b45;
  --text: #e6e8fa;
  --muted: #aab0d8;
  --heading: #f3f4ff;
  --line: #272d63;
  --line-strong: #39408a;
  --accent: #9dbcff;
  --accent-hover: #c4d6ff;
  --mk-a: #c7cffd;
  --mk-d: #7fb0ff;
  --code-bg: #0f1333;
  --code-text: #dfe3ff;
  --clear-bg: rgba(240, 180, 60, 0.2);
  --clear-ink: #f3c46a;
  --sealed-bg: rgba(127, 176, 255, 0.16);
  --sealed-ink: #a9c8ff;
  --consent-bg: #1b2560;
  --pill-text: #0c0f26;
  --focus: #f2c14e;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  --field: #191e5a;
  --field-2: #141849;
}

/* ---------- base ---------- */
[hidden] {
  display: none !important;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  scrollbar-color: var(--line-strong) var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection {
  background: var(--mk-d);
  color: #fff;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
  text-wrap: balance;
  margin: 0;
}
h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}
code,
pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
}
:not(pre) > code {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.08em 0.36em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: 820px;
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  z-index: 100;
  background: var(--surface);
  color: var(--heading);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
}
.skip:focus {
  transform: none;
}

/* the mark, inline so it follows the theme */
.mark .mk-a {
  fill: none;
  stroke: var(--mk-a);
  stroke-width: 4.6;
  stroke-linecap: round;
}
.mark .mk-d {
  fill: var(--mk-d);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  flex: none;
}
.brand .mark {
  width: 30px;
  height: 30px;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover {
  color: var(--heading);
  background: var(--bg-alt);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gh-link,
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.gh-link:hover,
.theme-toggle:hover {
  color: var(--heading);
  background: var(--bg-alt);
}
.gh-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.theme-toggle .ti {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  display: none;
}
.theme-toggle .ti .fill {
  fill: currentColor;
  stroke: none;
}
.theme-toggle:not([data-mode]) .ti-system,
.theme-toggle[data-mode='system'] .ti-system,
.theme-toggle[data-mode='light'] .ti-light,
.theme-toggle[data-mode='dark'] .ti-dark {
  display: block;
}
@media (max-width: 899px) {
  .site-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
}

/* ---------- commands + copy ---------- */
.cmd {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.cmd code {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  overflow-x: auto;
  white-space: pre;
  color: var(--code-text);
  font-size: 0.86rem;
  line-height: 1.55;
  background: none;
  scrollbar-width: thin;
}
.cmd code::before {
  content: '$ ';
  color: var(--muted);
  user-select: none;
}
/* typed into the agent's chat, not a shell */
.cmd-chat code::before {
  content: '\203A  ';
}
.copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px;
  padding: 0 10px;
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--heading);
  font: 500 0.8rem/1 var(--font-body);
  cursor: pointer;
  align-self: center;
  transition: background-color 0.2s, border-color 0.2s;
}
.copy:hover {
  border-color: var(--mk-d);
}
.copy svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy .i-done {
  display: none;
}
.copy.done .i-copy {
  display: none;
}
.copy.done .i-done {
  display: block;
}
.copy.done {
  border-color: var(--mk-d);
}
@media (max-width: 480px) {
  .copy-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .copy {
    padding: 0 8px;
  }
}
.cmd-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

/* ---------- tabs ---------- */
.tablist {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 10px;
}
[role='tab'] {
  border: 0;
  border-radius: 7px;
  padding: 7px 12px;
  font: 500 0.88rem/1.2 var(--font-body);
  cursor: pointer;
  background: none;
}

/* ---------- hero ---------- */
.hero {
  background: var(--field);
  color: var(--on-field);
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px);
  position: relative;
  overflow: hidden;
}
.hero-rings {
  /* concentric rings echo the mark: the rendezvous point, off to the right */
  position: absolute;
  right: -22vmax;
  top: -26vmax;
  width: 70vmax;
  height: 70vmax;
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.hero-rings circle {
  vector-effect: non-scaling-stroke;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero-grid > *,
.split > *,
.install-grid > *,
.relay-view > * {
  min-width: 0;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--on-field-muted);
  margin-bottom: 22px;
}
.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2c14e;
  flex: none;
}
.alpha-note {
  max-width: 62ch;
  margin: -6px 0 22px;
  padding: 10px 14px;
  border: 1px solid var(--on-field-line);
  border-left: 3px solid #f2c14e;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--on-field-muted);
}
.alpha-note strong {
  color: var(--on-field);
}
.hero h1 {
  color: var(--on-field);
  font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  max-width: 13ch;
}
.lede {
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--on-field-muted);
  max-width: 36em;
  margin-bottom: 32px;
}
.hero a,
.band-ink a {
  color: #ffffff;
}
.hero .tablist,
.band-ink .tablist {
  background: rgba(255, 255, 255, 0.08);
}
.hero [role='tab'],
.band-ink [role='tab'] {
  color: var(--on-field-muted);
}
.hero [role='tab'][aria-selected='true'],
.band-ink [role='tab'][aria-selected='true'] {
  background: #ffffff;
  color: #1b2166;
}
.hero [role='tab']:hover,
.band-ink [role='tab']:hover {
  color: #fff;
}
.hero [role='tab'][aria-selected='true']:hover,
.band-ink [role='tab'][aria-selected='true']:hover {
  color: #1b2166;
}
.cmd-hero {
  background: var(--field-code);
  border-color: var(--on-field-line);
}
.cmd-hero code {
  color: #ffffff;
  font-size: clamp(0.82rem, 0.75rem + 0.3vw, 0.98rem);
  padding: 15px 16px;
}
.cmd-hero code::before {
  color: #9fa8e6;
}
.cmd-hero .copy {
  background: #ffffff;
  color: #1b2166;
  border-color: transparent;
}
.fine {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 12px;
}
.hero .fine,
.band-ink .fine {
  color: var(--on-field-muted);
}
.hero :focus-visible,
.band-ink :focus-visible {
  outline-color: #f2c14e;
}

/* the calling card */
.card-stage {
  margin: 0;
  perspective: 1600px;
}
.calling-card {
  display: grid;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out);
  transform: rotate(-2deg);
}
.calling-card[data-face='back'] {
  transform: rotate(-2deg) rotateY(180deg);
}
.cc-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 28px 50px -18px rgba(3, 5, 30, 0.6), 0 2px 6px rgba(3, 5, 30, 0.25);
  min-width: 0;
}
.cc-front {
  background: #fcfcff;
  color: #1a1f4d;
  padding: clamp(20px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cc-back {
  transform: rotateY(180deg);
  background: #12164a;
  color: #e6e9ff;
  display: flex;
}
.cc-back pre {
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
  overflow: auto;
  font-size: 0.74rem;
  line-height: 1.6;
  white-space: pre;
  flex: 1;
  min-width: 0;
  scrollbar-color: #39408a #12164a;
}
.cc-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-top .mark {
  width: 28px;
  height: 28px;
  --mk-a: #2b3290;
  --mk-d: #3f7fe0;
}
.cc-kind {
  font-size: 0.82rem;
  color: #545a85;
  letter-spacing: 0.01em;
}
.cc-addr {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  letter-spacing: -0.03em;
  color: #141a52;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.cc-front code {
  background: #eef0fa;
  color: #1b2046;
}
.cc-id {
  margin: 0;
}
.cc-label {
  font-size: 0.8rem;
  color: #545a85;
  margin-right: 4px;
}
.cc-meta {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e2e4f2;
  font-size: 0.9rem;
}
.cc-meta div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 8px;
}
.cc-meta dt {
  color: #545a85;
}
.cc-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.cc-sig {
  margin: 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.card-stage figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--on-field-muted);
}
.flip {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font: 500 0.88rem/1 var(--font-body);
  cursor: pointer;
}
.flip:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- bands ---------- */
.band {
  padding-block: clamp(64px, 9vw, 120px);
}
.band-alt {
  background: var(--bg-alt);
}
.band-ink {
  background: var(--field);
  color: var(--on-field);
}
.band-ink h2 {
  color: #fff;
}
.band-ink p {
  color: var(--on-field-muted);
}
.section-lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 44em;
  margin-top: 16px;
  margin-bottom: 40px;
}

/* ---------- how it works ---------- */
.split {
  display: grid;
  gap: 48px;
}
@media (min-width: 980px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    align-items: start;
  }
  .diagram {
    position: sticky;
    top: 96px;
  }
}
.split-text > p {
  max-width: 40em;
}
.layer-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  counter-reset: layer;
}
.layer-list li {
  position: relative;
  padding: 18px 0 14px 44px;
  border-top: 1px solid var(--line);
  max-width: 40em;
}
.layer-list li::before {
  counter-increment: layer;
  content: counter(layer);
  position: absolute;
  left: 0;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--mk-a);
  color: var(--heading);
  display: grid;
  place-items: center;
  font: 600 0.82rem/1 var(--font-display);
}
.layer-list h3 {
  margin-bottom: 6px;
}
.layer-list p {
  margin: 0;
  color: var(--text);
}

.diagram {
  margin: 0;
  width: 100%;
  max-width: 460px;
  justify-self: center;
}
.diagram svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.dg-box,
.dg-app {
  fill: var(--surface);
  stroke: var(--line-strong);
  stroke-width: 1.2;
}
.dg-app {
  fill: var(--bg-alt);
  stroke-dasharray: 4 4;
}
.band-alt .dg-app {
  fill: var(--bg);
}
.dg-consent {
  fill: var(--consent-bg);
  stroke: var(--mk-d);
}
.dg-t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  fill: var(--heading);
}
.dg-m {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--muted);
}
.dg-small {
  font-family: var(--font-body);
  font-size: 11.5px;
}
.dg-cap {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  fill: var(--muted);
}
.dg-spine {
  stroke: var(--line-strong);
  stroke-width: 2;
  fill: none;
}
.dg-node {
  fill: var(--surface);
  stroke: var(--mk-a);
  stroke-width: 2;
}
.dg-node-hi {
  fill: var(--mk-d);
  stroke: var(--mk-d);
}
.dg-pill {
  fill: var(--mk-d);
}
.dg-pill-t {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  fill: var(--pill-text);
}
.dg-agent {
  fill: var(--mk-a);
}
.dg-agent-t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  fill: var(--bg);
}
.dg-flow {
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
  fill: none;
}
.dg-up {
  stroke: var(--line-strong);
  stroke-width: 2;
  fill: none;
}
.dg-env {
  fill: var(--surface);
  stroke: var(--mk-d);
  stroke-width: 1.6;
}
.dg-env-flap {
  fill: none;
  stroke: var(--mk-d);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.dg-env,
.dg-env-flap {
  animation: travel 4.8s var(--ease-out) infinite;
}
@keyframes travel {
  0% {
    transform: translateX(-82px);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  70% {
    transform: translateX(82px);
    opacity: 1;
  }
  84%,
  100% {
    transform: translateX(82px);
    opacity: 0;
  }
}

/* ---------- privacy ---------- */
.relay-view {
  display: grid;
  gap: 32px;
  margin-bottom: 56px;
}
@media (min-width: 980px) {
  .relay-view {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }
}
.envelope {
  margin: 0;
  min-width: 0;
}
.envelope pre {
  margin: 0;
  background: var(--surface);
  color: var(--code-text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.75;
}
.clear {
  background: var(--clear-bg);
  border-radius: 3px;
  padding: 1px 2px;
}
.sealed {
  background: var(--sealed-bg);
  color: var(--sealed-ink);
  border-radius: 3px;
  padding: 1px 2px;
}
.envelope figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.key::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.key-clear::before {
  background: var(--clear-bg);
  box-shadow: inset 0 0 0 1px var(--clear-ink);
}
.key-sealed::before {
  background: var(--sealed-bg);
  box-shadow: inset 0 0 0 1px var(--sealed-ink);
}
.sees {
  display: grid;
  gap: 28px;
}
.sees h3 {
  margin-bottom: 10px;
}
.ticks,
.crosses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ticks li,
.crosses li {
  position: relative;
  padding-left: 28px;
}
.ticks li::before,
.crosses li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.ticks li::before {
  background: var(--clear-bg);
  box-shadow: inset 0 0 0 1.5px var(--clear-ink);
}
.crosses li::before {
  background: var(--sealed-bg);
  box-shadow: inset 0 0 0 1.5px var(--sealed-ink);
}
.pillars {
  display: grid;
  gap: 32px 40px;
  margin-bottom: 48px;
}
@media (min-width: 860px) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.pillar {
  border-top: 2px solid var(--mk-a);
  padding-top: 18px;
}
.pillar h3 {
  margin-bottom: 10px;
}
.pillar p {
  margin: 0;
  font-size: 0.98rem;
}
.limits {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
}
.limits h3 {
  margin-bottom: 14px;
}
.limits ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.limits p {
  margin: 0;
}

/* ---------- setup ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 64px;
  counter-reset: step;
}
.steps > li {
  display: grid;
  gap: 14px 40px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
@media (min-width: 900px) {
  .steps > li {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }
}
.step-text {
  position: relative;
  padding-left: 44px;
}
.step-text::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mk-a);
  color: var(--bg);
  display: grid;
  place-items: center;
  font: 600 0.85rem/1 var(--font-display);
}
.step-text h3 {
  margin-bottom: 6px;
}
.step-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.mcp {
  display: grid;
  gap: 28px 48px;
  background: var(--bg-alt);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 44px);
}
@media (min-width: 900px) {
  .mcp {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
}
.mcp h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.mcp-cmds {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.mcp .cmd {
  background: var(--surface);
}
.cmd-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 0;
}
.cmd-label:first-child {
  margin-top: 0;
}
.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  background: var(--bg-alt);
  margin-bottom: 18px;
}
.mode-tabs [role='tab'] {
  color: var(--muted);
}
.mode-tabs [role='tab']:hover {
  color: var(--heading);
}
.mode-tabs [role='tab'][aria-selected='true'] {
  background: var(--surface);
  color: var(--heading);
  box-shadow: 0 1px 3px rgba(20, 26, 82, 0.18);
}
#setup-panel-agent .steps {
  margin-bottom: 18px;
}
#setup-panel-agent > .agent-note {
  margin: 18px 0 56px;
}
q {
  font-style: italic;
}

/* ---------- features ---------- */
.features {
  display: grid;
  gap: 0 48px;
  margin: 0 0 56px;
}
@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.features > div {
  border-top: 1px solid var(--line-strong);
  padding: 18px 0 20px;
}
.features dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}
.features dd {
  margin: 0;
  color: var(--muted);
}
.next {
  max-width: 46em;
}
.next h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.next ul {
  padding-left: 1.2em;
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}
.next p:last-child {
  color: var(--muted);
}

/* ---------- install ---------- */
.install-grid {
  display: grid;
  gap: 40px 64px;
  align-items: start;
}
@media (min-width: 980px) {
  .install-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}
.install-grid h2 {
  margin-bottom: 26px;
}
.install-full {
  margin-bottom: 18px;
}
.does {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 12px;
  color: var(--on-field-muted);
}
.does li::marker {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.band-ink :not(pre) > code {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- faq ---------- */
.faq {
  margin-top: 32px;
  border-bottom: 1px solid var(--line);
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--heading);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after,
.faq summary::before {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--mk-a);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out);
}
.faq summary::before {
  transform: rotate(90deg);
}
.faq details[open] summary::before {
  transform: rotate(0deg);
}
.faq summary:hover {
  color: var(--accent);
}
.faq details p {
  margin: 0 0 22px;
  max-width: 44em;
  color: var(--text);
}

/* ---------- contribute ---------- */
.entry {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-bottom: 1px solid var(--line-strong);
}
.entry li {
  border-top: 1px solid var(--line-strong);
}
.entry a {
  display: grid;
  gap: 4px 32px;
  padding: 20px 40px 20px 0;
  text-decoration: none;
  color: var(--text);
  position: relative;
  border-radius: 6px;
}
@media (min-width: 760px) {
  .entry a {
    grid-template-columns: 15em minmax(0, 1fr);
    align-items: baseline;
  }
}
.entry a::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--mk-a);
  border-right: 2px solid var(--mk-a);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.entry a:hover::after {
  transform: translate(4px, -50%) rotate(45deg);
}
.entry a:hover h3 {
  color: var(--accent);
}
.entry p {
  margin: 0;
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-row {
  display: grid;
  gap: 28px 48px;
}
@media (min-width: 860px) {
  .footer-row {
    grid-template-columns: 1.1fr 1fr 1.4fr;
  }
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-brand .mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.footer-brand p {
  margin: 0;
}
.footer-brand .brand-word {
  color: var(--heading);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer-legal {
  margin: 0;
}

/* ---------- demos ---------- */
.demo {
  margin: 0;
}
.demo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--field-2);
  box-shadow: var(--shadow);
  aspect-ratio: 8 / 5;
}
.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
}
.demo figcaption strong,
.demo figcaption h3 {
  color: var(--heading);
}
.demo figcaption h3 {
  margin-bottom: 4px;
}
.demo figcaption p {
  margin: 0;
}
.demo-hero {
  max-width: 960px;
  margin: 0 auto 56px;
}
.demo-hero figcaption {
  font-size: 1.04rem;
}
.demo-grid {
  display: grid;
  gap: 44px 32px;
}
@media (min-width: 760px) {
  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.demo-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(12, 15, 38, 0.62);
  color: #fff;
  font: 600 0.78rem/1 var(--font-body);
  cursor: pointer;
  opacity: 0.85;
}
.demo-toggle:hover,
.demo-toggle:focus-visible {
  opacity: 1;
  background: rgba(12, 15, 38, 0.82);
}
.demo-toggle svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
@media (max-width: 599px) {
  .demo-toggle {
    right: 6px;
    bottom: 6px;
    min-height: 28px;
    padding: 4px 8px;
  }
  .demo-toggle-label {
    display: none;
  }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .dg-env,
  .dg-env-flap {
    opacity: 1;
    transform: none;
  }
  /* no 3D turn: swap faces instead */
  .calling-card,
  .calling-card[data-face='back'] {
    transform: none;
  }
  .cc-back {
    transform: none;
    visibility: hidden;
  }
  .calling-card[data-face='back'] .cc-back {
    visibility: visible;
  }
  .calling-card[data-face='back'] .cc-front {
    visibility: hidden;
  }
}

@media (forced-colors: active) {
  .mark .mk-a {
    stroke: CanvasText;
  }
  .mark .mk-d {
    fill: Highlight;
  }
}

/* ---------- agent selector (setup, "Or just ask your agent") ---------- */
.agent-tabs {
  margin-bottom: 22px;
}
.agent-tabs [role='tab'] {
  padding: 7px 10px;
  font-size: 0.84rem;
}
.cmd-file code::before {
  content: none;
}
.cmd-label code {
  overflow-wrap: anywhere;
}
.agent-fine {
  margin: 12px 0 0;
}

/* ---------- works with (hero) ---------- */
.works-with {
  margin-top: 22px;
}
.ww-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-field-muted);
}
.works-with ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.works-with li {
  padding: 4px 10px;
  border: 1px solid var(--on-field-line);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--on-field);
  white-space: nowrap;
}
.works-with .fine {
  margin-top: 10px;
}

/* ---------- docs link in the header (the section nav is hidden on small screens) ---------- */
.docs-chip {
  display: none;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--heading);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 4px;
}
.docs-chip:hover {
  border-color: var(--mk-d);
  color: var(--heading);
}
@media (max-width: 899px) {
  .docs-chip {
    display: inline-block;
  }
}
.site-nav a[aria-current='page'] {
  color: var(--heading);
  background: var(--bg-alt);
}

/* ---------- faq groups ---------- */
.faq-group {
  margin-top: 44px;
}
.faq-group.first {
  margin-top: 32px;
}
.faq-group h3 {
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.faq-group .faq {
  margin-top: 12px;
}
.faq details ul {
  margin: 0 0 22px;
  padding-left: 1.2em;
  max-width: 44em;
}
.faq details li {
  margin-bottom: 6px;
}
.faq details pre {
  margin: 0 0 22px;
  padding: 12px 14px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  max-width: 44em;
  color: var(--code-text);
  line-height: 1.55;
}
.tag {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 4px;
  border-radius: 999px;
  background: var(--clear-bg);
  color: var(--clear-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 0.08em;
  white-space: nowrap;
}
