/* /sell/n8n's page layer: the part of the layout /sell had before it moved onto
 * the clean pattern set (design repo, site/Site - Sell.html at f00a88d) that
 * /sell/n8n still renders. The rules moved here unchanged when /sell's sheet was
 * rewritten, less the ones for /sell's own sections (its calculator, type cards,
 * comparison table and scroll reveal), which no element on this page carries.
 * The two sheets share `sl-*` names that mean different things and never load
 * on the same page. tests/test_sell_page.py checks every `sl-*` class this
 * page's template uses is still dressed here.
 *
 * 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 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). */

/* ---------- Hero ---------- */
.sl-hero { position: relative; overflow: hidden; padding: 84px 0 64px; }
.sl-hero .sx-container { position: relative; }

/* The old hero's two columns; /sell/n8n fills only the first. */
.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-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); }

/* 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; }
}
@keyframes slFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 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; }
/* An inline link in a section's lede: the .sx reset leaves it the text's colour, and the brand ink is
   under 3:1 against that text in both themes, so it is underlined rather than told apart by colour. */
.sl-section-head .sub a { color: var(--sx-brand-3); text-decoration: underline; text-underline-offset: 3px; }
/* 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);
}

/* ---------- 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); }
.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; }

/* ---------- 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-faq { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .sl-hero { padding: 56px 0 44px; }
  .sl-hero h1 { font-size: 36px; }
  .sl-cta { padding: 40px 24px; }
  .sl-cta h2 { font-size: 30px; }
  .sl-section { margin-top: 72px; }
}
