/* PureLine Hygiene — site styles */

:root {
  color-scheme: light;
  --ink: #14232a;
  --ink-2: #22343c;
  --steel: #3c525b;
  --muted: #5d6c70;
  --paper: #f4f2ec;
  --paper-2: #e9ebe4;
  --white: #fffdf8;
  --line: #d6dad2;
  --line-strong: #aeb8b1;
  --teal: #2f6f68;
  --teal-dark: #22544f;
  --aqua: #9fd8cf;
  --amber: #d9a441;
  --error: #a3392a;
  --focus: #1b5f58;
  --container: 1200px;
  --header-h: 72px;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
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, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - 3rem)); margin-inline: auto; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--white); text-decoration: none;
}
.skip-link:focus { top: 1rem; }
section[tabindex="-1"]:focus { outline: none; }

.eyebrow {
  margin-bottom: 1rem;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow-dark { color: var(--teal-dark); }
.eyebrow a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(244 242 236 / 96%);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; letter-spacing: 0.16em; font-size: 0.95rem; }
.brand-rule { width: 4px; height: 1.6rem; background: var(--teal); }
.brand-name { font-weight: 700; }
.brand-sub { font-weight: 400; color: var(--steel); }
.main-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.main-nav a {
  position: relative; padding: 0.4rem 0;
  color: var(--ink-2); font-size: 0.92rem; font-weight: 500; text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.7rem 1.4rem;
  border: 1px solid transparent; border-radius: 2px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:disabled { cursor: progress; opacity: 0.7; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--teal-dark); }
