/* The customer-facing side of Lightrole.
   Same register as the tool: cool off-white paper, Inter Tight, hairline
   rules, wide-tracked uppercase labels, teal accent. Hierarchy from
   whitespace and type size, not from boxes.

   ⭐ Light since 2026-09-08. The palette lives in app.css; read the note at
   the top of it before adding a colour, because the accent, the amber, the
   red and the green all had to be darkened to survive on a light ground.

   One deliberate exception to the no-boxes rule: the quote form gets a
   surface. It is the only thing on the page a customer came to use, and on a
   long dark page of hairlines a form drawn in hairlines disappears. Nothing
   else on the site is boxed.

   Loaded after app.css and only adds what the public pages need. */

.site-wrap { max-inline-size: 1160px; margin: 0 auto; padding: 0 22px 56px; }
/* Pages that are nothing but a form. Full width leaves six fields
   stranded across a metre of empty navy. */
.site-wrap.narrow { max-inline-size: 820px; }
.form-narrow { max-inline-size: 540px; }

/* --- masthead ---------------------------------------------------------- */

.site-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* the phone number sits dead centre */
  align-items: baseline;
  gap: 12px 24px;
  padding: 26px 0 20px;
  border-block-end: 1px solid var(--line-soft);
}
.site-top nav { justify-self: end; }
.top-tel { font-size: 1.05rem; font-weight: 600; color: var(--text); white-space: nowrap; letter-spacing: 0.01em; }
.top-tel:hover { color: var(--teal); text-decoration: none; }
@media (max-width: 900px) {
  /* mark and number on the first line, the links under them */
  .site-top { grid-template-columns: 1fr auto; }
  .site-top nav { grid-column: 1 / -1; justify-self: start; }
}
.top-tel .tel-icon, .top-tel .tel-call { display: none; }
/* Phones (Kieran, 2026-10-09: most people will look on a phone after seeing the van).
   One clean row: the mark on the left, a teal Call button on the right. The text links
   go: Open an account is in the contact block a scroll below, and the email too. */
@media (max-width: 640px) {
  .site-top { grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 0 16px; }
  header.site-top nav { display: none; }
  .site-top .lockup span { white-space: nowrap; }
  .top-tel {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--teal); color: #ffffff;
    padding: 11px 18px; font-size: 1rem; font-weight: 600;
  }
  .top-tel:hover { background: #0a655d; color: #ffffff; }
  .top-tel .tel-icon { display: block; inline-size: 17px; block-size: 17px; }
  .top-tel .tel-num { display: none; }
  .top-tel .tel-call { display: inline; }
}
@media (max-width: 370px) { .top-tel { padding: 10px 13px; gap: 6px; } }

/* The lockup from the van doors: the name, the strapline under it, and the
   mark standing the full height of both. The mark's top meets the top of the
   L in "Lightrole" and its foot sits on the strapline's baseline; the small
   margins on .logo are the gap between each line box and its ink. */
.site-mark a, .foot-name { display: inline-flex; align-items: flex-start; color: inherit; line-height: 1; }
.site-mark .logo, .foot-name .logo { height: 29.5px; width: auto; margin: 2.5px 11px 1.3px 0; }
.lockup { display: flex; flex-direction: column; justify-content: space-between; }
.lockup b { font-size: 1.12rem; font-weight: 600; letter-spacing: 0.01em; }
.lockup span {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal); margin-block-start: 0.55em;
}
.site-mark a:hover { text-decoration: none; }

.site-top nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.87rem; }
.site-top nav a { color: var(--muted); }
.site-top nav a:hover, .site-top nav a.on { color: var(--teal); text-decoration: none; }

/* --- the hero, rebuilt 2026-10-11 -------------------------------------------
   One idea, one action, one picture. Copy on the left, the drive-by loop on
   the right; on phones the copy and buttons first, the loop full width under. */
.front {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding-block: 64px 24px;
}
.front-kicker {
  margin: 0 0 18px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}
