/* Why sell on Sigrix (/sell) — the page layer of the design repo's
 * `site/Site - Sell.html`, its `sl-page` style block, as `f00a88d` rebuilt it
 * on the clean pattern set.
 *
 * The page is built from the clean pattern set in css/sx-home.css, which the
 * shell bundle carries: `.hm-sec`, `.hm-head`, `.hm-eb`, `.hm-sub`, `.hm-act`,
 * `.hm-found`, `.hm-perks`, `.hm-seats`, `.hm-alt`, `.sx-tabs` (whose
 * pressed state is the commission switch's) and the walkthrough with its
 * slices. This sheet holds only what the prototype adds, every name `sl-`
 * (tests/test_page_stylesheet_class_collisions.py).
 * The layout /sell had before lives on in css/sx-sell-n8n.css for /sell/n8n,
 * whose `sl-*` names it shares and which never loads on this page.
 *
 * Inverted from the prototype the usual way: it authors at
 * data-theme="dark" on its `.sx` div, so every value here is a token that
 * each theme already resolves, and the one rule that differs by theme is a
 * `[data-theme="dark"]` override at the foot. Its `.sx` prefixes are gone:
 * they lifted its rules past its own `.sx p` / `.sx h3` / `.sx button`
 * resets, which here are `:where(.sx) …` at (0,0,1), so a class wins alone.
 * Its one-column tracks are `minmax(0, 1fr)`, never its bare `1fr`. Its
 * controls under 44px opt out of css/responsive.css's floor and take it back
 * under a coarse pointer, at the foot. */

/* Anchored sections clear the sticky top bar, and so does the guide card,
   which keeps the `#custom` anchor Custom solutions had here. */
.sl-page section[id], .sl-page article[id] { scroll-margin-top: 84px; }

/* ---------- Hero ----------
   `.sx-hero` with the prototype's `.hm-hero` rhythm, as Home v2's: 8px below,
   the next section's margin doing the rest. The wayfinder decides the top. */
.sl-hero { padding-bottom: 8px; }
.sl-hero h1 { text-wrap: balance; }
.sl-hero .lede { margin-top: 22px; line-height: 1.55; max-width: 56ch; }
@media (max-width: 720px) {
  .sl-hero h1 { font-size: 40px; }
}

/* A type's dot, in its canonical accent (tests/test_listing_type_colors.py).
   It sits beside the type's name, so it carries no meaning of its own. */
