/* Public marketing controls, inlined (they used to be imported, which made a second request, one after the other, before first paint). Keep in step with public-controls.css. */
a.btn,a.button,.landing-header a.header-info{transition:background-color .2s ease,border-color .2s ease,color .2s ease,transform .2s ease}
a.btn:hover,a.button:hover,.landing-header a.header-info:hover{transform:translateY(-2px)}
a.btn-primary:hover,a.button:not(.button-outline):not(.small):hover{background:#ffc77e;color:#0b0b0f}
a.btn-ghost:hover,a.button-outline:hover,a.button.small:hover,.landing-header a.header-info:hover{background:#241d16;border-color:#ffb454;color:#edeae3}
@media(prefers-reduced-motion:reduce){a.btn,a.button,.landing-header a.header-info{transition:background-color .2s ease,border-color .2s ease,color .2s ease}a.btn:hover,a.button:hover,.landing-header a.header-info:hover{transform:none}}

/* ==========================================================================
   Shared site chrome: the skip link, the announcement banner, the header and
   the footer. Every page loads this file, and the markup comes from
   marketing/partials/ (written into every page by marketing/build-chrome.mjs),
   so these rules are the only ones that style the chrome.

   The chrome carries its own copy of the theme tokens, scoped to its own
   roots, and sets its own type, so it looks the same on a page whose
   stylesheet uses other tokens or other base rules (the landing pages).
   Every rule is scoped to a chrome root for the same reason: a page's own
   `.wrap`, `.brand` or `a` rule must not reach in.
   ========================================================================== */
.skip-link,
.announce,
.site-head,
.site-foot {
  --rs-bg:              #0B0B0F;
  --rs-bg-alt:          #0F1015;
  --rs-surface:         #14161C;
  --rs-border:          #22252E;
  --rs-border-strong:   #5B6070;
  --rs-text-strong:     #EDEAE3;
  --rs-text:            #C6C9D1;
  --rs-text-muted:      #B2B6C2;
  --rs-accent:          #FFB454;
  --rs-accent-strong:   #FFC77E;
  --rs-accent-contrast: #0B0B0F;
  --rs-accent-tint:     rgba(255, 180, 84, 0.10);
  --rs-accent-line:     rgba(255, 180, 84, 0.34);
  --rs-focus:           #FFB454;
  --rs-font-sans: ui-sans-serif, system-ui, -apple-system, "SF Pro Text",
                  "Segoe UI Variable Text", "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;
  --rs-font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono",
                  "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --rs-text-xs:   0.75rem;
  --rs-text-sm:   0.8125rem;
  --rs-text-base: 0.9375rem;
  --rs-text-md:   1.0625rem;
  --rs-space-1:  0.25rem;
  --rs-space-2:  0.5rem;
  --rs-space-3:  0.75rem;
  --rs-space-4:  1rem;
  --rs-space-5:  1.5rem;
  --rs-space-6:  2rem;
  --rs-space-7:  2.5rem;
  --rs-space-8:  3rem;
  --rs-space-9:  4rem;
  --rs-radius-sm:   0.375rem;
  --rs-radius-pill: 999px;
  --rs-container: 86rem;
  --rs-rule: 1px;
  --rs-tap: 2.75rem;

  box-sizing: border-box;
  font-family: var(--rs-font-sans);
  font-size: var(--rs-text-md);
  line-height: 1.62;
  letter-spacing: normal;
  color: var(--rs-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:is(.announce, .site-head, .site-foot) *,
:is(.announce, .site-head, .site-foot) *::before,
:is(.announce, .site-head, .site-foot) *::after { box-sizing: border-box; }
:is(.announce, .site-head, .site-foot) p { margin: 0; text-wrap: pretty; }
.skip-link,
:is(.announce, .site-head, .site-foot) a { text-underline-offset: 0.22em; }
.site-head .nav-toggle { font: inherit; }

.skip-link:focus-visible,
:is(.announce, .site-head, .site-foot) :focus-visible {
  outline: 2px solid var(--rs-focus);
  outline-offset: 3px;
  border-radius: var(--rs-radius-sm);
}

/* The one container width, the same as the homepage's. */
:is(.announce, .site-head, .site-foot) > .wrap {
  width: 100%;
  max-width: var(--rs-container);
  margin: 0 auto;
  padding-inline: var(--rs-space-5);
}

/* ===================== skip link ===================== */
.skip-link {
  position: absolute;
  left: var(--rs-space-4);
  top: var(--rs-space-4);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  min-height: var(--rs-tap);
  padding: var(--rs-space-3) var(--rs-space-4);
  text-decoration: none;
  background: var(--rs-accent);
  color: var(--rs-accent-contrast);
  border-radius: var(--rs-radius-sm);
  font-weight: 650;
  transform: translateY(-160%);
}
.skip-link:focus,
.skip-link:focus-visible { transform: none; }

/* ===================== announcement =====================
   A complementary landmark rather than a bare div, so the announcement is
   inside a region like everything else on the page. It scrolls away with the
   page; the sticky header below it is what stays. */
.announce {
  background: var(--rs-bg-alt);
  border-bottom: var(--rs-rule) solid var(--rs-border);
}
.announce .announce-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 var(--rs-space-3);
  padding-block: var(--rs-space-1);
  font-size: var(--rs-text-sm);
  color: var(--rs-text);
  text-align: center;
}
/* The tag is a solid pill in the body face: small mono capitals with wide
   tracking on a hairline border rendered soft and pixelly at this size. */
.announce .announce-tag {
  padding: 0.15rem 0.6rem;
  border-radius: var(--rs-radius-pill);
  background: var(--rs-accent);
  color: var(--rs-accent-contrast);
  font-size: var(--rs-text-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.announce .announce-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--rs-tap);
  color: var(--rs-accent);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--rs-accent-line);
  text-underline-offset: 0.22em;
}
.announce .announce-link:hover { text-decoration-color: var(--rs-accent); }

/* ===================== header ===================== */
/* Above page content (landing demos use z-index up to 5) and below the docs
   drawer (55, 60) and the homepage screenshot lightbox (120). */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--rs-bg);
  background: color-mix(in srgb, var(--rs-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: var(--rs-rule) solid var(--rs-border);
}
.site-head > .wrap {
  display: flex;
  align-items: center;
  gap: var(--rs-space-5);
  min-height: 4rem;
}

.site-head .brand,
.site-foot .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--rs-space-3);
  color: var(--rs-text-strong);
  font-size: var(--rs-text-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  min-height: var(--rs-tap);
}
.site-head .brand img { display: block; flex: none; width: 32px; height: 30px; max-width: none; }
.site-foot .brand img { display: block; flex: none; width: 120px; height: 115px; max-width: none; }

.site-head .nav-links {
  display: flex;
  gap: var(--rs-space-2);
  margin-left: auto;
}
.site-head .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--rs-tap);
  padding-inline: var(--rs-space-3);
  color: var(--rs-text-muted);
  font-size: var(--rs-text-base);
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--rs-radius-sm);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.site-head .nav-links a:hover,
.site-head .nav-links a:focus-visible,
.site-head .nav-links a.active { color: var(--rs-accent); }

