/* ==========================================================================
   Charlotte Metro Towing — public site
   --------------------------------------------------------------------------
   Palette: asphalt (cool near-black) + safety orange (action) + signal blue
   (information). Warm gold was removed — it reads hospitality, not recovery.

   Brand device: the reflective chevron from the back of a recovery truck.
   Used on thin edges and section seams. Never as wallpaper.

   Motion follows one rule set:
     · enter/exit  -> --ease-out      (instant first frame)
     · on-screen   -> --ease-in-out
     · press       -> 140ms, scale(0.97)
     · nothing over 300ms in the UI
     · never `transition: all`, never `scale(0)`, never `ease-in`
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Skip link
   -------------------------------------------------------------------------- */
.tw-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--secondary);
  color: var(--on-secondary);
  font-weight: 700;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.tw-skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   2. Page shell
   -------------------------------------------------------------------------- */
.tw-page {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body, Inter, system-ui, -apple-system, sans-serif);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.tw-page * { box-sizing: border-box; }
.tw-page img { max-width: 100%; height: auto; }
.tw-page main:focus { outline: none; }

/* The chevron seam: a 4px reflective strip that separates major bands.
   This is the single most "towing" element on the page. */
.tw-chevron-seam {
  height: 4px;
  background: var(--chevron);
  background-size: 28px 28px;
}

/* --------------------------------------------------------------------------
   3. Site header
   -------------------------------------------------------------------------- */
.tw-sitehead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--outline-variant);
}
.tw-sitehead__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
  min-height: 48px;
  flex: 1 1 auto;
}
.tw-brand__mark { display: block; border-radius: 9px; flex: 0 0 auto; }
.tw-brand__name {
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.tw-navtoggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--outline-variant);
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform var(--dur-press) var(--ease-out),
              border-color var(--dur-press) var(--ease-out);
}
.tw-navtoggle:active { transform: scale(0.97); }
.tw-navtoggle__bars,
.tw-navtoggle__bars::before,
.tw-navtoggle__bars::after {
  display: block; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px; content: "";
}
.tw-navtoggle__bars { position: relative; }
.tw-navtoggle__bars::before { position: absolute; top: -6px; }
.tw-navtoggle__bars::after  { position: absolute; top: 6px; }

.tw-sitenav { display: flex; align-items: center; gap: 1.5rem; flex: 0 0 auto; }
.tw-sitenav__list {
  display: flex; align-items: center; gap: 0.125rem;
  list-style: none; margin: 0; padding: 0;
}
.tw-sitenav__list a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 0.875rem;
  border-radius: 8px;
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 0.9375rem; font-weight: 600;
  transition: color var(--dur-menu) ease, background-color var(--dur-menu) ease;
}
/* Underline grows from the centre — a 200ms transform, not a layout change. */
.tw-sitenav__list a::after {
  content: "";
  position: absolute; left: 0.875rem; right: 0.875rem; bottom: 6px;
  height: 2px; border-radius: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform var(--dur-menu) var(--ease-out);
}
.tw-sitenav__list a.is-active { color: var(--on-surface); }
.tw-sitenav__list a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .tw-sitenav__list a:hover { color: var(--on-surface); background: var(--surface-container); }
  .tw-sitenav__list a:hover::after { transform: scaleX(1); }
}

.tw-sitenav__actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .tw-navtoggle { display: inline-flex; }
  .tw-sitenav {
    display: none; flex-basis: 100%; flex-direction: column;
    align-items: stretch; gap: 0.5rem; padding: 0.5rem 0 0.25rem;
  }
  body.tw-nav-open .tw-sitenav { display: flex; }
  .tw-sitenav__list { flex-direction: column; align-items: stretch; }
  .tw-sitenav__list a { min-height: 48px; padding: 0 1rem; }
  .tw-sitenav__list a::after { display: none; }
  .tw-sitenav__actions > * { flex: 1 1 auto; justify-content: center; }
}

/* --------------------------------------------------------------------------
   4. Buttons — press feedback is non-negotiable
   -------------------------------------------------------------------------- */
.tw-page .tw-btn,
.tw-page .tw-btn--primary,
.tw-page .tw-btn--outline,
.tw-page .tw-btn--ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.375rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 700 0.9375rem/1 var(--font-body, Inter, system-ui, sans-serif);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out),
              background-color var(--dur-menu) ease,
              border-color var(--dur-menu) ease,
              box-shadow var(--dur-menu) ease;
}
.tw-page .tw-btn:active,
.tw-page .tw-btn--primary:active,
.tw-page .tw-btn--outline:active,
.tw-page .tw-btn--ghost:active { transform: scale(0.97); }

.tw-page .tw-btn--primary {
  background: var(--secondary);
  color: var(--on-secondary);
  box-shadow: var(--action-glow);
}
.tw-page .tw-btn--outline {
  background: transparent;
  color: var(--on-surface);
  border-color: var(--outline);
}
.tw-page .tw-btn--ghost { background: transparent; color: var(--on-surface-variant); }
.tw-page .tw-btn--tall { min-height: 56px; padding: 0 1.75rem; font-size: 1rem; }

@media (hover: hover) and (pointer: fine) {
  .tw-page .tw-btn--primary:hover { background: var(--secondary-fixed); }
  .tw-page .tw-btn--outline:hover { border-color: var(--secondary); color: var(--secondary); }
  .tw-page .tw-btn--ghost:hover   { color: var(--on-surface); background: var(--surface-container); }
}

/* --------------------------------------------------------------------------
   5. Flash messages
   -------------------------------------------------------------------------- */
