/* ===================== SELL ON SIGRIX — landing =====================
 * Ported from Sigrix_new/Site - Sell.html (#sx-sell-css). The shared `sx`
 * design system (tokens, buttons, hero bg/grid, eyebrow, container) lives in
 * sx-home.css; this file only adds the sell-specific `.sl-*` layer.
 *
 * Theme convention: the live app is light-by-default (`.sx`) with dark
 * overrides under `[data-theme="dark"]`, the inverse of the standalone
 * prototype. Token-driven rules adapt automatically; the few hard-coded
 * shadow/accent rules below carry the light value as their base and move the
 * dark value into a `[data-theme="dark"]` override.
 *
 * The hero opts into full-bleed via the shared `.sx-bleed` utility class in
 * the template — the viewport breakout is declared only in sx-home.css and
 * must never be re-declared here (tests/test_sx_bleed_breakout_contract.py). */
.sl-page { --sl-mint: var(--sx-accent); }

/* ---------- Hero ---------- */
.sl-hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.sl-hero .sx-container { position: relative; }
.sl-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.sl-hero-eyebrow .d {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sx-brand-3); box-shadow: 0 0 0 4px rgba(61,77,255,0.16);
}

/* Calculator-led: two columns. */
.sl-hero-grid2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.sl-hero h1 {
  font-size: 60px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02;
  max-width: 16ch;
}
.sl-hero h1 .accent { color: var(--sx-brand); }
[data-theme="dark"] .sl-hero h1 .accent { color: var(--sx-brand-3); }
.sl-hero-lede { margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--sx-text-2); max-width: 52ch; }
.sl-hero-actions { margin-top: 30px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sl-hero-proof {
  margin-top: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  font-size: 13px; color: var(--sx-text-3);
}
.sl-hero-proof .item { display: inline-flex; align-items: center; gap: 8px; }
.sl-hero-proof .item svg { color: var(--sx-brand-3); flex-shrink: 0; }
.sl-hero-proof .sep { width: 1px; height: 14px; background: var(--sx-line-2); }

/* ways-to-sell chip row */
.sl-hero-ways { margin-top: 26px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sl-hero-ways .lbl { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sx-text-3); font-weight: 600; margin-right: 2px; }
.sl-hero-ways .chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--sx-text-2);
  background: var(--sx-surface); box-shadow: 0 0 0 1px var(--sx-line) inset;
  transition: color 140ms, box-shadow 140ms, transform 140ms;
}
.sl-hero-ways .chip:hover { color: var(--sx-text); box-shadow: 0 0 0 1px var(--sx-line-2) inset; transform: translateY(-1px); }
.sl-hero-ways .chip .dot { width: 7px; height: 7px; border-radius: 50%; }

/* hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .sl-hero .sl-hero-grid2 > div { animation: slFadeUp 0.7s cubic-bezier(0.2,0.7,0.2,1) both; }
  .sl-hero .sl-hero-calcwrap { animation-delay: 0.12s; }
}
@keyframes slFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Calculator ---------- */
.sl-calc {
  background: var(--sx-surface);
  border-radius: var(--sx-r-xl);
  box-shadow: 0 0 0 1px var(--sx-line) inset, 0 30px 60px -34px rgba(14,19,32,0.22), 0 0 60px -30px rgba(61,77,255,0.30);
  padding: 26px 26px 24px;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .sl-calc { box-shadow: 0 0 0 1px var(--sx-line) inset, 0 36px 70px -34px rgba(0,0,0,0.78), 0 0 70px -26px rgba(61,77,255,0.40); }
.sl-calc::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 200px at 100% 0%, rgba(61,77,255,0.18), transparent 62%);
}
.sl-calc::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--sx-brand-3), transparent);
  opacity: 0.7;
}
.sl-calc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.sl-calc-head .t { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--sx-text); }
.sl-calc-head .t .sub { display: block; font-size: 11.5px; color: var(--sx-text-3); font-weight: 500; margin-top: 2px; }

