:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --paper-light: #fbfaf6;
  --ink: #151515;
  --body: #3f413d;
  --muted: #6b6d67;
  --line: rgba(21, 21, 21, 0.18);
  --line-strong: rgba(21, 21, 21, 0.55);
  --terminal: #111310;
  --terminal-raised: #191c18;
  --terminal-ink: #f5f2ea;
  --terminal-muted: #9ea39b;
  --accent: #17b26a;
  --accent-bright: #48e391;
  --accent-soft: #d7eddf;
  --danger: #a0382d;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Consolas, monospace;
  --max: 1240px;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

button {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clipboard-proxy {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper-light);
  border: 1px solid var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 clamp(20px, 3.1vw, 52px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: var(--muted);
  font-size: 0.77rem;
}

.nav-links a,
.header-action,
.site-footer a {
  text-decoration: none;
}

.nav-links a:hover,
.brand-mark:hover,
.site-footer a:hover {
  color: var(--accent);
}

.header-action {
  justify-self: end;
  min-height: 34px;
  padding: 8px 13px;
  color: var(--terminal-ink);
  border: 1px solid rgba(245, 242, 234, 0.62);
  font-family: var(--mono);
  font-size: 0.72rem;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-action:hover {
  color: var(--ink);
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  min-height: 100svh;
  padding-top: var(--header-height);
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(54px, 8vh, 96px) clamp(28px, 5vw, 84px) clamp(44px, 7vh, 78px);
}

.eyebrow,
.section-label {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.69rem, 0.75vw, 0.78rem);
  letter-spacing: 0.035em;
  line-height: 1.45;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(4.2rem, 7.7vw, 9rem);
  font-weight: 730;
  letter-spacing: -0.085em;
  line-height: 0.75;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.45rem, 5.2vw, 5.9rem);
  font-weight: 660;
  letter-spacing: -0.068em;
  line-height: 0.94;
}

h3 {
  margin-bottom: 7px;
  font-size: clamp(1.15rem, 1.65vw, 1.52rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hero-line {
  max-width: 13ch;
  margin-bottom: 20px;
  font-size: clamp(1.65rem, 3vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-body {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--body);
  font-size: clamp(1rem, 1.15vw, 1.17rem);
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button::after {
  content: "\2192";
  margin-left: 16px;
  transition: transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(3px);
}

.button.primary {
  color: var(--terminal-ink);
  background: var(--ink);
}

.button.primary:hover,
.button.primary[data-state="success"] {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.button.quiet::after {
  content: "\25B7";
}

.button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin: 27px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.4;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
}

.hero-trust span:not(:first-child)::before {
  width: 5px;
  height: 5px;
  margin-right: 10px;
  background: var(--accent);
  border-radius: 50%;
  content: "";
}

.product-plane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100svh - var(--header-height));
  background: var(--terminal);
  color: var(--terminal-ink);
  font-family: var(--mono);
}

.product-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(16px, 2vw, 30px);
  color: var(--terminal-muted);
  border-bottom: 1px solid rgba(245, 242, 234, 0.13);
  font-size: 0.66rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  background: #53584f;
  border-radius: 50%;
}

.window-dots i:first-child {
  background: var(--accent);
}

.motion-toggle {
  justify-self: end;
  padding: 5px 0;
  color: var(--terminal-muted);
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  cursor: pointer;
}

.motion-toggle:hover {
  color: var(--terminal-ink);
}

.agent-switcher {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 58px;
  padding: 0 clamp(20px, 3.5vw, 52px);
  border-bottom: 1px solid rgba(245, 242, 234, 0.12);
}

.agent-switcher button,
.segmented-control button {
  position: relative;
  padding: 8px 0;
  color: var(--terminal-muted);
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  cursor: pointer;
}

.agent-switcher button[aria-pressed="true"] {
  color: var(--terminal-ink);
}

.agent-switcher button[aria-pressed="true"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent-bright);
  content: "";
}

.terminal-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 58px) 0;
}

.terminal-pane {
  border: 1px solid rgba(245, 242, 234, 0.24);
  background: rgba(255, 255, 255, 0.015);
}

.pane-bar,
.pane-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  padding: 0 clamp(12px, 2vw, 18px);
  color: var(--terminal-muted);
  border-bottom: 1px solid rgba(245, 242, 234, 0.12);
  font-size: clamp(0.64rem, 0.8vw, 0.72rem);
}

.signal {
  display: inline-flex;
  align-items: center;
  color: var(--accent-bright);
}

.signal::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(72, 227, 145, 0.12);
  content: "";
}

.agent-output {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 90px;
  padding: 16px clamp(14px, 2vw, 20px);
  color: var(--terminal-muted);
  font-size: clamp(0.69rem, 1vw, 0.84rem);
  line-height: 1.75;
}

.handoff-line {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: var(--accent-bright);
  font-size: 0.65rem;
  letter-spacing: 0.025em;
}

.dojo-pane {
  position: relative;
  overflow: hidden;
  max-height: 360px;
  transition: border-color 180ms ease, max-height 360ms ease, transform 360ms ease;
}

.dojo-pane.is-active {
  border-color: rgba(72, 227, 145, 0.72);
}

.dojo-pane.is-collapsed {
  max-height: 44px;
  border-color: rgba(72, 227, 145, 0.56);
  transform: translateY(8px);
}

.dojo-pane.is-collapsed .pane-bar {
  min-height: 42px;
  color: var(--accent-bright);
  border-bottom: 0;
}

.dojo-pane.is-collapsed .pane-bar span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dojo-pane.is-collapsed .pane-bar span:last-child {
  flex: 0 0 auto;
  color: var(--terminal-muted);
}

.dojo-pane::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent-bright);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 240ms ease;
  content: "";
}

.dojo-pane.is-active::before {
  transform: scaleY(1);
}

.dojo-output {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(130px, 19vh, 190px);
  max-height: 230px;
  padding: 20px clamp(16px, 2.8vw, 28px);
  overflow: hidden;
  opacity: 1;
  transition: min-height 300ms ease, max-height 300ms ease, padding 300ms ease, opacity 160ms ease;
}

.dojo-pane.is-collapsed .dojo-output {
  min-height: 0;
  max-height: 0;
  padding-block: 0;
  opacity: 0;
}

.terminal-kicker {
  margin: 0 0 13px;
  color: var(--accent-bright);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
}

.dojo-output strong {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(1.1rem, 2.1vw, 1.72rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.dojo-output > span {
  color: var(--terminal-muted);
  font-size: clamp(0.69rem, 0.95vw, 0.82rem);
  line-height: 1.55;
}

.terminal-progress {
  height: 3px;
  margin: 0 clamp(16px, 2.8vw, 28px);
  overflow: hidden;
  background: rgba(245, 242, 234, 0.12);
  transition: height 260ms ease, margin 260ms ease, opacity 160ms ease;
}

.dojo-pane.is-collapsed .terminal-progress {
  height: 0;
  margin-inline: 0;
  opacity: 0;
}

.terminal-progress span {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--accent-bright);
  transition: width 360ms ease;
}

.pane-footer {
  min-height: 40px;
  max-height: 60px;
  margin-top: 14px;
  border-top: 1px solid rgba(245, 242, 234, 0.12);
  border-bottom: 0;
  overflow: hidden;
  opacity: 1;
  transition: min-height 260ms ease, max-height 260ms ease, margin 260ms ease, opacity 160ms ease;
}

.dojo-pane.is-collapsed .pane-footer {
  min-height: 0;
  max-height: 0;
  margin-top: 0;
  border-top: 0;
  opacity: 0;
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(245, 242, 234, 0.14);
}

.loop-steps button {
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px;
  overflow: hidden;
  color: var(--terminal-muted);
  background: none;
  border: 0;
  border-right: 1px solid rgba(245, 242, 234, 0.14);
  font-family: var(--mono);
  font-size: clamp(0.6rem, 0.74vw, 0.69rem);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.loop-steps button:last-child {
  border-right: 0;
}

.loop-steps button span {
  display: block;
  margin-bottom: 5px;
  color: #666d62;
  font-size: 0.55rem;
}

.loop-steps button:hover,
.loop-steps button[aria-current="step"] {
  color: var(--terminal-ink);
  background: rgba(72, 227, 145, 0.07);
}

.loop-steps button[aria-current="step"] span {
  color: var(--accent-bright);
}

.product-provenance {
  margin: 0;
  padding: 10px clamp(16px, 2vw, 30px) 11px;
  color: #7f857c;
  border-top: 1px solid rgba(245, 242, 234, 0.1);
  font-size: 0.56rem;
  line-height: 1.45;
  text-align: center;
}

.flow-section,
.proof-section,
.install-section,
.faq-section {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: clamp(84px, 11vw, 154px) clamp(22px, 4vw, 54px);
}

.flow-section,
.proof-section,
.faq-section {
  border-bottom: 1px solid var(--line-strong);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(54px, 8vw, 104px);
}

.section-intro .section-label,
.privacy-lead .section-label,
.install-heading .section-label,
.faq-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-intro > p:last-child,
.privacy-lead > p:last-child,
.install-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.6;
}

.flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.flow-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(150px, 0.3fr);
  gap: clamp(16px, 3vw, 42px);
  align-items: start;
  padding: clamp(24px, 3.2vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}

.flow-list li:last-child {
  border-bottom: 0;
}

.flow-number,
.flow-state,
.fact > span,
.code-heading,
.install-controls legend,
.action-status,
.form-note,
.form-status {
  font-family: var(--mono);
}

.flow-number,
.flow-state {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.5;
}

.flow-list p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.56;
}