.tw-flashes {
  max-width: 78rem; margin: 1rem auto 0; padding: 0 1.25rem;
  display: grid; gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   6. Hero — depth, not a flat wash
   -------------------------------------------------------------------------- */
.tw-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--outline-variant);
  background:
    radial-gradient(1100px 520px at 12% -12%, rgba(255,107,31,.14), transparent 62%),
    radial-gradient(900px 500px at 88% 0%,   rgba(127,180,255,.10), transparent 60%),
    linear-gradient(180deg, #10151C 0%, var(--surface) 62%);
}
/* Asphalt grain: a faint diagonal texture so the hero is not a flat fill. */
.tw-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(
    115deg, rgba(255,255,255,.022) 0 1px, transparent 1px 7px);
  pointer-events: none;
}
.tw-hero__media {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
.tw-hero__inner {
  max-width: 78rem; margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 64rem) { .tw-hero__inner { grid-template-columns: 1.12fr 0.88fr; } }

/* Status pill: live, 24/7, with a genuine pulsing beacon dot. */
.tw-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1.125rem;
  padding: 0.375rem 0.75rem 0.375rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--status-warning) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--status-warning) 10%, transparent);
  color: var(--status-warning);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
}
.tw-hero__beacon {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--status-warning);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-warning) 70%, transparent);
  animation: tw-beacon 2s var(--ease-out) infinite;
}
@keyframes tw-beacon {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-warning) 65%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.tw-hero__title {
  margin: 0 0 1.125rem;
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-weight: 800;
  font-size: clamp(2.125rem, 5.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.tw-hero__title em {
  font-style: normal;
  color: var(--secondary);
}
.tw-hero__lede {
  margin: 0 0 2rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 46ch;
}
.tw-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

.tw-hero__points {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.75rem;
}
.tw-hero__points li {
  position: relative; padding-left: 1.875rem;
  color: var(--on-surface-variant); font-size: 0.9375rem;
}
.tw-hero__points li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 1.125rem; height: 1.125rem; border-radius: 999px;
  background: color-mix(in srgb, var(--status-success-text, #4ADE80) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--status-success-text, #4ADE80) 40%, transparent);
}
.tw-hero__points li::after {
  content: ""; position: absolute; left: 0.34rem; top: 0.62em;
  width: 0.42rem; height: 0.22rem;
  border-left: 2px solid var(--status-success-text, #4ADE80);
  border-bottom: 2px solid var(--status-success-text, #4ADE80);
  transform: rotate(-45deg);
}

/* The how-it-works panel reads as a piece of equipment: hard edge, chevron top */
.tw-hero__panel {
  position: relative;
  background: linear-gradient(180deg, var(--surface-card), var(--surface-container-low));
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--elev-3);
  overflow: hidden;
}
.tw-hero__panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--chevron); background-size: 28px 28px;
}
.tw-hero__panel h2 {
  margin: 0.5rem 0 1.25rem;
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-size: 1.0625rem; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--on-surface-variant);
}

.tw-steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.125rem; }
.tw-steps-list li { display: flex; gap: 0.875rem; align-items: flex-start; }
.tw-steps-list__n {
  flex: 0 0 auto;
  width: 1.75rem; height: 1.75rem; border-radius: 8px;
  background: color-mix(in srgb, var(--secondary) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--secondary) 38%, transparent);
  color: var(--secondary);
  font: 800 0.8125rem/1 var(--font-mono, ui-monospace, monospace);
  display: inline-flex; align-items: center; justify-content: center;
}
.tw-steps-list li b { display: block; font-size: 0.9375rem; margin-bottom: 0.125rem; }
.tw-steps-list li span span { color: var(--on-surface-variant); font-size: 0.875rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   7. Trust strip
   -------------------------------------------------------------------------- */
.tw-trustbar {
  border-bottom: 1px solid var(--outline-variant);
  background: var(--surface-container-low);
}
.tw-trustbar__inner {
  max-width: 78rem; margin: 0 auto; padding: 1.125rem 1.25rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.tw-trustbar__item { display: flex; align-items: center; gap: 0.625rem; }
.tw-trustbar__item b {
  font-family: var(--font-display, Manrope, sans-serif);
  font-size: 1.0625rem; letter-spacing: -0.01em;
}
.tw-trustbar__item span { color: var(--on-surface-variant); font-size: 0.8125rem; }
.tw-trustbar__icon {
  width: 2rem; height: 2rem; flex: 0 0 auto; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-container-high);
  color: var(--primary);
}
.tw-trustbar__icon svg { width: 1.0625rem; height: 1.0625rem; }

/* --------------------------------------------------------------------------
   8. Sections
   -------------------------------------------------------------------------- */
.tw-section { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.tw-section--alt {
  background: var(--surface-container-low);
  border-block: 1px solid var(--outline-variant);
}
.tw-section__inner { max-width: 78rem; margin: 0 auto; padding: 0 1.25rem; }

.tw-section__head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.tw-section__kicker {
  display: block; margin-bottom: 0.625rem;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--secondary);
}
.tw-section__head h2 {
  margin: 0 0 0.625rem;
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.12;
}
.tw-section__head p { margin: 0; color: var(--on-surface-variant); font-size: 1.0625rem; }
.tw-section__more { margin: 1.75rem 0 0; }
.tw-section__more a {
  display: inline-flex; align-items: center; gap: 0.375rem;
  min-height: 44px;
  color: var(--primary); font-weight: 600; text-decoration: none;
}
.tw-section__more a::after {
  content: "\2192";
  transition: transform var(--dur-menu) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tw-section__more a:hover { text-decoration: underline; }
  .tw-section__more a:hover::after { transform: translateX(3px); }
}

/* --------------------------------------------------------------------------
   9. Service cards
   -------------------------------------------------------------------------- */
.tw-cardgrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
}

.tw-servicecard {
  position: relative;
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--surface-card);
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
  padding: 1.5rem 1.375rem;
  overflow: hidden;
  /* transform + border only — no layout properties, so it stays on the GPU */
  transition: transform var(--dur-menu) var(--ease-out),
              border-color var(--dur-menu) ease,
              box-shadow var(--dur-menu) ease;
}
/* Chevron edge slides in from the left on hover. */
.tw-servicecard::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--chevron); background-size: 28px 28px;
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--dur-menu) var(--ease-out);
}
.tw-servicecard__icon {
  width: 2.75rem; height: 2.75rem; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--secondary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--secondary) 30%, transparent);
  color: var(--secondary);
}
.tw-servicecard__icon svg { width: 1.375rem; height: 1.375rem; }
.tw-servicecard h3 {
  margin: 0;
  font-family: var(--font-display, Manrope, sans-serif);
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em;
}
.tw-servicecard h3 a { color: inherit; text-decoration: none; }
/* Whole card clickable without a clickable div: the link covers it. */
.tw-servicecard h3 a::before { content: ""; position: absolute; inset: 0; }
.tw-servicecard p {
  margin: 0; flex: 1 1 auto;
  color: var(--on-surface-variant); font-size: 0.9375rem; line-height: 1.55;
}
.tw-servicecard__cta {
  display: inline-flex; align-items: center; gap: 0.375rem;
  color: var(--primary); font-weight: 600; font-size: 0.9375rem;
  text-decoration: none;
}
.tw-servicecard__cta::after {
  content: "\2192";
  transition: transform var(--dur-menu) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tw-servicecard:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--secondary) 45%, var(--outline-variant));
    box-shadow: var(--elev-3);
  }
  .tw-servicecard:hover::before { transform: scaleY(1); }
  .tw-servicecard:hover .tw-servicecard__cta::after { transform: translateX(3px); }
}
.tw-servicecard:focus-within {
  border-color: var(--secondary);
  box-shadow: var(--elev-2);
}

