/* Marketing Stability Layer
   Keep high-churn marketing UI overrides in one place to reduce regression risk. */

/* -------------------------------
   Entry Split Buttons (mobile consistency)
-------------------------------- */
@media (max-width: 640px) {
  .entry-split {
    flex-direction: column;
  }

  .entry-split .hero-btn {
    width: 100%;
    min-height: 44px;
  }

  .entry-split .hero-btn.primary,
  .entry-split .hero-btn.secondary {
    height: 44px;
    padding: 0 16px;
    text-decoration: none;
    justify-content: center;
  }

  .entry-split .hero-btn.secondary {
    font-weight: 700;
    border: 1px solid #bfd7ff;
    background: #f8fbff;
    color: #1d4ed8;
  }
}

/* -------------------------------
   Product Preview (mobile readability)
-------------------------------- */
.preview-demo-meta .demo-row div {
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .preview-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .preview-demo-meta .demo-row {
    grid-template-columns: minmax(0, 1fr) 52px 52px;
  }

  .preview-demo-meta .demo-row.body a {
    display: block;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* -------------------------------
   Package Detail Hero Buttons
-------------------------------- */
.pd-actions .hero-btn {
  min-height: 44px;
}

.pd-actions .hero-btn.secondary {
  height: 44px;
  padding: 0 16px;
  font-weight: 700;
  text-decoration: none;
  justify-self: stretch;
}

@media (max-width: 640px) {
  .pd-actions {
    flex-direction: column;
  }

  .pd-actions .hero-btn {
    width: 100%;
    min-height: 44px;
  }

  .pd-actions .hero-btn.secondary {
    height: 44px;
    padding: 0 16px;
    border: 1px solid #bfd7ff;
    text-decoration: none;
    justify-content: center;
  }
}

/* -------------------------------
   Lead Success Modal
-------------------------------- */
.lead-success-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
}

.lead-success-modal.open {
  display: block;
}

.lead-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.45);
}

.lead-success-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 520px);
  border-radius: 16px;
  background: #fff;
  padding: 28px 24px 22px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.24);
}

.lead-success-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lead-success-eyebrow {
  margin: 0;
  color: #2563eb;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-success-dialog h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.35;
  color: #0f172a;
}

.lead-success-desc {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.lead-success-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.lead-success-btn {
  flex: 1;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3f2;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
}

.lead-success-btn.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

@media (max-width: 640px) {
  .lead-success-dialog {
    padding: 24px 16px 16px;
    width: calc(100vw - 24px);
  }

  .lead-success-dialog h3 {
    font-size: 18px;
  }

  .lead-success-actions {
    flex-direction: column;
  }
}
