/* Public job landing: paid public avatar contributor (standalone marketing page) */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.contribute-pav-standalone {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
}

/* Smooth scroll for e.g. “Apply below” → #apply (in-page anchor only on this page) */
html:has(body.contribute-pav-standalone) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.contribute-pav-standalone) {
    scroll-behavior: auto;
  }
}

/* --- Page frame & decorative background (aligned with marketing / landing) --- */
.job-land {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.job-land::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(165deg, rgba(11, 15, 20, 0.98) 0%, rgba(15, 23, 36, 0.96) 45%, rgba(11, 15, 20, 1) 100%),
    radial-gradient(800px 500px at 15% 0%, rgba(45, 92, 112, 0.45), transparent 55%),
    radial-gradient(600px 400px at 90% 20%, rgba(52, 211, 153, 0.12), transparent 50%);
  pointer-events: none;
}

.job-land > * {
  position: relative;
  z-index: 1;
}

/* --- Sticky header --- */
.job-land__header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(31, 42, 58, 0.95);
  background: linear-gradient(180deg, rgba(17, 24, 37, 0.95), rgba(11, 15, 20, 0.88));
  backdrop-filter: blur(12px);
}

.job-land__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.job-land__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.job-land__header-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.job-land__header-links a {
  color: var(--muted);
  text-decoration: none;
}
.job-land__header-links a:hover {
  color: var(--text);
}

/* --- Hero --- */
.job-land__hero {
  padding: 3rem 1rem 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.job-land__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.job-land__hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 38ch;
}

.job-land__lede {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.job-land__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
}

.job-land__meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(45, 92, 112, 0.35);
  border: 1px solid rgba(45, 92, 112, 0.55);
}

.job-land__meta-pill--accent {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--success);
}

.job-land__hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* --- Job post body (static): one card, subsections with spacing only --- */
.job-land__post {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.25rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 42, 58, 0.9);
  background:
    linear-gradient(180deg, rgba(17, 24, 37, 0.65), rgba(11, 15, 20, 0.5));
  box-shadow: 0 12px 40px rgba(3, 8, 18, 0.35);
}

.job-land__section {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.job-land__section:last-child {
  margin-bottom: 0;
}

.job-land__section h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.job-land__section h3,
.job-land__section .job-land__h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.job-land__section h3:first-child,
.job-land__section .job-land__h3:first-of-type {
  margin-top: 0;
}

.job-land__section p,
.job-land__section li {
  margin: 0 0 0.65rem;
  line-height: 1.6;
  color: var(--text);
  font-size: 0.95rem;
}

.job-land__section ul,
.job-land__section ol {
  margin: 0.25rem 0 0.5rem 1.1rem;
  padding: 0;
}

.job-land__section a {
  color: #7dd3fc;
  text-decoration: none;
}
.job-land__section a:hover {
  text-decoration: underline;
}

/* --- Apply (wizard) — same page surface as hero / body (no extra band) --- */
.job-land__apply {
  padding: 2.5rem 1rem 4rem;
}

.job-land__apply-inner {
  max-width: 720px;
  margin: 0 auto;
}

.job-land__apply-head {
  margin-bottom: 1.5rem;
}

.job-land__apply-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.job-land__apply-head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Wizard (multi-step), no separate panel --- */
.contribute-pav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contribute-pav__loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 20, 0.78);
  backdrop-filter: blur(6px);
  border-radius: 12px;
}

.contribute-pav__loading-overlay[hidden] {
  display: none !important;
}

.contribute-pav__loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.contribute-pav__spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--success);
  border-radius: 50%;
  animation: contribute-pav-spin 0.7s linear infinite;
}

.contribute-pav__loading-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

@keyframes contribute-pav-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contribute-pav__spinner {
    animation: none;
    border-color: rgba(52, 211, 153, 0.45);
    border-top-color: var(--success);
  }
}

.contribute-pav__slide--success .contribute-pav__success-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 2px solid rgba(52, 211, 153, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
}

.contribute-pav__success-check {
  color: var(--success);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.contribute-pav__slide--success h2 {
  color: var(--success);
}

.contribute-pav__progress {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.contribute-pav__card {
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0.25rem 0 0;
  min-height: 12rem;
}

.contribute-pav__slide[hidden] {
  display: none;
}

.contribute-pav__slide h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}

.contribute-pav__slide p,
.contribute-pav__slide li {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  color: var(--text);
  font-size: 0.95rem;
}

.contribute-pav__slide ul {
  margin: 0 0 0.5rem 1.1rem;
  padding: 0;
}

.contribute-pav__slide a {
  color: #7dd3fc;
  text-decoration: none;
}
.contribute-pav__slide a:hover {
  text-decoration: underline;
}

.contribute-pav__field {
  margin-bottom: 1rem;
}
.contribute-pav__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.contribute-pav__field input[type="text"],
.contribute-pav__field input[type="email"],
.contribute-pav__field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: rgba(11, 15, 20, 0.75);
}
.contribute-pav__field textarea {
  min-height: 4.5rem;
  resize: vertical;
}
.contribute-pav__field input[type="file"] {
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
}

.contribute-pav__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}
.contribute-pav__options label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
}
.contribute-pav__options input {
  margin-top: 0.2rem;
}

.contribute-pav__checklist {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.contribute-pav__checklist li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.contribute-pav__checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  color: var(--success);
  font-weight: 700;
  top: 0.2em;
}

.contribute-pav__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.contribute-pav__nav .btn {
  min-width: 5.5rem;
}

.contribute-pav__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contribute-pav__err {
  color: var(--danger);
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
  min-height: 1.25rem;
}

@media (min-width: 640px) {
  .job-land__header {
    padding: 1rem 1.5rem;
  }
  .job-land__hero {
    padding: 3.5rem 1.5rem 4rem;
  }
  .job-land__post {
    padding: 1.5rem 1.5rem 3rem;
  }
  .job-land__apply {
    padding: 3rem 1.5rem 4.5rem;
  }
}