.flow-state {
  justify-self: end;
  text-align: right;
}

.proof-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(54px, 8vw, 92px);
}

.proof-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.proof-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.6;
}

.capture-proof {
  margin: 0 0 clamp(56px, 8vw, 96px);
}

.capture-proof-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.5;
}

.capture-proof-heading span {
  color: var(--accent);
  text-transform: uppercase;
}

.capture-proof-heading strong {
  font-weight: 600;
}

.capture-proof-viewport {
  display: block;
  max-height: 680px;
  overflow: auto;
  background: var(--terminal);
  border: 1px solid var(--ink);
  scrollbar-color: #50564e var(--terminal);
}

.capture-proof-viewport img {
  display: block;
  width: 100%;
  min-width: 820px;
  height: auto;
}

.capture-proof figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
}

.capture-proof figcaption strong {
  display: block;
  max-width: 760px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.45;
}

.capture-proof figcaption p {
  max-width: 800px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.capture-proof figcaption code {
  padding: 2px 5px;
  background: rgba(21, 21, 21, 0.06);
  font-family: var(--mono);
  font-size: 0.88em;
}

.capture-proof figcaption nav {
  display: grid;
  gap: 10px;
  min-width: max-content;
  font-family: var(--mono);
  font-size: 0.66rem;
}

.capture-proof figcaption a:hover {
  color: var(--accent);
}

.proof-ledger {
  border-top: 1px solid var(--line-strong);
}

.proof-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(210px, 0.62fr) minmax(250px, 1fr) auto;
  gap: clamp(18px, 3vw, 42px);
  align-items: baseline;
  padding: clamp(24px, 3.2vw, 38px) 0;
  border-bottom: 1px solid var(--line);
}

.proof-row > span,
.evidence-policy {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  line-height: 1.55;
  text-transform: uppercase;
}

.proof-row strong {
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  font-weight: 630;
  line-height: 1.3;
}

.proof-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.proof-row a,
.privacy-link {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  white-space: nowrap;
}

.proof-row a:hover,
.privacy-link:hover {
  color: var(--accent);
}

.evidence-policy {
  max-width: 880px;
  margin: 28px 0 0;
  text-transform: none;
}

.privacy-section {
  padding: clamp(86px, 11vw, 154px) max(clamp(22px, 7vw, 110px), calc((100vw - var(--max)) / 2 + 54px));
  background: var(--ink);
  color: var(--terminal-ink);
}

.privacy-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(55px, 8vw, 100px);
}

.privacy-section .section-label,
.privacy-lead > p:last-child {
  color: var(--terminal-muted);
}

.privacy-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(245, 242, 234, 0.4);
  border-bottom: 1px solid rgba(245, 242, 234, 0.2);
}

.fact {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px) clamp(18px, 2.5vw, 34px) clamp(24px, 3vw, 38px) 0;
  border-right: 1px solid rgba(245, 242, 234, 0.18);
}

.fact + .fact {
  padding-left: clamp(18px, 2.5vw, 34px);
}

.fact:last-child {
  padding-right: 0;
  border-right: 0;
}

.fact > span {
  display: block;
  margin-bottom: 23px;
  color: var(--accent-bright);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  min-height: 3em;
  margin-bottom: 20px;
  font-size: clamp(1.05rem, 1.55vw, 1.38rem);
  font-weight: 550;
  line-height: 1.35;
}

.fact p {
  margin: 0;
  color: var(--terminal-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.privacy-disclosure {
  max-width: 920px;
  margin: 30px 0 0;
  color: var(--terminal-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.65;
}

.privacy-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--terminal-ink);
}

.install-section {
  padding-bottom: clamp(96px, 12vw, 170px);
}

.mobile-handoff {
  display: none;
}

.install-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(54px, 8vw, 92px);
}

.install-workspace {
  display: grid;
  grid-template-columns: minmax(190px, 0.29fr) minmax(0, 1fr);
  gap: 0 clamp(34px, 5vw, 76px);
  align-items: start;
}

.install-controls {
  display: grid;
  gap: 28px;
  padding-top: 5px;
}

.install-controls fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.install-controls legend {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.segmented-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 1px solid var(--line-strong);
}

.segmented-control button {
  width: 100%;
  padding: 12px 4px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  text-align: left;
}

.segmented-control button[aria-pressed="true"] {
  color: var(--ink);
}

.segmented-control button[aria-pressed="true"]::before {
  color: var(--accent);
  content: "\25CF";
  margin-right: 9px;
}

.code-surface {
  min-width: 0;
  color: var(--terminal-ink);
  background: var(--terminal);
  border: 1px solid var(--ink);
}

.code-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 15px;
  color: var(--terminal-muted);
  border-bottom: 1px solid rgba(245, 242, 234, 0.15);
  font-size: 0.65rem;
}

.code-surface pre {
  margin: 0;
  overflow: auto;
  scrollbar-color: #50564e var(--terminal);
}

.code-surface code {
  display: block;
  min-width: 720px;
  padding: clamp(24px, 3.5vw, 44px) clamp(18px, 3vw, 34px);
  color: var(--terminal-ink);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.88vw, 0.85rem);
  line-height: 1.85;
}

.code-actions {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 13px 15px;
  border-top: 1px solid rgba(245, 242, 234, 0.15);
}