.sl-page .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.sl-page .dot--prompt     { background: var(--sx-lt-prompt, #5B7CFF); }
.sl-page .dot--persona    { background: var(--sx-lt-persona, #F5B454); }
.sl-page .dot--skill      { background: var(--sx-lt-skill, #56C2F0); }
.sl-page .dot--assistant  { background: var(--sx-lt-assistant, #B48CFF); }
.sl-page .dot--agent      { background: var(--sx-lt-agent, #F47B7B); }
.sl-page .dot--crew       { background: var(--sx-lt-crew, #9B8CFF); }
.sl-page .dot--product    { background: var(--sx-lt-product, #EC6AB8); }
.sl-page .dot--mcp_server { background: var(--sx-lt-mcp_server, #4F46E5); }
.sl-page .dot--system     { background: var(--sx-lt-system, #EA580C); }

/* ---------- The math ---------- */
.sl-calc {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  border-radius: var(--sx-r-lg);
  background: var(--sx-surface);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
}
.sl-calc-in { display: grid; align-content: start; gap: 32px; padding: 28px; }
.sl-calc-out { display: flex; flex-direction: column; padding: 28px; border-left: 1px solid var(--sx-line); }
.sl-ctrl-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sl-ctrl-h .l { font-size: 13.5px; font-weight: 500; color: var(--sx-text); }
.sl-ctrl-h .v {
  font-family: var(--sx-font-mono); font-size: 15px; font-weight: 500;
  color: var(--sx-text); font-variant-numeric: tabular-nums;
}
.sl-ctrl-h .t { font-size: 12.5px; color: var(--sx-text-3); }
.sl-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-pick button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; min-height: 0; padding: 0 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  font-size: 13px; font-weight: 500; color: var(--sx-text-2);
  transition: color .12s, box-shadow .12s, background .12s;
}
.sl-pick button:hover { color: var(--sx-text); box-shadow: 0 0 0 1px var(--sx-line-2) inset; }
.sl-pick button[aria-pressed="true"] {
  background: var(--sx-bg); color: var(--sx-text);
  box-shadow: 0 0 0 1px var(--sx-line-2) inset;
}
.sl-pick .dot { width: 7px; height: 7px; }
/* The track fills to the thumb through `--p`, which the calculator's script
   sets; a style attribute would be refused by the page's CSP. */
.sl-range {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 4px; min-height: 0; margin: 7px 0;
  border-radius: 2px;
  background: linear-gradient(to right, var(--sx-text-3) var(--p, 0%), var(--sx-line) var(--p, 0%));
  outline: none; cursor: pointer;
}
.sl-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sx-text); box-shadow: 0 0 0 4px var(--sx-surface); cursor: pointer;
}
.sl-range::-moz-range-thumb {
  width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: var(--sx-text); box-shadow: 0 0 0 4px var(--sx-surface); cursor: pointer;
}
.sl-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--sx-surface), 0 0 0 6px var(--sx-brand-3); }
.sl-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--sx-surface), 0 0 0 6px var(--sx-brand-3); }
.sl-ticks {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-family: var(--sx-font-mono); font-size: 11px; color: var(--sx-text-3);
}
.sl-big {
  margin-top: 12px;
  font-size: 56px; font-weight: 600; letter-spacing: -0.035em; line-height: 1;
  color: var(--sx-text); font-variant-numeric: tabular-nums;
}
.sl-big--s { margin-top: 10px; font-size: 28px; letter-spacing: -0.025em; }
.sl-meta { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--sx-text-3); }
.sl-meta b { font-family: var(--sx-font-mono); font-weight: 500; color: var(--sx-text-2); }
.sl-year { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--sx-line); }
.sl-calc-act { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; padding-top: 28px; }
.sl-calc-note { font-size: 12.5px; line-height: 1.5; color: var(--sx-text-3); }
@media (max-width: 900px) {
  .sl-calc { grid-template-columns: minmax(0, 1fr); }
  .sl-calc-out { border-left: 0; border-top: 1px solid var(--sx-line); }
}
@media (max-width: 560px) {
  .sl-calc-in, .sl-calc-out { padding: 22px 20px; }
  .sl-big { font-size: 44px; }
}

/* ---------- What you keep ---------- */
.sl-perks b { display: block; margin-bottom: 4px; }
.sl-split-l { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.sl-split-l b { font-weight: 600; color: var(--sx-text); }
.sl-split-l span { font-family: var(--sx-font-mono); font-size: 12px; color: var(--sx-text-3); }
/* Drawn as two SVG bars the server sizes from the rate. */
.sl-split { height: 8px; margin-top: 12px; border-radius: 999px; overflow: hidden; }
.sl-split svg { display: block; width: 100%; height: 100%; }
.sl-split .you { fill: var(--sx-brand); }
.sl-split .fee { fill: var(--sx-line-2); }
.sl-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sx-line);
  font-size: 13px; line-height: 1.55; color: var(--sx-text-2); text-wrap: pretty;
}

/* ---------- What you can sell ---------- */
.sl-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sl-type {
  display: flex; flex-direction: column;
  padding: 20px 20px 18px;
  border-radius: var(--sx-r-lg);
  background: var(--sx-surface);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
}
.sl-type-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sl-type h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
}
.sl-type-h .p { font-family: var(--sx-font-mono); font-size: 12px; color: var(--sx-text-3); white-space: nowrap; }
.sl-type p { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--sx-text-2); text-wrap: pretty; }
.sl-type-f {
  margin-top: auto; padding-top: 18px;
  font-family: var(--sx-font-mono); font-size: 12px; line-height: 1.5; color: var(--sx-text-3);
}
.sl-type--guide { background: transparent; }
/* Its two links, as wide as their words, at the foot of the card (b427825). */
.sl-type-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 18px; }
@media (max-width: 1040px) { .sl-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sl-types { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Why Sigrix ---------- */
.sl-cmp { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.sl-cmp th, .sl-cmp td {
  padding: 16px 24px 16px 0; text-align: left; vertical-align: top;
  font-weight: 400; border-top: 1px solid var(--sx-line);
}
.sl-cmp thead th, .sl-cmp thead td {
  padding-top: 0; padding-bottom: 12px; border-top: 0;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--sx-text-3);
}
.sl-cmp thead .us { color: var(--sx-text); }
.sl-cmp tbody tr:last-child > * { border-bottom: 1px solid var(--sx-line); }
.sl-cmp tbody th { width: 38%; color: var(--sx-text-2); font-weight: 500; }
.sl-cmp td { color: var(--sx-text-3); }
.sl-cmp td.us { color: var(--sx-text); font-weight: 500; }
@media (max-width: 600px) {
  .sl-cmp { font-size: 13px; }
  .sl-cmp th, .sl-cmp td { padding-right: 12px; }
}

/* ---------- FAQ ----------
   Every answer is open until the script runs: it marks the list `is-ready`,
   and only then do the closed ones collapse, so a page without JavaScript
   shows every answer rather than six it cannot open. A closed answer is
   `visibility: hidden` once its row has finished closing, which takes it out
   of the tab order and the accessibility tree as well as out of sight. */
.sl-faq { max-width: 820px; border-top: 1px solid var(--sx-line); }
.sl-faq-i { border-bottom: 1px solid var(--sx-line); }
.sl-faq-q {
  width: 100%;
  display: flex; align-items: center; gap: 24px;
  padding: 20px 4px;
  text-align: left;
  font-size: 16px; font-weight: 500; color: var(--sx-text);
  transition: color .12s;
}
.sl-faq-q:hover { color: var(--sx-brand); }
.sl-faq-q .q { flex: 1; letter-spacing: -0.01em; line-height: 1.4; }
.sl-faq-chev { flex: none; color: var(--sx-text-3); transition: transform .26s cubic-bezier(.16, 1, .3, 1), color .14s; }
.sl-faq-i.is-open .sl-faq-chev { transform: rotate(180deg); color: var(--sx-text); }
.sl-faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .28s cubic-bezier(.16, 1, .3, 1); }
.sl-faq-a > div { overflow: hidden; transition: visibility 0s; }
.sl-faq.is-ready .sl-faq-i:not(.is-open) .sl-faq-a { grid-template-rows: 0fr; }
.sl-faq.is-ready .sl-faq-i:not(.is-open) .sl-faq-a > div { visibility: hidden; transition: visibility 0s .28s; }
.sl-faq-a p { padding: 0 48px 22px 4px; font-size: 14px; line-height: 1.65; color: var(--sx-text-2); text-wrap: pretty; }
@media (max-width: 560px) { .sl-faq-a p { padding-right: 4px; } }
@media (prefers-reduced-motion: reduce) {
  .sl-faq-chev, .sl-faq-a, .sl-faq-a > div { transition: none; }
}

/* ---------- Get started ---------- */
.sl-doors { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sl-foot { margin-top: 18px; font-size: 13px; color: var(--sx-text-3); }

/* ---------- Under a thumb ----------
   The 44px floor comes back for the controls above that opted out of it,
   declared after them so it wins under a coarse pointer. */
@media (pointer: coarse) {
  .sl-pick button { min-height: 44px; }
}

/* ---------- Dark ---------- */
[data-theme="dark"] .sl-faq-q:hover { color: var(--sx-brand-3); }
