/* ─────────────────────────────────────────────────────────────
   Pulse — pulsedispatch.com
   Plain CSS, no dependencies. Tokens mirror the Pulse design
   system; change a value here and it changes site-wide.
   ───────────────────────────────────────────────────────────── */

/* ── Fonts ── */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

/* ── Tokens ── */
:root {
  --pulse-red: #D6203C;
  --pulse-red-hover: #BC1732;
  --c-paper: #F8F7F7;
  --c-mist: #B0C4D6;
  --c-deep: #25373F;
  --n-50: #F9F9F9;
  --blush-100: #FDF0F2;
  --blush-200: #FBDCE2;
  --success: #4F9D7E;
  --success-bg: #E2EFE9;
  --danger: #C7421A;

  --surface-canvas: #F8F7F7;
  --surface-card: #FFFFFF;
  --text-body: #43515F;
  --text-heading: #25373F;
  --text-muted: #646B78;
  --text-on-brand: #FFFFFF;
  --border-hairline: #E1E7EF;
  --border-strong: #C1D0DF;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(37,55,63,0.06);
  --shadow-sm: 0 2px 6px rgba(37,55,63,0.08);
  --shadow-md: 0 6px 18px rgba(37,55,63,0.10);
  --inset-cta: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -2px 0 rgba(0,0,0,0.12);
  --focus-ring: 0 0 0 2px rgba(214,32,60,0.4);

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1200px;
  --gutter: clamp(24px, 5vw, 48px);
  --band: clamp(64px, 8vw, 104px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-canvas);
  font-family: var(--font-sans);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
a { color: var(--pulse-red); text-decoration: none; }
a:hover { color: var(--pulse-red-hover); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }

/* ── Layout primitives ── */
.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: 900px; }
.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(48px, 6vw, 72px); }
.band--cta { padding-block: clamp(56px, 7vw, 88px); }
.on-white { background: #FFFFFF; border-bottom: 1px solid var(--border-hairline); }
.on-canvas { background: var(--surface-canvas); border-bottom: 1px solid var(--border-hairline); }
.on-deep { background: var(--c-deep); }
.on-red { background: var(--pulse-red); }

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, 20px); }
.center { align-items: center; text-align: center; }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.split--top { align-items: start; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.cards--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.min0 { min-width: 0; }

/* ── Type ── */
.eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--pulse-red);
}
.eyebrow--muted { color: var(--text-muted); }
.h-hero {
  font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.025em; color: var(--text-heading); text-wrap: pretty;
}
.h-page {
  font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; line-height: 1.06;
  letter-spacing: -0.025em; color: var(--text-heading); text-wrap: pretty;
}
.h-section {
  font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.015em; color: var(--text-heading); text-wrap: pretty;
}
.h-sub {
  font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--text-heading); text-wrap: pretty;
}
.h-card { font-size: 17px; font-weight: 700; color: var(--text-heading); }
.h-card--lg { font-size: 19px; font-weight: 700; letter-spacing: -0.005em; color: var(--text-heading); }
.lede {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55;
  color: var(--text-body); text-wrap: pretty;
}
.body { font-size: 16px; line-height: 1.7; color: var(--text-body); text-wrap: pretty; }
.body--tight { line-height: 1.65; }
.small { font-size: 15px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.meta { font-size: 13px; color: var(--text-muted); }
.measure { max-width: 60ch; }
.measure--lede { max-width: 62ch; }
.measure--hero { max-width: 20ch; }

/* ── Pulse line motif ── */
.pulse-line { display: block; color: var(--pulse-red); }
.pulse-line svg { width: 48px; height: 22px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border: 0; border-radius: var(--r-md);
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out;
}
.btn--primary {
  background: var(--pulse-red); color: var(--text-on-brand);
  box-shadow: var(--inset-cta), var(--shadow-xs);
}
.btn--primary:hover { background: var(--pulse-red-hover); color: #FFFFFF; }
.btn--secondary {
  background: var(--n-50); color: var(--text-body);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs);
}
.btn--secondary:hover { background: #FFFFFF; color: var(--text-body); }
.btn--on-red {
  background: #FFFFFF; color: var(--pulse-red);
  padding: 0 28px; box-shadow: var(--shadow-sm);
}
.btn--on-red:hover { background: var(--c-paper); color: var(--pulse-red); }
.btn--sm { height: 40px; padding: 0 16px; }
.btn--block { width: 100%; }
.link-strong { font-size: 15px; font-weight: 700; color: var(--pulse-red); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 20; background: #FFFFFF;
  border-bottom: 1px solid var(--border-hairline);
}
.nav__inner {
  max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter);
  min-height: 80px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--text-body); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--pulse-red); }

/* ── Images ── */
.shot { width: 100%; border-radius: var(--r-lg); object-fit: cover; }
.shot--hero { height: min(56vh, 520px); }
.shot--about-hero { height: min(52vh, 460px); }
.shot--wide { height: min(48vh, 420px); }
.shot--mission { height: min(48vh, 400px); }
.shot--phone { max-width: 340px; height: min(56vh, 520px); margin-inline: auto; }

