/* Sign Up page */

.signup {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

/* ---------- Photo ---------- */
.signup__photo {
  position: relative;
  margin: 0 var(--s-4);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sage-pale);
}
.signup__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% 45%;   /* keep the traveler (right of frame) in view */
}
.signup__plate {
  position: absolute;
  left: var(--s-3); bottom: var(--s-3);
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3);
  background: var(--canvas);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-1);
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone);
}
.signup__plate svg { width: 20px; height: 20px; color: var(--forest); }
.signup__credit {
  position: absolute;
  right: var(--s-4); bottom: var(--s-4);
  display: none;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* ---------- Main column ---------- */
.signup__main {
  display: flex;
  flex-direction: column;
}
.signup__content {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--s-6) var(--s-4) var(--s-8);
}
.signup__intro { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }

.form { display: grid; gap: var(--s-5); }
.form__actions { display: grid; gap: var(--s-4); margin-top: var(--s-2); }
.form__note {
  display: flex; gap: var(--s-3); align-items: flex-start;
  font-size: 1rem; color: var(--text-2);
}
.form__note svg { width: 22px; height: 22px; flex: none; color: var(--stone); margin-top: 1px; }

.divider {
  display: flex; align-items: center; gap: var(--s-4);
  margin: var(--s-6) 0 var(--s-5);
  font-size: 1.0625rem; color: var(--text-2);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* ---------- Success state ---------- */
.sent { display: none; }
.is-sent .form-wrap { display: none; }
.is-sent .sent { display: grid; gap: var(--s-5); animation: rise 520ms var(--ease-out) both; }

.sent__icon {
  width: 88px; height: 88px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--forest);
}
.sent__icon svg { width: 44px; height: 44px; }
.sent__email {
  display: inline-block;
  padding: 2px 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.sent__tip {
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  font-size: 1.0625rem;
  color: var(--text-2);
}
.sent__tip strong { color: var(--ink); }
.link-button {
  justify-self: start;
  min-height: 48px;
  padding: 0;
  background: none; border: 0;
  font: inherit; font-size: 1.0625rem; font-weight: 600;
  color: var(--stone);
  text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px;
  cursor: pointer;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ---------- How it works ---------- */
.how {
  background: var(--sage-pale);
  padding: var(--s-8) var(--s-4);
}
.how__inner { max-width: 1200px; margin: 0 auto; }
.how h2 { margin-bottom: var(--s-6); color: var(--forest); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-6);
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  align-items: start;
}
.step__num {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--canvas);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--forest);
}
.step h3 {
  font-size: 1.25rem; font-weight: 600; line-height: 1.3;
  margin: 10px 0 var(--s-1);
}
.step p { color: #2f3a2c; }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .signup__photo { margin: 0 var(--s-6); aspect-ratio: 16 / 9; }
  .signup__content { padding: var(--s-7) var(--s-6) var(--s-9); }
  .how { padding: var(--s-9) var(--s-6); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .step { grid-template-columns: 1fr; gap: var(--s-4); }
  .step h3 { margin-top: 0; }
}

/* ---------- Desktop: photo left, form right ---------- */
@media (min-width: 1024px) {
  .signup {
    grid-template-columns: minmax(0, 1.1fr) minmax(480px, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 100vh;
  }
  /* Same width as the form column so the wordmark lines up with the headline */
  .signup > .topbar { grid-column: 2; grid-row: 1; width: 100%; max-width: 560px; margin: 0 auto;   /* border-box, same as .signup__content */ padding: var(--s-5) var(--s-7); }
  .signup__photo {
    position: sticky;
    top: var(--s-4);
    height: calc(100vh - 2 * var(--s-4));
    min-height: 640px;
    margin: var(--s-4) 0 var(--s-4) var(--s-4);
    aspect-ratio: auto;
    border-radius: var(--r-xl);
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .signup__photo img { object-position: 74% 50%; }
  .signup__plate { left: var(--s-5); bottom: var(--s-5); padding: var(--s-3) var(--s-5) var(--s-3) var(--s-4); font-size: 1.0625rem; }
  .signup__credit { display: block; right: var(--s-6); bottom: var(--s-6); }
  .signup__content {
    grid-column: 2; grid-row: 2;
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--s-3) var(--s-7) var(--s-7);
  }
  .signup__content .display { font-size: clamp(2.75rem, 1rem + 2.6vw, 3.5rem); }
  .signup__intro { margin-bottom: var(--s-5); }
  .form { gap: var(--s-4); }
}