/* The dashboard button: a ghost button at the end of the link row. */
.site-head .nav-links a.btn {
  justify-content: center;
  gap: var(--rs-space-2);
  padding-block: var(--rs-space-1);
  border: var(--rs-rule) solid var(--rs-border-strong);
  background: transparent;
  font-weight: 650;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.site-head .nav-links a.btn:hover { background: #241d16; border-color: #ffb454; color: #edeae3; }
/* The landing header's Start free: the same button, filled. */
.site-head .nav-links a.btn.btn-primary { background: var(--rs-accent); border-color: var(--rs-accent); color: var(--rs-accent-contrast); }
.site-head .nav-links a.btn.btn-primary:hover { background: #ffc77e; border-color: #ffc77e; color: #0b0b0f; }
@media (prefers-reduced-motion: reduce) {
  .site-head .nav-links a.btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
}

/* Shared marketing navigation: all links remain available without JavaScript.
   The collapsed phone menu is keyed on `nav-js`, a class an inline script in each
   page's head puts on <html> before first paint, so the header is drawn collapsed
   from the start and the page does not jump when site-chrome.js arrives. With no
   JavaScript the class is never set and every link stays visible. */
.nav-toggle { display: none; }
/* The docs tree only exists in the mobile menu; the wide header stays one row of links. */
.nav-docs-row { display: contents; }
.nav-docs-toggle, .nav-docs-tree { display: none; }
@media (max-width: 68rem) {
  .site-head .wrap { flex-wrap: wrap; gap: 0; justify-content: space-between; }
  .site-head .nav-links { width: 100%; margin: 0; padding-block: 0.5rem 1rem; flex-direction: column; align-items: stretch; gap: 0.25rem; max-height: calc(100dvh - 4rem); overflow-y: auto; }
  .site-head .nav-links .nav-hide-sm { display: flex; }
  .site-head .nav-links a, .site-head .nav-links a.btn { min-height: 44px; padding: 0.65rem 0.75rem; }
  .nav-js .site-head .wrap { flex-wrap: nowrap; height: 4rem; }
  .nav-js .site-head .nav-links { position: absolute; top: 100%; left: 0; right: 0; box-sizing: border-box; padding-inline: var(--rs-space-5); background: var(--rs-bg); border-bottom: 1px solid var(--rs-border); box-shadow: 0 12px 24px var(--rs-accent-tint); }
  .nav-js .site-head .nav-links:not(.is-open) { display: none; }
  .nav-js .site-head .nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 44px; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid var(--rs-border-strong); border-radius: var(--rs-radius-sm); background: var(--rs-surface); color: var(--rs-text-strong); font: inherit; cursor: pointer; }
  .nav-js .site-head .nav-docs-row { display: flex; align-items: stretch; }
  .nav-js .site-head .nav-docs-row > a { flex: 1 1 auto; }
  .nav-docs-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--rs-radius-sm); background: none; color: var(--rs-text-muted); cursor: pointer; }
  .nav-docs-toggle:hover { color: var(--rs-text-strong); }
  .site-head .nav-docs-toggle:focus-visible { outline: 2px solid var(--rs-focus); outline-offset: -2px; }
  .nav-docs-toggle svg { width: 18px; height: 18px; transition: transform 0.15s ease; }
  .nav-docs-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav-docs-tree { display: block; margin: 0 0 0.25rem 0.75rem; padding: 0 0 0 0.25rem; list-style: none; border-left: 1px solid var(--rs-border); }
  .nav-docs-tree[hidden] { display: none; }
  .site-head .nav-links .nav-docs-tree a { display: flex; align-items: center; font-size: var(--rs-text-sm); }
  .site-head .nav-links .nav-docs-tree a[aria-current="page"] { color: var(--rs-accent); }
  .nav-docs-tree ul { margin: 0; padding: 0; list-style: none; }
  .nav-docs-group { display: block; padding: 0.75rem 0.75rem 0.25rem; font-size: var(--rs-text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rs-text-muted); }
  .nav-toggle svg { width: 20px; height: 20px; }
  .site-head .nav-toggle:focus-visible { outline: 2px solid var(--rs-focus); outline-offset: 3px; }
  .nav-toggle[aria-expanded="true"] .menu-lines { display: none; }
  .nav-toggle[aria-expanded="false"] .menu-close { display: none; }

  /* The landing header has no menu: its two buttons stay in the row, at the
     wide header's button size. Layout only; every colour and size is the
     main header's. */
  .site-head .nav-links.nav-links-cta,
  .nav-js .site-head .nav-links.nav-links-cta { position: static; display: flex; flex-direction: row; align-items: stretch; width: auto; margin: 0 0 0 auto; padding: 0; gap: var(--rs-space-2); max-height: none; overflow: visible; background: none; border: 0; box-shadow: none; }
  .site-head .nav-links.nav-links-cta a.btn { min-height: var(--rs-tap); padding: var(--rs-space-1) var(--rs-space-3); }
}
/* Below 24rem the brand and both buttons do not fit one row. More info goes
   to / like the brand does, so it is the one that steps aside; Start free stays. */
