/* ============================================================
   Freight Hunter TMS — marketing site
   Extends the product's "Interstate" identity: Overpass (U.S.
   Highway Gothic lineage) for words, Overpass Mono for data,
   DOT sign-sheeting color on asphalt-night surfaces. The page's
   spine is the product's own load pipeline — status sign panels
   connected by lane stripes.
   ============================================================ */

@font-face {
  font-family: 'Overpass';
  src: url('fonts/overpass-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Overpass Mono';
  src: url('fonts/overpass-mono-var.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0f141b;
  --bg-raised: #151c25;
  --card: #19212b;
  --inset: #0b1016;

  --border: rgba(214, 226, 240, 0.09);
  --border-strong: rgba(214, 226, 240, 0.18);
  --hairline: rgba(214, 226, 240, 0.05);

  --text: #e9edf2;
  --muted: #a7b3c2;

  --accent: #ffb224;          /* hazard amber */
  --accent-ink: #1a1200;
  --guide: #35c77f;           /* guide green */
  --blue: #4d9fff;
  --teal: #3ecfcf;
  --violet: #a78bfa;
  --danger: #ff5d4f;

  --radius: 6px;
  --radius-lg: 10px;

  --mono: 'Overpass Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-header: 10;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 72px; }
button, a, input, select, textarea, label { touch-action: manipulation; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; }
p { text-wrap: pretty; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.skip:focus-visible { left: 0; }

/* the brand's hazard stripe — carried straight from the product chrome */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(-45deg,
    var(--accent) 0 14px, #171310 14px 28px);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---------------- header ---------------- */
.top {
  position: sticky; top: 0; z-index: var(--z-header);
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 15px; letter-spacing: 0.02em;
}
.mark.sm { width: 26px; height: 26px; font-size: 12px; }
.wordmark { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px; }
.wordmark b { font-weight: 800; color: var(--accent); }

.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a {
  color: var(--muted); text-decoration: none; font-size: 13.5px;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 2px;
}
.top nav a:hover { color: var(--text); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block;
  font: inherit; font-weight: 700; text-decoration: none; text-align: center;
  padding: 10px 18px; border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  color: var(--text); background: transparent;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.12s var(--ease-out);
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ffc24d; }
.btn.ghost:hover { background: var(--bg-raised); }
.btn.lg { padding: 14px 26px; font-size: 17px; }

/* ---------------- status chips (sign panels) ---------------- */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px 4px; border-radius: var(--radius);
  border: 1px solid; text-decoration: none;
  white-space: nowrap;
}
.chip.big { font-size: 0.42em; vertical-align: 0.45em; padding: 0.32em 0.8em 0.22em; letter-spacing: 0.1em; }
.chip-open       { color: var(--guide);  border-color: color-mix(in srgb, var(--guide) 45%, transparent);  background: color-mix(in srgb, var(--guide) 10%, transparent); }
.chip-dispatched { color: var(--blue);   border-color: color-mix(in srgb, var(--blue) 45%, transparent);   background: color-mix(in srgb, var(--blue) 10%, transparent); }
.chip-transit    { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.chip-delivered  { color: var(--guide);  border-color: color-mix(in srgb, var(--guide) 45%, transparent);  background: color-mix(in srgb, var(--guide) 10%, transparent); }
.chip-complete   { color: var(--teal);   border-color: color-mix(in srgb, var(--teal) 45%, transparent);   background: color-mix(in srgb, var(--teal) 10%, transparent); }
.chip-invoiced   { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 45%, transparent); background: color-mix(in srgb, var(--violet) 10%, transparent); }
.chip-paid       { color: var(--guide);  border-color: color-mix(in srgb, var(--guide) 55%, transparent);  background: color-mix(in srgb, var(--guide) 14%, transparent); }
.chip-shop       { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.chip-danger     { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); }
a.chip:hover { filter: brightness(1.25); }

/* lane stripe connecting chips */
.lane {
  flex: 0 0 34px; height: 2px; align-self: center;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
}

/* ---------------- hero ---------------- */
.hero {
  display: grid; gap: clamp(28px, 5vw, 64px);
  padding: clamp(48px, 8vw, 110px) clamp(18px, 4vw, 48px) clamp(40px, 6vw, 80px);
  max-width: 1280px; margin: 0 auto;
}
.hero-copy { max-width: 720px; }
h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  font-weight: 800; letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 58ch; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.trust { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.shot {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--inset);
}
.hero-shot { box-shadow: 0 1px 0 var(--hairline); }

/* ---------------- pipeline rail ---------------- */
.rail {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 48px) 8px;
  border-top: 1px solid var(--hairline);
}
.rail-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.rail-sub { color: var(--muted); margin-bottom: 26px; max-width: 60ch; }
.rail-chips {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.rail-chips li { display: flex; align-items: center; gap: 10px; }
.rail-chips li + li::before {
  content: '';
  width: 26px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
}
.rail-chips .chip.current { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------------- feature sections ---------------- */
.feature {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 48px) 0;
}
.feature-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0; margin-bottom: 22px; }
.feature-head .lane { margin: 0 10px; }
.feature-grid {
  display: grid; gap: clamp(26px, 4vw, 56px);
  grid-template-columns: minmax(300px, 5fr) minmax(320px, 7fr);
  align-items: center;
}
.feature-grid.flip { grid-template-columns: minmax(300px, 5fr) minmax(320px, 7fr); }
.feature h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin-bottom: 18px; }
.feature-copy.wide { max-width: none; }

.facts { list-style: none; }
.facts li {
  padding: 12px 0 12px 30px;
  position: relative;
  border-top: 1px solid var(--hairline);
  color: var(--muted); font-size: 1.02rem;
}
.facts li:last-child { border-bottom: 1px solid var(--hairline); }
.facts li::before {
  content: '›';
  position: absolute; left: 6px; top: 9px;
  color: var(--accent); font-weight: 800; font-size: 1.2rem;
}

/* phone shots */
.phones { display: flex; gap: clamp(14px, 2vw, 26px); justify-content: center; align-items: flex-start; }
.phone {
  flex: 0 1 280px;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  overflow: hidden;
  background: var(--inset);
  padding: 8px;
}
.phone img { border-radius: 18px; }
.phone:nth-child(2) { margin-top: 42px; }

/* fact cards (PAID / SECURITY) */
.fact-cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.fact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  padding: 20px 22px;
}
.fact-card h4 { font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.01em; }
.fact-card p { color: var(--muted); font-size: 0.96rem; }

/* ---------------- origin ---------------- */
.origin {
  max-width: 920px; margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 48px);
}
.origin blockquote p {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600; line-height: 1.4;
}
.origin strong { color: var(--accent); font-weight: 800; }
.origin footer {
  margin-top: 18px;
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* ---------------- demo form ---------------- */
.demo {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(280px, 5fr) minmax(320px, 7fr);
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--hairline);
}
.demo h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.demo-copy p { color: var(--muted); max-width: 46ch; margin-bottom: 12px; }
.alt-contact a { color: var(--accent); }

#demo-form { display: grid; gap: 16px; align-content: start; }
.row2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field .opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--text);
  background: var(--inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 11px 12px;
  width: 100%;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: #8494a6; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { resize: vertical; min-height: 84px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: var(--guide); }
.form-status.err { color: var(--danger); }
#demo-submit[disabled] { opacity: 0.6; cursor: wait; }

/* ---------------- footer ---------------- */
.foot {
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px) 40px;
  color: var(--muted); font-size: 14px;
}
.foot > div:first-child { display: flex; align-items: center; gap: 10px; }
.foot-links { display: flex; gap: 18px; margin-left: auto; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.fine { flex-basis: 100%; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }

/* ---------------- reveal motion ---------------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .feature-grid, .feature-grid.flip, .demo { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .phones { justify-content: flex-start; }
  .phone:nth-child(2) { margin-top: 0; }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .rail-chips li + li::before { width: 12px; }
}
