/* The embed and widget are the illustration. Drafting lines stay outside the
   reading column; product pages keep their flat backgrounds. */
.qx {
  --brand: #2557D6; --brand-hover: #1945B5; --blue-ink: #729bff;
  --paper: #0a0a0a; --raise: #121212; --ink: #e4e6eb;
  --ink-2: #b4bac5; --ink-3: #929aa7; --rule: #30343c;
  --page: min(1356px, calc(100% - 112px));
  background: var(--paper); color: var(--ink); color-scheme: dark;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.qx a { color: inherit; text-decoration: none; }
.qx button, .qx input { font: inherit; }
.qx button { cursor: pointer; }
.qx a:focus-visible, .qx button:focus-visible, .qx input:focus-visible, .qx summary:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 5px; }
.qx ::selection { background: var(--brand); color: #fff; }
.qx-wrap { width: var(--page); margin-inline: auto; }
.qx-bar { position: relative; z-index: 2; border-bottom: 1px solid #252a32; background: var(--paper); }
.qx-bar-in { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.qx-brand { font-size: 23px; letter-spacing: -1px; }
.qx-nav { display: flex; align-items: center; gap: 38px; margin-left: 80px; }
.qx-nav a, .qx-bar-end > a:first-child { font-size: 12px; }
.qx-nav a:hover, .qx-bar-end > a:first-child:hover { color: var(--blue-ink); }
.qx-bar-end { display: flex; align-items: center; gap: 44px; }
.qx a.qx-outline { display: inline-flex; padding: 12px 22px; color: var(--blue-ink); border: 1px solid var(--brand); border-radius: 4px; }
.qx a.qx-outline:hover { color: #fff; background: var(--brand-hover); border-color: var(--brand-hover); }
.qx-menu { display: none; width: 38px; height: 38px; border: 1px solid var(--rule); border-radius: 4px; background: transparent; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.qx-menu span { width: 16px; height: 1px; background: var(--ink); }
.qx-drawer[hidden] { display: none; }
.qx-drawer { display: grid; padding-block: 12px; }
.qx-drawer a { padding-block: 13px; border-top: 1px solid #222; }
.qx-main { position: relative; isolation: isolate; overflow: hidden; }
.qx-main::before { content: ''; position: absolute; z-index: -2; inset: 0; pointer-events: none; background-image: linear-gradient(#13171e 1px, transparent 1px), linear-gradient(90deg, #13171e 1px, transparent 1px); background-size: 120px 120px; opacity: .4; mask-image: linear-gradient(90deg, #000, transparent 20%, transparent 80%, #000); }
.qx-drafting { position: absolute; z-index: -1; inset: 0; width: 100%; height: 1100px; pointer-events: none; color: #29446f; opacity: .65; }
.qx-cross { stroke: #729bff; }
.qx-hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: 34px; min-height: 568px; padding: 30px 0 18px 33px; align-items: center; }
.qx-hero-copy { padding-top: 16px; padding-bottom: 8px; position: relative; z-index: 1; }
.qx-index { display: flex; align-items: center; gap: 18px; font-size: 12px; color: var(--ink-3); }
.qx-index span { width: 62px; height: 1px; background: #252a32; }
.qx h1 { margin: 26px 0 24px; font-size: clamp(38px, 3.65vw, 58px); line-height: 1.04; letter-spacing: -.025em; font-weight: 400; }
.qx h1 span, .qx-process h2 span { color: #3874f5; }
.qx-intro { max-width: 605px; font-size: 18px; line-height: 1.65; letter-spacing: .015em; color: #bec4ce; }
.qx-actions { display: flex; align-items: center; gap: 36px; margin-top: 28px; }
.qx a.qx-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 15px 30px; border: 1px solid var(--brand); border-radius: 4px; background: var(--brand); color: #fff; font-size: 14px; transition: background .18s, border-color .18s; }
.qx a.qx-button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.qx a.qx-link { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 4px; }
.qx a.qx-link:hover { color: #a7beff; }
.qx-link span { margin-left: 8px; }
.qx-notes { margin-top: 28px; list-style: none; display: grid; gap: 8px; color: var(--ink-3); font-size: 13px; }
.qx-notes li::before { content: '/'; margin-right: 13px; color: #b4bac5; }
.qx-stage { position: relative; min-height: 520px; min-width: 0; }
.qx-connections { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.qx-callout { position: absolute; font-size: 12px; line-height: 1.65; color: var(--ink-2); }
.qx-callout > span:first-child { margin-right: 7px; text-decoration: underline; text-underline-offset: 4px; }
.qx-callout-detail { margin-left: 33px; color: var(--ink); }
.qx-callout-add { left: 0; top: 10px; }
.qx-callout-show { left: 0; bottom: 23px; }
.qx-snippet { position: absolute; top: 90px; left: 0; width: 77%; border: 1px solid var(--rule); border-radius: 5px; background: var(--paper); }
.qx-snippet-bar { height: 28px; padding-inline: 11px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #1e2229; }
.qx-snippet-bar > span { display: flex; gap: 6px; }
.qx-snippet-bar i { width: 7px; height: 7px; border-radius: 50%; background: #424953; }
.qx-snippet-bar button { padding: 3px 5px; font-size: 10px; border: none; color: var(--ink-3); background: transparent; }
.qx-snippet-bar button:hover { color: var(--blue-ink); }
.qx-code-body { display: flex; gap: 24px; padding: 12px 18px 25px; font-size: 11px; line-height: 1.8; }
.qx-line-numbers { padding-right: 20px; border-right: 1px solid #1e2229; color: #6f7887; }
.qx-code-body pre { margin: 0; overflow-x: auto; min-width: 0; font: inherit; }
.qx-code-body code { font: inherit; }
.qx-code-tag { color: #d3d8e2; }
.qx-code-value { color: #88b5ff; }
.qx-chat { position: relative; margin: 160px 8px 0 auto; width: min(366px, 76%); padding: 15px; border: 1px solid #363e4b; border-radius: 8px; background: var(--paper); box-shadow: 0 8px 24px #0005; font-size: 11px; }
.qx-chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; color: #f0f1f4; }
.qx-chat-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 19px; font-weight: 600; }
.qx-chat-status { display: flex; align-items: center; gap: 5px; color: var(--ink-3); margin-left: auto; font-size: 10px; }
.qx-chat-status i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.qx-user-message { width: fit-content; max-width: 88%; margin-left: auto; margin-bottom: 15px; padding: 10px 12px; color: #e1e8f7; background: #15243b; border-radius: 6px 6px 0 6px; font-family: 'IBM Plex Sans', sans-serif; line-height: 1.5; }
.qx-assistant-message { display: flex; align-items: flex-start; gap: 11px; }
.qx-small-mark { flex: 0 0 26px; display: grid; place-items: center; height: 30px; color: var(--blue-ink); background: #121212; border-radius: 5px; font-size: 13px; }
.qx-assistant-message p { padding: 9px 11px; background: #121212; border-radius: 6px; line-height: 1.7; color: #d3d6dc; }
.qx-sources { margin: 11px 0 14px 37px; padding: 8px 12px; border: 1px solid #292f39; border-radius: 5px; font-size: 10px; }
.qx-sources > p { margin-bottom: 7px; color: #f0f0f0; font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; }
.qx-sources a { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--ink-2); }
.qx-sources a > span:last-child { margin-left: auto; }
.qx-sources a:hover { color: var(--blue-ink); }
.qx-chat-form { display: flex; align-items: center; border: 1px solid #2b3340; border-radius: 5px; background: #101010; }
.qx-chat-form:focus-within { border-color: var(--blue-ink); }
.qx-chat-form input { min-width: 0; width: 100%; padding: 9px 10px; border: none; outline: none; background: transparent; color: var(--ink); font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; }
.qx-chat-form input::placeholder { color: #939ba8; opacity: 1; }
.qx-chat-form button { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: none; background: none; color: var(--blue-ink); }
.qx-chat-form button:hover { color: #a7beff; }
.qx-chat-form svg { width: 18px; height: 18px; }
.qx-preview-note { padding-top: 8px; color: var(--ink-3); font-family: 'IBM Plex Sans', sans-serif; font-size: 9px; }
.qx-audience { display: grid; grid-template-columns: 1.15fr repeat(5, 1fr); align-items: center; min-height: 73px; border-block: 1px solid var(--rule); }
.qx-audience > p { color: var(--ink-3); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.qx-audience > span { display: flex; align-items: center; justify-content: center; gap: 16px; border-left: 1px solid var(--rule); color: var(--ink-2); font-size: 12px; }
.qx-audience svg { width: 23px; height: 23px; flex-shrink: 0; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.qx-process { display: grid; grid-template-columns: 1.1fr 1.16fr 1.1fr .96fr; padding: 28px 0 33px; gap: 40px; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.qx h2 { font-size: 28px; line-height: 1.25; font-weight: 400; letter-spacing: -.025em; }
.qx-process h2 { margin-top: 15px; }
.qx-step { margin-top: 8px; padding-left: 40px; border-left: 1px solid var(--rule); }
.qx-step-number { color: var(--ink-2); font-size: 11px; }
.qx-step h3 { margin: 14px 0 6px; font-size: 14px; font-weight: 400; }
.qx-step p { color: var(--ink-3); line-height: 1.6; font-size: 12px; }
.qx-try { display: grid; grid-template-columns: 1.05fr 3fr; gap: 40px; padding-block: 25px; border-bottom: 1px solid var(--rule); }
.qx-try > div:first-child { display: flex; align-items: center; gap: 34px; }
.qx-try h2 { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.qx-questions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.qx-questions button { padding: 8px 0; background: none; border: none; color: var(--ink-2); text-align: left; font-size: 12px; }
.qx-questions button span { color: var(--blue-ink); margin-left: 8px; }
.qx-questions button:hover { color: var(--blue-ink); }
.qx-details { display: grid; grid-template-columns: 1.05fr 3fr; gap: 40px; padding-block: 48px; }
.qx-details h2 { margin: 16px 0 24px; }
.qx-faq details { border-bottom: 1px solid #282c34; }
.qx-faq details:first-child { border-top: 1px solid #282c34; }
.qx-faq summary { position: relative; padding: 20px 35px 20px 0; list-style: none; cursor: pointer; font-size: 14px; }
.qx-faq summary::-webkit-details-marker { display: none; }
.qx-faq summary::after { content: '+'; position: absolute; right: 8px; color: var(--blue-ink); }
.qx-faq details[open] summary::after { content: '\2212'; }
.qx-faq details p { max-width: 760px; padding-bottom: 20px; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.qx-faq details a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.qx-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0 30px; border-top: 1px solid var(--rule); }
.qx-footer .qx-brand { font-size: 18px; }
.qx-footer p { margin-top: 10px; color: var(--ink-3); font-size: 10px; }
.qx-footer p span { padding-inline: 8px; }
.qx-footer nav { display: flex; flex-wrap: wrap; gap: 26px; color: var(--ink-2); font-size: 12px; }
.qx-footer nav a:hover { color: var(--blue-ink); }
.qx a.qx-footer-code { color: var(--blue-ink); font-size: 17px; }
.qx-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; }
.qx-bar-in > .qx-brand { order: 0; flex-shrink: 0; line-height: 0; }
.qx-brand img { width: 120px; height: 34px; object-fit: contain; }
.qx-nav { order: 1; margin-left: 0; }
.qx-bar-end { order: 2; margin-left: auto; }
.qx-menu { order: 3; }
.qx-chat-mark, .qx-small-mark { object-fit: contain; background: transparent; flex-shrink: 0; aspect-ratio: 1; height: 26px; }
.qx-bar, .qx-hero > *, .qx-audience, .qx-process, .qx-try, .qx-details, .qx-footer {
  animation: qx-enter .65s cubic-bezier(.2,.65,.3,1) both;
}
.qx-stage { animation-delay: .12s; }
.qx-audience { animation-delay: .2s; }
.qx-process { animation-delay: .28s; }
.qx-try { animation-delay: .34s; }
.qx-details, .qx-footer { animation-delay: .4s; }
@keyframes qx-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .qx-bar, .qx-hero > *, .qx-audience, .qx-process, .qx-try, .qx-details, .qx-footer { animation: none; }
}
@media (min-width: 1600px) { .qx-hero { min-height: 615px; } }
@media (max-width: 1200px) {
  .qx { --page: calc(100% - 64px); }
  .qx-nav { margin-left: 0; gap: 24px; } .qx-bar-end { gap: 24px; }
  .qx-hero { padding-left: 0; gap: 24px; } .qx-intro { font-size: 16px; }
  .qx-actions { gap: 24px; } .qx a.qx-button { padding-inline: 22px; }
  .qx-snippet { width: 91%; } .qx-code-body { gap: 12px; padding-inline: 12px; font-size: 10px; }
  .qx-line-numbers { padding-right: 12px; } .qx-chat { margin-right: 0; width: 86%; }
  .qx-callout-show { position: relative; margin-top: 22px; bottom: auto; }
  .qx-audience > p { font-size: 9px; } .qx-audience > span { gap: 10px; font-size: 10px; }
  .qx-process { gap: 25px; } .qx-step { padding-left: 25px; } .qx h2 { font-size: 24px; }
}
@media (max-width: 960px) {
  .qx { --page: calc(100% - 48px); } .qx-nav, .qx-bar-end { display: none; } .qx-menu { display: flex; }
  .qx-hero { grid-template-columns: 1fr 1fr; min-height: 575px; gap: 20px; }
  .qx h1 { font-size: clamp(34px, 4.5vw, 44px); } .qx-actions { flex-wrap: wrap; gap: 20px; }
  .qx-snippet { width: 100%; } .qx-chat { width: 100%; margin-top: 209px; }
  .qx-stage { min-height: 550px; }
  .qx-audience { grid-template-columns: repeat(3, 1fr); gap: 22px 0; padding-block: 22px; }
  .qx-audience > p { grid-column: 1 / -1; text-align: center; font-size: 11px; }
  .qx-audience > span { font-size: 12px; justify-content: flex-start; padding-left: 18px; }
  .qx-process { grid-template-columns: repeat(3, 1fr); } .qx-process-heading { grid-column: 1 / -1; }
  .qx-process-heading h2 br { display: none; } .qx-step { padding-left: 20px; }
  .qx-try, .qx-details { grid-template-columns: 1fr; gap: 24px; }
  .qx h2 { font-size: 26px; } .qx-try h2 { font-size: 12px; } .qx-details h2 br { display: none; }
}
@media (max-width: 680px) {
  .qx { --page: calc(100% - 40px); } .qx-bar-in { min-height: 64px; } .qx-brand { font-size: 21px; }
  .qx-hero { display: block; padding-top: 34px; padding-bottom: 18px; } .qx-hero-copy { padding-top: 0; }
  .qx h1 { font-size: clamp(35px, 8.3vw, 53px); margin-top: 22px; }
  .qx-intro { max-width: 480px; font-size: 15px; line-height: 1.7; }
  .qx-actions { gap: 24px; margin-top: 24px; } .qx a.qx-button { padding: 13px 20px; font-size: 13px; }
  .qx a.qx-link { font-size: 12px; } .qx-notes { font-size: 12px; margin-top: 24px; }
  .qx-stage { min-height: 0; max-width: 490px; margin: 34px auto 0; padding-top: 1px; } .qx-callout-add { top: 0; }
  .qx-snippet { top: 62px; width: 100%; } .qx-code-body { font-size: 10px; padding-bottom: 20px; }
  .qx-chat { margin-top: 182px; width: 92%; max-width: 366px; }
  .qx-audience { grid-template-columns: repeat(2, 1fr); } .qx-audience > span { font-size: 11px; gap: 12px; }
  .qx-process { grid-template-columns: 1fr; padding-block: 28px; gap: 24px; } .qx-process-heading h2 br { display: initial; }
  .qx-step { padding-left: 22px; margin-top: 0; } .qx-step h3 { margin-top: 8px; }
  .qx-step p { max-width: 360px; font-size: 13px; } .qx-try { padding-block: 26px; }
  .qx-questions { flex-direction: column; align-items: flex-start; gap: 7px; }
  .qx-details { padding-block: 32px; } .qx-faq summary { font-size: 13px; line-height: 1.6; }
  .qx-footer { flex-wrap: wrap; } .qx-footer nav { gap: 20px; } .qx-drafting { opacity: .4; }
}
/* Stack the illustration in normal flow on tablets and phones. The desktop
   overlaps otherwise squeeze the transcript and leave awkward empty space. */
@media (max-width: 820px) {
  .qx-hero { display: grid; grid-template-columns: 1fr; min-height: 0; padding: 32px 0; gap: 30px; }
  .qx-hero-copy { padding: 0; min-width: 0; }
  .qx h1 { font-size: clamp(34px, 7vw, 54px); }
  .qx-stage { display: flex; flex-direction: column; gap: 16px; min-height: 0; width: 100%; max-width: 560px; margin: 0 auto; padding: 0; }
  .qx-connections { display: none; }
  .qx-callout, .qx-snippet, .qx-chat { position: static; margin: 0; width: 100%; max-width: none; }
  .qx-callout-detail { margin-left: 8px; }
  .qx-callout br { display: none; }
  .qx-callout-show { align-self: flex-end; text-align: right; }
  .qx-code-body { padding: 14px; gap: 12px; }
  .qx-chat { padding: 18px; font-size: 13px; }
  .qx-chat-head { font-size: 14px; }
  .qx-chat-form input { font-size: 16px; padding: 12px; }
  .qx-chat-form button { width: 42px; height: 42px; }
  .qx-preview-note { font-size: 11px; line-height: 1.5; }
  .qx-process { grid-template-columns: 1fr; gap: 24px; }
  .qx-process-heading h2 br { display: none; }
  .qx-step { margin: 0; }
}
@media (max-width: 420px) {
  .qx { --page: calc(100% - 32px); }
  .qx-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .qx-actions .qx-link { padding: 8px 0; }
  .qx-chat { padding: 14px; }
  .qx-chat-head { gap: 7px; font-size: 12px; }
  .qx-assistant-message { gap: 8px; }
  .qx-sources { margin-left: 34px; }
  .qx-audience > span { padding-left: 10px; gap: 8px; }
  .qx-footer nav { gap: 8px 20px; }
  .qx-footer nav a { padding: 8px 0; }
}
