.build-page { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem); }
.build-shell { max-width: 920px; margin: 0 auto; }
.build-shell .section-head { text-align: center; margin-bottom: 2.6rem; }
.build-shell .section-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 0.3em;
  color: var(--ink);
}
.build-shell .section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.pack-size-toggle {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
  margin: 0 0 2.6rem;
}
.pack-opt {
  position: relative;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  padding: 1.3rem 1rem;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  font-family: var(--sans);
  transition: background .15s ease, color .15s ease;
  box-shadow: none;
}
.pack-opt:hover {
  background: var(--ink);
  color: var(--bg);
  transform: none;
}
.pack-opt.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: none;
}
.pack-bottles {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.pack-opt:hover .pack-bottles,
.pack-opt.is-active .pack-bottles { color: var(--bg); }
.pack-price {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pack-opt:hover .pack-price,
.pack-opt.is-active .pack-price { color: var(--bg); }
.pack-save {
  font-family: var(--sans);
  font-size: 0.66rem;
  color: var(--accent-deep);
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.1rem;
}
.pack-opt:hover .pack-save,
.pack-opt.is-active .pack-save { color: var(--accent); }

.slots { display: grid; gap: 0.6rem; margin: 0 0 2.6rem; }
.slot {
  border: 1.5px dashed var(--rule-strong);
  background: transparent;
  border-radius: 0;
  padding: 1.1rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  text-align: left;
  font-family: var(--sans-body);
}
.slot:hover {
  border-color: var(--ink);
  background: var(--bg-elevated);
  transform: none;
}
.slot.is-filled {
  border-style: solid;
  background: var(--bg-elevated);
  border-color: var(--rule-strong);
  border-left: 4px solid var(--one-accent, var(--ink));
  box-shadow: none;
  padding: 0.9rem 1.3rem 0.9rem 0.9rem;
}
.slot-marker {
  width: 8px;
  height: 60px;
  background: var(--one-accent, var(--ink));
  flex-shrink: 0;
  display: block;
}
.slot-body { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.slot-label {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.slot-meta {
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-family: var(--sans-body);
}
.slot-action {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.slot.is-filled .slot-action { color: var(--ink-soft); }

.checkout-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 1.8rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0;
  margin-top: 1rem;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.checkout-bar::before { content: none; }
.checkout-bar > * { position: relative; z-index: 1; }
.checkout-summary { display: flex; gap: 1rem; align-items: baseline; }
#summary-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(243, 238, 229, 0.80);
}
.summary-price {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--bg);
  letter-spacing: -0.03em;
}
.checkout-note {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  opacity: 0.75;
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--bg);
}
.checkout-bar .btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
  box-shadow: none;
}
.checkout-bar .btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.checkout-bar .btn-primary:disabled {
  opacity: 0.35; cursor: not-allowed;
  transform: none !important;
}

/* ── Modal picker ───────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(26, 22, 18, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; z-index: 50;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--bg);
  width: 100%; max-width: 820px; max-height: 88vh;
  border-radius: 0;
  border: 1px solid var(--ink);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(26, 22, 18, 0.45);
  overflow: hidden;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--bg);
}
.modal-head h3 {
  margin: 0;
  font-size: 1.3rem;
  font-style: normal;
  font-weight: 700;
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
  width: 36px; height: 36px;
  border-radius: 0;
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: var(--ink); color: var(--bg); }
.modal-filter {
  padding: 1rem 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--bg-soft);
}
.modal-grid {
  padding: 1.2rem 1.4rem 1.4rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
  background: var(--bg);
}

/* Standardized picker card — every formula renders the same shape & height. */
.modal-grid .product-card {
  /* hard-fix the layout so cards don't jiggle by content length */
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.25rem;
  padding: 0.95rem 1rem 1rem;
  min-height: 156px;
  height: 100%;
  cursor: pointer;
  border: 1px solid var(--rule-strong);
  text-align: left;
  transition: background .15s ease, border-color .15s ease;
}
.modal-grid .product-card:hover {
  background: #ffffff;
  border-color: var(--ink);
}

.modal-grid .product-card .system-tag {
  font-size: 0.6rem;
  letter-spacing: 0.20em;
  margin: 0;
  color: var(--one-accent, var(--ink-soft));
}
.modal-grid .product-card .product-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.15rem 0 0;
  /* clamp to one line so 'The Strong One' and 'The Regular One' look identical */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-grid .product-card .product-goal {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.1rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.modal-grid .product-card .card-picked {
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0.45rem 0 0;
  align-self: end;
  /* clamp the long ones so all cards land at the same height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Intake guidance ───────────────────────────────── */
.build-usage {
  max-width: 680px;
  margin: 1.4rem auto 0;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
