::selection { background: #d9ff3d; color: #0C0D0F; }
.doc-head .kicker .soon{
  display:inline-block;margin-left:8px;padding:3px 8px;border-radius:20px;
  background:rgba(217,255,61,.15);border:1px solid rgba(217,255,61,.35);
  color:var(--lime);letter-spacing:.12em;
}

.endpoint{
  background:var(--ink);border-radius:12px;padding:18px 20px;margin:0 0 22px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.endpoint .lb{
  display:block;font-family:"JetBrains Mono",monospace;font-size:10px;
  letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.45);margin-bottom:7px;
}
.endpoint code{
  font-family:"JetBrains Mono",monospace;font-size:15px;color:var(--lime);
  word-break:break-all;line-height:1.4;
}
.copy{
  font-family:"JetBrains Mono",monospace;font-size:10px;letter-spacing:.13em;text-transform:uppercase;
  background:transparent;color:rgba(255,255,255,.75);cursor:pointer;
  border:1px solid rgba(255,255,255,.28);border-radius:20px;padding:9px 15px;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;flex-shrink:0;
}
.copy:hover{background:var(--lime);color:var(--ink);border-color:var(--lime)}
.copy.done{background:var(--lime);color:var(--ink);border-color:var(--lime)}

.legal pre{
  background:var(--ink);color:#E6E6DE;border-radius:11px;padding:16px 18px;margin:0 0 16px;
  overflow-x:auto;font-family:"JetBrains Mono",monospace;font-size:12.5px;line-height:1.65;
}
.legal pre code{font-family:inherit;font-size:inherit;color:inherit;background:none;padding:0}
.legal pre .k{color:var(--lime)}
.legal pre .c{color:#7C8087}
.legal p code,.legal li code,.legal td code{
  font-family:"JetBrains Mono",monospace;font-size:.88em;
  background:#fff;border:1px solid var(--line);border-radius:5px;padding:1px 5px;
}

.legal .client{
  border:1px solid var(--line);border-radius:12px;background:#fff;padding:20px 22px;margin:0 0 14px;
}
.legal .client h3{margin:0 0 12px;font-size:15.5px}
.legal .client p:last-child,.legal .client pre:last-child,.legal .client ol:last-child{margin-bottom:0}
.legal ol{margin:0 0 14px;padding-left:20px}
.legal ol li{font-size:15px;line-height:1.68;color:#43413D;margin-bottom:7px}

.term{
  background:#0C0D0F;border:1px solid #25272B;border-radius:14px;
  overflow:hidden;margin:0 0 20px;
}
.term-bar{
  display:flex;align-items:center;gap:9px;
  padding:13px 16px;border-bottom:1px solid #1E2023;background:#141518;
}
.term-bar .dot{width:11px;height:11px;border-radius:50%;flex-shrink:0}
.term-bar .dot.r{background:#B4462F}
.term-bar .dot.y{background:#B08A2E}
.term-bar .dot.g{background:#4F7A3A}
.term-bar .ttl{
  font-family:"JetBrains Mono",monospace;font-size:11.5px;letter-spacing:.06em;
  color:#8A8E93;margin-left:6px;
}
.term-body{padding:20px 18px 18px;display:flex;flex-direction:column;gap:13px}

.js .term .step{opacity:0;transform:translateY(9px)}
.js .term.in .step{
  animation:termIn .5s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay:calc(.25s + var(--s) * .78s);
}
@keyframes termIn{to{opacity:1;transform:none}}

.term .msg{max-width:86%;font-size:14.5px;line-height:1.5;letter-spacing:-.01em}
.term .msg.user{
  align-self:flex-end;background:var(--lime);color:#0C0D0F;
  border-radius:16px 16px 4px 16px;padding:12px 16px;font-weight:500;
}
.term .msg.bot{
  align-self:flex-start;background:#16181B;color:#E6E6DE;border:1px solid #25272B;
  border-radius:16px 16px 16px 4px;padding:14px 16px;
}
.term .msg.bot p{margin:0;color:inherit;font-size:inherit;line-height:inherit}
.term .msg.bot p + .data{margin-top:12px}

.term .msg strong{color:#FFFFFF;font-weight:700}
.term .msg.user strong{color:#0C0D0F}

.term .data{
  background:#08090A;border-radius:9px;padding:12px 14px;
  font-family:"JetBrains Mono",monospace;font-size:12.5px;
  display:grid;grid-template-columns:1fr auto;gap:8px 16px;align-items:baseline;
}
.term .data .k{color:#9EA2A8}
.term .data .v{text-align:right;white-space:nowrap;color:#C6EE22}
.term .data .v.bad{color:#F0897E}

.term .call{
  align-self:flex-start;display:inline-flex;align-items:center;gap:9px;
  border:1px solid #25272B;border-radius:22px;padding:8px 15px 8px 12px;
  font-family:"JetBrains Mono",monospace;font-size:12px;color:#DCDCD4;
}
.term .call .who{color:#6E7278}
.term .call .st{position:relative;width:13px;height:13px;flex-shrink:0}
.term .call .st i{position:absolute;inset:0;display:block;font-style:normal}
.term .call .st .run{
  border-radius:50%;background:var(--lime-deep);
  animation:termPulse 1s ease-in-out infinite;
}
.term .call .st .ok{
  color:var(--lime-deep);font-size:13px;line-height:13px;text-align:center;opacity:0;
}
@keyframes termPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.3;transform:scale(.72)}}

.js .term.in .call .st .run{animation:termPulse 1s ease-in-out infinite,termOut .01s linear forwards;
  animation-delay:0s,calc(.85s + var(--s) * .78s)}
.js .term.in .call .st .ok{animation:termIn .25s ease forwards;animation-delay:calc(.85s + var(--s) * .78s)}
@keyframes termOut{to{opacity:0}}

.term .reply{
  margin-top:4px;border:1px solid #25272B;border-radius:12px;padding:13px 15px;
  color:#5F6368;font-size:14px;display:flex;align-items:center;gap:9px;
}

.term .reply .caret{
  width:2px;height:16px;background:var(--lime);flex-shrink:0;
  animation:termBlink 1.1s steps(1) 6;
}
@keyframes termBlink{0%,49%{opacity:1}50%,100%{opacity:0}}

@media (prefers-reduced-motion:reduce){
  .js .term .step{opacity:1;transform:none;animation:none}
  .js .term.in .step{animation:none}
  .term .call .st .run{display:none}
  .js .term.in .call .st .ok,.term .call .st .ok{opacity:1;animation:none}
  .term .reply .caret{animation:none}
}

.legal .prompt{
  font-family:"JetBrains Mono",monospace;font-size:13px;line-height:1.6;
  background:#fff;border:1px solid var(--line);border-left:3px solid var(--lime-deep);
  border-radius:8px;padding:14px 16px;margin:0 0 12px;color:#43413D;
}

.legal .table-scroll{overflow-x:auto;margin:0 0 18px}
.legal table{width:100%;border-collapse:collapse;font-size:14px}
.legal th{
  text-align:left;font-weight:700;font-size:13px;padding:10px 12px;
  border-bottom:2px solid var(--ink);white-space:nowrap;
}
.legal td{padding:10px 12px;border-bottom:1px solid var(--line);line-height:1.55;color:#43413D;vertical-align:top}
.legal td code{white-space:nowrap}
.legal tbody tr:last-child td{border-bottom:0}

.cta-box{background:var(--lime);border-radius:14px;padding:26px 28px;margin:36px 0 8px}
.cta-box h2{border:0;margin:0;padding:0;font-size:21px;color:var(--ink)}
.cta-box p{color:#3F4A12;margin:10px 0 16px;font-size:15px;line-height:1.6}
.cta-box .btn{
  display:inline-block;background:var(--ink);color:#fff;text-decoration:none;
  font-weight:700;font-size:14.5px;padding:13px 22px;border-radius:28px;
}
.cta-box .btn:hover{background:#22252A;color:#fff}

.server-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 26px}
.server{
  display:block;text-decoration:none;background:#fff;
  border:1px solid var(--line);border-radius:13px;padding:22px 24px 24px;
  transition:transform .3s cubic-bezier(.2,.7,.3,1),border-color .3s ease;
}
.server:hover{transform:translateY(-3px);border-color:var(--lime-deep);color:var(--ink)}
.server .kick{
  font-family:"JetBrains Mono",monospace;font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--lime-text);
}

.server h3{font-weight:700;font-size:18px;letter-spacing:-.03em;margin:11px 0 8px;color:var(--ink)}
.server .host{
  display:block;font-family:"JetBrains Mono",monospace;font-size:12px;
  color:var(--muted);margin:0 0 10px;word-break:break-all;
}
.server p{margin:0;font-size:14px;line-height:1.6;color:var(--muted)}
.server .go{display:inline-block;margin-top:13px;font-size:13.5px;font-weight:700;color:var(--ink)}

@media (max-width:860px){
  .server-grid{grid-template-columns:1fr}
  .endpoint{flex-direction:column;align-items:flex-start}
  .endpoint code{font-size:13.5px}
  .term-body{padding:16px 14px 14px}
  .term .msg{max-width:94%;font-size:14px}
  .term .data{font-size:11.5px;gap:7px 10px}
  .term .call{font-size:11px}
  .legal .client{padding:18px 16px}
  .legal pre{padding:14px 15px;white-space:pre-wrap;overflow-wrap:anywhere}
  .legal .table-scroll > table{min-width:520px}
  .legal .table-scroll{
    -webkit-overflow-scrolling:touch;
    background:linear-gradient(to left,rgba(12,13,15,.09),rgba(12,13,15,0) 26px) right/26px 100% no-repeat;
  }
  .legal .prompt{padding:13px 14px;font-size:12.5px}
  .cta-box{padding:22px 20px}
  .cta-box h2{font-size:19px}
}

@media (max-width:640px){
  .legal .table-scroll > table.stack{min-width:0}
  .legal .table-scroll:has(> table.stack){overflow-x:visible;background:none}
  .legal table.stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .legal table.stack tr{display:block;padding:14px 0;border-bottom:1px solid var(--line)}
  .legal table.stack tr:first-child{padding-top:0}
  .legal table.stack tr:last-child{border-bottom:0}
  .legal table.stack td{display:block;padding:0;border:0}
  .legal table.stack td + td{margin-top:9px}
  .legal table.stack td[data-label]::before{
    content:attr(data-label);display:block;margin-bottom:3px;
    font-family:"JetBrains Mono",monospace;font-size:9.5px;letter-spacing:.14em;
    text-transform:uppercase;color:var(--muted);
  }
}

@media (max-width:400px){
  .term .data{grid-template-columns:1fr;gap:2px}
  .term .data .v{text-align:left;margin-bottom:6px}
  .term .data span:last-child{margin-bottom:0}
}
