/* SafeSafe Auto — public styles
   Palette: asphalt / chalk / hazard amber. Type: Barlow Condensed (display), IBM Plex Sans (body), IBM Plex Mono (data). */

:root {
  --asphalt: #121417;
  --asphalt-2: #1c2026;
  --asphalt-3: #2a2f37;
  --chalk: #f5f6f4;
  --paper: #ffffff;
  --ink: #1f2933;
  --steel: #5f6b78;
  --mist: #9aa4ae;
  --line: #dde1e4;
  --line-strong: #c5cbd1;
  --amber: #ffb020;
  --amber-deep: #e09a0a;
  --amber-soft: #fff3d6;
  --amber-ink: #8a5a00;
  --accent-on-dark: var(--amber);
  --amber-hi: #ffc957;
  --amber-lo: #eda40f;
  --signal: #1b9e77;
  --signal-soft: #e3f5ee;
  --stop: #d64545;
  --stop-soft: #fbe7e7;
  --caution: #d97706;
  --caution-soft: #fdefd9;
  --info: #2563eb;
  --info-soft: #e6eefc;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(18, 20, 23, .06), 0 8px 24px -12px rgba(18, 20, 23, .18);
  --shadow-lg: 0 2px 4px rgba(18, 20, 23, .08), 0 24px 48px -20px rgba(18, 20, 23, .35);
  --stripe: repeating-linear-gradient(135deg, var(--amber) 0 14px, var(--asphalt) 14px 28px);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  /* semantic tokens (themeable) */
  --on-dark: #ffffff;
  --dim-on-dark: #c8ced6;
  --on-accent: #1b1300;
  --sunken: #eceff1;
  --track: #e4e7ea;
  --map-bg: #e9ecef;
  --signal-ink: #0f6b50;
  --stop-ink: #9b2c2c;
  --info-ink: #1e40af;
  --status-blue: #8ab4ff;
  --status-green: #5fd3b0;
  --status-red: #f28b8b;
  --hero-ground: var(--asphalt);
  --header-ground: var(--asphalt);
  --hero-ink: var(--chalk);
  --header-ink: var(--chalk);
  --footer-ink: var(--mist);
  --display-transform: uppercase;
  --display-tracking: .005em;
  --card-tick: transparent;
  --radius-btn: 10px;
  --logo-accent: var(--amber);
  --logo-ground: #121417;
  --stripe-h: 8px;
}

*, *::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: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: var(--display-tracking); text-transform: var(--display-transform); }
h1 { font-size: clamp(44px, 8vw, 84px); }
h2 { font-size: clamp(30px, 4.5vw, 46px); }
h3 { font-size: clamp(22px, 3vw, 28px); }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.muted { color: var(--steel); }
.small { font-size: 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.mobile-cta { border-top-color: color-mix(in srgb, var(--amber) 22%, transparent); }

/* Signature: hazard stripe rule */
.stripe { height: var(--stripe-h); background: var(--stripe); background-size: 40px 40px; }
.stripe.thin { height: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-ground); color: var(--header-ink);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: var(--display-transform); letter-spacing: .04em; line-height: 1; }
.brand-name span { color: var(--accent-on-dark); }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 15px; font-weight: 500; color: #cfd5dc; }
.site-nav a:hover { color: var(--on-dark); background: rgba(255,255,255,.06); }
.header-cta { margin-left: 8px; }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-btn); border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--asphalt); }
.btn-primary:hover { background: #ffc04a; box-shadow: 0 6px 18px -8px rgba(255,176,32,.8); }
.btn-dark { background: var(--asphalt); color: var(--on-dark); }
.btn-dark:hover { background: var(--asphalt-3); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--paper); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-danger { background: var(--stop); color: var(--on-dark); }
.btn-danger:hover { background: #b93a3a; }
.btn-success { background: var(--signal); color: var(--on-dark); }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 10px; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { background: var(--hero-ground); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 22px; }
.hero-eyebrow::before { content: ""; width: 28px; height: 8px; background: var(--stripe); background-size: 28px 28px; }
.hero h1 { color: var(--on-dark); }
.hero h1 em { font-style: normal; color: var(--accent-on-dark); }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: var(--dim-on-dark); max-width: 52ch; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14px; color: var(--mist); margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(27,158,119,.2); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 36px; }
}