/* --------------------------------------------------------------------------
   10. Coverage chips
   -------------------------------------------------------------------------- */
.tw-taglist--lg { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.tw-taglist--lg .tw-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  color: var(--on-surface);
  font-size: 0.9375rem;
}
.tw-taglist--lg .tw-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--status-success-text, #4ADE80);
}

/* --------------------------------------------------------------------------
   11. Closing CTA
   -------------------------------------------------------------------------- */
.tw-cta {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--outline-variant);
  background:
    radial-gradient(700px 280px at 50% 118%, rgba(255,107,31,.18), transparent 66%),
    var(--surface-container-low);
}
.tw-cta::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--chevron); background-size: 28px 28px; opacity: .9;
}
.tw-cta__inner {
  max-width: 48rem; margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 1.25rem;
  text-align: center;
}
.tw-cta__inner h2 {
  margin: 0 0 0.625rem;
  font-family: var(--font-display, Manrope, sans-serif);
  font-size: clamp(1.625rem, 3.4vw, 2.25rem); font-weight: 800;
  letter-spacing: -0.025em;
}
.tw-cta__inner p { margin: 0 0 1.75rem; color: var(--on-surface-variant); font-size: 1.0625rem; }
.tw-cta .tw-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.tw-footer {
  background: var(--surface-container-lowest);
  border-top: 1px solid var(--outline-variant);
}
.tw-footer__inner {
  max-width: 78rem; margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.25rem;
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.tw-footer__col p { margin: 0 0 0.5rem; color: var(--on-surface-variant); font-size: 0.9375rem; }
.tw-footer__brand {
  font-family: var(--font-display, Manrope, sans-serif);
  font-weight: 800; color: var(--on-surface) !important; font-size: 1rem !important;
}
.tw-footer__phone {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--secondary); font-weight: 700; font-size: 1.0625rem; text-decoration: none;
}
.tw-footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--outline);
}
.tw-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.tw-footer__col ul a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--on-surface-variant); text-decoration: none; font-size: 0.9375rem;
  transition: color var(--dur-menu) ease;
}
@media (hover: hover) and (pointer: fine) {
  .tw-footer__col ul a:hover { color: var(--secondary); }
  .tw-footer__phone:hover { text-decoration: underline; }
}
.tw-footer__legal { border-top: 1px solid var(--outline-variant); }
.tw-footer__legal p {
  max-width: 78rem; margin: 0 auto; padding: 1.25rem;
  color: var(--outline); font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   13. Prose
   -------------------------------------------------------------------------- */
.tw-prose { max-width: 44rem; }
.tw-prose h2 { margin: 2.25rem 0 0.75rem; font-family: var(--font-display, Manrope, sans-serif); font-size: 1.375rem; letter-spacing: -0.02em; }
.tw-prose h3 { margin: 1.75rem 0 0.5rem; font-size: 1.0625rem; }
.tw-prose p, .tw-prose li { color: var(--on-surface-variant); }
.tw-prose ul, .tw-prose ol { padding-left: 1.25rem; display: grid; gap: 0.375rem; }
.tw-prose a { color: var(--primary); }

/* --------------------------------------------------------------------------
   14. Entrance stagger — decorative only, never blocks interaction
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .tw-stagger > * {
    opacity: 0;
    transform: translateY(10px);
    animation: tw-rise 420ms var(--ease-out) forwards;
  }
  .tw-stagger > *:nth-child(1) { animation-delay: 0ms; }
  .tw-stagger > *:nth-child(2) { animation-delay: 45ms; }
  .tw-stagger > *:nth-child(3) { animation-delay: 90ms; }
  .tw-stagger > *:nth-child(4) { animation-delay: 135ms; }
  .tw-stagger > *:nth-child(5) { animation-delay: 180ms; }
  .tw-stagger > *:nth-child(6) { animation-delay: 225ms; }
  .tw-stagger > *:nth-child(n+7) { animation-delay: 260ms; }
}
@keyframes tw-rise { to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------------------
   15. Motion safety — reduce movement, keep meaning
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .tw-page *,
  .tw-page *::before,
  .tw-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .tw-servicecard:hover { transform: none; }
  .tw-hero__beacon { animation: none; }
  .tw-stagger > * { opacity: 1; transform: none; }
  .tw-choice:hover,
  .tw-drop:hover { transform: none; }
}

/* ==========================================================================
   16. COMPONENTS THE PAGES NEEDED
   --------------------------------------------------------------------------
   Added after building the nine inner pages. Each one existed only as a
   workaround before; the workaround is now unnecessary.
   ========================================================================== */

/* 16.1 Statically raised panel.
   Depth at rest, not only on hover. Content panels need to sit above the
   asphalt without waiting for a pointer that a touch device never sends. */
.tw-card--raised {
  background: var(--surface-card);
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--elev-2);
}
.tw-card--raised > :first-child { margin-top: 0; }
.tw-card--raised > :last-child  { margin-bottom: 0; }
/* The chevron edge, opt-in. */
.tw-card--chevron { position: relative; overflow: hidden; }
.tw-card--chevron::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--chevron); background-size: 28px 28px;
}

/* 16.2 FAQ disclosure.
   Native <details>/<summary>: keyboard accessible and open-by-default-printable
   with zero JS. <summary> is deliberately NOT display:flex — blockifying it
   destroys its list-item marker, and with it the open/close affordance. The
   marker is replaced by a drawn chevron instead. */
