/* Layout concept: road-sign plainness. Charcoal asphalt bands alternate with
   light paper bands; hi-vis yellow appears only where a fleet owner should act
   or look. Content is left-aligned on a 1160px measure. */
:root {
  --asphalt: #1C1F23;
  --asphalt-2: #262A30;
  --asphalt-3: #31363D;
  --line-dark: #3A4048;
  --hivis: #FFC72C;
  --hivis-deep: #E5AE14;
  --hivis-ink: #1C1F23;
  --steel: #7A8088;
  --steel-light: #A9AEB5;
  --paper: #F4F4F2;
  --paper-2: #FFFFFF;
  --line: #DCDDD9;
  --ink: #1C1F23;
  --ink-soft: #50565E;
  --on-dark: #F4F4F2;
  --on-dark-soft: #B9BEC4;
  --ok: #2F9E5F;
  --ok-bg: #E3F3EA;
  --warn: #9A6A00;
  --warn-bg: #FFF2CC;
  --bad: #C73E3E;
  --bad-bg: #FBE6E6;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 4.2vw, 2.875rem);
  --step-4: clamp(2.6rem, 7vw, 5.25rem);

  --measure: 1160px;
  --radius: 4px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-2); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band-dark { background: var(--asphalt); color: var(--on-dark); color-scheme: dark; }
.band-white { background: var(--paper-2); }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 40rem; }
.band-dark .lede { color: var(--on-dark-soft); }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.75rem; max-width: 46rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1.1875rem; letter-spacing: .01em;
  min-height: 48px; padding: .6rem 1.4rem; border-radius: var(--radius);
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--hivis); color: var(--hivis-ink); }
.btn-primary:hover { background: var(--hivis-deep); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 199, 44, .12); }
.band:not(.band-dark) .btn-ghost:hover { background: var(--paper); }

/* Header */
.site-header { background: var(--asphalt); color: var(--on-dark); color-scheme: dark; border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; padding-block: .6rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: .02em; color: var(--on-dark); }
.wordmark-mark { width: 36px; height: 36px; flex: none; }
.wordmark span.light { color: var(--hivis); }
.nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nav a:not(.btn) { text-decoration: none; color: var(--on-dark-soft); font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--on-dark); }
.nav .btn { min-height: 40px; font-size: 1.05rem; padding: .35rem 1rem; }
@media (max-width: 760px) { .nav a.hide-sm { display: none; } .nav { gap: 1rem; } }

/* Hero: truck photo behind the headline */
.hero {
  position: relative; isolation: isolate;
  padding-block: clamp(4.5rem, 11vw, 8.5rem) clamp(4rem, 9vw, 7rem);
  background: var(--asphalt) url("hero-truck.jpg") 72% 60% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(28, 31, 35, .97) 0%, rgba(28, 31, 35, .9) 34%, rgba(28, 31, 35, .45) 62%, rgba(28, 31, 35, .12) 100%),
    linear-gradient(0deg, rgba(28, 31, 35, .85) 0%, rgba(28, 31, 35, 0) 32%);
}
@media (max-width: 760px) {
  .hero { background-image: url("hero-truck-960.jpg"); background-position: 78% 100%; background-size: auto 62%; }
  .hero::before { background: linear-gradient(180deg, rgba(28, 31, 35, .96) 0%, rgba(28, 31, 35, .9) 55%, rgba(28, 31, 35, .55) 100%); }
}
.hero-inner > div { max-width: 40rem; }
.hero h1 { font-size: var(--step-4); font-weight: 800; line-height: .95; }
.hero h1 .quiet { color: var(--on-dark-soft); font-weight: 600; display: block; }