/* Hero ticket card (the product, animated through its states) */
.ticket-demo {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 440px; margin-left: auto;
  transform: rotate(-1.2deg);
}
@media (max-width: 860px) { .ticket-demo { margin: 0 auto; transform: none; } }
.ticket-demo .stripe { height: 6px; }
.ticket-demo-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0; }
.ticket-demo-head .num { font-family: var(--mono); font-size: 13px; color: var(--steel); }
.ticket-demo-body { padding: 12px 20px 20px; }
.ticket-demo-body h3 { text-transform: none; font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.3; }
.ticket-demo-body .meta { font-size: 13px; color: var(--steel); margin: 4px 0 16px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--steel); }
.timeline li:first-child { border-top: 0; }
.timeline .pip { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); margin-left: 4px; background: var(--paper); transition: background .3s, border-color .3s, box-shadow .3s; }
.timeline li.done { color: var(--ink); }
.timeline li.done .pip { background: var(--signal); border-color: var(--signal); }
.timeline li.now { color: var(--ink); font-weight: 600; }
.timeline li.now .pip { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255,176,32,.25); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 28%, transparent); }
.timeline .when { font-family: var(--mono); font-size: 12px; color: var(--steel); }
.ticket-demo-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--chalk); border-top: 1px solid var(--line); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.chip-amber { background: var(--amber-soft); color: var(--amber-ink); }
.chip-green { background: var(--signal-soft); color: var(--signal-ink); }
.chip-red { background: var(--stop-soft); color: var(--stop-ink); }
.chip-blue { background: var(--info-soft); color: var(--info-ink); }
.chip-grey { background: var(--sunken); color: var(--steel); }
.chip-dark { background: var(--asphalt); color: var(--on-dark); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head p { max-width: 52ch; color: var(--steel); margin: 8px 0 0; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 10px; display: block; }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: start; } }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.service-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.service-card .icon { width: 40px; height: 40px; color: var(--asphalt); }
.service-card h3 { font-family: var(--body); text-transform: none; font-size: 17px; font-weight: 600; line-height: 1.3; }
.service-card p { color: var(--steel); font-size: 14px; margin: 0; flex: 1; }
.service-card .price { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.service-card .price small { color: var(--steel); font-family: var(--body); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px 22px 22px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--amber); line-height: 1; display: block; margin-bottom: 10px; }
.step h3 { font-family: var(--body); text-transform: none; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--steel); font-size: 14.5px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.trust { background: var(--hero-ground); color: var(--hero-ink); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.trust-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--dim-on-dark); }
.trust-item svg { width: 26px; height: 26px; color: var(--amber); }
.trust-item strong { display: block; color: var(--on-dark); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 820px) { .trust .wrap { grid-template-columns: repeat(2, 1fr); } }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 22px; color: var(--amber-ink); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--steel); font-size: 15px; }
@media (max-width: 700px) { .faq { grid-template-columns: 1fr; } }

.cta-band { background: var(--amber); color: var(--on-accent); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.cta-band h2 { font-size: clamp(30px, 5vw, 52px); }
.cta-band p { margin: 6px 0 0; font-weight: 500; }

.site-footer { background: var(--header-ground); color: var(--footer-ink); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: var(--dim-on-dark); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { color: var(--on-dark); }

/* Sticky mobile CTA */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(18,20,23,.92); background: color-mix(in srgb, var(--header-ground) 92%, transparent); backdrop-filter: blur(10px); }
  .mobile-cta .btn { flex: 1; }
  body.has-mobile-cta { padding-bottom: 84px; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--steel); }