/* segmented rate toggle */
.sl-seg {
  display: inline-flex; padding: 3px; gap: 3px;
  background: var(--sx-bg); border-radius: 999px;
  box-shadow: 0 0 0 1px var(--sx-line) inset;
}
.sl-seg button {
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--sx-text-3);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 120ms, background 120ms, box-shadow 120ms;
}
.sl-seg button[aria-pressed="true"] {
  color: var(--sx-brand-ink);
  background: linear-gradient(135deg, var(--sx-brand-3) 0%, var(--sx-brand-2) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset;
}
.sl-seg button[aria-pressed="true"].is-standard {
  background: var(--sx-surface-2); color: var(--sx-text);
  box-shadow: 0 0 0 1px var(--sx-line-2) inset;
}

.sl-calc-controls { margin-top: 22px; display: grid; gap: 20px; position: relative; }
.sl-ctrl-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sl-ctrl-head .lbl { font-size: 13px; color: var(--sx-text-2); font-weight: 500; }
.sl-ctrl-head .val {
  font-family: var(--sx-font-mono); font-variant-numeric: tabular-nums;
  font-size: 16px; font-weight: 500; color: var(--sx-text); letter-spacing: -0.01em;
}
.sl-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px;
  /* base.css applies `min-height: 44px` to every <input>; reset it here so the
   * range track keeps the 6px height ported from the prototype instead of
   * ballooning into a tall filled box. The standalone design has no global
   * input min-height, which is why the prototype renders the thin track. */
  min-height: 0;
  background: var(--sx-line); outline: none; cursor: pointer;
}
.sl-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sx-brand-3);
  box-shadow: 0 0 0 4px rgba(61,77,255,0.18), 0 1px 3px rgba(0,0,0,0.4);
  cursor: pointer; transition: box-shadow 120ms, transform 80ms;
}
.sl-range::-webkit-slider-thumb:active { transform: scale(0.94); }
.sl-range::-moz-range-thumb {
  width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: var(--sx-brand-3); box-shadow: 0 0 0 4px rgba(61,77,255,0.18);
  cursor: pointer;
}
.sl-range-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--sx-text-3); font-family: var(--sx-font-mono); }

/* product type pills inside calculator */
.sl-typepick { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-typepick button {
  height: 30px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--sx-text-2);
  background: var(--sx-bg); box-shadow: 0 0 0 1px var(--sx-line) inset;
  display: inline-flex; align-items: center; gap: 7px; transition: color 120ms, box-shadow 120ms, background 120ms;
}
.sl-typepick button .dot { width: 7px; height: 7px; border-radius: 50%; }
.sl-typepick button[aria-pressed="true"] { color: var(--sx-text); background: var(--sx-surface-2); box-shadow: 0 0 0 1px var(--sx-line-2) inset; }

/* result */
.sl-calc-result {
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--sx-line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative;
}
.sl-result-cell .k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sx-text-3); font-weight: 600; }
.sl-result-cell .v {
  margin-top: 8px; font-family: var(--sx-countdown-font);
  font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -0.03em; line-height: 1;
}
.sl-result-cell.primary .v {
  font-size: 54px;
  color: transparent;
  background: linear-gradient(135deg, var(--sx-brand-3) 0%, var(--sx-brand) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.sl-result-cell .v.small { font-size: 28px; color: var(--sx-text); }
.sl-result-cell .meta { margin-top: 8px; font-size: 12px; color: var(--sx-text-3); }
.sl-result-cell .meta b { color: var(--sx-text-2); font-weight: 600; font-family: var(--sx-font-mono); }
.sl-calc-foot { margin-top: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; }
.sl-calc-note { font-size: 12px; color: var(--sx-text-3); line-height: 1.5; }

/* ---------- Section scaffold ---------- */
.sl-section { margin-top: 88px; }
.sl-section-head { max-width: 60ch; }
.sl-section-head h2 { font-size: 34px; font-weight: 600; letter-spacing: -0.025em; margin-top: 12px; line-height: 1.06; }
.sl-section-head .sub { color: var(--sx-text-2); font-size: 16px; margin-top: 14px; line-height: 1.55; }
/* colored eyebrow dot, applied across all section heads for rhythm */
.sl-section-head .sx-eyebrow, .sl-faq-aside .sx-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.sl-section-head .sx-eyebrow::before, .sl-faq-aside .sx-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sx-brand-3); box-shadow: 0 0 0 4px rgba(61,77,255,0.14);
}

/* scroll reveal — base visible (no-JS / print safe); hidden only once JS arms it */
@media (prefers-reduced-motion: no-preference) {
  .sl-page.has-reveal .sl-section, .sl-page.has-reveal .sl-cta {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2,0.7,0.2,1);
  }
  .sl-page.has-reveal .sl-section.in, .sl-page.has-reveal .sl-cta.in { opacity: 1; transform: none; }
}