.tw-faq { display: grid; gap: 0.75rem; }
.tw-faq__item {
  background: var(--surface-card);
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--dur-menu) ease;
}
.tw-faq__item > summary {
  position: relative;
  list-style: none;                /* kill the UA triangle, keep the semantics */
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.25rem;
  min-height: 48px;
  display: block;
  font-weight: 650;
  font-size: 1rem;
  color: var(--on-surface);
  transition: background-color var(--dur-menu) ease;
}
.tw-faq__item > summary::-webkit-details-marker { display: none; }
/* Drawn chevron — rotates on open. transform only, so it stays on the GPU. */
.tw-faq__item > summary::after {
  content: "";
  position: absolute; right: 1.25rem; top: 50%;
  width: 0.55rem; height: 0.55rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transform-origin: center;
  transition: transform var(--dur-menu) var(--ease-out);
}
.tw-faq__item[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.tw-faq__item[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--outline-variant)); }
.tw-faq__body { padding: 0 1.25rem 1.25rem; color: var(--on-surface-variant); }
.tw-faq__body > :first-child { margin-top: 0; }
@media (hover: hover) and (pointer: fine) {
  .tw-faq__item > summary:hover { background: var(--surface-container); }
}

/* 16.3 A second interactive element inside a service card.
   .tw-servicecard h3 a::before covers the whole card, so any later inline sits
   underneath it. Raising the action row restores clickability without giving up
   the whole-card target. */
.tw-servicecard__actions {
  position: relative;              /* paints above the h3 link's ::before */
  z-index: 1;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.25rem;
}

/* 16.4 The CTA row owns its own hit area.
   .tw-hit-48 also uses ::after, which hijacked the arrow glyph when both were
   applied. Giving the CTA a real min-height removes the need to combine them. */
.tw-servicecard__cta { min-height: 48px; }

/* 16.5 Banner icons need a box.
   An inline <svg> with only a viewBox collapses to zero without explicit
   dimensions — the same defect that made the SLA chips render huge. */
.tw-banner__icon svg,
.tw-alert__icon svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }

/* 16.6 Chips that are links.
   .tw-taglist--lg .tw-tag (0,2,0) out-specifies .tw-tag--amber (0,1,0), so an
   active state could not be expressed by a modifier. Both are handled here. */
.tw-taglist--lg a.tw-tag {
  text-decoration: none;
  min-height: 48px;
  transition: border-color var(--dur-menu) ease,
              color var(--dur-menu) ease,
              transform var(--dur-press) var(--ease-out);
}
.tw-taglist--lg a.tw-tag:active { transform: scale(0.97); }
.tw-taglist--lg .tw-tag[aria-current] {
  border-color: var(--secondary);
  color: var(--secondary);
  background: color-mix(in srgb, var(--secondary) 12%, transparent);
}
.tw-taglist--lg .tw-tag[aria-current]::before { background: var(--secondary); }
@media (hover: hover) and (pointer: fine) {
  .tw-taglist--lg a.tw-tag:hover {
    border-color: var(--secondary);
    color: var(--on-surface);
  }
}

/* 16.7 List reset, so a chip row can be a real <ul>. */
.tw-taglist { list-style: none; margin: 0; padding: 0; }

/* 16.8 Prose inside a card.
   The 2.25rem top margin is right between sections and wrong as a first child. */
.tw-prose > :first-child,
.tw-card--raised .tw-prose h2:first-child,
.tw-card--raised .tw-prose h3:first-child { margin-top: 0; }

/* ==========================================================================
   17. THE REQUEST WIZARD  (.tw-page--request)
   --------------------------------------------------------------------------
   The screen a stranded person uses at 2am on one bar of signal. Everything
   here is written for that: one decision in view at a time, 56px targets,
   short lines, and nothing that moves for the sake of moving.

   Same rules as the rest of this file — tokens only, hover behind a real
   hover query, press is 140ms at scale(0.97), nothing over 300ms.
   ========================================================================== */

.tw-page--request { background: var(--surface); }

.tw-wiz {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-block: 1.25rem 3rem;
  min-height: 100%;
}

/* The step container is a flex column (towing-ui.css C19) with no gap of its
   own, so its children would otherwise sit flush against each other. */
.tw-page--request .tw-wizard-step.is-active { gap: 1.25rem; }

/* 17.1 Top bar ------------------------------------------------------------ */
.tw-wiz-topbar { border-bottom: 0; }
/* §4 above sets padding on every .tw-page .tw-btn, which squashes a square
   icon button. Give the leave control its 48px box back. */
.tw-page .tw-wiz-topbar .tw-btn--icon { padding: 0; width: 48px; }
.tw-wiz-topbar .tw-wiz-glyph { width: 1.375rem; height: 1.375rem; }
.tw-wiz-topbar__brand {
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 17.2 Step indicator ----------------------------------------------------- */
.tw-wiz-progress { display: grid; gap: 0.5rem; }
.tw-wiz-progress__caption {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tw-wiz-progress__count {
  font: 700 0.6875rem/1.2 var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--outline);
  font-variant-numeric: tabular-nums;
}
.tw-wiz-progress__now {
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-surface);
}
.tw-wiz-progress__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 3px;
}
.tw-wiz-progress__seg {
  position: relative;
  flex: 1 1 0;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-container-high);
  border: 1px solid var(--outline-variant);
}
/* Done is a filled segment AND a tick — never colour on its own. */
.tw-wiz-progress__seg.is-done {
  background: var(--secondary);
  border-color: var(--secondary);
}
.tw-wiz-progress__seg.is-done::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 6px;
  margin: -4px 0 0 -2px;
  border-right: 2px solid var(--on-secondary);
  border-bottom: 2px solid var(--on-secondary);
  transform: rotate(45deg);
}
.tw-wiz-progress__seg.is-current {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: var(--action-glow);
}
.tw-wiz-progress__next {
  margin: 0;
  font-size: 0.75rem;
  color: var(--on-surface-variant);
}

