/* ==========================================================================
   Budget Planner - TRDG flagship tool
   ========================================================================== */

.bp-shell {
  min-height: 100vh;
  background: var(--dawn);
  color: var(--dusk);
  padding: 0 0 var(--space-24);
}

/* --- Hero --- */
.bp-hero {
  background: var(--dusk);
  color: var(--dawn);
  padding: var(--space-16) var(--space-6) var(--space-24);
  position: relative;
  overflow: hidden;
}
.bp-hero__inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.bp-hero__eyebrow {
  font-size: var(--text-label);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 var(--space-4);
}
.bp-hero__title {
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  font-weight: 700;
  color: var(--dawn);
}
.bp-hero__lede {
  font-size: var(--text-body-lg);
  line-height: var(--leading-normal);
  max-width: 640px;
  margin: 0;
  opacity: 0.85;
}
.bp-hero__squiggle {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 320px;
  opacity: 0.35;
  z-index: 1;
}

/* --- Progress rail --- */
.bp-progress {
  position: sticky;
  top: 73px; /* sit just below the sticky site header */
  background: var(--dawn);
  border-bottom: 1px solid rgba(31, 22, 48, 0.08);
  z-index: 30;
  padding: var(--space-4) var(--space-6);
}
.bp-progress__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.bp-progress__bar {
  height: 6px;
  background: rgba(31, 22, 48, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.bp-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orchid), var(--sky));
  border-radius: 999px;
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}
.bp-progress__steps {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 500;
}
.bp-progress__step {
  flex: 1;
  text-align: center;
  color: rgba(31, 22, 48, 0.4);
  padding: var(--space-1) 0;
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  transition: color 200ms;
  position: relative;
}
.bp-progress__step:hover {
  color: var(--dusk);
}
.bp-progress__step.is-current {
  color: var(--dusk);
  font-weight: 700;
}
.bp-progress__step.is-complete {
  color: var(--dusk);
}
.bp-progress__step.is-complete::before {
  content: "✓ ";
  color: var(--orchid-deep);
}
/* Mobile: convert step chips into a horizontal scrolling tab strip */
@media (max-width: 768px) {
  .bp-progress__steps {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--space-6));
    padding: 0 var(--space-6);
    gap: var(--space-3);
  }
  .bp-progress__steps::-webkit-scrollbar { display: none; }
  .bp-progress__step {
    flex: 0 0 auto;
    text-align: left;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(31, 22, 48, 0.05);
    white-space: nowrap;
    font-size: 0.75rem;
  }
  .bp-progress__step.is-current {
    background: var(--dusk);
    color: var(--dawn);
  }
  .bp-progress__step.is-complete {
    background: rgba(67, 122, 34, 0.12);
    color: var(--dusk);
  }
}

/* --- Step layout --- */
.bp-step {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-8);
  display: none;
}
.bp-step.is-active { display: block; }

.bp-step__header {
  margin-bottom: var(--space-10);
}
.bp-step__eyebrow {
  font-size: var(--text-label);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--orchid-deep);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.bp-step__title {
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-3);
  font-weight: 700;
}
.bp-step__intro {
  font-size: var(--text-body-lg);
  line-height: var(--leading-normal);
  color: rgba(31, 22, 48, 0.75);
  margin: 0;
  max-width: 620px;
}

/* --- Category card --- */
.bp-cat {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(31, 22, 48, 0.06);
}
.bp-cat__title {
  font-size: var(--text-h3);
  font-weight: 700;
  margin: 0 0 var(--space-2);
  letter-spacing: var(--tracking-snug);
}
.bp-cat__help {
  font-size: var(--text-small);
  color: rgba(31, 22, 48, 0.65);
  margin: 0 0 var(--space-5);
  line-height: var(--leading-normal);
}

