/* Loadmark public website. Same brand as the app (docs/brand.md): yard green, hi-vis amber, Archivo.
   Layout: full-width bands, content on a 1160px track; the hero pairs the pitch with a weighbridge ticket. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/archivo-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #0F6B45;
  --green-dark: #0B5235;
  --green-tint: #E3F1E9;
  --amber: #F5A800;
  --amber-tint: #FFF3D1;
  --red: #B42318;
  --ink: #13201A;
  --grey: #4A5751;
  --ground: #F5F6F2;
  --paper: #FFFFFF;
  --line: #D9DED9;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.5; color: var(--ink); background: var(--ground); }
img { max-width: 100%; }
a { color: var(--green); }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* --- Navigation --------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(245, 246, 242, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.wordmark span { color: var(--green); }
.nav-links { display: none; gap: 24px; margin-left: 16px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav-links a:hover { color: var(--green); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-signin { color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-menu { position: static; }
.nav-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:focus-visible { outline: 3px solid var(--amber); }
.nav-menu[open] summary { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.nav-menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(19, 32, 26, 0.08); padding: 8px 20px 16px; display: grid; }
.nav-menu-panel a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav-menu-panel a:last-child { border-bottom: 0; }
@media (min-width: 860px) { .nav-menu { display: none; } }
@media (max-width: 480px) { .nav-signin { display: none; } .nav-actions { gap: 8px; } }
@media (max-width: 420px) { .nav-actions .btn-small { padding: 9px 12px; font-size: 14px; } .wordmark { font-size: 20px; } }

/* --- Buttons ------------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 24px; border-radius: 12px; border: 0; background: var(--green); color: #fff; font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; transition: background-color 0.15s, transform 0.15s; }
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-small { min-height: 42px; padding: 9px 16px; font-size: 16px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-ghost:hover { background: var(--green-tint); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #FFBE2E; }

/* --- Hero --------------------------------------------------------------------------------- */
.hero { padding: 40px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } .hero { padding-top: 64px; } }
.eyebrow { display: inline-block; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px; background: var(--amber-tint); color: #6B4A00; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.02; margin: 0 0 20px; font-weight: 850; }
.hero h1 span { display: block; color: var(--green); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--grey); max-width: 36em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .cta-row .btn { width: 100%; } }
.small-print { font-size: 15px; color: var(--grey); margin: 14px 0 0; }

