/* =========================================================================
   PUMP KITCHENS AE — pre-launch capture
   The signup block, and the "coming soon" lock that gates the full menu.
   ========================================================================= */

/* ---------- signup ---------- */
.signup {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}

.signup__perks {
  margin-top: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 44ch;
}
.signup__perk {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding-block: 14px;
  border-top: 1px solid var(--d-rule-soft);
  font-size: 15px;
  color: var(--d-mid);
}
.signup__perk:last-child { border-bottom: 1px solid var(--d-rule-soft); }
.signup__perk b {
  flex: none;
  min-width: 22px;
  color: var(--accent);
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ---------- the form ---------- */
.form {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--d-rule-soft);
  border-radius: 8px;
  padding: clamp(22px, 2.6vw, 38px);
}
/* the confetti burst is painted onto a canvas laid over the whole card */
.form__confetti {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.form.is-sending .btn { opacity: 0.72; pointer-events: none; }
/* honeypot: kept in the DOM (bots fill it) but off-screen for people + AT */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__title {
  font-family: var(--f-display);
  font-size: clamp(19px, 1.9vw, 26px);
  text-transform: uppercase;
  line-height: 1;
  color: var(--d-hi);
  margin-bottom: 6px;
}
.form__sub {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--d-mid);
  margin-bottom: clamp(20px, 2.2vw, 28px);
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--d-mid);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 5px;
  border: 1px solid var(--d-rule);
  background: rgba(6, 9, 11, 0.5);
  color: var(--d-hi);
  font-size: 15px;
  font-weight: 300;
  transition: border-color 0.3s var(--e-out), background 0.3s var(--e-out);
}
.field input::placeholder { color: var(--d-lo); }
.field input:hover { border-color: rgba(255, 255, 255, 0.25); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(6, 9, 11, 0.75);
}
.field.is-bad input { border-color: #d4726a; }
.field__err {
  margin-top: 7px;
  font-size: 12px;
  color: #e08b83;
  min-height: 0;
}
.field.is-bad .field__err { min-height: 1em; }

/* consent */
.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--d-mid);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent-mid);
  cursor: pointer;
}
.consent.is-bad { color: #e08b83; }

.form .btn { width: 100%; justify-content: center; margin-top: 14px; }

.form__note {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--d-lo);
}
.form__status {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--accent);
}

/* =========================================================================
   Sent state — the celebratory confirmation
   A ring pulses out from the badge, the tick draws itself, then the copy
   rises in. The confetti (canvas) is handled in signup.js. Every piece is
   collapsed to a static tick under prefers-reduced-motion (block at the end).
   ========================================================================= */
.form__done {
  display: none;
  position: relative;
  z-index: 5;
  text-align: center;
  padding-block: clamp(10px, 2vw, 26px);
}
.form.is-sent .form__body { display: none; }
.form.is-sent .form__done { display: block; }

.form__done-mark {
  position: relative;
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(169, 203, 164, 0.16);
  color: var(--accent);
}
/* the pulsing ring */
.form__done-mark::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
}
.form.is-sent .form__done-mark { animation: pk-pop 0.6s var(--e-out) both; }
.form.is-sent .form__done-mark::after { animation: pk-ring 1.05s var(--e-out) 0.05s both; }

/* the tick draws itself (path length of "M4 12.5l5.5 5.5L20 7" ≈ 24) */
.form__done-mark svg path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form.is-sent .form__done-mark svg path { animation: pk-check 0.5s var(--e-out) 0.22s forwards; }

.form__done h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 28px);
  text-transform: uppercase;
  color: var(--d-hi);
  margin-bottom: 8px;
}
.form__done p { font-size: 14px; font-weight: 300; color: var(--d-mid); max-width: 34ch; margin-inline: auto; }
.form.is-sent .form__done h3 { animation: pk-rise 0.7s var(--e-out) 0.30s both; }
.form.is-sent .form__done p  { animation: pk-rise 0.7s var(--e-out) 0.40s both; }

@keyframes pk-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes pk-ring {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.1); opacity: 0; }
}
@keyframes pk-check { to { stroke-dashoffset: 0; } }
@keyframes pk-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Motion off: no burst, no pulse — just the confirmation with a solid tick. */
@media (prefers-reduced-motion: reduce) {
  .form.is-sent .form__done-mark,
  .form.is-sent .form__done h3,
  .form.is-sent .form__done p { animation: none; }
  .form__done-mark::after { display: none; }
  .form__done-mark svg path { stroke-dashoffset: 0; animation: none; }
}

/* =========================================================================
   The lock — a blurred slab of the real menu with a gate card over it
   ========================================================================= */
.locked__stage { position: relative; }

.locked__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  filter: blur(9px) saturate(0.65);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
  max-height: clamp(420px, 52vh, 560px);
  overflow: hidden;
  /* fade the slab out at the bottom so it reads as "more below" */
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

.locked__gate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.gate {
  text-align: center;
  max-width: 540px;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 10px;
  background: rgba(10, 13, 15, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--d-rule);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.gate__lock {
  width: 46px;
  height: 46px;
  margin: 0 auto clamp(16px, 2vw, 22px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(169, 203, 164, 0.14);
  color: var(--accent);
}
.gate__lock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gate .eyebrow { justify-content: center; margin-bottom: 14px; }
.gate h2 { margin-bottom: 14px; color: var(--d-hi); }
.gate p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--d-mid);
  max-width: 40ch;
  margin-inline: auto;
}
.gate .btn { margin-top: clamp(20px, 2.4vw, 30px); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .signup { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .locked__grid { max-height: 380px; }
  .gate { padding: 26px 20px; }
}
