/* Build your stack — pill picker (design handoff 2026-08) */

.bys-page {
  position: relative;
  padding-top: clamp(100px, 12vw, 140px);
  padding-bottom: clamp(72px, 10vw, 120px);
}

.bys-page-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.bys-inner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bys-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
}

.bys-title {
  margin: 0;
  font-family: var(--rd-font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--rd-ink);
}

.bys-lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(238, 240, 241, 0.6);
}

.bys-card {
  background: #151a1d;
  border: 1px solid rgba(238, 240, 241, 0.09);
  border-radius: 6px;
  padding: 8px 40px 36px;
}

.bys-rows {
  display: flex;
  flex-direction: column;
}

.bys-row {
  padding: 24px 0 4px;
  border-top: 1px solid rgba(238, 240, 241, 0.09);
}

.bys-row:first-child {
  border-top: none;
}

.bys-row[data-row="shop"] {
  border-bottom: 1px solid rgba(238, 240, 241, 0.09);
  padding-bottom: 0;
}

.bys-row-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.bys-row-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--rd-ink);
}

.bys-row-qual {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(238, 240, 241, 0.42);
}

.bys-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bys-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(238, 240, 241, 0.16);
  background: transparent;
  color: rgba(238, 240, 241, 0.66);
  font-family: var(--rd-font-body);
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    border-color 240ms cubic-bezier(0.4, 0, 0.2, 1),
    color 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bys-pill.is-dashed {
  border-style: dashed;
}

.bys-pill-name {
  font-weight: 500;
}

.bys-pill-price {
  font-family: var(--rd-font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.bys-pill-chevron {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  opacity: 0.45;
  transform: rotate(0deg);
  transition:
    transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bys-pill.is-selected {
  border-color: var(--rd-green);
  color: var(--rd-green);
}

.bys-pill.is-selected .bys-pill-chevron {
  opacity: 0.85;
}

.bys-pill.is-open .bys-pill-chevron {
  opacity: 1;
  transform: rotate(180deg);
}

.bys-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 240ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bys-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.bys-panel-wrap {
  overflow: hidden;
}

.bys-panel-inner {
  padding: 20px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bys-panel-promise {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--rd-ink);
}

.bys-panel-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 40px;
}

.bys-panel-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: rgba(238, 240, 241, 0.62);
}

.bys-panel-bullets li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 7px;
  background: var(--rd-green);
}

.bys-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 32px;
}

.bys-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
  flex: 1 1 320px;
}

.bys-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-size: 15px;
  color: rgba(238, 240, 241, 0.62);
}

.bys-line-value {
  font-family: var(--rd-font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.bys-summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 360px;
  max-width: 420px;
}

.bys-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bys-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-size: 15px;
  color: rgba(238, 240, 241, 0.62);
}

.bys-summary-row.is-discount {
  color: var(--rd-green);
}

.bys-summary-value {
  font-family: var(--rd-font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--rd-ink);
}

.bys-summary-row.is-discount .bys-summary-value {
  color: var(--rd-green);
}

.bys-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(238, 240, 241, 0.09);
}

.bys-total-label {
  font-size: 15px;
  color: rgba(238, 240, 241, 0.62);
}

.bys-total-figure {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.bys-total {
  font-family: var(--rd-font-display);
  font-size: clamp(48px, 8vw, 60px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--rd-ink);
}

.bys-total-suffix {
  font-size: 17px;
  color: rgba(238, 240, 241, 0.5);
}

.bys-quote-note {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  max-width: 320px;
  color: rgba(238, 240, 241, 0.5);
}

.bys-quote-note[hidden],
.bys-discount-row[hidden],
.bys-nudge[hidden] {
  display: none !important;
}

.bys-init-fallback {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rd-hairline, #363e43);
  border-radius: 0.5rem;
  color: var(--rd-stone, #a8b0b6);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.bys-included-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--rd-accent, #4ca378);
}

.bys-nudge {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(238, 240, 241, 0.55);
}

.bys-dmcc {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(238, 240, 241, 0.45);
}

.bys-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.bys-cta-secondary {
  font-size: 15px;
  color: rgba(238, 240, 241, 0.62);
  border-bottom: 1px solid rgba(238, 240, 241, 0.2);
  padding-bottom: 2px;
  transition:
    color 240ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.bys-cta-secondary:hover {
  color: var(--rd-ink);
  border-color: var(--rd-ink);
}

@media (max-width: 720px) {
  .bys-card {
    padding: 8px 20px 28px;
  }

  .bys-panel-bullets {
    grid-template-columns: 1fr;
  }

  .bys-totals {
    flex-direction: column;
  }

  .bys-summary {
    max-width: none;
  }
}
