.lwwp-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  color: #172033;
  font-family: Arial, Helvetica, sans-serif;
}

.lwwp-modal.is-open {
  display: block;
}

.lwwp-modal-open {
  overflow: hidden;
}

.lwwp-modal *,
.lwwp-modal *::before,
.lwwp-modal *::after {
  box-sizing: border-box;
}

.lwwp-modal button,
.lwwp-modal input,
.lwwp-modal select {
  font: inherit;
}

.lwwp-modal button {
  cursor: pointer;
}

.lwwp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.68);
}

.lwwp-modal__dialog {
  position: relative;
  width: min(100% - 24px, 1120px);
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: auto;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 163, 74, 0.10), transparent 34%),
    linear-gradient(315deg, rgba(237, 122, 95, 0.10), transparent 32%),
    #eef2f7;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.lwwp-modal__close {
  position: sticky;
  top: 10px;
  left: calc(100% - 54px);
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  margin: 10px 10px -52px auto;
  place-items: center;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 50%;
  color: #172033;
  background: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  line-height: 1;
}

.lwwp-funnel-page {
  display: none;
  min-height: min(760px, calc(100vh - 24px));
  padding: 18px;
}

.lwwp-funnel-page.is-active {
  display: grid;
  place-items: center;
}

.lwwp-meta-stage {
  width: min(100%, 540px);
}

.lwwp-meta-post {
  overflow: hidden;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(23, 32, 51, 0.16);
}

.lwwp-meta-post__header {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 8px;
}

.lwwp-meta-post__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #0f7e38, #1877f2);
  font-weight: 800;
}

.lwwp-meta-post__identity {
  min-width: 0;
}

.lwwp-meta-post__identity strong,
.lwwp-meta-post__identity span {
  display: block;
}

.lwwp-meta-post__identity strong {
  font-size: 0.95rem;
}

.lwwp-meta-post__identity span {
  margin-top: 2px;
  color: #667085;
  font-size: 0.78rem;
}

.lwwp-meta-post__menu {
  border: 0;
  color: #667085;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
}

.lwwp-meta-post__primary {
  padding: 4px 14px 14px;
  font-size: 0.95rem;
  line-height: 1.38;
  white-space: pre-line;
}

.lwwp-meta-post__more {
  border: 0;
  padding: 0;
  color: #65676b;
  background: transparent;
  font: inherit;
  font-weight: 600;
}

.lwwp-meta-post__more:hover,
.lwwp-meta-post__more:focus-visible {
  color: #385898;
  text-decoration: underline;
}

.lwwp-meta-post__creative {
  display: block;
  width: 100%;
  height: auto;
  border-top: 1px solid #dce3ee;
  border-bottom: 1px solid #dce3ee;
  background: #f2f4f7;
}

.lwwp-meta-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 12px 14px 14px;
  background: #f0f2f5;
}

.lwwp-meta-preview__domain {
  color: #667085;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.lwwp-meta-preview__headline {
  margin: 0;
  color: #1d2939;
  font-size: 1.02rem;
  line-height: 1.2;
}

.lwwp-meta-preview__description {
  margin: 0;
  color: #667085;
  font-size: 0.86rem;
}

.lwwp-meta-preview__button {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #1877f2;
  font-weight: 700;
}

.lwwp-meta-post__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #dce3ee;
  color: #667085;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.lwwp-meta-post__footer span {
  padding: 12px 4px;
}

.lwwp-rich-experience {
  width: min(100%, 1060px);
  padding: 28px 0 22px;
}

.lwwp-experience-hero {
  max-width: 800px;
  margin: 0 auto 22px;
  text-align: center;
}

.lwwp-eyebrow {
  margin: 0 0 10px;
  color: #0f7e38;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lwwp-experience-hero h2,
.lwwp-lead-form__header h2,
.lwwp-thank-you h2 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.5rem);
  line-height: 0.98;
}

.lwwp-experience-hero__subheading {
  margin: 14px auto 0;
  color: #344054;
  font-size: clamp(1.05rem, 4vw, 1.45rem);
  font-weight: 700;
}

