/* School hi-vis vests landing page.
   Direction: safety signage. Warm paper, black ink, fluorescent yellow used
   sparingly, and the vest's silver reflective band as the recurring motif. */

:root {
  --paper: #f3f1ea;
  --panel: #ffffff;
  --ink: #15171b;
  --ink-2: #3b3f47;
  --muted: #5b606b;
  --line: #d6d2c6;
  --line-strong: #9c988c;
  --hv: #f2e200;          /* fluorescent yellow */
  --hv-ink: #15171b;      /* text on yellow */
  --hv-soft: #fbf6b8;
  --err: #b3261e;
  --err-bg: #fdecea;
  --ok: #1d6b3a;
  --focus: #ffdd00;
  --focus-ink: #0b0c0c;
  --band-a: #b9bdc4;
  --band-b: #eef0f3;
  --shadow: 0 1px 0 rgba(21,23,27,.06), 0 10px 30px -18px rgba(21,23,27,.35);
  --radius: 6px;
  --gutter: 16px;
  --maxw: 1120px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111316;
    --panel: #1a1d22;
    --ink: #eeece6;
    --ink-2: #cfcdc6;
    --muted: #a3a8b2;
    --line: #2e3239;
    --line-strong: #555b66;
    --hv: #f5e600;
    --hv-ink: #111316;
    --hv-soft: #2c2a10;
    --err: #ff8a80;
    --err-bg: #3a1714;
    --ok: #7fd49a;
    --band-a: #6f747c;
    --band-b: #c9cdd3;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 14px 30px -18px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

/* Focus: the GOV.UK pattern schools already know. Yellow block, black bar. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: 0 0 0 6px var(--focus-ink); }
a:focus-visible, .linkbtn:focus-visible { outline: none; background: var(--focus); color: var(--focus-ink); box-shadow: 0 -2px var(--focus), 0 4px var(--focus-ink); text-decoration: none; }

.skip { position: absolute; left: -9999px; top: 0; padding: 12px 16px; background: var(--focus); color: var(--focus-ink); z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }

/* Reflective band: the grey and silver stripe off the vest. */
.band {
  height: 14px;
  background:
    linear-gradient(180deg, var(--band-a) 0 3px, var(--band-b) 3px 6px, #ffffff 6px 8px, var(--band-b) 8px 11px, var(--band-a) 11px 14px);
}
@media (prefers-color-scheme: dark) { .band { background: linear-gradient(180deg, var(--band-a) 0 3px, var(--band-b) 3px 6px, #e9ecef 6px 8px, var(--band-b) 8px 11px, var(--band-a) 11px 14px); } }

/* Masthead */
.masthead { background: var(--hv); color: var(--hv-ink); }
.masthead__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand__mark { width: 18px; height: 18px; background: var(--hv-ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); }
.brand__sub { font-family: var(--body); text-transform: none; font-weight: 600; font-size: .85rem; letter-spacing: 0; opacity: .8; }
.masthead__since { margin: 0; font-weight: 600; font-size: .9rem; }

/* Hero */
.hero { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 56px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr .85fr; gap: 56px; padding-top: 64px; padding-bottom: 80px; } }

.eyebrow { margin: 0 0 12px; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 6px; background: var(--hv); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 4.3rem); font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 600; }

.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; margin: 22px 0 0; }
.lede--small { font-size: 1rem; color: var(--muted); margin-top: 12px; }
.hero__cta { margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.textlink { font-weight: 600; }

.hero__text > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero__text > *:nth-child(2) { animation-delay: .06s; }
.hero__text > *:nth-child(3) { animation-delay: .12s; }
.hero__text > *:nth-child(4) { animation-delay: .18s; }
.hero__text > *:nth-child(5) { animation-delay: .24s; }
.mock { animation: rise .7s .15s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Mock-up figure */
.mock { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mock__tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.mock__tab { font: 600 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; padding: 14px 10px; background: transparent; color: var(--muted); border: 0; border-bottom: 4px solid transparent; cursor: pointer; }
.mock__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); background: var(--hv-soft); }
.mock__tab:hover { color: var(--ink); }
.mock__stage { background: #ffffff; aspect-ratio: 800 / 889; display: grid; }
.mock__pane { display: grid; place-items: center; }
.mock__pane img { width: 100%; height: 100%; object-fit: contain; }
.mock__generic { width: 100%; height: 100%; display: grid; place-items: center; }
.mock__generic svg { width: 88%; height: auto; }
.mock__cap { padding: 12px 16px 14px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Sections */
.sect { display: grid; gap: 20px; padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .sect { grid-template-columns: 280px 1fr; gap: 56px; } }
.sect__head { display: flex; flex-direction: column; gap: 6px; }
.num { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .12em; color: var(--muted); }
.num::after { content: ""; display: block; width: 40px; height: 4px; margin-top: 8px; background: var(--ink); }

.colour-group + .colour-group { margin-top: 36px; }
.colour-group__title { font-size: 1.4rem; }
.colour-group__note { margin: 6px 0 16px; color: var(--ink-2); max-width: 44em; }
.colour-group--muted .colour-group__title { color: var(--ink-2); }

.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.swatch { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 10px 10px; text-align: center; }
.swatch svg { width: 100%; max-width: 92px; height: auto; margin: 0 auto 6px; display: block; }
.swatch__name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; display: block; }
.swatch__tag { display: inline-block; margin-top: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 3px; }
.swatch__tag--ab3 { background: var(--hv); color: var(--hv-ink); }
.swatch__tag--b3 { border: 1px solid var(--line-strong); color: var(--muted); }

.fine { font-size: .88rem; color: var(--muted); margin: 18px 0 0; }

.grid2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; }
.card p { margin: 12px 0 0; color: var(--ink-2); }
.sizes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.sizes li { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; color: var(--muted); }
.sizes__n { font-family: var(--display); font-weight: 700; font-size: 1.8rem; line-height: 1; color: var(--ink); min-width: 4.2em; }
.ticks { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }

/* Price band */
.price { background: var(--hv); color: var(--hv-ink); }
.price__inner { padding-top: 40px; padding-bottom: 44px; display: grid; gap: 8px; }
@media (min-width: 900px) { .price__inner { grid-template-columns: 280px 1fr; column-gap: 56px; align-items: end; } .price__label { grid-row: 1 / span 3; align-self: start; } }
.price__label { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.price__figure { margin: 0; font-family: var(--display); line-height: .9; }
.price__amount { font-size: clamp(4.5rem, 16vw, 8rem); font-weight: 700; letter-spacing: -.02em; }
.price__unit { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; }
.price__line { margin: 10px 0 0; font-size: 1.15rem; font-weight: 600; max-width: 40em; }
.price__small { margin: 0; font-size: .95rem; }

.garment { font-family: var(--display); font-size: 1.6rem; font-weight: 600; margin: 0 0 18px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .docs { grid-template-columns: repeat(3, 1fr); } }
.doc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; text-decoration: none; min-height: 60px; }
.doc:hover { border-color: var(--ink); }
.doc__type { font: 700 .75rem/1 var(--body); letter-spacing: .06em; padding: 6px 6px; border: 2px solid currentColor; border-radius: 3px; flex: none; }

/* Form */
.formsect { background: var(--panel); border-top: 1px solid var(--line); padding: 56px 0 72px; outline: none; }
.formsect .sect__head { margin-bottom: 28px; }
.form { max-width: 760px; }
.fs { border: 0; margin: 0 0 34px; padding: 0; min-width: 0; }
.fs > legend { font-family: var(--display); font-weight: 700; font-size: 1.5rem; padding: 0; margin-bottom: 14px; width: 100%; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.field { margin: 0 0 18px; min-width: 0; }
.row2 { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
label, .qty label { display: block; font-weight: 700; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.hint { margin: -2px 0 8px; color: var(--muted); font-size: .95rem; }
input[type="text"], input:not([type]), input[type="email"], input[type="tel"], input[type="number"], input[type="date"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line-strong); border-radius: 4px; padding: 10px 12px; min-height: 48px;
}
textarea { resize: vertical; min-height: 110px; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: inset 0 0 0 2px var(--focus-ink); border-color: var(--focus-ink); }
.w-postcode { max-width: 12ch; }
.w-phone { max-width: 22ch; }
.w-po { max-width: 26ch; }
.w-date { max-width: 20ch; }
input[type="file"] { font: inherit; max-width: 100%; }

.is-invalid input, .is-invalid textarea, input.is-invalid { border-color: var(--err); }
.is-invalid { border-left: 4px solid var(--err); padding-left: 14px; }
.errmsg { display: block; color: var(--err); font-weight: 700; margin: 0 0 6px; }

.errsummary { border: 4px solid var(--err); padding: 16px 20px; margin-bottom: 28px; background: var(--err-bg); }
.errsummary h3 { font-size: 1.4rem; margin-bottom: 8px; }
.errsummary ul { margin: 0; padding-left: 20px; }
.errsummary a { color: var(--err); font-weight: 700; }

.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.linkbtn:hover { text-decoration-thickness: 3px; }

.schoolcard { border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 18px; background: var(--paper); margin-bottom: 18px; position: relative; overflow: hidden; }
.schoolcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--hv); }
.schoolcard > * { margin-left: 8px; }
.schoolcard__name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; margin: 0 0 4px 8px; }
.schoolcard__addr, .schoolcard__meta { margin: 0 0 2px 8px; color: var(--ink-2); }
.schoolcard__meta { font-size: .92rem; color: var(--muted); }
.schoolcard__change { margin: 10px 0 8px 8px; }
.subfields { border-left: 4px solid var(--line-strong); padding: 4px 0 2px 16px; margin: 8px 0 18px; }

.check { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px 8px; }
.check label { margin: 0; font-weight: 600; }
.check input { width: 24px; height: 24px; accent-color: var(--ink); flex: none; }

.combo { position: relative; }
.combo__list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px 0; background: var(--panel); border: 2px solid var(--ink); border-radius: 4px; box-shadow: var(--shadow); max-height: 22rem; overflow-y: auto; }
.combo__opt { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.combo__opt:last-child { border-bottom: 0; }
.combo__opt strong { display: block; }
.combo__opt span { color: var(--muted); font-size: .93rem; }
.combo__opt[aria-selected="true"], .combo__opt:hover { background: var(--hv); color: var(--hv-ink); }
.combo__opt[aria-selected="true"] span, .combo__opt:hover span { color: var(--hv-ink); }
.combo__status { margin: 6px 0 4px; min-height: 1.4em; color: var(--muted); font-size: .95rem; }

.choices { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }
.choices--stack { grid-template-columns: 1fr; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 14px; cursor: pointer; margin: 0; font-weight: 400; background: var(--paper); }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.choice__body { display: grid; gap: 2px; }
.choice__body span { color: var(--muted); font-size: .95rem; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--hv-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); box-shadow: 0 0 0 6px var(--focus-ink); }
.choice input:focus-visible { box-shadow: none; outline: none; }

.upload__status { margin: 8px 0 0; font-size: .95rem; }
.upload__status.is-ok { color: var(--ok); font-weight: 700; }
.upload__status.is-err { color: var(--err); font-weight: 700; }

/* Colour picker: small vests as radio buttons */
.colourpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.cp { position: relative; margin: 0; font-weight: 600; }
.cp input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cp__box { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); cursor: pointer; text-align: center; }
.cp__box svg { width: 56px; height: auto; }
.cp__name { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; line-height: 1; }
.cp__sub { font-size: .72rem; font-weight: 700; color: var(--muted); }
.cp input:checked + .cp__box { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); background: var(--hv-soft); }
.cp input:focus-visible + .cp__box { outline: 3px solid var(--focus); box-shadow: 0 0 0 6px var(--focus-ink); }

