/* css/job-buddy-landing.css — the Job Buddy landing page (/job-buddy), 2026-11-06.
 *
 * Layered on css/skins.css + css/worker-home.css: the page reuses the worker home's type, buttons,
 * plates, chapters, FAQ and footer (body.wh), and adds only what is new here: the animated
 * matching demo in the hero, the problem cards, the four steps, the "what the Board looks for"
 * rows, the restriction tiles and the log table. Every mock is drawn with real text and is
 * labelled as an example. Logical properties throughout so ar/ur mirror with css/rtl.css.
 * The one animation runs once (about 3 s) and is skipped under prefers-reduced-motion.
 */

/* ── hero: the matching demo ──────────────────────────────────────────── */
.jbl-hero-note { margin-top: 18px; font-size: 14.5px; line-height: 1.5; color: var(--wh-muted); max-width: 46ch; }
.jbl-demo .wh-plate-body { display: grid; gap: 14px; }
.jbl-limits-lbl { font: 700 11px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--wh-muted); margin: 0; }
.jbl-limits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.jbl-limits li {
  font: 700 12.5px/1.2 var(--font-body); color: var(--wh-navy); background: #F3EFE8;
  border: 1px solid var(--wh-rule); border-radius: 999px; padding: 6px 10px;
}
.jbl-matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jbl-match {
  border: 1px solid var(--wh-rule-strong); border-radius: 14px; padding: 12px 14px; background: #fff;
  display: grid; gap: 6px;
}
.jbl-match[data-fit="strong"] { border-color: var(--wh-ok); box-shadow: inset 4px 0 0 var(--wh-ok); }
[dir="rtl"] .jbl-match[data-fit="strong"] { box-shadow: inset -4px 0 0 var(--wh-ok); }
.jbl-match[data-fit="weak"] { background: #FAF8F4; }
.jbl-match-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.jbl-match-t { margin: 0; font: 700 15.5px/1.25 var(--font-body); color: var(--wh-navy); }
.jbl-match-meta { display: block; font: 500 12.5px/1.35 var(--font-body); color: var(--wh-muted); margin-top: 2px; }
.jbl-fit { font: 700 11.5px/1.2 var(--font-body); white-space: nowrap; padding: 5px 8px; border-radius: 999px; }
.jbl-fit.strong { color: var(--wh-ok); background: var(--wh-ok-wash); }
.jbl-fit.moderate { color: var(--wh-navy); background: var(--wh-orange-wash); }
.jbl-fit.weak { color: var(--wh-no); background: var(--wh-no-wash); }
.jbl-why { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--wh-soft); }
.jbl-re { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--wh-muted); }
.jbl-re b { color: var(--wh-navy); font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.jbl-flag {
  margin: 0; font: 700 12.5px/1.35 var(--font-body); color: var(--wh-no); background: var(--wh-no-wash);
  border-radius: 8px; padding: 6px 9px; display: flex; gap: 6px; align-items: start;
}
.jbl-flag::before { content: "!" / ""; flex: none; inline-size: 16px; block-size: 16px; border-radius: 50%; background: var(--wh-no); color: #fff; font: 800 11px/16px var(--font-body); text-align: center; }
.jbl-logged {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font: 700 13.5px/1.35 var(--font-body); color: var(--wh-ok); background: var(--wh-ok-wash);
  border: 1px solid rgba(34, 112, 74, .25); border-radius: 12px; padding: 10px 12px;
}
.jbl-logged::before { content: "✓" / ""; flex: none; inline-size: 22px; block-size: 22px; border-radius: 50%; background: var(--wh-ok); color: #fff; font: 800 13px/22px var(--font-body); text-align: center; }

/* One pass, about three seconds: each match is "checked", then the application lands in the log.
   Only opacity and transform move. Without motion (or without the media query) everything simply shows. */
@media (prefers-reduced-motion: no-preference) {
  .jbl-demo .jbl-limits li { animation: jbl-in .45s var(--wh-ease) both; }
  .jbl-demo .jbl-limits li:nth-child(2) { animation-delay: .06s; }
  .jbl-demo .jbl-limits li:nth-child(3) { animation-delay: .12s; }
  .jbl-demo .jbl-limits li:nth-child(4) { animation-delay: .18s; }
  .jbl-demo .jbl-limits li:nth-child(5) { animation-delay: .24s; }
  .jbl-demo .jbl-limits li:nth-child(6) { animation-delay: .30s; }
  .jbl-demo .jbl-limits li:nth-child(7) { animation-delay: .36s; }
  .jbl-demo .jbl-match { animation: jbl-rise .6s var(--wh-ease) both; }
  .jbl-demo .jbl-match:nth-child(1) { animation-delay: .55s; }
  .jbl-demo .jbl-match:nth-child(2) { animation-delay: 1.05s; }
  .jbl-demo .jbl-match:nth-child(3) { animation-delay: 1.55s; }
  .jbl-demo .jbl-fit { animation: jbl-pop .4s var(--wh-ease) both; }
  .jbl-demo .jbl-match:nth-child(1) .jbl-fit { animation-delay: .95s; }
  .jbl-demo .jbl-match:nth-child(2) .jbl-fit { animation-delay: 1.45s; }
  .jbl-demo .jbl-match:nth-child(3) .jbl-fit { animation-delay: 1.95s; }
  .jbl-demo .jbl-flag { animation: jbl-in .4s var(--wh-ease) 1.6s both; }
  .jbl-demo .jbl-logged { animation: jbl-rise .55s var(--wh-ease) 2.45s both; }
}
@keyframes jbl-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes jbl-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes jbl-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* ── 01 the problem ──────────────────────────────────────────────────── */
.jbl-intro { font-size: 17px; line-height: 1.65; max-width: 62ch; margin: 0 0 clamp(24px, 3vw, 36px); }
.jbl-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .jbl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .jbl-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jbl-card {
  background: var(--wh-card); border: 1px solid var(--wh-rule-strong); border-radius: 18px;
  padding: 20px 20px 18px; display: grid; gap: 8px; align-content: start;
}
.jbl-card .k { font: 700 11px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--wh-orange-ink); }
body.wh .jbl-card h3 { font: 600 21px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--wh-navy); margin: 0; }
.jbl-card p { margin: 0; font-size: 15px; line-height: 1.55; }
.jbl-card .fix { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--wh-rule-strong); font-size: 14px; color: var(--wh-navy); }
.jbl-card .fix b { color: var(--wh-ok); }
.jbl-src { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--wh-muted); }
body.wh .jbl-src a { color: var(--wh-orange-ink); font-weight: 700; }

