/* =========================================================
   Fund the Launch — needs store (launch.html)
   Uses the brand tokens from style.css
   ========================================================= */

.launch-hero{ padding-bottom: 36px; }
.launch-progress{
  max-width: 640px;
  margin: 30px auto 0;
  text-align: left;
}
.launch-progress-top{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.launch-progress-top strong{
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: .02em;
  color: var(--gold);
}
.launch-bar{
  height: 12px;
  border-radius: 999px;
  background: rgba(245,242,234,.1);
  overflow: hidden;
}
.launch-bar span{
  display: block;
  height: 100%;
  width: 0;
  min-width: 0;
  border-radius: 999px;
  background: var(--gold);
  transition: width .8s ease;
}

/* ---------- toolbar ---------- */
.launch-section{ padding: 56px 0 140px; }
.launch-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.chip-row{ display: flex; flex-wrap: wrap; gap: 8px; }
.chip{
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(245,242,234,.16);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover{ border-color: var(--gold); color: var(--gold); }
.chip.active{ background: var(--gold); border-color: var(--gold); color: var(--black); }
.toggle-line{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.toggle-line input{ accent-color: var(--gold); width: 18px; height: 18px; }

/* ---------- cards ---------- */
.needs-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.need-card{
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--charcoal-2);
  border: 1px solid rgba(245,242,234,.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.need-card:hover{ border-color: rgba(245,199,0,.4); transform: translateY(-2px); }
.need-media{
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.need-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
  transition: filter .3s ease, opacity .3s ease;
}
.need-fallback{
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(70% 90% at 50% 40%, rgba(245,199,0,.18), transparent 70%), var(--charcoal);
  color: var(--gold);
}
.need-media.no-img .need-fallback{ display: flex; }
.need-media.no-img img{ display: none; }
.need-badge{
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
}
.need-body{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  flex: 1;
}
.need-cat{
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.need-name{
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: .02em;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0;
  color: var(--text-light);
}
.need-desc{
  font-size: .92rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.need-link{
  align-self: flex-start;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,199,0,.35);
}
.need-link:hover{ border-bottom-color: var(--gold); }
.need-price{
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.need-price strong{
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--gold);
  letter-spacing: .02em;
}
.need-price span{ font-size: .84rem; color: var(--muted); }
.need-status{
  font-size: .84rem;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pips{ display: flex; flex-wrap: wrap; gap: 4px; }
.pip{
  width: 14px; height: 6px;
  border-radius: 3px;
  background: rgba(245,242,234,.14);
}
.pip.on{ background: var(--gold); }
.need-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.stepper{
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245,242,234,.2);
  border-radius: 999px;
  overflow: hidden;
}
.stepper button{
  width: 34px; height: 38px;
  border: 0;
  background: transparent;
  color: var(--text-light);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.stepper button:hover:not(:disabled){ background: rgba(245,199,0,.14); color: var(--gold); }
.stepper button:disabled{ opacity: .3; cursor: default; }
.stepper input{
  width: 52px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--text-light);
  text-align: center;
  font: inherit;
  font-weight: 600;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.add-btn{ flex: 1; min-width: 130px; justify-content: center; padding: 11px 18px; font-size: .92rem; }
.add-btn.in-cart{ background: transparent; color: var(--gold); border: 1px solid var(--gold); }

/* ---------- paid for ---------- */
.need-card.is-paid{ border-color: rgba(245,242,234,.06); }
.need-card.is-paid:hover{ transform: none; border-color: rgba(245,242,234,.06); }
.need-card.is-paid .need-media img{ filter: grayscale(1); opacity: .45; }
.need-card.is-paid .need-name{ text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--gold); color: var(--muted); }
.need-card.is-paid .need-desc,
.need-card.is-paid .need-price{ opacity: .45; }
.paid-ribbon{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.paid-ribbon span{
  transform: rotate(-12deg);
  font-family: var(--font-brand);
  font-size: 2rem;
  letter-spacing: .08em;
  padding: 6px 22px;
  border: 3px solid var(--gold);
  border-radius: 10px;
  color: var(--gold);
  background: rgba(11,11,12,.82);
}
.paid-note{ font-size: .9rem; font-weight: 600; color: var(--gold); }
.needs-empty{
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* ---------- cart bar + drawer ---------- */
.cart-bar{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 14px 12px 24px;
  border-radius: 999px;
  background: var(--charcoal-2);
  border: 1px solid rgba(245,199,0,.5);
  box-shadow: 0 18px 50px -10px rgba(0,0,0,.7);
  transition: transform .35s ease;
  max-width: calc(100vw - 24px);
}
.cart-bar.show{ transform: translate(-50%, 0); }
.cart-bar-text{ display: flex; flex-direction: column; line-height: 1.2; }
.cart-bar-text span{ font-size: .78rem; color: var(--muted); }
.cart-bar-text strong{ font-family: var(--font-brand); font-weight: 400; font-size: 1.4rem; color: var(--gold); letter-spacing: .02em; }

.drawer-shade{
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.drawer-shade.open{ opacity: 1; pointer-events: auto; }
.cart-drawer{
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 100;
  width: min(440px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  border-left: 1px solid rgba(245,242,234,.1);
  transform: translateX(105%);
  transition: transform .3s ease;
}
.cart-drawer.open{ transform: none; }
.drawer-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(245,242,234,.08);
}
.drawer-head h2{ font-family: var(--font-brand); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; margin: 0; }
.drawer-close{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245,242,234,.2);
  background: transparent;
  color: var(--text-light);
  font-size: 1.3rem;
  cursor: pointer;
}
.drawer-close:hover{ border-color: var(--gold); color: var(--gold); }
.drawer-items{ flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-empty{ color: var(--muted); padding: 30px 0; text-align: center; }
.cart-line{
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,242,234,.08);
}
.cart-line img{ width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }
.cart-line .cl-img{ width: 56px; height: 56px; border-radius: 8px; background: var(--charcoal-2); }
.cart-line h3{ font-size: .95rem; font-weight: 600; margin: 0 0 4px; }
.cart-line p{ font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.cart-line .stepper button{ height: 30px; width: 30px; font-size: 1rem; }
.cart-line .stepper input{ height: 30px; width: 40px; }
.cl-right{ text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cl-right strong{ font-size: .98rem; color: var(--gold); }
.cl-remove{ background: none; border: 0; color: var(--muted); font-size: .78rem; text-decoration: underline; cursor: pointer; padding: 0; }
.cl-remove:hover{ color: var(--text-light); }
.drawer-foot{
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(245,242,234,.08);
  background: var(--charcoal-2);
}
.drawer-total{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.drawer-total span{ color: var(--muted); font-size: .95rem; }
.drawer-total strong{ font-family: var(--font-brand); font-weight: 400; font-size: 2rem; color: var(--gold); letter-spacing: .02em; }
.donor-fields{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.donor-fields label{ display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.donor-fields input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245,242,234,.2);
  background: var(--black);
  color: var(--text-light);
  font: inherit;
  font-size: .9rem;
}
.donor-fields input:focus{ outline: none; border-color: var(--gold); }
.checkout-btn{ width: 100%; justify-content: center; }
.checkout-btn:disabled{ opacity: .5; cursor: default; }
.drawer-fine{ font-size: .74rem; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }

@media (max-width: 980px){
  .needs-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .needs-grid{ grid-template-columns: 1fr; }
  .launch-section{ padding-top: 36px; }
  .donor-fields{ grid-template-columns: 1fr; }
  .cart-bar{ width: calc(100vw - 24px); justify-content: space-between; gap: 10px; }
}
@media (prefers-reduced-motion: reduce){
  .need-card, .cart-bar, .cart-drawer, .drawer-shade, .launch-bar span{ transition: none; }
}

/* ---------- group headings + hidden handling ---------- */
.need-group{
  grid-column: 1 / -1;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: .03em;
  color: var(--gold);
  margin: 26px 0 -4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245,242,234,.08);
}
.need-group:first-child{ margin-top: 0; }
.launch-bar.mini{ height: 6px; }
.need-card[hidden], .need-group[hidden], .needs-empty[hidden]{ display: none !important; }

/* ---------- low priority badge + priority chips ---------- */
.need-badge.low{
  background: rgba(11,11,12,.82);
  color: var(--text-light);
  border: 1px solid rgba(245,242,234,.35);
}
.chip-pri.active{ background: transparent; color: var(--gold); border-color: var(--gold); }
.needs-head{ margin-bottom: 22px; }
.needs-head h2{
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: .02em;
  margin: 0 0 8px;
}
.needs-head p{ color: var(--muted); margin: 0; max-width: 680px; }
.launch-toolbar{ margin-bottom: 16px; }

/* ---------- give to an area ---------- */
.area-section{ padding: 56px 0 8px; }
.area-card{
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 34px 30px;
  background: var(--charcoal-2);
  border: 1px solid rgba(245,199,0,.35);
  border-radius: var(--radius);
}
.area-head h2{
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: .02em;
  margin: 6px 0 10px;
}
.area-head p{ color: var(--muted); margin: 0 0 22px; }
.area-label{
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 22px 0 10px;
}
.area-blurb{ color: var(--muted); font-size: .92rem; margin: 12px 0 0; min-height: 1.4em; }
.amt-row{ display: flex; flex-wrap: wrap; gap: 8px; }
.amt{
  font: inherit;
  font-weight: 700;
  min-width: 84px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(245,242,234,.2);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.amt:hover{ border-color: var(--gold); color: var(--gold); }
.amt.active{ background: var(--gold); border-color: var(--gold); color: var(--black); }
.amt-custom{ margin-top: 14px; max-width: 260px; }
.amt-custom label{ display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.amt-input{
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(245,242,234,.2);
  background: var(--charcoal);
  color: var(--gold);
  font-weight: 700;
}
.amt-input:focus-within{ border-color: var(--gold); }
.amt-input input{
  flex: 1; min-width: 0;
  font: inherit; font-weight: 600;
  padding: 12px 0;
  background: transparent;
  border: 0; outline: none;
  color: var(--text-light);
}
.area-donor{ margin: 24px 0 16px; }
@media (max-width: 600px){
  .area-card{ padding: 24px 18px 22px; }
  .amt{ flex: 1 1 28%; min-width: 0; padding: 12px 8px; }
}
#areaGiveBtn:disabled{ opacity:.5; cursor:default; }
