/* ============================================================
   beta.css — the /apply beta-access form + thank-you page.

   Loaded alongside landing.css and scoped under `.landing.apply-page`, so it
   inherits the landing design tokens (--ink*, --cream*, --taupe, --hair, radii,
   shadows, fonts) and the light/dark remaps for free. This file only adds the
   application layout, the form card, and the field chrome.
   ============================================================ */

.apply-page {
  min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────────────── */
.apply {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(110px, 16vh, 168px) var(--gutter) clamp(64px, 10vh, 120px);
}

.apply__shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

/* ── Intro column ───────────────────────────────────────────── */
.apply__intro {
  position: sticky;
  top: 130px;
}

.apply__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 22px;
}

.apply__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--taupe);
}

.apply__lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.62;
  color: var(--cream-mute);
  margin: 0 0 30px;
  max-width: 44ch;
}

.apply__criteria {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.apply__criteria li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream-soft);
}

.apply__criteria strong {
  color: var(--cream);
  font-weight: 600;
}

.apply__criteria-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--taupe-rgb), 0.14);
  border: 1px solid rgba(var(--taupe-rgb), 0.3);
  color: var(--taupe);
}

.apply__criteria-icon svg { width: 14px; height: 14px; }

.apply__assurance {
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream-dim);
  border-left: 2px solid var(--hair-strong);
  padding-left: 14px;
  margin: 0;
  max-width: 42ch;
}

/* ── Form card ──────────────────────────────────────────────── */
.apply__card {
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-4), var(--shadow-bloom);
}

.apply__card-head {
  margin-bottom: 22px;
}

.apply__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.apply__card-sub {
  font-size: 13px;
  color: var(--cream-mute);
  margin: 0;
}

.apply__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.apply__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.apply__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.apply__field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.apply__opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--cream-dim);
  font-size: 11px;
}

.apply__input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--cream);
  background: var(--ink-1);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-md);
  padding: 13px 15px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.apply__input::placeholder { color: var(--cream-dim); }

.apply__input:hover { border-color: var(--taupe-deep); }

.apply__input:focus {
  outline: none;
  border-color: var(--taupe);
  background: var(--ink-2);
  box-shadow: 0 0 0 4px rgba(var(--taupe-rgb), 0.16);
}

.apply__textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}

.apply__select {
  cursor: pointer;
  /* Custom chevron — appearance:none stripped the native one. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23bea98e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

.apply__error {
  font-size: 12.5px;
  color: var(--terracotta);
  margin: 0;
}

.apply__submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.apply__fine {
  font-size: 12px;
  color: var(--cream-dim);
  text-align: center;
  margin: 0;
}

.apply__fine a { color: var(--cream-mute); text-decoration: underline; text-underline-offset: 2px; }
.apply__fine a:hover { color: var(--taupe); }

/* ── Flash / validation banners ─────────────────────────────── */
.apply__flash {
  font-size: 13.5px;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  border: 1px solid var(--hair-strong);
}

.apply__flash--error,
.apply__flash--danger {
  background: rgba(194, 147, 122, 0.12);
  border-color: rgba(194, 147, 122, 0.4);
  color: var(--terracotta);
}

.apply__flash--success {
  background: rgba(138, 155, 123, 0.12);
  border-color: rgba(138, 155, 123, 0.4);
  color: var(--sage);
}

.apply__flash--info,
.apply__flash--warning {
  background: var(--ink-1);
  color: var(--cream-soft);
}

/* ── Honeypot — off-screen, never seen, never tabbed to ─────── */
.apply__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Thank-you page ─────────────────────────────────────────── */
.apply--thanks {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.apply__done {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.apply__done-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 26px;
  color: var(--taupe);
  background: rgba(var(--taupe-rgb), 0.14);
  border: 1px solid rgba(var(--taupe-rgb), 0.32);
  box-shadow: var(--shadow-bloom);
}

.apply__done-mark svg { width: 28px; height: 28px; }

.apply__done-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 16px;
}

.apply__done-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream-mute);
  margin: 0 0 30px;
}

.apply__done-lede strong { color: var(--cream-soft); font-weight: 600; }

.apply__done-actions { display: flex; gap: 12px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 880px) {
  .apply__shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .apply__intro { position: static; top: auto; }
}

@media (max-width: 520px) {
  .apply { padding-top: 104px; }
  .apply__row { grid-template-columns: 1fr; }
  /* 16px inputs prevent iOS from auto-zooming on focus. */
  .apply__input { font-size: 16px; }
  .apply__card { padding: 22px 18px; }
}
