/* Pricing, About, Contact and Book a demo share these rules.
 * Page-only rules. Colours are tokens only, mobile first.
 * Contents: hero diagrams, company facts list, small helpers.
 */

/* ---------------------------------------------------------------- hero diagrams
 * The diagrams are tall and narrow on purpose (viewBox 360 wide). At 375px wide they are drawn at
 * about the size they were designed for, so the text stays readable. Every node is labelled with
 * words; the movement only shows the order. */
.co-diagram {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-inline: auto;
}
.co-node { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.co-node--accent { fill: var(--accent-soft); stroke: var(--accent); }
.co-num { fill: var(--accent); }
.co-num-text { fill: var(--accent-ink); font: 800 16px var(--font-sans); }
.co-label { fill: var(--ink); font: 700 16px var(--font-sans); }
.co-sub { fill: var(--muted); font: 500 13px var(--font-sans); }
.co-note { fill: var(--ink-2); font: 600 13px var(--font-sans); }
.co-arrow { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.co-rail { stroke: var(--accent); stroke-width: 2.5; }
.co-dot { fill: var(--ink); }
.co-travel { offset-path: path("M32 40 V260"); offset-rotate: 0deg; }

/* ---------------------------------------------------------------- company facts */
.facts {
  display: grid;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts__row {
  display: grid;
  gap: 2px;
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--line);
}
.facts__row:first-child { border-top: 0; }
.facts dt {
  color: var(--muted);
  font-size: var(--fs--1);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.facts dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .facts__row { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s-4); align-items: baseline; }
}

/* ---------------------------------------------------------------- small helpers */
.stack { display: grid; gap: var(--s-4); }
.stack--tight { gap: var(--s-2); }
.company-note { color: var(--muted); font-size: var(--fs-0); }
.checklist { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- the apply form
 * /careers/apply/. Built to the same shape as .enquiry in css/components.css - label above field,
 * full-width controls, 48px targets - because it is the same job and a visitor should not have to
 * learn two forms. What is different is that this one is four steps long, so it carries a step bar
 * and its own step headings.
 *
 * It had NO rules at all until the founder opened the live page and saw the raw HTML: a numbered
 * list reading "1About you", inputs at their browser default width, and the honeypot sitting there
 * in plain sight for a human to fill in. Everything below exists because of that.
 */
.apply { display: grid; gap: var(--s-5); max-width: 44rem; }
.apply__form { display: grid; gap: var(--s-6); }
.apply__form[hidden], .apply__done[hidden], [data-apply-plain][hidden], .apply__step[hidden] { display: none; }

/* Four groups on one page, each with a plain heading. There was a step bar and numbered circles here
   until the research said what Greenhouse and Lever already do: one page, send once. */
.apply__group { display: grid; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.apply__group:first-of-type { padding-top: 0; border-top: 0; }
.apply__group-title { margin: 0; font-size: 1.25rem; }

.apply__field { display: grid; gap: 6px; }
.apply__field label { font-weight: 600; }
.apply__hint { color: var(--muted); font-size: var(--fs-0); margin: 0; }
.apply input[type="text"], .apply input[type="email"], .apply input[type="tel"],
.apply input[type="date"], .apply input[type="file"], .apply select, .apply textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.apply textarea { resize: vertical; min-height: 7rem; }
.apply input:focus-visible, .apply select:focus-visible, .apply textarea:focus-visible,
.apply input[type="checkbox"]:focus-visible, .apply input[type="radio"]:focus-visible,
.apply summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.apply__error { color: var(--built-fg); font-size: var(--fs-0); margin: 0; }
.apply__error[hidden] { display: none; }
.apply__count { color: var(--muted); font-size: var(--fs-0); margin: 0; text-align: right; }
.apply__count--over { color: var(--built-fg); }

/* Off screen, never display:none. A robot filling every field it can find still fills it; a person
   never sees it, which is the whole trick and is why it must not be hidden the usual way. */
.apply__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.apply__radios { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.apply__radios legend { font-weight: 600; padding: 0; margin-bottom: 2px; }
.apply__radio, .apply__check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.apply__radio input, .apply__check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }

/* One row per named thing, with its four levels. Wide enough and they sit beside the name; narrow and
   they drop under it, because four labels and a name do not fit across a phone. */
.apply__skills { display: grid; gap: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; padding: var(--s-4); }
.apply__skills legend { font-weight: 700; padding: 0 6px; }
.apply__skill { display: grid; gap: 8px; padding-block: var(--s-3); border-top: 1px solid var(--line); }
.apply__skill:first-of-type { border-top: 0; padding-top: 0; }
.apply__skill-name { margin: 0; font-weight: 600; }
.apply__levels { display: flex; flex-wrap: wrap; gap: 8px; }
.apply__level {
  display: flex; align-items: center; gap: 7px; padding: 8px 12px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-0); cursor: pointer;
}
.apply__level input { width: 18px; height: 18px; margin: 0; flex: none; }
.apply__level:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.apply__questions { display: grid; gap: var(--s-4); }
.apply__questions[hidden], .apply__skills[hidden] { display: none; }

/* The two detached blocks. Closed by default: neither is part of deciding anything. */
.apply__aside { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.apply__aside summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px var(--s-4); font-weight: 600; cursor: pointer; list-style: none; }
.apply__aside summary::-webkit-details-marker { display: none; }
.apply__aside[open] summary { border-bottom: 1px solid var(--line); }
.apply__aside[open] summary .icon--caret { transform: rotate(180deg); }
.apply__aside-body { display: grid; gap: var(--s-4); padding: var(--s-4); }
.apply__aside-body p { margin: 0; color: var(--ink-2); font-size: var(--fs-0); }

.apply__summary { display: grid; gap: var(--s-3); }
.apply__summary-list { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; gap: 8px var(--s-4); margin: 0; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.apply__summary-list dt { font-weight: 600; color: var(--muted); }
.apply__summary-list dd { margin: 0; }

.apply__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; padding-top: var(--s-2); }
.apply__status { margin: 0; min-height: 1.5em; }
.apply__status--bad { color: var(--built-fg); font-weight: 600; }
.apply__fallback { margin: 0; }
.apply__fallback a[hidden] { display: none; }
.apply__done { display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--live-line); border-left: 6px solid var(--live-line); border-radius: 12px; background: var(--live-bg); color: var(--live-fg); }
.apply__done:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.apply__done p, .apply__done h3, .apply__done h4, .apply__done ol { margin: 0; }
.apply__done-title { font-size: 1.375rem; }
.apply__done-steps { padding-left: 1.25rem; display: grid; gap: 6px; }
.apply__done-note { font-size: var(--fs-0); }

@media (min-width: 640px) {
  .apply__skill { grid-template-columns: minmax(11rem, 1fr) auto; align-items: center; gap: var(--s-4); }
}