.code-actions .button {
  min-height: 38px;
  margin-right: auto;
  color: var(--ink);
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.code-actions .button::after {
  content: "\2398";
}

.code-actions a {
  color: var(--terminal-muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.code-actions a:hover {
  color: var(--terminal-ink);
}

.install-expectation {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  margin-top: 14px;
}

.install-expectation p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.action-status {
  min-width: 210px;
  color: var(--accent) !important;
  text-align: right;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 120px);
}

.faq-heading h2 {
  margin-top: 24px;
  font-size: clamp(2.5rem, 4.2vw, 4.7rem);
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 44px 24px 0;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 22px;
  right: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.15rem;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  max-width: 700px;
  padding: 0 44px 24px 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.faq-list code {
  padding: 2px 5px;
  background: rgba(21, 21, 21, 0.06);
  font-family: var(--mono);
  font-size: 0.88em;
}

.final-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
  gap: clamp(52px, 8vw, 120px);
  align-items: end;
  padding: clamp(88px, 11vw, 156px) max(clamp(22px, 7vw, 110px), calc((100vw - var(--max)) / 2 + 54px));
  color: var(--terminal-ink);
  background: var(--ink);
}

.final-copy .section-label {
  color: var(--accent-bright);
}

.final-copy h2 {
  max-width: 890px;
  margin-bottom: 38px;
}

.button.inverse {
  color: var(--ink);
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.button.inverse:hover {
  background: var(--terminal-ink);
  border-color: var(--terminal-ink);
}

.updates-form > label {
  display: block;
  margin-bottom: 12px;
  color: var(--terminal-muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.email-row input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  color: var(--terminal-ink);
  background: transparent;
  border: 1px solid rgba(245, 242, 234, 0.48);
  border-right: 0;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
}

.email-row input::placeholder {
  color: #777d74;
}

.email-row input[aria-invalid="true"] {
  border-color: #f39b91;
}

.email-row .button {
  min-height: 48px;
}

.email-row .button::after {
  display: none;
}

.form-note,
.form-status {
  margin: 11px 0 0;
  color: var(--terminal-muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.form-status {
  min-height: 1.45em;
}

.form-status[data-state="success"] {
  color: var(--accent-bright);
}

.form-status[data-state="error"] {
  color: #f39b91;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 16px clamp(22px, 4vw, 54px);
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.site-footer nav {
  justify-self: end;
  display: flex;
  gap: 20px;
}

.content-page-body {
  min-height: 100svh;
  background: var(--paper);
}

.content-site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 clamp(20px, 3.1vw, 52px);
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}

.content-site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.content-site-header a {
  text-decoration: none;
}

.content-site-header nav a:hover,
.content-site-header nav a[aria-current="page"] {
  color: var(--accent);
}

.content-main {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: clamp(70px, 9vw, 126px) clamp(22px, 4vw, 54px) clamp(96px, 12vw, 160px);
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: end;
  padding-bottom: clamp(52px, 8vw, 90px);
  border-bottom: 1px solid var(--line-strong);
}

.content-hero .section-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.content-hero h1 {
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 8rem);
  line-height: 0.82;
}

.content-hero > div > p,
.content-hero > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.content-section {
  padding: clamp(52px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}

.content-section:last-child {
  border-bottom: 0;
}

.content-section h2 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(2.2rem, 4.5vw, 4.7rem);
}

.content-section h3 {
  margin-top: 28px;
}

.content-section p,
.content-section li {
  max-width: 780px;
  color: var(--body);
  line-height: 1.7;
}

.content-section code,
.support-command code {
  padding: 2px 5px;
  background: rgba(21, 21, 21, 0.06);
  font-family: var(--mono);
  font-size: 0.88em;
}

.content-ledger {
  border-top: 1px solid var(--line-strong);
}

.content-ledger-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.26fr) minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 56px);
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.content-ledger-row > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.content-ledger-row strong {
  line-height: 1.4;
}

.content-ledger-row a {
  font-family: var(--mono);
  font-size: 0.68rem;
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.archive-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  max-width: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.archive-list a {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.25fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 118px);
  padding-top: clamp(54px, 8vw, 92px);
}

.doc-toc {
  align-self: start;
  position: sticky;
  top: 24px;
  display: grid;
  gap: 11px;
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.doc-toc a {
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--accent);
}

.doctor-section {
  scroll-margin-top: 24px;
  padding: 0 0 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.anchor-target {
  display: block;
  position: relative;
  top: -24px;
  visibility: hidden;
}

.doctor-section:last-child {
  border-bottom: 0;
}

.doctor-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.4vw, 3.5rem);
}

.doctor-section p,
.doctor-section li {
  max-width: 780px;
  color: var(--body);
  line-height: 1.7;
}

.doctor-section pre,
.support-command {
  max-width: 820px;
  padding: 18px 20px;
  overflow: auto;
  color: var(--terminal-ink);
  background: var(--terminal);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.65;
}

.doctor-section pre code,
.support-command code {
  padding: 0;
  color: inherit;
  background: none;
}

.route-footer {
  border-top-color: var(--line-strong);
}

.js.app-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js.app-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js.app-ready .hero-copy.reveal {
  transition-delay: 80ms;
}

.js.app-ready .product-plane.reveal {
  transition-delay: 180ms;
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
  }

  .hero-copy {
    padding-inline: clamp(24px, 4vw, 48px);
  }

  .code-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 880px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    position: absolute;
    background: var(--paper);
  }

  .header-action {
    color: var(--ink);
    border-color: var(--ink);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    min-height: min(720px, calc(100svh - var(--header-height)));
    padding: 80px clamp(22px, 7vw, 68px) 64px;
  }

  h1 {
    font-size: clamp(4.6rem, 16vw, 8rem);
  }

  .hero-line {
    font-size: clamp(2rem, 7vw, 4rem);
  }

  .product-plane {
    min-height: 760px;
  }

  .section-intro,
  .proof-heading,
  .privacy-lead,
  .install-heading,
  .faq-section,
  .final-section,
  .content-hero {
    grid-template-columns: 1fr;
  }

  .section-intro > p:last-child,
  .proof-heading > p:last-child,
  .privacy-lead > p:last-child,
  .install-heading > p:last-child {
    max-width: 680px;
  }

  .proof-row {
    grid-template-columns: minmax(110px, 0.25fr) minmax(220px, 0.72fr) minmax(0, 1fr);
  }

  .proof-row a {
    grid-column: 2 / -1;
  }

  .privacy-facts {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact + .fact {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(245, 242, 234, 0.18);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .fact strong {
    min-height: 0;
  }

  .install-workspace {
    grid-template-columns: 1fr;
  }

  .install-controls {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 30px;
  }

  .segmented-control {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 18px;
  }

  .segmented-control button {
    width: auto;
  }

  .install-expectation {
    grid-column: 1;
  }

  .faq-heading h2 {
    max-width: 650px;
  }

  .content-hero .section-label {
    grid-column: 1;
  }
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  .desktop-install {
    display: none;
  }

  .mobile-handoff {
    display: block;
    max-width: 720px;
    padding: clamp(24px, 6vw, 42px);
    color: var(--terminal-ink);
    background: var(--terminal);
    border: 1px solid var(--ink);
  }

  .mobile-handoff .terminal-kicker {
    color: var(--accent-bright);
  }

  .mobile-handoff h3 {
    max-width: 18ch;
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(1.55rem, 7vw, 2.35rem);
  }

  .mobile-handoff > p:not(.terminal-kicker):not(.action-status) {
    max-width: 620px;
    color: var(--terminal-muted);
    line-height: 1.65;
  }

  .mobile-handoff-actions {
    display: grid;
    gap: 10px;
    margin-top: 26px;
  }

  .mobile-handoff-actions .button {
    width: 100%;
  }

  .mobile-handoff .button.primary {
    color: var(--ink);
    background: var(--accent-bright);
    border-color: var(--accent-bright);
  }

  .mobile-handoff .button.quiet {
    color: var(--terminal-ink);
    border-color: rgba(245, 242, 234, 0.56);
  }

  .mobile-handoff .action-status {
    margin: 16px 0 0;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 17px;
  }

  .hero-copy {
    min-height: 680px;
    padding-inline: 20px;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6.2rem);
  }

  h2 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-trust span:not(:first-child)::before {
    display: none;
  }

  .product-plane {
    min-height: 680px;
  }

  .product-toolbar {
    grid-template-columns: 1fr auto;
  }

  .product-toolbar > span {
    display: none;
  }

  .terminal-stage {
    width: calc(100% - 24px);
  }

  .agent-output {
    min-height: 78px;
  }

  .dojo-output {
    min-height: 142px;
  }

  .loop-steps button {
    min-height: 55px;
    padding-inline: 7px;
    font-size: 0.56rem;
  }

  .flow-section,
  .proof-section,
  .install-section,
  .faq-section {
    padding-inline: 20px;
  }

  .privacy-section,
  .final-section {
    padding-inline: 20px;
  }

  .flow-list li {
    grid-template-columns: 38px 1fr;
  }

  .flow-state {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .proof-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .capture-proof-heading {
    flex-direction: column;
    gap: 5px;
  }

  .capture-proof-viewport {
    max-height: 520px;
  }

  .capture-proof figcaption {
    grid-template-columns: 1fr;
  }

  .capture-proof figcaption nav {
    min-width: 0;
  }

  .proof-row a {
    grid-column: 1;
    margin-top: 6px;
  }

  .install-controls {
    grid-template-columns: 1fr;
  }

  .code-heading {
    flex-direction: column;
    gap: 5px;
  }

  .code-surface code {
    min-width: 660px;
  }

  .code-actions {
    gap: 11px 16px;
  }

  .code-actions .button {
    width: 100%;
    margin: 0;
  }

  .install-expectation {
    flex-direction: column;
  }

  .action-status {
    min-width: 0;
    text-align: left;
  }

  .email-row {
    grid-template-columns: 1fr;
  }

  .email-row input {
    border-right: 1px solid rgba(245, 242, 234, 0.48);
    border-bottom: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-self: start;
    flex-wrap: wrap;
  }

  .content-site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 14px;
  }

  .content-site-header nav {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .content-main {
    padding-inline: 20px;
  }

  .content-hero h1 {
    font-size: clamp(3.2rem, 17vw, 5.3rem);
  }

  .content-ledger-row,
  .archive-list li,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js.app-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Obsidian terminal dojo

   The homepage is intentionally flat, square, and typographic. Jade is a
   functional signal rather than decoration: active state, progress, focus,
   and the primary action. These overrides also carry the dark system through
   the documentation and policy routes.
   -------------------------------------------------------------------------- */

:root {
  color-scheme: dark;
  --canvas: #070907;
  --surface-1: #0b0e0c;
  --surface-2: #111511;
  --surface-3: #171c18;
  --text: #f0eee5;
  --text-dim: #a0a69f;
  --text-faint: #646b65;
  --jade: #6df29b;
  --jade-strong: #8affad;
  --jade-dim: rgba(109, 242, 155, 0.14);
  --rule: rgba(240, 238, 229, 0.12);
  --rule-strong: rgba(240, 238, 229, 0.28);
  --danger-elite: #ff887a;
  --display: "Geist Mono", "SFMono-Regular", "Cascadia Code", "Liberation Mono", Consolas, monospace;
  --copy: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(18px, 3.4vw, 56px);
  --content-max: 1440px;
  --reading-max: 760px;
  --elite-header: 64px;
  --fast: 140ms;
  --normal: 280ms;
  --slow: 560ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Compatibility aliases for the content routes and the published markup. */
  --paper: var(--canvas);
  --paper-light: var(--surface-1);
  --ink: var(--text);
  --body: var(--text-dim);
  --muted: var(--text-faint);
  --line: var(--rule);
  --line-strong: var(--rule-strong);
  --terminal: var(--surface-1);
  --terminal-raised: var(--surface-2);
  --terminal-ink: var(--text);
  --terminal-muted: var(--text-dim);
  --accent: var(--jade);
  --accent-bright: var(--jade-strong);
  --accent-soft: var(--jade-dim);
  --danger: var(--danger-elite);
  --sans: var(--copy);
  --mono: var(--display);
  --max: var(--content-max);
  --header-height: var(--elite-header);
}

html {
  min-width: 320px;
  background: var(--canvas);
  color-scheme: dark;
  scroll-padding-top: calc(var(--elite-header) + 16px);
}

body,
.content-page-body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--copy);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

main {
  overflow: clip;
}

a {
  text-decoration-color: rgba(109, 242, 155, 0.48);
  text-underline-offset: 0.28em;
}

a:hover {
  text-decoration-color: var(--jade);
}

::selection {
  color: var(--canvas);
  background: var(--jade);
}

h1,
h2,
h3,
.brand-mark,
.eyebrow,
.section-label,
.button,
button,
code,
pre {
  font-family: var(--display);
}

h1,
h2,
h3 {
  color: var(--text);
  text-wrap: balance;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(5.4rem, 11.6vw, 12.25rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

h2 {
  font-size: clamp(2.7rem, 6.2vw, 6.8rem);
  font-weight: 570;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.48rem);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

code,
pre,
.product-plane,
.install-command {
  font-variant-ligatures: none;
  font-variant-numeric: tabular-nums;
}

.eyebrow,
.section-label {
  margin: 0 0 22px;
  color: var(--jade);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.skip-link {
  color: var(--canvas);
  background: var(--jade);
  border: 1px solid var(--jade);
  font-family: var(--display);
  text-decoration: none;
}

button,
a,
input,
summary {
  outline-color: var(--jade);
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
}

/* Header */

.site-header,
.content-site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: var(--elite-header);
  padding: 0 var(--gutter);
  color: var(--text);
  background: rgba(7, 9, 7, 0.92);
  border-bottom: 1px solid var(--rule);
}

.brand-mark {
  justify-self: start;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark::after {
  display: inline-block;
  width: 0.62em;
  height: 1.05em;
  margin-left: 0.18em;
  vertical-align: -0.18em;
  background: var(--jade);
  content: "";
  animation: elite-cursor 1.05s steps(1, end) infinite;
}

.site-nav,
.nav-links,
.content-site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  min-width: 0;
  color: var(--text-dim);
  font-family: var(--display);
  font-size: 0.69rem;
}

.site-nav a,
.nav-links a,
.content-site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color var(--fast) ease;
}

.site-nav a:hover,
.nav-links a:hover,
.content-site-header nav a:hover,
.content-site-header nav a[aria-current="page"] {
  color: var(--jade);
}

.header-action {
  justify-self: end;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  color: var(--canvas);
  background: var(--jade);
  border: 1px solid var(--jade);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 650;
  text-decoration: none;
  transition: color var(--fast) ease, background var(--fast) ease, box-shadow var(--fast) ease;
}

.header-action:hover {
  color: var(--text);
  background: transparent;
  border-color: var(--jade);
  box-shadow: 0 0 24px rgba(109, 242, 155, 0.08);
}

/* Buttons and controls */

.button,
.demo-controls button,
.demo-mode-switcher button,
.agent-switcher button,
.segmented-control button {
  min-height: 44px;
  border-radius: 0;
  font-family: var(--display);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule-strong);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--fast) ease, background var(--fast) ease, border-color var(--fast) ease, transform var(--fast) var(--ease-out), box-shadow var(--fast) ease;
}

.button::after {
  margin-left: 16px;
}

.button:hover {
  color: var(--jade);
  background: var(--surface-2);
  border-color: var(--jade);
  box-shadow: 0 0 24px rgba(109, 242, 155, 0.07);
  transform: translateY(-1px);
}

.button.primary,
.button.inverse {
  color: var(--canvas);
  background: var(--jade);
  border-color: var(--jade);
}

.button.primary:hover,
.button.inverse:hover,
.button.primary[data-state="success"],
.button.inverse[data-state="success"] {
  color: var(--text);
  background: transparent;
  border-color: var(--jade);
}

.button.quiet {
  color: var(--text-dim);
  border-color: var(--rule-strong);
}

.button:disabled {
  opacity: 0.5;
  transform: none;
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  min-height: 100svh;
  padding-top: var(--elite-header);
  color: var(--text);
  background: var(--canvas);
  border-bottom: 1px solid var(--rule-strong);
}

@supports (min-height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(76px, 10vh, 128px) clamp(30px, 4.6vw, 76px) clamp(58px, 8vh, 96px) var(--gutter);
}

.hero-copy .eyebrow {
  margin-bottom: clamp(28px, 5vh, 58px);
}

.hero-line {
  max-width: 18ch;
  margin: 0 0 20px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 3.25rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.hero-body {
  max-width: 560px;
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.14vw, 1.14rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row,
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 26px 0 0;
  color: var(--text-faint);
  font-family: var(--display);
  font-size: 0.62rem;
  line-height: 1.5;
}

.trust-row > *,
.hero-trust > * {
  display: inline-flex;
  align-items: center;
}

.trust-row > *:not(:first-child)::before,
.hero-trust > *:not(:first-child)::before {
  width: 4px;
  height: 4px;
  margin-right: 10px;
  background: var(--jade);
  border-radius: 0;
  content: "";
}

/* Live product plane */

.product-plane {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100svh - var(--elite-header));
  overflow: hidden;
  color: var(--text);
  background: var(--surface-1);
  border-left: 1px solid var(--rule-strong);
  box-shadow: inset 0 0 56px rgba(109, 242, 155, 0.025);
}

.product-plane::after {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath d='M0 3.5H4' stroke='%23f0eee5' stroke-opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  content: "";
}

.product-plane:focus-within {
  box-shadow: inset 0 0 68px rgba(109, 242, 155, 0.04);
}

.product-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(14px, 2vw, 28px);
  color: var(--text-faint);
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.62rem;
}

