/* ============================================================
   Design system.
   Mobile-first. No web fonts, no frameworks — this loads on a
   4G connection in a ute. System stack renders instantly.
   ============================================================ */

:root {
  --ink:        #0F1419;
  --ink-2:      #1A222B;
  --ink-3:      #2A343F;
  --paper:      #FFFFFF;
  --paper-2:    #F4F6F8;
  --paper-3:    #E9EDF1;

  /* Hi-vis lime. Australian worksite signal. Always dark text on it. */
  --hivis:      #D4FF3F;
  --hivis-deep: #B8E62B;
  --amber:      #FFB020;

  --muted:      #6B7684;
  --muted-dark: #97A3B0;
  --line:       #E3E7EC;
  --line-dark:  #333F4B;

  --ok:         #15A34A;
  --alert:      #E8562F;

  --wrap: 720px;
  --wrap-wide: 1080px;
  --r: 14px;
  --r-lg: 22px;

  --shadow:    0 2px 4px rgba(15,20,25,.05), 0 8px 24px rgba(15,20,25,.08);
  --shadow-lg: 0 4px 12px rgba(15,20,25,.10), 0 24px 60px rgba(15,20,25,.18);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */

.wrap      { width: 100%; max-width: var(--wrap);      margin: 0 auto; padding: 0 20px; }
.wrap-wide { width: 100%; max-width: var(--wrap-wide); margin: 0 auto; padding: 0 20px; }

section { padding: 56px 0; }
@media (min-width: 760px) { section { padding: 80px 0; } }

.on-dark  { background: var(--ink);   color: var(--paper); }
.on-dark-2{ background: var(--ink-2); color: var(--paper); }
.on-tint  { background: var(--paper-2); }

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.022em; line-height: 1.12; }

h1 { font-size: clamp(30px, 7.2vw, 52px); }
h2 { font-size: clamp(25px, 5.2vw, 38px); }
h3 { font-size: clamp(19px, 3.4vw, 23px); line-height: 1.25; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lede      { font-size: clamp(18px, 2.6vw, 21px); line-height: 1.5; }
.small     { font-size: 15px; }
.fine      { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.on-dark .fine, .on-dark-2 .fine { color: var(--muted-dark); }

.hi        { color: var(--amber); }
.hi-lime   { color: var(--hivis); }
.center    { text-align: center; }
.muted     { color: var(--muted); }
.on-dark .muted, .on-dark-2 .muted { color: var(--muted-dark); }

.mark {
  background: var(--hivis);
  color: var(--ink);
  padding: 0 .22em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.on-dark .eyebrow, .on-dark-2 .eyebrow { color: var(--hivis); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;                 /* thumb-sized: this audience is one-handed */
  padding: 16px 26px;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
@media (min-width: 560px) { .btn { width: auto; min-width: 320px; } }

.btn-primary {
  background: var(--hivis);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--hivis-deep), var(--shadow);
}
.btn-primary:hover  { background: #E0FF5E; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hivis-deep); }

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid var(--line-dark);
}
.btn-ghost:hover { border-color: var(--hivis); color: var(--hivis); }

.btn-sm { min-height: 46px; font-size: 15.5px; padding: 10px 18px; width: auto; min-width: 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---------- Header ---------- */

.hdr {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
  color: inherit; text-decoration: none;
}
.logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--hivis); color: var(--ink);
  border-radius: 9px;
  font-size: 18px; font-weight: 900;
}

/* ---------- Hero ---------- */

.hero { padding: 44px 0 52px; }
@media (min-width: 760px) { .hero { padding: 64px 0 72px; } }

.hero h1 { margin-bottom: 20px; }
/* The entry headline is two full sentences. At 52px the first one
   just overflows a 720px column and orphans "problem." on its own
   line — 60px of extra width keeps each sentence on one line at
   desktop, and max-width is inert on phones. */
.hero .wrap { max-width: 780px; }

.price-badge {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: rgba(212,255,63,.12);
  border: 1px solid rgba(212,255,63,.35);
  color: var(--hivis);
  padding: 9px 17px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 22px;
}
.price-badge .unit { font-size: 13.5px; font-weight: 600; opacity: .8; }

/* ---------- Video ---------- */

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 26px 0 22px;
  box-shadow: var(--shadow-lg);
}
.video-shell iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-ph {
  position: absolute; inset: 0;
  display: grid; place-items: center; gap: 14px;
  align-content: center;
  cursor: pointer;
  background:
    radial-gradient(120% 120% at 50% 0%, #26313C 0%, #131A21 60%, #0F1419 100%);
  border: 0;
  width: 100%;
  color: var(--paper);
  font: inherit;
  padding: 24px;
  text-align: center;
}
.play {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--hivis);
  display: grid; place-items: center;
  box-shadow: 0 0 0 12px rgba(212,255,63,.14);
  transition: transform .15s ease, box-shadow .15s ease;
}
.video-ph:hover .play { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(212,255,63,.18); }
.play::after {
  content: '';
  width: 0; height: 0;
  margin-left: 6px;
  border-left: 22px solid var(--ink);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.video-ph .cap { font-weight: 700; font-size: 17px; }

/* ---------- Cards / grids ---------- */

.grid { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.on-dark .card, .on-dark-2 .card {
  background: var(--ink-2);
  border-color: var(--line-dark);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card-num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--hivis); color: var(--ink);
  font-weight: 900; font-size: 17px;
  margin-bottom: 16px;
}

/* ---------- Feature list ---------- */

.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.flist li { display: grid; grid-template-columns: 27px 1fr; gap: 13px; align-items: start; }
.flist .tick {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--hivis); color: var(--ink);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 900;
  margin-top: 2px;
}
.flist strong { display: block; margin-bottom: 1px; }

/* ---------- Pain / contrast blocks ---------- */

.pain {
  border-left: 4px solid var(--alert);
  background: rgba(232,86,47,.06);
  padding: 18px 20px;
  border-radius: 0 var(--r) var(--r) 0;
  margin: 0 0 24px;
}
.on-dark .pain, .on-dark-2 .pain { background: rgba(232,86,47,.12); }

.guarantee {
  border: 2px solid var(--hivis);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  background: rgba(212,255,63,.07);
}

/* ---------- Steps ---------- */

.steps { counter-reset: s; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.step-n {
  counter-increment: s;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--ink); color: var(--hivis);
  font-weight: 900; font-size: 18px;
}
.step-n::before { content: counter(s); }
.on-dark .step-n, .on-dark-2 .step-n { background: var(--hivis); color: var(--ink); }

/* ---------- Capacity strip ---------- */

.capacity {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 14px;
  padding: 14px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
}
.on-dark .capacity, .on-dark-2 .capacity {
  background: rgba(255,255,255,.05); border-color: var(--line-dark);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }

/* ---------- Testimonials (hidden until real ones exist) ---------- */

.tcard { background: var(--paper-2); border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--line); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 15px; margin-bottom: 10px; }
.tcard cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; font-size: 15px; }
.tcard cite span { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; }

