/* Warm matched gate — visually follows the approved Return Home gate. */
body[data-view="gateView"] {
  background: #efe5d6;
  color: #1b1509;
}
body[data-view="gateView"] .site-head,
body[data-view="gateView"] > footer {
  display: none;
}
body[data-view="gateView"] main {
  min-height: 100svh;
}

.gate-view {
  min-height: 100svh;
  padding: 46px 0 calc(34px + env(safe-area-inset-bottom));
  color: #1b1509;
  background:
    radial-gradient(115% 70% at 50% 0%, #fbf6ee 0%, #f4ecdf 42%, #efe5d6 70%, #e7dac7 100%);
}
.gate-shell {
  width: min(560px, calc(100% - 28px));
  max-width: 560px;
  padding: 0;
}
.gate-shell .eyebrow {
  margin: 0;
  color: #7a5000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.gate-shell h1 {
  margin-top: 10px;
  color: #15100a;
  font-size: clamp(42px, 10.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -.052em;
}
.gate-lead {
  margin-top: 15px;
  color: #5b4a2e;
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.5;
  letter-spacing: -.015em;
}

.gate-seal {
  position: relative;
  width: min(268px, 74%);
  aspect-ratio: 4 / 5;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 78px 78px 14px 14px;
  background: #1a2136;
  box-shadow:
    0 0 0 1px rgba(27, 21, 9, .16),
    0 26px 52px -20px rgba(27, 21, 9, .6);
}
.gate-seal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.35) brightness(1.75) contrast(.92);
  opacity: 1;
  transform: scale(1.18);
}
.gate-seal::after {
  content: none;
}
.gate-seal-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(72% 52% at 50% 52%, rgba(8, 11, 22, .84), rgba(8, 11, 22, .52) 62%, rgba(8, 11, 22, .18) 100%);
}
.gate-seal-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  padding: 0 18px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  transform: translate(-50%, -50%);
}
.gate-seal-tag > span {
  position: static;
  inset: auto;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: auto;
  text-align: center;
  letter-spacing: normal;
  text-transform: none;
}
.gate-seal-tag > .gate-check {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9b96b;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .75);
}
.gate-check svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #1a1206;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gate-seal-tag b {
  display: block;
  margin: 0;
  color: #f3ce8e;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.gate-seal-tag > span:last-child {
  color: #d8deee;
  font-size: 13px;
  line-height: 1.4;
}

.gate-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 28px 0 0;
  padding: 0;
}
.gate-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 17px;
  list-style: none;
  border: 1px solid rgba(27, 21, 9, .13);
  border-radius: 17px;
  background: rgba(255, 255, 255, .68);
  box-shadow: none;
}
.gate-list i {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #15100a;
  color: #f3ce8e;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.gate-list span {
  color: #5f4e32;
  font-size: 14px;
  line-height: 1.45;
}
.gate-list b {
  display: block;
  margin-bottom: 2px;
  color: #15100a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.gate-shell form {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.gate-shell form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gate-shell form input {
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 17px 20px;
  border: 1px solid rgba(27, 21, 9, .2);
  border-radius: 17px;
  background: #fff;
  color: #15100a;
  font: 500 17px/1.2 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-appearance: none;
}
.gate-shell form input::placeholder {
  color: #8b7a5c;
  opacity: 1;
}
.gate-shell form input:focus {
  outline: 2px solid #15100a;
  outline-offset: 2px;
  border-color: #15100a;
  background: #fff;
}
.gate-shell form input[aria-invalid="true"] {
  border-color: #96280a;
}
.gate-error {
  display: none;
  margin: 0;
  color: #96280a;
  font-size: 13px;
  line-height: 1.4;
}
.gate-error.is-visible {
  display: block;
}
.gate-shell form .button-primary,
.gate-start {
  width: 100%;
  min-height: 62px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #241a08, #100a02);
  color: #f3ce8e;
  font-size: 17px;
  box-shadow: 0 12px 26px -14px rgba(27, 21, 9, .85);
}
.gate-note {
  margin: 0;
  color: #6b5a3c;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.gate-shell .retake {
  margin: 8px auto 0;
  color: #6b5a3c;
  font-size: 13.5px;
  font-weight: 600;
}
.gate-start {
  display: flex;
  margin-top: 25px;
}

@media (min-width: 620px) {
  .gate-view {
    padding-top: 52px;
  }
  .gate-shell {
    width: min(560px, calc(100% - 64px));
  }
  .gate-list li {
    padding: 16px 18px;
  }
}

@media (max-width: 390px) {
  .gate-view {
    padding-top: 38px;
  }
  .gate-shell h1 {
    font-size: clamp(39px, 11vw, 44px);
  }
  .gate-seal {
    margin-top: 25px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .gate-seal {
    animation: warmSealIn .5s cubic-bezier(.2, .7, .3, 1) both;
  }
}
@keyframes warmSealIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}