/* ---------- Keep / commission ---------- */
.sl-keep { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; margin-top: 36px; }
.sl-keep-bar {
  position: relative; height: 64px; border-radius: var(--sx-r-md); overflow: hidden;
  display: flex; box-shadow: 0 0 0 1px var(--sx-line) inset;
}
.sl-keep-bar .you { background: linear-gradient(135deg, var(--sx-brand-3) 0%, var(--sx-brand-2) 100%); box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset; }
.sl-keep-bar .fee { background: var(--sx-surface-2); }
@media (prefers-reduced-motion: no-preference) {
  .sl-page.has-reveal .sl-keep-bar .you { flex-grow: 0; }
  .sl-page.has-reveal .sl-section.in .sl-keep-bar .you { animation: slGrow 1.1s cubic-bezier(0.2,0.7,0.2,1) forwards; }
}
@keyframes slGrow { from { flex-grow: 0.001; } to { flex-grow: 85; } }
.sl-keep-bar > div { display: flex; align-items: center; padding: 0 18px; font-size: 14px; font-weight: 600; color: #fff; }
.sl-keep-bar .fee { color: var(--sx-text-2); justify-content: flex-end; }
.sl-keep-list { display: grid; gap: 20px; }
.sl-keep-list .row { display: flex; gap: 14px; align-items: flex-start; }
.sl-keep-list .row .ico {
  flex: none; width: 30px; height: 30px; border-radius: 8px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(61,77,255,0.10); color: var(--sx-brand-3);
  box-shadow: 0 0 0 1px rgba(61,77,255,0.22) inset;
}
.sl-keep-list .row .t { font-size: 15px; font-weight: 600; color: var(--sx-text); letter-spacing: -0.005em; }
.sl-keep-list .row .d { font-size: 13.5px; color: var(--sx-text-2); line-height: 1.5; margin-top: 3px; }
.sl-keep-list .row .d b { color: var(--sx-text); font-weight: 600; }

/* ---------- What you can sell ---------- */
.sl-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.sl-type {
  position: relative; background: var(--sx-surface); border-radius: var(--sx-r-lg);
  box-shadow: 0 0 0 1px var(--sx-line) inset; padding: 22px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 184px;
  transition: box-shadow 160ms, transform 160ms, background 160ms;
}
.sl-type:hover { box-shadow: 0 0 0 1px var(--sx-line-2) inset, 0 16px 36px -22px rgba(14,19,32,0.16); transform: translateY(-2px); }
[data-theme="dark"] .sl-type:hover { box-shadow: 0 0 0 1px var(--sx-line-2) inset, 0 16px 36px -22px rgba(0,0,0,0.7); }
.sl-type::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc, var(--sx-brand)); opacity: 0.9; z-index: 1; }
.sl-type::after {
  content: ""; position: absolute; right: -36px; top: -36px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--tc, #3D4DFF) 26%, transparent), transparent 70%);
  opacity: 0.55; pointer-events: none; transition: opacity 200ms;
}
.sl-type:hover::after { opacity: 0.9; }
.sl-type-top { display: flex; align-items: center; justify-content: space-between; }
.sl-type-ico {
  width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--tc, var(--sx-brand)); background: color-mix(in oklch, var(--tc, #3D4DFF) 14%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--tc, #3D4DFF) 28%, transparent) inset;
}
.sl-type-price { font-family: var(--sx-font-mono); font-size: 12px; color: var(--sx-text-3); }
.sl-type h3 { font-size: 17px; font-weight: 600; margin-top: 16px; letter-spacing: -0.01em; }
.sl-type p { font-size: 13.5px; color: var(--sx-text-2); line-height: 1.5; margin-top: 7px; flex: 1; }
.sl-type .ex { margin-top: 12px; font-size: 12px; color: var(--sx-text-3); font-family: var(--sx-font-mono); }

/* ---------- How it works ---------- */
.sl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; counter-reset: step; }
.sl-step {
  position: relative; padding: 24px 22px; border-radius: var(--sx-r-lg);
  background: var(--sx-surface); box-shadow: 0 0 0 1px var(--sx-line) inset;
}
.sl-step-num {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sx-font-mono); font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--sx-brand-3) 0%, var(--sx-brand-2) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 0 0 1px rgba(26,31,107,0.5);
}
.sl-step h3 { font-size: 16px; font-weight: 600; margin-top: 16px; letter-spacing: -0.005em; }
.sl-step p { font-size: 13.5px; color: var(--sx-text-2); line-height: 1.5; margin-top: 7px; }
.sl-step .arr { position: absolute; right: -10px; top: 36px; color: var(--sx-line-2); z-index: 1; }
.sl-step:last-child .arr { display: none; }