.window-dots i {
  width: 6px;
  height: 6px;
  background: var(--text-faint);
  border-radius: 0;
}

.window-dots i:first-child {
  background: var(--jade);
  box-shadow: 0 0 12px rgba(109, 242, 155, 0.3);
}

.motion-toggle {
  justify-self: end;
  min-height: 44px;
  color: var(--text-faint);
  background: none;
  border: 0;
  font-family: var(--display);
  font-size: 0.62rem;
  cursor: pointer;
}

.motion-toggle:hover {
  color: var(--jade);
}

.agent-switcher,
.demo-mode-switcher {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  min-height: 54px;
  padding: 0 clamp(18px, 3vw, 44px);
  border-bottom: 1px solid var(--rule);
}

.agent-switcher button,
.demo-mode-switcher button {
  position: relative;
  padding: 0;
  color: var(--text-faint);
  background: none;
  border: 0;
  font-family: var(--display);
  font-size: 0.67rem;
  cursor: pointer;
  transition: color var(--fast) ease;
}

.agent-switcher button:hover,
.agent-switcher button[aria-pressed="true"],
.demo-mode-switcher button:hover,
.demo-mode-switcher button[aria-pressed="true"],
.demo-mode-switcher button[aria-selected="true"] {
  color: var(--text);
}

.agent-switcher button[aria-pressed="true"]::after,
.demo-mode-switcher button[aria-pressed="true"]::after,
.demo-mode-switcher button[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--jade);
  box-shadow: 0 0 12px rgba(109, 242, 155, 0.25);
  content: "";
}

.terminal-stage,
.demo-playfield {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 48px, 780px);
  margin: 0 auto;
  padding: clamp(30px, 5.2vh, 64px) 0;
  container: waitdojo-demo / inline-size;
}

.terminal-pane,
.agent-pane,
.dojo-pane {
  color: var(--text);
  background: rgba(240, 238, 229, 0.012);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
}

.agent-pane {
  opacity: 0.82;
}

.pane-bar,
.pane-footer,
.demo-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  padding: 0 clamp(12px, 2vw, 18px);
  color: var(--text-faint);
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: clamp(0.62rem, 0.78vw, 0.7rem);
}

.signal {
  color: var(--jade);
}

.signal::before {
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--jade);
  border-radius: 0;
  box-shadow: 0 0 12px rgba(109, 242, 155, 0.34);
}

.agent-output {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 94px;
  padding: 16px clamp(14px, 2vw, 20px);
  color: var(--text-dim);
  font-family: var(--display);
  font-size: clamp(0.68rem, 0.95vw, 0.8rem);
  line-height: 1.75;
}

.handoff-line {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: var(--jade);
  font-family: var(--display);
  font-size: 0.62rem;
}

.dojo-pane {
  position: relative;
  overflow: hidden;
  max-height: 390px;
  transition: max-height var(--normal) var(--ease-out), border-color var(--fast) ease, transform var(--normal) var(--ease-out), box-shadow var(--fast) ease;
}

.dojo-pane::before {
  width: 1px;
  background: var(--jade);
}

.dojo-pane.is-active,
.dojo-pane:focus-within {
  border-color: rgba(109, 242, 155, 0.66);
  box-shadow: 0 0 30px rgba(109, 242, 155, 0.06);
}

.dojo-pane.is-collapsed {
  max-height: 44px;
  border-color: rgba(109, 242, 155, 0.44);
  transform: translateY(6px);
}

.dojo-output {
  min-height: clamp(136px, 19vh, 196px);
  max-height: 240px;
  padding: 22px clamp(16px, 2.8vw, 28px);
}

.terminal-kicker {
  color: var(--jade);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
}

.dojo-output strong {
  color: var(--text);
  font-family: var(--display);
  font-weight: 540;
}

.dojo-output > span {
  color: var(--text-dim);
}

.terminal-progress {
  height: 2px;
  background: var(--rule);
}

.terminal-progress span {
  background: var(--jade);
  box-shadow: 0 0 14px rgba(109, 242, 155, 0.24);
}

.pane-footer,
.demo-status {
  min-height: 44px;
  margin-top: 14px;
  border-top: 1px solid var(--rule);
  border-bottom: 0;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 0;
}

.demo-controls button {
  min-width: 74px;
  padding: 0 14px;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--rule-strong);
  font-size: 0.65rem;
  cursor: pointer;
}

.demo-controls button:hover,
.demo-controls button:focus-visible {
  color: var(--jade);
  border-color: var(--jade);
}

