/* benmore.ai public site, in benmore.tech's design language.

   Loaded by layouts/marketing.html and by the public layout="none" pages
   (pricing, docs, cli, sign-in pages) after their own styles. The ground
   is benmore.tech's warm grey with near-black type, grey cards, pill
   buttons and blue only as an accent. The depth comes from benmore-3d.js:
   rounded keycaps in dark and light panels (home hero, the pinned "how it
   works" story, the closing panel and the sign-in pages); CSS keycaps
   echo them on the cards. Code, tables and command rows wrap instead of
   scrolling sideways. Overrides of page styles are scoped (.site-main,
   html body) so they win over each page's inline <style>. Motion stops
   under prefers-reduced-motion. */

:root {
  --sx-ground: #f4f4f2;
  --sx-card: #eaeae6;
  --sx-card-hover: #e3e3de;
  --sx-paper: #ffffff;
  --sx-ink: #0b0b0b;
  --sx-text: #0b0b0b;
  --sx-muted: #5d5d59;
  --sx-soft: #85857f;
  --sx-line: rgba(11, 11, 11, 0.08);
  --sx-line-strong: rgba(11, 11, 11, 0.2);
  --sx-night: #07090d;
  --sx-night-2: #0e1117;
  --sx-night-3: #161a22;
  --sx-night-line: rgba(255, 255, 255, 0.1);
  --sx-night-muted: rgba(236, 238, 242, 0.62);
  --sx-blue: #1d54e2;
  --sx-blue-glow: rgba(29, 84, 226, 0.5);
  --sx-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --sx-radius: 24px;
  --sx-radius-card: 20px;
  --sx-max: 1240px;
  --sx-gut: var(--gutter, 24px);
  --sx-inset: 12px;
}

/* ---------- Page ground ---------------------------------------------------- */
html, html body { overflow-x: clip; }
html body { background: var(--sx-ground); color: var(--sx-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(29, 84, 226, 0.16); }
.site-main { position: relative; }

/* ---------- Shared primitives ---------------------------------------------- */
.sx-wrap { max-width: var(--sx-max); margin: 0 auto; padding: 0 var(--sx-gut); }
.sx-kicker { font-size: 0.9375rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.4; color: var(--sx-muted); margin: 0 0 16px; }
.sx-blue, .sx-grad-text { color: var(--sx-blue); }
.sx-h1 { font-size: clamp(2.75rem, 6.4vw, 6rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.05em; text-wrap: balance; margin: 0; }
.sx-h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; margin: 0; color: var(--sx-text); max-width: 18ch; }
.sx-h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.22; letter-spacing: -0.03em; margin: 0 0 12px; color: inherit; }
.sx-lead { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.6; letter-spacing: -0.012em; color: var(--sx-muted); max-width: 58ch; margin: 0; text-wrap: pretty; }