/* ---------- Comparison ---------- */
.sl-compare { margin-top: 36px; border-radius: var(--sx-r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--sx-line) inset; }
.sl-compare table { width: 100%; border-collapse: collapse; }
.sl-compare th, .sl-compare td { text-align: left; padding: 16px 20px; font-size: 14px; border-bottom: 1px solid var(--sx-line); }
.sl-compare thead th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sx-text-3); font-weight: 600; background: var(--sx-bg-2); }
.sl-compare thead th.sl-col-us { color: var(--sx-text); background: rgba(61,77,255,0.08); box-shadow: inset 0 2px 0 var(--sx-brand-3); }
.sl-compare tbody tr:last-child td { border-bottom: 0; }
.sl-compare .sl-feat { color: var(--sx-text-2); font-weight: 500; width: 38%; }
.sl-compare td.sl-col-us { background: rgba(61,77,255,0.05); color: var(--sx-text); font-weight: 500; }
.sl-compare td.sl-col-other { color: var(--sx-text-3); }
.sl-compare .sl-col-us .yes { display: inline-flex; align-items: center; gap: 8px; }
.sl-compare .sl-col-us .yes svg { color: var(--sx-ok); flex-shrink: 0; }
.sl-compare-head th.sl-col-us { position: relative; }
.sl-compare .sl-us-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em; color: var(--sx-text); text-transform: none;
}
.sl-compare .sl-us-badge .mk {
  width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg,#3D4DFF,#1A1F6B);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700;
}

/* ---------- FAQ ---------- */
.sl-faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; margin-top: 36px; }
.sl-faq-aside h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
.sl-faq-aside p { color: var(--sx-text-2); font-size: 14.5px; line-height: 1.6; margin-top: 14px; }
.sl-faq-aside p a { color: var(--sx-brand-3); }
.sl-faq-aside p a:hover { text-decoration: underline; }
.sl-faq-list { display: grid; gap: 0; }
.sl-faq-item { border-top: 1px solid var(--sx-line); }
.sl-faq-item:last-child { border-bottom: 1px solid var(--sx-line); }
.sl-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; text-align: left; cursor: pointer;
}
.sl-faq-q .q { font-size: 16px; font-weight: 600; color: var(--sx-text); letter-spacing: -0.01em; }
.sl-faq-chev { flex: none; color: var(--sx-text-3); transition: transform 200ms ease; }
.sl-faq-item.is-open .sl-faq-chev { transform: rotate(180deg); }
.sl-faq-a { overflow: hidden; max-height: 0; transition: max-height 240ms ease; }
.sl-faq-item.is-open .sl-faq-a { max-height: 320px; }
.sl-faq-a-inner { padding: 0 4px 22px; }
.sl-faq-a-inner p { font-size: 14.5px; color: var(--sx-text-2); line-height: 1.65; }
.sl-faq-a-inner p a { color: var(--sx-brand-3); }

/* ---------- Final CTA ---------- */
.sl-cta {
  margin-top: 88px; position: relative; overflow: hidden;
  border-radius: var(--sx-r-xl);
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(61,77,255,0.26), transparent 60%),
    radial-gradient(500px 240px at 0% 100%, rgba(26,31,107,0.22), transparent 60%),
    var(--sx-surface);
  box-shadow: 0 0 0 1px var(--sx-line) inset;
  padding: 56px 48px;
  text-align: center;
}
.sl-cta h2 { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; max-width: 18ch; margin: 0 auto; }
.sl-cta p { color: var(--sx-text-2); font-size: 17px; margin-top: 16px; max-width: 52ch; margin-inline: auto; line-height: 1.55; }
.sl-cta-actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sl-cta-foot { margin-top: 22px; font-size: 13px; color: var(--sx-text-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sl-hero-grid2 { grid-template-columns: 1fr; gap: 40px; }
  .sl-hero h1 { font-size: 46px; }
  .sl-keep { grid-template-columns: 1fr; gap: 28px; }
  .sl-types { grid-template-columns: repeat(2, 1fr); }
  .sl-steps { grid-template-columns: repeat(2, 1fr); }
  .sl-step .arr { display: none; }
  .sl-faq { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .sl-hero { padding: 56px 0 44px; }
  .sl-hero h1 { font-size: 36px; }
  .sl-types { grid-template-columns: 1fr; }
  .sl-steps { grid-template-columns: 1fr; }
  .sl-calc-result { grid-template-columns: 1fr; }
  .sl-result-cell.primary .v { font-size: 40px; }
  .sl-cta { padding: 40px 24px; }
  .sl-cta h2 { font-size: 30px; }
  .sl-section { margin-top: 72px; }
  .sl-compare th, .sl-compare td { padding: 12px 12px; font-size: 13px; }
}
