/* Thrive-imported landing pages — full-width sections, hero grids, forms */

.lp-import-page main {
  padding-top: 0;
}

.lp-import-page .header {
  position: relative;
  z-index: 10;
}

/* Thrive button fallback if transform missed a link */
.sw-lp a.tcb-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-weight: var(--font-bold, 700);
  text-decoration: none;
  background: var(--color-cta, #f2c01b);
  color: var(--color-cta-text, #3b3b3b);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-sm);
}

.sw-lp a.tcb-button-link:hover {
  background: var(--color-cta-hover, #d9a800);
}

.sw-lp-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.sw-lp-section--hero {
  background: linear-gradient(135deg, #fffdf5 0%, #ffffff 45%, #f8fafc 100%);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.sw-lp-section--alt {
  background: var(--color-bg-alt, #f5f7fa);
}

.sw-lp-section--accent {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #f9fafb;
}

.sw-lp-section--accent .sw-lp-title,
.sw-lp-section--accent .sw-lp-heading,
.sw-lp-section--accent p,
.sw-lp-section--accent li,
.sw-lp-section--accent .sw-lp-steps__text {
  color: #f3f4f6;
}

.sw-lp-section--accent a:not(.btn) {
  color: var(--color-primary, #f2c01b);
}

.sw-lp-section__inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
}

/* ---- Grid (ex-Thrive columns) ---- */
.sw-lp-grid__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.sw-lp-grid__row:has(.sw-lp-form):not(:has(.sw-lp-figure)) {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 0 auto;
}

.sw-lp-section--hero .sw-lp-grid__row {
  align-items: center;
}

.sw-lp-section--hero .sw-lp-grid__cell > p:first-child {
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-bold, 700);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark, #b8860b);
  margin-bottom: 0.75rem;
  text-align: center;
}

.sw-lp-section--hero .sw-lp-title,
.sw-lp-section--hero .sw-lp-heading,
.sw-lp-section--hero .sw-lp-block p {
  text-align: center;
}

.sw-lp-section--hero .sw-lp-grid__row {
  align-items: center;
}

.sw-lp-section--accent .sw-lp-grid__cell > p:first-child {
  color: var(--color-primary, #f2c01b);
}

.sw-lp-block {
  margin-bottom: 1rem;
}

.sw-lp-block p {
  text-align: center;
}

.sw-lp-section--default .sw-lp-block p,
.sw-lp-section--alt .sw-lp-block p {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Typography ---- */
.sw-lp-title {
  font-family: var(--font-heading, "Muli", sans-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: var(--font-extrabold, 800);
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--color-heading, #3b3b3b);
}

.sw-lp-heading {
  font-family: var(--font-heading, "Muli", sans-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-bold, 700);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--color-heading, #3b3b3b);
}

.sw-lp-section p {
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.75;
  color: var(--color-text, #3b3b3b);
  margin: 0 0 1rem;
}

.sw-lp-section a:not(.btn) {
  color: var(--color-link, #1372d3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Images ---- */
.sw-lp-figure {
  margin: 0;
}

.sw-lp-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-lg, 0 10px 15px rgba(0, 0, 0, 0.1));
}

.sw-lp-section--hero .sw-lp-image {
  max-width: 520px;
  margin-left: auto;
}

/* ---- Numbered steps ---- */
.sw-lp-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.sw-lp-steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm);
}

/* fallback if Thrive list markup partially remains */
.sw-lp-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm);
  margin: 0;
}

.sw-lp-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full, 9999px);
  background: var(--color-primary, #f2c01b);
  color: var(--color-cta-text, #3b3b3b);
  font-weight: var(--font-bold, 700);
  font-size: var(--text-sm, 0.875rem);
}

.sw-lp-steps__text {
  line-height: 1.65;
  color: var(--color-text, #3b3b3b);
}

/* ---- Lead form ---- */
.sw-lp-form {
  margin-top: 1.5rem;
}

.sw-lp-form__row {
  display: grid;
  gap: 0.75rem;
}

.sw-lp-form input {
  width: 100%;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: 0.9rem 1rem;
  font: inherit;
  background: #fff;
  transition: border-color var(--transition-fast, 150ms ease), box-shadow var(--transition-fast, 150ms ease);
}

.sw-lp-form input:focus {
  outline: none;
  border-color: var(--color-primary, #f2c01b);
  box-shadow: 0 0 0 3px rgba(242, 192, 27, 0.25);
}

.sw-lp-form__msg {
  margin-top: 0.75rem;
  font-size: var(--text-sm, 0.875rem);
  text-align: center;
}

.sw-lp-form .ck-msg--success {
  background: #ecfdf5;
  color: #065f46;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md, 8px);
}

.sw-lp-form .ck-msg--error {
  background: #fef2f2;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md, 8px);
}

/* ---- Buttons in content ---- */
.sw-lp-section .btn {
  margin-top: 0.5rem;
}

.sw-lp-section--accent .btn--primary {
  box-shadow: 0 8px 24px rgba(242, 192, 27, 0.35);
}

.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-weight: var(--font-bold, 700);
  color: var(--color-text, #3b3b3b);
  text-decoration: none;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  background: transparent;
  transition: background var(--transition-fast, 150ms ease);
}

.btn--ghost:hover {
  background: var(--color-bg-alt, #f5f7fa);
}

/* ---- Status pages (checkout / thank-you / download) ---- */
.sw-status-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background:
    radial-gradient(ellipse at top, rgba(242, 192, 27, 0.12), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.sw-status-page__card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  background: #fff;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid var(--color-border-light, #f3f4f6);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.sw-status-page__eyebrow {
  margin: 0 0 1rem;
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--font-bold, 700);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-dark, #b8860b);
}

.sw-status-page__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full, 9999px);
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success, #10b981);
  font-size: 1.75rem;
  font-weight: var(--font-bold, 700);
}

.sw-status-page__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
  color: var(--color-heading, #3b3b3b);
}

.sw-status-page__message {
  margin: 0 0 1.75rem;
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.65;
  color: var(--color-text-light, #6b7280);
}

.sw-status-page__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.sw-status-page__actions .btn {
  width: 100%;
  max-width: 320px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .sw-lp-grid__row {
    grid-template-columns: 1fr;
  }

  .sw-lp-section--hero .sw-lp-image {
    margin: 0 auto;
    max-width: 100%;
  }

  .sw-lp-section--hero .sw-lp-grid__col:last-child {
    order: -1;
  }
}

@media (max-width: 600px) {
  .sw-lp-form__row {
    grid-template-columns: 1fr;
  }
}