/* ---------- Footer ---------- */

.ftr { padding: 34px 0; border-top: 1px solid var(--line-dark); }

/* Footer links inherit the fine-print colour. Left unstyled they render
   in the browser's default blue, which on the dark footer is close to
   unreadable — and the contact line is a tap target, not decoration. */
.ftr a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ftr a:hover { color: var(--paper); }

/* 44px tap target (Apple HIG), not the 24px WCAG 2.5.8 floor — this
   line gets tapped one-handed by someone on a site holding something
   else. The vertical padding is doing the work; 13.5px text alone
   only gets you to ~20px. */
.ftr-contact a { display: inline-block; padding: 12px 6px; }
.ftr-contact { margin-top: 2px; }

/* ============================================================
   QUIZ MODAL
   ============================================================ */

.q-overlay {
  position: fixed; inset: 0;
  background: rgba(10,14,18,.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 900;
  display: none;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.q-overlay.open { display: grid; place-items: start center; }
@media (min-width: 620px) { .q-overlay { padding: 40px 20px; place-items: center; } }

.q-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px 22px 26px;
  margin: auto 0;
  animation: qin .22s ease;
}
@media (min-width: 620px) { .q-modal { padding: 38px 38px 32px; } }

@keyframes qin { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.q-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 21px; line-height: 1;
  cursor: pointer;
}
.q-close:hover { background: var(--paper-2); color: var(--ink); }

.q-head { text-align: center; margin-bottom: 20px; padding-right: 32px; }
.q-head .t { font-weight: 800; font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.q-head .p { font-size: 27px; font-weight: 900; font-style: italic; letter-spacing: -.03em; margin-top: 2px; }

/* Progress — deliberately starts part-filled (endowed progress effect) */
.q-bar { height: 11px; background: var(--paper-3); border-radius: 100px; overflow: hidden; margin-bottom: 26px; }
.q-fill {
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--ok) 0 9px, #1BBB57 9px 18px);
  border-radius: 100px;
  width: 50%;
  transition: width .34s cubic-bezier(.4,0,.2,1);
}

.q-step { display: none; }
.q-step.active { display: block; animation: qfade .22s ease; }
@keyframes qfade { from { opacity: 0; transform: translateX(8px); } }

.q-step h3 { text-align: center; margin-bottom: 20px; font-size: 21px; }

.q-opts { display: grid; gap: 11px; }

.q-opt {
  width: 100%;
  min-height: 62px;
  padding: 15px 20px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  text-align: center;
  transition: all .12s ease;
}
.q-opt:hover  { border-color: var(--ink); background: var(--paper-2); transform: translateY(-1px); }
.q-opt:active { transform: translateY(0); }
.q-opt .sub { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-top: 3px; }

.q-field { margin-bottom: 16px; }
.q-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 7px; }
.q-input {
  width: 100%;
  min-height: 60px;
  padding: 15px 18px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
}
.q-input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(15,20,25,.08); }
.q-input.err   { border-color: var(--alert); }

