/* signup.php -- a split-screen layout on top of the shared marketing chrome
   (includes/marketingLayout.php's marketing_header()/marketing_footer(),
   css/tokens.css + css/marketing.css). This file adds only what's new here:
   the two-column stage, the copy block, the right-hand "why RunMapApp" panel
   (icon-led feature grid + the claim-your-city callout), and the form.

   Form fields are NOT css/login.css's .login-field -- that class comes with
   a .login-card wrapper (padding/shadow) this page doesn't use, and the two
   pages already load different base stylesheets (login.css+main.css vs.
   marketing.css+tokens.css), so there's no single shared parent to hang a
   reused class off without importing one stylesheet into the other's
   context. Values below intentionally match login.css's so the fields look
   the same on both pages. */

.signup-hero {
  background: linear-gradient(180deg, #e7f0f6 0%, #f6f9fa 55%, var(--mk-paper) 100%);
  padding: 44px 0 64px;
}

.signup-stage {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(320px, 460px) 1fr;
  grid-template-areas: "copy visual" "form visual";
  /* Tried forcing the panel to match the left column's full height (stretch,
     then stretch + justify-content:space-between) -- both left it looking
     artificially padded out, either as dead space at the bottom or as
     unnaturally even gaps between unrelated groups. Reverted to align-items:
     start: the panel just takes its own natural height now. The single-
     column feature list below (was a 2x2 grid) closes most of the real gap
     with actual content instead of manufactured whitespace; what's left is a
     normal, honest height difference between a short marketing panel and a
     four-field form, not something worth forcing. */
  align-items: start;
}

.signup-copy { grid-area: copy; align-self: start; }
.signup-visual { grid-area: visual; }
.signup-form-wrap { grid-area: form; align-self: start; }

.signup-copy h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 700;
  margin: 0 0 14px;
  text-wrap: balance;
}

.signup-copy .lede {
  font-size: 16px;
  line-height: 1.58;
  color: var(--mk-ink-2);
  margin: 0;
  max-width: 46ch;
}

/* -- the right-hand panel -- */

.signup-visual {
  background: linear-gradient(175deg, var(--mk-paper-2) 0%, #eef3ee 100%);
  border: 1px solid var(--mk-line);
  border-radius: 18px;
  padding: 28px 28px 24px;
}

.signup-visual .panel-h2 {
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-wrap: balance;
}

.signup-visual .panel-sub {
  font-size: 14px;
  color: var(--mk-ink-2);
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 42ch;
}

.signup-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}

.signup-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.signup-feature-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--mk-paper);
  border: 1px solid var(--mk-line);
  color: var(--mk-shade-5);
  flex-shrink: 0;
}

.signup-feature-t { font-size: 13.5px; font-weight: 640; color: var(--mk-ink); margin-bottom: 4px; }
.signup-feature-d { font-size: 12.5px; color: var(--mk-ink-2); line-height: 1.5; }

.signup-claim {
  background: var(--mk-accent-soft);
  border: 1px solid var(--mk-accent-border);
  border-radius: 14px;
  padding: 18px 20px;
}

.signup-claim-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mk-accent);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--mk-accent-border);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.signup-claim h2 { font-size: 16px; font-weight: 680; margin: 0 0 6px; color: var(--mk-ink); }
.signup-claim p { font-size: 13px; color: var(--mk-ink-2); line-height: 1.55; margin: 0; }

/* -- the form -- */

.signup-form-card {
  background: var(--mk-paper);
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  padding: 26px 26px 24px;
  box-shadow: var(--mk-shadow-pop);
}

.signup-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--mk-radius-xs);
  background: var(--mk-danger-soft);
  border: 1px solid var(--mk-danger-border);
  color: var(--mk-danger);
  font-size: 13.5px;
  line-height: 1.45;
}

.signup-field { margin-bottom: 14px; }
.signup-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mk-ink);
  margin-bottom: 6px;
}
.signup-field input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14.5px;
  padding: 10px 12px;
  border: 1px solid var(--mk-line-strong);
  border-radius: var(--mk-radius-sm);
  background: var(--mk-paper);
  color: var(--mk-ink);
}
.signup-field input:focus {
  outline: none;
  border-color: var(--mk-accent);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

/* The "where do you run" field is required and load-bearing for the
   business (it's what tells the team where to go source better data next --
   see TODO.md), so it's set apart visually rather than blending in as just
   another field. */
.signup-field-area {
  background: var(--mk-accent-soft);
  border: 1px solid var(--mk-accent-border);
  border-radius: 10px;
  padding: 12px 14px 14px;
}
.signup-field-area input { border-color: var(--mk-accent-border); }
#running-area-rows input { display: block; margin-bottom: 8px; }
#running-area-rows input:last-child { margin-bottom: 0; }
.signup-linkbtn {
  border: none;
  background: none;
  padding: 0;
  margin-top: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--mk-accent);
  text-decoration: underline;
  cursor: pointer;
}
.signup-field-hint { font-size: 11.5px; color: var(--mk-ink-2); margin: 7px 0 0; line-height: 1.4; }

.signup-submit {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: var(--mk-radius-sm);
  background: var(--mk-accent);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 620;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.signup-submit:hover { background: var(--mk-accent-hover); }
.signup-submit:focus-visible { outline: 2px solid var(--mk-accent); outline-offset: 2px; }

.signup-free-note {
  text-align: center;
  font-size: 12px;
  color: var(--mk-ink-3);
  margin: 12px 0 0;
}

.signup-form-foot {
  text-align: center;
  font-size: 13px;
  color: var(--mk-ink-2);
  margin: 16px 0 0;
}
.signup-form-foot a { color: var(--mk-accent); font-weight: 550; text-decoration: none; }
.signup-form-foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .signup-stage {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "form" "visual";
  }
}

/* Shown in place of the signup form once an account has been created and is
   waiting to be approved. Deliberately replaces the form rather than sitting
   above it -- see the note in signup.php. */
.signup-pending h2 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--mk-ink);
}

.signup-pending p {
  margin: 0 0 12px;
  color: var(--mk-ink-2);
  line-height: 1.55;
}

.signup-pending-back {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--mk-line);
}
