@font-face {
  font-family: "Archivo Black";
  src: url("./fonts/archivo-black-latin.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Hind;
  src: url("./fonts/hind-400-latin.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Hind;
  src: url("./fonts/hind-600-latin.woff") format("woff");
  font-weight: 600 900;
  font-display: swap;
}

:root {
  /* TradieArc's Hi-vis Workshop public theme. */
  --background: oklch(97% 0.01 88);
  --foreground: oklch(24% 0.01 75);
  --card: oklch(99% 0.004 88);
  --border: oklch(87% 0.012 85);
  --muted: oklch(48% 0.018 76);
  --amber: oklch(76% 0.17 67);
  --amber-text: oklch(22% 0.01 75);
  --amber-ink: oklch(45% 0.11 60);
  --charcoal: #24231f;
  --hero-text: #faf8f2;
  --hero-muted: #dedad1;
  --content: 69rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font: 400 1rem/1.55 Hind, system-ui, sans-serif;
}

a { color: inherit; text-underline-offset: .17em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible {
  outline: 3px solid var(--amber-ink);
  outline-offset: 4px;
}

img { display: block; max-width: 100%; }
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
.wrap { width: min(var(--content), calc(100% - 3rem)); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 2;
  left: 1rem;
  top: -5rem;
  color: var(--foreground);
  background: var(--card);
  padding: .75rem 1rem;
}

.skip:focus { top: .5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--background);
  border-bottom: 2px solid var(--foreground);
}

.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: repeating-linear-gradient(135deg, var(--foreground) 0 8px, var(--amber) 8px 16px);
}

.header-content,
.footer-content {
  display: flex;
  align-items: center;
  gap: .5rem 1rem;
  min-height: 4.5rem;
}

.wordmark { display: inline-flex; align-items: center; min-height: 2.75rem; }
.wordmark img { width: 11rem; height: auto; }
.header-content nav { display: flex; align-items: center; margin-left: auto; gap: .15rem; }
.header-content nav a {
  padding: .6rem .7rem;
  min-height: 2.75rem;
  border-radius: .65rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.header-content nav a:hover { background: var(--border); }

.hero {
  color: var(--hero-text);
  background: var(--charcoal);
}

.hero-grid {
  min-height: 28rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.hero h1, h2 {
  margin: 0;
  font-family: "Archivo Black", "Arial Black", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.hero h1 { font-size: clamp(2.55rem, 5.6vw, 4.4rem); }
.hero h1 span { display: block; color: var(--amber); }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.6rem); }
h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 600; }

.eyebrow {
  margin: 0 0 .85rem;
  color: var(--amber-ink);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--amber); }