/* Headline shine: a light sweep passes across the words, with a soft glow */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1, .hero h1 .quiet {
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    background-size: 250% 100%; background-repeat: no-repeat;
    animation: shine 6s ease-in-out 0.4s infinite;
  }
  .hero h1 {
    background-image: linear-gradient(100deg, #E6E8EA 0%, #E6E8EA 38%, #FFFFFF 45%, #FFD54F 50%, #FFFFFF 55%, #E6E8EA 62%, #E6E8EA 100%);
    background-color: #E6E8EA;
    background-position: 120% 0;
    filter: drop-shadow(0 0 26px rgba(255, 199, 44, .28)) drop-shadow(0 0 3px rgba(255, 255, 255, .3));
  }
  .hero h1 .quiet {
    background-image: linear-gradient(100deg, #AEB3BA 0%, #AEB3BA 38%, #F4F4F2 45%, #FFC72C 50%, #F4F4F2 55%, #AEB3BA 62%, #AEB3BA 100%);
    background-color: #AEB3BA;
    background-position: 120% 0;
  }
}
@keyframes shine {
  0% { background-position: 120% 0; }
  55%, 100% { background-position: -20% 0; }
}
@media (prefers-reduced-motion: reduce) { .hero h1, .hero h1 .quiet { animation: none; background-position: 50% 0; } }
.hero .lede { margin-top: 1.5rem; color: #D3D7DB; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(244, 244, 242, .18); color: #C4C9CE; font-size: .98rem; }
.facts strong { color: var(--on-dark); font-family: var(--display); font-size: 1.35rem; font-weight: 700; margin-right: .3rem; }
.how-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: 3rem; }
@media (max-width: 900px) { .how-top { grid-template-columns: minmax(0, 1fr); } }

/* Work order ticket */
.ticket { background: var(--asphalt-2); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px dashed var(--line-dark); }
.ticket-head .unit { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.ticket-head .issue { color: var(--on-dark-soft); font-size: .95rem; margin-top: .35rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; font-size: .8rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.pill-go { background: var(--hivis); color: var(--hivis-ink); }
.ticket ol { list-style: none; margin: 0; padding: .6rem 0; }
.ticket li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .9rem; padding: .55rem 1.25rem; animation: tick .45s ease-out both; }
.ticket li time { font-variant-numeric: tabular-nums; color: var(--steel-light); font-size: .92rem; padding-top: .1rem; }
.ticket li b { display: block; font-weight: 600; color: var(--on-dark); }
.ticket li span { color: var(--on-dark-soft); font-size: .92rem; }
.ticket li.you b { color: var(--hivis); }
.ticket li.done { background: rgba(255, 199, 44, .08); }
.ticket li:nth-child(2) { animation-delay: .25s; }
.ticket li:nth-child(3) { animation-delay: .5s; }
.ticket li:nth-child(4) { animation-delay: .75s; }
.ticket li:nth-child(5) { animation-delay: 1s; }
.ticket li:nth-child(6) { animation-delay: 1.25s; }
.ticket-foot { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-top: 1px dashed var(--line-dark); font-size: .92rem; color: var(--on-dark-soft); }
.ticket-foot strong { color: var(--on-dark); font-variant-numeric: tabular-nums; }
@keyframes tick { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ticket li { animation: none; } html { scroll-behavior: auto; } }

/* What we handle */
.handle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
@media (max-width: 900px) { .handle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .handle-grid { grid-template-columns: minmax(0, 1fr); } }
.handle-item { padding: 1.6rem 1.5rem 1.8rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .6rem; align-content: start; }
.handle-item:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
@media (max-width: 900px) {
  .handle-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .handle-item:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) { .handle-item:nth-child(2n) { padding-left: 0; border-left: 0; } }
.handle-item h3 { font-size: 1.55rem; }
.handle-item p { color: var(--ink-soft); }
.handle-item .eg { font-size: .92rem; color: var(--ink); background: var(--paper); border-radius: var(--radius); padding: .5rem .7rem; }

/* Repair sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 2rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--steel); }
.steps li.you { border-top: 3px solid var(--hivis); }
.steps li.you::before { color: var(--hivis); }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--on-dark-soft); }

/* Approval limit */
.limit-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .limit-grid { grid-template-columns: minmax(0, 1fr); } }
.limit-tool { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.limit-control { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.limit-control label { font-weight: 600; }
.limit-value { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--hivis-deep); height: 28px; }
.estimates { list-style: none; margin: 0; padding: 0; display: grid; }
.estimates li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; padding: .85rem 0; border-top: 1px solid var(--line); align-items: center; }
.estimates .what { font-weight: 600; }
.estimates .unit-tag { color: var(--ink-soft); font-size: .9rem; font-weight: 400; }
.estimates .amt { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.estimates .verdict { grid-column: 1 / -1; font-size: .9rem; }
.verdict-auto { color: var(--ok); }
.verdict-ask { color: var(--warn); font-weight: 600; }

/* Portal teaser */
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .portal-grid { grid-template-columns: minmax(0, 1fr); } }
.mini-board { background: var(--asphalt-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 1rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.mini-stats div { background: var(--asphalt-3); border-radius: var(--radius); padding: .75rem .9rem; }
.mini-stats span { display: block; font-size: .82rem; color: var(--on-dark-soft); }
.mini-stats strong { font-family: var(--display); font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-stats .hot strong { color: var(--hivis); }
.mini-rows { display: grid; }
.mini-rows div { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line-dark); font-size: .93rem; align-items: center; }
.mini-rows b { font-family: var(--display); font-size: 1.1rem; }
.tag { font-size: .78rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: var(--ok-bg); color: #1D6B3F; }
.tag-warn { background: var(--warn-bg); color: #6E4C00; }
.tag-bad { background: var(--bad-bg); color: #8F2626; }
.tag-dark { background: var(--asphalt-3); color: var(--on-dark-soft); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 30rem; } }
.plan { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.plan.featured { border: 2px solid var(--ink); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.plan h3 { font-size: 1.85rem; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--body); font-weight: 500; font-size: .95rem; color: var(--ink-soft); margin-left: .25rem; }
.plan .for { color: var(--ink-soft); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; flex: 1; }
.plan li { padding-left: 1.6rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .45rem; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
.plan li.strong { font-weight: 600; }
.plan .btn { width: 100%; }
.plans-note { margin-top: 1.5rem; color: var(--ink-soft); font-size: .95rem; max-width: 50rem; }

/* Accounting */
.acct { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .acct { grid-template-columns: minmax(0, 1fr); } }
.acct-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.acct-list li { display: grid; gap: .2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.acct-list b { font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.acct-list span { color: var(--ink-soft); }

/* FAQ */
.faq { display: grid; max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--ink-soft); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.25rem; color: var(--ink-soft); max-width: 44rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-side { display: grid; gap: 1.25rem; }
.contact-side .email { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--hivis); user-select: all; word-break: break-all; }
.form { display: grid; gap: 1rem; background: var(--asphalt-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form .opt { font-weight: 400; color: var(--on-dark-soft); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--on-dark); background: var(--asphalt);
  border: 1px solid var(--line-dark); border-radius: var(--radius); padding: .7rem .8rem; min-height: 46px; width: 100%;
}
.form input::placeholder, .form textarea::placeholder { color: var(--steel); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--hivis); box-shadow: 0 0 0 2px rgba(255, 199, 44, .35); }
.form .honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--on-dark-soft); }
.form-status { padding: .8rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-status.ok { background: var(--ok-bg); color: #1D6B3F; }
.form-status.err { background: var(--bad-bg); color: #8F2626; }
.field-error { color: #FF8A8A; font-size: .88rem; font-weight: 500; }

/* Footer */
.site-footer { background: var(--asphalt); color: var(--on-dark-soft); color-scheme: dark; border-top: 1px solid var(--line-dark); }
.site-footer .wrap { padding-block: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; font-size: .95rem; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }

/* Simple text pages */
.prose { max-width: 44rem; display: grid; gap: 1rem; }
.prose h1 { font-size: var(--step-3); font-weight: 800; }
.prose h2 { font-size: var(--step-2); margin-top: 1rem; }
.prose ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
