/*
 * Selling pages: the dashboard-edited sales sections a workshop page shows in
 * place of its tabs. Loaded only on those pages (see
 * Modules/Course/Resources/views/frontend/courses/selling.blade.php).
 *
 * Plain CSS on the storefront's own tokens (--navy, --step-*, --sp-*), so it
 * needs no build step and cannot change any other page.
 */

.sell { display: grid; gap: var(--sp-3); padding-block: var(--sp-4) var(--sp-6); }

.sell-band {
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
}
.sell-band--mist { background: var(--mist); border-color: transparent; }
.sell-band--navy {
  background: url('/assets/funnel/sky-field.svg') 50% 0 / 760px 620px, url('/assets/funnel/sky-wash-v2.jpg') center / cover var(--navy);
  border-color: transparent;
  color: var(--on-navy-soft);
}
.sell-band--navy .sell-h,
.sell-band--navy strong,
.sell-band--navy .sell-price { color: var(--on-navy); }

.sell-eyebrow {
  display: inline-block;
  margin: 0 0 var(--sp-1);
  padding: .2rem .85rem;
  border-radius: var(--r-pill);
  background: var(--gold-wash);
  border: 1px solid var(--gold-line);
  color: var(--gold-deep);
  font-family: Alexandria, system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--step--1);
}
.sell-band--navy .sell-eyebrow { background: rgba(222, 175, 74, .12); border-color: rgba(222, 175, 74, .4); color: var(--gold); }

.sell-h {
  margin: 0 0 var(--sp-2);
  color: var(--ink);
  font-family: Alexandria, system-ui, sans-serif;
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1.35;
  text-wrap: balance;
}
.sell-h::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: .75rem;
  border-radius: 2px;
  background: var(--gold);
}
.sell-standfirst { margin: 0 0 var(--sp-2); font-size: var(--step-1); color: var(--ink-soft); }

.sell-band p { margin: 0 0 .6rem; max-width: 68ch; color: inherit; }
.sell-band strong { color: var(--ink); font-weight: 700; }

.sell-quote {
  font-family: Alexandria, system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink);
  margin-block: var(--sp-2) !important;
}
.sell-band--navy .sell-quote { color: var(--on-navy); }

.sell-ticks, .sell-numbered { margin: var(--sp-1) 0 var(--sp-2); padding: 0; }
.sell-ticks { list-style: none; display: grid; gap: .5rem; }
.sell-ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.sell-ticks li > svg { flex: 0 0 auto; width: 1.15em; height: 1.15em; margin-top: .3em; color: var(--green); }
.sell-band--navy .sell-ticks li > svg { color: var(--gold); }
.sell-numbered { padding-inline-start: 1.4rem; display: grid; gap: .5rem; }

.sell-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--sp-2);
  margin: var(--sp-2) 0;
}
.sell-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
}
.sell-card h3 { margin: 0 0 .35rem; color: var(--ink); font-family: Alexandria, system-ui, sans-serif; font-weight: 700; font-size: var(--step-1); }
.sell-card-n { margin: 0 0 .25rem !important; color: var(--blue); font-family: Alexandria, system-ui, sans-serif; font-weight: 700; font-size: var(--step--1); }

.sell-table-wrap { overflow-x: auto; margin: var(--sp-2) 0; }
.sell-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink-soft);
}
.sell-table th, .sell-table td { padding: .7rem 1rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.sell-table th { background: var(--navy); color: var(--on-navy); font-family: Alexandria, system-ui, sans-serif; font-weight: 700; }
.sell-table tr:last-child td { border-bottom: 0; }
.sell-table td.num { width: 3rem; color: var(--ink); font-weight: 700; }
.sell-table--compare td:first-child { color: var(--ink-soft); }
.sell-table--compare td:last-child { color: var(--ink); background: #F3FAF6; }

.sell-faq { display: grid; gap: .6rem; margin-top: var(--sp-2); }
.sell-faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.sell-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .95rem 1.1rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-family: Alexandria, system-ui, sans-serif;
  font-weight: 700;
}
.sell-faq summary::-webkit-details-marker { display: none; }
.sell-faq summary .chev { flex: 0 0 auto; transition: transform .2s var(--ease); }
.sell-faq details[open] summary .chev { transform: rotate(180deg); }
.sell-faq details > p { padding: 0 1.1rem; }
.sell-faq details > p:last-child { padding-bottom: 1rem; }

.sell-offer { text-align: center; }
.sell-offer .sell-h::after { margin-inline: auto; }
.sell-offer p { margin-inline: auto; }
.sell-offer .sell-ticks { max-width: 34rem; margin-inline: auto; text-align: start; }
.sell-price { margin: var(--sp-2) 0 .4rem; color: var(--ink); font-family: Alexandria, system-ui, sans-serif; font-weight: 800; font-size: var(--step-4); line-height: 1.1; }
.sell-buy { display: flex; justify-content: center; }
.sell-note { font-size: var(--step--1); }

.sell-cta { margin: var(--sp-3) 0 0; }

.sell-units { margin-top: var(--sp-2); }

@media (prefers-reduced-motion: reduce) {
  .sell-faq summary .chev { transition: none; }
}
