.resource-gate-open{
  overflow: hidden;
}

.resource-gate-overlay{
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(10,10,13,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease-out), visibility 0s linear .28s;
}

.resource-gate-overlay.show{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.resource-gate-panel{
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 36px 34px 30px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, #1c1c23, var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 36px 86px -28px rgba(0,0,0,.88);
  text-align: left;
  opacity: 0;
  transform: translateY(18px) scale(1.0185);
  transform-origin: center center;
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-spring);
  scrollbar-width: thin;
  scrollbar-color: rgba(224,160,92,.45) transparent;
}

.resource-gate-overlay.show .resource-gate-panel{
  opacity: 1;
  transform: scale(1.05);
}

.resource-gate-close{
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.03);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: color .2s, border-color .2s, background .2s, transform .15s;
}

.resource-gate-close:hover{
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.06);
}

.resource-gate-close:active{
  transform: scale(.97);
}

.resource-gate-eyebrow{
  display: block;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.resource-gate-title{
  margin: 0 72px 10px 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.resource-gate-intro{
  margin: 0 0 24px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.72;
}

.resource-field{
  margin-bottom: 0;
}

.resource-field label,
.resource-consent-title{
  display: block;
  margin-bottom: 9px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

.resource-field > label{
  margin-left: 3px;
}

.resource-email-input{
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: #101015;
  color: var(--text);
  caret-color: var(--accent);
  font: 500 16px/1 var(--font);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.resource-email-input::placeholder{
  color: #73727c;
  font-weight: 500;
}

.resource-email-input:hover{
  border-color: rgba(255,255,255,.24);
}

.resource-email-input:focus{
  border-color: var(--accent);
  background: #121217;
  box-shadow: 0 0 0 3px rgba(224,160,92,.14);
}

.resource-email-input[aria-invalid="true"]{
  border-color: #e59b8f;
  box-shadow: 0 0 0 3px rgba(229,155,143,.1);
}

.resource-helper,
.resource-field-error{
  display: block;
  min-height: 18px;
  margin: 7px 2px 0;
  font-size: 12px;
  line-height: 1.5;
}

.resource-helper{
  color: #96949d;
}

.resource-field-error,
.resource-form-error{
  color: #efaa9b;
}

.resource-field-error{
  margin-top: 0;
}

.resource-consents{
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.resource-consent-title{
  margin-bottom: 7px;
}

.resource-consent-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.resource-consent-item + .resource-consent-item{
  margin-top: 0;
}

.resource-consent-toggle{
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -4px;
  cursor: pointer;
}

.resource-consent-toggle input{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.resource-check-box{
  position: relative;
  width: 21px;
  height: 21px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 5px;
  background: #f3f2ef;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.12);
  transform: scale(1);
  transition:
    background-color .24s var(--ease-out),
    border-color .24s var(--ease-out),
    box-shadow .24s var(--ease-out),
    transform .18s var(--ease-spring);
}

.resource-check-box::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 10px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: translate(-50%, -58%) rotate(45deg) scale(.35);
  transform-origin: center;
  transition: opacity .16s ease, transform .34s var(--ease-spring);
}

.resource-consent-toggle input:checked + .resource-check-box{
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 0 0 4px rgba(224,160,92,.1);
  transform: scale(1);
}

.resource-consent-toggle input:checked + .resource-check-box::after{
  opacity: 1;
  transform: translate(-50%, -58%) rotate(45deg) scale(1);
}

.resource-consent-toggle input:active + .resource-check-box{
  transform: scale(.92);
}

.resource-consent-toggle input:focus-visible + .resource-check-box{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.resource-consent-copy{
  margin: 0;
}

.resource-legal-link{
  color: var(--accent);
  text-decoration: none;
  cursor: default;
  transition: none;
}

.resource-legal-link:hover,
.resource-legal-link:focus-visible{
  color: var(--accent);
  text-decoration: none;
}

.resource-legal-link:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.resource-consents.has-error{
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.resource-consents.has-error .resource-consent-title{
  color: #efaa9b;
}

.resource-consents.has-error .resource-check-box{
  border-color: rgba(239,170,155,.72);
  box-shadow: 0 0 0 3px rgba(239,170,155,.08);
}

.resource-form-error{
  min-height: 20px;
  margin: 8px 0 8px;
  font-size: 12.5px;
  line-height: 1.55;
}

.resource-submit{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 16px 34px -16px rgba(224,160,92,.72);
  font-size: 14.5px;
  font-weight: 600;
  transition: background .22s, box-shadow .25s, transform .15s, opacity .2s;
}

.resource-submit:hover:not(:disabled){
  background: var(--accent-hover);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 20px 38px -15px rgba(224,160,92,.82);
  transform: translateY(-1px);
}

.resource-submit:active:not(:disabled){
  transform: translateY(1px) scale(.99);
}

.resource-submit:disabled{
  cursor: wait;
  opacity: .72;
}

.resource-submit-spinner{
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(28,19,10,.26);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: resource-spin .72s linear infinite;
}

.resource-submit.is-loading .resource-submit-spinner{
  display: block;
}

@keyframes resource-spin{
  to{ transform: rotate(360deg); }
}

.resource-gate-note{
  margin: 13px auto 0;
  max-width: 58ch;
  color: #96949d;
  font-size: 11.5px;
  line-height: 1.65;
  text-align: center;
}

.resource-honeypot{
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

[data-resource-gate].is-gate-checking{
  pointer-events: none;
  opacity: .72;
}

[data-resource-gate].is-gate-checking::after{
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid rgba(28,19,10,.25);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: resource-spin .72s linear infinite;
}

.resource-sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px){
  .resource-gate-overlay{
    align-items: flex-start;
    padding: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .resource-gate-panel{
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    padding: 30px 22px 24px;
    border-radius: 18px;
  }

  .resource-gate-close{
    top: 14px;
    right: 14px;
    min-width: 54px;
    min-height: 44px;
  }

  .resource-gate-eyebrow{
    margin-right: 66px;
  }

  .resource-gate-title{
    margin-right: 60px;
    font-size: 22px;
  }

  .resource-gate-intro{
    margin-bottom: 23px;
    font-size: 14px;
  }

  .resource-consents{
    margin-top: 21px;
    padding: 0;
  }

  .resource-consent-item{
    align-items: center;
  }

  .resource-consent-toggle{
    margin: -4px;
  }
}

@media (prefers-reduced-motion: reduce){
  .resource-gate-overlay,
  .resource-gate-panel,
  .resource-check-box,
  .resource-check-box::after,
  .resource-submit,
  [data-resource-gate]::after{
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .resource-submit-spinner,
  [data-resource-gate].is-gate-checking::after{
    animation: none !important;
  }
}