.sx-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
a.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--sx-ease), color 0.25s var(--sx-ease), border-color 0.25s var(--sx-ease), transform 0.35s var(--sx-ease-out); }
a.sx-btn:hover { transform: translateY(-1px); }
a.sx-btn .sx-arrow { display: inline-block; transition: transform 0.35s var(--sx-ease-out); }
a.sx-btn:hover .sx-arrow { transform: translate(2px, -1px); }
a.sx-btn:focus-visible, a.sx-pill:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 4px; }
a.sx-btn.is-light { background: #fff; color: var(--sx-ink); }
a.sx-btn.is-light:hover { background: #ececea; }
a.sx-btn.is-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.72); }
a.sx-btn.is-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
a.sx-btn.is-ink { background: var(--sx-ink); color: #fff; }
a.sx-btn.is-ink:hover { background: #262626; }
a.sx-btn.is-line { color: var(--sx-ink); border-color: var(--sx-ink); }
a.sx-btn.is-line:hover { background: var(--sx-ink); color: #fff; }
a.sx-btn.is-sm { min-height: 42px; padding: 0 20px; font-size: 0.9375rem; }
.sx-link { color: var(--sx-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--sx-line-strong); transition: text-decoration-color 0.25s; }
.sx-link:hover { text-decoration-color: currentColor; }
.sx-link:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 4px; border-radius: 4px; }

/* Reveal: hidden only once site-motion.js is running. */
.sx-js [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity 0.9s var(--sx-ease-out), translate 1s var(--sx-ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.sx-js [data-reveal].is-in { opacity: 1; translate: none; }

/* CSS keycap: the icon tile on cards, the same object as the 3D keys. */
.sx-key { position: relative; width: 58px; height: 58px; flex: none; border-radius: 15px; display: grid; place-items: center; color: var(--sx-ink);
  background: linear-gradient(180deg, #ffffff, #f3f3f0);
  box-shadow: inset 0 1px 0 #fff, 0 5px 0 #cfcfc9, 0 6px 2px rgba(0, 0, 0, 0.08), 0 16px 22px -12px rgba(0, 0, 0, 0.35);
  translate: 0 -5px; transition: translate 0.3s var(--sx-ease-out), box-shadow 0.3s var(--sx-ease-out), color 0.3s; }
.sx-key svg { width: 26px; height: 26px; }
.sx-card:hover .sx-key { translate: 0 -1px; color: var(--sx-blue);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #cfcfc9, 0 0 0 1px rgba(29, 84, 226, 0.18), 0 10px 28px -6px var(--sx-blue-glow); }

/* ---------- Home: hero ----------------------------------------------------- */
.sx-hero { position: relative; isolation: isolate; overflow: hidden; margin: 0 var(--sx-inset); border-radius: var(--sx-radius); background: var(--sx-night); color: #fff;
  min-height: clamp(600px, calc(100svh - var(--nav-h, 60px) - 28px), 960px); display: grid; place-items: center; }
.sx-hero-3d { position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.3px); background-size: 22px 22px; }
.sx-hero-3d canvas, .sx-cta-3d canvas, .sx-auth-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.7s var(--sx-ease); }
.sx-hero-3d.is-live canvas, .sx-cta-3d.is-live canvas, .sx-auth-bg.is-live canvas { opacity: 1; }
/* Keep the headline readable over the keys. */
.sx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(52% 48% at 50% 50%, rgba(7, 9, 13, 0.82), rgba(7, 9, 13, 0.5) 55%, rgba(7, 9, 13, 0) 88%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.6), rgba(7, 9, 13, 0) 24%, rgba(7, 9, 13, 0) 76%, rgba(7, 9, 13, 0.55)); }
.sx-hero-inner { position: relative; max-width: 1200px; padding: clamp(96px, 12vw, 150px) var(--sx-gut); text-align: center; pointer-events: none; }
.sx-hero-inner a, .sx-hero-inner .sx-actions { pointer-events: auto; }
.sx-hero-kicker { display: inline-block; margin: 0 0 30px; padding: 8px 16px; border-radius: 999px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(7, 9, 13, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sx-hero .sx-h1 { color: #fff; max-width: none; margin: 0 auto; font-size: clamp(2.75rem, 5.8vw, 5.75rem); }
.sx-hero .sx-lead { color: rgba(236, 238, 242, 0.8); margin: 28px auto 0; max-width: 44em; }
.sx-hero .sx-actions { justify-content: center; margin: 40px 0 20px; }
.sx-hero-note { font-size: 0.875rem; color: rgba(236, 238, 242, 0.58); margin: 0; }
.sx-hero-foot { position: absolute; left: 28px; right: 28px; bottom: 22px; display: flex; justify-content: space-between; font-size: 0.8125rem; color: rgba(236, 238, 242, 0.5); pointer-events: none; }
@media (hover: none) { .sx-hero-hint { display: none; } }

/* ---------- Home: the pinned story ----------------------------------------- */
/* Without JS (and under reduced motion) this is an ordinary dark panel with
   every chapter visible; site-motion.js pins it and steps the chapters. */
.sx-story { position: relative; margin: var(--sx-inset) var(--sx-inset) 0; }
.sx-story-pin { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--sx-radius); background: var(--sx-night); color: #fff; padding: clamp(28px, 4vw, 48px); }
.sx-story canvas { display: none; }
.sx-story.is-static canvas { display: block; width: 100%; height: clamp(320px, 42vw, 540px); margin: 24px 0; border-radius: 16px; }
.sx-story-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sx-story-label { margin: 0; font-size: 0.9375rem; font-weight: 400; letter-spacing: -0.01em; color: var(--sx-night-muted); }
.sx-story-skip { font-size: 0.875rem; color: var(--sx-night-muted); text-decoration: none; }
.sx-story-skip:hover { color: #fff; }
.sx-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: 40px; }
.sx-chapter .sx-kicker { color: var(--sx-night-muted); margin-bottom: 14px; }
.sx-chapter-title { font-size: clamp(1.75rem, 3.2vw, 3rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.045em; margin: 0 0 20px; text-wrap: balance; }
.sx-chapter p { color: rgba(236, 238, 242, 0.72); font-size: 1.0625rem; line-height: 1.6; margin: 0 0 26px; max-width: 34em; }
.sx-files { margin: 0; display: grid; gap: 16px; }
.sx-files div { padding-top: 14px; border-top: 1px solid var(--sx-night-line); }
.sx-files dt code { font-family: var(--font-mono); font-size: 0.9375rem; color: #fff; background: none; padding: 0; overflow-wrap: anywhere; }
.sx-files dd { margin: 4px 0 0; color: var(--sx-night-muted); font-size: 0.9375rem; }
.sx-story-nav, .sx-story-bar { display: none; }
.sx-story a:focus-visible { outline: 2px solid #8fb0ff; outline-offset: 4px; border-radius: 6px; }

.sx-js .sx-story:not(.is-static) { height: 400vh; }
.sx-js .sx-story:not(.is-static) .sx-story-pin { position: sticky; top: calc(var(--nav-h, 60px) + 6px); height: calc(100svh - var(--nav-h, 60px) - 18px); min-height: 560px; padding: 0; }
.sx-js .sx-story:not(.is-static) canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s var(--sx-ease); }
.sx-js .sx-story.is-live canvas { opacity: 1; }
.sx-js .sx-story:not(.is-static) .sx-story-top { position: absolute; top: 26px; left: 34px; right: 34px; }
.sx-js .sx-story:not(.is-static) .sx-chapters { position: absolute; left: clamp(28px, 4vw, 64px); top: 50%; translate: 0 -50%; width: min(460px, 38%); margin: 0; display: grid; grid-template-columns: 1fr; }
/* Inactive chapters are transparent but stay in the accessibility tree;
   focusing one scrolls the track to it (site-motion.js). */
.sx-js .sx-story:not(.is-static) .sx-chapter { grid-area: 1 / 1; opacity: 0; translate: 0 18px; pointer-events: none;
  transition: opacity 0.5s var(--sx-ease), translate 0.8s var(--sx-ease-out); }
.sx-js .sx-story:not(.is-static) .sx-chapter.is-on { opacity: 1; translate: none; pointer-events: auto; transition-delay: 0.12s; }
.sx-js .sx-story:not(.is-static) .sx-chapter:focus-within { opacity: 1; translate: none; }
.sx-js .sx-story:not(.is-static) .sx-story-nav { display: flex; align-items: center; gap: 26px; position: absolute; left: 34px; right: 34px; bottom: 26px; font-size: 0.875rem; }
.sx-story-nav a { display: inline-flex; align-items: center; gap: 9px; color: var(--sx-night-muted); text-decoration: none; transition: color 0.3s; }
.sx-story-nav a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.7; transition: background 0.3s, box-shadow 0.3s; }
.sx-story-nav a:hover, .sx-story-nav a[aria-current] { color: #fff; }
.sx-story-nav a[aria-current]::before { background: #4f7dff; opacity: 1; box-shadow: 0 0 10px 2px rgba(63, 116, 255, 0.7); }
.sx-story-hint { margin-left: auto; color: var(--sx-night-muted); }
.sx-js .sx-story:not(.is-static) .sx-story-bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.05); }
.sx-story-bar i { display: block; height: 100%; width: calc(var(--bx-p, 0) * 100%); background: linear-gradient(90deg, rgba(63, 116, 255, 0.4), #3f74ff); }

/* ---------- Home: sections ------------------------------------------------- */
.sx-section { padding: clamp(96px, 11vw, 160px) 0 0; }
.sx-section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.sx-section-head.is-center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.sx-section-head.is-center .sx-h2 { max-width: 20ch; }

.sx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sx-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 360px; padding: 30px 28px 28px; border-radius: var(--sx-radius-card);
  background: var(--sx-card); color: var(--sx-text); transition: background-color 0.3s var(--sx-ease); }
.sx-card:hover { background: var(--sx-card-hover); }
.sx-card .sx-h3 { margin-top: 46px; }
.sx-card p { color: var(--sx-muted); font-size: 1rem; line-height: 1.6; margin: 0 0 28px; }
.sx-card code { font-family: var(--font-mono); font-size: 0.875em; background: rgba(11, 11, 11, 0.06); padding: 2px 6px; border-radius: 6px; }
.sx-card .sx-tag { margin-top: 46px; font-size: 0.875rem; color: var(--sx-muted); }
.sx-card .sx-tag + .sx-h3 { margin-top: 10px; }
.sx-card.is-tall { min-height: 420px; }
a.sx-pill { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--sx-ink);
  color: var(--sx-ink); font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
a.sx-pill:hover { background: var(--sx-ink); color: #fff; }
.sx-arrow { display: inline-block; transition: transform 0.35s var(--sx-ease-out); }
a.sx-pill:hover .sx-arrow { transform: translate(2px, -2px); }

.sx-card.is-dark { background: var(--sx-night-2); color: #fff; }
.sx-card.is-dark:hover { background: var(--sx-night-3); }
.sx-card.is-dark p, .sx-card.is-dark .sx-tag { color: var(--sx-night-muted); }
.sx-card.is-dark a.sx-pill { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.sx-card.is-dark a.sx-pill:hover { background: #fff; color: var(--sx-ink); border-color: #fff; }
.sx-card.is-dark .sx-key { color: #fff; background: linear-gradient(180deg, #2a2f3a, #1d212a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 5px 0 #0a0c10, 0 6px 2px rgba(0, 0, 0, 0.3), 0 16px 24px -12px rgba(0, 0, 0, 0.8); }
.sx-card.is-dark:hover .sx-key { color: #cfdcff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 #0a0c10, 0 0 0 1px rgba(63, 116, 255, 0.45), 0 10px 30px -4px rgba(63, 116, 255, 0.75); }

/* Steps + terminal */
.sx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.sx-steps { list-style: none; margin: 40px 0 0; padding: 0; counter-reset: sx; }
.sx-steps li { counter-increment: sx; position: relative; padding: 22px 0 22px 58px; border-top: 1px solid var(--sx-line); color: var(--sx-muted); font-size: 1.0625rem; line-height: 1.6; }
.sx-steps li:last-child { border-bottom: 1px solid var(--sx-line); }
.sx-steps li::before { content: counter(sx, decimal-leading-zero); position: absolute; left: 0; top: 24px; font-size: 0.875rem; color: var(--sx-soft); font-variant-numeric: tabular-nums; }
.sx-steps strong { display: block; color: var(--sx-text); font-weight: 500; font-size: 1.1875rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.sx-note { font-size: 0.9375rem; color: var(--sx-muted); margin: 26px 0 0; }
.sx-note a { color: var(--sx-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sx-window { border-radius: var(--sx-radius-card); overflow: hidden; background: var(--sx-night); color: #eceef2; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55); }
.sx-window-bar { display: flex; align-items: center; gap: 8px; padding: 15px 18px; border-bottom: 1px solid var(--sx-night-line); font-size: 0.8125rem; color: var(--sx-night-muted); }
.sx-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c313b; }
.sx-window-bar span { margin-left: 10px; }
.sx-window pre { margin: 0; padding: 26px 26px 10px; font-family: var(--font-mono); font-size: 0.875rem; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; color: #eceef2; }
.sx-window pre code { background: none; padding: 0; color: inherit; font: inherit; }
.sx-window .p { color: #6f7685; user-select: none; }
.sx-window .c { color: #6f7685; }
.sx-window .k { color: #8fb0ff; }
.sx-window .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -0.2em; background: #3f74ff; margin-left: 2px; animation: sx-blink 1.1s steps(1) infinite; box-shadow: 0 0 10px rgba(63, 116, 255, 0.8); }
@keyframes sx-blink { 50% { opacity: 0; } }
.sx-window-foot { padding: 12px 26px 24px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.875rem; }
.sx-window-foot a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.sx-window-foot a:hover { text-decoration-color: #fff; }

/* FAQ */
.sx-faq { max-width: 920px; }
.sx-faq .sx-h2 { margin-bottom: 40px; }
.sx-faq details { border-bottom: 1px solid var(--sx-line); }
.sx-faq details:first-of-type { border-top: 1px solid var(--sx-line); }
.sx-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; color: var(--sx-text); }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(var(--sx-text), var(--sx-text)) center/12px 1.5px no-repeat, linear-gradient(var(--sx-text), var(--sx-text)) center/1.5px 12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--sx-line-strong); transition: transform 0.4s var(--sx-ease-out), background-color 0.25s; }
.sx-faq details[open] summary::after { transform: rotate(135deg); }
.sx-faq summary:hover::after { background-color: #fff; }
.sx-faq summary:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 4px; border-radius: 8px; }
.sx-faq details p { margin: -6px 0 26px; max-width: 70ch; color: var(--sx-muted); font-size: 1.0625rem; line-height: 1.7; }
.sx-faq details a { color: var(--sx-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Closing panel over a light key field */
.sx-cta { position: relative; isolation: isolate; overflow: hidden; margin: clamp(96px, 11vw, 160px) var(--sx-inset) 0; border-radius: var(--sx-radius); background: #ecece8;
  min-height: clamp(480px, 50vw, 660px); display: grid; place-items: center; text-align: center; }
.sx-cta-3d { position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgba(11, 11, 11, 0.08) 1px, transparent 1.3px); background-size: 22px 22px; }
.sx-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 46% at 50% 50%, rgba(236, 236, 232, 0.94), rgba(236, 236, 232, 0.62) 58%, rgba(236, 236, 232, 0) 90%); }
.sx-cta-inner { padding: 72px var(--sx-gut); pointer-events: none; }
.sx-cta-inner .sx-actions, .sx-cta-inner a { pointer-events: auto; }
.sx-cta .sx-h2 { margin: 0 auto 18px; max-width: 14ch; font-size: clamp(2.5rem, 5.4vw, 4.75rem); }
.sx-cta p { color: var(--sx-muted); font-size: 1.125rem; margin: 0 0 34px; }
.sx-cta .sx-actions { justify-content: center; }

/* ---------- Long-form pages (guides, manual, legal) ------------------------ */
.site-main .guide-wrap, .site-main .manual, .site-main .pp-wrap, .site-main .tos-wrap { max-width: 840px; padding-top: clamp(56px, 8vw, 110px); }
.site-main .guide-wrap h1, .site-main .manual h1, .site-main .pp-wrap h1, .site-main .tos-wrap h1 {
  font-size: clamp(2.6rem, 6vw, 4.75rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--sx-text); text-wrap: balance; max-width: 16ch; }
.site-main .guide-wrap .lede, .site-main .manual .lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.6; color: var(--sx-muted); letter-spacing: -0.012em; }
.site-main .pp-wrap .meta, .site-main .tos-wrap .meta { display: inline-block; padding: 9px 16px; border-radius: 16px; background: var(--sx-paper); font-size: 0.875rem; color: var(--sx-muted); margin-bottom: 40px; line-height: 1.55; }
/* The reading column sits on a white card. */
.site-main .guide-body, .site-main .pp-body, .site-main .tos-body { position: relative; background: var(--sx-paper); border-radius: var(--sx-radius); padding: clamp(24px, 5vw, 60px); }
.site-main .guide-body, .site-main .pp-body, .site-main .tos-body, .site-main .manual { color: #3b3b38; font-size: 1.0625rem; line-height: 1.75; }
.site-main .guide-body h2, .site-main .pp-body h2, .site-main .tos-body h2, .site-main .manual h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; color: var(--sx-text); margin: 2.2em 0 0.7em; }
.site-main .guide-body h2:first-child, .site-main .pp-body h2:first-child, .site-main .tos-body h2:first-child { margin-top: 0; }
.site-main .pp-body h3, .site-main .manual h3 { font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.015em; color: var(--sx-text); }
.site-main .guide-body a, .site-main .pp-body a, .site-main .tos-body a, .site-main .manual a { color: var(--sx-blue); text-decoration-color: rgba(29, 84, 226, 0.35); text-underline-offset: 4px; }
.site-main .guide-body a:hover, .site-main .pp-body a:hover, .site-main .tos-body a:hover, .site-main .manual a:hover { text-decoration-color: currentColor; }
.site-main .guide-body strong, .site-main .pp-body strong, .site-main .tos-body strong { color: var(--sx-text); font-weight: 600; }
.site-main .guide-body code, .site-main .pp-body code, .site-main .tos-body code, .site-main .manual code { background: rgba(11, 11, 11, 0.06); color: var(--sx-text); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }
.site-main .guide-cta, .site-main .guide-wrap a.guide-cta { border-radius: 999px; min-height: 48px; padding: 0 24px; background: var(--sx-ink); color: #fff; }
.site-main .guide-related, .site-main .manual .related { border-top: 0; padding: 28px 32px; border-radius: var(--sx-radius-card); background: var(--sx-card); }
.site-main .manual .note, .site-main .manual .contents { border: 0; border-radius: var(--sx-radius-card); background: var(--sx-paper); }
.site-main .tos-beta { border-radius: var(--sx-radius-card); background: var(--sx-paper); border: 1px solid var(--sx-line-strong); }
.site-main .pp-body table, .site-main .guide-body table { border-collapse: separate; border-spacing: 0; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--sx-line); }
.site-main .pp-body th, .site-main .pp-body td { border: 0; border-bottom: 1px solid var(--sx-line); }
.site-main .pp-body tbody tr:last-child td { border-bottom: 0; }
.site-main .pp-body th, .site-main .guide-body th { background: #f3f3f0; color: var(--sx-text); }
/* Code inside dark blocks keeps the block's colors, not inline-code chips. */
.site-main .guide-body pre code, .site-main .pp-body pre code, .site-main .tos-body pre code, .site-main .manual pre code, html body .dx pre code {
  background: none !important; color: inherit !important; padding: 0 !important; border-radius: 0 !important; font-size: inherit; }

/* ---------- Code and tables never scroll sideways --------------------------- */
html body pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; overflow-x: visible; max-width: 100%; }
html body pre code { white-space: inherit; overflow-wrap: inherit; }
.site-main .guide-body pre, .site-main .manual pre, html body .dx pre { border-radius: 16px; background: var(--sx-night); color: #eceef2; padding: 20px 22px; line-height: 1.75; }
html body table { max-width: 100%; }
html body td, html body th { overflow-wrap: break-word; }
html body td code, html body th code { overflow-wrap: anywhere; }
html body .table-scroll { overflow-x: visible !important; }
html body .dx-table { display: table !important; overflow-x: visible !important; table-layout: auto; }
html body .dx-table th { white-space: normal !important; }
html body .ix-then .row { flex-wrap: wrap; overflow-x: visible !important; row-gap: 2px; }
html body .ix-then .row code, html body .ix-then .row .cmt { overflow-wrap: anywhere; min-width: 0; }
html body .dx-main code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
html body .dx-main pre code { white-space: pre-wrap; }
@media (max-width: 640px) {
  html body .table-scroll table, html body .dx-table { font-size: 0.8125rem; }
  html body .table-scroll th, html body .table-scroll td, html body .dx-table th, html body .dx-table td { padding: 10px 8px !important; }
  html body .dx-table { width: 100% !important; }
}

/* ---------- Cookie banner ----------------------------------------------------- */
html body #bm-cookie { background: var(--sx-paper) !important; border: 0 !important; color: var(--sx-muted) !important; font-size: 0.875rem !important;
  box-shadow: 0 0 0 1px rgba(11, 11, 11, 0.06), 0 24px 60px -20px rgba(0, 0, 0, 0.35) !important; animation: sx-cookie-in 0.6s var(--sx-ease-out) both; }
@keyframes sx-cookie-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: none; } }
@media (max-width: 480px) { html body #bm-cookie { padding: 14px 16px !important; font-size: 0.8125rem !important; } html body #bm-cookie > div:first-child { margin-bottom: 12px !important; } }

/* ---------- No little squares ------------------------------------------------- */
html body .eyebrow::before, html body .ix-eyebrow::before, html body h1.eyebrow::before, .product-eyebrow::before, .product-label::before { display: none !important; content: none !important; }
html body .brand .dot { display: none !important; }

/* ---------- Pricing (the page's own benmore.tech cards, larger type) ----------- */
html body:has(.tiers) .head { padding-top: clamp(72px, 10vw, 140px); }
html body:has(.tiers) .head h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.96; max-width: 12ch; }
html body:has(.tiers) .head h1 em { font-style: normal; }
html body:has(.tiers) .tier { border-radius: var(--sx-radius); }
html body:has(.tiers) .tier-badge { background: var(--sx-blue); border-color: var(--sx-blue); color: #fff; }
html body:has(.tiers) .tier-price .num { font-weight: 500; letter-spacing: -0.06em; }
html body:has(.tiers) .tcta { min-height: 48px; }
html body:has(.tiers) .feat { border-radius: var(--sx-radius-card); background: var(--sx-card); }
html body:has(.tiers) .feat-sec h2 { font-weight: 500; letter-spacing: -0.045em; }

/* ---------- Sign-in pages: the card over a dark key field ----------------------- */
html body:has(.auth-wrap) { background: var(--sx-ground); isolation: isolate; }
html body:has(.auth-wrap) .sx-auth-bg { position: fixed; inset: var(--sx-inset); z-index: -1; overflow: hidden; border-radius: var(--sx-radius); background: var(--sx-night);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.3px); background-size: 22px 22px; }
html body:has(.auth-wrap) .sx-auth-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 50% 50%, rgba(7, 9, 13, 0.6), rgba(7, 9, 13, 0) 80%); }
html body:has(.auth-wrap) .auth-top { padding-left: calc(var(--gutter, 24px) + var(--sx-inset)); padding-right: calc(var(--gutter, 24px) + var(--sx-inset)); margin-top: var(--sx-inset); }
html body:has(.auth-wrap) .auth-top-toggle { display: none; }
html body:has(.auth-wrap) .auth-top .auth-brand-text { color: #fff; }
html body:has(.auth-wrap) .auth-foot { border-top-color: var(--sx-night-line); margin: 0 var(--sx-inset) var(--sx-inset); padding-left: calc(var(--gutter, 24px)); padding-right: calc(var(--gutter, 24px)); }
html body:has(.auth-wrap) .auth-foot, html body:has(.auth-wrap) .auth-foot a { color: var(--sx-night-muted); }
html body:has(.auth-wrap) .auth-foot a:hover { color: #fff; }
/* The card is always light, whatever the theme setting. */
html body:has(.auth-wrap) .auth-card { color-scheme: light; --fg: #0b0b0b; --fg-muted: #5d5d59; --fg-subtle: #6d6d68; --bg: #f4f4f2; --bg-elevated: #ffffff; --bg-subtle: #f7f7f5; --bg-inset: #ececea;
  --border: rgba(11, 11, 11, 0.1); --border-strong: rgba(11, 11, 11, 0.18); --link: #1d54e2; --link-hover: #1846c4; --ink: #0b0b0b; --on-ink: #ffffff; --ink-hover: #262626; --focus-ring: #1d54e2; color: var(--fg); }
html body:has(.auth-wrap) .auth-card { border: 0; border-radius: var(--sx-radius); background: #fff; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06); }
html body:has(.auth-wrap) .auth-card h1 { font-weight: 500; letter-spacing: -0.04em; }
html body:has(.auth-wrap) .auth-meta, html body:has(.auth-wrap) .auth-meta a { color: var(--sx-night-muted); }

/* ---------- CLI page ------------------------------------------------------------- */
html body .ix-releases { text-align: center; margin: clamp(28px, 4vw, 44px) auto 0; }
html body .ix-releases p { display: inline-block; max-width: 760px; margin: 0; padding: 10px 18px; border-radius: 16px; font-size: 0.875rem; line-height: 1.55; color: var(--sx-muted); background: var(--sx-paper); }
html body .ix-releases a { color: var(--sx-text); text-decoration: underline; text-underline-offset: 3px; }
html body .ix-hero { padding-top: clamp(40px, 6vw, 80px); }
html body .ix-hero h1 { font-size: clamp(2.75rem, 6.2vw, 5.25rem); font-weight: 500; letter-spacing: -0.052em; line-height: 0.98; }
html body .ix-eyebrow { color: var(--sx-muted); font-weight: 400; font-size: 0.9375rem; }
html body .ix-cmd, html body .ix-then { border-radius: 16px; background: var(--sx-night); border-color: var(--sx-night); }
html body .ix-cmd code, html body .ix-then code, html body .ix-then .cmt { white-space: normal; overflow-wrap: anywhere; overflow-x: visible; }
html body .ix-cmd .dollar, html body .ix-then .dollar { color: #6f7685; }
html body .ix-term { border-radius: var(--sx-radius-card); background: var(--sx-night); border-color: var(--sx-night); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55); }
html body .ix-term-bar { background: transparent; border-bottom-color: var(--sx-night-line); }
html body .ix-term-bar i { background: #2c313b !important; }
html body .ix-term pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
html body .ix-copypage { border-radius: 999px; transition: background 0.25s; }

/* ---------- Docs ---------------------------------------------------------------- */
html body .dx-main h1 { font-weight: 500; letter-spacing: -0.045em; }
html body .dx-main h2 { font-weight: 500; letter-spacing: -0.03em; }
html body .dx-side a.active { background: var(--sx-ink); color: #fff; }
html body .dx-card { border-radius: 16px; transition: background-color 0.25s, border-color 0.25s; }
html body .dx-card:hover { border-color: var(--sx-line-strong); }
html body .dx-note { border-radius: 14px; background: var(--sx-card); border-color: transparent; }
html body .dx-code { border-radius: 16px; overflow: hidden; }

/* ---------- Guides index --------------------------------------------------------- */
.site-main .guide-wrap:has(> .guide-card) { max-width: 1120px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: sxg; }
.site-main .guide-wrap:has(> .guide-card) > :not(.guide-card) { grid-column: 1 / -1; max-width: 840px; }
.site-main .guide-wrap:has(> .guide-card) > .lede + .lede { margin-bottom: 24px; font-size: 1rem; color: var(--sx-soft); }
.site-main .guide-card { position: relative; margin: 0; padding: 30px 30px 72px; border: 0; border-radius: var(--sx-radius-card); counter-increment: sxg; background: var(--sx-card); transition: background-color 0.3s; }
.site-main .guide-card::before { content: counter(sxg, decimal-leading-zero); display: block; margin-bottom: 26px; font-size: 0.875rem; color: var(--sx-soft); font-variant-numeric: tabular-nums; }
.site-main .guide-card::after { content: "\2197"; position: absolute; left: 30px; bottom: 26px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem;
  border: 1px solid var(--sx-ink); color: var(--sx-ink); transition: background-color 0.25s, color 0.25s; }
.site-main .guide-card:hover { background: var(--sx-card-hover); }
.site-main .guide-card:hover::after { background: var(--sx-ink); color: #fff; }
.site-main .guide-card h2 { font-weight: 500; font-size: 1.375rem; letter-spacing: -0.025em; }
.site-main .guide-card:focus-visible { outline: 2px solid var(--sx-blue); outline-offset: 4px; }
@media (max-width: 760px) { .site-main .guide-wrap:has(> .guide-card) { grid-template-columns: 1fr; } }

/* ---------- Responsive ------------------------------------------------------------ */
@media (max-width: 1000px) {
  .sx-cards { grid-template-columns: 1fr; }
  .sx-cards.two { grid-template-columns: 1fr; }
  .sx-card, .sx-card.is-tall { min-height: 0; }
  .sx-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sx-section-head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .sx-chapters { grid-template-columns: 1fr; }
  .sx-js .sx-story:not(.is-static) { height: 340vh; }
  .sx-js .sx-story:not(.is-static) .sx-story-top { left: 22px; right: 22px; top: 20px; }
  .sx-js .sx-story:not(.is-static) .sx-story-skip { display: none; }
  .sx-js .sx-story:not(.is-static) .sx-chapters { left: 22px; right: 22px; top: 58px; translate: none; width: auto; }
  .sx-js .sx-story:not(.is-static) .sx-chapter-title { font-size: clamp(1.625rem, 6.4vw, 2.25rem); margin-bottom: 12px; }
  .sx-js .sx-story:not(.is-static) .sx-chapter p { font-size: 0.9375rem; margin-bottom: 16px; }
  .sx-js .sx-story:not(.is-static) .sx-files { gap: 8px; }
  .sx-js .sx-story:not(.is-static) .sx-files div { padding-top: 8px; }
  .sx-js .sx-story:not(.is-static) .sx-files dt code, .sx-js .sx-story:not(.is-static) .sx-files dd { font-size: 0.8125rem; }
  .sx-js .sx-story:not(.is-static) .sx-story-nav { left: 22px; right: 22px; bottom: 18px; gap: 16px; font-size: 0.8125rem; }
  .sx-story-hint { display: none; }
}
@media (max-width: 560px) {
  :root { --sx-inset: 8px; }
  .sx-hero-inner { padding-top: 88px; padding-bottom: 88px; }
  .sx-hero .sx-actions, .sx-cta .sx-actions { flex-direction: column; align-items: stretch; }
  .sx-hero .sx-actions a.sx-btn, .sx-cta .sx-actions a.sx-btn { width: 100%; }
  .sx-hero-foot { display: none; }
  .sx-card { padding: 26px 22px 24px; }
  .sx-faq summary { font-size: 1.0625rem; padding: 22px 0; }
  .site-main .guide-body, .site-main .pp-body, .site-main .tos-body { border-radius: 20px; }
}

/* ---------- Reduced motion and print ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .sx-window .caret, html body #bm-cookie { animation: none !important; }
  .sx-js [data-reveal] { opacity: 1 !important; translate: none !important; transition: none !important; }
  .sx-key, a.sx-btn, a.sx-btn .sx-arrow, .sx-arrow { transition: none !important; }
}
@media print {
  .sx-js [data-reveal] { opacity: 1 !important; translate: none !important; }
  .sx-hero-3d, .sx-cta-3d, .sx-auth-bg, .sx-story canvas { display: none !important; }
  .sx-js .sx-story:not(.is-static) { height: auto; }
  .sx-js .sx-story:not(.is-static) .sx-story-pin { position: relative; height: auto; }
}
