/* access-card.css — the early-access panel in the hero.
 *
 * "Get Early Access" used to navigate to beta.krystalize.ai. It now fades a
 * signup card up in the hero's right-hand space, and the signup posts to the
 * beta app's API. Nothing leaves this page.
 *
 * Lifted from the beta app's beta-gate.css so the two surfaces cannot drift.
 * Every colour, radius, face and easing is a krystalize-ds.css token — there
 * are no literals here except the two rgba() glows the site itself uses.
 *
 * .hero-split REPLACES .hm-6 on the hero container: same max-width, margin and
 * padding, but a two-column grid instead of a single flex column.
 */

.hero-split {
  max-width: 1280px;
  margin: 0 auto;
  padding: 150px 48px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  align-items: center;
  gap: 56px;
}

/* Below the split, the card stacks under the copy and the hero keeps its
   original single-column rhythm. */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    padding: 110px 32px 70px;
    gap: 36px;
  }
}

/* The hero copy column — mirrors .hm-6's stack without overriding it. */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.access-card {
  padding: 28px;
  background: var(--glass-card-bg);
  border: var(--glass-border);
  border-radius: var(--kr-radius-xl);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hidden until "Get Early Access" is pressed. [hidden] alone loses to the
   display:flex above, so it is stated at the same specificity. */
.access-card[hidden] {
  display: none;
}

/* Fades UP. Honours reduced-motion: the card still appears, it just does not
   travel. */
.access-card--enter {
  animation: access-rise 0.42s var(--ease-crystal) both;
}

@keyframes access-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .access-card--enter { animation: none; }
}

.access-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--kr-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--old-gold);
}

/* The gem tick, drawn not imported — one glyph, no request. */
.access-card__gem {
  width: 8px;
  height: 8px;
  background: var(--old-gold);
  transform: rotate(45deg);
  border-radius: 1px;
}

.access-card__system {
  margin: 6px 0 0;
  font-family: var(--kr-font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--kr-foreground);
}

.access-card__note {
  margin: 4px 0 0;
  font-family: var(--kr-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--kr-muted-foreground);
}

.access-card__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* display:flex above outbids the UA stylesheet's [hidden]{display:none}, so
   hiding the form on success has to be stated here. */
.access-card__field[hidden] {
  display: none;
}

.access-card__field label {
  font-family: var(--kr-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kr-muted-foreground);
}

.access-card input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--kr-font-body);
  font-size: 15px;
  color: var(--kr-foreground);
  background: rgba(3, 3, 3, 0.55);
  border: 1px solid var(--kr-border);
  border-radius: var(--kr-radius-lg);
  outline: none;
  transition: border-color 0.25s var(--ease-crystal), box-shadow 0.25s var(--ease-crystal);
}

.access-card input[type="email"]::placeholder { color: var(--kr-muted-foreground); }

.access-card input[type="email"]:focus-visible {
  border-color: var(--old-gold);
  box-shadow: 0 0 0 3px rgba(183, 142, 51, 0.22);
}

.access-card__submit {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--kr-font-body);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-brand);
  border: none;
  border-radius: var(--kr-radius-lg);
  box-shadow: 0 4px 16px rgba(183, 142, 51, 0.25);
  cursor: pointer;
  transition: filter 0.25s var(--ease-crystal), transform 0.12s var(--ease-crystal);
}

.access-card__submit:hover:not(:disabled) { filter: brightness(1.08); }
.access-card__submit:active:not(:disabled) { transform: translateY(1px); }

.access-card input:disabled,
.access-card__submit:disabled { opacity: 0.55; cursor: not-allowed; }

.access-card__fine {
  margin: 0;
  font-family: var(--kr-font-mono);
  font-size: 11px;
  line-height: 1.75;
  color: var(--kr-muted-foreground);
}

.access-card__feedback {
  margin: 0;
  font-family: var(--kr-font-body);
  font-size: 14px;
  line-height: 1.6;
}

.access-card__feedback.success { color: var(--success); }
.access-card__feedback.error { color: var(--vermilion); }
