/* ==========================================
   PRICING SECTION
   ========================================== */

.pricing-section {
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.pricing-headline {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
  text-align: left;
  margin: 12px 0 18px;
}

.pricing-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ---- Cards Grid ---- */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1.42fr 1fr;
  gap: 18px;
  width: 100%;
  align-items: stretch;
}

/* ---- Base Card ---- */
.pricing-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s ease, background 0.22s ease;
}

/* Side cards: extra top/bottom padding shrinks their content band,
   making the middle card look visually taller (cantilever illusion)
   while all three card borders stay flush at the same row height. */
.pricing-card--audit,
.pricing-card--retainer {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Offset the middle card's CTA upward by the same delta (48-28=20px)
   so the primary button lands at the exact same Y as side cards. */
.pricing-card--redesign .pc-cta {
  margin-bottom: 20px;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.10) 50%, transparent 100%);
  pointer-events: none;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

/* ---- Featured / Best pick — middle card (silver-blue) ---- */
.pricing-card--redesign {
  border-color: rgba(148, 196, 232, 0.45);
  background: rgba(148, 196, 232, 0.055);
  box-shadow:
    0 0 0 1px rgba(148, 196, 232, 0.12),
    0 0 48px rgba(148, 196, 232, 0.16),
    0 0 90px rgba(100, 160, 210, 0.08),
    0 12px 56px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(200, 228, 248, 0.28);
}

.pricing-card--redesign:hover {
  border-color: rgba(148, 196, 232, 0.62);
  background: rgba(148, 196, 232, 0.08);
  box-shadow:
    0 0 0 1px rgba(148, 196, 232, 0.18),
    0 0 60px rgba(148, 196, 232, 0.22),
    0 0 110px rgba(100, 160, 210, 0.12),
    0 12px 56px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(200, 228, 248, 0.36);
}

/* Redesign primary button — silver-blue */
.pricing-card--redesign .pc-btn--primary {
  background: linear-gradient(135deg, #a8d4f0 0%, #7ab0d4 100%);
  color: #060e16;
  box-shadow: 0 0 22px rgba(148, 196, 232, 0.40), 0 2px 8px rgba(0,0,0,0.30);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pricing-card--redesign .pc-btn--primary:hover {
  background: linear-gradient(135deg, #bcdff8 0%, #8ec0e0 100%);
  box-shadow: 0 0 34px rgba(148, 196, 232, 0.55), 0 2px 12px rgba(0,0,0,0.30);
  transform: translateY(-1px);
}

/* ---- Growth retainer card — green accent ---- */
.pricing-card--retainer {
  border-color: rgba(39, 201, 63, 0.22);
  box-shadow:
    0 0 0 1px rgba(39, 201, 63, 0.05),
    0 0 28px rgba(39, 201, 63, 0.06),
    0 12px 48px rgba(0, 0, 0, 0.42);
}

.pricing-card--retainer:hover {
  border-color: rgba(39, 201, 63, 0.35);
  box-shadow:
    0 0 0 1px rgba(39, 201, 63, 0.08),
    0 0 40px rgba(39, 201, 63, 0.10),
    0 12px 48px rgba(0, 0, 0, 0.42);
  background: rgba(39, 201, 63, 0.025);
}

/* Retainer promo badge — green like the free tag */
.pc-tag--retainer-promo {
  background: rgba(39, 201, 63, 0.12) !important;
  color: #27c93f !important;
  border: 1px solid rgba(39, 201, 63, 0.28) !important;
  animation: retainer-badge-glow 2.6s ease-in-out infinite;
}

@keyframes retainer-badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
  50%       { box-shadow: 0 0 10px 2px rgba(39, 201, 63, 0.18); }
}

/* Retainer primary button — green tint */
.pricing-card--retainer .pc-btn--primary {
  background: #27c93f;
  color: #071a0e;
  box-shadow: 0 0 18px rgba(39, 201, 63, 0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pricing-card--retainer .pc-btn--primary:hover {
  background: #34e04e;
  box-shadow: 0 0 28px rgba(39, 201, 63, 0.42);
  transform: translateY(-1px);
}

/* ---- Tag Badge ---- */
.pc-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.pc-tag--free {
  background: rgba(39, 201, 63, 0.12);
  color: #27c93f;
  border: 1px solid rgba(39, 201, 63, 0.28);
  animation: retainer-badge-glow 2.6s ease-in-out infinite;
}

.pc-tag--highlight {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- Card Header ---- */
.pc-header {
  margin-bottom: 24px;
}

.pc-title {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 10px;
}

.pc-title-note {
  font-weight: 500;
  font-size: 0.78em;
  color: rgba(255, 255, 255, 0.6);
}

.pc-subhead {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
  margin: 0;
}

/* ---- Bullets (Card A) ---- */
.pc-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-bullets li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
}

.pc-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

/* ---- Tier Table ---- */
.pc-tiers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
}

.pc-tier {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s ease;
}

.pc-tier + .pc-tier {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pc-tier:hover {
  background: rgba(255, 255, 255, 0.04);
}

.pc-tier--highlighted {
  background: rgba(255, 255, 255, 0.04);
}

.pc-tier-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.pc-tier-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.90);
  letter-spacing: 0.01em;
}

.pc-tier-range {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.56);
  flex: 1;
}

.pc-tier-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.pc-tier-deliverables {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
  margin: 0;
}

.pc-tier-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.55;
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-style: italic;
}