.front h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  max-inline-size: 16ch;
  text-wrap: balance;
}
.front h1 b { font-weight: 500; display: block; }
.front-lede {
  margin: 24px 0 0;
  max-inline-size: 46ch;
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}
.front-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.front-actions .btn + .btn { margin-inline-start: 0; }
.btn-call { font-size: 1.02rem; padding-inline: 28px; }
.front-actions .btn-plain { color: var(--text); }
.front-note {
  margin: 20px 0 0;
  max-inline-size: 44ch;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}
.front-film { margin: 0; justify-self: end; inline-size: 100%; max-inline-size: 540px; }
.front-film video { border-radius: 6px; }

@media (max-width: 900px) {
  .front { grid-template-columns: 1fr; gap: 36px; padding-block: 36px 8px; }
  .front-film { justify-self: center; max-inline-size: 560px; }
}
@media (max-width: 640px) {
  /* smaller on phones so both buttons are on the first screen (Kieran, 2026-10-11) */
  .front h1 { font-size: 1.7rem; max-inline-size: none; }
  .front-kicker { margin-block-end: 12px; font-size: 0.68rem; }
  .front-lede { font-size: 1rem; margin-block-start: 18px; }
  .front-actions { flex-direction: column; margin-block-start: 26px; }
  .front-actions .btn { text-align: center; padding-block: 15px; }
  /* Phones: the loop sits straight under the headline so it is on the first
     screen (Kieran, 2026-10-11), edge to edge and cropped 4:3 round the street.
     .front-copy steps aside (display: contents) so its children can be ordered
     around the film; the header's Call button stays in view meanwhile. */
  .front { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block-start: 22px; }
  .front-copy { display: contents; }
  .front-kicker { order: 1; }
  .front h1 { order: 2; }
  .front-film { order: 3; margin: 18px calc(50% - 50vw) 0; inline-size: 100vw; max-inline-size: none; }
  .front .front-film video { border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 85%; }
  /* the buttons straight under the loop, then the copy (Kieran, 2026-10-11) */
  .front-actions { order: 4; margin-block-start: 18px; gap: 10px; }
  .front-lede { order: 5; margin-block-start: 26px; }
  .front-note { order: 6; }
  .site-wrap .site-foot { margin-block-start: 36px; }
}

/* Plain facts as a ruled list, read down rather than across. Denser than a
   row of four, and it leaves the width for the form.
   Named .spec, not .facts, because app.css already owns dl.facts as a grid
   for the quoting tool and dl.facts beats .facts on specificity. */
.spec { margin: 36px 0 0; border-block-start: 1px solid var(--line-soft); }
.spec-row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-block-end: 1px solid var(--line-soft);
}
.spec-row dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}
.spec-row dd {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 300;
  color: var(--text);
}

/* --- the van drawings --------------------------------------------------- */

/* Line-art cut-outs with their own soft shadow, on the page ground, no box.
   They are the only pictures on the site and they are there to say what the
   company is before a word is read: a van, with a ramp. */
.van { margin: 0; }
.van picture { display: block; }   /* WebP with the PNG as the fallback, same pixels (2026-10-11) */
.van img { display: block; inline-size: 100%; block-size: auto; }
/* The drive-by loop: a square crop of the 9:16 animation, sky trimmed. */
.van-video video { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1 / 1; border-radius: 4px; background: #dfe9f3; }
.van-fold { margin: 30px 0 4px; max-inline-size: 480px; }
.van-side { max-inline-size: 760px; margin: 6px auto 34px; }
.van-ramp { max-inline-size: 320px; margin: 0 0 0 auto; }
.van-rear { max-inline-size: 420px; margin: 34px 0 0; }   /* under the day-rate copy */

/* What the van takes: the lede and the ramp drawing side by side. */
.takes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 44px;
  align-items: center;
  margin-block-end: 8px;
}
.takes .lede { margin-block-end: 0; }

/* Our own kit: two short columns of copy, nothing else. */
.kit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: center;
}
.kit-grid .lede { margin: 0 0 18px; max-inline-size: 62ch; }
.kit-grid .lede:last-child { margin-block-end: 0; }

/* Van and driver by the day: copy beside an unboxed form. The quote panel is
   the one boxed thing on the site and this is not a second one. */
