:root {
  color-scheme: light;
  --paper: #faf8f5;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #676760;
  --line: #d9d5cf;
  --soft-line: #e8e4de;
  --accent: #187457;
  --accent-dark: #105c44;
  --deep: #202621;
  --focus: #0b6248;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
button, select, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header, .site-footer { max-width: 1240px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; align-items: center; }
.site-header { justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; fill: var(--paper); stroke: currentColor; stroke-width: 1.7; }
.site-header nav { display: flex; gap: 2rem; margin-left: auto; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.site-header nav a:hover { color: var(--ink); }

.button, .secondary-button, .plain-button, .add-button { border-radius: 7px; cursor: pointer; text-decoration: none; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .7rem 1rem; background: var(--accent); border: 1px solid var(--accent); color: white; font-weight: 700; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-small { min-height: 38px; padding: .5rem .85rem; font-size: .9rem; }
.secondary-button { padding: .58rem .8rem; background: transparent; border: 1px solid var(--line); color: var(--ink); font-weight: 650; }
.secondary-button:hover, .add-button:hover { border-color: var(--ink); }
.secondary-button:disabled { color: var(--muted); cursor: default; }
.plain-button { padding: .2rem; background: transparent; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.plain-button:hover { color: var(--ink); }

.hero { max-width: 1240px; min-height: 720px; margin: 0 auto; padding: 5.5rem 2rem 6rem; display: grid; grid-template-columns: minmax(0, .88fr) minmax(560px, 1.12fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.product-note, .example-label { margin: 0; color: var(--accent); font-weight: 700; }
.product-note span { color: var(--muted); font-weight: 500; }
h1 { max-width: 700px; margin: 1.15rem 0 1.5rem; font-size: clamp(4rem, 6.8vw, 5rem); line-height: .9; letter-spacing: -.07em; }
h1 span { white-space: nowrap; }
.hero-summary { max-width: 540px; margin: 0; color: var(--muted); font-size: 1.2rem; line-height: 1.6; }
.hero-actions { margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem; }
.text-link { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.selector { align-self: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; box-shadow: 0 2px 8px rgba(28, 25, 23, .06); }
.selector-heading, .execution-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.example-label { font-size: .78rem; }
.selector h2 { margin: .15rem 0 0; font-size: 1.35rem; letter-spacing: -.025em; }
.demo-disclaimer { margin: .4rem 0 1rem; color: var(--muted); font-size: .85rem; }
.timer-row { margin: 0 -1.4rem; padding: .8rem 1.4rem; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #f7f5f1; }
.timer-row p { margin: 0; color: var(--muted); font-size: .8rem; }
.timer-row .secondary-button { flex: 0 0 auto; background: white; font-size: .8rem; }
.agent-list { margin-top: .4rem; }
.agent-row { padding: .9rem 0; display: grid; grid-template-columns: minmax(145px, 1.2fr) minmax(124px, .9fr) minmax(92px, .6fr); gap: .75rem; border-bottom: 1px solid var(--soft-line); }
.agent-main { min-width: 0; }
.agent-check { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.agent-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.agent-assignment { width: 100%; margin-top: .45rem; padding: .28rem 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; }
.agent-assignment:hover, .agent-assignment:focus { border-color: var(--line); outline-offset: 1px; }
.field-label { display: block; color: var(--muted); font-size: .7rem; }
.field-label select { width: 100%; margin-top: .25rem; padding: .46rem .4rem; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); font-size: .78rem; }
.remove-agent { margin-top: .4rem; padding: 0; border: 0; background: transparent; color: #8a3c35; cursor: pointer; font-size: .72rem; text-decoration: underline; text-underline-offset: 2px; }
.add-button { margin-top: .9rem; padding: .45rem 0; background: transparent; border: 0; color: var(--accent); font-weight: 700; }
.selector-actions { margin-top: 1rem; display: flex; gap: .6rem; }
.selector-actions .button { flex: 1; }
.selector-actions .secondary-button { flex: 1; }
.execution { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.execution h3 { margin: 0; font-size: 1rem; }
.execution dl { display: grid; grid-template-columns: 112px 1fr; gap: .5rem .8rem; margin: .9rem 0 0; font-size: .82rem; }
.execution dt { color: var(--muted); }
.execution dd { margin: 0; }

.section { max-width: 1240px; margin: 0 auto; padding: 6.5rem 2rem; border-top: 1px solid var(--line); }
.section-intro { max-width: 680px; }
.section h2 { margin: 0; font-size: clamp(2.15rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.055em; }
.section-intro > p, .coordination-copy > p { color: var(--muted); font-size: 1.08rem; }
.workflow-steps { list-style: none; margin: 4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.workflow-steps li { padding: 1rem 1.25rem 0 0; }
.workflow-steps li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.workflow-steps span { color: var(--accent); font-size: .78rem; font-weight: 700; }
.workflow-steps h3 { margin: 1.5rem 0 .5rem; font-size: 1.2rem; }
.workflow-steps p { margin: 0; color: var(--muted); font-size: .9rem; }

.coordination { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.coordination-copy > p { margin-top: 0; }
.coordination-copy ul { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.coordination-copy li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.coordination-copy strong { display: block; margin-bottom: .25rem; color: var(--ink); }

.install { max-width: none; padding-left: max(2rem, calc((100vw - 1176px) / 2)); padding-right: max(2rem, calc((100vw - 1176px) / 2)); background: var(--deep); color: white; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 9vw, 9rem); }
.install-copy p { max-width: 460px; color: #bec6be; }
.install-copy, .install-steps { min-width: 0; }
.button-light { margin-top: 1rem; background: white; border-color: white; color: var(--ink); }
.button-light:hover { background: #e9eee9; border-color: #e9eee9; }
.install-steps ol { list-style: none; margin: 0; padding: 0; }
.install-steps li { display: grid; grid-template-columns: 30px 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid #465047; }
.install-steps li:first-child { border-top: 1px solid #465047; }
.install-steps li span { color: #7ed2af; font-weight: 700; }
.install-steps li p { margin: 0; color: #d9dfda; }
.install code { color: white; font-size: .9em; }
.command-block { position: relative; margin-top: 1.4rem; padding: 1rem 5.5rem 1rem 1rem; background: #111512; border: 1px solid #465047; border-radius: 7px; }
.command-block pre { max-width: 100%; margin: 0; overflow-x: auto; }
.command-block button { position: absolute; right: .7rem; top: .7rem; padding: .35rem .7rem; border: 1px solid #59645a; border-radius: 5px; background: transparent; color: white; cursor: pointer; }
.command-block button:hover { border-color: white; }
#copy-feedback { position: absolute; right: .75rem; bottom: .45rem; color: #9edec2; font-size: .72rem; }
.install-note { margin: 1.25rem 0 0; color: #bec6be; font-size: .9rem; }
.install-note a { color: white; text-underline-offset: 3px; }

.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 8rem); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 1.15rem 2rem 1.15rem 0; cursor: pointer; font-weight: 700; }
.faq-list p { margin: -.35rem 2.5rem 1.25rem 0; color: var(--muted); }
.site-footer { justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .brand { color: var(--ink); }
.site-footer p { margin: 0; font-size: .85rem; }

[hidden] { display: none !important; }
@media (max-width: 1160px) {
  .hero { min-height: 0; grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-copy { max-width: 760px; }
  .selector { max-width: 720px; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .workflow-steps li:nth-child(n+3) { margin-top: 2.5rem; }
}

@media (max-width: 680px) {
  .site-header, .site-footer { padding-left: 1rem; padding-right: 1rem; }
  .site-header nav { display: none; }
  .hero, .section { padding: 3.5rem 1rem; }
  h1 { font-size: clamp(3.1rem, 16vw, 4rem); }
  .hero-summary { font-size: 1.05rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .selector { margin: 0 -.25rem; padding: 1rem; }
  .timer-row { margin: 0 -1rem; padding: .8rem 1rem; align-items: flex-start; flex-direction: column; }
  .agent-row { grid-template-columns: 1fr 1fr; }
  .agent-main { grid-column: 1 / -1; }
  .workflow-steps, .coordination, .install, .faq { grid-template-columns: minmax(0, 1fr); }
  .workflow-steps { margin-top: 2.5rem; }
  .workflow-steps li, .workflow-steps li + li, .workflow-steps li:nth-child(3) { padding: 1rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .workflow-steps li:nth-child(n+3) { margin-top: 0; }
  .workflow-steps h3 { margin-top: .55rem; }
  .install { padding-left: 1rem; padding-right: 1rem; }
  .command-block { min-width: 0; padding: 3.2rem 1rem 1rem; }
  #copy-feedback { left: 1rem; right: auto; top: .8rem; bottom: auto; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