@media (max-width: 24rem) {
  .site-head .nav-links.nav-links-cta .nav-hide-xs { display: none; }
}

/* ===================== footer ===================== */
.site-foot {
  border-top: var(--rs-rule) solid var(--rs-border);
  padding-block: var(--rs-space-8) var(--rs-space-7);
  background: var(--rs-bg-alt);
}
.site-foot .foot-top {
  display: grid;
  gap: var(--rs-space-7);
}
.site-foot .foot-lore {
  margin-top: var(--rs-space-3);
  font-size: var(--rs-text-base);
  color: var(--rs-text-muted);
  max-width: 38ch;
}
/* Small-caps column labels: the same mono, uppercase, tracked treatment as the
   eyebrow labels on the pages, so the footer reads as one system. */
.site-foot .foot-col-heading {
  font-family: var(--rs-font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rs-text-strong);
  margin: 0 0 var(--rs-space-2);
}
.site-foot .foot-col-links { display: grid; }
.site-foot .foot-col-links a {
  display: flex;
  width: 100%;
  align-items: center;
  min-height: var(--rs-tap);
  color: var(--rs-text-muted);
  font-size: var(--rs-text-base);
  text-decoration: none;
}
.site-foot .foot-col-links a:hover { color: var(--rs-text-strong); }
.site-foot .foot-legal {
  margin-top: var(--rs-space-7);
  padding-top: var(--rs-space-5);
  border-top: var(--rs-rule) solid var(--rs-border);
  display: grid;
  gap: var(--rs-space-1);
  font-size: var(--rs-text-sm);
  color: var(--rs-text-muted);
}
.site-foot .foot-cols {
  display: grid;
  gap: var(--rs-space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 30rem) {
  .site-foot .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rs-space-5); }
}
@media (min-width: 64rem) {
  .site-foot .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--rs-space-5); }
}
@media (min-width: 48rem) {
  .site-foot .foot-top {
    grid-template-columns: minmax(13rem, 1fr) 3fr;
    gap: var(--rs-space-9);
    align-items: start;
  }
}