/* 17.3 Step heading ------------------------------------------------------- */
.tw-wiz-head { display: grid; gap: 0.5rem; }
.tw-wiz-head__title {
  margin: 0;
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-size: clamp(1.5rem, 6vw, 1.875rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.tw-wiz-head__lede {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 40ch;
}
.tw-wiz-subhead {
  margin: 0;
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.tw-wiz-foot {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.tw-wiz-count {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
}
.tw-wiz-count b { color: var(--on-surface); font-family: var(--font-mono, ui-monospace, monospace); }
.tw-wiz-added { display: grid; gap: 0.75rem; margin-top: 0.5rem; }

/* Inline SVG sizing for everything in the wizard. */
.tw-wiz-glyph { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; display: block; }

/* 17.4 Grouped section (a real fieldset, styled as a card-less block) ------ */
.tw-wiz-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 0.75rem;
}
.tw-wiz-group__legend {
  padding: 0;
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--on-surface);
}
.tw-wiz-group__hint {
  margin: -0.25rem 0 0;
  color: var(--on-surface-variant);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.tw-wiz-group--bare > .tw-wiz-group__legend { margin-bottom: 0; }

.tw-wiz-fields { display: grid; gap: 1rem; min-width: 0; }
.tw-wiz-checks { display: grid; gap: 0.125rem; }

.tw-wiz-pin { display: grid; gap: 0.75rem; }
.tw-wiz-pin__legend { display: inline-flex; align-items: center; gap: 0.5rem; }
.tw-wiz-pin__legend .tw-wiz-glyph { width: 1rem; height: 1rem; color: var(--primary); }

/* 17.5 Selectable choice card --------------------------------------------
   A real <label> around a real radio. With scripting off it still selects,
   the radio itself shows the state, and :has() only adds emphasis on top. */
.tw-choice-list { display: grid; gap: 0.625rem; }
.tw-choice-grid { display: grid; gap: 0.625rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tw-choice-grid:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }

.tw-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 56px;
  padding: 0.875rem 1rem;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--on-surface);
  cursor: pointer;
  min-width: 0;
  transition: transform var(--dur-press) var(--ease-out),
              border-color var(--dur-menu) ease,
              background-color var(--dur-menu) ease,
              box-shadow var(--dur-menu) ease;
}
.tw-choice:active { transform: scale(0.97); }

.tw-choice__input {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin: 0;
  accent-color: var(--secondary);
  cursor: pointer;
}
.tw-choice__icon {
  flex: 0 0 auto;
  width: 2.5rem; height: 2.5rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  color: var(--primary);
  transition: color var(--dur-menu) ease,
              background-color var(--dur-menu) ease,
              border-color var(--dur-menu) ease;
}
.tw-choice__text { display: grid; gap: 0.125rem; min-width: 0; }
.tw-choice__title {
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
/* Catalog copy is written for the marketing pages and runs to a paragraph.
   Two lines is what a stressed person will actually read; the full text stays
   in the DOM for anyone using a screen reader. */
.tw-choice__desc {
  color: var(--on-surface-variant);
  font-size: 0.8125rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.tw-choice:has(.tw-choice__input:checked) {
  border-color: var(--secondary);
  background: color-mix(in srgb, var(--secondary) 8%, var(--surface-card));
  box-shadow: inset 0 0 0 1px var(--secondary);
}
.tw-choice:has(.tw-choice__input:checked) .tw-choice__icon {
  background: color-mix(in srgb, var(--secondary) 14%, transparent);
  border-color: color-mix(in srgb, var(--secondary) 40%, transparent);
  color: var(--secondary);
}
.tw-choice:focus-within {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
@media (hover: hover) and (pointer: fine) {
  .tw-choice:hover { border-color: var(--outline); background: var(--surface-container); }
}

/* Compact variant: the yes/no pair and the vehicle-class grid. */
.tw-choice--compact { padding: 0.75rem; gap: 0.625rem; }
.tw-choice--compact .tw-choice__title { font-size: 0.9375rem; }
.tw-choice-grid .tw-choice { padding: 0.75rem; gap: 0.625rem; }
.tw-choice-grid .tw-choice__icon { width: 2rem; height: 2rem; border-radius: 8px; }
.tw-choice-grid .tw-choice__icon .tw-wiz-glyph { width: 1.125rem; height: 1.125rem; }
.tw-choice-grid .tw-choice__title { font-size: 0.875rem; }

.tw-yesno { min-width: 0; }
.tw-yesno__pair { display: grid; gap: 0.625rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tw-yesno:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }

/* 17.6 Field errors — beside the field, never colour alone ---------------- */
.tw-field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin: 0.25rem 0 0;
  color: var(--status-critical-text);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.tw-field-error .tw-wiz-glyph { width: 1rem; height: 1rem; margin-top: 0.1rem; }
.tw-field.is-error .tw-input,
.tw-field.is-error .tw-select,
.tw-wiz-group.is-error > .tw-choice-list .tw-choice,
.tw-wiz-checks.is-error .tw-check {
  border-color: var(--status-critical-text);
}
.tw-yesno.is-error .tw-choice { border-color: var(--status-critical-text); }

.tw-error-list { margin: 0.375rem 0 0; padding-left: 1.125rem; display: grid; gap: 0.25rem; }
.tw-error-list a { color: var(--status-critical-text); }

/* 17.7 Step 1 — the 911 block --------------------------------------------- */
.tw-sos {
  display: grid;
  gap: 0.875rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--status-critical) 55%, transparent);
  background: color-mix(in srgb, var(--status-critical) 10%, var(--surface-card));
}
.tw-sos__lead {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--on-surface);
}
.tw-sos__lead .tw-wiz-glyph { color: var(--status-critical-text); width: 1.375rem; height: 1.375rem; }

.tw-safety-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.tw-safety-tips li { display: flex; gap: 0.75rem; align-items: flex-start; }
.tw-safety-tips li > span:last-child { display: grid; gap: 0.125rem; min-width: 0; }
.tw-safety-tips b { font-size: 0.9375rem; }
.tw-safety-tips span span { color: var(--on-surface-variant); font-size: 0.8125rem; line-height: 1.45; }
.tw-safety-tips__icon {
  flex: 0 0 auto;
  width: 2rem; height: 2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container-high);
  color: var(--primary);
}
.tw-safety-tips__icon .tw-wiz-glyph { width: 1.125rem; height: 1.125rem; }

