/* =================================================================
   JOB2ROAM — RECRUITER SIGNUP, INSTITUTIONAL REDESIGN
   Sharp-cornered, navy + orange, editorial. Matches index/jobs/learn.
   No purple, no radial wash, no rounded everything, no glass-blur.
   All class/ID hooks preserved for app.js + recruiterForm.js.
   ================================================================= */

:root {
  --ink: #0f1d3d;
  --ink-soft: #33405e;
  --brand: #1a2c5b;
  --brand-deep: #122142;
  --brandDeep: #122142;        /* legacy alias */
  --brandLight: #f6f7f9;
  --accent: #f27024;
  --accent-deep: #d85f17;
  --accentLight: rgba(242, 112, 36, 0.08);
  --accentSoft: rgba(242, 112, 36, 0.18);
  --surface: #ffffff;
  --surface-alt: #f6f7f9;
  --border: #d9dde5;
  --muted: #6b7896;
  --radius: 0px;
}

* { box-sizing: border-box; }

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--surface);
  background-image:
    repeating-linear-gradient(90deg, rgba(15, 29, 61, 0.025) 0 1px, transparent 1px 88px);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0%;
  z-index: 70;
  background: var(--accent);
  transition: width 120ms linear;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =================================================================
   SAAS HEADER — flat white, hard 1px rule, squared (matches site)
   ================================================================= */
.saas-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
.saas-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.saas-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.saas-brand img { height: 84px; width: auto; }
.saas-nav { display: flex; align-items: center; gap: 2px; }
.saas-nav-item { position: relative; }
.saas-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.saas-nav-link:hover,
.saas-nav-item:hover > .saas-nav-link {
  color: var(--ink);
  background: none;
  border-bottom-color: var(--accent);
}
.saas-nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.saas-nav-chevron { transition: transform 0.2s ease; color: var(--muted); }
.saas-nav-item:hover .saas-nav-chevron { transform: rotate(180deg); color: var(--ink-soft); }

.saas-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: 8px 8px 0 rgba(15, 29, 61, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.saas-nav-item:hover .saas-dropdown,
.saas-nav-item:focus-within .saas-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.saas-dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.saas-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 0;
  text-decoration: none;
  color: var(--ink);
  border-left: 2px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.saas-dropdown-item:hover { background: var(--surface-alt); border-left-color: var(--accent); }
.saas-dropdown-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 0;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.saas-dropdown-title { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; }
.saas-dropdown-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.saas-actions { display: flex; align-items: center; gap: 8px; }
.saas-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.15s ease;
}
.saas-cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.saas-cta:active { transform: translateY(1px); }
.saas-cta svg { transition: transform 0.2s ease; }
.saas-cta:hover svg { transform: translateX(2px); }

#loginTooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  padding: 4px 8px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.saas-signin:hover #loginTooltip { opacity: 1; }

.saas-mobile-login,
.saas-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
.saas-mobile-login:hover, .saas-menu-btn:hover { background: var(--surface-alt); }

@media (max-width: 900px) {
  .saas-nav, .saas-signin { display: none; }
  .saas-mobile-login, .saas-menu-btn { display: inline-flex; }
  .saas-header-inner { padding: 8px 18px; }
  .saas-brand img { height: 64px; }
}

/* =================================================================
   PILLS / TAGS
   ================================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0;
  background: var(--accentLight);
  border: 1px solid var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.pill .dot {
  width: 7px; height: 7px;
  border-radius: 0;
  background: var(--accent);
}

/* =================================================================
   PARTNERSHIP TYPE CARDS — flat, hard border, accent top-rule
   ================================================================= */
.ptype-card {
  position: relative;
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ptype-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.ptype-card:hover {
  border-color: var(--ink);
  background: var(--surface-alt);
}
.ptype-card:hover::before { transform: scaleX(1); }
.ptype-card .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  margin-bottom: 14px;
}
.ptype-card h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.ptype-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* =================================================================
   FORM CARD — flat, hard border
   ================================================================= */
.form-card {
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 32px;
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 3px;
  background: var(--accent);
}
@media (min-width: 768px) {
  .form-card { padding: 40px; }
}

.field {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.field::placeholder { color: #aab2c4; }
.field:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accentLight);
}
textarea.field { resize: none; }

.label-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.check-row:hover { border-color: var(--ink); background: #fff; }
.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 180ms ease;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

/* =================================================================
   SUBMIT OVERLAY — squared card, no blur
   ================================================================= */
#submitOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 29, 61, 0.45);
}
#submitOverlay.show { display: flex; }
.overlayCard {
  width: min(480px, 92vw);
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(15, 29, 61, 0.12);
  overflow: hidden;
}
.overlayTop {
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.seal {
  height: 44px; width: 44px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: var(--accentLight);
  border: 1px solid var(--accent);
}
.spinner {
  width: 18px; height: 18px;
  border-radius: 0;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlayBody { padding: 20px; }
.bar {
  height: 8px;
  border-radius: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  width: 32%;
  border-radius: 0;
  background: var(--accent);
  animation: load 1.05s ease-in-out infinite;
}
@keyframes load {
  0% { transform: translateX(-40%); width: 30%; opacity: 0.85; }
  50% { transform: translateX(60%); width: 55%; opacity: 1; }
  100% { transform: translateX(180%); width: 30%; opacity: 0.85; }
}

/* =================================================================
   REVEAL
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }

/* =================================================================
   FOOTER — orange headings, squared navy social tiles
   ================================================================= */
.footer-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease;
}
.footer-link:hover { color: var(--accent); }
.footer-heading {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.social-btn {
  height: 40px; width: 40px;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease;
}
.social-btn:hover { background: var(--accent); color: #fff; }

.hairline { height: 1px; background: var(--ink); }

/* Footer alt-mail callout — squared, orange accent (was blue) */
.alternativeMail {
  margin-top: 1.5rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  border-radius: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.alternativeMail p { font-size: 0.7rem; }
.alternativeMail a { color: var(--accent); font-weight: 700; text-decoration: none; }
.alternativeMail a:hover { text-decoration: underline; }