/* ── Cards ── */
.card {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 32px; background: var(--surface-card);
  border: 1px solid var(--border-hairline); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.card--roomy { padding: 36px 32px; }
.card--blush { background: var(--blush-100); border-color: var(--blush-200); box-shadow: none; }
.rule {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding-top: 20px; border-top: 1px solid var(--border-hairline);
}

/* ── Checklists ── */
.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; align-items: center; gap: 12px; }
.check--top { align-items: flex-start; gap: 14px; }
.check svg { flex: 0 0 auto; }
.check--top svg { margin-top: 3px; }
.check__label { font-size: 15px; font-weight: 500; color: var(--text-heading); }

/* ── Stats ── */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 40px;
}
.stats--about { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stat__figure {
  font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1;
  letter-spacing: -0.025em; color: #FFFFFF; font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 13px; font-weight: 500; color: var(--c-mist); }
.stat--ink { gap: 6px; }
.stat--ink .stat__figure {
  font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--text-heading);
}
.stat--ink .stat__label { font-size: 14px; font-weight: 400; color: var(--text-muted); }

/* ── Quote ── */
.quote {
  font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.3;
  letter-spacing: -0.015em; color: var(--text-heading); text-wrap: pretty;
}

/* ── CTA band ── */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 40px;
}
.cta-band h2 { color: #FFFFFF; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; text-wrap: pretty; }
.cta-band__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; max-width: 54ch; }
.cta-band__points { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.cta-band__point { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #FFFFFF; }

/* ── Forms ── */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 700; color: var(--text-heading); }
.field__label .req { color: var(--pulse-red); }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px;
  font-family: inherit; font-size: 15px; color: var(--text-body);
  background: #FFFFFF; border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
}
.field textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pulse-red); box-shadow: var(--focus-ring);
}
.form__note { font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.panel {
  min-width: 0; background: var(--surface-card);
  border: 1px solid var(--border-hairline); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 40px);
  scroll-margin-top: 100px;
}

/* ── Contact aside ── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 6vw, 72px); align-items: start;
}
.contact-facts {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 32px; border-top: 1px solid var(--border-hairline);
}
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact__label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-muted);
}
.fact__value { font-size: 15px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }

/* ── Legal pages ── */
.legal-head {
  background: #FFFFFF; border-bottom: 1px solid var(--border-hairline);
}
.legal-head__inner {
  max-width: 820px; margin: 0 auto;
  padding: var(--band) var(--gutter) clamp(32px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 20px;
}
.legal-head h1 {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.08; color: var(--text-heading); text-wrap: pretty;
}
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-meta span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.legal-body {
  background: var(--surface-canvas);
  padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(72px, 9vw, 112px);
}
.legal-doc {
  max-width: 820px; margin: 0 auto; background: var(--surface-card);
  border: 1px solid var(--border-hairline); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs); padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 16px;
}
.legal-doc h2 {
  margin-top: 24px; font-size: 19px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.005em; color: var(--text-heading); text-wrap: pretty;
}
.legal-doc h3 {
  margin-top: 16px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-muted);
}
.legal-doc p { font-size: 16px; line-height: 1.7; color: var(--text-body); text-wrap: pretty; }
.legal-doc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.legal-doc li {
  display: flex; gap: 12px; padding-left: 8px;
  font-size: 16px; line-height: 1.7; color: var(--text-body); text-wrap: pretty;
}
.legal-doc li::before {
  content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin-top: 9px;
  border-radius: var(--r-pill); background: var(--pulse-red);
}
.table-wrap { overflow-x: auto; border: 1px solid var(--border-hairline); border-radius: var(--r-md); }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.legal-doc th {
  text-align: left; padding: 12px; background: var(--n-50);
  border-bottom: 1px solid var(--border-hairline);
  font-size: 13px; font-weight: 700; color: var(--text-heading);
}
.legal-doc td {
  padding: 12px; border-bottom: 1px solid var(--border-hairline);
  vertical-align: top; font-size: 13px; line-height: 1.55; color: var(--text-body);
}

/* ── Footer ── */
.footer { background: var(--c-deep); color: #FFFFFF; }
.footer__inner {
  max-width: 1140px; margin: 0 auto;
  padding: 72px var(--gutter) 40px;
}
.footer__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer__brand img { height: 40px; width: 40px; }
.footer__wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #FFFFFF; }
.footer__blurb { font-size: 13px; line-height: 1.5; color: var(--c-mist); max-width: 26ch; text-wrap: pretty; }
.footer__head {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: #FFFFFF;
}
.footer a, .footer__text { font-size: 13px; color: var(--c-mist); }
.footer a:hover { color: #FFFFFF; }
.footer__text { line-height: 1.5; }
.footer__base {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(176,196,214,0.24);
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.footer__base span { font-size: 12px; color: var(--c-mist); }

/* ── 404 ── */
.notfound {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 24px;
}
.notfound__code {
  font-size: clamp(64px, 12vw, 128px); font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; color: var(--pulse-red);
}

/* ── Order helpers ── */
@media (max-width: 719px) {
  .split > .order-img { order: -1; }
}
