/* ============================================================
   TEIMOOR JAAFAR · sell.css
   Sell-your-watch page: process line, offer form, FAQ,
   reassurance band. Consumes tokens from css/style.css.
   ============================================================ */

/* ---------- 1. HERO ---------- */
.sellhero__actions {
  margin-top: clamp(28px, 3.4vw, 42px);
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px;
}

/* ---------- 2. PROCESS LINE (scroll-drawn hairline + igniting nodes) ---------- */
.process {
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(72px, 10vw, 150px) 0;
}
.process__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.process__title { font-size: clamp(30px, 4.6vw, 64px); }

.process__track { position: relative; margin-top: clamp(48px, 6vw, 84px); }

/* the hairline rail; the fill is scrubbed by JS (scaleX / scaleY) */
.process__rail {
  position: absolute; top: 6px; left: 0; right: 0; height: 1px;
  background: var(--line-soft); overflow: hidden;
}
.process__rail-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transform-origin: left center;
  /* no default transform: fully drawn for no-JS; JS sets scale 0 at runtime */
}

.process__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.process__node { position: relative; padding-top: 38px; }
.process__dot {
  position: absolute; top: 0; left: 1px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--muted-2); background: #fff;
  transition:
    background-color .5s var(--ease),
    border-color .5s var(--ease),
    box-shadow .5s var(--ease),
    transform .5s var(--ease);
}
.process__label {
  font-family: var(--sans); font-weight: 600;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone); line-height: 1.3;
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 10px;
}
.process__no {
  font-family: var(--serif); font-weight: 400; font-size: 13px;
  letter-spacing: 0; color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  transition: color .5s var(--ease);
}
.process__node p { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 26ch; }

/* ignition state, toggled by the scrubbed line */
.process__node.is-lit .process__dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(10, 186, 181, 0.14);
  transform: scale(1.15);
}
.process__node.is-lit .process__no { color: var(--accent-deep); }

/* vertical variant: line on the left, nodes stacked */
@media (max-width: 899px) {
  .process__rail {
    top: 8px; bottom: 8px; left: 6px; right: auto;
    width: 1px; height: auto;
  }
  .process__rail-fill {
    background: linear-gradient(180deg, var(--accent-deep), var(--accent));
    transform-origin: center top;
  }
  .process__steps { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 44px); }
  .process__node { padding: 0 0 0 40px; }
  .process__dot { top: 2px; left: 0; }
}

/* ---------- 3. OFFER FORM + WHY SELL TO US ---------- */
.offer {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(72px, 10vw, 150px) 0;
}
.offer__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(48px, 7vw, 110px); align-items: start;
}
.offer__title { font-size: clamp(28px, 3.6vw, 52px); margin: 6px 0 clamp(26px, 3vw, 40px); }

/* selects, styled to match the hairline .field inputs */
.field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--bone);
  background-color: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 30px 10px 0;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%237C7468' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 12px 8px;
  transition: border-color .4s var(--ease);
}
.field select:focus { outline: none; border-bottom-color: var(--accent); }

.offer__note { margin-top: 22px; font-size: 13.5px; color: var(--muted); line-height: 1.65; max-width: 44ch; }
.offer__note a {
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(10, 126, 122, 0.35);
  transition: border-color .4s var(--ease);
}
.offer__note a:hover { border-color: var(--accent-deep); }

/* why-sell pillars: quiet hairline rows */
.why { list-style: none; margin: 0; padding: 0; }
.why__item { padding: clamp(20px, 2.4vw, 30px) 0; border-top: 1px solid var(--line); }
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__item h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone); margin-bottom: 8px;
}
.why__item p { color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 46ch; }

.offer__trade {
  margin-top: clamp(26px, 3.2vw, 40px);
  color: var(--bone-2); font-size: 15px; line-height: 1.7; max-width: 48ch;
}
.offer__trade a {
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(10, 126, 122, 0.35);
  transition: border-color .4s var(--ease);
}
.offer__trade a:hover { border-color: var(--accent-deep); }

/* ---------- 4. FAQ (native details as hairline rows) ---------- */
.faq { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 10vw, 150px) var(--gutter); }
.faq__inner { max-width: 860px; }
.faq__title { font-size: clamp(28px, 4vw, 56px); margin-bottom: clamp(34px, 4.4vw, 56px); }

.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 2.6vw, 28px) 0;
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(17px, 1.8vw, 23px);
  color: var(--bone); line-height: 1.3;
  transition: color .35s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: none; }
.faq__q:hover { color: var(--accent-deep); }

/* thin plus that rotates to an x (transform on the icon only) */
.faq__icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; transition: transform .5s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--bone-2); }
.faq__icon::before { width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px; }
.faq__icon::after { width: 1.5px; height: 14px; margin: -7px 0 0 -0.75px; }
html.js .faq__item.is-open .faq__icon { transform: rotate(45deg); }
html.no-js .faq__item[open] .faq__icon { transform: rotate(45deg); }

.faq__a { overflow: hidden; }
.faq__a p {
  color: var(--bone-2); font-size: 15.5px; line-height: 1.75;
  max-width: 62ch; padding: 0 0 clamp(22px, 2.6vw, 30px);
}

/* ---------- 5. REASSURANCE BAND ---------- */
.reassure { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 10vw, 140px); }
.reassure__frame {
  position: relative;
  border: 1px solid var(--line);
  padding: clamp(48px, 7vw, 100px) clamp(24px, 5vw, 80px);
  text-align: center;
}
.reassure__frame::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid var(--line-soft); pointer-events: none;
}
.reassure__text {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 42px);
  line-height: 1.3; letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 26ch; margin: 0 auto;
}
.reassure__text em { color: var(--accent-deep); } /* no-JS parity with .word--em */

/* ---------- 6. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .offer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sellhero__actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .sellhero__actions .btn { width: 100%; }
}
