/* ============ start a project page ============ */
/* Reuses design-system tokens/fonts/buttons from main.css (:root vars, .top-cta, .wordmark, .btn) —
   this file only holds what's unique to this page's own form/card layout. */

.startp-body { min-height: 100vh; display: flex; flex-direction: column; }

.startp-main {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(120px, 16vh, 180px) clamp(24px, 6vw, 56px) clamp(60px, 8vh, 96px);
}

.startp-card {
  width: 100%; max-width: 560px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--structure);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 56px);
}

.startp-kicker {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.startp-title {
  font-family: var(--display);
  font-weight: 500; /* real loaded weight (Cabinet Grotesk's only weight is 500) — avoids synthetic
     bold on this <h1>, matching the same fix applied throughout main.css's own --display usages */
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
}

.startp-lede {
  margin-top: 16px;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: var(--fog);
  max-width: 42ch;
}

.startp-form { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
/* An author stylesheet's `display` always beats the browser's own default `[hidden]{display:none}`
   rule, regardless of selector specificity (author CSS outranks UA CSS in the cascade) — without this,
   setting form.hidden=true in JS on success silently does nothing, and the filled-out form stays
   visible stacked right above the "Got it" message instead of being replaced by it. */
.startp-form[hidden] { display: none; }

.startp-field { display: flex; flex-direction: column; gap: 8px; }
.startp-field label {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--fog);
}

.startp-field input,
.startp-field textarea {
  font-family: var(--body);
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--structure);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color .25s, background .25s;
}
.startp-field input:focus,
.startp-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, .06);
}
.startp-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
/* Native date-picker glyph is dark by default — invisible against this dark field otherwise. */
.startp-field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }

/* Service tabs — replaces a plain <select> with clickable pill buttons; selection is tracked in a
   parallel hidden input (#sp-service) rather than any native form-control state of its own, since a
   button group has none, which is also why native `required` can't apply here (see start-project.js
   for the manual validation this requires instead). */
.startp-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.startp-tab {
  font-family: var(--body);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--fog);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--structure);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
}
.startp-tab:hover { border-color: var(--gold-dim); color: #fff; }
.startp-tab.is-active { background: var(--gold); border-color: var(--gold); color: var(--void); }
/* Only shown after a submit attempt with nothing picked yet — an empty hidden input has no native
   validation UI of its own to fall back on, so this is the substitute cue. */
.startp-tabs.is-invalid .startp-tab { border-color: #d16a5c; }

/* Real visitors never see this — bots that fill every field indiscriminately do, which is exactly
   what flags a submission as spam server-side. display:none (not visibility/opacity) also drops it
   from the tab order and AT tree on its own, on top of the belt-and-suspenders tabindex/aria-hidden
   already on the element itself. */
.startp-honeypot { display: none; }

.startp-submit { margin-top: 6px; align-self: flex-start; }
.startp-submit:disabled { opacity: .55; cursor: default; }

.startp-note { font-size: 12px; color: var(--fog); opacity: .65; }
.startp-error {
  font-size: 13px; color: #e08a76;
  background: rgba(224, 138, 118, .1);
  border: 1px solid rgba(224, 138, 118, .3);
  border-radius: 8px;
  padding: 10px 14px;
}
.startp-error a { color: inherit; text-decoration: underline; }

.startp-success { text-align: left; }
.startp-success-title {
  font-family: var(--display);
  font-weight: 500; /* real loaded weight — avoids synthetic bold on this <h2> */
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  margin-top: 4px;
}

#startp-footer {
  padding: 28px clamp(24px, 4vw, 56px);
  text-align: center;
  border-top: 1px solid var(--structure);
}

@media (max-width: 480px) {
  .startp-submit { align-self: stretch; text-align: center; }
}
