/* Sell your business page compositions. Components come from components.css. */

/* ================= hero ================= */
.sell-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: clamp(200px, 32vh, 320px);
  /* The aurora ends in white; if it ever falls short the gap must read white, not night.
     Soft, not a hard stop, so no edge can ever show through the aurora. */
  background: linear-gradient(var(--night) 50%, #fff 92%);
}
/* The aurora's white tail lands on the hero's bottom edge so the light process follows with no seam.
   Parallax is off here because moving the layer would lift that tail off the edge. */
.sell-hero__aurora { --aurora-top: 0px; --aurora-h: 106%; }
.sell-hero__aurora .aurora__layer { inset: 0; animation: none; }
.sell-hero__aurora .dots {
  --dots-mask: linear-gradient(to bottom, rgb(0 0 0 / .3), #000 45%, #000 70%, transparent 88%);
}
.sell-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sell-hero__title { margin-top: 28px; color: #fff; max-width: 16ch; }
/* "signed" has a descender: the clipped gradient must paint below the baseline too. */
.sell-hero__title .grad { padding-bottom: .14em; margin-bottom: -.14em; }
/* Nav theme bands. Siblings, not nested in another themed zone, so scrolling back up re-marks dark. */
.sell-zone { position: absolute; inset-inline: 0; pointer-events: none; }
.sell-zone--hero { top: 0; bottom: 17%; }
.sell-zone--tail { bottom: 0; height: 17%; }
/* The description is the largest hero paint, so it rises without fading or it becomes a late LCP. */
html.js .sell-hero__desc[data-hero] { opacity: 1; }
.sell-hero__desc {
  max-width: 34em;
  margin-top: 24px;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--on-night-74);
}
.sell-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 36px;
}
@media (min-width: 480px) {
  .sell-hero__actions { flex-direction: row; flex-wrap: wrap; width: auto; gap: 16px; }
}
@media (min-width: 768px) {
  .sell-hero {
    min-height: clamp(720px, 100svh, 960px);
    /* The copy block (about 360px) sits on the screen's centre line, never tighter than under the nav. */
    padding-top: max(var(--nav-h) + 56px, 50svh - 180px);
  }
  .sell-hero__inner { align-items: center; text-align: center; }
  .sell-hero__actions { justify-content: center; }
}
@media (min-width: 1024px) {
  .sell-hero__actions { gap: 20px; }
}

/* ================= process ================= */
.sell-process { padding-top: clamp(32px, 5vw, 72px); }
.sell-process .scrolly__list { margin-top: 8px; gap: 12px; }
.sell-process .scrolly__list li {
  font-size: var(--fs-body);
  line-height: 1.35;
  color: var(--ink-body);
}
.sell-process .scrolly__list i {
  display: grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font-size: .72em;
  translate: 0 .08em;
}
.sell-process .scrolly__top .t-title-row { font-size: var(--fs-title); }
.sell-process .scrolly__bottom .t-stat { letter-spacing: -0.02em; }
/* Unpinned, a big closing number reads as the start of the next step, so it sits small above the title, as on the home page. */
@media (max-width: 1023px), (max-height: 699px) {
  .sell-process .scrolly__text { gap: 10px; }
  .sell-process .scrolly__bottom { order: -1; flex-direction: row; align-items: baseline; gap: 8px; }
  .sell-process .scrolly__bottom :is(.t-stat, .t-stat-label) { font-size: var(--fs-body); font-weight: inherit; line-height: 1.2; letter-spacing: normal; }
  .sell-process .scrolly__bottom .t-stat { font-variant-numeric: tabular-nums; color: var(--ink); }
  .sell-process .scrolly__bottom .t-stat-label { color: var(--ink-muted); }
}
/* A stage-tall text box left the step number nearer the next title than its own bullets.
   Rows must stay equal height (above the tallest content), or the active row stops swapping at the gap midpoint.
   Padding each row out to a stage-tall band keeps the pinned stage centred on every step. */
@media (min-width: 1024px) and (min-height: 700px) {
  .sell-process .scrolly { --band-pad: calc((var(--stage-h) - 24rem) / 2); }
  .sell-process .scrolly__text { min-height: 24rem; }
  .sell-process .scrolly__row { padding-block: calc(var(--row-gap) / 2 + var(--band-pad)); }
  .sell-process .scrolly__row:first-child { padding-top: var(--band-pad); }
  .sell-process .scrolly__row:last-child { padding-bottom: var(--band-pad); }
}

/* ================= light to dark to light =================
   Each fade is as tall as home's AI gate, with the lower aurora squeezed so its white to night top 58% fits.
   The exit flips it like home, because the source's own lower tail reads as muddy mauve.
   No drift or parallax: either would lift the white edge off the neighbouring light section. */
