/* ============= 6b · CUSTOM STEINWAY DESIGNER ============= */
.designer {
  padding: 56px 0 56px;
  background: #15151a;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.designer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 78% 30%, rgba(212,184,96,.10), transparent 70%),
    radial-gradient(ellipse 70% 60% at 8% 95%, rgba(38,50,72,.32), transparent 65%);
  pointer-events: none;
}
.designer .container { position: relative; z-index: 2; }

.designer-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}
.designer .eyebrow {
  color: var(--lb-gold);
  justify-content: center;
}
.designer .eyebrow::before { background: var(--lb-gold); }
.designer h2 {
  font-family: var(--lb-font-display);
  font-weight: 400;
  font-size: clamp(36px, 3.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.4px;
  color: #fff;
  margin: 0 auto 14px;
}
.designer h2 em {
  font-style: italic;
  color: var(--lb-gold);
  font-weight: 400;
}
.designer .lead {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
  max-width: 640px;
  margin: 0 auto;
}

/* Main layout */
.pd-wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  background: #ffffff;
  border: 1px solid rgba(212,184,96,.18);
  border-radius: 6px;
  overflow: hidden;
  align-items: stretch;
}

/* ============= STAGE (left) ============= */
.pd-stage {
  position: relative;
  background: #ffffff;
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pd-stage-inner {
  flex: 1;
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.pd-piano {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  margin: 0;
}
.pd-piano .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pd-piano .layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: opacity .25s ease;
  transform: scale(0.92);
  transform-origin: center center;
}

/* Loading state */
.pd-piano.loading::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border: 2px solid rgba(212,184,96,.3);
  border-top-color: var(--lb-gold);
  border-radius: 50%;
  animation: pd-spin .8s linear infinite;
}
@keyframes pd-spin { to { transform: rotate(360deg); } }

/* Preset chips — top of right panel */
.pd-controls-intro {
  padding: 18px 28px 0;
  flex-shrink: 0;
}
.pd-controls-intro p {
  font-family: var(--lb-font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
  color: #1a1a1c;
  margin: 0;
  letter-spacing: -.1px;
}

.pd-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 28px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  margin-top: 4px;
  background: transparent;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.pd-presets-label { color: rgba(0,0,0,.55) !important; }
.pd-preset {
  background: rgba(0,0,0,.03) !important;
  border-color: rgba(0,0,0,.12) !important;
  color: rgba(0,0,0,.78) !important;
}
.pd-preset:hover {
  background: rgba(212,184,96,.12) !important;
  border-color: rgba(212,184,96,.6) !important;
  color: #2a2a2a !important;
}
.pd-preset.active {
  background: rgba(212,184,96,.18) !important;
  border-color: var(--lb-gold) !important;
  color: #6a4a10 !important;
}
.pd-presets-label {
  font-family: var(--lb-font-body);
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  align-self: center;
  margin-right: 4px;
}
.pd-preset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  font-size: 14px;
  font-family: var(--lb-font-body);
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .15s ease;
  border-radius: 6px;
}
.pd-preset:hover {
  background: rgba(212,184,96,.08);
  border-color: rgba(212,184,96,.45);
  color: #fff;
}
.pd-preset.active {
  background: rgba(212,184,96,.15);
  border-color: var(--lb-gold);
  color: var(--lb-gold);
}
.pd-preset .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
}