/* ---- CTA Area ---- */
.pc-cta {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pc-cta--row {
  flex-direction: column;
  gap: 10px;
}

/* ---- Buttons ---- */
.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  text-align: center;
}

.pc-btn:active {
  transform: scale(0.98);
}

.pc-btn--primary {
  background: #fff;
  color: #0e1114;
  border-color: #fff;
}

.pc-btn--primary:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
}

.pc-btn--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.15);
}

.pc-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ---- Audit Process Steps ---- */
.pc-audit-process {
  margin: 22px 0 0;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.pc-process-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px;
}

.pc-process-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-process-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.4;
}

.pc-step-num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.70);
  margin-top: 1px;
}

/* ---- Microcopy ---- */
.pc-microcopy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.5;
  margin: 0;
}

/* ---- Deposit note (below all cards) ---- */
.pricing-deposit-note {
  margin-top: 32px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.53);
  text-align: center;
  max-width: 560px;
}

/* ==========================================
   PRICING MODALS
   ========================================== */

.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 12, 15, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: pm-overlay-in 0.18s ease;
}

.pm-overlay[hidden] {
  display: none;
}

@keyframes pm-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pm-box {
  background: #161920;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.70);
  animation: pm-box-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pm-box-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pm-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.pm-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.63);
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  font-family: var(--font-main);
}

.pm-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.pm-form {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Modal Fields ---- */
.pm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-label-note {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.72rem;
}

.pm-input,
.pm-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.875rem;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.pm-input::placeholder,
.pm-textarea::placeholder {
  color: rgba(255, 255, 255, 0.43);
}

.pm-input:hover,
.pm-textarea:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.pm-input:focus,
.pm-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.pm-textarea {
  resize: vertical;
  min-height: 88px;
}

/* ---- Radio & Checkbox Groups ---- */
.pm-radio-group,
.pm-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pm-radio,
.pm-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}

.pm-radio:hover,
.pm-checkbox:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.pm-radio input[type="radio"],
.pm-checkbox input[type="checkbox"] {
  accent-color: #fff;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.pm-price-tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.56);
  letter-spacing: 0.02em;
}

.pm-radio-price {
  margin-left: auto;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.56);
}

/* ---- Tooltip button ---- */
.pm-tooltip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.6rem;
  font-weight: 700;
  cursor: help;
  position: relative;
  transition: background 0.15s;
  font-family: var(--font-main);
}

.pm-tooltip-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.pm-tooltip-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #1e232a;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  white-space: normal;
  width: 220px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ---- Live Estimate Result ---- */
.pm-estimate-result {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pm-estimate-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.pm-estimate-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pm-estimate-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.53);
  font-style: italic;
}

/* ---- Modal Submit ---- */
.pm-submit {
  width: 100%;
  margin-top: 4px;
}

.pm-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.53);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ---- Modal Success ---- */
.pm-success {
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.pm-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(39, 201, 63, 0.12);
  border: 1px solid rgba(39, 201, 63, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #27c93f;
}

.pm-success-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.pm-success-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.73);
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1020px) {
  .pricing-cards {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card--redesign {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .pricing-section {
    padding: clamp(56px, 8vh, 100px) clamp(16px, 5vw, 32px);
  }

  .pricing-lead {
    margin-bottom: 36px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .pricing-card--redesign {
    grid-column: auto;
  }

  /* In 1-col layout the cantilever visual trick isn't needed */
  .pricing-card--audit,
  .pricing-card--retainer {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .pricing-card--redesign .pc-cta {
    margin-bottom: 0;
  }

  .pricing-card {
    padding: 24px 20px 22px;
  }

  .pm-box {
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
  }

  .pm-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .pm-form {
    padding: 16px 16px 28px;
  }

  .pm-header {
    padding: 16px 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-overlay,
  .pm-box {
    animation: none;
  }

  .pc-tag--retainer-promo,
  .pc-tag--free {
    animation: none !important;
  }
}