/* 17.8 Photos — a dropzone that looks like one ---------------------------- */
.tw-dropzone-grid { display: grid; gap: 0.625rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tw-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.375rem;
  min-height: 124px;
  padding: 1rem 0.75rem;
  border: 2px dashed var(--outline-variant);
  border-radius: 14px;
  background: var(--surface-container-low);
  color: var(--on-surface);
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out),
              border-color var(--dur-menu) ease,
              background-color var(--dur-menu) ease;
}
.tw-drop:active { transform: scale(0.97); }
.tw-drop__icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-variant);
  color: var(--on-surface-variant);
  transition: background-color var(--dur-menu) ease, color var(--dur-menu) ease;
}
.tw-drop__title { font-size: 0.875rem; font-weight: 700; line-height: 1.25; }
.tw-drop__hint { font-size: 0.75rem; color: var(--on-surface-variant); line-height: 1.3; }
.tw-drop:focus-within {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
.tw-drop.is-done {
  border-style: solid;
  border-color: color-mix(in srgb, var(--status-success-text) 55%, transparent);
  background: color-mix(in srgb, var(--status-success) 12%, var(--surface-container-low));
}
.tw-drop.is-done .tw-drop__icon {
  background: color-mix(in srgb, var(--status-success) 30%, transparent);
  color: var(--status-success-text);
}
.tw-drop.is-error { border-color: var(--status-critical); background: color-mix(in srgb, var(--status-critical) 8%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .tw-drop:hover { border-color: var(--secondary); background: var(--surface-container); }
}

/* 17.9 Step 7 — the receipt ----------------------------------------------
   The trust moment. It has to read like something the company stands behind:
   a total you cannot miss, a line for every charge with what it is in plain
   words, and the expiry stated rather than buried. */
.tw-receipt {
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-card), var(--surface-container-low));
  box-shadow: var(--elev-2);
  overflow: hidden;
}
.tw-receipt::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--chevron);
  background-size: 28px 28px;
}
.tw-receipt__head { padding: 1.25rem 1.25rem 1rem; text-align: center; }
.tw-receipt__kicker {
  margin: 0 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.tw-receipt__total {
  margin: 0;
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-size: clamp(2.5rem, 12vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--on-surface);
  font-variant-numeric: tabular-nums;
}
.tw-receipt__ref {
  margin: 0.5rem 0 0;
  font: 500 0.75rem/1 var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
  color: var(--outline);
}

.tw-receipt__table { width: 100%; border-collapse: collapse; text-align: left; }
.tw-receipt__row > th,
.tw-receipt__row > td {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--outline-variant);
  vertical-align: top;
  font-weight: 400;
}
.tw-receipt__row > th { min-width: 0; }
.tw-receipt__label { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--on-surface); line-height: 1.3; }
.tw-receipt__note { display: block; margin-top: 0.125rem; font-size: 0.75rem; color: var(--on-surface-variant); line-height: 1.35; }
.tw-receipt__amount {
  text-align: right;
  white-space: nowrap;
  font: 500 0.9375rem/1.3 var(--font-mono, ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  color: var(--on-surface);
}
.tw-receipt__row.is-credit .tw-receipt__amount { color: var(--status-success-text); }
.tw-receipt__row--total > th,
.tw-receipt__row--total > td {
  border-top: 1px solid var(--outline);
  background: var(--surface-container);
  padding-block: 0.875rem;
}
.tw-receipt__row--total .tw-receipt__label { font-size: 1rem; font-weight: 800; }
.tw-receipt__row--total .tw-receipt__amount { font-size: 1.125rem; font-weight: 700; color: var(--secondary); }

.tw-receipt__included {
  margin: 0;
  padding: 0.75rem 1.25rem 0;
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
}
.tw-receipt__expiry {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.875rem 1.25rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--on-surface-variant);
}
.tw-receipt__expiry b { color: var(--on-surface); font-family: var(--font-mono, ui-monospace, monospace); }
.tw-receipt__expiry .tw-wiz-glyph { width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--primary); }

/* The three promises under the price. Ticks, not bullets. */
.tw-wiz-assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.tw-wiz-assure li {
  position: relative;
  padding-left: 1.625rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--on-surface-variant);
}
.tw-wiz-assure li::before {
  content: "";
  position: absolute;
  left: 0.25rem; top: 0.32em;
  width: 0.4rem; height: 0.7rem;
  border-right: 2px solid var(--status-success-text);
  border-bottom: 2px solid var(--status-success-text);
  transform: rotate(45deg);
}

/* 17.10 Step 8 — the summary ---------------------------------------------- */
.tw-summary {
  margin: 0;
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
  background: var(--surface-card);
  overflow: hidden;
}
.tw-summary__row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--outline-variant);
}
.tw-summary__row:first-child { border-top: 0; }
.tw-summary__row dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-surface-variant);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 0;
}
.tw-summary__row dt .tw-wiz-glyph { width: 1.125rem; height: 1.125rem; color: var(--primary); }
.tw-summary__row dd { margin: 0; font-size: 0.9375rem; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.tw-summary__row--price dd { display: flex; align-items: center; min-height: 1.75rem; }
.tw-summary__total {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

/* 17.11 Action row --------------------------------------------------------
   towing-ui.css C19 lays the row out as a flex row; a step whose actions are a
   single <form> (step 1) needs that form to fill the row, or the block buttons
   inside it collapse to their text width. */
.tw-wiz .tw-wizard-actions > form { flex: 1 1 auto; min-width: 0; }
.tw-wiz .tw-wizard-actions { align-items: stretch; }

/* 17.12 Back button — the arrow belongs to the label ---------------------- */
.tw-page .tw-wiz-back { gap: 0.375rem; }
.tw-wiz-back .tw-wiz-glyph { width: 1.125rem; height: 1.125rem; }

/* 17.13 Narrow phones ------------------------------------------------------ */
@media (max-width: 22.5rem) {
  .tw-choice-grid,
  .tw-dropzone-grid { grid-template-columns: 1fr; }
  .tw-summary__row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ==========================================================================
   18. FIXES FOUND WHILE BUILDING THE PORTALS
   ========================================================================== */

/* 18.1 Footer layout collision — visible on EVERY public page.
   towing-ui.css C36 declares `.tw-footer { display:flex }` and flips it to
   `row` at >=768px. layout_footer() emits a grid `__inner` plus a sibling
   `__legal`, so as flex children the copyright line was squeezed into a ~196px
   side column instead of spanning beneath the columns.
   Scoped to .tw-page so the app-footer variant used by portals is untouched. */
.tw-page .tw-footer {
  display: block;
  padding: 0;
  text-align: left;
  align-items: stretch;
}

/* 18.2 Page header primitive.
   There was nothing between .tw-section (48-80px block padding) and .tw-card
   (24px), which is why every portal header had to borrow .tw-hero__panel. */
.tw-pagehead {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-card), var(--surface-container-low));
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--elev-2);
}
.tw-pagehead::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--chevron); background-size: 28px 28px;
}
.tw-pagehead h1 {
  margin: 0.25rem 0 0.375rem;
  font-family: var(--font-display, Manrope, system-ui, sans-serif);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
}
.tw-pagehead p { margin: 0; color: var(--on-surface-variant); }
.tw-pagehead__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* 18.3 List rows that are links.
   .tw-row had no colour/decoration reset, and its title/sub rules set
   block-only properties while the markup used spans — so title and subtitle
   ran together on one line on every portal list row. */