.more { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; }
.more summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.more[open] { padding-bottom: 14px; }
.more .hint { margin-top: 0; }

.qty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.qty__cell input { font-family: var(--display); font-size: 1.6rem; font-weight: 700; text-align: center; padding: 6px 8px; }
.qty__cell label { font-size: .95rem; }
.qty__total { grid-column: 1 / -1; font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; padding: 14px 16px; background: var(--paper); border: 2px dashed var(--line-strong); border-radius: var(--radius); }
.qty__total.is-ok { border-style: solid; border-color: var(--ink); background: var(--hv-soft); }
@media (min-width: 640px) { .qty { grid-template-columns: repeat(3, minmax(0, 1fr)) 1.2fr; } .qty__total { grid-column: auto; text-align: center; } }

.note { margin: 8px 0 0; padding: 8px 12px; background: var(--hv-soft); border-left: 4px solid var(--hv); font-size: .95rem; }

.consent { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 14px 0; margin: 8px 0 24px; }
.consent p { margin: 0; font-weight: 600; }

.turnstile { margin: 0 0 20px; min-height: 65px; }

.formerr { color: var(--err); background: var(--err-bg); border-left: 4px solid var(--err); padding: 12px 16px; font-weight: 700; margin: 0 0 20px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.actions .btn { flex: 1 1 220px; }
.actions__fine { margin-top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1.25rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 16px 24px; min-height: 54px; border-radius: 4px; border: 2px solid var(--ink); cursor: pointer; text-decoration: none; }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 var(--hv); }
.btn--primary:hover { background: var(--ink-2); }
.btn--secondary { background: var(--hv); color: var(--hv-ink); border-color: var(--hv-ink); box-shadow: 0 4px 0 var(--ink); }
.btn--secondary:hover { filter: brightness(.95); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn:focus-visible { outline: 3px solid var(--focus); box-shadow: 0 0 0 6px var(--focus-ink); }

.thanks { max-width: 760px; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--paper); outline: none; }
.thanks__inner { padding: 24px 24px 20px; }
.thanks h3 { font-size: 2.2rem; }
.thanks h4 { font-family: var(--display); font-size: 1.3rem; margin: 20px 0 6px; }
.thanks__ref { font-size: 1.2rem; margin: 10px 0 0; }
.thanks__ref strong { font-family: var(--display); font-size: 1.6rem; background: var(--hv); color: var(--hv-ink); padding: 0 8px; letter-spacing: .04em; }
.thanks__steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); }
.foot .band { opacity: .9; }
.foot__grid { display: grid; gap: 24px; padding-top: 36px; padding-bottom: 44px; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.foot__addr { font-style: normal; line-height: 1.7; }
.foot__privacy { margin: 0; color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: .95rem; }
.foot a:focus-visible { color: var(--focus-ink); }

@media print {
  .masthead, .band, .mock__tabs, .formsect, .hero__cta { display: none !important; }
  body { background: #fff; color: #000; }
}
