/* ==========================================================================
   Pure Trucking — site styles
   Depends on brand.css for every colour and font decision.
   ========================================================================== */

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;   /* else infinite loops strobe */
    transition-duration: .01ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
/* Components below set explicit display values, which would otherwise win over
   the UA stylesheet's [hidden] rule. */
[hidden] { display: none !important; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-transform);
  letter-spacing: var(--display-tracking);
  line-height: 1.06;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 6.6vw, 74px); }
h2 { font-size: clamp(29px, 4.2vw, 46px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 17px; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(4, 23, 43, .7);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--cta); color: var(--on-cta);
  padding: 10px 18px; border-radius: var(--radius); font-weight: 700;
  transition: top .18s;
}
.skip-link:focus { top: 12px; }

/* --- layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section   { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt  { background: var(--bg-alt); }
.section--dark { background: var(--bg-inverse); color: var(--text-inverse); }
.section--dark p { color: var(--text-inverse-muted); }

.prose { max-width: var(--maxw-prose); }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-on-light);
  margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent-on-light); flex: none; }
.center .eyebrow { justify-content: center; }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }
.section--dark .eyebrow { color: var(--highlight); }
.section--dark .eyebrow::before { background: var(--highlight); }

.lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--text-muted); line-height: 1.6; }
.section--dark .lede { color: var(--text-inverse-muted); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* --- buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--cta);
  --btn-fg: var(--on-cta);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  letter-spacing: .02em;
  padding: 14px 26px; border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background .16s ease, transform .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { --btn-bg: var(--cta-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { font-size: 16px; padding: 17px 32px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--text); }
.btn--on-dark { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.4); }
.btn--on-dark:hover { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; border-color: #fff; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink-900); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-header__bar { display: flex; align-items: center; gap: 22px; min-height: 74px; }

.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-decoration: none; flex: none; }
.brand__logo { width: auto; height: 56px; flex: none; }
@media (max-width: 600px) { .brand__logo { height: 42px; } }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__wm { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: var(--display-weight);
  text-transform: var(--display-transform);
  font-size: 25px; color: #fff; letter-spacing: var(--display-tracking);
}
.brand__name em { font-style: normal; color: var(--accent); }
.brand__tag {
  font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--text-inverse-muted); margin-top: 4px;
}
.site-header .brand__mark--dark { display: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: 10px 14px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; letter-spacing: .02em;
  color: rgba(255,255,255,.82); text-decoration: none;
  transition: color .15s, background .15s;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__link[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--radius) var(--radius) 0 0; }
.header-cta { flex: none; margin-left: 8px; }
/* The nav carries its own CTA for the mobile panel; on desktop the one in the
   header bar is the visible copy. */
.nav .header-cta { display: none; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius); color: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor;
  margin-inline: auto; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 74px 0 auto; margin: 0;
    background: var(--ink-800); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 12px var(--gutter) 22px;
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 12px; font-size: 16px; }
  .nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); border-radius: var(--radius); }
  .header-cta { display: none; }
  .nav .header-cta { display: flex; margin: 14px 0 0; }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative; background: var(--ink-900); color: #fff;
  padding-block: clamp(64px, 9vw, 128px);
  overflow: hidden;
}
.hero::after {
  /* road-stripe motif, lifted straight from the badge's road bar */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--accent) 0 64px, transparent 64px 104px);
  opacity: .9;
}
.hero__glow {
  position: absolute; pointer-events: none;
  width: 780px; height: 780px; right: -220px; top: -280px;
  background: radial-gradient(circle, rgba(242,101,34,.20), transparent 62%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: .32em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.8); max-width: 56ch; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero--inner { padding-block: clamp(48px, 6vw, 84px); }
.hero--inner h1 { font-size: clamp(32px, 5vw, 56px); }

.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin: 0 0 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* --- stat strip ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); }
.stats--dark { background: rgba(255,255,255,.12); }
.stat { background: var(--bg); padding: 26px 22px; }
.stats--dark .stat { background: var(--ink-900); }
.stat__num {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(32px, 4vw, 46px); line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.stats--dark .stat__num { color: #fff; }
.stat__num span { color: var(--accent); }
.stat__label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); margin-top: 8px; }
.stats--dark .stat__label { color: var(--text-inverse-muted); }