.day-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.day-copy h3 { margin: 0 0 14px; font-size: 1.24rem; font-weight: 400; letter-spacing: -0.015em; }
.day-copy p { margin: 0 0 16px; color: var(--muted); font-weight: 300; line-height: 1.65; }
.day-copy .day-rate {
  font-size: 1.15rem;
  color: var(--text);
  padding: 14px 0;
  border-block: 1px solid var(--line-soft);
  margin: 22px 0;
}
.day-rate b { font-size: 2.2rem; font-weight: 200; letter-spacing: -0.03em; color: var(--teal); margin-inline-end: 6px; }
.day-form .hint { margin-block-start: 6px; }

@media (max-width: 900px) {
  .takes { grid-template-columns: 1fr; gap: 20px; }
  .van-ramp { margin: 0; max-inline-size: 260px; }
  .van-rear { max-inline-size: 320px; margin-block-start: 26px; }
  .kit-grid { grid-template-columns: 1fr; gap: 24px; }
  .day-grid { grid-template-columns: 1fr; gap: 34px; }
  .van-fold { max-inline-size: 420px; }
}

/* --- the account application, collapsed until asked for ------------------ */

.acct-panel { margin-block-start: 0; }
.acct-panel .fs:first-of-type { border-block-start: 0; padding-block-start: 4px; }

/* Fieldsets are the sections, with a hairline and a small caps title, the
   same register as the band headings. No boxes. */
.fs {
  border: 0;
  padding: 28px 0 22px;
  margin: 0;
  border-block-start: 1px solid var(--line-soft);
}
.fs legend {
  float: left;
  inline-size: 100%;
  padding: 0;
  margin: 0 0 22px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}
.fs legend .opt { text-transform: none; letter-spacing: 0; color: var(--dim); font-weight: 300; margin-inline-start: 8px; }
.fs .q-grid { clear: both; }
.opt { color: var(--dim); font-weight: 300; text-transform: none; letter-spacing: 0; }
.dec-help { clear: both; margin: 0 0 22px; max-inline-size: 70ch; }

/* Radio pills: a choice, not a form control. Hairline, teal when picked. */
.pills { display: flex; gap: 10px; flex-wrap: wrap; clear: both; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.pill span {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid #b9c6d2;
  background: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.2;
}
.pill:hover span { border-color: #8fa2b3; }
.pill input:checked + span { border-color: var(--teal); color: #ffffff; background: var(--teal); }
.pill input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.q-grid .full > .label + .pills { margin-block-start: 2px; }


/* The signature pad: the one other bordered thing, because a box you sign in
   has to look like a box. */
.sig-wrap { position: relative; margin-block-start: 4px; }
.sig {
  display: block;
  inline-size: 100%;
  block-size: 160px;
  background: var(--ink-2);
  border: 1px solid #b9c6d2;
  touch-action: none;
  cursor: crosshair;
}
.sig-hint {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa9b8;
  pointer-events: none;
}
.sig-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sig-row .hint { margin: 0; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 300; color: var(--muted); line-height: 1.5; }
.check input { margin: 5px 0 0; accent-color: var(--teal); flex: none; }

/* The honeypot. Off the page, not display:none, so a bot still sees a field. */
.hp { position: absolute; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; overflow: hidden; }

/* --- the quote panel ---------------------------------------------------- */

.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-block-start: 2px solid var(--teal);
  padding: 28px 32px 34px;
}

.panel-head {
  margin: 0 0 26px;
  padding-block-end: 16px;
  border-block-end: 1px solid var(--line);
  font-size: 1.24rem;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.panel-head span {
  display: block;
  margin-block-start: 6px;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--dim);
}

/* --- section rhythm ----------------------------------------------------- */

.hero { padding: 64px 0 34px; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0;
  max-inline-size: 19ch;
}
.hero h1 b { font-weight: 500; }
.hero p {
  margin: 26px 0 0;
  max-inline-size: 52ch;
  font-size: 1.04rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}

.band { padding-block-start: 66px; }

.band > h2,
.band-head > h2 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin: 0 0 26px;
  padding-block-end: 12px;
  border-block-end: 1px solid var(--line-soft);
}
.band-head > h2 { margin: 0; padding: 0; border: 0; }

/* A band whose rule carries a control on the right (the account form's
   Close). The h2 keeps its type; the rule moves to the wrapper. */
.band-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin: 0 0 26px;
  padding-block-end: 12px;
  border-block-end: 1px solid var(--line-soft);
}
.closer {
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--teal);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.closer:hover { text-decoration: underline; text-underline-offset: 4px; }


