/* WorkhorseOS marketing site — one stylesheet, no framework, no web fonts
   (system font stack: nothing to download, nothing that phones home). */
:root {
  /* THE LOGO'S COLOURS (Charles, 2026-10-23: navy for headers, text accents and dark sections; orange for primary
     buttons and highlights). Contrast, measured by src/utils/__tests__/siteColors.test.js against WCAG 4.5:1:
     white on #F5821F is 2.6:1 — it FAILS — so a primary button is orange with NAVY text (6.1:1); orange used as small
     text on white is the darker --accent-text. Every colour below has a dark-mode twin in the block after this one. */
  --navy: #0E2340;
  --orange: #F5821F;
  --orange-hover: #FF9A3D;
  --on-orange: #0E2340;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --surface: #FFFFFF;
  --line: #D8DEE7;
  --ink: #1C2A3D;
  --ink-soft: #4A5A6E;
  --heading: #0E2340;
  --link: #0E2340;
  --link-hover: #A84E00;
  --accent-text: #A84E00;      /* orange as small text: eyebrows */
  --ghost-border: #0E2340;
  --header-bg: #FFFFFF;
  --footer-bg: #0E2340;
  --footer-ink: #C9D3E0;
  --footer-link: #FFFFFF;
  --input-bg: #FFFFFF;
  --input-border: #A9B6C6;
  --badge-bg: #FDEBD9;
  --badge-ink: #8A4100;
  --ok: #1E7B45;
  --ok-bg: #E6F4EC;
  --bad: #B3261E;
  --bad-bg: #FBE9E7;
  --radius: 12px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1628;
    --bg-soft: #0E2340;
    --surface: #102A4C;
    --line: #24406A;
    --ink: #E6ECF4;
    --ink-soft: #AEBBCD;
    --heading: #FFFFFF;
    --link: #F5821F;
    --link-hover: #FF9A3D;
    --accent-text: #F5821F;
    --ghost-border: #F5821F;
    --header-bg: #0E2340;
    --footer-bg: #071223;
    --input-bg: #0E2340;
    --input-border: #3A5A86;
    --badge-bg: #4A2A08;
    --badge-ink: #FFC58A;
    --ok: #5BD08A;
    --ok-bg: #10301F;
    --bad: #FF8A80;
    --bad-bg: #3A1414;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--heading); }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--header-bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-weight: 800; font-size: 1.15rem; flex-shrink: 0; }   /* a crowded header overflows (site-hscroll-check sees it) instead of squeezing the logo */
.logo img { height: 36px; width: auto; }   /* the WorkhorseOS wordmark (brand/workhorseos/) */
@media (max-width: 420px) { .logo img { height: 30px; } }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--ink); }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); padding: 10px 12px; border-radius: 8px; display: block; }
.site-nav a[aria-current="page"] { color: var(--heading); font-weight: 700; box-shadow: inset 0 -3px 0 var(--orange); }
.site-nav a:hover { background: var(--bg-soft); }
.site-nav .login { color: var(--ink-soft); }
.site-nav a.btn-primary { color: var(--on-orange); }   /* the nav-link colour above would override the button's text */
.site-nav a.btn-primary:hover { background: var(--orange-hover); }
/* English | Español — in the header's nav (the phone menu too) and in the footer; the current language is bold */
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch span { color: var(--ink-soft); }
.site-nav .lang-switch a { padding: 10px 6px; }
.lang-switch a[aria-current="true"] { font-weight: 700; text-decoration: none; }
.site-footer .lang-switch { margin: 0; gap: 8px; }
.site-footer .lang-switch span { color: var(--footer-ink); }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--header-bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .site-nav .lang-switch { padding: 0 6px; }
}
/* Spanish labels run ~20% longer: below 1100px the header's links wrapped onto two lines and squeezed the logo
   (measured 2026-10-23 at 821px) — so Spanish pages fold into the Menu earlier. Same rules as the block above. */
@media (max-width: 1100px) {
  html[lang="es"] .nav-toggle { display: inline-block; }
  html[lang="es"] .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--header-bg); border-bottom: 1px solid var(--line); }
  html[lang="es"] .site-nav.open { display: block; }
  html[lang="es"] .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  html[lang="es"] .site-nav .lang-switch { padding: 0 6px; }
}
.site-nav a { white-space: nowrap; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font: inherit; font-weight: 700; border-radius: 10px; padding: 12px 20px; border: 2px solid var(--orange); cursor: pointer; text-align: center; }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--on-orange); }
.btn-ghost { background: transparent; color: var(--link); border-color: var(--ghost-border); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--link); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
section { padding: 56px 0; }
.soft { background: var(--bg-soft); }
.hero { padding: 56px 0 40px; }
.hero-logo { height: 64px; width: auto; margin: 0 0 20px; }
/* The tagline as text, under the logo without its lettered tagline (Spanish pages — the artwork's tagline is English) */
.tagline { display: flex; align-items: center; gap: 10px; margin: -12px 0 20px; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--heading); }
.tagline::before { content: ""; flex: 0 0 32px; height: 3px; border-radius: 2px; background: var(--orange); }
.site-footer .tagline { margin: 8px 0 0; color: var(--footer-link); }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.eyebrow { text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; font-weight: 700; color: var(--accent-text); margin-bottom: .5em; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.shot figcaption { font-size: .85rem; color: var(--ink-soft); padding: 8px 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 1.6em; position: relative; margin: .35em 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink); vertical-align: middle; }

.mt { margin-top: 12px; }
.narrow { max-width: 48em; }
.shot.phone { max-width: 340px; margin: 0 auto; }

/* pricing */
.billing-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 0 28px; background: var(--surface); }
.billing-toggle button { font: inherit; border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.billing-toggle button[aria-pressed="true"] { background: var(--orange); color: var(--on-orange); font-weight: 700; }
.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.tier { display: flex; flex-direction: column; }
.tier.featured { border: 2px solid var(--orange); }
.tier .for { color: var(--ink-soft); min-height: 3em; }
.price { color: var(--heading); font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; margin: .2em 0 0; }
.price small { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.price-note { color: var(--ink-soft); font-size: .9rem; min-height: 1.5em; }
.tier .btn { margin-top: auto; }
.tier ul { flex: 1; }

/* form */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
input, select, textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--input-bg); color: var(--ink); }
textarea { min-height: 90px; }
.two { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; padding: 12px 14px; border-radius: 8px; display: none; }
.form-status.ok { display: block; background: var(--ok-bg); color: var(--ok); }
.form-status.err { display: block; background: var(--bad-bg); color: var(--bad); }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: .6em 0 0; color: var(--ink-soft); }

/* footer */
.site-footer { padding: 32px 0; background: var(--footer-bg); color: var(--footer-ink); font-size: .92rem; }   /* a dark section in both modes: the white logo */
.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: var(--orange); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer .footer-logo img { height: 48px; width: auto; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
/* dark mode: the tokens above change; the header's nav text follows --ink, its hover a light wash */
@media (prefers-color-scheme: dark) {
  .site-nav a:hover { background: rgba(255, 255, 255, .08); }
  .nav-toggle { border-color: rgba(255, 255, 255, .35); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