/* ============= CONTROLS (right) — LIGHT THEME ============= */
.pd-controls {
  background: #f6f4ef;
  border-left: 1px solid rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.pd-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #f6f4ef;
}
.pd-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: rgba(0,0,0,.5);
  padding: 18px 8px 16px;
  font-family: var(--lb-font-body);
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}
.pd-tab .num {
  display: block;
  font-size: 14px;
  color: rgba(106,74,16,.55);
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.pd-tab:hover { color: #1a1a1c; }
.pd-tab.active {
  color: #6a4a10;
  border-bottom-color: var(--lb-gold);
  background: #ffffff;
}
.pd-tab.active .num { color: #6a4a10; }

.pd-stack {
  flex: 0 0 auto;
  overflow: visible;
  padding: 4px 0 0;
}
.pd-panel {
  display: block;
  padding: 14px 28px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.pd-panel:last-child { border-bottom: 0; padding-bottom: 16px; }
.pd-panel.active { display: block; }

.pd-panel-head {
  margin-bottom: 18px;
}
.pd-panel-title {
  font-family: var(--lb-font-display);
  font-weight: 400;
  font-size: 22px;
  color: #1a1a1c;
  margin: 0 0 4px;
  letter-spacing: -.2px;
}
.pd-panel-sub {
  font-size: 14px;
  color: rgba(0,0,0,.55);
  line-height: 1.5;
}

.pd-section { margin-bottom: 22px; }
.pd-section:last-child { margin-bottom: 0; }
.pd-section-label {
  font-family: var(--lb-font-body);
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(0,0,0,.5);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pd-section-label .v {
  color: #6a4a10;
  letter-spacing: .5px;
  text-transform: none;
  font-size: 14px;
}

/* Swatch grid */
.pd-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pd-swatch {
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(0,0,0,.10);
  transition: all .15s ease;
  overflow: hidden;
}
.pd-swatch::after {
  content: attr(data-name);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: .8px;
  color: rgba(0,0,0,.55);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
  text-transform: uppercase;
}
.pd-swatch:hover {
  border-color: rgba(212,184,96,.6);
  transform: scale(1.06);
}
.pd-swatch:hover::after { opacity: 1; }
.pd-swatch.active {
  border-color: var(--lb-gold);
  box-shadow: 0 0 0 2px rgba(212,184,96,.25);
}

/* Segmented (for finish, metal, key, felt) */
.pd-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.pd-seg button {
  background: transparent;
  border: 0;
  color: rgba(0,0,0,.7);
  padding: 12px 8px;
  font-family: var(--lb-font-body);
  font-size: 14px;
  letter-spacing: .8px;
  cursor: pointer;
  border-right: 1px solid rgba(0,0,0,.08);
  transition: all .15s ease;
  text-transform: capitalize;
}
.pd-seg button:last-child { border-right: 0; }
.pd-seg button:hover { color: #1a1a1c; background: rgba(0,0,0,.03); }
.pd-seg button.active {
  background: var(--lb-gold);
  color: #1a1a1c;
  font-weight: 600;
}

/* Choice cards (for size/style) */
.pd-choices {
  display: grid;
  gap: 8px;
}
.pd-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  cursor: pointer;
  transition: all .15s ease;
  text-align: left;
  color: #1a1a1c;
  border-radius: 6px;
}
.pd-choice:hover {
  border-color: rgba(212,184,96,.6);
  background: rgba(212,184,96,.04);
}
.pd-choice.active {
  border-color: var(--lb-gold);
  background: rgba(212,184,96,.08);
}
.pd-choice .radio {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.3);
  flex-shrink: 0;
  position: relative;
}
.pd-choice.active .radio { border-color: var(--lb-gold); }
.pd-choice.active .radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--lb-gold);
}
.pd-choice .meta { min-width: 0; }
.pd-choice .ttl {
  font-family: var(--lb-font-display);
  font-size: 16px;
  margin: 0;
  font-weight: 400;
}
.pd-choice .desc {
  font-size: 14px;
  color: rgba(0,0,0,.55);
  margin-top: 2px;
  line-height: 1.4;
}
.pd-choice .price {
  font-family: var(--lb-font-body);
  font-size: 14px;
  color: #6a4a10;
  letter-spacing: .5px;
  white-space: nowrap;
}

/* Slider (touch / tone) */
.pd-slider-wrap { padding: 6px 4px 0; }
.pd-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,.12);
  border-radius: 6px;
  outline: none;
}
.pd-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: var(--lb-gold);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--lb-gold);
}
.pd-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--lb-gold);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
}
.pd-slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(0,0,0,.45);
}
.pd-slider-value {
  text-align: center;
  font-family: var(--lb-font-display);
  color: #6a4a10;
  font-size: 18px;
  margin-top: 8px;
  letter-spacing: .3px;
}

/* Footer / pricing summary */
.pd-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 16px 28px 18px;
  background: #f6f4ef;
  flex-shrink: 0;
}
.pd-summary {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}
.pd-row {
  display: flex;
  justify-content: space-between;
  color: rgba(0,0,0,.65);
}
.pd-row.total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0,0,0,.18);
  color: #1a1a1c;
  font-size: 15px;
}
.pd-row.total .v {
  font-family: var(--lb-font-display);
  color: #6a4a10;
  font-size: 22px;
  letter-spacing: -.3px;
}
.pd-row .v { color: #1a1a1c; }
.pd-finance {
  background: rgba(212,184,96,.10);
  border-left: 2px solid var(--lb-gold);
  padding: 10px 14px;
  font-size: 14px;
  color: rgba(0,0,0,.78);
  margin-bottom: 16px;
  line-height: 1.5;
}
.pd-finance strong { color: #6a4a10; font-weight: 600; }

.pd-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.pd-actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 14px;
  padding: 14px 12px;
}
.pd-actions .btn.secondary {
  background: transparent;
  color: rgba(0,0,0,.85);
  border: 1px solid rgba(0,0,0,.22);
}
.pd-actions .btn.secondary:hover {
  border-color: var(--lb-gold);
  color: #6a4a10;
  background: rgba(212,184,96,.08);
}

.pd-disclaimer {
  font-size: 14px;
  color: rgba(0,0,0,.4);
  line-height: 1.5;
  margin-top: 14px;
  letter-spacing: .2px;
}

/* Tablet P (601–880): keep 2-col but narrow the right panel so the piano gets more room */
@media (max-width: 880px) and (min-width: 601px) {
  .designer { padding: 64px 0 72px; }
  .pd-wrap { grid-template-columns: 1fr 1fr; }
  .pd-stage { min-height: 0; }
  .pd-panel { padding: 22px 18px 8px; }
  .pd-swatches { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pd-swatch { border-radius: 8px; aspect-ratio: 2 / 1; }
  .pd-section-label span { font-size: 14px; letter-spacing: 1.6px; }
  .pd-actions { grid-template-columns: 1fr; }
  .pd-tab { padding: 12px 4px 10px; font-size: 14px; }
  .pd-preset .dot { display: none; }
  .pd-preset { padding-left: 10px; padding-right: 10px; }
}

/* Phone / very narrow */
@media (max-width: 600px) {
  .designer { padding: 64px 0 72px; }
  .pd-wrap { grid-template-columns: 1fr; }
  .pd-stage { padding: 0; min-height: 380px; }
  .pd-piano { max-width: none; }
  .pd-controls { border-left: 0; border-top: 1px solid rgba(212,184,96,.14); }
  .pd-panel { max-height: none; padding: 24px 22px 8px; }
  .pd-actions { grid-template-columns: 1fr; }
  .pd-tab { padding: 14px 4px 12px; font-size: 14px; }
  .pd-preset .dot { display: none; }
  .pd-preset { padding-left: 10px; padding-right: 10px; }
}