/* The weighbridge ticket */
.hero-visual { display: flex; justify-content: center; padding: 8px 0 24px; }
.ticket { width: min(100%, 380px); background: var(--paper); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 24px 60px rgba(19, 32, 26, 0.18); transform: rotate(1.5deg); position: relative; }
.ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 10px -2px, transparent 10px, var(--paper) 10.5px) 0 0 / 20px 10px repeat-x; }
.ticket-stripe { height: 14px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, var(--ink) 14px 28px); }
.ticket-body { padding: 18px 22px 24px; }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); padding-bottom: 12px; border-bottom: 2px dashed var(--line); font-variant-numeric: tabular-nums; }
.ticket-rows { margin: 0; padding: 6px 0 10px; }
.ticket-rows > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ground); }
.ticket-rows dt { color: var(--grey); font-size: 15px; }
.ticket-rows dd { margin: 0; font-weight: 600; font-size: 16px; }
.ticket-weight dd { font-size: 34px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ticket-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; min-height: 52px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; transition: background-color 0.3s, color 0.3s; }
.status-chip.good { background: var(--green-tint); color: var(--green-dark); }
.status-chip.wait { background: var(--amber-tint); color: #6B4A00; }
.status-chip .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(107, 74, 0, 0.3); border-top-color: #6B4A00; animation: spin 0.8s linear infinite; }
.ticket-ref { font-size: 14px; font-weight: 700; color: var(--grey); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; transition: opacity 0.3s; }
.ticket-ref.off { opacity: 0; }
.ticket [data-t] { transition: opacity 0.25s; }
.ticket.swap [data-t] { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Countdown, styled like a weighbridge display */
.countdown { margin: 24px 0 0; padding: 18px 22px; background: var(--ink); color: #fff; border-radius: var(--radius) var(--radius) 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; border-top: 6px solid var(--amber); }
.countdown-label { margin: 0; font-weight: 600; font-size: 17px; max-width: 22em; }
.countdown-units { display: flex; gap: 10px; }
.unit { display: grid; justify-items: center; min-width: 64px; padding: 6px 8px; background: #0A120E; border-radius: 8px; }
.unit .n { font-size: 30px; font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; line-height: 1.1; }
.unit .u { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #A9B5AE; }
.js-only { display: none; }
.has-js .js-only { display: grid; }
@media (max-width: 520px) { .unit { min-width: 0; flex: 1; } .unit .n { font-size: 24px; } .countdown-units { width: 100%; } }

/* --- Sections ----------------------------------------------------------------------------- */
.band { padding: 72px 0; }
.band-white { background: var(--paper); }
.band h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin: 0 0 14px; font-weight: 800; }
.section-lede { font-size: 19px; color: var(--grey); max-width: 38em; margin: 0 0 32px; }
h3 { font-size: 21px; line-height: 1.2; margin: 0 0 8px; }

.facts { display: grid; gap: 16px; }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 24px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.fact p, .feature p, .how p { margin: 0; color: var(--grey); font-size: 17px; }

.how { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 28px; counter-reset: none; }
@media (min-width: 820px) { .how { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.how li { position: relative; padding-top: 4px; }
.how-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 800; font-size: 22px; margin-bottom: 16px; }

.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
@media (min-width: 680px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 26px 24px; background: var(--ground); }
.feature h3 { display: flex; gap: 10px; align-items: baseline; }
.feature h3::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--amber); transform: translateY(-2px); }

/* Deadline calculator */
.deadline-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .deadline-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.deadline-form { padding: 24px; border-radius: var(--radius); background: var(--ground); border: 1px solid var(--line); }
.deadline-fields { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 520px) { .deadline-fields { grid-template-columns: 1fr 1fr; } }
.deadline-form label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
.deadline-form input, .deadline-form select { min-height: 52px; padding: 10px 12px; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 10px; width: 100%; }
.deadline-form input:focus, .deadline-form select:focus { outline: 3px solid var(--amber); border-color: var(--ink); }
.deadline-form .btn { width: 100%; }
.deadline-answer { margin-top: 18px; padding: 18px 20px; border-radius: 12px; background: var(--paper); border-left: 6px solid var(--green); }
.deadline-answer.again { animation: rise 0.35s ease; }
.deadline-due { margin: 0 0 6px; font-size: 20px; }
.deadline-due strong { color: var(--green-dark); }
.deadline-why { margin: 0; color: var(--grey); font-size: 16px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* Pricing */
.price-card { display: grid; gap: 28px; margin: 32px auto 16px; max-width: 880px; padding: 32px; background: var(--paper); border-radius: 20px; border: 2px solid var(--green); box-shadow: 0 18px 50px rgba(15, 107, 69, 0.12); }
@media (min-width: 760px) { .price-card { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding: 40px; } }
.price-name { margin: 0; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; }
.price { margin: 6px 0 8px; font-size: clamp(30px, 4vw, 42px); font-weight: 850; letter-spacing: -0.02em; line-height: 1.1; }
.price-note { color: var(--grey); margin: 0 0 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.ticks li::before { content: '✓'; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-tint); color: var(--green-dark); font-weight: 800; font-size: 14px; transform: translateY(3px); }

/* Questions */
.faq { display: grid; gap: 10px; margin-top: 28px; }
.q { background: var(--ground); border: 1px solid var(--line); border-radius: 12px; }
.q summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 18px; position: relative; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--green); transition: transform 0.2s; }
.q[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.q summary:focus-visible { outline: 3px solid var(--amber); border-radius: 12px; }
.q p { margin: 0; padding: 0 20px 20px; color: var(--grey); }

/* Final call to action */
.final { background: var(--green); color: #fff; padding: 72px 0; position: relative; }
.final::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, var(--ink) 12px 24px); }
.final-inner { text-align: center; }
.final h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 10px; font-weight: 850; }
.final p { font-size: 20px; margin: 0 0 26px; color: #D6EBDF; }

/* Footer */
.foot { background: var(--ink); color: #C9D3CD; padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot .brand { color: #fff; }
.foot .wordmark span { color: var(--amber); }
.foot-note { margin: 10px 0 0; font-size: 15px; max-width: 30em; }
.foot-company { font-size: 13px; opacity: 0.85; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot-links a { color: #fff; text-decoration: none; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { text-decoration: underline; }

/* Legal pages */
.legal { padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: 40px; margin: 0 0 4px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: #2A3832; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid #DCE2DE; color: #2A3832; }
.legal th { font-size: 14px; color: #5B6660; }

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

/* Guides */
.guide-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 22px; }
.guide-list h2 { font-size: 21px; margin: 0 0 4px; }
.guide-list p { margin: 0; }
.guide-answer { font-size: 19px; padding: 14px 18px; border-left: 5px solid var(--green); background: var(--green-tint); border-radius: 6px; }
.guide-cta { margin: 40px 0 8px; padding: 22px 24px; border-radius: 12px; background: var(--green-tint); }
.guide-cta h2 { margin-top: 0; }
/* Shared accessibility affordance; the established brand remains unchanged. */
.skip-link {position:fixed;left:12px;top:-120px;z-index:1000;background:#fff;color:#0F6B45;padding:12px 18px;border:2px solid #0F6B45;border-radius:10px;}
.skip-link:focus {top:12px;}
:focus-visible {outline:3px solid #0F6B45;outline-offset:3px;}