.lede {
  margin: 0 0 26px;
  max-inline-size: 62ch;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

/* --- forms -------------------------------------------------------------- */

.q-grid { display: grid; gap: 18px 24px; grid-template-columns: 1fr 1fr; }
.q-grid .full { grid-column: 1 / -1; }
.q-grid .hint.full { margin-block-start: -10px; }
@media (max-width: 680px) { .q-grid { grid-template-columns: 1fr; } }

/* Labels a step darker and a touch larger than the section headings, and
   every field a white box with a real border. Kieran, 2026-09-19: "I feel
   like I have to look at it for a while before understanding where to type."
   An underline on an off-white page is a rule, not a field. A white
   rectangle is a field. */
.site-wrap .label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-block-end: 8px;
}

.site-wrap input[type=text],
.site-wrap input[type=email],
.site-wrap input[type=tel],
.site-wrap input[type=number],
.site-wrap input[type=date],
.site-wrap input[type=password],
.site-wrap select,
.site-wrap textarea {
  inline-size: 100%;
  max-inline-size: 100%;
  background: var(--ink-2);
  border: 1px solid #b9c6d2;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  padding: 11px 13px;
  border-radius: 0;
  box-shadow: inset 0 1px 2px rgba(13, 26, 38, 0.04);
}
.site-wrap textarea { min-block-size: 84px; resize: vertical; }
.site-wrap input:hover, .site-wrap select:hover, .site-wrap textarea:hover { border-color: #8fa2b3; }
.site-wrap select { appearance: none; background-image: none; cursor: pointer; }
.site-wrap select option { background: var(--ink-2); color: var(--text); }
/* The native picker button is white on Chrome's dark form controls and sits
   outside the field box, which is what was pushing the page sideways. */
/* ⚠️ This was inverted to make a white picker icon show on the dark page. On
   paper it has to go the other way, or the icon is pale grey on white and
   nobody finds the date field on a phone. */
.site-wrap input[type=date]::-webkit-calendar-picker-indicator {
  filter: grayscale(1) brightness(0.45);
  cursor: pointer;
  /* A bigger tap target than the native 14px box. */
  padding: 4px;
  margin-inline-end: -4px;
}

.site-wrap input:focus, .site-wrap select:focus, .site-wrap textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 114, 0.14);
}
.site-wrap input::placeholder, .site-wrap textarea::placeholder { color: #8b9aa9; }

.hint { font-size: 0.8rem; color: var(--dim); margin-block-start: 8px; font-weight: 300; }
.field-bad { color: var(--bad); font-size: 0.8rem; margin-block-start: 8px; }
.site-wrap .bad-input { border-color: var(--bad); }

/* --- buttons ------------------------------------------------------------ */

.btn {
  appearance: none;
  border: 1px solid var(--teal);
  background: var(--teal);
  /* ⚠️ Light, not dark. The teal is now a deep teal, so a near-black label on
     it is about 2:1 and unreadable. It was #041016 on the old mint. */
  color: #ffffff;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 30px;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn:hover { background: #0a655d; border-color: #0a655d; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn + .btn { margin-inline-start: 10px; }

.btn-wide { inline-size: 100%; padding-block: 15px; font-size: 1rem; }

.btn-quiet { background: transparent; color: var(--teal); }
.btn-quiet:hover { background: rgba(14, 124, 114, 0.08); }

.btn-plain {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}
.btn-plain:hover { background: transparent; border-color: var(--muted); color: var(--text); }

/* --- the answer --------------------------------------------------------- */

.answer { margin-block-start: 20px; }

/* The price and its breakdown beside the map, so the whole answer is one
   screenful instead of a scroll. */
.answer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding-block-end: 20px;
  border-block-end: 1px solid var(--line-soft);
}
.price-big {
  font-size: clamp(3rem, 8vw, 4.4rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--teal);
}
.price-vat { font-size: 1rem; color: var(--muted); font-weight: 300; }

/* Says back what the postcodes resolved to. A wrong geocode is the one
   failure that looks completely normal in a table of numbers. */
.route-line {
  margin: 18px 0 0;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}
.route-line b { color: var(--text); font-weight: 400; }

.mapbox {
  block-size: 320px;
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
}

.breakdown { inline-size: 100%; border-collapse: collapse; margin-block-start: 22px; font-size: 0.92rem; }
.breakdown td { padding: 11px 0; border-block-end: 1px solid var(--line-soft); font-weight: 300; }
.breakdown td:last-child { text-align: end; color: var(--muted); }
.breakdown tr:last-child td { color: var(--text); font-weight: 400; }

/* --- how it works ------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.steps li { padding: 0 30px; border-inline-start: 1px solid var(--line-soft); }
.steps li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.steps li:last-child { padding-inline-end: 0; }
.step-n {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 14px 0 10px; font-size: 1.06rem; font-weight: 400; letter-spacing: -0.01em; }
.steps p { margin: 0; font-size: 0.9rem; font-weight: 300; color: var(--muted); line-height: 1.65; }

/* --- what the van takes ------------------------------------------------- */

/* Grouped, because a flat list of thirty two reads as a warehouse inventory
   and buries the fact that the van takes access kit and tools as well as
   machines. The groups come from the generated list, not from here. */
/* Columns rather than a grid: the groups are different lengths, and a grid
   leaves the short ones sitting under a hole where the long one was. */
.carry { columns: 3 250px; column-gap: 44px; }
.carry-group { break-inside: avoid; margin-block-end: 32px; }
.carry-group h3 {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  padding-block-end: 10px;
  border-block-end: 1px solid var(--line);
}
.carry-group ul { list-style: none; margin: 0; padding: 0; }
.carry-group li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-block-end: 1px solid var(--line-soft);
  font-size: 0.91rem;
  font-weight: 300;
}
.carry-group li:last-child { border-block-end: 0; }
.carry .kg { color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- job list ----------------------------------------------------------- */

.jobs { inline-size: 100%; border-collapse: collapse; font-size: 0.93rem; }
.jobs th {
  text-align: start;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  padding: 0 14px 12px 0;
  border-block-end: 1px solid var(--line);
}
.jobs td { padding: 15px 14px 15px 0; border-block-end: 1px solid var(--line-soft); font-weight: 300; vertical-align: top; }
.jobs tr:last-child td { border-block-end: 0; }
.jobs .num { text-align: end; font-variant-numeric: tabular-nums; }

/* An order's movements sit under one heading on the bookings page. A hire desk
   that sent four movements sent one job as far as they are concerned. */
.jobs .order-row td {
  padding: 26px 0 8px;
  border-block-end: 1px solid var(--line);
  color: var(--muted);
  font-weight: 300;
  font-size: 0.87rem;
}
.jobs .order-row b { color: var(--text); font-weight: 500; }
.jobs tbody tr:first-child.order-row td { padding-block-start: 0; }

.tag {
  display: inline-block;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
}
/* Tints of each hue, light enough to be a border and not a block of colour. */
.tag-booked   { border-color: #e2c88d; color: var(--warn); }
.tag-accepted { border-color: #a6d4bb; color: var(--good); }
.tag-done     { border-color: var(--line); color: var(--dim); }
.tag-declined, .tag-cancelled { border-color: #e7b2ac; color: var(--bad); }

/* --- the account page: figures, the basket, orders ---------------------- */

/* Three figures on a rule, not three cards. This is a statement page and a
   supplier's buyer reads it the way they read a statement: what is owed, what
   is coming, on what terms. Boxing them would make it a dashboard. */
.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid var(--line);
  margin-block-start: 8px;
}
.figure {
  padding: 26px 30px 28px;
  border-inline-start: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.figure:first-child { padding-inline-start: 0; border-inline-start: 0; }
.figure-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
}
.figure-n {
  font-size: 2.1rem;
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.figure-words { font-size: 1.7rem; }
.figure .hint { margin-block-start: 0; }
/* Amber, not red. Money being late is a conversation, not a failure. */
.figure-bad .figure-n { color: var(--warn); }

/* The basket. The add-a-movement form sits under the table it fills, because
   the table is the thing being built and the form is the tool. */
.lines .line-n {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  inline-size: 28px;
  padding-inline-end: 0;
}
.line-bad td { opacity: 0.75; }
.bad-text { color: var(--bad); font-size: 0.86rem; font-weight: 300; }

.lines tfoot td {
  padding: 14px 14px 14px 0;
  border-block-end: 0;
  font-weight: 300;
}
.lines tfoot .total-row td { border-block-start: 1px solid var(--line); padding-block-start: 18px; }
.lines tfoot .grand-row td {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 400;
  padding-block-start: 4px;
}

.line-form { margin-block-start: 34px; padding-block-start: 30px; border-block-start: 1px solid var(--line-soft); }

.btn-tiny { padding: 6px 12px; font-size: 0.76rem; }

/* An order is a heading with its movements under it. The rule above each one
   does the separating, so nothing needs a border round it. */
.order { margin-block-start: 40px; padding-block-start: 24px; border-block-start: 1px solid var(--line); }
.order:first-child { margin-block-start: 0; padding-block-start: 0; border-block-start: 0; }
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-block-end: 14px;
}
.order-ref {
  display: block;
  font-size: 1.06rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-block-end: 5px;
}
.order-head .hint { margin-block-start: 0; }
.order-total {
  text-align: end;
  font-size: 1.34rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.order-total .hint { display: block; text-align: end; }
.order .jobs td { padding-block: 12px; }

.due { font-size: 0.8rem; color: var(--dim); font-weight: 300; }
.due-overdue { color: var(--warn); }
.due-soon { color: var(--text); }

@media (max-width: 900px) {
  .figures { grid-template-columns: 1fr; }
  .figure { padding: 22px 0; border-inline-start: 0; border-block-start: 1px solid var(--line-soft); }
  .figure:first-child { border-block-start: 0; padding-block-start: 22px; }
  .line-form { grid-template-columns: 1fr; }
}

/* --- notes -------------------------------------------------------------- */

.note {
  border-inline-start: 2px solid var(--teal);
  padding: 4px 0 4px 16px;
  color: var(--muted);
  font-weight: 300;
  margin-block-start: 22px;
}
/* The text was a pale pink for a dark ground. On paper it is the red itself. */
.note-bad { border-inline-start-color: var(--bad); color: var(--bad); }
/* Advisories sit above a table, so they need room under them as well as over. */
#advisories .note { margin-block-end: 26px; }
.note-warn { border-inline-start-color: var(--warn); }

.site-foot {
  margin-block-start: 48px;   /* was 84px: a gulf under the hero once the lower sections went (2026-10-11) */
  padding-block-start: 26px;
  border-block-start: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 0.84rem;
  font-weight: 300;
}
.site-foot a { color: var(--muted); }
/* The name on its own line, then one small line: registration, registered
   office and the email, spaced apart, the email pushed to the right. Wraps
   to three lines on a phone. */
.foot-name { font-size: 1rem; color: var(--text); }
.foot-legal {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
  gap: 6px 32px;
  align-items: baseline;
}
@media (max-width: 1000px) {
  .foot-legal { flex-direction: column; gap: 4px; }
}

.spin { color: var(--muted); font-weight: 300; }
[hidden] { display: none !important; }

/* --- narrower screens --------------------------------------------------- */

/* One column, and the form goes ABOVE the supporting copy. On a phone the
   thing they came for should be the thing they land on. */
/* --- on a phone ---------------------------------------------------------
   ⭐ Kieran, 2026-09-08: "A lot of the jobs initially will come from Adil at
   Plant Fusion, and he'll want to book delivery right after his phonecall with
   the customer and supplier, and he'll be doing that on his phone."

   That makes the phone the primary device for booking, not the fallback. The
   person using it has just put the phone down on a customer, is standing in a
   yard, and wants the movement in before he forgets the postcode.

   ⛔ A TABLE OF SIX COLUMNS DOES NOT SHRINK, IT COLLAPSES. At 400px the order
   rows put one word on each line, ran a movement over eight lines of stacked
   fragments, and still pushed the page sideways. Squeezing columns is not an
   option and neither is a horizontal scroller, because the price and the
   Cancel button end up off the edge where nobody finds them.

   So below 640px every one of these tables stops being a table and becomes a
   stack, laid out with grid on the row. The reference and the money go on one
   line because those are the two things being looked for; everything else
   reads underneath in the order it is spoken.

   ⚠️ The layouts below address cells by nth-child, so the COLUMN ORDER in the
   markup is load-bearing. Add or move a column in account.js or jobs.js and
   you must move it here too. It is written this way on purpose: the
   alternative is a second set of markup for phones, which is how the two
   drift apart. */

@media (max-width: 640px) {

  /* Nothing is a table any more. thead describes columns that no longer
     exist, so it goes. */
  .jobs, .jobs tbody, .jobs tfoot, .jobs tr, .jobs td { display: block; }
  .jobs thead { display: none; }
  .jobs td { padding: 0; border: 0; }
  .jobs .num { text-align: start; }

  .jobs tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 3px 14px;
    padding: 18px 0;
    border-block-end: 1px solid var(--line-soft);
  }
  .jobs tbody tr:last-child { border-block-end: 0; }

  /* An order's movements: ref and price on the top line, then the machine,
     the route, the day, and finally the status beside whatever can be done
     about it. */
  .order .jobs tbody tr > td:nth-child(1) { grid-column: 1; font-variant-numeric: tabular-nums; }
  .order .jobs tbody tr > td:nth-child(5) {
    grid-column: 2; grid-row: 1; text-align: end;
    font-size: 1.05rem; white-space: nowrap;
  }
  .order .jobs tbody tr > td:nth-child(2) { grid-column: 1 / -1; }
  .order .jobs tbody tr > td:nth-child(3) { grid-column: 1 / -1; }
  .order .jobs tbody tr > td:nth-child(4) { grid-column: 1; margin-block-start: 8px; }
  .order .jobs tbody tr > td:nth-child(6) { grid-column: 2; text-align: end; }

  /* The basket being built: number and price on the top line, then what it is,
     the route, the day, and the Remove button. */
  .lines tbody tr > td:nth-child(1) { grid-column: 1; }
  .lines tbody tr > td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: end; }
  .lines tbody tr > td:nth-child(2) { grid-column: 1 / -1; }
  .lines tbody tr > td:nth-child(3) { grid-column: 1; margin-block-start: 6px; }
  .lines tbody tr > td:nth-child(5) { grid-column: 2; text-align: end; }

  /* The total under the basket. Empty cells would each take a line of their
     own, so they are hidden and the two that matter are put side by side. */
  .lines tfoot tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 6px 0;
  }
  .lines tfoot td:empty { display: none; }
  .lines tfoot td:last-child { text-align: end; }
  .lines tfoot .total-row td { border-block-start: 0; padding-block-start: 6px; }
  .lines tfoot .total-row { border-block-start: 1px solid var(--line); margin-block-start: 10px; padding-block-start: 14px; }

  /* The statement. Numbers with no column heading mean nothing, so each one
     carries its own label from data-label. */
  /* ⚠️ ONE column, so each figure gets a line of its own. Two to a line put
     "Movements 2" beside "Ex VAT £80.00" and the labels and the numbers
     interleaved into a muddle. A statement reads label left, figure right,
     one to a line, which is how it will read on the invoice too. */
  #statement tbody tr { grid-template-columns: 1fr; gap: 6px; }
  #statement tbody td {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: baseline;
  }
  #statement tbody td[data-label]::before {
    content: attr(data-label);
    color: var(--dim);
  }
  #statement tbody td:nth-child(1) {
    display: block;
    font-size: 1.06rem;
    margin-block-end: 8px;
  }
  #statement tbody td:nth-child(6) { margin-block-start: 8px; text-align: end; }

  /* Kieran's bookings page. Same idea: reference and price up top, the
     customer and the job underneath, then the status and the buttons. */
  #jobs tbody tr > td:nth-child(1) { grid-column: 1; }
  #jobs tbody tr > td:nth-child(5) { grid-column: 2; grid-row: 1; text-align: end; font-size: 1.05rem; }
  #jobs tbody tr > td:nth-child(2),
  #jobs tbody tr > td:nth-child(3),
  #jobs tbody tr > td:nth-child(4) { grid-column: 1 / -1; }
  #jobs tbody tr > td:nth-child(6) { grid-column: 2; grid-row: 1; display: none; }
  #jobs tbody tr > td:nth-child(7) { grid-column: 1; margin-block-start: 10px; }
  #jobs tbody tr > td:nth-child(8) { grid-column: 1 / -1; margin-block-start: 12px; }
  /* The order heading spans a grid that no longer has eight columns. */
  #jobs tbody tr.order-row { display: block; padding: 26px 0 10px; border-block-end: 1px solid var(--line); }

  /* Thumbs, not cursors. A 26px button is a miss on a phone in a yard. */
  .btn-tiny { padding: 11px 18px; font-size: 0.85rem; }

  /* ⚠️ Accept and Decline side by side and the same width, not one auto and
     one full width. The narrower rule below turns every second button into a
     full-width block, which both looked wrong here and pushed the row six
     pixels past the edge of the screen. */
  #jobs tbody td:nth-child(8) { display: flex; gap: 10px; }
  #jobs tbody td:nth-child(8) .btn {
    flex: 1;
    display: block;
    inline-size: auto;
    margin: 0;
    padding: 12px 10px;
    text-align: center;
  }

  /* The buttons that move the job on go full width, in the order they are
     used: add the movement, then price the lot. */
  .line-form .full .btn, .line-form .full .spin { display: block; inline-size: 100%; margin: 0 0 10px; text-align: center; }

  /* ⭐ Booking comes before the statement on a phone.
     Same argument as the front page, where the form goes above the copy: the
     person holding the phone has just put it down on a customer and wants the
     movement in before he forgets the postcode. What he owes can wait one
     scroll. On a wider screen the order is unchanged, because there the
     figures and the form are both on screen at once anyway. */
  #in { display: flex; flex-direction: column; }
  #in > .hero    { order: 1; }
  #in > #basket  { order: 2; padding-block-start: 34px; }
  #in > .figures { order: 3; margin-block-start: 44px; }
  #in > .band    { order: 4; }
}

