/* ==========================================================================
   PREVIEW GATE — temporary. Delete this file at launch (see gate.js).
   ========================================================================== */

/* hide the site entirely until unlocked, so its entrance animation plays after */
.is-gated .card { display: none; }

.gate {
  width: min(440px, 100%);
  padding: 40px 40px 32px;
  background: var(--kertas);
  border: 1px solid var(--garis);
  border-radius: var(--card-r);
  box-shadow:
    0 1px 2px rgba(26, 26, 26, 0.03),
    0 30px 70px -40px rgba(70, 48, 26, 0.22);
  animation: rise 0.9s var(--ease) both;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.is-unlocking .gate {
  opacity: 0;
  transform: translateY(-10px);
}

.gate__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.gate__brand span { display: flex; flex-direction: column; line-height: 1; }

.gate__brand small {
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--aksen);
}

.gate__brand b {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 21px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tinta);
}

.gate__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aksen);
}

.gate__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--aksen);
}

.gate__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--tinta);
}

.gate__title em {
  display: block;
  font-style: italic;
  font-weight: 340;
  color: var(--aksen);
}

.gate__text {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--redup);
}

.gate__form { margin-top: 28px; }

.gate__label {
  display: block;
  margin-bottom: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tinta);
}

.gate__input {
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border: 1px solid var(--garis);
  border-radius: 999px;
  background: var(--putih);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px; /* 16px stops iOS from zooming in on focus */
  letter-spacing: 0.08em;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.gate__input:focus {
  border-color: var(--aksen);
  box-shadow: 0 0 0 4px rgba(0, 84, 55, 0.1);
}

.gate__error {
  min-height: 20px;
  margin: 8px 0 6px 22px;
  font-size: 13px;
  color: #A33A2B;
}

.gate__submit {
  width: 100%;
  cursor: pointer;
  font-family: var(--sans);
}

.gate__submit:hover .arrow { transform: translateX(4px); }

.gate.is-wrong .gate__input {
  border-color: #A33A2B;
  box-shadow: 0 0 0 4px rgba(163, 58, 43, 0.08);
  animation: gate-nudge 0.4s ease-in-out;
}

@keyframes gate-nudge {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

.gate__foot {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--garis);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--redup);
}

@media (max-width: 420px) {
  .gate { padding: 32px 24px 26px; border-radius: 20px; }
  .gate__brand { margin-bottom: 32px; }
}