.demo-cursor,
.terminal-cursor,
[data-demo-cursor] {
  display: inline-block;
  width: 0.62em;
  height: 1.05em;
  margin-left: 0.16em;
  vertical-align: -0.18em;
  background: var(--jade);
  box-shadow: 0 0 12px rgba(109, 242, 155, 0.24);
  animation: elite-cursor 1.05s steps(1, end) infinite;
}

.loop-steps {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--rule);
}

.loop-steps button {
  min-height: 58px;
  color: var(--text-faint);
  border-right-color: var(--rule);
}

.loop-steps button:hover,
.loop-steps button[aria-current="step"] {
  color: var(--text);
  background: var(--jade-dim);
}

.loop-steps button[aria-current="step"] span {
  color: var(--jade);
}

.product-provenance {
  position: relative;
  z-index: 2;
  color: var(--text-faint);
  border-top-color: var(--rule);
}

/* Narrative sections */

.story-section,
.flow-section,
.proof-section,
.install-section,
.faq-section {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding: clamp(96px, 11vw, 164px) var(--gutter);
  color: var(--text);
  background: var(--canvas);
  border-bottom: 1px solid var(--rule-strong);
}

.story-section,
.privacy-section,
.proof-section,
.install-section {
  scroll-margin-top: var(--elite-header);
}

.section-intro,
.proof-heading,
.install-heading,
.privacy-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: end;
  margin-bottom: clamp(58px, 8vw, 108px);
}

.section-intro .section-label,
.proof-heading .section-label,
.install-heading .section-label,
.privacy-lead .section-label {
  grid-column: 1 / -1;
}

.section-intro > p:last-child,
.proof-heading > p:last-child,
.install-heading > p:last-child,
.privacy-lead > p:last-child {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.24vw, 1.14rem);
  line-height: 1.65;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}

.story-card {
  min-width: 0;
  padding: clamp(26px, 3.3vw, 42px) clamp(18px, 3vw, 38px) clamp(32px, 4vw, 52px) 0;
  border-right: 1px solid var(--rule);
}

.story-card + .story-card {
  padding-left: clamp(18px, 3vw, 38px);
}

.story-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.story-card > span:first-child,
.story-card .story-index {
  display: block;
  margin-bottom: clamp(38px, 6vw, 74px);
  color: var(--jade);
  font-family: var(--display);
  font-size: 0.66rem;
}

.story-card p,
.flow-list p {
  color: var(--text-dim);
  line-height: 1.65;
}

.flow-list {
  border-top-color: var(--rule-strong);
}

.flow-list li {
  border-bottom-color: var(--rule);
}

.flow-number,
.flow-state {
  color: var(--text-faint);
}

/* Privacy */

.privacy-section {
  width: 100%;
  max-width: none;
  padding: clamp(96px, 11vw, 164px) max(var(--gutter), calc((100vw - var(--content-max)) / 2 + var(--gutter)));
  color: var(--text);
  background: var(--surface-1);
  border-bottom: 1px solid var(--rule-strong);
}

.privacy-grid,
.privacy-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.privacy-fact,
.fact {
  min-width: 0;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3.4vw, 46px);
  border-right: 1px solid var(--rule);
}

.privacy-fact:first-child,
.fact:first-child {
  padding-left: 0;
}

.privacy-fact:last-child,
.fact:last-child {
  padding-right: 0;
  border-right: 0;
}

.privacy-fact > span,
.fact > span {
  display: block;
  margin-bottom: clamp(34px, 5vw, 64px);
  color: var(--jade);
  font-size: 0.64rem;
}

.privacy-fact strong,
.fact strong {
  min-height: 3.1em;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.34rem);
  font-weight: 530;
  line-height: 1.32;
}

.privacy-fact p,
.fact p,
.privacy-disclosure {
  color: var(--text-dim);
  line-height: 1.65;
}

.privacy-disclosure {
  max-width: 980px;
  border-top-color: var(--rule);
}

.privacy-link {
  color: var(--jade);
  font-family: var(--display);
  font-size: 0.72rem;
}

/* Proof */

.proof-storyboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.proof-frame {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border-right: 1px solid var(--rule);
}

.proof-frame:last-child {
  border-right: 0;
}

.proof-frame img,
.proof-frame svg {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface-1);
  border: 1px solid var(--rule);
}

.proof-frame figcaption,
.proof-frame > span {
  display: block;
  margin-top: 14px;
  color: var(--text-faint);
  font-family: var(--display);
  font-size: 0.62rem;
  line-height: 1.5;
}

.capture-proof-heading,
.proof-ledger,
.proof-row,
.capture-proof figcaption {
  border-color: var(--rule-strong);
}

.capture-proof-viewport {
  max-height: 620px;
  background: var(--surface-1);
  border-color: var(--rule-strong);
  scrollbar-color: var(--jade) var(--surface-1);
}

.capture-proof-viewport img {
  min-width: min(820px, 100%);
}

.capture-proof figcaption,
.proof-row p,
.evidence-policy {
  color: var(--text-dim);
}

.proof-row > span,
.capture-proof-heading span {
  color: var(--jade);
}

/* Install */

.install-panel,
.install-workspace {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 0 42px rgba(109, 242, 155, 0.035);
}

.install-controls {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--rule);
}

.install-command,
.code-surface {
  min-width: 0;
  color: var(--text);
  background: var(--surface-1);
}

.install-command,
.install-command pre,
.code-surface pre {
  overflow-x: auto;
  scrollbar-color: var(--jade) var(--surface-1);
}

.install-command pre,
.code-surface pre {
  margin: 0;
  padding: clamp(26px, 4vw, 52px);
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: clamp(0.74rem, 1.02vw, 0.9rem);
  line-height: 1.75;
}

.code-heading,
.code-actions,
.install-expectation {
  border-color: var(--rule);
}

.code-heading {
  color: var(--text-faint);
}

.segmented-control button {
  width: 100%;
  color: var(--text-faint);
}

.segmented-control button:hover,
.segmented-control button[aria-pressed="true"] {
  color: var(--jade);
}

.segmented-control button[aria-pressed="true"]::before {
  background: var(--jade);
}

.mobile-handoff {
  color: var(--text);
  background: var(--surface-1);
  border-color: var(--rule-strong);
}

/* FAQ, final conversion, and garden */

.faq-list {
  border-top-color: var(--rule-strong);
}

.faq-list details {
  border-bottom-color: var(--rule);
}

.faq-list summary {
  min-height: 64px;
  color: var(--text);
}

.faq-list summary::after {
  color: var(--jade);
}

.faq-list p {
  color: var(--text-dim);
}

.final-section {
  color: var(--text);
  background: var(--surface-1);
  border-bottom: 1px solid var(--rule-strong);
}

.updates-form {
  align-self: end;
  color: var(--text);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.updates-form label {
  color: var(--text);
  font-family: var(--display);
}

.email-row input {
  min-height: 48px;
  color: var(--text);
  background: transparent;
  border-color: var(--rule-strong);
  border-radius: 0;
}

.email-row input::placeholder {
  color: var(--text-faint);
}

.form-note,
.form-status {
  color: var(--text-faint);
}

.form-status[data-state="success"] {
  color: var(--jade);
}

.form-status[data-state="error"] {
  color: var(--danger-elite);
}

.dojo-garden {
  position: relative;
  width: 100%;
  min-height: clamp(132px, 17vw, 220px);
  overflow: hidden;
  color: var(--text-faint);
  background: var(--canvas);
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: clamp(0.5rem, 0.8vw, 0.72rem);
  line-height: 1.18;
  white-space: pre;
}

.dojo-garden pre {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  left: var(--gutter);
  margin: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.dojo-garden [data-sprout],
.dojo-garden .sprout {
  color: var(--jade);
  text-shadow: 0 0 14px rgba(109, 242, 155, 0.2);
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 100px;
  padding: 24px var(--gutter);
  color: var(--text-faint);
  background: var(--canvas);
  border-top: 0;
  font-family: var(--display);
  font-size: 0.61rem;
}

.site-footer nav {
  display: flex;
  justify-self: end;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--jade);
}

/* Documentation, release, support, privacy, and security routes */

.content-page-body {
  min-height: 100vh;
}

.content-site-header {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 72px;
}

.content-site-header nav {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.content-main {
  width: min(100% - (2 * var(--gutter)), 1160px);
  margin-inline: auto;
  padding: clamp(72px, 9vw, 130px) 0 clamp(96px, 12vw, 168px);
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--rule-strong);
}

.content-hero .section-label {
  grid-column: 1 / -1;
}

.content-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.8rem, 8.4vw, 8.5rem);
}

.content-hero > p:last-child {
  color: var(--text-dim);
  line-height: 1.7;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.content-section,
.doctor-section {
  padding: clamp(48px, 6vw, 78px) 0;
  color: var(--text-dim);
  border-bottom: 1px solid var(--rule);
}

.content-section h2,
.doctor-section h2 {
  margin-bottom: 24px;
  font-size: clamp(1.85rem, 3.6vw, 3.6rem);
}

.content-section p,
.doctor-section p,
.content-section li,
.doctor-section li {
  max-width: var(--reading-max);
  line-height: 1.72;
}

.content-ledger,
.archive-list,
.doc-toc {
  border-color: var(--rule-strong);
}

.content-ledger-row,
.archive-list li {
  color: var(--text-dim);
  border-color: var(--rule);
}

.content-ledger-row > span,
.doc-toc a[aria-current="true"] {
  color: var(--jade);
}

.content-ledger-row strong,
.archive-list strong {
  color: var(--text);
}

.doc-toc a {
  min-height: 44px;
  color: var(--text-faint);
  font-family: var(--display);
}

.doc-toc a:hover {
  color: var(--jade);
}

.support-command,
.doctor-section pre {
  max-width: 100%;
  overflow-x: auto;
  color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--rule-strong);
  scrollbar-color: var(--jade) var(--surface-1);
}

