.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;
}
.setup-inline:has([data-copy-state="error"]) .hero-copy-status {
  position: static;
  width: auto;
  height: auto;
  margin: 8px 0 0;
  clip: auto;
  white-space: normal;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
body.setup-open {
  overflow: hidden;
}
body.setup-open .gathering-signals {
  animation-play-state: paused;
}
:root {
  --accent-hover: #6040b8;
  --accent-soft: color-mix(in srgb, var(--accent) 7%, #ffffff);
  --surface-line: #eadbd3;
  --prompt-wash: var(--accent-wash);
  --prompt-line: var(--accent-line);
  --prompt-ink: #6f6979;
  --prompt-link: var(--ink);
  --accent-selection: var(--accent-tint);
  --accent-selection-ink: var(--ink);
  --orange-button: var(--accent);
  --orange-button-hover: var(--accent-hover);
  --white: #fff;
}

html {
  scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px));
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: block;
  height: auto;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  border: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-header-inner.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  width: 100%;
  max-width: 1504px;
  min-height: 64px;
  margin-inline: auto;
  padding: 10px 32px;
}
.site-header-inner > .brand,
.site-header-inner > nav {
  flex-shrink: 0;
}
.site-header .brand {
  --brand-mark-size: 22px;
  gap: 8px;
  font-size: 22px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -1.1px;
}
.site-header .brand img {
  width: 22px;
  height: 22px;
}
.site-header-inner > nav {
  gap: 28px;
}
.site-header nav > a.agent-docs-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  color: var(--ink);
}
.site-header nav > a.agent-docs-link:hover {
  color: var(--muted);
}

