/*
  GWS for Dummies — paper-manual stylesheet.
  Single-page, no-build static site. Plain CSS only: no frameworks, no external fonts.
*/

:root {
  --paper: #fbfbf8;
  --paper-subtle: #f4f4ef;
  --ink: #171715;
  --ink-muted: #74746e;
  --line: #e3e3dc;
  --accent: #2457d6;
  --accent-hover: #173fa8;
  --focus: #2457d6;
  --terminal: #171715;
  --terminal-text: #f7f7f2;
  --terminal-prompt: #5b86e6;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

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

code,
pre,
kbd,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  font-size: 0.9em;
}

strong {
  font-weight: 600;
}

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

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

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

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  transition: top 160ms ease-out;
}

.skip:focus {
  top: 16px;
}

.layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.col {
  min-width: 0;
}

main {
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--ink-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 160ms ease-out;
}

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

.topbar__link.is-active,
.topbar__link[aria-current="location"] {
  color: var(--ink);
}

.topbar__link.is-active::after,
.topbar__link[aria-current="location"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
}

.rail {
  display: none;
  position: sticky;
  top: 32px;
  align-self: start;
  flex-direction: column;
  gap: 24px;
  font-size: 13px;
  line-height: 1.5;
}

.rail__brand {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.rail__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail__link {
  position: relative;
  display: inline-block;
  padding-left: 16px;
  color: var(--ink-muted);
  transition: color 160ms ease-out;
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: transparent;
  transition: background-color 160ms ease-out;
}

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

.rail__link.is-active,
.rail__link[aria-current="location"] {
  color: var(--ink);
}

.rail__link.is-active::before,
.rail__link[aria-current="location"]::before {
  background: var(--accent);
}

.rail__ext {
  color: var(--ink-muted);
  transition: color 160ms ease-out;
}

.rail__ext:hover {
  color: var(--accent);
}

.hero {
  padding: clamp(72px, 16vh, 180px) 0 clamp(40px, 9vh, 88px);
}

.eyebrow {
  margin-bottom: 28px;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 16ch;
  font-size: clamp(2.3rem, 5vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__lede {
  max-width: 62ch;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.progress {
  position: relative;
  height: 1px;
  margin-top: clamp(48px, 10vh, 96px);
  background: var(--line);
}

.progress__marker {
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: var(--accent);
  will-change: transform;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}

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

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

.btn--link {
  position: relative;
  min-height: 0;
  padding: 4px 2px;
  background: none;
  border-color: transparent;
  color: var(--ink);
}

.btn--link:hover {
  color: var(--accent);
}

.btn--link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease-out;
}

.btn--link:hover::after {
  transform: scaleX(1);
}

.copy {
  white-space: nowrap;
}

.copy.is-copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.copyrow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 8px;
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.copyrow__cmd {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  overflow-x: auto;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.copyrow__btn {
  flex: 0 0 auto;
  align-self: center;
}

.setup {
  padding-top: clamp(32px, 6vw, 64px);
}

.setup__title {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.setup__lede {
  max-width: 68ch;
  margin: 12px 0 24px;
  color: var(--ink-muted);
}

.setup__alt {
  margin: 20px 0 10px;
  color: var(--ink-muted);
  font-size: 14px;
}

.agents {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 22px 0 20px;
}

.agents__label {
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.agents__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agents__item {
  display: inline-flex;
  align-items: center;
}

.agents__mark {
  display: block;
  width: 22px;
  height: 22px;
  opacity: 0.78;
  transition: opacity 160ms ease-out;
}

.agents__item:hover .agents__mark {
  opacity: 1;
}

.cli {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 11px 13px;
  background: var(--terminal);
  border-radius: 8px;
}

.cli__prompt {
  flex: 0 0 auto;
  color: var(--terminal-prompt);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1;
}

.cli__cmd {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  color: var(--terminal-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.cli__btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 8px;
  color: var(--terminal-text);
  font-size: 13px;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

.cli__btn:hover {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.4);
}

.cli__btn.is-copied {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.4);
  color: var(--terminal-text);
}

.proof {
  margin-top: clamp(40px, 7vw, 72px);
}

.media {
  margin: 0;
}

.media--wide .terminal {
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.05);
}

.media__cap {
  max-width: 68ch;
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.terminal {
  aspect-ratio: 16 / 9;
  padding: clamp(16px, 3vw, 32px);
  overflow: auto;
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.terminal__line {
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(12px, 1.4vw, 15px);
  line-height: 1.7;
  white-space: pre-wrap;
}

.terminal__line--cmd {
  color: var(--accent);
}

.terminal__line--gap {
  opacity: 0;
  -webkit-user-select: none;
  user-select: none;
}

.terminal__line--ok {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section {
  padding-top: clamp(40px, 6.5vw, 80px);
}

.section__title {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section__lede {
  max-width: 68ch;
  margin-top: 12px;
  color: var(--ink-muted);
}

.features .section__title {
  margin-bottom: clamp(32px, 5vw, 40px);
}

.feature {
  padding: clamp(32px, 5vw, 40px) 0 clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.feature__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.feature__label {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.feature__meta {
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.feature__title {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feature__copy {
  max-width: 58ch;
  margin-top: 8px;
  color: var(--ink-muted);
}

.feature__media {
  margin: 24px 0 20px;
}

.feature__action {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}

.feature__action:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.diagram {
  padding: 12px 18px;
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.diagram__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}

.diagram__row + .diagram__row {
  border-top: 1px solid var(--line);
}

.diagram__key {
  color: var(--ink);
}

.diagram__val {
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.docs__steps {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
  margin-top: clamp(32px, 5vw, 40px);
}

.docs__step {
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}

.docs__step-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.docs__step-copy {
  max-width: 68ch;
  margin: 8px 0 16px;
  color: var(--ink-muted);
}

.docs__step .copyrow + .copyrow {
  margin-top: 10px;
}

.docs__more {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

.docs__more summary {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ink);
  cursor: pointer;
}

.docs__more p {
  max-width: 68ch;
}

.docs__more a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs__safety {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}

.docs__safety p {
  max-width: 68ch;
  color: var(--ink);
}

.docs__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}

.docs__links a {
  color: var(--ink);
  transition: color 160ms ease-out;
}

.docs__links a:hover {
  color: var(--accent);
}

.docs__path {
  margin-left: 8px;
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  border-radius: 0;
}

.contact__avatar {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
}

.contact__name {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.contact__role {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.contact__pitch {
  max-width: 52ch;
  color: var(--ink);
  line-height: 1.6;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 7vw, 96px);
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
}

.site-footer__line {
  max-width: 60ch;
  color: var(--ink-muted);
  font-size: 13px;
}

.site-footer__link {
  color: var(--ink-muted);
  font-size: 13px;
  transition: color 160ms ease-out;
}

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

.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 340ms ease-out, transform 340ms ease-out;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 639px) {
  .layout {
    padding: 0 20px;
  }

  .topbar {
    padding: 8px 20px;
  }

  .topbar__nav {
    gap: 14px;
  }

  .btn {
    min-height: 44px;
  }

  .btn--link {
    min-height: 44px;
  }

  .copyrow {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .copyrow__cmd {
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .copyrow__btn {
    width: 100%;
    align-self: stretch;
  }

  .contact__actions .btn {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature__action,
  .docs__links a,
  .docs__more summary,
  .site-footer__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .feature__action {
    border-bottom: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .agents__mark {
    width: 20px;
    height: 20px;
  }

  .cli__cmd {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cli__btn {
    width: 100%;
    min-height: 44px;
  }
}

@media (min-width: 1024px) {
  .topbar {
    display: none;
  }

  .layout {
    display: grid;
    grid-template-columns: 216px minmax(0, 880px);
    column-gap: 64px;
    align-items: start;
    max-width: 1240px;
    padding: 0 32px;
  }

  .rail {
    display: flex;
    grid-column: 1;
  }

  .col {
    grid-column: 2;
  }

  .contact {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "avatar invite"
      "identity invite";
    column-gap: 56px;
    row-gap: 12px;
    align-items: start;
  }

  .contact__avatar {
    grid-area: avatar;
    width: 104px;
    height: 104px;
  }

  .contact__identity {
    grid-area: identity;
  }

  .contact__invite {
    grid-area: invite;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
