/* Home page padlock: the password box from the teaser (/soon), at the foot of the
   page. Only in the --gated build (tools/build-waitlist.mjs); delete at launch.
   Uses opening.css tokens. One entrance curve; exits are not animated (the form
   hides at once); press scales down; no transition: all. */
.foot__lock {
  --gl-in: cubic-bezier(0.16, 1, 0.3, 1);
  --gl-d: 160ms;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--l-edge);
}
.foot__lock .lock__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--l-text-2);
  font: 500 var(--t-small)/1 var(--f-text);
  cursor: pointer;
  transition: transform var(--gl-d) var(--gl-in), opacity var(--gl-d) var(--gl-in);
}
.foot__lock .lock__btn:hover, .foot__lock .lock__btn[aria-expanded="true"] { color: var(--l-text); }
.foot__lock .lock__btn:active { transform: scale(var(--press-scale)); }
.foot__lock .lock__form { display: flex; align-items: center; gap: 8px; width: min(320px, calc(100vw - 2 * var(--gutter))); }
.foot__lock .lock__form[hidden] { display: none; }
.foot__lock .lock__input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  border: 1px solid var(--l-edge); border-radius: 12px;
  background: transparent; color: var(--l-text);
  font: 400 17px/1 var(--f-text);
}
.foot__lock .lock__input:focus-visible { outline: 2px solid var(--l-accent); outline-offset: 2px; border-radius: 12px; }
.foot__lock .lock__go {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: var(--r-pill);
  background: var(--l-accent); color: var(--l-on-accent);
  cursor: pointer;
  transition: transform var(--gl-d) var(--gl-in), opacity var(--gl-d) var(--gl-in);
}
.foot__lock .lock__go:active { transform: scale(var(--press-scale)); }
.foot__lock .lock__go[disabled] { opacity: .5; cursor: default; }
.foot__lock .lock__msg { min-height: 22px; color: var(--l-text-2); font-size: var(--t-small); text-align: center; }
.foot__lock .lock__msg.is-error { color: var(--l-text); }

@media (prefers-reduced-motion: no-preference) {
  .foot__lock .lock__form:not([hidden]) { animation: gl-rise 200ms var(--gl-in) both; }
  @keyframes gl-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .foot__lock .lock__btn:active, .foot__lock .lock__go:active { transform: none; }
}