a.tw-row { color: inherit; text-decoration: none; }
.tw-row__title { display: block; font-weight: 650; color: var(--on-surface); }
.tw-row__sub   { display: block; margin-top: 0.125rem; font-size: 0.875rem; color: var(--on-surface-variant); }
@media (hover: hover) and (pointer: fine) {
  a.tw-row:hover { background: var(--surface-container); }
  a.tw-row:hover .tw-row__title { color: var(--secondary); }
}

/* 18.4 Active state for tabs and filter chips that are LINKS.
   Both components only painted [aria-selected], which is invalid on an <a>,
   so `.is-active` was a dead class across five files. */
.tw-tab[aria-current="page"],
.tw-tab.is-active,
.tw-topbar__link[aria-current="page"] {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  font-weight: 700;
}
.tw-chip--filter[aria-current="page"],
.tw-chip--filter.is-active {
  background: var(--secondary-container);
  color: var(--on-secondary);
  border-color: var(--secondary);
}

/* 18.5 Top-bar links should not wrap mid-label (.tw-tab already did this). */
.tw-topbar__link { white-space: nowrap; }

/* ==========================================================================
   19. COMPACTION SYSTEM
   --------------------------------------------------------------------------
   One field per row is the single biggest cause of long scrolling pages.
   These primitives let any form pair related fields, and give every editor a
   sticky action rail so Save is always reachable without scrolling to find it.
   ========================================================================== */

/* 19.1 Field grids. Collapse to one column only when they genuinely must. */
.tw-fieldgrid { display: grid; gap: 0.875rem 1rem; grid-template-columns: 1fr; }
@media (min-width: 23rem) and (max-width: 33.99rem) {
  .tw-fieldgrid--mobile-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-fieldgrid--mobile-2 > .is-full { grid-column: 1 / -1; }
  .tw-compact-fields > .tw-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 34rem) {
  .tw-fieldgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-fieldgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 52rem) {
  .tw-fieldgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tw-fieldgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Any field that must own its row. */
.tw-fieldgrid > .is-full { grid-column: 1 / -1; }
/* Narrow fields never deserve a whole row. */
.tw-fieldgrid > .is-narrow { max-width: 12rem; }

/* 19.2 Sticky action rail.
   Save lives here. On desktop it is a right-hand column beside the form; on
   mobile it docks to the bottom of the viewport so it is always one thumb away.
   Docking uses position:sticky, not fixed, so it never covers the last field. */
/* The editor splits into a main column and a 17rem action rail — but ONLY when
   the box it is standing in can afford both.

   It used to decide that from a `@media (min-width: 62rem)` viewport query, and
   that is the bug behind every squeezed portal page. The driver portal renders
   inside a 448px mobile container; on a 1500px desktop the viewport query said
   "plenty of room", the grid split 448px into a 17rem rail plus whatever was
   left, and the main column came out at 92px. Field labels then wrapped one
   character per line — measured: a .tw-fieldgrid--2 at 42px wide with 13px
   columns.
   
   A CONTAINER query asks the right question: how much room does THIS element
   have. If no ancestor declares itself a container the query simply never
   matches and the editor stays single-column — stacked and readable, which is
   the correct way for this to fail. */
.tw-editor {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.tw-form,
.tw-container,
.tw-worksurface__main,
.tw-editor-host {
  container-type: inline-size;
}
@container (min-width: 52rem) {
  .tw-editor { grid-template-columns: minmax(0, 1fr) 17rem; }
}
.tw-editor__main { min-width: 0; display: grid; gap: 1rem; }

.tw-actionrail {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  gap: 0.625rem;
  padding: 0.875rem;
  background: color-mix(in srgb, var(--surface-container) 94%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  box-shadow: var(--elev-3);
}
@media (min-width: 62rem) {
  .tw-actionrail {
    position: sticky;
    top: 5.5rem;      /* clears the sticky header */
    bottom: auto;
    box-shadow: var(--elev-2);
  }
}
.tw-actionrail__title {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--outline);
}
.tw-actionrail__meta { font-size: 0.8125rem; color: var(--on-surface-variant); }
.tw-actionrail .tw-btn { width: 100%; }
/* Unsaved-changes marker — set by JS, harmless without it. */
.tw-actionrail[data-dirty="1"] { border-color: var(--secondary); }
.tw-actionrail[data-dirty="1"] .tw-actionrail__title::after {
  content: " · unsaved"; color: var(--secondary);
}

/* 19.3 Mobile tab strip.
   Turns a long stack of sections into switchable panels. Real links with
   ?tab=, so it works with no JS and the state survives reload. */
.tw-tabstrip {
  display: flex; gap: 0.375rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--outline-variant);
}
.tw-tabstrip::-webkit-scrollbar { display: none; }
.tw-tabstrip a {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 0.875rem;
  border-radius: 9px 9px 0 0;
  color: var(--on-surface-variant);
  font-size: 0.9375rem; font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur-menu) ease, border-color var(--dur-menu) ease,
              transform var(--dur-press) var(--ease-out);
}
.tw-tabstrip a:active { transform: scale(0.97); }
.tw-tabstrip a[aria-current="page"] {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  font-weight: 700;
}
@media (hover: hover) and (pointer: fine) {
  .tw-tabstrip a:hover { color: var(--on-surface); }
}

