@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");
/* ============================================================
   IPR — intake form / modal styles for the HOMEPAGE.
   Self-contained: defines the semantic tokens + font that the
   homepage's main.css doesn't, plus the sheet, steps, chips,
   fields and success UI. Mirrors team/profile.css so the homepage
   popup is identical to the cofounder-card form.
   (Cards still get these styles from profile.css; if the form
   styling ever changes, update both — or consolidate later.)
   ============================================================ */
:root {
  --iron-soft: #c5421f;
  --snow-72: rgba(247, 242, 243, 0.72);
  --snow-24: rgba(247, 242, 243, 0.24);
  --text-secondary: var(--snow-72);
  --text-muted: var(--snow-40);
  --border-strong: var(--snow-24);
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, "SF Mono", Menlo, monospace;
  --radius-sm: 4px;
  --radius-pill: 2em;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.25s;
  --shadow-lg: 0 24px 60px rgba(12, 15, 11, 0.22);
}

@keyframes ipr-sheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ipr-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- buttons (form nav) ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  padding: 0.7em 1.4em;
  font-size: 0.85rem;
}
.btn--primary { background: var(--iron); color: var(--snow); border-color: var(--iron); }
.btn--primary:hover { background: var(--iron-soft); border-color: var(--iron-soft); }
.btn--secondary { background: transparent; color: var(--snow); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--snow-40); }
.btn--hero { width: 100%; white-space: nowrap; height: 50px; font-size: 0.9rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--snow);
  color: var(--onyx);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  animation: ipr-fade .2s ease;
  white-space: nowrap;
}

/* ---------- intake sheet ---------- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 15, 11, 0.7);
  backdrop-filter: blur(2px);
  z-index: 50;
  animation: ipr-fade .2s ease;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.sheet {
  width: 100%;
  max-width: 460px;
  background: var(--onyx);
  border-top: 1px solid var(--snow-12);
  border-radius: 10px 10px 0 0;
  max-height: 92vh;
  overflow-y: auto;
  animation: ipr-sheet .4s var(--ease-out);
}
.sheet__head {
  position: sticky;
  top: 0;
  background: var(--onyx);
  padding: 20px 26px 14px;
  border-bottom: 1px solid var(--snow-12);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2;
}
.sheet__kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--iron);
}
.sheet__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.sheet__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--snow-12);
  background: transparent;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.progress {
  display: flex;
  gap: 6px;
  padding: 18px 26px 0;
}
.progress span {
  height: 2px;
  flex: 1;
  background: var(--snow-12);
  transition: background var(--dur-fast) var(--ease-out);
}
.progress span.on { background: var(--iron); }

.sheet__body { padding: 24px 26px 28px; }
.step { display: none; }
.step.active { display: block; }
.step__count {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}
.step__q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.step__q + .step__q { margin-top: 26px; }
.step__hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}
.opt {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 400;
}

.chips {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chips--wrap {
  margin-top: 16px;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: all var(--dur-fast) var(--ease-out);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--snow-12);
}
.chip:hover { border-color: var(--border-strong); }
.chip.on { background: var(--iron); color: var(--snow); border-color: var(--iron); }

.field { margin-top: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--snow);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--iron); }

.form-err {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iron-soft);
}

.success { text-align: center; padding: 16px 0 6px; }
.success__check {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--iron);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 44px rgba(166, 28, 1, 0.4);
}
.success__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
.success__sub {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.success__sub strong { color: var(--snow); font-weight: 500; }
.success__save { margin-top: 22px; display: flex; justify-content: center; }

.sheet__nav {
  position: sticky;
  bottom: 0;
  background: var(--onyx);
  border-top: 1px solid var(--snow-12);
  padding: 16px 26px 22px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.sheet__nav .btn--primary { flex: 1; white-space: nowrap; }

.sheet [hidden], .sheet-overlay[hidden] { display: none !important; }

/* desktop: open as a centered modal instead of a bottom sheet */
@media (min-width: 900px) {
  .sheet-overlay { align-items: center; padding: 28px; }
  .sheet {
    max-width: 540px;
    border: 1px solid var(--snow-12);
    border-radius: 12px;
    max-height: 86vh;
  }
}