.btn-outline { border-color: rgb(255 255 255 / 55%); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgb(255 255 255 / 8%); }
.btn-outline-dark { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--teal); }
.btn-light { background: var(--white); color: var(--teal-dark); }
.btn-light:hover { background: var(--aqua); }
.btn-link {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0;
  border: 0; background: none; color: var(--teal-dark);
  font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.btn-link:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 clamp(2.25rem, 5vw, 3.75rem);
  background: var(--ink);
  color: #fff;
}
.hero > .container { position: relative; }
.hero-scene { position: absolute; inset: 0; z-index: -2; }
.hero-scene svg, .hero-scene img { width: 100%; height: 100%; object-fit: cover; }
/* Keep the busy machinery on the right, away from the text */
.hero-scene img { object-position: right center; }
/* Keeps the copy legible on the left while the image stays visible on the right. */
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(20 35 42 / 95%) 0%, rgb(20 35 42 / 86%) 38%, rgb(20 35 42 / 32%) 68%, rgb(20 35 42 / 10%) 100%);
}
.hero-copy { max-width: 40rem; }
.hero .eyebrow { margin-bottom: 0.75rem; }
.hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 4.3vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.03; }
.hero-sub { margin-top: 0.7rem; color: var(--aqua); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 800; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.hero-text { max-width: 34rem; margin-top: 0.5rem; color: #fff; font-size: clamp(1.2rem, 1.9vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.hero-note { max-width: 34rem; margin-top: 0.8rem; color: #9fb1ad; font-size: 0.82rem; }

/* Qualifying question in the hero ("Which describes you?") */
.hero-qualify {
  position: relative;
  max-width: 44rem; margin: 0.9rem 0 0; padding: 0.85rem 1rem 1rem; min-width: 0;
  border: 0; border-top: 5px solid var(--amber); border-radius: 8px;
  background: var(--white); color: var(--ink); box-shadow: 0 14px 34px rgb(0 0 0 / 35%);
}
.hero-qualify legend { display: contents; }
.hero-step-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.3rem; }
/* "Step 1" is the card's heading */
.hero-step { display: block; color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hero-required {
  display: inline-block; margin: 0; padding: 0.15rem 0.55rem; border-radius: 999px;
  background: var(--error); color: #fff; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-qualify:has(input:checked) .hero-required { background: var(--teal); }
.hero-qualify:has(input:checked) .hero-required::before { content: "✓ "; }
/* Until answered, a gold ring pulses around the question so it is hard to miss */
.hero-qualify::after {
  content: ""; position: absolute; inset: -6px; border-radius: 12px; pointer-events: none;
  border: 3px solid var(--amber); opacity: 0;
}
.hero-qualify:not(:has(input:checked))::after { animation: attention 1.8s ease-in-out infinite; }
@keyframes attention {
  0%, 100% { opacity: 0.25; box-shadow: 0 0 0 0 rgb(217 164 65 / 0%); }
  50% { opacity: 1; box-shadow: 0 0 0 10px rgb(217 164 65 / 22%); }
}
.hero-question { display: inline; color: var(--ink-2); font-size: clamp(1.05rem, 1.8vw, 1.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.hero-choose { display: inline-block; margin-left: 0.5rem; color: var(--teal-dark); font-size: 0.9rem; font-weight: 600; }
/* Two columns so every label fits on one line inside the card */
.hero-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.7rem; }
.hero-option {
  display: flex; align-items: center; gap: 0.6rem; min-width: 0; min-height: 48px;
  padding: 0.45rem 0.7rem; border: 2px solid var(--teal); border-radius: 6px; background: #fff;
  color: var(--ink); font-size: 0.92rem; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.hero-option:hover { background: #eef6f3; box-shadow: 0 0 0 3px rgb(47 111 104 / 25%); }
.hero-option > span, .hero-other-choice > span { overflow: hidden; text-overflow: ellipsis; }
.hero-option:has(input:checked) { border-color: var(--teal-dark); background: var(--teal); color: #fff; box-shadow: 0 0 0 3px var(--amber); }
.hero-option:has(input[type="radio"]:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
/* Large custom radio circles */
.hero-option input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: none; display: grid; place-content: center;
  width: 1.5rem; height: 1.5rem; margin: 0; border: 2.5px solid var(--teal); border-radius: 50%; background: #fff; cursor: pointer;
}
.hero-option input[type="radio"]::before { content: ""; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--amber); transform: scale(0); transition: transform 120ms ease; }
.hero-option input[type="radio"]:checked { border-color: var(--amber); }
.hero-option input[type="radio"]:checked::before { transform: scale(1); }
.hero-option input[type="radio"]:focus-visible { outline: none; }
/* "Other" with a text box beside it */
.hero-option-other { cursor: default; padding-block: 0.35rem; }
.hero-other-choice { display: flex; flex: none; align-items: center; gap: 0.6rem; min-width: 0; cursor: pointer; }
.hero-other-input {
  flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 0.55rem;
  border: 1.5px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--ink);
  font: inherit; font-weight: 500; white-space: normal;
}
.hero-other-input::placeholder { color: var(--muted); }
.hero-other-input:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--teal); }
.hero-option-other:not(:has(input[type="radio"]:checked)) .hero-other-input { background: var(--paper); }
/* Shown when someone saves without choosing */
.hero-qualify.needs-answer { background: #fdf1ef; box-shadow: 0 0 0 4px var(--error), 0 14px 34px rgb(0 0 0 / 35%); animation: nudge 420ms ease 2; }
.hero-qualify.needs-answer .hero-choose { color: var(--error); }
@keyframes nudge { 0%, 100% { translate: 0 0; } 25% { translate: -6px 0; } 75% { translate: 6px 0; } }

/* "We Specialise In" — one row directly under the hero */
.credentials { background: var(--white); border-bottom: 1px solid var(--line); }
.credentials-inner { padding-block: 1.1rem; }
/* Three equal columns across the full width, separated by teal dividers. */
.credentials-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.credentials-list li {
  display: flex; align-items: center; justify-content: center; gap: 0.65rem;
  padding: 0.35rem clamp(0.5rem, 1.5vw, 1.25rem);
}
.credentials-list li + li { border-left: 2px solid var(--teal); }
.credentials-list .icon { flex: none; }
/* Official marks: shown at a fixed height, width follows each logo's shape. */
.cred-logo { flex: none; width: auto; height: 34px; }
.cred-tick { flex: none; width: 34px; height: 34px; color: var(--teal); }
.cred-logo-round { height: 52px; }
/* The B-BBEE badge has a white margin round it, so it needs a little more height to match the Proudly SA mark */
.cred-logo-bbee { height: 64px; }
.credentials-list strong { display: block; font-size: 0.9rem; font-weight: 600; line-height: 1.25; }
.credentials-list small { display: block; color: var(--muted); font-size: 0.76rem; line-height: 1.35; }
.icon { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Estimator section ---------- */
.estimator-section { padding: clamp(1.75rem, 3.5vw, 2.75rem) 0; background: var(--paper-2); }
.estimator { display: grid; gap: 0.85rem; min-width: 0; }
.est-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0.85rem; align-items: stretch; }
.est-row:nth-child(3) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Progress */
.funnel-progress { --progress: 0%; padding: 1rem 1.25rem 0.9rem; background: var(--white); border: 1px solid var(--line); }
.progress-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
.progress-head { align-items: center; }
.progress-head h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.est-tagline { margin-top: 0.15rem; color: var(--teal-dark); font-size: 0.92rem; font-weight: 600; }
/* Step 2 heading: same size, colour and Required badge as Step 1 */
.step2-head .hero-step-row { margin: 0 0 0.3rem; font-size: inherit; }
.step2-head .est-tagline { margin: 0; color: var(--ink-2); font-size: clamp(1.05rem, 1.8vw, 1.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.step2-head[data-done="true"] .hero-required { background: var(--teal); }
.step2-head[data-done="true"] .hero-required::before { content: "✓ "; }
.progress-text { padding: 0.15rem 0.55rem; background: #eef6f3; color: var(--teal-dark); font-size: 0.78rem; }
.progress-track { position: relative; height: 6px; background: var(--paper-2); overflow: hidden; }
.progress-fill { position: absolute; inset: 0 auto 0 0; width: var(--progress); background: var(--teal); transition: width 400ms ease; }
.progress-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0.6rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.78rem; }
.progress-steps li { display: flex; align-items: center; gap: 0.4rem; }
.progress-steps li:nth-child(2) { justify-content: center; }
.progress-steps li:nth-child(3) { justify-content: flex-end; }
.step-dot {
  display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white);
  font-family: var(--mono); font-size: 0.66rem;
}
.progress-steps li.is-complete { color: var(--teal-dark); font-weight: 600; }
.progress-steps li.is-complete .step-dot { border-color: var(--teal); background: var(--teal); color: #fff; }

/* Steps */
.est-step { min-width: 0; padding: clamp(1.1rem, 2vw, 1.5rem); background: var(--white); border: 1px solid var(--line); }
.step-index { margin-bottom: 0.2rem; color: var(--teal); font-size: 0.75rem; }
.est-step h3 { margin-bottom: 0.9rem; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.est-step h3:focus { outline: none; }
.hint { margin-top: 0.6rem; color: var(--muted); font-size: 0.82rem; }
.hint:empty { display: none; }
.step-lead { margin: -0.55rem 0 0.8rem; color: var(--ink-2); font-size: 0.9rem; }

/* Slider labels */
.slider-label { display: block; margin-bottom: 0.45rem; color: var(--ink-2); font-size: 0.8rem; font-weight: 600; }
.price-control { min-width: 0; }
.price-input-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 0.5rem; }
.price-field { position: relative; display: block; }
.price-prefix { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--mono); font-size: 1.1rem; }
.price-field input {
  width: 100%; min-height: 48px; padding: 0.4rem 0.8rem 0.4rem 2.2rem;
  border: 1px solid var(--line-strong); border-radius: 2px; background: #fff;
  font-family: var(--mono); font-size: 1.3rem; font-weight: 500; text-align: center;
}
.price-field input:focus-visible { outline-offset: 0; border-color: var(--teal); }

/* Quantity: single pads = packs of 10 (compact) */
.qty-equation { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); align-items: end; gap: 0.6rem; }
/* Packs are what we sell: the packs box leads, the pad count follows */
.qty-box-primary .qty-field input { min-height: 56px; border-color: var(--teal); border-width: 2px; font-size: 1.3rem; font-weight: 700; }
.qty-box-primary .slider-label { color: var(--teal-dark); font-weight: 700; }
.qty-box-secondary .qty-field input { color: var(--ink-2); }
.qty-box { display: block; min-width: 0; }
.qty-equals { padding-bottom: 0.55rem; color: var(--teal); font-family: var(--mono); font-size: 1.5rem; line-height: 1; }
.qty-slider-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 0.6rem; margin-top: 0.8rem; }
.qty-slider-row .qty-step { height: 40px; font-size: 1.25rem; }
.qty-slider-row .qty-range { margin: 0; }
.qty-step {
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--white);
  font-size: 1.5rem; line-height: 1;
}
.qty-step:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); }
.qty-step:disabled { cursor: not-allowed; opacity: 0.4; }
.qty-field { position: relative; display: block; }
.qty-field input {
  width: 100%; min-height: 48px; padding: 0.35rem 3.6rem 0.35rem 0.8rem;
  border: 1px solid var(--line-strong); border-radius: 2px; background: #fff;
  font-family: var(--mono); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; text-align: center;
}
.qty-field input:focus-visible { outline-offset: 0; border-color: var(--teal); }
.qty-unit { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; }
.qty-range { width: 100%; margin: 0.8rem 0 0; accent-color: var(--teal); cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; margin-top: 0.3rem; color: var(--muted); font-size: 0.72rem; }