/* ── 02 how it works ─────────────────────────────────────────────────── */
.jbl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: jbl; }
@media (min-width: 760px) { .jbl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .jbl-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jbl-steps > li {
  counter-increment: jbl; position: relative; padding: 22px 20px 20px;
  border: 1px solid var(--wh-rule-strong); border-radius: 18px; background: var(--wh-card);
  display: grid; gap: 8px; align-content: start;
}
.jbl-steps > li::before {
  content: counter(jbl); inline-size: 40px; block-size: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 600 19px/1 var(--font-display); color: #fff; background: var(--wh-navy); margin-bottom: 4px;
}
body.wh .jbl-steps h3 { font: 600 21px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--wh-navy); margin: 0; }
.jbl-steps p { margin: 0; font-size: 15px; line-height: 1.55; }
.jbl-steps .who { font: 700 11px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--wh-muted); }
.jbl-cta-row { margin-top: clamp(24px, 3vw, 36px); }

/* ── 03 what the Board looks for ─────────────────────────────────────── */
.jbl-factors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wh-rule-strong); }
.jbl-factor { display: grid; gap: 14px 40px; padding: 24px 0; border-bottom: 1px solid var(--wh-rule-strong); }
@media (min-width: 900px) { .jbl-factor { grid-template-columns: 56px minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }
.jbl-factor .n { font: 500 44px/0.9 var(--font-display); color: var(--wh-orange-ink); font-variant-numeric: tabular-nums; }
body.wh .jbl-factor h3 { font: 600 23px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--wh-navy); margin: 0 0 8px; }
.jbl-factor .law { margin: 0; font-size: 15.5px; line-height: 1.6; }
.jbl-factor .law + .law { margin-top: 8px; }
.jbl-does { background: var(--wh-card); border: 1px solid var(--wh-rule); border-radius: 14px; padding: 14px 16px; }
.jbl-does .lbl { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 700 11px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--wh-ok); }
.jbl-does .lbl::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: currentColor; }
.jbl-does p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--wh-ink); }
.jbl-limit {
  margin-top: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--wh-rule-strong);
  border-inline-start: 4px solid var(--wh-navy); border-radius: 14px; padding: 18px 20px; max-inline-size: 880px;
}
body.wh .jbl-limit h3 { font: 700 17px/1.3 var(--font-body); color: var(--wh-navy); margin: 0 0 6px; }
.jbl-limit p { margin: 0; font-size: 15px; line-height: 1.6; }
.jbl-limit p + p { margin-top: 8px; }