/* --- cards ---------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  display: flex; flex-direction: column;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card--link:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent-on-light);
  display: grid; place-items: center; margin-bottom: 20px; flex: none;
}
.card__icon svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--text-muted); font-size: 15.5px; }
.card__more {
  margin-top: auto; padding-top: 18px;
  font-weight: 700; font-size: 14.5px; color: var(--accent-on-light);
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.card--link:hover .card__more { gap: 11px; }
.card__more svg { width: 15px; height: 15px; transition: transform .18s; }

.spec-list { list-style: none; margin: 18px 0 0; padding: 0; font-size: 15px; }
.spec-list li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); color: var(--text-muted); }
.spec-list li:first-child { border-top: 0; }
.spec-list svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--accent-on-light); }

/* --- feature rows --------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split--flip > :first-child { order: 2; }
@media (max-width: 860px) { .split--flip > :first-child { order: 0; } }

.panel {
  background: var(--ink-900); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.panel--accent { background: var(--accent); color: var(--on-accent); }
.panel--bone { background: var(--surface-2); color: var(--text); }

/* --- steps ---------------------------------------------------------------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 19px;
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.steps h4 { margin-bottom: .3em; font-size: 18px; }
.steps p { color: var(--text-muted); font-size: 15.5px; margin: 0; }
.section--dark .steps p { color: var(--text-inverse-muted); }

/* --- quote / testimonial -------------------------------------------------- */
.quote { border-left: 4px solid var(--accent); padding-left: 24px; }
.quote blockquote {
  margin: 0 0 16px; font-family: var(--font-display); font-weight: var(--display-weight);
  text-transform: var(--display-transform);
  font-size: clamp(21px, 2.6vw, 30px); line-height: 1.18;
}
.quote figcaption { font-size: 14.5px; color: var(--text-muted); }
.section--dark .quote figcaption { color: var(--text-inverse-muted); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 42px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: var(--display-weight);
  text-transform: var(--display-transform); font-size: 20px; letter-spacing: var(--display-tracking);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 0 24px; color: var(--text-muted); max-width: var(--maxw-prose); }

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink-900), var(--ink-700));
  color: #fff; border-top: 3px solid var(--accent);
}
.cta-band h2 { margin-bottom: .35em; }
.cta-band p { color: rgba(255,255,255,.82); }
.cta-band .btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.45); }
.cta-band .btn--ghost:hover { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; border-color: #fff; }

/* --- footer --------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: var(--text-inverse-muted); padding-block: 62px 0; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 38px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .16em; margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { margin-bottom: 18px; }
.footer-note { max-width: 34ch; line-height: 1.6; }
.site-footer__legal {
  margin-top: 52px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between;
  font-size: 13.5px; color: var(--text-faint);
}
.dot-mc { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* --- forms ---------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; min-width: 0; }
.field > label, .fieldset__legend {
  font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--text);
}
.field .hint { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.req { color: var(--danger); font-weight: 700; }
.optional { color: var(--text-faint); font-weight: 500; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface);
  padding: 13px 14px; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  padding-right: 40px;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-500); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger); background: var(--danger-soft);
}
.error-text { font-size: 13.5px; font-weight: 600; color: var(--danger); display: none; }
.error-text[data-shown="true"] { display: block; }

.field-row { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field-row--3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.fieldset__legend { display: block; margin-bottom: 12px; }

.check-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.check {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius); cursor: pointer; font-size: 15px; line-height: 1.5;
  transition: border-color .15s, background .15s;
}
.check:hover { border-color: var(--ink-500); }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.check:has(input:checked) { border-color: var(--accent-on-light); background: var(--accent-soft); }
.check--plain { border: 0; padding: 4px 0; align-items: flex-start; }
.check--plain:hover { border: 0; }
.check--plain:has(input:checked) { background: transparent; }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row .check { flex: 1 1 130px; }

.consent { display: grid; gap: 16px; }
.consent .check { align-items: flex-start; font-size: 14.5px; }

/* --- multi-step application ---------------------------------------------- */
.apply-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .apply-layout { grid-template-columns: 1fr; } }