.lwwp-experience-hero__intro {
  max-width: 670px;
  margin: 12px auto 0;
  color: #647084;
  font-size: 1rem;
  line-height: 1.55;
}

.lwwp-benefit-grid {
  display: grid;
  gap: 12px;
}

.lwwp-benefit-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 36px rgba(23, 32, 51, 0.10);
}

.lwwp-benefit-card:nth-child(2) {
  border-top: 4px solid #e6b74a;
}

.lwwp-benefit-card:nth-child(3) {
  border-top: 4px solid #1877f2;
}

.lwwp-benefit-card:nth-child(4) {
  border-top: 4px solid #ed7a5f;
}

.lwwp-benefit-card__icon {
  margin-bottom: 14px;
  font-size: 2rem;
}

.lwwp-benefit-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.lwwp-benefit-card p {
  margin: 6px 0 0;
  color: #647084;
  line-height: 1.45;
}

.lwwp-primary-cta {
  display: block;
  width: min(100%, 420px);
  min-height: 56px;
  margin: 18px auto 0;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #16a34a;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.26);
  font-size: 1.03rem;
  font-weight: 800;
}

.lwwp-primary-cta:hover,
.lwwp-primary-cta:focus-visible {
  background: #0f7e38;
}

.lwwp-primary-cta:disabled {
  cursor: wait;
  opacity: 0.72;
}

.lwwp-lead-panel {
  width: min(100%, 640px);
}

.lwwp-lead-form,
.lwwp-thank-you {
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(23, 32, 51, 0.16);
}

.lwwp-lead-form {
  padding: 22px;
}

.lwwp-lead-form__header {
  padding-bottom: 16px;
  border-bottom: 1px solid #dce3ee;
}

.lwwp-lead-form__header h2,
.lwwp-thank-you h2 {
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.lwwp-lead-form__header p:not(.lwwp-eyebrow) {
  margin: 10px 0 0;
  color: #647084;
}

.lwwp-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #344054;
  font-size: 0.95rem;
  font-weight: 700;
}

.lwwp-field input,
.lwwp-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  color: #172033;
  background: #ffffff;
  padding: 10px 12px;
  font-weight: 400;
}

.lwwp-field select {
  line-height: 1.25;
}

.lwwp-field input:focus,
.lwwp-field select:focus {
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.14);
  outline: 0;
}

.lwwp-checkbox-group {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.lwwp-checkbox-group legend {
  margin-bottom: 10px;
  color: #344054;
  font-size: 0.95rem;
  font-weight: 700;
}

.lwwp-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.lwwp-checkbox-grid label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d9e2ee;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f5f7fb;
}

.lwwp-checkbox-grid input {
  width: 18px;
  height: 18px;
  accent-color: #1877f2;
}

.lwwp-form-message {
  margin: 14px 0 0;
  color: #b42318;
  font-size: 0.95rem;
}

.lwwp-lead-form__submit {
  width: 100%;
}

.lwwp-thank-you {
  padding: 34px 24px;
  text-align: center;
}

.lwwp-thank-you__mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #16a34a;
  font-size: 2rem;
  font-weight: 900;
}

.lwwp-thank-you p {
  margin: 12px auto 0;
  max-width: 390px;
  color: #647084;
  font-size: 1.08rem;
  line-height: 1.45;
}

@media (min-width: 560px) {
  .lwwp-funnel-page {
    padding: 28px;
  }

  .lwwp-meta-preview {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .lwwp-meta-preview__button {
    width: auto;
    min-width: 150px;
    margin-top: 0;
    padding: 0 18px;
  }

  .lwwp-meta-preview__domain,
  .lwwp-meta-preview__headline,
  .lwwp-meta-preview__description {
    grid-column: 1;
  }

  .lwwp-meta-preview__button {
    grid-column: 2;
    grid-row: 1 / 4;
  }

  .lwwp-checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 820px) {
  .lwwp-benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .lwwp-rich-experience {
    padding-top: 36px;
  }
}