.lead {
  max-width: 35ch;
  margin: 1.35rem 0 1.5rem;
  color: var(--hero-muted);
  font-size: clamp(1.06rem, 2vw, 1.2rem);
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-plan-note {
  max-width: 38ch;
  margin: 1.25rem 0 0;
  color: var(--hero-muted);
  font-size: .9rem;
}

.hero-plan-note strong { color: var(--hero-text); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .7rem;
  min-height: 3.25rem;
  padding: .65rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 2px;
  color: var(--amber-text);
  background: var(--amber);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.button:hover:where(:not(:disabled)) { border-color: currentColor; }
.hero :focus-visible { outline-color: var(--amber); }

.button-outline {
  color: var(--hero-text);
  background: transparent;
  border-color: #a8a39a;
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: .625rem;
}

.section { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
#demo, #plan, #summary-title { scroll-margin-top: 5.4rem; }
.section-intro > p:last-child { max-width: 54ch; margin: .85rem 0 0; color: var(--muted); }

.desk {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
}

.desk { margin-top: 1.6rem; }
.panel {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.55rem);
  border: 2px solid var(--border);
  border-radius: 2px;
  background: var(--card);
}

.enquiry h3 { margin-bottom: 1.2rem; }
.field { display: grid; gap: .35rem; margin-bottom: .85rem; }
.field label, dt { font-weight: 600; }
.field select {
  min-height: 2.8rem;
  width: 100%;
  padding: .5rem .65rem;
  border: 2px solid var(--border);
  border-radius: 2px;
  color: var(--foreground);
  background: var(--background);
}

.job-details {
  margin: 1rem 0;
  padding: .6rem .8rem;
  border-left: 3px solid var(--amber);
  background: var(--background);
}

.job-details p { margin: 0; }
.summary {
  align-self: stretch;
  box-shadow: 4px 4px 0 var(--foreground);
  border-color: var(--foreground);
}

.placeholder { margin: 1rem 0 0; color: var(--muted); }
.job-title { margin: 1.25rem 0 .35rem; font-size: 1.35rem; font-weight: 600; }
dl { margin: 0; }
dl div { padding: .55rem 0; border-top: 1px solid var(--border); }
dd { margin: 0; }
#summary-title:focus { outline: none; }

.plan-section {
  background: #ebe8df;
  border-block: 2px solid var(--border);
}

.plan-section [hidden] { display: none; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(.8rem, 2vw, 1.35rem);
  margin-top: 1.5rem;
}
.plan { display: flex; flex-direction: column; align-items: flex-start; }
.plan-pro { border-color: var(--foreground); box-shadow: 4px 4px 0 var(--foreground); }
.plan .button { width: 100%; margin-top: auto; }
.postcode-link { width: 100%; margin-top: .5rem; padding: .4rem; text-align: center; font-size: .92rem; }
.plan-outline { color: var(--foreground); background: var(--card); border-color: var(--foreground); }
.plan-outline:hover { background: var(--background); }
.plan-caption { margin: .75rem 0 0; color: var(--muted); }
.plan-offer-label { margin: .7rem 0 0; color: var(--amber-ink); font-size: .82rem; font-weight: 600; }
.price {
  margin: .4rem 0 0;
  font-size: clamp(2.3rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
}

.price span { font-size: .9rem; }
.renewal { margin: .35rem 0 0; font-size: .95rem; }
.plan ul { padding-left: 1.2rem; margin: .8rem 0 1.2rem; }
.plan li::marker { color: var(--amber-ink); }
.plan-note { max-width: 74ch; margin: .8rem 0 0; font-size: .94rem; color: var(--muted); }
.plan-trial {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.4rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  background: var(--card);
}
.plan-trial p { margin: .25rem 0 0; color: var(--muted); }

.questions h2 { margin-bottom: 1.2rem; }
.questions details { border-bottom: 1px solid var(--border); }
.questions details:first-of-type { border-top: 1px solid var(--border); }
.questions summary { padding: .8rem .3rem; font-weight: 600; cursor: pointer; min-height: 2.75rem; }
.questions details p { max-width: 60ch; margin: 0 0 .85rem .3rem; }
.questions details ul { margin-top: 0; }
.questions details a { color: var(--amber-ink); }

.site-footer { border-top: 2px solid var(--foreground); }
.footer-content { flex-wrap: wrap; padding-block: .7rem; }
.footer-content .wordmark { margin-right: auto; }
.footer-content > :last-child { color: var(--muted); }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-grid, .desk { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { min-height: 0; }
  .summary { min-height: 9rem; }
}

@media (max-width: 420px) {
  .wordmark img { width: clamp(6.5rem, 37vw, 9rem); }
  .header-content { gap: .4rem; }
  .header-content nav a { padding-inline: .45rem; }
  .plan-trial .button { width: 100%; }
}
.measurement-choice {
  border-top: 1px solid #d5cec0;
  font-size: 0.9rem;
  margin-block: 1rem;
  padding-block-start: 0.9rem;
}

.measurement-choice label {
  align-items: start;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: auto 1fr;
}

.measurement-choice input {
  accent-color: #825000;
  margin-block-start: 0.23rem;
}

.measurement-choice a {
  display: inline-block;
  margin-block-start: 0.45rem;
}