.sell-fade {
  --band: clamp(560px, 70vw, 1040px);
  position: relative;
  height: calc(var(--band) * .3);
  overflow: clip;
  background: var(--night);
}
.sell-fade .sell-zone:first-child { top: 0; height: 45%; }
.sell-fade .sell-zone:nth-child(2) { top: 45%; bottom: 0; }
.sell-fade .aurora { --aurora-h: calc(var(--band) * .3 / .58); }
.sell-fade--out .aurora { --aurora-top: calc(100% - var(--aurora-h)); }
.sell-fade--out .aurora__img { transform: scale(-1, -1); }
.sell-fade .aurora__layer { inset: 0; animation: none; }
.sell-fade .aurora__img { animation: none; }
.sell-fade .dots { --dot: rgb(255 255 255 / .16); }
.sell-fade--in .dots { --dots-mask: linear-gradient(to bottom, transparent 30%, #000 60%, transparent); }
.sell-fade--out .dots { --dots-mask: linear-gradient(to bottom, transparent, #000 30%, transparent 70%); }

/* ================= services ================= */
.sell-services { padding-block: clamp(24px, 3vw, 48px); }
.sell-services .t-lead { color: var(--on-night-60); }
.nowrap { white-space: nowrap; }
.svc-grid {
  display: grid;
  gap: var(--gap-card);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.svc {
  gap: 14px;
  min-height: 100%;
  background:
    radial-gradient(120% 70% at 0% 0%, rgb(255 255 255 / .045), rgb(255 255 255 / 0) 60%),
    var(--night-card-2);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgb(255 255 255 / .14), rgb(255 255 255 / .03) 40%, rgb(255 255 255 / .02) 70%, rgb(255 255 255 / .08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .8;
  transition: opacity var(--dur-base) var(--ease-out-quart);
  pointer-events: none;
}
.svc__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 48px);
}
/* Icon leads; a Coming soon badge sits to its right edge. */
.svc__icon { order: -1; }
.svc__soon { margin-left: auto; }
.svc__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .1);
  color: #fff;
  font-size: 20px;
  transition: background-color var(--dur-base) var(--ease-out-quart);
}
.svc__soon {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-inline: 12px;
  border-radius: var(--r-pill);
  background: var(--glass-10);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16);
  color: var(--on-night-74);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.svc .t-body { font-size: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem); line-height: 1.5; }
.svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 14px 0 0;
  list-style: none;
}
.svc__tags .chip { height: 32px; background: var(--glass-08); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover::before { opacity: 1; }
  .svc:hover .svc__icon { background: var(--glass-10); }
}

/* ================= sectors ================= */
.sell-sectors { padding-top: clamp(40px, 5vw, 72px); }
.sector-grid {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sector {
  container-type: inline-size;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: var(--r-card);
  background: var(--surface-1);
}
.sector__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
}
.sector__text { display: grid; gap: 4px; min-width: 0; }
.sector__name { font-size: var(--fs-title-row); font-weight: 600; line-height: 1.2; letter-spacing: 0.005em; color: var(--ink-2); }
.sector__sub { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-muted-strong); }
@media (min-width: 768px) {
  .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-card); }
  .sector {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    min-height: clamp(184px, 15vw, 216px);
    padding: 28px;
  }
  .sector__icon { width: 48px; height: 48px; font-size: 22px; }
  .sector__text { gap: 8px; }
}
@container (max-width: 219px) { .sector__sub { display: none; } }
.sell-sectors__cta { display: flex; justify-content: center; margin-top: var(--block-gap); }

/* ================= FAQ ================= */
.sell-faq { padding-top: calc(var(--section-y) * .5); --anchor-skip: calc(var(--section-y) * .5); }
.sell-faq__grid { display: grid; gap: 40px; }
.sell-faq__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.sell-faq__head .t-sub { max-width: 30em; }
.sell-faq__head > p:last-child { margin-top: 8px; }
.sell-faq .faq-q { text-wrap: pretty; }
@media (min-width: 1024px) {
  .sell-faq__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
  .sell-faq__head { grid-column: 1 / 6; padding-right: clamp(0px, 3vw, 48px); gap: 30px; }
  .sell-faq__list { grid-column: 6 / 13; }
}

/* The process uses the homepage's step grounds: teal for the engagement, then the match and deal views. */
.sell-process .rv-laptop { background: radial-gradient(70% 70% at 100% 100%, rgb(0 185 173 / .2), rgb(0 185 173 / 0) 70%), linear-gradient(160deg, #d6f1ed, #eaf8f3 55%, #f8fdfb); }