.connection-section {
  padding-block: 56px 64px;
}
.connection-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(350px, 34vw, 440px);
  overflow: hidden;
  border-radius: 32px;
  background: var(--accent-wash);
}
.connection-panel-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.connection-panel-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(74%, 820px);
  padding: 48px 0;
  text-align: center;
}
.connection-panel-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid #ffffffba;
  border-radius: 19px;
  background: #fffffff2;
  box-shadow:
    0 5px 15px #79442310,
    inset 0 1px 0 #fff;
}
.connection-panel-mark::before {
  content: "";
  width: 37px;
  height: 37px;
  background: var(--accent);
  mask: url("/assets/site/assets/mark.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/site/assets/mark.svg") center / contain no-repeat;
}
.connection-section .connection-panel h2 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.05vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.4px;
  text-wrap: balance;
}
.connection-panel .button {
  margin-top: 2px;
}
@media (max-width: 800px) {
  .connection-section {
    padding-block: 40px 48px;
  }
  .connection-panel {
    min-height: 340px;
    border-radius: 26px;
  }
  .connection-panel-copy {
    width: 70%;
    gap: 22px;
    padding: 40px 0;
  }
  .connection-panel-mark {
    width: 56px;
    height: 56px;
    border-radius: 17px;
  }
  .connection-panel-mark::before {
    width: 33px;
    height: 33px;
  }
  .connection-section .connection-panel h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }
}
@media (max-width: 600px) {
  .connection-section {
    padding-block: 32px 40px;
  }
  .connection-panel {
    min-height: 370px;
    place-items: start center;
    border-radius: 24px;
  }
  .connection-panel-copy {
    width: 100%;
    gap: 20px;
    padding: 38px 28px 132px;
  }
  .connection-panel-art {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    mask-image: linear-gradient(to bottom, transparent, #000 25%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%);
  }
  .connection-section .connection-panel h2 {
    max-width: 330px;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.9px;
  }
  .connection-panel-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .connection-panel-mark::before {
    width: 31px;
    height: 31px;
  }
}

.button:is([data-open-setup], [data-copy-prompt]),
.hero-prompt-copy {
  min-width: 0;
  min-height: 40px;
  padding: 8px 20px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  background: var(--orange-button, var(--accent));
  color: #fff;
  box-shadow: none;
  transition: background 0.18s ease;
}
.button:is([data-open-setup], [data-copy-prompt]):hover {
  background: var(--orange-button-hover, var(--accent-hover));
  transform: none;
}
.site-header .button[data-open-setup] {
  min-width: 0;
  min-height: 40px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  box-shadow: none;
}
.setup-dialog {
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px 24px 24px;
  border: 1px solid var(--surface-line);
  border-radius: 24px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 24px 90px #29262f26;
  overflow: auto;
  overscroll-behavior: contain;
  text-align: left;
}
.setup-dialog[open] {
  animation: setup-appear 0.2s ease-out both;
}
.setup-dialog::backdrop {
  background: #29262f52;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.setup-close {
  position: absolute;
  right: 10px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.setup-close:hover {
  background: var(--accent-soft);
  color: var(--ink);
}
.setup-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.setup-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 36px;
}
.setup-mark {
  display: block;
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0;
  background: var(--accent);
  mask: url("/assets/site/assets/mark.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/site/assets/mark.svg") center / contain no-repeat;
}
.setup-dialog h2 {
  min-width: 0;
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.setup-dialog p.setup-description {
  margin: 12px 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.setup-dialog p.setup-prompt {
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--prompt-line);
  border-radius: 14px;
  background: var(--prompt-wash);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
}
.setup-dialog .prompt-url {
  font-weight: 600;
  color: var(--ink);
}
.setup-dialog .setup-prompt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.setup-dialog .button.setup-copy {
  display: flex;
  width: fit-content;
  min-width: 0;
  min-height: 40px;
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  border-radius: 100px;
}
.setup-copy:disabled {
  cursor: wait;
  transform: none;
}
.setup-dialog p.setup-copy-status {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}
.setup-dialog p.setup-copy-status:empty {
  margin: 0;
}
.setup-text-action {
  display: block;
  min-height: 44px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.setup-text-action:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.hero-agent-help {
  margin: 6px auto 0;
}
.setup-guide-toggle {
  margin: 8px auto -6px;
}
.setup-dialog[data-setup-view="new-agent"] {
  max-width: 520px;
}
.setup-agent-guide[hidden] {
  display: none;
}
.setup-step-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.setup-step-title > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.setup-agent-options {
  display: grid;
  gap: 8px;
}
.setup-agent-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white, #fff);
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}
.setup-agent-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.setup-agent-option.setup-directory-link {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}
.setup-agent-option > img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}
.setup-agent-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.setup-agent-info strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.setup-agent-info > span,
.setup-agent-info > small {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.setup-agent-visit {
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.setup-dialog .setup-agent-note {
  margin: 10px 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.setup-dialog .setup-step-description {
  margin: -4px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 400px) {
  .setup-agent-option {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }
  .setup-agent-option > img {
    width: 38px;
    height: 38px;
  }
  .setup-agent-visit {
    display: none;
  }
}
@keyframes setup-appear {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 520px) {
  .setup-dialog {
    padding: 24px 22px 22px;
    border-radius: 22px;
  }
  .setup-dialog h2 {
    font-size: 24px;
    letter-spacing: -0.6px;
  }
  .setup-dialog p.setup-prompt {
    padding: 15px 16px;
  }
  .setup-mark {
    width: 26px;
    height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .setup-dialog[open] {
    animation: none;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
}
.site-footer .brand {
  gap: 11px;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1.8px;
}
.site-footer .brand img {
  width: 29px;
  height: 29px;
}
.site-footer > a:last-child:not(.brand) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  color: var(--muted);
}
.site-footer > a:last-child:not(.brand):hover {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .site-header-inner.wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .site-header-inner > nav {
    gap: 14px;
  }
  .site-header .button[data-open-setup] {
    min-height: 44px;
    padding: 10px 18px;
  }
  .site-header nav > .agent-docs-link {
    min-height: 44px;
  }
  .site-header .brand {
    min-width: 44px;
    min-height: 44px;
  }
}
@media (max-width: 1024px) {
  html {
    scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));
  }
  .site-header-inner.wrap {
    min-height: 56px;
    padding-block: 8px;
    gap: 8px 14px;
  }
}
@media (max-width: 800px) {
  .site-footer {
    gap: 20px;
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px));
  }
  .site-header-inner.wrap {
    min-height: 60px;
    flex-wrap: nowrap;
    gap: 12px;
    padding-block: 8px;
  }
  .site-header-inner > nav {
    gap: 12px;
    min-width: 0;
  }
  .connection-section {
    padding-block: 32px 40px;
  }
  .connection-panel {
    min-height: 0;
    border-radius: 22px;
    place-items: start center;
  }
  .connection-panel-copy {
    width: 100%;
    gap: 20px;
    padding: 32px 22px calc(33.333% + 16px);
  }
  .connection-panel-art {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    mask-image: linear-gradient(to bottom, transparent, #000 25%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%);
  }
  .connection-section .connection-panel h2 {
    max-width: 330px;
    font-size: clamp(1.75rem, 7.7vw, 2.15rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
  }
  .connection-panel-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .connection-panel-mark::before {
    width: 31px;
    height: 31px;
  }
  .connection-panel .button[data-open-setup] {
    min-height: 44px;
    padding: 10px 20px;
  }
  .site-footer {
    padding-top: 20px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    justify-content: center;
  }
  .site-footer .brand {
    min-height: 44px;
    font-size: 24px;
    gap: 8px;
  }
  .site-footer .brand img {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 370px) {
  .site-header .brand-name {
    display: none;
  }
  .site-header .brand {
    gap: 0;
  }
}