.q-err { color: var(--alert); font-size: 14px; font-weight: 600; margin: -6px 0 12px; display: none; }
.q-err.show { display: block; }

.q-back {
  display: block; margin: 16px auto 0;
  background: none; border: 0;
  font: inherit; font-size: 15px; color: var(--muted);
  cursor: pointer; text-decoration: underline;
}
.q-back:hover { color: var(--ink); }

.q-fine { text-align: center; margin-top: 16px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* Honeypot — must be reachable by bots, invisible and untabbable for humans */
.q-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

.q-spin {
  display: inline-block;
  width: 19px; height: 19px;
  border: 2.5px solid rgba(15,20,25,.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Founder ---------- */

.founder {
  display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 22px;
}
.on-dark .founder, .on-dark-2 .founder { background: var(--ink-2); border-color: var(--line-dark); }
.founder-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--hivis); background: var(--ink-2);
}
.founder-initial {
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--hivis); color: var(--ink);
  font-weight: 900; font-size: 30px;
}
.founder p { margin: 0; }
.founder .who { font-weight: 800; font-size: 18px; margin-bottom: 4px; }

/* ---------- Live demo ---------- */

.demo {
  text-align: center;
  border: 2px dashed var(--hivis);
  border-radius: var(--r-lg);
  padding: 28px 22px;
  background: rgba(212,255,63,.06);
}
.demo .num {
  display: inline-block;
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 900; letter-spacing: .02em;
  color: inherit; text-decoration: none;
  padding: 8px 18px; margin: 10px 0 12px;
  border-radius: var(--r);
  background: var(--hivis); color: var(--ink);
  box-shadow: 0 4px 0 var(--hivis-deep);
}
.demo .num:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hivis-deep); }

/* ---------- Post-capture actions ---------- */

.call-row { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 560px) { .call-row { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); justify-items: center; } }
.call-row .btn { width: 100%; min-width: 0; }
.call-row .btn-ghost { color: var(--paper); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 800; font-size: 17px;
  padding: 18px 28px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 14px;
  font-size: 24px; font-weight: 400; color: var(--muted);
}
.faq details[open] summary::after { content: '\2013'; }
.faq details p { padding: 0 0 18px; margin: 0; }

/* ---------- Sticky mobile CTA ---------- */

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15,20,25,.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-dark);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky.show { transform: none; }
.sticky .btn { min-height: 54px; width: 100%; }
@media (min-width: 760px) { .sticky { display: none; } }

/* ---------- Light hero (test variant) ----------
   Switched on by <html class="theme-light"> — hydrate.js adds it on
   ?t=light or CONFIG.heroTheme = 'light'. Only the header and hero
   change; the video shell stays dark (it's a video), the lime CTA
   and .mark already read correctly on white, and the rest of the
   page is unchanged so the test isolates one variable. */

html.theme-light .hdr,
html.theme-light .hero { background: var(--paper); color: var(--ink); }
html.theme-light .hdr  { border-bottom-color: var(--line); }
html.theme-light .hero .muted,
html.theme-light .hero .fine,
html.theme-light .hdr .fine { color: var(--muted); }
html.theme-light .hero .eyebrow { color: var(--muted); }   /* lime text is unreadable on white */
html.theme-light .price-badge {
  background: var(--ink); border-color: var(--ink); color: var(--hivis);
}
html.theme-light .video-shell { border-color: var(--line); }

/* ---------- Utilities ---------- */

.hidden { display: none !important; }
.mt-0  { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-32 { margin-bottom: 32px; }
.stack > * + * { margin-top: 18px; }

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