/* Jobbot site. One accent (blue ink), one radius (8px; verdict stamps are 3px), light and dark from the system. */
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f2f4f7;
  --surface: #ffffff;
  --ink: #0f1720;
  --muted: #4c5865;
  --rule: #d3d9e0;
  --accent: #2339c9;
  --accent-ink: #ffffff;
  --shadow: 0 1px 0 rgb(15 23 32 / 0.04), 0 22px 44px -26px rgb(35 57 201 / 0.35);
  --r: 8px;
  --r-stamp: 3px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1218;
    --surface: #141b23;
    --ink: #e9eef3;
    --muted: #a3afbc;
    --rule: #27313c;
    --accent: #9aaaff;
    --accent-ink: #0d1218;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.3), 0 22px 44px -26px rgb(154 170 255 / 0.25);
  }
}
:root[data-theme="dark"] {
  --paper: #0d1218;
  --surface: #141b23;
  --ink: #e9eef3;
  --muted: #a3afbc;
  --rule: #27313c;
  --accent: #9aaaff;
  --accent-ink: #0d1218;
  --shadow: 0 1px 0 rgb(0 0 0 / 0.3), 0 22px 44px -26px rgb(154 170 255 / 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: 16px; top: -48px; z-index: 30; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: var(--r); }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 550; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s, background-color 0.18s;
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { border-color: var(--accent); filter: brightness(1.08); }
.btn-quiet { height: 40px; background: transparent; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.wordmark { font-weight: 650; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero-copy { padding-top: clamp(0px, 3vw, 32px); }
.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 620; letter-spacing: -0.035em; line-height: 1.06;
  text-wrap: balance;
}
.lede { margin-top: 20px; max-width: 44ch; color: var(--muted); font-size: 1.125rem; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Checker */
.checker { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 28px); }
.checker-title { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  height: 36px; padding: 0 12px;
  border: 1px solid transparent; border-radius: var(--r);
  background: transparent; color: var(--muted);
  font: inherit; font-size: 0.9rem; font-weight: 550; cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.panel { margin-top: 18px; }
.panel[hidden] { display: none; }
.posting { display: grid; gap: 2px; margin-bottom: 14px; }
.posting strong { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.posting span { color: var(--muted); font-size: 0.93rem; }
.checks { display: grid; }
.check { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding-block: 11px; }
.check + .check { border-top: 1px solid var(--rule); }
.check p { font-size: 0.95rem; line-height: 1.45; }
.src { margin-top: 5px; font-family: var(--mono); font-size: 0.78rem; line-height: 1.4; color: var(--muted); }
.src a { color: var(--accent); text-underline-offset: 3px; }
.src a:hover { text-decoration-thickness: 2px; }

.stamp {
  display: inline-flex; align-items: center; justify-content: center; align-self: start; justify-self: start;
  min-width: 70px; height: 24px; padding: 0 8px;
  border: 1.5px solid currentColor; border-radius: var(--r-stamp);
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.01em; white-space: nowrap;
}
.s-met { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.s-fail, .s-unlikely { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.s-unknown { background: transparent; border-style: dashed; color: var(--ink); }
.s-note { background: transparent; border-color: var(--rule); color: var(--muted); }
.s-likely { background: transparent; border-color: var(--accent); color: var(--accent); }
.stamp-lg { min-width: 92px; height: 34px; padding: 0 14px; font-size: 0.95rem; }
.verdict { display: flex; align-items: center; gap: 16px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--rule); }
.verdict p { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.note { margin-top: 18px; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .panel.is-entering .check,
  .panel.is-entering .verdict { opacity: 0; animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  .panel.is-entering .check:nth-child(1) { animation-delay: 0.05s; }
  .panel.is-entering .check:nth-child(2) { animation-delay: 0.25s; }
  .panel.is-entering .check:nth-child(3) { animation-delay: 0.45s; }
  .panel.is-entering .verdict { animation-delay: 0.7s; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: var(--nav-h); }
.section h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 620; letter-spacing: -0.028em; line-height: 1.12; text-wrap: balance; }
.band { background: var(--surface); border-block: 1px solid var(--rule); }
.section-lede { margin-top: 12px; max-width: 56ch; color: var(--muted); }

/* Process */
.process-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); }
.process-head { align-self: start; position: sticky; top: calc(var(--nav-h) + 32px); }
.process-head p { margin-top: 14px; max-width: 36ch; color: var(--muted); }
.steps li { position: relative; padding: 0 0 36px 40px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); }
.steps li::after { content: ""; position: absolute; left: 10px; top: 1.7em; bottom: -0.3em; width: 1px; background: var(--rule); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 58ch; }
.steps .quote { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--accent); color: var(--ink); font-family: var(--mono); font-size: 0.85rem; line-height: 1.5; }

/* Limits */
.limits-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 80px); margin-top: 28px; align-items: start; }
.limits { display: grid; gap: 8px; }
.limits li { padding-block: 18px; }
.aside { margin-top: 18px; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); }
.aside h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.aside p { color: var(--muted); font-size: 0.95rem; }
.limit { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 620; letter-spacing: -0.032em; line-height: 1.08; text-wrap: balance; }
.limits li p:not(.limit) { margin-top: 10px; max-width: 54ch; color: var(--muted); }
.small { margin-top: 20px; max-width: 70ch; color: var(--muted); font-size: 0.95rem; }

/* Countries */
.explorer { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); margin-top: 32px; align-items: start; }
.country-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.country-btn {
  min-height: 40px; padding: 8px 12px; text-align: left; line-height: 1.25;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 0.92rem; cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}
.country-btn:hover { border-color: var(--ink); }
.country-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.country-view { display: grid; gap: 22px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 28px; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); }
.cv { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; max-width: 760px; }
.cv img { width: 100%; }
.cv figcaption { margin-top: 10px; color: var(--muted); font-size: 0.85rem; }

/* Built */
.built-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); }
.built-grid > div p { margin-top: 14px; max-width: 36ch; color: var(--muted); }
.defs { display: grid; gap: 24px; }
.defs dt { font-weight: 600; margin-bottom: 4px; }
.defs dd { color: var(--muted); max-width: 62ch; }

/* Footer */
.foot { padding-block: 40px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { color: var(--muted); font-size: 0.92rem; max-width: 60ch; }

/* Small screens */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero-grid, .process-grid, .built-grid, .explorer, .limits-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .country-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .check { grid-template-columns: 1fr; gap: 8px; }
  .verdict { flex-direction: column; align-items: flex-start; gap: 10px; }
  .country-list { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