/* --- Field row --- */
.bp-row {
  display: grid;
  grid-template-columns: 1fr 140px 130px 40px;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(31, 22, 48, 0.05);
}
.bp-row:last-of-type { border-bottom: none; }
.bp-row__label {
  font-size: var(--text-body);
  font-weight: 500;
  line-height: var(--leading-snug);
}
.bp-row__label small {
  display: block;
  font-weight: 400;
  color: rgba(31, 22, 48, 0.55);
  font-size: 0.8125rem;
  margin-top: 2px;
}

.bp-row--custom {
  grid-template-columns: 1fr 140px 130px 40px;
}
.bp-row--custom input[type="text"] {
  font: inherit;
  border: 1px solid rgba(31, 22, 48, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--dawn);
}
.bp-row--custom input[type="text"]:focus {
  outline: none;
  border-color: var(--orchid-deep);
  box-shadow: 0 0 0 3px rgba(214, 186, 250, 0.35);
}

/* Amount input */
.bp-amount {
  position: relative;
}
.bp-amount__prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(31, 22, 48, 0.5);
  font-weight: 500;
  pointer-events: none;
}
.bp-amount input {
  width: 100%;
  font: inherit;
  border: 1px solid rgba(31, 22, 48, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 28px;
  background: var(--dawn);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bp-amount input:focus {
  outline: none;
  border-color: var(--orchid-deep);
  box-shadow: 0 0 0 3px rgba(214, 186, 250, 0.35);
}
.bp-amount input.is-flagged {
  border-color: var(--sunset);
  background: #FFF5F5;
}

/* Frequency select */
.bp-freq {
  font: inherit;
  border: 1px solid rgba(31, 22, 48, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--dawn);
  cursor: pointer;
}
.bp-freq:focus {
  outline: none;
  border-color: var(--orchid-deep);
  box-shadow: 0 0 0 3px rgba(214, 186, 250, 0.35);
}

/* Remove row btn */
.bp-row__remove {
  background: none;
  border: 1px solid rgba(31, 22, 48, 0.1);
  color: rgba(31, 22, 48, 0.5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: all 150ms;
}
.bp-row__remove:hover {
  border-color: var(--sunset);
  color: var(--sunset);
}
.bp-row__remove-placeholder { width: 40px; }

/* Add row */
.bp-add-row {
  margin-top: var(--space-4);
  background: transparent;
  border: 2px dashed rgba(31, 22, 48, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  color: var(--dusk);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: all 150ms;
}
.bp-add-row:hover {
  border-color: var(--orchid-deep);
  background: var(--lavender);
}

/* Trigger figure flag */
.bp-flag {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  background: #FFF3D6;
  color: #6B4E12;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
  border-left: 3px solid #E5A93A;
}
.bp-flag[hidden] { display: none !important; }
.bp-flag__icon {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  margin-top: 1px;
}
.bp-flag__text {
  flex: 1;
}
.bp-flag__text strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}
.bp-flag--high { background: #FFE0DE; color: #92322F; border-left-color: #C4443F; }

/* Running subtotal */
.bp-cat__subtotal {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 2px solid var(--dusk);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
}
.bp-cat__subtotal strong {
  font-size: var(--text-h3);
  font-variant-numeric: tabular-nums;
}

/* --- Debt row (specialised) --- */
.bp-debt {
  display: grid;
  /* Mobile-first: single column so full names/values are visible on 375px */
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  padding-right: 40px; /* leave room for the remove button */
  background: var(--dawn);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  border: 1px solid rgba(31, 22, 48, 0.08);
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
/* Priority stripe: top border on mobile (saves horizontal space), left border on desktop */
.bp-debt--priority {
  border-top: 4px solid var(--sunset);
}
@media (min-width: 640px) {
  .bp-debt--priority {
    border-top: 1px solid rgba(31, 22, 48, 0.08);
    border-left: 4px solid var(--sunset);
  }
}
.bp-debt__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* allow the input to shrink below its intrinsic width */
}
.bp-debt__field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(31, 22, 48, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bp-debt__field input,
.bp-debt__field select {
  font: inherit;
  border: 1px solid rgba(31, 22, 48, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: white;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.bp-debt__field input:focus,
.bp-debt__field select:focus {
  outline: none;
  border-color: var(--orchid-deep);
  box-shadow: 0 0 0 3px rgba(214, 186, 250, 0.35);
}
.bp-debt__remove {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(31, 22, 48, 0.4);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 4px;
  line-height: 1;
}
.bp-debt__remove:hover { color: var(--sunset); }
.bp-debt__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sunset);
  color: white;
  margin-bottom: var(--space-2);
}
.bp-debt__badge--nonpri {
  background: rgba(31, 22, 48, 0.08);
  color: rgba(31, 22, 48, 0.7);
}
@media (min-width: 640px) {
  .bp-debt--priority { grid-template-columns: 1.6fr 1.2fr 1fr 1fr; }
  .bp-debt:not(.bp-debt--priority) { grid-template-columns: 1.5fr 1.1fr 0.9fr 0.9fr 0.9fr; }
}

/* --- Nav --- */
.bp-nav {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}
/* Top nav: mobile-only, tighter padding, small chevron-only buttons */
.bp-nav--top { display: none; }
@media (max-width: 768px) {
  .bp-nav--top {
    display: flex;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid rgba(31, 22, 48, 0.06);
    background: var(--dawn);
  }
  .bp-nav--top .bp-btn { padding: 8px 16px; font-size: 0.875rem; }
}
.bp-btn {
  font: inherit;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: all 200ms;
  font-size: var(--text-body);
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}
/* Inside pro-rata card, allow the long PDF button to fill and wrap */
.bp-prorata .bp-btn--primary {
  display: block;
  width: 100%;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
@media (max-width: 480px) {
  .bp-nav { padding: var(--space-6) var(--space-4); gap: var(--space-2); }
  .bp-btn { padding: 12px 18px; font-size: 0.9375rem; }
  .bp-prorata .bp-btn--primary { padding: 14px 16px; font-size: 0.9375rem; }
}
.bp-btn--primary {
  background: var(--dusk);
  color: var(--dawn);
}
.bp-btn--primary:hover {
  background: #2D2144;
  transform: translateY(-1px);
}
.bp-btn--secondary {
  background: transparent;
  color: var(--dusk);
  border: 1px solid rgba(31, 22, 48, 0.2);
}
.bp-btn--secondary:hover {
  background: var(--lavender);
  border-color: var(--dusk);
}
.bp-btn--accent {
  background: var(--orchid);
  color: var(--dusk);
}
.bp-btn--accent:hover {
  background: var(--orchid-deep);
  color: var(--dawn);
}
.bp-btn--ghost {
  background: none;
  color: rgba(31, 22, 48, 0.6);
  padding: 12px 20px;
}
.bp-btn--ghost:hover { color: var(--dusk); }

/* --- Summary --- */
.bp-summary {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
}
.bp-summary__headline {
  background: var(--dusk);
  color: var(--dawn);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  text-align: center;
}
.bp-summary__verdict {
  font-size: var(--text-label);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 var(--space-3);
}
.bp-summary__leftover {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
  font-variant-numeric: tabular-nums;
}
.bp-summary__leftover--positive { color: var(--seafoam); }
.bp-summary__leftover--negative { color: var(--sunset); }
.bp-summary__leftover--zero { color: var(--sun); }

.bp-summary__label {
  font-size: var(--text-body-lg);
  opacity: 0.9;
  margin: 0 0 var(--space-6);
}

.bp-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.bp-summary__stat {
  background: rgba(255, 255, 255, 0.08);
  padding: var(--space-4);
  border-radius: var(--radius-md);
}
.bp-summary__stat-label {
  font-size: var(--text-small);
  opacity: 0.75;
  margin: 0 0 4px;
}
.bp-summary__stat-value {
  font-size: var(--text-h3);
  font-weight: 700;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .bp-summary__grid { grid-template-columns: 1fr; }
}

/* Frequency filter */
.bp-summary__filter {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-6);
}
.bp-summary__filter label {
  font-size: var(--text-small);
  color: rgba(31, 22, 48, 0.65);
}
.bp-summary__filter select {
  font: inherit;
  border: 1px solid rgba(31, 22, 48, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  background: white;
  cursor: pointer;
}

/* Breakdown bars */
.bp-breakdown {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid rgba(31, 22, 48, 0.06);
}
.bp-breakdown__title {
  font-size: var(--text-h3);
  font-weight: 700;
  margin: 0 0 var(--space-6);
}
.bp-breakdown__row {
  margin-bottom: var(--space-4);
}
.bp-breakdown__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
  font-size: var(--text-small);
}
.bp-breakdown__meta strong { font-weight: 600; }
.bp-breakdown__meta span { font-variant-numeric: tabular-nums; color: rgba(31, 22, 48, 0.65); }
.bp-breakdown__bar {
  height: 10px;
  background: rgba(31, 22, 48, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.bp-breakdown__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Action buttons on summary */
.bp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
  justify-content: center;
}

/* SFS export view */
.bp-sfs {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  border: 1px solid rgba(31, 22, 48, 0.1);
  margin-top: var(--space-8);
  display: none;
}
.bp-sfs.is-open { display: block; }
.bp-sfs__title {
  font-size: var(--text-h2);
  font-weight: 700;
  margin: 0 0 var(--space-2);
}
.bp-sfs__sub {
  color: rgba(31, 22, 48, 0.65);
  margin: 0 0 var(--space-8);
}
.bp-sfs__section { margin-bottom: var(--space-6); }
.bp-sfs__section h4 {
  font-size: var(--text-h4);
  font-weight: 700;
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(31, 22, 48, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bp-sfs__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: var(--text-body);
}
.bp-sfs__row--total {
  font-weight: 700;
  border-top: 2px solid var(--dusk);
  padding-top: var(--space-2);
  margin-top: var(--space-2);
}
.bp-sfs__row span:last-child { font-variant-numeric: tabular-nums; }

/* Print styles — Browser File > Print is intentionally not supported.
   The correct deliverable is the on-page "Download Income & Expenditure (PDF)" button.
   When the user prints anyway, we show a clear guidance card instead of a blank page. */
@media print {
  @page { margin: 20mm; }
  html, body { background: white !important; }
  /* Hide every real page element */
  body > * { display: none !important; }
  /* Render the guidance card via body::before so it always appears */
  body::before {
    content: "To save this Budget Planner as a PDF, please use the ‘Download Income & Expenditure (PDF)’ button on the summary page. Browser print is not supported. The download button produces a properly formatted, creditor-ready document.";
    display: block !important;
    padding: 32px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13pt;
    line-height: 1.6;
    color: #28251D;
    max-width: 560px;
    margin: 40px auto 0;
    border: 1px solid #D4D1CA;
    border-radius: 8px;
    background: #FBFBF9;
    white-space: pre-wrap;
  }
}

/* Mobile row layout */
@media (max-width: 640px) {
  .bp-row {
    grid-template-columns: 1fr 40px;
    grid-template-areas:
      "label remove"
      "amount amount"
      "freq freq";
    gap: var(--space-2);
  }
  .bp-row__label { grid-area: label; }
  .bp-row .bp-amount { grid-area: amount; }
  .bp-row .bp-freq { grid-area: freq; }
  .bp-row__remove, .bp-row__remove-placeholder { grid-area: remove; justify-self: end; }
}

/* Restart modal */
.bp-modal {
  position: fixed;
  inset: 0;
  background: rgba(31, 22, 48, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  z-index: 100;
  backdrop-filter: blur(4px);
}
.bp-modal.is-open { display: flex; }
.bp-modal__box {
  background: var(--dawn);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 480px;
  text-align: center;
}
.bp-modal__title { font-size: var(--text-h2); font-weight: 700; margin: 0 0 var(--space-3); }
.bp-modal__body { color: rgba(31, 22, 48, 0.75); margin: 0 0 var(--space-6); line-height: var(--leading-normal); }
.bp-modal__actions { display: flex; gap: var(--space-3); justify-content: center; }

/* Toast */
.bp-toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dusk);
  color: var(--dawn);
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  font-size: var(--text-small);
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.bp-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Autosave badge in header */
.bp-autosave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(31, 22, 48, 0.5);
  font-weight: 500;
}
.bp-autosave::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--seafoam);
  border-radius: 50%;
  animation: bp-pulse 2s ease-in-out infinite;
}
@keyframes bp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Pro-rata block --- */
.bp-prorata {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: linear-gradient(135deg, #F7F1FF 0%, #EFE7FF 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 197, 0.15);
}
.bp-prorata__title {
  font-size: var(--text-h3);
  font-weight: 700;
  margin: 0 0 var(--space-3);
  letter-spacing: var(--tracking-snug);
  color: var(--dusk);
}
.bp-prorata__intro {
  font-size: var(--text-body);
  line-height: 1.55;
  color: rgba(31, 22, 48, 0.85);
  margin: 0 0 var(--space-5);
  max-width: 640px;
}
.bp-prorata__intro strong { color: var(--orchid-deep); }
.bp-prorata__name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-4);
  max-width: 380px;
}
.bp-prorata__name label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(31, 22, 48, 0.7);
}
.bp-prorata__name input {
  font: inherit;
  border: 1px solid rgba(31, 22, 48, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: white;
}
.bp-prorata__name input:focus {
  outline: none;
  border-color: var(--orchid-deep);
  box-shadow: 0 0 0 3px rgba(214, 186, 250, 0.35);
}

/* --- Service ladder --- */
.bp-ladder {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(31, 22, 48, 0.08);
}
.bp-ladder__title {
  font-size: var(--text-h2);
  font-weight: 700;
  margin: 0 0 var(--space-2);
  letter-spacing: var(--tracking-snug);
  color: var(--dusk);
}
.bp-ladder__intro {
  font-size: var(--text-body);
  color: rgba(31, 22, 48, 0.7);
  margin: 0 0 var(--space-6);
  max-width: 620px;
}
.bp-ladder__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
@media (min-width: 768px) {
  .bp-ladder__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bp-ladder__card {
  display: block;
  padding: var(--space-6);
  background: white;
  border: 1px solid rgba(31, 22, 48, 0.1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms, box-shadow 200ms, border-color 200ms;
}
.bp-ladder__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(31, 22, 48, 0.08);
  border-color: var(--orchid);
}
.bp-ladder__card--featured {
  background: linear-gradient(135deg, var(--dusk) 0%, #2D1F4A 100%);
  color: var(--dawn);
  border-color: var(--dusk);
}
.bp-ladder__card--featured:hover {
  border-color: var(--orchid);
}
.bp-ladder__price {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orchid-deep);
  margin: 0 0 var(--space-3);
}
.bp-ladder__card--featured .bp-ladder__price { color: var(--sun); }
.bp-ladder__card--featured .bp-ladder__name,
.bp-ladder__card--featured .bp-ladder__desc { color: var(--dawn); }
.bp-ladder__name {
  font-size: var(--text-h3);
  font-weight: 700;
  margin: 0 0 var(--space-2);
  letter-spacing: var(--tracking-snug);
}
.bp-ladder__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 0 var(--space-4);
  color: inherit;
  opacity: 0.85;
}
.bp-ladder__cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--orchid-deep);
}
.bp-ladder__card--featured .bp-ladder__cta { color: var(--sun); }
.bp-ladder__foot {
  font-size: 0.8125rem;
  color: rgba(31, 22, 48, 0.55);
  margin: 0;
  text-align: center;
}
