:root {
  color-scheme: light dark;
  --shell-max: 68rem;
  --measure: 70ch;
  --background: #fafaf9;
  --surface: #ffffff;
  --surface-alt: #f2f1ef;
  --border: #e4e4e1;
  --border-strong: #94938e;
  --text: #17161a;
  --text-muted: #626168;
  --primary: #e4572e;
  --primary-strong: #b83c19;
  --primary-subtle: #fff0e9;
  --info: #1d4ed8;
  --info-subtle: #eaf2ff;
  --danger: #c8352a;
  --danger-subtle: #fdedec;
  --warning: #7a5000;
  --warning-subtle: #fff4d6;
  --focus: #17161a;
  --shadow: 0 18px 50px rgb(23 22 26 / 8%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #131316;
    --surface: #1c1c21;
    --surface-alt: #292930;
    --border: #41414b;
    --border-strong: #777681;
    --text: #f4f4f2;
    --text-muted: #aaa9b2;
    --primary: #ff6b3d;
    --primary-strong: #ff8a66;
    --primary-subtle: #3b231c;
    --info: #93c5fd;
    --info-subtle: #172a46;
    --danger: #f87171;
    --danger-subtle: #3b1d20;
    --warning: #fbbf24;
    --warning-subtle: #3a2d14;
    --focus: #f4f4f2;
    --shadow: 0 18px 50px rgb(0 0 0 / 24%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary-strong);
  font-weight: 650;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

p,
ul,
ol,
dl {
  margin-block: 0 1.25rem;
}

ul,
ol {
  padding-inline-start: 1.4rem;
}

li + li {
  margin-top: 0.45rem;
}

strong {
  font-weight: 720;
}

code {
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--surface-alt);
  color: var(--text);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.shell {
  width: calc(100% - 2rem);
  max-width: var(--shell-max);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--background);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-top: 0.3rem solid var(--primary);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-lockup {
  display: block;
  width: auto;
  height: 2.1rem;
}

.site-nav {
  margin-top: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li,
.site-nav li + li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.45rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.3;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: var(--primary-subtle);
  color: var(--primary-strong);
}

main {
  padding-block: clamp(2.5rem, 8vw, 5.5rem);
}

.page-hero {
  position: relative;
  padding: clamp(1.35rem, 5vw, 2.4rem);
  border: 1px solid var(--border);
  border-left: 0.35rem solid var(--primary);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-hero::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 22rem;
  background-image: url("assets/brand/ridehub-breakout-r-mark-v5.svg");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  opacity: 0.07;
  pointer-events: none;
}

.page-hero::after {
  position: absolute;
  right: 1.1rem;
  bottom: -0.45rem;
  width: 4.6rem;
  height: 0.45rem;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0 0.8rem,
    transparent 0.8rem 1.15rem
  );
  content: "";
}

.page-hero > * {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
}

.page-hero > h1 {
  max-width: 18ch;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.55rem);
  font-weight: 820;
  letter-spacing: -0.055em;
}

h2 {
  margin-block: 0 1rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 780;
  letter-spacing: -0.025em;
}

h3 {
  margin-block: 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 750;
}

.lede {
  max-width: 57ch;
  margin: 1.15rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  line-height: 1.65;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.document-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.document-meta span::before {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.content-flow {
  margin-top: clamp(2.7rem, 7vw, 4.5rem);
}

.content-flow > section > * {
  max-width: var(--measure);
}

.content-flow > section > .card-grid,
.content-flow > section > .store-grid,
.content-flow > section > .data-groups,
.content-flow > section > .steps {
  max-width: none;
}

.content-flow > section {
  padding-block: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--border);
}

.content-flow > section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-intro {
  max-width: 58ch;
  color: var(--text-muted);
}

.card-grid,
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.store-card,
.contact-card {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
}

.card p:last-child,
.store-card p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.card-number {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  place-items: center;
}

.store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.store-name {
  margin: 0;
  font-weight: 760;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 720;
  white-space: nowrap;
}

.status-badge::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.callout {
  margin-block: 1.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface-alt);
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout.info {
  border-color: var(--info);
  background: var(--info-subtle);
}

.callout.info .callout-title {
  color: var(--info);
}

.callout.warning {
  border-color: var(--warning);
  background: var(--warning-subtle);
}

.callout.warning .callout-title {
  color: var(--warning);
}

.callout.danger {
  border-color: var(--danger);
  background: var(--danger-subtle);
}

.callout.danger .callout-title {
  color: var(--danger);
}

.plain-list {
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 1.35rem;
}

.plain-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  content: "";
}

.data-groups {
  display: grid;
  gap: 1rem;
}

.data-group {
  padding: 1.2rem;
  border-left: 3px solid var(--border-strong);
  background: var(--surface-alt);
}

.data-group p:last-child,
.data-group ul:last-child {
  margin-bottom: 0;
}

.steps {
  margin: 1.5rem 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 3.2rem;
  padding: 0.55rem 0 1.4rem 3.6rem;
  counter-increment: steps;
}

.steps li + li {
  margin-top: 0;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--background);
  color: var(--primary-strong);
  content: counter(steps, decimal-leading-zero);
  font-size: 0.76rem;
  font-weight: 820;
  place-items: center;
}

.steps li:not(:last-child)::after {
  position: absolute;
  top: 2.45rem;
  bottom: -0.1rem;
  left: 1.18rem;
  width: 2px;
  background: var(--border);
  content: "";
}

.steps strong {
  display: block;
  margin-bottom: 0.15rem;
}

.contact-card {
  border-left: 0.3rem solid var(--primary);
}

.contact-address {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  overflow-wrap: anywhere;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0.55rem;
  background: var(--primary);
  color: #1a0e08;
  font-weight: 800;
  text-decoration: none;
}

.button-link::after {
  margin-left: 0.6rem;
  content: "→";
}

.button-link:hover {
  background: var(--primary-strong);
  color: var(--surface);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner strong {
  color: var(--text);
}

@media (max-width: 62rem) {
  .page-hero::before {
    display: none;
  }

  .card-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    margin-top: 0.75rem;
  }
}

@media (max-width: 46rem) {
  .shell {
    width: calc(100% - 1.4rem);
  }

  .site-nav ul {
    margin-inline: -0.25rem;
  }

  .site-nav a {
    padding-inline: 0.5rem;
  }

  .card-grid,
  .card-grid.three,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  :root {
    --background: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f5f5f5;
    --text: #000000;
    --text-muted: #333333;
    --border: #b8b8b8;
    --primary: #9c2d10;
    --primary-strong: #711f0c;
    --shadow: none;
  }

  .skip-link,
  .site-nav {
    display: none;
  }

  .site-header {
    border-bottom: 1px solid var(--border);
  }

  main {
    padding-block: 2rem;
  }

  .page-hero,
  .card,
  .contact-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .page-hero::before {
    display: none;
  }

  a {
    color: inherit;
  }
}