/* Visualiser */
.visualiser { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }
.visual-panel { margin: 0; border: 1px solid var(--line); background: var(--paper); }
.visual-stage { aspect-ratio: 360 / 220; overflow: hidden; }
.visual-stage svg, .visual-stage img { width: 100%; height: 100%; object-fit: cover; }
.visual-tier svg {
  transform: scale(calc(0.86 + var(--tier-progress, 0) * 0.14));
  transform-origin: 50% 92%;
  transition: transform 300ms ease;
}
.visual-tier.is-entering svg, .visual-tier.is-entering img { animation: tier-in 360ms ease both; }
@keyframes tier-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.visual-panel figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem;
  padding: 0.55rem 0.8rem; border-top: 1px solid var(--line); background: var(--white);
  font-size: 0.88rem; font-weight: 600;
}
.visual-kicker { width: 100%; color: var(--muted); font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.visual-range { color: var(--teal-dark); font-size: 0.78rem; }
.visual-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; margin-top: 0.6rem; }
.visual-foot .hint { margin: 0; }
.gallery-region { margin-top: 0.5rem; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.gallery-item {
  display: grid; width: 100%; padding: 0; text-align: left;
  border: 1px solid var(--line); border-radius: 0; background: var(--paper);
  transition: border-color 160ms ease;
}
.gallery-item:hover { border-color: var(--teal); }
.gallery-item[aria-current="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.gallery-art { display: block; aspect-ratio: 360 / 220; }
.gallery-art svg, .gallery-art img { width: 100%; height: 100%; object-fit: cover; }
.gallery-label { padding: 0.55rem 0.75rem 0; font-size: 0.85rem; font-weight: 600; background: var(--white); }
.gallery-range { padding: 0 0.75rem 0.6rem; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; background: var(--white); }

/* Illustrations */
.i-pad { fill: #fff; stroke: #c4cfcb; stroke-width: 1.5; }
.i-pad-wing { fill: #e6edea; stroke: #c4cfcb; stroke-width: 1.5; }
.i-pad-core { fill: #dcece8; }
.i-pack { fill: var(--teal); }
.i-pack-top { fill: var(--teal-dark); }
.i-band { fill: var(--aqua); }
.i-label { fill: var(--paper); }
.i-carton { fill: #c9a56c; }
.i-tape { fill: #ab8852; }
.i-carton-label { fill: #f1eee5; }
.i-edge { stroke: #ab8852; stroke-width: 1.5; }
.i-pallet { fill: #9b7a4e; }
.i-pallet-dark { fill: #7b603e; }
.i-ground { fill: #14232a; opacity: 0.07; }
.i-depth { opacity: 0.5; }

/* Price: per pad and per pack side by side */
.price-pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0.75rem; align-items: end; }
.price-pair .price-control:first-child .price-field input { border-color: var(--teal); border-width: 2px; font-weight: 700; }
.price-pad-control .price-field input { background: var(--paper); color: var(--ink-2); }

/* "You asked for 1,200 packs = R3,600.00" */
.cost-result { margin-top: 1rem; padding: 0.9rem 1.1rem; background: var(--ink); color: #fff; }
.cost-result-kicker { color: #c5d2ce; font-size: 0.92rem; font-weight: 500; line-height: 1.4; }
.cost-result-kicker strong { color: #fff; font-weight: 700; }
.cost-result-main { margin-top: 0.15rem; font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.2; overflow-wrap: anywhere; }
.cost-result-base { margin-top: 0.4rem; color: #c5d2ce; font-size: 0.85rem; }
.cost-result-base:empty { display: none; }

/* Packaging and delivery */
.pack-text { margin: 0.6rem 0 0.8rem; color: var(--ink-2); font-size: 0.92rem; }
.collect-option { margin-top: 0.8rem; }
.field.is-disabled { opacity: 0.55; }
.save-bar .stage1-actions { margin-top: 0; }
/* Step 1 reminder above Save */
.step1-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 1rem; padding: 0.8rem 1rem; border-radius: 6px; border: 2px solid; }
.step1-status p { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.step1-icon { display: inline-grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: #fff; font-weight: 700; }
.step1-status[data-state="missing"] { border-color: var(--error); background: #fdecea; color: #7a2a1f; }
.step1-status[data-state="missing"] .step1-icon { background: var(--error); }
.step1-status[data-state="missing"] .step1-done { display: none; }
.step1-status[data-state="done"] { border-color: var(--teal); background: #e3f1ed; color: var(--ink); }
.step1-status[data-state="done"] .step1-icon { background: var(--teal); }
.step1-status[data-state="done"] .step1-missing { display: none; }
.step1-go { margin-left: auto; }
.step1-status[data-state="missing"] .step1-go { color: #7a2a1f; font-size: 1rem; }

/* Cost estimate */
.cost-empty { margin-top: 0.6rem; color: var(--ink-2); font-weight: 600; }
.disclaimer { margin-top: 0.8rem; padding-left: 0.75rem; border-left: 3px solid var(--amber); color: var(--ink-2); font-size: 0.88rem; font-weight: 500; }

/* Options */
.check-grid, .radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.check-option, .radio-option {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.7rem 0.85rem; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-size: 0.93rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.check-option:hover, .radio-option:hover { border-color: var(--teal); }
.check-option:has(input:checked), .radio-option:has(input:checked) { border-color: var(--teal); background: #eef6f3; }
.check-option input, .radio-option input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0.2rem 0 0; accent-color: var(--teal); }
/* Large, high-contrast tick boxes */
.check-option { border-width: 2px; border-color: var(--teal); border-radius: 6px; font-weight: 600; }
.check-option input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; display: grid; place-content: center;
  width: 1.5rem; height: 1.5rem; margin: 0; border: 2.5px solid var(--teal); border-radius: 5px; background: #fff; cursor: pointer;
}
.check-option input[type="checkbox"]::before {
  content: ""; width: 0.8rem; height: 0.45rem; margin-top: -0.2rem;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) scale(0); transition: transform 120ms ease;
}
.check-option input[type="checkbox"]:checked { background: var(--teal); border-color: var(--teal-dark); }
.check-option input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
.check-option:has(input:checked) { background: #e3f1ed; box-shadow: 0 0 0 2px var(--teal); }
.check-option:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.check-option input[type="checkbox"]:focus-visible { outline: none; }
.check-option:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.qualify { margin: 0; padding: 0; border: 0; min-width: 0; }
.qualify legend { padding: 0; }
.stage1-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1rem; }
.stage1-actions .hint { margin: 0; }
.form-error { margin-top: 0.8rem; color: var(--error); font-weight: 600; }

/* Stage 2 */
.stage2 h3 { max-width: 40ch; }
.sync-status { margin: -0.4rem 0 0.9rem; color: var(--teal-dark); font-size: 0.78rem; }
.sync-status[data-status="error"] { color: var(--error); }
.stage2-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 1.25rem; align-items: start; }
.summary { padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); }
.summary h4 { margin-bottom: 0.6rem; font-size: 0.95rem; }
.summary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1rem; margin: 0 0 0.8rem; }
.summary-list dt { color: var(--muted); font-size: 0.75rem; }
.summary-list dd { margin: 0.15rem 0 0; font-weight: 600; font-size: 0.95rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1rem; }
.field { display: grid; gap: 0.35rem; align-content: start; font-size: 0.85rem; font-weight: 600; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong); border-radius: 2px; background: #fff; font-weight: 400; font-size: 1rem;
}
.field input:focus-visible { outline-offset: 0; border-color: var(--teal); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.8rem; font-weight: 500; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; gap: 0.5rem; margin-top: 0.9rem; }
.consent .check-option { font-size: 0.9rem; }
.consent a { color: var(--teal-dark); }
.notice { margin: 0.9rem 0; padding: 0.75rem 1rem; background: #fbf4e4; border-left: 3px solid var(--amber); font-size: 0.9rem; font-weight: 500; }
.form-status { min-height: 1.4rem; margin-top: 0.75rem; color: var(--error); font-weight: 500; }

/* Success messages (green) */
:root { --success: #1f7a4d; --success-bg: #e8f5ee; }
.success-note, .success-banner {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-top: 0.9rem; padding: 0.7rem 0.9rem;
  border: 1px solid var(--success); border-left-width: 4px; background: var(--success-bg);
  color: var(--success); font-size: 0.9rem; font-weight: 500;
}
.success-banner { margin: 0 0 1rem; padding: 0.9rem 1.1rem; font-size: 1rem; }
.success-banner strong { font-weight: 700; }
.success-icon {
  display: inline-grid; place-items: center; flex: none; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; background: var(--success); color: #fff; font-size: 0.8rem; font-weight: 700;
}
.turnstile { margin-top: 0.9rem; min-height: 65px; }

/* Confirmation */
.confirmation { border-top: 4px solid var(--success); }
.confirm-message { max-width: 44rem; font-size: 1.1rem; }
.confirm-contact { color: var(--ink-2); }
.confirm-contact a { color: var(--teal-dark); font-weight: 600; overflow-wrap: anywhere; }
.confirm-message strong { color: var(--teal-dark); font-size: 1.15rem; white-space: nowrap; }

/* Logistics scene (hero background illustration) */
.l-sky { fill: #1a2c34; }
.l-hills { fill: #20343d; }
.l-building { fill: #2a424c; }
.l-roof { fill: #324e59; }
.l-sign { fill: #14232a; }
.l-sign-text { fill: var(--aqua); font-family: var(--mono); font-size: 22px; letter-spacing: 3px; }
.l-door { fill: #38545f; }
.l-slat { stroke: #2d4651; stroke-width: 2; }
.l-dock { fill: #415d68; }
.l-yard { fill: #1d3038; }
.l-road { fill: #16262d; }
.l-lane { fill: var(--amber); opacity: 0.55; }
.l-truck-box { fill: #f1efe8; }
.l-livery { fill: var(--teal); }
.l-truck-text { fill: var(--ink); font-family: var(--sans); font-size: 34px; font-weight: 700; letter-spacing: 4px; }
.l-truck-sub { fill: var(--teal-dark); font-family: var(--mono); font-size: 13px; letter-spacing: 2px; }
.l-cab { fill: var(--teal); }
.l-window { fill: var(--aqua); opacity: 0.75; }
.l-chassis, .l-wheel { fill: #0e1a1f; }
.l-hub { fill: #8b9ca0; }
.l-bakkie { fill: #e7e4da; }
.l-bus { fill: #ece9df; }
.l-bus-text { fill: var(--ink); font-family: var(--sans); font-size: 24px; font-weight: 700; letter-spacing: 3px; }
.l-bus-sub { fill: var(--teal-dark); font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; }
.l-bakkie-text { fill: var(--ink); font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.l-bakkie-door { fill: var(--teal-dark); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.l-van { fill: #f1efe8; }
.l-van-text { fill: var(--ink); font-family: var(--sans); font-size: 26px; font-weight: 700; letter-spacing: 3px; }
.l-van-sub { fill: var(--teal-dark); font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; }
.l-glass { fill: var(--aqua); opacity: 0.7; }
.l-seam { stroke: #c9c5b9; stroke-width: 2; }
.l-lamp { fill: var(--amber); }
.l-fork { fill: var(--amber); }
.l-fork-dark { fill: #2a3a40; }
.l-cage { fill: none; stroke: #0e1a1f; stroke-width: 5; stroke-linejoin: round; }
.l-mast { fill: #0e1a1f; }
.l-jack { fill: #b5472f; }
.l-jack-handle { stroke: #0e1a1f; stroke-width: 5; stroke-linecap: round; }
.l-scooter { fill: var(--teal); }
.l-courier-box { fill: #f1efe8; }
.l-worker-leg { fill: none; stroke: #1d3a4a; stroke-width: 9; stroke-linecap: round; }
.l-worker-boot { fill: none; stroke: #0e1a1f; stroke-width: 7; stroke-linecap: round; }
.l-worker-shirt { fill: #2d5566; }
.l-worker-vest { fill: #e9b03a; }
.l-worker-stripe { fill: none; stroke: #f1efe8; stroke-width: 3; }
.l-worker-arm { fill: none; stroke: #2d5566; stroke-width: 8; stroke-linecap: round; }
.l-worker-skin { fill: #8a5a3c; }
.l-worker-cap { fill: var(--teal); }

/* FAQ accordions */
.faq-list { border-top: 1px solid var(--line); }
/* Emphasis in answers: bold for the key fact, italic for option names and quotes */
.faq-list p strong { color: var(--ink); font-weight: 700; }
.faq-list p em { color: var(--ink-2); }
/* The most asked questions sit first, in a lightly highlighted card */
.faq-popular { padding: 1rem 1.1rem 0.4rem; border-top: 4px solid var(--amber); border-radius: 6px; background: var(--white); box-shadow: 0 6px 18px rgb(20 35 42 / 8%); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: baseline; gap: 0.9rem; padding: 1.1rem 0;
  cursor: pointer; font-weight: 600; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "+"; flex: none; width: 1rem; color: var(--teal); font-family: var(--mono); font-size: 1.2rem; }
.faq-list details[open] summary::before { content: "−"; }
.faq-list details p { max-width: 46rem; margin: 0 0 1.25rem 1.9rem; color: var(--muted); }

/* Footer */
.site-footer { padding: 1.75rem 0; background: var(--ink); color: #c5d2ce; font-size: 0.8rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.footer-brand { letter-spacing: 0.22em; }
.footer-about { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid rgb(255 255 255 / 12%); color: #9fb0ab; font-size: 0.78rem; line-height: 1.5; }
.footer-email { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--aqua); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mail-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.footer-email:hover { color: #fff; }

/* ---------- FAQ page ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--ink); color: #fff; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -0.03em; }
.page-hero p:not(.eyebrow) { margin-top: 1rem; color: #c5d2ce; }

/* ---------- Procurement page ---------- */
.proc-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.proc-page { max-width: 58rem; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.proc-section { margin-bottom: clamp(2rem, 4vw, 3rem); }
.proc-section h2, .proc-cta h2 { margin-bottom: 0.9rem; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.proc-section > p { margin-bottom: 0.9rem; color: var(--ink-2); }
.proc-table { width: 100%; border-collapse: collapse; background: var(--white); border-top: 4px solid var(--amber); box-shadow: 0 6px 18px rgb(20 35 42 / 8%); }
.proc-table th, .proc-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.proc-table th { width: 32%; color: var(--teal-dark); font-weight: 700; }
.proc-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.5rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.proc-docs li { position: relative; padding-left: 1.8rem; font-weight: 600; }
.proc-docs li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-content: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--teal); color: #fff; font-size: 0.75rem; }
.proc-steps { margin: 0 0 1rem; padding-left: 1.3rem; }
.proc-steps li { margin-bottom: 0.5rem; padding-left: 0.3rem; }
.proc-cta { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 8px; background: var(--ink); color: #fff; }
.proc-cta p { margin-bottom: 1.1rem; color: #c5d2ce; }

/* Step 1: a pointer to the procurement page, shown only when "Procurement officer" is chosen */
.procurement-note { display: none; margin-top: 0.6rem; padding: 0.55rem 0.75rem; border-left: 4px solid var(--amber); border-radius: 4px; background: #fbf1dc; color: var(--ink); font-size: 0.9rem; font-weight: 600; }
.procurement-note a { color: var(--teal-dark); }
.hero-qualify:has(input[value="procurement"]:checked) .procurement-note { display: block; }
.faq-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); padding: clamp(3rem, 6vw, 5rem) 0; }
.faq-index { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.faq-index-title { margin-bottom: 0.75rem; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.faq-index ul { margin: 0 0 1.5rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.faq-index li a { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.faq-index li a:hover { color: var(--teal-dark); }
.faq-categories { display: grid; gap: 3rem; min-width: 0; }
.faq-category h2 { margin-bottom: 1rem; font-size: 1.6rem; }
.faq-category:focus { outline: none; }
.back-link { margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .est-row, .est-row:nth-child(3), .stage2-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-options { grid-template-columns: 1fr; }
  .hero-choose { display: block; margin: 0.15rem 0 0; }
}

@media (max-width: 560px) {
  /* Stack the three credentials, each keeping a teal divider on its left. */
  .credentials-list { grid-template-columns: 1fr; row-gap: 0.6rem; }
  .credentials-list li { justify-content: flex-start; border-left: 2px solid var(--teal); }
  .price-pair { grid-template-columns: 1fr; }
  .progress-steps { font-size: 0.7rem; }
  .progress-steps li { flex-direction: column; gap: 0.2rem; text-align: center; }
  .progress-steps li:nth-child(1) { align-items: flex-start; text-align: left; }
  .progress-steps li:nth-child(3) { align-items: flex-end; text-align: right; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .container { width: min(var(--container), calc(100% - 2rem)); }
  .menu-toggle {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 44px;
    border: 1px solid var(--line-strong); border-radius: 2px; background: transparent;
  }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform 160ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    padding: 0.5rem 1rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgb(20 35 42 / 10%);
  }
  .site-header.menu-open .main-nav { display: grid; }
  .main-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }

  .faq-page { grid-template-columns: 1fr; }
  .proc-docs { grid-template-columns: 1fr; }
  .proc-table th { width: 38%; }
  .hero { min-height: 0; }
  .hero-scrim { background: linear-gradient(180deg, rgb(20 35 42 / 93%) 0%, rgb(20 35 42 / 84%) 100%); }
  .cta-row .btn { flex: 1 1 100%; }
  .visualiser { gap: 0.6rem; }
  .visual-panel figcaption { padding: 0.6rem 0.7rem; font-size: 0.82rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-grid, .radio-grid, .field-grid { grid-template-columns: 1fr; }
  .summary-list { grid-template-columns: 1fr 1fr; }
  .faq-index { position: static; }
}

@media (max-width: 420px) {
  .qty-equation { grid-template-columns: 1fr; gap: 0.3rem; }
  .qty-equals { padding: 0; text-align: center; }
  .summary-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
  .btn, .check-option, .radio-option, .qty-step, .gallery-item { border: 1px solid ButtonText; }
  .progress-fill { background: Highlight; }
  .hero-option input[type="radio"], .check-option input[type="checkbox"] { appearance: auto; -webkit-appearance: auto; }
  .hero-option input[type="radio"]::before, .check-option input[type="checkbox"]::before { display: none; }
}

@media print {
  .site-header, .cta-row, .hero-scene, .hero-scrim, .menu-toggle, [data-save-draft], .contact-form, .skip-link { display: none !important; }
  body, .hero, .estimator-section, .credentials, .site-footer, .page-hero { background: #fff !important; color: #000 !important; }
}