/* ── 04 the restrictions it reads ────────────────────────────────────── */
.jbl-restr { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .jbl-restr { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .jbl-restr { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jbl-restr li { background: var(--wh-card); border: 1px solid var(--wh-rule-strong); border-radius: 14px; padding: 14px 14px 12px; display: grid; gap: 4px; align-content: start; }
.jbl-restr .t { font: 700 15px/1.3 var(--font-body); color: var(--wh-navy); }
.jbl-restr .d { font-size: 13.5px; line-height: 1.45; color: var(--wh-muted); }
.jbl-restr li[data-c43] { border-color: var(--wh-orange); }
.jbl-restr .tag { justify-self: start; margin-top: 4px; font: 700 10.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--wh-navy); background: var(--wh-orange-wash); padding: 4px 7px; border-radius: 999px; }

/* ── 05 the log ──────────────────────────────────────────────────────── */
.jbl-log { overflow-x: auto; }
.jbl-log table { inline-size: 100%; min-inline-size: 520px; border-collapse: collapse; font-size: 14px; background: #fff; }
.jbl-log caption { caption-side: bottom; text-align: start; padding: 10px 0 0; font-size: 12px; color: var(--wh-muted); }
.jbl-log th, .jbl-log td { text-align: start; padding: 10px 10px; border-bottom: 1px solid var(--wh-rule); vertical-align: top; }
.jbl-log th { font: 700 11px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--wh-muted); background: #FBF8F3; }
.jbl-log td { color: var(--wh-ink); }
.jbl-log tr.new td { background: var(--wh-ok-wash); }
.jbl-log .how { white-space: nowrap; }

/* "does not" list: worker-home's wh-facts, with a mark */
.jbl-nots dt { display: flex; gap: 10px; align-items: start; }
.jbl-nots dt::before { content: "✕" / ""; flex: none; inline-size: 20px; block-size: 20px; border-radius: 50%; background: var(--wh-no-wash); color: var(--wh-no); font: 800 11px/20px var(--font-body); text-align: center; margin-top: 1px; }

/* ── final call to action (the navy band from worker-home) ───────────── */
.jbl-final { text-align: center; }
.jbl-final .wh-h2 { margin-inline: auto; max-inline-size: 20ch; }
.jbl-final .wh-body { margin: 0 auto 28px; max-inline-size: 52ch; }
.jbl-final .wh-btns { justify-content: center; }
.jbl-final .small { margin: 18px auto 0; font-size: 13.5px; max-inline-size: 60ch; }

/* skins.css colours every link and h3; keep this page's own */
body.wh .jbl-card h3, body.wh .jbl-steps h3, body.wh .jbl-factor h3 { text-transform: none; }
@media (forced-colors: active) {
  .jbl-match[data-fit="strong"] { border-width: 3px; }
  .jbl-flag::before, .jbl-logged::before, .jbl-nots dt::before { forced-color-adjust: auto; }
}
@media (max-width: 420px) {
  .jbl-match-top { flex-wrap: wrap; }
  .jbl-steps > li, .jbl-card { padding: 18px 16px 16px; }
}

/* form numbers (C-4.3, C-258.1) never break at their hyphen */
.nb { white-space: nowrap; }
body.wh .jbl-final h2.wh-h2 { margin: 0 auto 16px; }
.jbl-final .wh-kicker { justify-content: center; }
.jbl-log td:first-child { white-space: nowrap; }
/* the legal line closes the page: a short band, not a chapter */
.wh-ch.jbl-legal { padding-block: clamp(28px, 4vw, 44px); border-top: 0; content-visibility: visible; }
.wh-ch.jbl-legal .wh-upl { margin-top: 0; }
.jbl-log:focus-visible { outline: 3px solid var(--wh-orange-ink); outline-offset: -3px; }