.support-command code,
.doctor-section pre code {
  color: inherit;
}

.route-footer {
  border-top: 1px solid var(--rule-strong);
}

/* Deliberate motion: one entrance, one state transition, one cursor. */

@keyframes elite-cursor {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

.js.app-ready .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms var(--ease-out);
}

.js.app-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js.app-ready .hero-copy.reveal {
  transition-delay: 40ms;
}

.js.app-ready .product-plane.reveal {
  transition-delay: 130ms;
}

/* Tablet and narrow desktop */

@media (max-width: 900px) {
  :root {
    --elite-header: 60px;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-nav,
  .nav-links {
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    min-height: auto;
    padding: clamp(88px, 14vw, 136px) var(--gutter) clamp(64px, 10vw, 96px);
  }

  h1 {
    font-size: clamp(5rem, 17vw, 9rem);
  }

  .product-plane {
    min-height: 640px;
    border-top: 1px solid var(--rule-strong);
    border-left: 0;
  }

  .story-grid,
  .privacy-grid,
  .privacy-facts {
    grid-template-columns: 1fr;
  }

  .story-card,
  .story-card + .story-card,
  .privacy-fact,
  .fact,
  .privacy-fact:first-child,
  .fact:first-child,
  .privacy-fact:last-child,
  .fact:last-child {
    padding: 28px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .story-card:last-child,
  .privacy-fact:last-child,
  .fact:last-child {
    border-bottom: 0;
  }

  .story-card > span:first-child,
  .story-card .story-index,
  .privacy-fact > span,
  .fact > span {
    margin-bottom: 24px;
  }

  .privacy-fact strong,
  .fact strong {
    min-height: 0;
  }

  .proof-storyboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-frame:nth-child(2) {
    border-right: 0;
  }

  .proof-frame:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .install-panel,
  .install-workspace {
    grid-template-columns: 1fr;
  }

  .install-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .segmented-control {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .segmented-control button {
    width: auto;
  }

  .section-intro,
  .proof-heading,
  .install-heading,
  .privacy-lead,
  .content-hero {
    grid-template-columns: 1fr;
  }

  .content-hero .section-label {
    grid-column: 1;
  }

  .content-site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 14px;
  }

  .content-site-header nav {
    justify-content: flex-start;
  }
}

/* Phone */

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: var(--gutter);
  }

  .site-nav,
  .nav-links {
    display: none;
  }

  .header-action {
    min-height: 44px;
    padding-inline: 11px;
    font-size: 0.62rem;
  }

  .hero-copy {
    padding-top: 94px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(4rem, 22vw, 6.9rem);
    line-height: 0.84;
  }

  h2 {
    font-size: clamp(2.45rem, 12.8vw, 4.2rem);
  }

  .hero-line {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-row,
  .hero-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
  }

  .trust-row > *:not(:first-child)::before,
  .hero-trust > *:not(:first-child)::before {
    display: none;
  }

  .product-plane {
    min-height: auto;
  }

  .product-toolbar {
    grid-template-columns: 1fr auto;
  }

  .product-toolbar > span:not(:last-child) {
    display: none;
  }

  .agent-switcher,
  .demo-mode-switcher {
    gap: 18px;
    padding-inline: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .agent-switcher::-webkit-scrollbar,
  .demo-mode-switcher::-webkit-scrollbar {
    display: none;
  }

  .agent-switcher button,
  .demo-mode-switcher button {
    flex: 0 0 auto;
  }

  .terminal-stage,
  .demo-playfield {
    width: calc(100% - 24px);
    padding: 30px 0 36px;
  }

  .agent-output {
    min-height: 76px;
  }

  .dojo-output {
    min-height: 138px;
  }

  .demo-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-controls button {
    width: 100%;
  }

  .loop-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loop-steps button:nth-child(2) {
    border-right: 0;
  }

  .loop-steps button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .story-section,
  .flow-section,
  .proof-section,
  .install-section,
  .faq-section,
  .privacy-section,
  .final-section {
    padding: 84px var(--gutter);
  }

  .proof-storyboard {
    grid-template-columns: 1fr;
  }

  .proof-frame,
  .proof-frame:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .proof-frame:last-child {
    border-bottom: 0;
  }

  .capture-proof-viewport {
    max-height: 480px;
  }

  .capture-proof-viewport img {
    min-width: 0;
    width: 100%;
  }

  .install-controls {
    grid-template-columns: 1fr;
  }

  .install-command pre,
  .code-surface pre,
  .code-surface code {
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .code-actions,
  .mobile-handoff-actions,
  .email-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .code-actions .button,
  .mobile-handoff-actions .button {
    width: 100%;
  }

  .email-row input {
    border-right: 1px solid var(--rule-strong);
    border-bottom: 0;
  }

  .dojo-garden {
    min-height: 118px;
    font-size: 0.48rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
    padding-block: 30px;
  }

  .site-footer nav {
    justify-self: start;
    flex-wrap: wrap;
  }

  .content-site-header nav {
    gap: 4px 16px;
  }

  .content-main {
    width: calc(100% - (2 * var(--gutter)));
    padding-top: 70px;
  }

  .content-hero h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .content-ledger-row,
  .archive-list li,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Live drill states rendered by demo-core.js. */

[data-demo-workspace]:focus-visible {
  outline: 1px solid var(--jade);
  outline-offset: -1px;
}

.demo-title,
.demo-question,
.demo-prompt,
.demo-result,
.demo-detail,
.demo-note,
.collapsed-message {
  font-family: var(--display);
}

.demo-title,
.demo-question {
  max-width: 42ch;
  margin: 10px 0 12px;
  color: var(--text);
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 540;
  line-height: 1.35;
}

.demo-prompt {
  margin: 12px 0 16px;
  color: var(--text);
  font-size: clamp(0.92rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.demo-detail,
.demo-note,
.collapsed-message {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 0.7rem;
  line-height: 1.6;
}

.demo-result {
  margin: 12px 0 0;
  color: var(--jade);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
}

.demo-typing-input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--text);
  caret-color: var(--jade);
  background: var(--surface-2);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  font-family: var(--display);
  font-size: clamp(0.82rem, 1.2vw, 0.98rem);
}

.demo-typing-input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 22px rgba(109, 242, 155, 0.06);
  outline: 0;
}

.demo-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.demo-choice {
  min-height: 48px;
  padding: 10px 14px;
  color: var(--text-dim);
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  font-family: var(--display);
  font-size: 0.7rem;
  line-height: 1.45;
  cursor: pointer;
}

.demo-choice:hover,
.demo-choice:focus-visible {
  color: var(--text);
  border-color: var(--jade);
  outline: 0;
}

.agent-ready-control {
  align-self: flex-start;
  min-height: 44px;
  margin: 0 14px 12px;
  padding: 0;
  color: var(--text-faint);
  background: transparent;
  border: 0;
  font-family: var(--display);
  font-size: 0.62rem;
  cursor: pointer;
}

.agent-ready-control:hover,
.agent-ready-control:focus-visible {
  color: var(--jade);
  outline: 0;
}

.demo-workspace.is-collapsed .agent-ready-control {
  visibility: hidden;
}

.demo-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.demo-inline-actions .terminal-action:not(.is-primary) {
  color: var(--text-dim);
  background: transparent;
  border-color: var(--rule-strong);
}

.demo-inline-actions .terminal-action:not(.is-primary):hover,
.demo-inline-actions .terminal-action:not(.is-primary):focus-visible {
  color: var(--jade);
  border-color: var(--jade);
}

.dojo-pane.is-result {
  border-color: rgba(109, 242, 155, 0.78);
  box-shadow: 0 0 30px rgba(109, 242, 155, 0.07);
}

.dojo-mascot {
  position: absolute;
  right: clamp(16px, 3vw, 30px);
  bottom: 18px;
  margin: 0;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  font-family: var(--display);
  font-size: 0.7rem;
  line-height: 1.05;
  transform-origin: 50% 100%;
  animation: dojo-bow 520ms var(--ease-out) 1;
}

@keyframes dojo-bow {
  0%, 100% { transform: rotate(0); }
  45% { transform: rotate(11deg); }
}

@media (max-width: 640px) {
  .demo-choices {
    grid-template-columns: 1fr;
  }

  .demo-inline-actions .terminal-action {
    width: 100%;
  }

  .dojo-mascot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dojo-mascot {
    animation: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .button:hover,
  .header-action:hover {
    transform: none;
    box-shadow: none;
  }

  .product-plane::after {
    display: none;
  }

  .desktop-install {
    display: none;
  }

  .mobile-handoff {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .brand-mark::after,
  .demo-cursor,
  .terminal-cursor,
  [data-demo-cursor] {
    opacity: 1;
  }

  .js.app-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-dim: #d7d9d2;
    --text-faint: #b4b9b2;
    --rule: rgba(240, 238, 229, 0.34);
    --rule-strong: rgba(240, 238, 229, 0.68);
  }

  .product-plane::after {
    display: none;
  }

  .button,
  .terminal-pane,
  .agent-pane,
  .dojo-pane,
  .install-panel,
  .install-workspace {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  :root {
    --jade: Highlight;
    --jade-strong: Highlight;
    --text: CanvasText;
    --text-dim: CanvasText;
    --text-faint: GrayText;
    --canvas: Canvas;
    --surface-1: Canvas;
    --surface-2: Canvas;
    --surface-3: Canvas;
    --rule: CanvasText;
    --rule-strong: CanvasText;
  }

  .product-plane::after {
    display: none;
  }

  .button.primary,
  .button.inverse,
  .header-action {
    color: HighlightText;
    background: Highlight;
  }

  .signal::before,
  .terminal-progress span,
  .brand-mark::after,
  .demo-cursor,
  .terminal-cursor,
  [data-demo-cursor] {
    forced-color-adjust: none;
    background: Highlight;
  }
}

/* Homepage interaction and narrative primitives used by the elite template. */

.demo-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.demo-controls .agent-switcher,
.mode-switcher {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 26px);
  min-height: 54px;
  padding: 0 clamp(18px, 2.6vw, 36px);
  border: 0;
}

.demo-controls .agent-switcher {
  border-right: 1px solid var(--rule);
}

.demo-controls .agent-switcher > span,
.mode-switcher > span {
  flex: 0 0 auto;
  color: var(--text-faint);
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-switcher button {
  position: relative;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0;
  color: var(--text-faint);
  background: transparent;
  border: 0;
  font-family: var(--display);
  font-size: 0.66rem;
  cursor: pointer;
  transition: color var(--fast) ease;
}

.mode-switcher button:hover,
.mode-switcher button[aria-pressed="true"] {
  color: var(--text);
}

.mode-switcher button[aria-pressed="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--jade);
  box-shadow: 0 0 12px rgba(109, 242, 155, 0.25);
  content: "";
}

.demo-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 6px clamp(16px, 2.8vw, 28px);
  color: var(--text-faint);
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.6rem;
  transition: min-height var(--normal) var(--ease-out), padding var(--normal) var(--ease-out), opacity var(--fast) ease;
}

.terminal-action {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  color: var(--canvas);
  background: var(--jade);
  border: 1px solid var(--jade);
  border-radius: 0;
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 650;
  cursor: pointer;
  transition: color var(--fast) ease, background var(--fast) ease, box-shadow var(--fast) ease;
}

.terminal-action:hover,
.terminal-action:focus-visible {
  color: var(--jade);
  background: transparent;
  box-shadow: 0 0 24px rgba(109, 242, 155, 0.08);
}

.dojo-pane.is-collapsed .demo-action-row {
  min-height: 0;
  padding-block: 0;
  overflow: hidden;
  opacity: 0;
}

.demo-status {
  position: relative;
  z-index: 2;
  min-height: 44px;
  margin: 0;
  padding: 10px clamp(16px, 2vw, 30px);
  color: var(--text-faint);
  background: var(--surface-1);
  border-top: 1px solid var(--rule);
  border-bottom: 0;
  font-family: var(--display);
  font-size: 0.61rem;
}

.demo-status[data-state="active"],
.demo-status[data-state="success"] {
  color: var(--jade);
}

.noscript-note {
  margin: 0;
  padding: 14px clamp(16px, 2vw, 30px);
  color: var(--text-dim);
  background: var(--surface-2);
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.62rem;
  line-height: 1.6;
}

.mode-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(58px, 8vw, 104px);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.mode-ledger article {
  min-width: 0;
  padding: clamp(28px, 3.8vw, 48px) clamp(20px, 3.2vw, 42px);
  border-right: 1px solid var(--rule);
}

.mode-ledger article:first-child {
  padding-left: 0;
}

.mode-ledger article:last-child {
  padding-right: 0;
  border-right: 0;
}

.mode-ledger article > span {
  display: block;
  margin-bottom: clamp(38px, 5vw, 68px);
  color: var(--jade);
  font-family: var(--display);
  font-size: 0.64rem;
}

.mode-ledger h3 {
  margin-bottom: 12px;
}

.mode-ledger p {
  max-width: 34ch;
  margin: 0;
  color: var(--text-dim);
  line-height: 1.65;
}

.privacy-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.privacy-node {
  min-width: 0;
  padding: clamp(30px, 4vw, 52px) clamp(12px, 2.2vw, 30px);
}

.privacy-node:first-child {
  padding-left: 0;
}

.privacy-node:last-child {
  padding-right: 0;
}

.privacy-node > span {
  display: block;
  min-height: 2em;
  margin-bottom: clamp(34px, 5vw, 62px);
  color: var(--jade);
  font-family: var(--display);
  font-size: 0.62rem;
}

.privacy-node strong {
  display: block;
  min-height: 3.2em;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.3vw, 1.22rem);
  font-weight: 530;
  line-height: 1.38;
}

.privacy-node p {
  margin: 16px 0 0;
  color: var(--text-dim);
  line-height: 1.65;
}

.privacy-arrow {
  display: grid;
  place-items: center;
  width: clamp(24px, 3vw, 44px);
  color: var(--jade);
  border-right: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.68rem;
}

.privacy-boundary {
  display: grid;
  grid-template-columns: minmax(110px, 0.22fr) minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(24px, 3vw, 38px);
  border-top: 1px solid var(--rule);
}

.privacy-boundary > span {
  color: var(--danger-elite);
  font-family: var(--display);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.privacy-boundary strong {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(0.86rem, 1.16vw, 1.06rem);
  font-weight: 520;
  line-height: 1.55;
}

.privacy-boundary a {
  color: var(--jade);
  font-family: var(--display);
  font-size: 0.66rem;
  text-decoration: none;
}

.proof-storyboard {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-frame {
  padding: clamp(14px, 2vw, 22px);
}

.proof-frame > a {
  display: block;
  overflow: hidden;
  background: var(--surface-1);
  border: 1px solid var(--rule);
}

.proof-frame img {
  object-fit: contain;
  transition: transform var(--normal) var(--ease-out), border-color var(--fast) ease;
}

.proof-frame > a:hover img {
  transform: scale(1.012);
}

.proof-frame figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
}

.proof-frame figcaption span {
  grid-row: 1 / 3;
  color: var(--jade);
}

.proof-frame figcaption strong {
  color: var(--text);
  font-weight: 540;
}

.proof-frame figcaption small {
  color: var(--text-faint);
  font-size: 0.59rem;
}

.proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(30px, 4vw, 52px);
}

.final-copy > p:last-child {
  max-width: 560px;
  margin-top: 22px;
  color: var(--text-dim);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .demo-controls {
    grid-template-columns: 1fr;
  }

  .demo-controls .agent-switcher {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .mode-switcher {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mode-switcher::-webkit-scrollbar {
    display: none;
  }

  .mode-ledger,
  .privacy-path,
  .proof-storyboard {
    grid-template-columns: 1fr;
  }

  .mode-ledger article,
  .mode-ledger article:first-child,
  .mode-ledger article:last-child {
    padding: 28px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .mode-ledger article:last-child {
    border-bottom: 0;
  }

  .mode-ledger article > span {
    margin-bottom: 22px;
  }

  .privacy-node,
  .privacy-node:first-child,
  .privacy-node:last-child {
    padding: 28px 0;
  }

  .privacy-node > span {
    min-height: 0;
    margin-bottom: 20px;
  }

  .privacy-node strong {
    min-height: 0;
  }

  .privacy-arrow {
    width: 100%;
    min-height: 36px;
    border: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transform: rotate(90deg);
  }

  .privacy-boundary {
    grid-template-columns: 1fr;
  }

  .proof-frame,
  .proof-frame:nth-child(2),
  .proof-frame:nth-child(-n + 2) {
    padding: 18px 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .proof-frame:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .demo-controls .agent-switcher,
  .mode-switcher {
    gap: 17px;
    padding-inline: 14px;
  }

  .mode-switcher > span {
    position: sticky;
    left: 0;
    z-index: 1;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding-right: 6px;
    background: var(--surface-1);
  }

  .demo-action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 10px;
  }

  .terminal-action {
    width: 100%;
  }

  .demo-action-row > span {
    text-align: center;
  }

  .proof-actions {
    display: grid;
  }

  .proof-actions .button {
    width: 100%;
  }
}

/* Conversion repair pass: keep evidence and action visible at every width. */

.mobile-nav-toggle,
.mobile-navigation {
  display: none;
}

.mobile-nav-toggle {
  min-height: 44px;
  padding: 0 10px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--rule-strong);
  font-family: var(--display);
  font-size: 0.66rem;
  cursor: pointer;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
  color: var(--jade);
  border-color: var(--jade);
  outline: 0;
}

@media (min-width: 901px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .hero h1 {
    font-size: clamp(4.6rem, 7vw, 8.35rem);
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .site-header .nav-links {
    display: flex;
    gap: clamp(10px, 1.5vw, 18px);
    font-size: 0.62rem;
  }
}

.proof-section,
.install-section {
  padding-top: clamp(72px, 7vw, 104px);
  padding-bottom: clamp(78px, 8vw, 120px);
}

.proof-heading,
.install-heading {
  margin-bottom: clamp(34px, 4.5vw, 58px);
}

.proof-heading h2,
.install-heading h2 {
  font-size: clamp(2.7rem, 5vw, 5.6rem);
}

.proof-storyboard {
  grid-template-columns: 1fr;
  max-width: 1280px;
  margin-inline: auto;
}

.proof-frame,
.proof-frame:nth-child(2),
.proof-frame:nth-child(-n + 2) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.28fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 38px) 0;
  border-right: 0;
  border-bottom: 1px solid var(--rule);
}

.proof-frame:last-child {
  border-bottom: 0;
}

.proof-frame > a {
  position: relative;
  display: block;
  height: auto;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--rule-strong);
}

.proof-frame img,
.proof-frame svg {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial;
  object-position: initial;
  background: transparent;
  border: 0;
}

.proof-frame:first-child img {
  object-position: center;
}

.proof-frame figcaption {
  position: relative;
  margin: 0;
  padding: clamp(16px, 2.4vw, 28px) 0 clamp(16px, 2.4vw, 28px) clamp(20px, 2.8vw, 34px);
  border-left: 1px solid rgba(109, 242, 155, 0.38);
}

.proof-frame figcaption::before {
  position: absolute;
  top: clamp(20px, 2.7vw, 32px);
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--jade);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(109, 242, 155, 0.4);
  content: "";
}

.proof-frame figcaption strong {
  font-size: clamp(1rem, 1.35vw, 1.28rem);
}

.proof-frame figcaption small {
  margin-top: 8px;
  font-size: 0.68rem;
  line-height: 1.55;
}

.proof-viewer[hidden] {
  display: none !important;
}

.proof-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 42px);
}

