/* JobsFoundEasy
   Layout concept: a quiet classifieds column. Search first, listings as clean rows, one cobalt accent. */
:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF1F5;
  --fg: #121722;
  --muted: #586172;
  --line: #DCE1E8;
  --accent: #1E46C8;
  --accent-hover: #1838A3;
  --accent-ink: #FFFFFF;
  --accent-soft: #E7ECFB;
  --good: #146C36;
  --good-soft: #E2F2E7;
  --gold: #8A5300;
  --gold-soft: #FCEFD6;
  --danger: #B42318;
  --shadow: 0 1px 2px rgba(18,23,34,.05), 0 8px 24px -12px rgba(18,23,34,.18);

  --font-display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1117; --surface: #161A22; --surface-2: #1D232D; --fg: #E9EDF3; --muted: #9AA3B2; --line: #2A313D;
    --accent: #8AA4FF; --accent-hover: #A9BCFF; --accent-ink: #0E1117; --accent-soft: #1B2440;
    --good: #6FD08E; --good-soft: #142A1C; --gold: #F2B85E; --gold-soft: #2E2413; --danger: #FF8A80;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1117; --surface: #161A22; --surface-2: #1D232D; --fg: #E9EDF3; --muted: #9AA3B2; --line: #2A313D;
  --accent: #8AA4FF; --accent-hover: #A9BCFF; --accent-ink: #0E1117; --accent-soft: #1B2440;
  --good: #6FD08E; --good-soft: #142A1C; --gold: #F2B85E; --gold-soft: #2E2413; --danger: #FF8A80;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 18px; height: 18px; }