@media (max-width: 900px) {
  .fold { grid-template-columns: 1fr; gap: 44px; padding-block-start: 36px; }
  .pitch { order: 2; }
  .panel { order: 1; }
  .answer-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 22px 0; border-inline-start: 0; border-block-start: 1px solid var(--line-soft); }
  .steps li:first-child { padding-block-start: 0; border-block-start: 0; }
}

@media (max-width: 560px) {
  .site-wrap { padding: 0 16px 36px; }
  .panel { padding: 24px 20px 28px; margin-inline: -16px; border-inline: 0; }
  .btn + .btn { margin-inline-start: 0; margin-block-start: 10px; display: block; inline-size: 100%; }
}

/* insurance (2026-11-03, types only since 2026-11-04): the cover and what it
   covers, no limits. Hairline rows like the rest of the page, no boxes.
   Stacks on a phone. */
.cover { margin: 0; max-inline-size: 900px; }
.cover-row {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 4px 24px;
  align-items: baseline;
  padding: 14px 0;
  border-block-end: 1px solid var(--line-soft);
}
.cover-row:first-child { padding-block-start: 0; }
.cover dt { font-weight: 500; color: var(--text); }
.cover dd { margin: 0; }
.cover-what { color: var(--muted); font-weight: 300; line-height: 1.55; }
.cover-note { margin: 18px 0 0; max-inline-size: 70ch; font-size: 0.84rem; color: var(--dim); font-weight: 300; line-height: 1.6; }
@media (max-width: 760px) {
  .cover-row { grid-template-columns: 1fr; }
}