.proof-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 3, 0.9);
  backdrop-filter: blur(8px);
}

.proof-viewer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1320px, 100%);
  max-height: calc(100svh - clamp(28px, 6vw, 84px));
  overflow: hidden;
  color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--jade);
  box-shadow: 0 0 72px rgba(109, 242, 155, 0.09);
}

.proof-viewer-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.62rem;
}

.proof-viewer-toolbar button,
.proof-viewer-actions button,
.proof-viewer-actions a {
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  font-family: var(--display);
  font-size: 0.64rem;
  text-decoration: none;
  cursor: pointer;
}

.proof-viewer-toolbar button:hover,
.proof-viewer-toolbar button:focus-visible,
.proof-viewer-actions button:hover,
.proof-viewer-actions button:focus-visible,
.proof-viewer-actions a:hover,
.proof-viewer-actions a:focus-visible {
  color: var(--jade);
  outline: 0;
}

.proof-viewer-copy {
  grid-column: 1;
  grid-row: 2;
  padding: clamp(24px, 4vw, 52px);
  border-right: 1px solid var(--rule);
}

.proof-viewer-copy h3 {
  margin: 24px 0 12px;
}

.proof-viewer-copy > p:last-child {
  color: var(--text-dim);
  line-height: 1.6;
}

.proof-viewer-media {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  padding: clamp(18px, 3vw, 34px);
  overflow: auto;
  background: #0b0f14;
  scrollbar-color: var(--jade) var(--surface-1);
}