.progress { position: sticky; top: 98px; }
@media (max-width: 900px) { .progress { position: static; } }
.progress ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.progress li {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; color: var(--text-faint);
}
.progress li[data-state="current"] { background: var(--accent-soft); color: var(--text); }
.progress li[data-state="done"] { color: var(--text-muted); }
.progress .pip {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--border-strong); font-size: 13px; font-variant-numeric: tabular-nums;
  background: var(--surface);
}
.progress li[data-state="current"] .pip { border-color: var(--accent-on-light); color: var(--accent-on-light); }
.progress li[data-state="done"] .pip { border-color: var(--success); background: var(--success); color: #fff; }
.progress li[data-state="done"] .pip::after { content: "\2713"; }
.progress li[data-state="done"] .pip span { display: none; }

@media (max-width: 900px) {
  .progress ol { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
  .progress li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 4px; font-size: 0; }
  .progress li .pip { font-size: 13px; }
}

/* Without JS every step stays visible, so the form is still a usable single
   page. site.js adds .js to <body>, which switches on the stepped behaviour. */
.step + .step { margin-top: 40px; padding-top: 34px; border-top: 2px solid var(--border); }
.js .step + .step { margin-top: 0; padding-top: 0; border-top: 0; }
.js .step { display: none; }
.js .step[data-active="true"] { display: block; animation: stepIn .25s ease both; }
.no-js-only { display: none; }
html:not(.js) .no-js-only { display: block; }
html:not(.js) .progress, html:not(.js) .form-nav, html:not(.js) #driver-application { display: none; }
html:not(.js) .apply-layout { grid-template-columns: 1fr; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step__head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.step__head h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: .3em; }
.step__head p { color: var(--text-muted); margin: 0; font-size: 15.5px; }
.step__count { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.form-nav {
  display: flex; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.form-nav__right { display: flex; gap: 12px; margin-left: auto; }

.employer {
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; margin-bottom: 18px; background: var(--bg-alt);
}
.employer__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.employer__head h4 { margin: 0; font-size: 16px; }
.btn-text {
  background: none; border: 0; padding: 4px 6px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--danger);
  border-radius: var(--radius-sm);
}
.btn-text:hover { text-decoration: underline; }
.btn-text--accent { color: var(--accent); }

.gap-warning {
  background: var(--danger-soft); border: 1.5px solid var(--danger);
  border-radius: var(--radius); padding: 14px 16px; font-size: 14.5px; margin-bottom: 18px;
}
.notice {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 16px 18px; font-size: 15px; line-height: 1.6;
}
.notice--muted { background: var(--bg-alt); border-left-color: var(--border-strong); color: var(--text-muted); }

.review-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 26px; }
.review-table caption {
  text-align: left; font-family: var(--font-display); font-weight: var(--display-weight);
  text-transform: var(--display-transform); font-size: 20px; padding: 18px 0 10px;
}
.review-table th, .review-table td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.review-table th { width: 40%; font-weight: 600; color: var(--text-muted); }
.review-table td { font-weight: 600; }

.autosave {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-muted); margin-top: 14px;
}
.autosave svg { width: 15px; height: 15px; color: var(--success); flex: none; }

.form-status { margin-top: 18px; }
.form-status:empty { display: none; }
.alert { padding: 15px 18px; border-radius: var(--radius); font-size: 15px; font-weight: 600; }
.alert--error { background: var(--danger-soft); color: var(--danger); border: 1.5px solid var(--danger); }
.alert--ok { background: var(--success-soft); color: var(--success); border: 1.5px solid var(--success); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- reveal on scroll ----------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal][data-shown="true"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* --- print ---------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .form-nav, .progress, .cta-band, .skip-link { display: none !important; }
  .step { display: block !important; }
  body { font-size: 12px; }
}

/* --- driving truck -------------------------------------------------------
   Sits on the road stripe at the bottom of the hero. z-index 0 keeps it
   behind the hero copy, which matters on narrow screens where the two
   would otherwise collide.
   ------------------------------------------------------------------------- */
.hero--truck { padding-bottom: clamp(140px, 16vw, 214px); }

.hero__truck {
  position: absolute; left: 0; bottom: 8px; z-index: 0;
  width: clamp(230px, 30vw, 400px); aspect-ratio: 3 / 1; height: auto;
  pointer-events: none;
  animation: pt-drive 19s linear infinite;
  /* Negative delays start both vehicles partway through the loop, so the road
     is never empty on load and the box truck trails the tractor-trailer by a
     sane following distance instead of appearing from nowhere. */
  animation-delay: -9s;
}
.hero__truck--box {
  width: clamp(175px, 22.5vw, 300px); aspect-ratio: 2.3 / 1;
  animation-delay: -2.2s;
}
@keyframes pt-drive {
  from { transform: translateX(-320px); }
  to   { transform: translateX(calc(100vw + 40px)); }
}

.pt-wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 25px; letter-spacing: .01em;
  fill: var(--ink-900);
}
.pt-wordmark--sm { font-size: 21px; }
.pt-dot {
  font-family: var(--font-body);
  font-weight: 600; font-size: 7px; letter-spacing: .12em;
  fill: var(--ink-500);
}

/* The hub carries the spokes, so rotation is actually visible. The group has
   no transform attribute of its own — a CSS transform would override it. */
.pt-spin { animation: pt-spin .85s linear infinite; transform-origin: 0 0; }
@keyframes pt-spin { to { transform: rotate(360deg); } }

.pt-body { animation: pt-bob 1.7s ease-in-out infinite; }
@keyframes pt-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.1px); }
}

/* Park it, do not strobe it. */
@media (prefers-reduced-motion: reduce) {
  .hero__truck { animation: none; transform: translateX(8vw); }
  .pt-spin, .pt-body { animation: none; }
}