.brand b { color: var(--accent); font-weight: 700; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.9375rem; padding: 8px 12px; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--fg); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.saved-link { position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.9375rem; padding: 8px 10px; border-radius: var(--radius-sm); }
.saved-link:hover { background: var(--surface-2); color: var(--fg); }
.saved-link svg { width: 18px; height: 18px; }
.saved-count { min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.75rem; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }
.saved-count[hidden] { display: none !important; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-nav { border-top: 1px solid var(--line); padding-block: 8px 16px; }
.mobile-nav a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
@media (max-width: 820px) {
  .main-nav, .header-actions .btn-post { display: none; }
  .nav-toggle { display: inline-flex; }
  .saved-link .saved-label { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-link { background: none; border: 0; color: var(--accent); padding: 0; min-height: 0; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Search ---------- */
.search {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-width: 0; }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-field svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-field input { border: 0; background: transparent; outline: none; padding: 16px 0; width: 100%; min-width: 0; font-size: 1rem; }
.search-field input::placeholder { color: var(--muted); }
.search-field:focus-within { box-shadow: inset 0 -2px 0 var(--accent); }
.search .btn { margin: 8px; }
@media (max-width: 680px) {
  .search { grid-template-columns: 1fr; }
  .search-field + .search-field { border-left: 0; border-top: 1px solid var(--line); }
  .search .btn { margin: 8px; }
}

/* ---------- Home ---------- */
.hero { padding-block: 64px 48px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.035em; max-width: 14ch; }
.hero h1 span { color: var(--accent); }
.hero .lede { margin-top: 16px; font-size: var(--step-1); color: var(--muted); max-width: 52ch; }
.hero .search { margin-top: 32px; max-width: 880px; }
.quick { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quick-label { font-size: var(--step--1); color: var(--muted); margin-right: 4px; }
.pill-link { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--fg); transition: border-color .15s, background .15s; }
.pill-link:hover { border-color: var(--accent); background: var(--accent-soft); }

.section { padding-block: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: var(--step-3); font-weight: 700; }
.section-head p { color: var(--muted); max-width: 56ch; margin-top: 8px; }
.eyebrow { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); text-decoration: none; transition: background .15s; }
.cat:hover { background: var(--accent-soft); }
.cat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.cat-icon svg { width: 20px; height: 20px; }
.cat-name { font-weight: 600; }
.cat-count { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 860px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { display: grid; gap: 8px; }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--accent); }
.step h3 { font-size: var(--step-1); font-weight: 650; }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

.employer-band { background: var(--fg); color: var(--bg); border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.employer-band h2 { font-size: var(--step-3); font-weight: 700; color: var(--bg); }
.employer-band p { margin-top: 10px; opacity: .8; max-width: 52ch; }
.employer-band .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.employer-band .btn-primary { background: var(--bg); color: var(--fg); }
.employer-band .btn-primary:hover { opacity: .9; background: var(--bg); }
.employer-band .btn-ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.employer-band .price-note { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; color: var(--bg); }
@media (max-width: 760px) { .employer-band { grid-template-columns: 1fr; padding: 28px 22px; } .employer-band .actions { justify-content: flex-start; } }

/* ---------- Job list ---------- */
.job-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.job { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; padding: 20px; border-top: 1px solid var(--line); transition: background .15s; }
.job:first-child { border-top: 0; }
.job:hover { background: var(--surface-2); }
.job.is-featured { background: color-mix(in srgb, var(--gold-soft) 45%, var(--surface)); }
.job.is-featured:hover { background: var(--gold-soft); }
.logo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--accent-ink); background: var(--accent); }
.logo.l1 { background: #1E46C8; color: #fff; } .logo.l2 { background: #146C36; color: #fff; } .logo.l3 { background: #8A3FB8; color: #fff; }
.logo.l4 { background: #B4471E; color: #fff; } .logo.l5 { background: #0E6E7A; color: #fff; } .logo.l6 { background: #3B4252; color: #fff; }
.job-main { min-width: 0; }
.job-title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 650; line-height: 1.3; }
.job-title a { text-decoration: none; }
.job-title a::after { content: ""; position: absolute; inset: 0; }
.job-title a:hover { color: var(--accent); }
.job-meta { margin-top: 2px; color: var(--muted); font-size: 0.9375rem; }
.job-summary { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8125rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--fg); white-space: nowrap; }
.tag svg { width: 14px; height: 14px; }
.tag-good { background: var(--good-soft); color: var(--good); font-weight: 600; }
.tag-gold { background: var(--gold-soft); color: var(--gold); font-weight: 600; }
.tag-pay { background: transparent; padding-left: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.posted { font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
.save-btn { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: color .15s, border-color .15s, background .15s; }
.save-btn svg { width: 18px; height: 18px; }
.save-btn:hover { color: var(--accent); border-color: var(--accent); }
.save-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
@media (max-width: 600px) {
  .job { grid-template-columns: 40px 1fr; padding: 16px; gap: 12px; }
  .logo { width: 40px; height: 40px; }
  .job-side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}

.sample-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--gold); font-size: 0.875rem; font-weight: 500; margin-bottom: 16px; }
.sample-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.sample-note[hidden] { display: none !important; }

/* ---------- Find jobs page ---------- */
.search-band { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 24px; }
.search-band .search { box-shadow: none; }
.results-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding-block: 32px 64px; align-items: start; }
.filters { display: grid; gap: 24px; }
.filters summary { display: none; }
.filter-group { display: grid; gap: 8px; }
.filter-group h3, .filter-group legend { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 4px; }
fieldset.filter-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex-shrink: 0; }
.check .count { margin-left: auto; color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--good-soft); color: var(--good); font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
.toggle-row input { width: 20px; height: 20px; accent-color: var(--good); margin: 0; }
.select, .input, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--fg); font-size: 0.9375rem;
}
.select:focus, .input:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.results-count { font-weight: 600; }
.results-count .where { color: var(--muted); font-weight: 400; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.sort .select { width: auto; min-height: 38px; padding: 6px 10px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.8125rem; font-weight: 600; border: 0; cursor: pointer; }
.active-chip svg { width: 14px; height: 14px; }
.empty { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h3 { font-size: var(--step-2); }
.empty p { color: var(--muted); margin: 8px auto 20px; max-width: 46ch; }
@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .filters { position: static; display: block; }
  .filters details { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .filters summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; min-height: 48px; }
  .filters summary::-webkit-details-marker { display: none; }
  .filters .filter-body { display: grid; gap: 22px; padding: 4px 16px 18px; }
}
@media (min-width: 901px) { .filters .filter-body { display: grid; gap: 24px; } }

/* ---------- Job page ---------- */
.crumbs { font-size: 0.875rem; color: var(--muted); padding-block: 20px 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-block: 20px 64px; align-items: start; }
.job-head { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.job-head .logo { width: 56px; height: 56px; font-size: 1.125rem; border-radius: 12px; }
.job-head h1 { font-size: var(--step-3); font-weight: 700; }
.job-head .job-meta { font-size: 1rem; margin-top: 6px; }
.facts { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.fact { padding: 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.fact:first-child { border-left: 0; }
.fact dt { font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
.prose { margin-top: 32px; max-width: 68ch; }
.prose h2 { font-size: var(--step-2); font-weight: 650; margin-top: 32px; margin-bottom: 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--fg); margin-top: 10px; }
.prose ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.prose li::marker { color: var(--accent); }
.apply-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.apply-card .pay { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.apply-card .pay small { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.apply-card .note { font-size: 0.875rem; color: var(--muted); }
.apply-card .row { display: flex; gap: 8px; }
.apply-card .row .btn { flex: 1; }
.copy-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.9375rem; }
.copy-box code { font-family: inherit; flex: 1; min-width: 0; overflow-wrap: anywhere; user-select: all; }
.similar { margin-top: 48px; }
.similar h2 { font-size: var(--step-2); margin-bottom: 14px; }
@media (max-width: 900px) { .job-layout { grid-template-columns: 1fr; } .apply-card { position: static; } }

/* ---------- Generic page header ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 48px 40px; }
.page-head h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.03em; max-width: 18ch; }
.page-head p { margin-top: 14px; font-size: var(--step-1); color: var(--muted); max-width: 58ch; }

/* ---------- Employers ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.is-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-name { font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-price { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.plan-price small { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan p { color: var(--muted); font-size: 0.9375rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.plan li { display: flex; gap: 8px; }
.plan li svg { width: 18px; height: 18px; color: var(--good); flex-shrink: 0; margin-top: 3px; }
.plan .btn { margin-top: auto; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.rule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rule-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.rule-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.rule-list strong { display: block; }
.rule-list span { color: var(--muted); font-size: 0.9375rem; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.0625rem; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--accent); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 68ch; }

/* ---------- Post a job form ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block: 40px 72px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 28px; }
.form-section { display: grid; gap: 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.form-section legend { font-family: var(--font-display); font-size: var(--step-2); font-weight: 650; padding: 0; margin-bottom: 4px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.9375rem; }
.field .hint { font-size: 0.8125rem; color: var(--muted); }
.field .req { color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } .form-card { padding: 20px; } }
.textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field-error { color: var(--danger); font-size: 0.8125rem; font-weight: 500; }
.field-error:empty { display: none; }
.is-invalid { border-color: var(--danger) !important; }
.plan-picker { display: grid; gap: 10px; }
.plan-option { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.plan-option:hover { border-color: var(--muted); }
.plan-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plan-option input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.plan-option strong { display: block; }
.plan-option span { font-size: 0.8125rem; color: var(--muted); }
.plan-option .price { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.side-card { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); background: var(--surface-2); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.side-card h2 { font-size: var(--step-1); }
.side-card ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 900px) { .side-card { position: static; } }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9375rem; }
.form-status[hidden] { display: none !important; }
.form-status.ok { background: var(--good-soft); color: var(--good); }
.form-status.err { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.form-legal { font-size: 0.8125rem; color: var(--muted); }
.form-legal a { color: var(--accent); }

/* ---------- Legal / prose pages ---------- */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-block: 40px 72px; align-items: start; }
.legal nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 4px; font-size: 0.9375rem; }
.legal nav a { text-decoration: none; color: var(--muted); padding: 6px 0; }
.legal nav a:hover, .legal nav a[aria-current="page"] { color: var(--accent); }
.legal article { max-width: 70ch; min-width: 0; }
.legal nav { min-width: 0; }
.legal article h2 { font-size: var(--step-2); margin-top: 36px; margin-bottom: 8px; }
.legal article h2:first-child { margin-top: 0; }
.legal article p, .legal article li { color: var(--muted); }
.legal article p + p { margin-top: 10px; }
.legal article ul { padding-left: 20px; display: grid; gap: 6px; }
.legal article a { color: var(--accent); }
.legal .updated { font-size: 0.875rem; color: var(--muted); margin-bottom: 24px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 12px; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.875rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.table-wrap th { border-top: 0; background: var(--surface-2); color: var(--fg); font-weight: 600; }
@media (max-width: 800px) { .legal { grid-template-columns: 1fr; gap: 20px; } .legal nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 48px 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid p { color: var(--muted); margin-top: 12px; max-width: 36ch; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-col a { display: block; text-decoration: none; padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.875rem; }
.footer-bottom button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-size: 0.875rem; text-decoration: underline; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Cookie banner + toast ---------- */
.cookie-banner {
  position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.cookie-inner { pointer-events: auto; max-width: 620px; margin: 0 auto; background: var(--fg); color: var(--bg); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 14px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.4); font-size: 0.9375rem; }
.cookie-inner a { color: inherit; }
.cookie-inner .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-inner .btn { min-height: 40px; padding: 8px 16px; }
.cookie-inner .btn-primary { background: var(--bg); color: var(--fg); }
.cookie-inner .btn-ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