.field .error-text { font-size: 13px; color: var(--stop); font-weight: 500; display: none; }
.field.has-error .error-text { display: block; }
.field.has-error .input { border-color: var(--stop); box-shadow: 0 0 0 3px var(--stop-soft); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--paper);
  transition: border-color .15s, box-shadow .15s; min-height: 46px;
}
.input:focus { outline: none; border-color: var(--asphalt); box-shadow: 0 0 0 3px rgba(255,176,32,.35); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 38%, transparent); }
.input.mono { text-transform: uppercase; }
textarea.input { min-height: 110px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7785' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row, .row-3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--asphalt); flex: none; }

.flash { padding: 14px 16px; border-radius: 10px; margin: 0 0 18px; font-weight: 500; display: flex; gap: 10px; align-items: start; }
.flash-success { background: var(--signal-soft); color: var(--signal-ink); }
.flash-error { background: var(--stop-soft); color: var(--stop-ink); }
.flash-info { background: var(--info-soft); color: var(--info-ink); }

/* Auth + narrow pages */
.narrow { max-width: 460px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.card h2 { margin-bottom: 6px; }
.card .lead { color: var(--steel); margin-bottom: 22px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 14px; }
.auth-links a { color: var(--ink); }

/* ---------- Request wizard ---------- */
.page-request { background: var(--chalk); }
.wizard { max-width: 700px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) var(--gutter) 120px; }
.wizard-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.wizard-head h1 { font-size: clamp(34px, 6vw, 52px); }
.wizard-head .stepnum { font-family: var(--mono); font-size: 13px; color: var(--steel); white-space: nowrap; padding-bottom: 6px; }
.progress { height: 10px; background: var(--track); border-radius: 6px; overflow: hidden; margin-bottom: 26px; }
.progress > i { display: block; height: 100%; width: 20%; background: var(--stripe); background-size: 28px 28px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3.5vw, 30px); box-shadow: var(--shadow); }
.panel h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 4px; }
.panel .lead { color: var(--steel); margin-bottom: 22px; }
.step-pane { display: none; }
.step-pane.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.segmented { display: inline-flex; background: var(--sunken); border-radius: 10px; padding: 4px; gap: 4px; }
.segmented button { border: 0; background: transparent; padding: 10px 16px; border-radius: 7px; font-weight: 600; color: var(--steel); cursor: pointer; }
.segmented button.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); cursor: pointer; text-align: left; transition: border-color .12s, box-shadow .12s, transform .08s; min-height: 96px;
}
.tile:hover { border-color: var(--line-strong); }
.tile:active { transform: scale(.985); }
.tile.selected { border-color: var(--asphalt); box-shadow: 0 0 0 3px rgba(255,176,32,.45); }
.tile .icon { width: 28px; height: 28px; color: var(--asphalt); }
.tile strong { font-size: 14.5px; line-height: 1.25; }
.tile small { color: var(--steel); font-size: 12.5px; line-height: 1.3; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 14px; font-weight: 500; }
.choice.selected { border-color: var(--asphalt); background: var(--asphalt); color: var(--on-dark); }
.code-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.code-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border-radius: 8px; background: var(--chalk); border: 1px solid var(--line); font-size: 13.5px; }
.code-chip .mono { font-weight: 600; }
.code-chip .sev { width: 8px; height: 8px; border-radius: 50%; }
.code-chip button { border: 0; background: transparent; cursor: pointer; color: var(--steel); padding: 0 2px; font-size: 16px; line-height: 1; }
.sev-info { background: var(--info); } .sev-caution { background: var(--caution); } .sev-stop { background: var(--stop); }
.vehicle-result { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--signal-soft); color: var(--signal-ink); font-weight: 500; margin-top: 10px; }
.vehicle-result svg { width: 22px; height: 22px; flex: none; }
.location-box { display: flex; gap: 8px; }
.location-box .input { flex: 1; }
.geo-result { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--chalk); border: 1px solid var(--line); font-size: 14px; display: none; }
.geo-result.show { display: block; }
.geo-result .ok { color: var(--signal-ink); font-weight: 600; }
.geo-result .warn { color: var(--stop-ink); font-weight: 600; }
.map-preview { height: 200px; border-radius: 10px; overflow: hidden; margin-top: 10px; border: 1px solid var(--line); background: var(--map-bg); }
.map-preview:empty { display: none; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day { flex: none; width: 70px; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); text-align: center; cursor: pointer; }
.day .dow { font-size: 12px; color: var(--steel); text-transform: uppercase; letter-spacing: .06em; }
.day .num { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.day .avail { font-size: 11px; color: var(--signal); font-weight: 600; }
.day.closed { opacity: .45; cursor: not-allowed; }
.day.closed .avail { color: var(--steel); }
.day.selected { border-color: var(--asphalt); background: var(--asphalt); color: var(--on-dark); }
.day.selected .dow, .day.selected .avail { color: #ffd27a; }
.windows { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.window { padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; text-align: center; font-weight: 600; font-size: 14px; }
.window.unavailable { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.window.selected { border-color: var(--asphalt); background: var(--asphalt); color: var(--on-dark); }
.review { display: grid; gap: 10px; }
.review-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; align-items: start; }
.review-row:first-child { border-top: 0; }
.review-row b { color: var(--steel); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.review-row a { font-size: 13px; color: var(--steel); }
@media (max-width: 520px) { .review-row { grid-template-columns: 1fr; gap: 2px; } }
.photo-drop { border: 1.5px dashed var(--line-strong); border-radius: 10px; padding: 18px; text-align: center; color: var(--steel); cursor: pointer; background: var(--paper); }
.photo-drop:hover { border-color: var(--asphalt); }
.photo-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.submitting { opacity: .6; pointer-events: none; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.2); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Customer ticket page ---------- */
.ticket-page { max-width: 820px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) var(--gutter) 100px; }
.ticket-hero { background: var(--hero-ground); color: var(--hero-ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.ticket-hero-body { padding: clamp(20px, 4vw, 30px); }
.ticket-hero .num { font-family: var(--mono); font-size: 14px; color: var(--accent-on-dark); letter-spacing: .06em; }
.ticket-hero h1 { font-size: clamp(32px, 6vw, 52px); color: var(--on-dark); margin: 6px 0 10px; }
.ticket-hero .sub { color: var(--dim-on-dark); margin: 0; }
.status-banner { display: flex; align-items: center; gap: 14px; padding: 16px clamp(20px, 4vw, 30px); background: var(--asphalt-2); border-top: 1px solid rgba(255,255,255,.08); }
.status-banner .big { font-family: var(--display); font-size: 30px; text-transform: uppercase; line-height: 1; }
.status-banner .eta { margin-left: auto; text-align: right; font-size: 13px; color: var(--mist); }
.status-banner .eta b { display: block; font-family: var(--display); font-size: 30px; color: var(--accent-on-dark); line-height: 1; }
.status-new .big { color: var(--accent-on-dark); } .status-scheduled .big { color: var(--status-blue); } .status-en_route .big { color: var(--accent-on-dark); } .status-on_site .big { color: var(--status-green); } .status-completed .big { color: var(--status-green); } .status-cancelled .big, .status-no_show .big { color: var(--status-red); }
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 700px) { .ticket-grid { grid-template-columns: 1fr; } }
.ticket-grid .card { padding: 20px; }
.ticket-grid .card h3 { font-family: var(--body); text-transform: none; font-size: 14px; font-weight: 600; color: var(--steel); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.kv { display: grid; gap: 8px; font-size: 15px; }
.kv div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.kv div b { color: var(--steel); font-weight: 500; font-size: 13px; }
.live-map { height: 260px; border-radius: 10px; overflow: hidden; background: var(--map-bg); border: 1px solid var(--line); margin-top: 14px; }
.actions-card { display: flex; flex-wrap: wrap; gap: 10px; }
.lock-note { display: flex; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink); font-size: 14px; }
.lock-note svg { width: 20px; height: 20px; flex: none; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.history li:first-child { border-top: 0; }
.history .when { font-family: var(--mono); font-size: 12px; color: var(--steel); white-space: nowrap; }
.code-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; font-size: 14px; }
.code-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.code-card .code { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.code-card ol { margin: 8px 0 0; padding-left: 20px; color: var(--steel); }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery a img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.modal { position: fixed; inset: 0; background: rgba(18,20,23,.6); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.modal.open { display: flex; }
.modal .card { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }

/* Account */
.account { max-width: 900px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) var(--gutter) 80px; }
.ticket-list { display: grid; gap: 10px; }
.ticket-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.ticket-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.ticket-row .num { font-family: var(--mono); font-size: 13px; color: var(--steel); }
.ticket-row strong { display: block; }
.ticket-row small { color: var(--steel); }
.empty { padding: 28px; text-align: center; color: var(--steel); background: var(--paper); border: 1px dashed var(--line-strong); border-radius: 10px; }

/* Error page */
.error-page { text-align: center; padding: 80px var(--gutter); }
.error-page h1 { font-size: clamp(60px, 15vw, 140px); color: var(--line-strong); }


/* fixes */
[hidden] { display: none !important; }
.photo-drop .icon { width: 34px; height: 34px; margin: 0 auto 6px; color: var(--steel); }

/* Invoice table (customer ticket) */
.invoice-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.invoice-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.invoice-table td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; }
.invoice-table tr.total td { border-bottom: 0; font-weight: 700; font-size: 18px; }

/* ============================================================
   Refinement layer — buttons, surfaces, inputs
   ============================================================ */

.btn {
  border-radius: 10px;
  letter-spacing: .005em;
  transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease,
              background .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { border-radius: 12px; padding: 15px 26px; }
.btn-sm { border-radius: 8px; }

.btn-primary {
  background: linear-gradient(180deg, var(--amber-hi) 0%, var(--amber) 48%, var(--amber-lo) 100%);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(120,74,0,.25),
              0 1px 2px rgba(18,20,23,.16), 0 10px 20px -12px rgba(200,133,10,.85);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ffd579 0%, #ffbe3d 55%, #f5ac16 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 4px rgba(18,20,23,.16), 0 14px 26px -12px rgba(200,133,10,.95);
}
.btn-dark {
  background: linear-gradient(180deg, #2b3138 0%, var(--asphalt) 70%);
  color: var(--on-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(18,20,23,.2), 0 10px 20px -14px rgba(18,20,23,.9);
}
.btn-dark:hover { background: linear-gradient(180deg, #39414a 0%, #22272d 70%); transform: translateY(-1px); }
.btn-outline {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(18,20,23,.05);
}
.btn-outline:hover { border-color: var(--asphalt); transform: translateY(-1px); box-shadow: 0 4px 12px -6px rgba(18,20,23,.35); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.28); color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); transform: translateY(-1px); }
.btn-success { background: linear-gradient(180deg, #24b489 0%, var(--signal) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 18px -12px rgba(27,158,119,.9); }
.btn-danger { background: linear-gradient(180deg, #e05656 0%, var(--stop) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px -12px rgba(214,69,69,.9); }
.btn:active { transform: translateY(1px) scale(.995); box-shadow: inset 0 2px 5px rgba(0,0,0,.2); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn-primary:focus-visible { outline-color: var(--asphalt); }
.btn[disabled], .btn.is-disabled { box-shadow: none; transform: none; }

/* Surfaces */
.card, .panel {
  box-shadow: 0 1px 2px rgba(18,20,23,.04), 0 10px 30px -18px rgba(18,20,23,.28);
}
.service-card { box-shadow: 0 1px 2px rgba(18,20,23,.04); }
.service-card:hover { border-color: var(--line-strong); box-shadow: 0 2px 4px rgba(18,20,23,.06), 0 16px 28px -18px rgba(18,20,23,.4); }
.service-card:hover .icon { color: var(--amber-ink); }
.service-card .icon { transition: color .18s ease; }
.step { box-shadow: 0 1px 2px rgba(18,20,23,.04); }

/* Inputs */
.input, select.input, textarea.input { border-radius: 9px; box-shadow: inset 0 1px 2px rgba(18,20,23,.04); }
.input:focus, select.input:focus, textarea.input:focus {
  border-color: var(--asphalt);
  box-shadow: 0 0 0 3.5px var(--amber-soft), inset 0 1px 2px rgba(18,20,23,.05);
}
.tile, .choice, .window, .day { transition: border-color .14s ease, box-shadow .14s ease, background .14s ease, transform .1s ease; }
.tile:hover, .choice:hover, .window:not(.unavailable):hover, .day:not(.closed):hover { box-shadow: 0 4px 12px -8px rgba(18,20,23,.5); }
.tile.selected { box-shadow: 0 0 0 3px rgba(255,176,32,.5), 0 6px 16px -10px rgba(18,20,23,.5); }
.choice.selected, .window.selected, .day.selected { box-shadow: 0 6px 14px -10px rgba(18,20,23,.7); }

/* Sticky mobile bar */
@media (max-width: 760px) {
  .mobile-cta { border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 -8px 24px rgba(0,0,0,.28); }
}

/* ============================================================
   THEMES — hazard is the default (tokens above). Each theme
   restyles the whole site through these custom properties.
   ============================================================ */

/* ---- Midnight: hazard geometry, cooler head ---- */
[data-theme="midnight"] {
  --logo-ground: #0e1626;
  --asphalt: #0e1626; --asphalt-2: #162032; --asphalt-3: #24314a;
  --chalk: #eef2f8; --paper: #ffffff;
  --ink: #14202f; --steel: #5c6b80; --mist: #93a3b8;
  --line: #dbe3ed; --line-strong: #bdc9d9;
  --amber: #4aa8ff; --amber-hi: #7cc2ff; --amber-lo: #2f8ae6;
  --amber-deep: #1f6fd0; --amber-soft: #e3f0ff; --amber-ink: #14528f;
  --on-accent: #062038;
  --sunken: #e7ecf4; --track: #dde4ee; --map-bg: #e4e9f1;
  --status-blue: #8ec3ff; --status-green: #5fd3b0; --status-red: #f4949a;
}
/* ---- Ember: warm carbon, vermilion ---- */
[data-theme="ember"] {
  --logo-ground: #141110;
  --asphalt: #141110; --asphalt-2: #1e1917; --asphalt-3: #2e2724;
  --chalk: #f7f4f2; --paper: #fffdfc;
  --ink: #241d1a; --steel: #6b5b54; --mist: #9c8d85;
  --line: #e9e0da; --line-strong: #d5c7bf;
  --amber: #ff5a35; --amber-hi: #ff7c5c; --amber-lo: #e04520;
  --amber-deep: #c93c19; --amber-soft: #ffe7e0; --amber-ink: #9c2f10;
  --on-accent: #2a0c04;
  --sunken: #f0e9e5; --track: #e7ded9; --map-bg: #ece4e0;
  --signal: #2f9e6f; --signal-soft: #e2f4ec; --signal-ink: #146b48;
}

/* ============================================================
   BLUEPRINT — a different design language: service-manual
   drafting. Grid paper, hairline rules, cyan ink, square corners,
   drawing-frame corner ticks, stamped buttons, sentence-case type.
   ============================================================ */
[data-theme="blueprint"], [data-theme="blueprint-light"] {
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --display-transform: none;
  --display-tracking: -.015em;
  --radius: 4px; --radius-lg: 5px; --radius-btn: 3px;
  --stripe-h: 3px;
  --shadow: 0 1px 0 rgba(4,24,40,.06);
  --shadow-lg: 0 2px 0 rgba(4,24,40,.1), 0 18px 40px -28px rgba(4,24,40,.7);
}
[data-theme="blueprint"] {
  --logo-ground: #071523;
  --asphalt: #071523; --asphalt-2: #0d2135; --asphalt-3: #16354f;
  --chalk: #0b1a2b; --paper: #102a41;
  --ink: #e6f1fb; --steel: #8fb0c9; --mist: #7f9fb8;
  --line: #1d4160; --line-strong: #2b5c86;
  --amber: #38bdf8; --amber-hi: #7dd3fc; --amber-lo: #0ea5e9;
  --amber-deep: #7dd3fc; --amber-soft: #0b2c40; --amber-ink: #9fdcfb; --accent-on-dark: #7dd3fc;
  --on-accent: #04202f; --on-dark: #eaf5ff; --dim-on-dark: #a9c6dc;
  --hero-ink: #eaf5ff; --header-ink: #eaf5ff; --footer-ink: #9fb6c9;
  --hero-ground: #071523; --header-ground: #050f1a;
  --sunken: #0c2338; --track: #16354f; --map-bg: #0c2338;
  --signal: #34d399; --signal-soft: #06301f; --signal-ink: #6ee7b7;
  --stop: #f87171; --stop-soft: #3a1111; --stop-ink: #fca5a5;
  --info: #60a5fa; --info-soft: #0b2545; --info-ink: #93c5fd;
  --caution: #fbbf24; --caution-soft: #33260a;
  --status-blue: #7dd3fc; --status-green: #6ee7b7; --status-red: #fca5a5;
  --card-tick: #38bdf8;
  --stripe: linear-gradient(90deg, var(--amber) 0 22%, rgba(56,189,248,.22) 22% 100%);
}
[data-theme="blueprint-light"] {
  --logo-ground: #0b1a2b;
  --asphalt: #0b1a2b; --asphalt-2: #12293f; --asphalt-3: #1d4160;
  --chalk: #eef3f8; --paper: #ffffff;
  --ink: #0b1a2b; --steel: #4a687f; --mist: #64809a;
  --line: #d3e0ec; --line-strong: #b3c8dc;
  --amber: #0369a1; --amber-hi: #0d82c4; --amber-lo: #025782;
  --amber-deep: #024a6e; --amber-soft: #e0f0fa;
  --on-accent: #ffffff;
  --hero-ground: #0b1a2b; --header-ground: #0b1a2b;
  --hero-ink: #eef3f8; --header-ink: #eef3f8; --footer-ink: #9fb6c9;
  --accent-on-dark: #5cc0f5; --amber-ink: #06557f;
  --sunken: #e6edf4; --track: #dce6ef; --map-bg: #e4ebf2;
  --card-tick: #0369a1;
  --stripe: linear-gradient(90deg, var(--amber) 0 22%, rgba(3,105,161,.18) 22% 100%);
}

/* Blueprint design language */
[data-theme="blueprint"] body,
[data-theme="blueprint-light"] body {
  background-image:
    linear-gradient(var(--grid-line, rgba(125,211,252,.055)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line, rgba(125,211,252,.055)) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  background-attachment: fixed;
}
[data-theme="blueprint-light"] body { --grid-line: rgba(11,26,43,.05); }

[data-theme="blueprint"] .card, [data-theme="blueprint-light"] .card,
[data-theme="blueprint"] .panel, [data-theme="blueprint-light"] .panel,
[data-theme="blueprint"] .service-card, [data-theme="blueprint-light"] .service-card { position: relative; }

[data-theme="blueprint"] .card::before, [data-theme="blueprint-light"] .card::before,
[data-theme="blueprint"] .panel::before, [data-theme="blueprint-light"] .panel::before,
[data-theme="blueprint"] .service-card::before, [data-theme="blueprint-light"] .service-card::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px;
  border-top: 2px solid var(--card-tick); border-left: 2px solid var(--card-tick); pointer-events: none;
}
[data-theme="blueprint"] .card::after, [data-theme="blueprint-light"] .card::after,
[data-theme="blueprint"] .panel::after, [data-theme="blueprint-light"] .panel::after,
[data-theme="blueprint"] .service-card::after, [data-theme="blueprint-light"] .service-card::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px;
  border-right: 2px solid var(--card-tick); border-bottom: 2px solid var(--card-tick); pointer-events: none; opacity: .55;
}
/* stamped buttons instead of soft gradients */
[data-theme="blueprint"] .btn, [data-theme="blueprint-light"] .btn {
  background-image: none; text-transform: none; font-weight: 600;
  box-shadow: 3px 3px 0 var(--btn-stamp, rgba(4,24,40,.55));
}
[data-theme="blueprint"] .btn:hover, [data-theme="blueprint-light"] .btn:hover {
  transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--btn-stamp, rgba(4,24,40,.55));
}
[data-theme="blueprint"] .btn:active, [data-theme="blueprint-light"] .btn:active {
  transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--btn-stamp, rgba(4,24,40,.55));
}
[data-theme="blueprint-light"] { --btn-stamp: rgba(11,26,43,.28); }
[data-theme="blueprint"] .btn-primary, [data-theme="blueprint-light"] .btn-primary { background: var(--amber); color: var(--on-accent); }
[data-theme="blueprint"] .btn-dark, [data-theme="blueprint-light"] .btn-dark { background: var(--asphalt); color: var(--on-dark); }
[data-theme="blueprint"] .btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
[data-theme="blueprint"] .eyebrow, [data-theme="blueprint-light"] .eyebrow,
[data-theme="blueprint"] .hero-eyebrow, [data-theme="blueprint-light"] .hero-eyebrow { letter-spacing: .16em; }
[data-theme="blueprint"] .hero-eyebrow::before, [data-theme="blueprint-light"] .hero-eyebrow::before { height: 2px; background: var(--amber); }
[data-theme="blueprint"] .step::first-line { color: inherit; }
[data-theme="blueprint"] .input, [data-theme="blueprint"] select.input, [data-theme="blueprint"] textarea.input {
  background: var(--sunken); color: var(--ink); border-color: var(--line-strong);
}
[data-theme="blueprint"] .tile, [data-theme="blueprint"] .choice, [data-theme="blueprint"] .window, [data-theme="blueprint"] .day,
[data-theme="blueprint"] .photo-drop { background: var(--sunken); color: var(--ink); }
[data-theme="blueprint"] .segmented { background: var(--sunken); }
[data-theme="blueprint"] .segmented button.active { background: var(--paper); color: var(--ink); }
[data-theme="blueprint"] .faq details { border-color: var(--line); }
[data-theme="blueprint"] .section[style*="background:#fff"] { background: var(--paper) !important; }

[data-theme="blueprint"] .step::before, [data-theme="blueprint-light"] .step::before {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--amber);
  border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 12px; display: block;
}

/* ---- Mobile header & sticky bar ---- */
.header-call { display: none; }
.site-header .wrap { min-width: 0; }
.brand { min-width: 0; }
.brand-name { white-space: nowrap; }
@media (max-width: 760px) {
  .site-header .wrap { gap: 12px; height: 60px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 19px; letter-spacing: .03em; }
  .header-call {
    display: inline-flex; margin-left: auto; width: 44px; height: 44px; padding: 0; flex: none;
    border-radius: 12px; border-color: rgba(255,255,255,.22);
  }
  .header-call svg { width: 20px; height: 20px; }
  .header-cta { display: none; }                 /* the sticky bar carries the primary action */
  .mobile-cta { padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); gap: 8px; }
  .mobile-cta .btn { flex: 1; padding: 14px 18px; font-size: 16px; border-radius: 12px; }
  .mobile-cta .btn-ghost { flex: none; width: 52px; padding: 0; }
  body.has-mobile-cta { padding-bottom: 88px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; }
}
@media (max-width: 760px) {
  /* With no phone number there's no call button, so keep a compact CTA in the bar */
  .site-header.no-phone .header-cta { display: inline-flex; margin-left: auto; padding: 10px 16px; font-size: 14.5px; border-radius: 10px; }
}
@media (max-width: 760px) {
  /* One CTA at the top (header) and one at the bottom (sticky bar) — the
     in-content hero button in the middle would be a third of the same thing. */
  body.has-mobile-cta .hero-actions .btn-primary { display: none; }
  body.has-mobile-cta .hero-actions { margin-bottom: 4px; }
  body.page-request .site-header.no-phone .header-cta { display: none; }
  body.page-request .site-header .wrap { justify-content: space-between; }
  .section-head .btn-outline { display: none; }   /* "Start a request" duplicate */
}

/* Mechanic sign-in — a small wrench beside the main CTA */
.header-tech {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; padding: 0; margin-left: 2px;
  border-radius: 9px; border-color: rgba(255,255,255,.18); color: var(--dim-on-dark);
}
.header-tech svg { width: 17px; height: 17px; }
.header-tech:hover { color: var(--accent-on-dark); border-color: var(--accent-on-dark); background: rgba(255,255,255,.06); }
@media (max-width: 760px) {
  .header-tech { width: 36px; height: 36px; margin-left: 0; }
  .header-tech svg { width: 16px; height: 16px; }
}

/* Header CTA shortens on small screens so the brand + wrench always fit */
.cta-short { display: none; }
@media (max-width: 760px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .site-header .wrap { gap: 8px; }
  .header-cta { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
  .brand { overflow: hidden; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 16px; }
  .header-cta { padding: 8px 11px; font-size: 13px; }
}
.header-out:hover { color: var(--stop); border-color: var(--stop); }
@media (max-width: 400px) {
  /* two icons + CTA + brand is tight: the account link lives in the nav/console anyway */
  .site-header .header-tech:not(.header-out) { display: none; }
}