/* Footer newsletter sign-up. The button sits under the input and both fill
   the column, capped at 22rem so a wide column (the single-column phone
   footer, say) does not stretch them. */
.foot-news { margin-top: var(--rs-space-5); max-width: 22rem; }
.foot-news-label { display: block; font-size: var(--rs-text-base); color: var(--rs-text); margin-bottom: var(--rs-space-2); }
.foot-news-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--rs-space-2); }
.foot-news-input, .foot-news-btn { width: 100%; }
.foot-news-input { min-width: 0; min-height: var(--rs-tap, 44px); box-sizing: border-box; padding: 0 var(--rs-space-3); font: inherit; color: var(--rs-text); background: var(--rs-bg); border: 1px solid var(--rs-border); border-radius: 8px; }
.foot-news-input::placeholder { color: var(--rs-text-muted); }
.site-foot .foot-news-input:focus-visible, .site-foot .foot-news-btn:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 2px; border-radius: 8px; }
.foot-news-btn { min-height: var(--rs-tap, 44px); padding: 0 var(--rs-space-4); font: inherit; font-weight: 600; color: var(--rs-accent-contrast); background: var(--rs-accent); border: 0; border-radius: 8px; cursor: pointer; }
.foot-news-btn:hover { background: var(--rs-accent-strong); }
.foot-news-btn[disabled] { opacity: .6; cursor: progress; }
.site-foot .foot-news-status { margin: var(--rs-space-2) 0 0; min-height: 1.5em; font-size: var(--rs-text-sm, .875rem); color: var(--rs-text-muted); }
.foot-news-status[data-state="error"] { color: #FF8A80; }
.foot-news-status[data-state="ok"] { color: var(--rs-accent); }
.foot-news-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
