/* Sell your Sunreef: "Where would yours sit?" on the sea block, then calm reading sections,
   a five-point self-check and the form. Chart marks reuse .market-svg from site.css. */

/* the yacht sits on the right of the photo, so the words keep to the open water on the left */
.sell-hero h1 { max-width: 8ch; }
.sell-hero .lede { max-width: 31ch; }
.sell-hero-cta { margin-top: 8px; }
@media (min-width: 761px) {
  .sell-hero::after {
    background:
      linear-gradient(180deg, rgb(6 16 25 / .55) 0%, rgb(6 16 25 / 0) 24%),
      linear-gradient(90deg, rgb(6 16 25 / .62) 0%, rgb(6 16 25 / .28) 34%, rgb(6 16 25 / 0) 52%),
      linear-gradient(0deg, rgb(6 16 25 / .7) 0%, rgb(6 16 25 / 0) 45%);
  }
}

/* ---------- centrepiece ---------- */

.where { margin-top: 0; scroll-margin-top: var(--header-h); }
.where-head { display: grid; gap: 14px; max-width: 60ch; }
.where-head .lede { color: var(--ink-2); }
.where-size { margin-top: clamp(28px, 4vw, 44px); }
.where .field-label { color: var(--ink-2); }
.where-rail { margin-top: 4px; }
.where-rail button span { display: block; }
.where-rail button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--sky); }
.where-rail button[aria-pressed="true"] small { color: var(--ink-2); }

.where-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: 36px; align-items: start; }
.where-side { display: grid; gap: 26px; align-content: start; }

.where-year { display: grid; gap: 2px; }
.where-year .field-label { margin-bottom: 0; }
.where-year-out { font-family: var(--serif); font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem); line-height: 1; color: var(--ink); }
.where-range { width: 100%; margin: 14px 0 0; accent-color: var(--sky); height: 28px; cursor: pointer; }
.where-range:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }
.where-range-ends { display: flex; justify-content: space-between; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }

.where-price-box { position: relative; }
.where-price-box span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.where-price-box .input { padding-left: 30px; }
.where-price-read { color: var(--ink-2); margin-top: 8px; min-height: 1.4em; }
.where-price .input[aria-invalid="true"] { border-color: #ff8a7a; }

.where-summary { font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.7rem); line-height: 1.28; color: var(--ink-2); max-width: 30ch; }
.where-summary strong { font-weight: 400; color: var(--ink); }
.where-links { margin-top: -4px; }

.where-chart { margin: 0; display: grid; gap: 12px; min-width: 0; }
.where-chart .legend { color: var(--ink-2); }
.where-plot { position: relative; }
.where-svg { min-width: 0; width: 100%; }
.where-svg .axis-label, .where-svg .axis-title { fill: var(--muted); }
.where-band { fill: color-mix(in srgb, var(--sky) 11%, transparent); stroke: color-mix(in srgb, var(--sky) 30%, transparent); stroke-width: 1; rx: 4px; transition: transform .55s cubic-bezier(.16, 1, .3, 1), width .55s cubic-bezier(.16, 1, .3, 1); }
.lg-window { fill: color-mix(in srgb, var(--sky) 18%, transparent); stroke: color-mix(in srgb, var(--sky) 45%, transparent); }
.where-svg:not(.is-entering):not(.is-waiting) .dot.is-far { opacity: .42; }
.where-svg .dot.is-far:hover, .where-svg .dot.is-far:focus-visible { opacity: 1 !important; }

.yours, .yours-col { transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .3s ease; pointer-events: none; }
.yours.is-hidden, .yours-col.is-hidden { opacity: 0; visibility: hidden; }
.yours-mark { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.yours-halo { fill: none; stroke: var(--sky); stroke-width: 1.5; opacity: .7; }
.yours-col line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 4 4; }
.yours-label { font: 700 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .where-svg.is-waiting .dot { opacity: 0; transform: translateY(14px); }
  .where-svg.is-waiting .yours { opacity: 0; }
}

.where .tooltip { white-space: nowrap; }

@media (max-width: 960px) {
  .where-grid { grid-template-columns: minmax(0, 1fr); }
  .where-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
  .where-summary, .where-links { grid-column: 1 / -1; max-width: 46ch; }
}
@media (max-width: 600px) {
  .where-side { grid-template-columns: minmax(0, 1fr); }
  .where-rail button { min-width: 60px; }
}

/* ---------- the selling side ---------- */

.value { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.value-head h2 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem); line-height: 1.02; max-width: 12ch; }
.value-points { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.value-points li { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.value-points h3 { font-size: 1.4rem; }
.value-points p { color: var(--ink-2); max-width: 40ch; }
@media (max-width: 860px) {
  .value { grid-template-columns: minmax(0, 1fr); }
  .value-points { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- what sits behind it ---------- */

.behind { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.behind-photo { margin: 0; display: grid; gap: 10px; }
.behind-media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--line); }
.behind-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
.behind-media:hover img { transform: scale(1.03); }
.behind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; }
.behind-grid h3 { font-size: 1.35rem; margin-bottom: 8px; }
.behind-grid p { color: var(--ink-2); }
@media (max-width: 900px) {
  .behind { grid-template-columns: minmax(0, 1fr); }
  .behind-media { aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) { .behind-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- self-check ---------- */

.check { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.check-head { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
.check-head h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); line-height: 1.04; max-width: 14ch; }
.check-score { display: grid; gap: 10px; margin-top: 10px; }
.check-pips { display: flex; gap: 6px; }
.check-pips i { width: 34px; height: 8px; border-radius: 2px; background: var(--line); transition: background-color .3s ease; }
.check-pips i.is-ready { background: var(--sky-ink); }
.check-pips i.is-not { background: transparent; box-shadow: inset 0 0 0 1.5px var(--power); }
.check-count { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1.05; }
.check-note { color: var(--ink-2); max-width: 46ch; padding-top: 16px; border-top: 1px solid var(--line); }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; align-items: center; padding: 22px 0 22px 18px; border-top: 1px solid var(--line); position: relative; }
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 2px; background: var(--line); transition: background-color .3s ease; }
.check-list li[data-state="ready"]::before { background: var(--sky-ink); }
.check-list li[data-state="not"]::before { background: var(--power); }
.check-text { font-size: 1.075rem; color: var(--ink); max-width: 52ch; }
.check-link { display: block; margin-top: 6px; font-size: 0.875rem; font-weight: 600; color: var(--sky-ink); text-underline-offset: 3px; }
.check-seg button { min-height: 40px; min-width: 84px; }
.check-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) {
  .check { grid-template-columns: minmax(0, 1fr); }
  .check-head { position: static; }
}
@media (max-width: 520px) {
  .check-list li { grid-template-columns: minmax(0, 1fr); }
  .check-seg { justify-self: start; }
}

/* ---------- form ---------- */

.tell { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; padding-top: 40px; border-top: 1px solid var(--line); }
.tell-copy { display: grid; gap: 16px; }
.tell-copy h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); line-height: 1.04; }
.tell-from { color: var(--sky-ink); font-weight: 600; }
.tell-disclaimer { color: var(--muted); max-width: 44ch; }
.tell-form { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); }
@media (max-width: 860px) { .tell { grid-template-columns: minmax(0, 1fr); } }