/* 19.4 Collapsible section — long pages become scannable without losing anything. */
.tw-fold { border: 1px solid var(--outline-variant); border-radius: 12px; background: var(--surface-card); }
.tw-fold + .tw-fold { margin-top: 0.75rem; }
.tw-fold > summary {
  list-style: none; cursor: pointer;
  min-height: 52px; padding: 0.875rem 3rem 0.875rem 1.125rem;
  position: relative; font-weight: 650;
}
.tw-fold > summary::-webkit-details-marker { display: none; }
.tw-fold > summary::after {
  content: ""; position: absolute; right: 1.125rem; top: 50%;
  width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-menu) var(--ease-out);
}
.tw-fold[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.tw-fold__body { padding: 0 1.125rem 1.125rem; }

/* 19.5 Never underline a link inside a card — it reads as unstyled text. */
.tw-card a, .tw-card--raised a, .tw-servicecard a, .tw-hero__panel a,
.tw-pagehead a, .tw-fold a, .tw-row a { text-decoration: none; }
.tw-page .tw-card a:hover, .tw-page .tw-card--raised a:hover,
.tw-page .tw-servicecard a:hover, .tw-page .tw-hero__panel a:hover,
.tw-page .tw-pagehead a:hover, .tw-page .tw-fold a:hover,
.tw-page .tw-row a:hover { text-decoration: none; }
/* Prose is the exception: body copy links SHOULD be underlined for legibility. */
.tw-prose a { text-decoration: underline; text-underline-offset: 0.15em; }
/* A card/fold remains the exception to prose: card links use the component's
   color and hit-area treatment without a competing underline. */
.tw-card .tw-prose a, .tw-card--raised .tw-prose a,
.tw-servicecard .tw-prose a, .tw-hero__panel .tw-prose a,
.tw-pagehead .tw-prose a, .tw-fold .tw-prose a,
.tw-row .tw-prose a { text-decoration: none; }

/* 19.6 Mobile footer: two columns per row, not one long stack. */
@media (max-width: 47.99rem) {
  .tw-page .tw-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }
  .tw-page .tw-footer__col:first-child { grid-column: 1 / -1; }
  .tw-page .tw-footer__col ul a { min-height: 36px; font-size: 0.875rem; }
  .tw-page .tw-footer__heading { font-size: 0.625rem; }
}
.tw-footer__poweredby {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  align-items: center; justify-content: space-between;
}

/* 19.7 Portal tab strip wrapper.
   A class, not an inline style — the CSP is `style-src 'self'`, which blocks
   style attributes as well as <style> blocks, so an inline style would silently
   not apply and would log a violation. */
.tw-portalnav {
  max-width: 78rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

/* 19.8 Type-size utilities live in towing-ui.css, which is the only stylesheet
   BOTH the public layout and the admin layout load. They were defined here
   first; admin pages need them too and never load this file. */

/* ---------------------------------------------------------------------------
   §20  Desktop button density (public site, customer + vendor portals).

   Three rules stacked up to make buttons look oversized on desktop:
     · .tw-page .tw-btn…      48px, padding 0 1.375rem   (site.css §4)
     · .tw-page .tw-btn--tall 56px, padding 0 1.75rem    (site.css §4)
     · .tw-btn--block         width:100%, so a CTA in a 768px panel became a
                              768px-wide button — up to 832px on vendor register
   All three are correct on a phone and wrong under a mouse.

   This block must live in towing-site.css: `.tw-page .tw-btn--tall` (0,2,0)
   beats anything written in towing-ui.css, which also loads earlier.

   Gated on `pointer: fine`, so a coarse pointer keeps every original size and
   no touch target shrinks.

   Desktop scale: 38px ordinary · 46px CTA · 56px emergency (never reduced).
   --------------------------------------------------------------------------- */
@media (pointer: fine) {

  /* The emergency wizard and the driver portal keep phone-sized controls at
     every width: a stranded customer or a driver in gloves on a night shoulder
     is not using a mouse, and these two shells are already capped to a 448px
     column so nothing in them is genuinely oversized.

     Written flat rather than nested — nothing else in this codebase relies on
     CSS nesting, and a browser without it would drop the whole block. */
  body:not(.tw-page--request):not(.tw-page--has-bottomnav)
    :is(.tw-btn, .tw-btn--primary, .tw-btn--outline, .tw-btn--ghost):not(.tw-btn--tall) {
    min-height: 38px;
    padding-inline: 1.125rem;
    font-size: 0.875rem;
  }

  /* Primary calls to action stay clearly larger than an ordinary button, just
     no longer phone-sized. */
  body:not(.tw-page--request):not(.tw-page--has-bottomnav)
    .tw-btn--tall:not(.tw-btn--critical):not(.tw-btn--press-hard) {
    min-height: 46px;
    padding-inline: 1.375rem;
    font-size: 0.9375rem;
  }

  /* width:100% is a phone layout. Capped, a full-width button stops spanning a
     768px panel while still filling the 448px mobile flow column and the 272px
     sticky action rail, where 100% is the intended look. */
  body:not(.tw-page--request):not(.tw-page--has-bottomnav)
    .tw-btn--block:not(.tw-btn--critical) {
    max-width: 22rem;
  }

  /* --icon sets an explicit width/height, which min-height above cannot reach. */
  body:not(.tw-page--request):not(.tw-page--has-bottomnav)
    .tw-btn--icon:not(.tw-btn--tall) {
    width: 38px; height: 38px; min-height: 38px; min-width: 38px; padding: 0;
  }

  /* Life-safety controls are re-asserted last so no rule above can reach them,
     whatever page they appear on. */
  .tw-sos .tw-btn,
  .tw-btn--critical,
  .tw-btn--press-hard {
    min-height: 56px;
    max-width: none;
    padding-inline: 1.75rem;
    font-size: 1rem;
  }
}
