:root {
  --ink: #17211f;
  --muted: #66716d;
  --line: #dce4df;
  --paper: #fbfcfa;
  --soft: #eef5f0;
  --mint: #2f7d61;
  --teal: #0e6470;
  --gold: #b68224;
  --brick: #9a4e36;
  --blue: #305e8b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 45, 41, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 3vw, 42px);
  background: rgba(251, 252, 250, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  gap: 8px;
}

.topnav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  text-decoration: none;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--ink);
  background: var(--soft);
  outline: none;
}

.hero {
  position: relative;
  min-height: min(520px, 70vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.75;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 24, 22, 0.83), rgba(10, 24, 22, 0.4) 48%, rgba(10, 24, 22, 0.12)),
    linear-gradient(0deg, rgba(10, 24, 22, 0.68), transparent 45%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 40px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 8px;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.42;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(190px, 0.8fr) 48px;
  gap: 10px;
  max-width: 930px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input {
  padding: 0 12px;
}

select {
  padding: 0 34px 0 12px;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 100, 112, 0.12);
}

.icon-button,
button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.icon-button {
  align-self: end;
  width: 48px;
  font-size: 1.24rem;
}

button:hover {
  background: #0a525c;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-strip div {
  min-width: 0;
  padding: 22px clamp(16px, 3vw, 42px);
  background: var(--white);
}

.stat-strip strong,
.stat-strip span {
  display: block;
}

.stat-strip strong {
  font-size: 1.8rem;
}

.stat-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  align-items: start;
}

.filters,
.results-panel {
  min-width: 0;
}

.filters {
  position: sticky;
  top: 86px;
}

.filter-group,
.results-panel,
.alert-band,
.member-teaser {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 45, 41, 0.06);
}

.filter-group {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.filter-group + .filter-group {
  margin-top: 14px;
}

.member-teaser {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 18px;
  background: #f5f1e8;
}

.member-teaser button {
  width: 100%;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-transform: none;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.results-panel {
  overflow: hidden;
}

.results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.results-toolbar label {
  width: min(210px, 42vw);
}

.job-list {
  display: grid;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.job-card:last-child {
  border-bottom: 0;
}

.job-card:hover {
  background: #fbf7ef;
}

.job-main {
  min-width: 0;
}

.job-title-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}

.job-title-row h3 {
  margin-bottom: 0;
  max-width: 100%;
  font-size: 1.15rem;
  line-height: 1.22;
  overflow-wrap: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--teal);
  background: #e8f4f2;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge.gold {
  color: #7a520c;
  background: #fff0d2;
}

.badge.brick {
  color: var(--brick);
  background: #fbe7df;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.job-description {
  max-width: 74ch;
  margin-bottom: 14px;
  color: #34403c;
  line-height: 1.48;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-actions a,
.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.job-actions a {
  color: var(--white);
  background: var(--ink);
}

.save-button {
  color: var(--teal);
  background: var(--soft);
}

.save-button.saved {
  color: #7a520c;
  background: #fff0d2;
}

.job-side {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: left;
}

.pay-block {
  display: grid;
  gap: 3px;
}

.pay-block span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pay-block strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.pay-block em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.3;
}

.job-side .badge {
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  white-space: normal;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.pagination p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.page-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.page-controls button {
  min-width: 38px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.page-controls button.active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.page-controls button:disabled {
  color: #9aa39f;
  background: #f1f4f2;
  cursor: not-allowed;
}

.page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 36px;
  color: var(--muted);
  font-weight: 900;
}

.alert-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  gap: 22px;
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 44px;
  padding: 22px;
  align-items: end;
  background: #f5f1e8;
}

.alert-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 140px;
  gap: 10px;
  align-items: end;
}

.empty-state {
  padding: 34px 18px;
  color: var(--muted);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11, 24, 22, 0.62);
}

.modal-shell[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-card p {
  color: var(--muted);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  color: var(--ink);
  background: var(--soft);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions button {
  padding: 0 14px;
}

.secondary-button {
  color: var(--teal);
  background: var(--soft);
}

.signup-shell {
  background: var(--paper);
}

.signup-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 64px;
}

.signup-hero {
  max-width: 780px;
  margin-bottom: 24px;
}

.signup-hero h1 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.signup-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: start;
}

.signup-card,
.checkout-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 45, 41, 0.06);
}

.signup-card h2,
.checkout-panel h2 {
  margin-bottom: 0;
}

.signup-card button {
  margin-top: 4px;
}

.form-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.selected-job,
.plan-summary,
.lock-list {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.selected-job h2,
.selected-job p,
.plan-summary h2,
.plan-summary p {
  margin-bottom: 0;
}

.selected-job strong,
.plan-summary strong {
  color: var(--ink);
}

.plan-summary strong {
  font-size: 2rem;
}

.lock-list {
  background: var(--soft);
}

.lock-list div {
  display: grid;
  gap: 4px;
}

.lock-list span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar,
  .results-toolbar,
  .job-card,
  .alert-band {
    display: grid;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
  }

  .job-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-search,
  .stat-strip,
  .workspace,
  .alert-band,
  .alert-form {
    grid-template-columns: 1fr;
  }

  .signup-grid {
    grid-template-columns: 1fr;
  }

  .icon-button {
    width: 100%;
  }

  .filters {
    position: static;
  }

  .job-side {
    padding-left: 0;
    border-left: 0;
    text-align: left;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .page-controls {
    justify-content: flex-start;
  }

}
