.resource-gated {
  background: #f5f7f8;
}

.resource-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at top left, rgba(212, 165, 116, 0.18), transparent 28rem),
    linear-gradient(160deg, #f5f7f8 0%, #edf3f5 45%, #f8fafb 100%);
}

.resource-gated.is-unlocked .resource-gate {
  display: none;
}

.resource-content {
  display: none;
}

.resource-gated.is-unlocked .resource-content {
  display: block;
}

.resource-gate__card {
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 430px);
  gap: 2rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 77, 95, 0.08);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 30px 70px rgba(22, 46, 58, 0.12);
  backdrop-filter: blur(10px);
}

.resource-gate__content {
  padding: 0.5rem 0.5rem 0.5rem 0;
}

.resource-gate__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(26, 77, 95, 0.08);
  color: #1a4d5f;
  font: 700 0.78rem/1 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.resource-gate__title {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  color: #173746;
  margin-bottom: 1rem;
}

.resource-gate__desc {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5a63;
  max-width: 60ch;
  margin-bottom: 1.25rem;
}

.resource-gate__bullets {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.resource-gate__bullets li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #22343d;
  line-height: 1.5;
}

.resource-gate__bullets li::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.32rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4a574, #e67e22);
  flex: 0 0 auto;
  box-shadow: 0 0 0 5px rgba(230, 126, 34, 0.12);
}

.resource-gate__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.resource-gate__pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(26, 77, 95, 0.1);
  color: #35505c;
  font: 600 0.9rem/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
}

.resource-gate__form {
  background: #fff;
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(26, 77, 95, 0.08);
}

.resource-gate__form-title {
  font: 800 1.4rem/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #173746;
  margin-bottom: 0.55rem;
}

.resource-gate__form-copy {
  font: 400 0.95rem/1.6 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #5d6b72;
  margin-bottom: 1.25rem;
}

.resource-gate__field-row {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 1fr 1fr;
}

.resource-gate__field {
  margin-bottom: 0.95rem;
}

.resource-gate__field label {
  display: block;
  margin-bottom: 0.45rem;
  font: 700 0.9rem/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #1f3945;
}

.resource-gate__field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(26, 77, 95, 0.14);
  border-radius: 12px;
  padding: 0.9rem 0.95rem;
  font: 500 1rem/1.2 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #1c2e36;
  background: #fcfdfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.resource-gate__field input:focus {
  outline: none;
  border-color: #2c7a8f;
  box-shadow: 0 0 0 4px rgba(44, 122, 143, 0.12);
  background: #fff;
}

.resource-gate__submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  background: linear-gradient(135deg, #1a4d5f 0%, #2c7a8f 100%);
  color: #fff;
  font: 800 1rem/1 'Inter', 'Segoe UI', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(26, 77, 95, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.resource-gate__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(26, 77, 95, 0.26);
}

.resource-gate__submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.resource-gate__privacy {
  margin-top: 0.9rem;
  font: 400 0.83rem/1.6 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #66757e;
  text-align: center;
}

.resource-gate__error {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff2f2;
  color: #9c2f2f;
  font: 600 0.9rem/1.5 'Inter', 'Segoe UI', Arial, sans-serif;
}

.resource-gate__error.is-visible {
  display: block;
}

.resource-gate-success {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem;
  background: linear-gradient(135deg, #173746 0%, #1f5b6e 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(23, 55, 70, 0.16);
}

.resource-gated.is-unlocked .resource-gate-success {
  display: block;
}

.resource-gate-success__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
}

.resource-gate-success__text {
  font: 600 0.96rem/1.5 'Inter', 'Segoe UI', Arial, sans-serif;
}

.resource-gate-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.resource-gate-success__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font: 800 0.92rem/1 'Inter', 'Segoe UI', Arial, sans-serif;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.resource-gate-success__btn--primary {
  background: #d4a574;
  color: #173746;
}

.resource-gate-success__btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.resource-gate-success__btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .resource-gate__card {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    border-radius: 20px;
  }

  .resource-gate__content {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .resource-gate {
    padding: 1rem 0.75rem;
  }

  .resource-gate__card,
  .resource-gate__form {
    padding: 1rem;
  }

  .resource-gate__field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .resource-gate__title {
    font-size: 2rem;
  }

  .resource-gate__desc {
    font-size: 0.98rem;
  }

  .resource-gate-success {
    padding: 0.85rem 0.75rem;
  }

  .resource-gate-success__actions {
    width: 100%;
  }

  .resource-gate-success__btn {
    width: 100%;
  }
}