.proof-viewer-media img {
  display: block;
  width: min(1000px, 100%);
  height: auto;
  margin-inline: auto;
  background: #0b0f14;
}

.proof-viewer-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  padding: 4px 10px;
  border-top: 1px solid var(--rule);
}

.proof-viewer-actions [data-proof-next] {
  justify-self: end;
}

body.proof-viewer-open {
  overflow: hidden;
}

.install-conversion {
  scroll-margin-top: calc(var(--elite-header) + 20px);
}

.install-conversion:focus,
.install-conversion:focus-visible,
.install-conversion:target {
  outline: 2px solid var(--jade);
  outline-offset: 12px;
}

.code-surface {
  display: block;
}

.code-surface .code-actions {
  border-top: 0;
  border-bottom: 1px solid var(--rule);
}

.code-surface code {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 701px) and (max-width: 900px) {
  .privacy-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .privacy-path .privacy-arrow {
    display: none;
  }

  .privacy-node,
  .privacy-node:first-child,
  .privacy-node:last-child {
    padding: 28px 22px;
    border-right: 1px solid var(--rule);
  }

  .privacy-node:first-child {
    padding-left: 0;
  }

  .privacy-node:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .js.app-ready .site-header .nav-links {
    display: none;
  }

  .js.app-ready .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-self: end;
  }

  html:not(.app-ready) .site-header {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(var(--elite-header), auto) auto;
  }

  html:not(.app-ready) .site-header .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid var(--rule);
    scrollbar-color: var(--jade) var(--surface-1);
  }

  html:not(.app-ready) .site-header .nav-links a {
    flex: 0 0 auto;
  }

  html:not(.app-ready) .hero {
    padding-top: 0;
  }

  .mobile-navigation:not([hidden]) {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    padding: 10px var(--gutter) 18px;
    background: rgba(7, 9, 7, 0.98);
    border-bottom: 1px solid var(--jade);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.34);
  }

  .mobile-navigation a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--rule);
    font-family: var(--display);
    font-size: 0.72rem;
    text-decoration: none;
  }

  .mobile-navigation a:hover,
  .mobile-navigation a:focus-visible {
    color: var(--jade);
    outline: 0;
  }

  .proof-frame,
  .proof-frame:nth-child(2),
  .proof-frame:nth-child(-n + 2) {
    display: block;
  }

  .proof-frame > a {
    height: auto;
  }

  .proof-frame figcaption {
    margin-top: 18px;
  }

  .install-expectation {
    grid-column: 1;
  }

  .demo-workspace.is-collapsed {
    min-height: 420px;
  }

  .demo-workspace.is-collapsed .terminal-stage {
    padding-block: 18px;
  }

  .demo-workspace.is-collapsed .agent-output {
    min-height: 60px;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .brand-mark {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .proof-section,
  .install-section {
    padding: 72px var(--gutter);
  }

  .proof-heading,
  .install-heading {
    margin-bottom: 38px;
  }

  .proof-frame > a {
    height: auto;
  }

  .proof-viewer {
    padding: 8px;
  }

  .proof-viewer-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    max-height: calc(100svh - 16px);
  }

  .proof-viewer-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .proof-viewer-copy h3 {
    margin: 10px 0 6px;
  }

  .proof-viewer-media {
    grid-column: 1;
    grid-row: 3;
    padding: 10px;
  }

  .proof-viewer-actions {
    grid-row: 4;
  }

  .install-controls {
    gap: 16px;
    padding: 18px;
  }

  .code-surface .code-actions {
    padding: 14px;
  }

  .code-surface code {
    padding: 20px 16px;
    font-size: 0.68rem;
    overflow-wrap: break-word;
  }

  .demo-workspace.is-collapsed {
    min-height: 350px;
  }
}

.activity-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
  margin-bottom: clamp(44px, 6vw, 78px);
}

.activity-preview-card {
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 1.7vw, 22px);
  background: linear-gradient(155deg, rgba(20, 29, 27, 0.82), rgba(7, 10, 12, 0.94));
  border: 1px solid var(--rule);
}

.activity-preview-card > a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #070c12;
  border: 1px solid var(--rule-strong);
}

.activity-preview-card > a::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 1px solid transparent;
  transition: border-color var(--fast) ease;
}

.activity-preview-card > a:hover::after,
.activity-preview-card > a:focus-visible::after {
  border-color: var(--jade);
}

.activity-preview-card > a:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
}

.activity-preview-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial;
  background: #070c12;
  transition: transform var(--normal) var(--ease-out);
}

.activity-preview-card > a:hover img {
  transform: scale(1.01);
}

.activity-preview-card figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
  margin-top: 18px;
  font-family: var(--display);
}

.activity-preview-card figcaption span {
  grid-row: 1 / 3;
  color: var(--jade);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-preview-card figcaption strong {
  color: var(--text);
  font-size: clamp(0.92rem, 1.25vw, 1.14rem);
  font-weight: 560;
}

.activity-preview-card figcaption small {
  color: var(--text-faint);
  font-size: 0.64rem;
  line-height: 1.5;
}

.activity-preview-card figcaption small a {
  color: var(--jade);
  text-underline-offset: 0.18em;
}

.proof-evidence-heading {
  max-width: 760px;
  margin-top: clamp(72px, 9vw, 132px);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.proof-evidence-heading h3 {
  margin: 12px 0 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 2.5rem);
  font-weight: 540;
  line-height: 1.12;
}

.proof-evidence-heading > p:last-child {
  color: var(--text-dim);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .activity-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .activity-preview-card {
    padding: 10px;
  }

  .activity-preview-card figcaption {
    display: block;
    margin: 14px 4px 4px;
  }

  .activity-preview-card figcaption span,
  .activity-preview-card figcaption strong,
  .activity-preview-card figcaption small {
    display: block;
  }

  .activity-preview-card figcaption strong {
    margin-top: 6px;
  }

  .activity-preview-card figcaption small {
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity-preview-card > a::after,
  .activity-preview-card img {
    transition: none;
  }

  .activity-preview-card > a:hover img {
    transform: none;
  }
}
