/* ================================================================
   BEAGLE: The fair way to get around.
   beagle.cab | beagle.taxi
   ================================================================ */

/* --- Custom Properties --- */
:root {
  --cream: #FAF7F2;
  --cream-alt: #F3EDE5;
  --sand: #E8DDD3;
  --sand-dark: #D4C9BC;
  --dark: #1A1714;
  --dark-alt: #242119;
  --charcoal: #2A2722;
  --text: #3A3834;
  --text-muted: #8B8580;
  --text-light: #B0A9A1;
  --green: #25D366;
  --green-dark: #1DA851;
  --green-glow: rgba(37, 211, 102, 0.15);
  --terracotta: #C4624A;
  --terracotta-light: #D4795F;
  --white: #FEFEFE;

  /* Font families. Static build: no external font requests, so the
     documented fallbacks carry the type (Georgia for display, a system
     sans for body). */
  --font-display: Georgia, 'Times New Roman', 'Iowan Old Style', serif;
  --font-body: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --max-w: 1200px;
  --max-w-narrow: 800px;
  --max-w-wide: 1400px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --pad-section: clamp(5rem, 10vw, 9rem);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(26, 23, 20, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 23, 20, 0.08);
  --shadow-lg: 0 16px 50px rgba(26, 23, 20, 0.12);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
  opacity: 0.35;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-variation-settings: 'opsz' 144; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-variation-settings: 'opsz' 72; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-variation-settings: 'opsz' 36; }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 600px;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--cream); }
.section--dark .eyebrow { color: var(--green); }
.section--dark .subtitle { color: var(--sand-dark); }
.section--dark { color: var(--sand); }

.section--green { background: var(--green); color: var(--dark); }
.section--green h2,
.section--green h3 { color: var(--dark); }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container--narrow { max-width: var(--max-w-narrow); }
.container--wide { max-width: var(--max-w-wide); }

.section {
  padding: var(--pad-section) 0;
  position: relative;
}
.section--dark { background: var(--dark); }
.section--alt { background: var(--cream-alt); }
.section--sand { background: var(--sand); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2rem);
}

/* --- Section Images --- */
.section-image {
  border-radius: var(--radius);
  overflow: hidden;
}
.section-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(26, 23, 20, 0.06);
}
.nav__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-variation-settings: 'opsz' 72;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--charcoal); }
.nav__cta {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--green);
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  transition: background 0.25s, transform 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* Investor (dark page) nav variant */
.nav--inv .nav__brand { color: var(--cream); }
.nav--inv .nav__links a { color: var(--sand-dark); }
.nav--inv .nav__links a:hover { color: var(--cream); }
.nav--inv.scrolled {
  background: rgba(26, 23, 20, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav--inv .nav__toggle span { background: var(--cream); }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 100px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}
.btn--secondary {
  background: var(--terracotta);
  color: var(--white);
}
.btn--secondary:hover {
  background: var(--terracotta-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 98, 74, 0.25);
}
.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--sand-dark);
}
.btn--outline:hover {
  border-color: var(--charcoal);
  transform: translateY(-2px);
}
.btn--dark {
  background: var(--dark);
  color: var(--cream);
}
.btn--dark:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
}
.btn--sm {
  font-size: 0.8125rem;
  padding: 0.7rem 1.5rem;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.hero__content { position: relative; z-index: 2; }
.hero h1 {
  margin-bottom: 1.5rem;
  font-style: italic;
}
.hero h1 em {
  font-style: normal;
  color: var(--green-dark);
  margin-left: 0.15em;
}
.hero .subtitle { margin-bottom: 0.5rem; }
.hero__trust {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sand);
}

/* Chat demo in hero */
.chat-demo {
  background: var(--cream-alt);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--sand);
}
.chat-demo__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--sand);
  color: var(--green-dark);
}
.chat-demo__header svg {
  width: 20px;
  height: 20px;
}
.chat-msg {
  margin-bottom: 0.75rem;
  display: flex;
}
.chat-msg:last-child { margin-bottom: 0; }
.chat-msg p {
  padding: 0.65rem 1rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 85%;
}
.chat-msg--user {
  justify-content: flex-end;
}
.chat-msg--user p {
  background: #DCF8C6;
  color: var(--dark);
  border-bottom-right-radius: 4px;
}
.chat-msg--bot p {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--sand);
  border-bottom-left-radius: 4px;
}
.chat-msg--offer p {
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.chat-offer-fare {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green-dark);
  margin-bottom: 0.15rem;
}
.chat-offer-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.chat-msg--confirm p {
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  border: none;
  border-bottom-left-radius: 4px;
}

/* Decorative elements */
.hero__decor {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--green-glow);
  filter: blur(100px);
  top: -100px;
  right: -150px;
  z-index: 0;
}

/* --- Problem Section --- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.problem-col {
  padding: clamp(2.5rem, 5vw, 4rem);
}
.problem-col:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.problem-col h3 {
  margin-bottom: 2rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.pain-item .x {
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.pain-item .pain-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--terracotta);
  margin-top: 0.2rem;
}
.pain-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}
.problem-footer {
  text-align: center;
  padding: clamp(2rem, 4vw, 3.5rem) var(--pad-x);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.problem-footer p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--cream);
  font-style: italic;
}

/* --- Steps --- */
.steps { counter-reset: step; }
.step {
  counter-increment: step;
  position: relative;
  padding: 2rem 0 2rem 5rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2rem;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--green-dark);
  background: var(--green-glow);
  border-radius: 50%;
  border: 2px solid var(--green);
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(1.625rem - 1px);
  top: 5.5rem;
  bottom: 0;
  width: 2px;
  background: var(--sand);
}
.step h4 { margin-bottom: 0.5rem; color: var(--charcoal); }
.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
}
.step-example {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--cream-alt);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--sand);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-glow);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  color: var(--green-dark);
}
.card__icon svg,
.card__icon i {
  width: 24px;
  height: 24px;
}
.card h4 { margin-bottom: 0.6rem; }
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.comparison-table thead th {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--sand);
}
.comparison-table thead th:last-child {
  color: var(--green-dark);
  font-size: 0.75rem;
}
.comparison-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--sand);
  vertical-align: middle;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table td:first-child {
  font-weight: 500;
  color: var(--charcoal);
}
.comparison-table td:last-child {
  background: var(--green-glow);
  font-weight: 600;
  color: var(--green-dark);
}
.comparison-table .check { color: var(--green-dark); font-weight: 700; }
.comparison-table .cross { color: var(--terracotta); }
.comparison-table .na { color: var(--text-light); }

/* --- Markets / Where We Operate --- */
.market-card {
  background: var(--dark-alt);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s;
}
.market-card:hover {
  border-color: var(--green);
}
.market-card.active {
  border-color: var(--green);
  background: rgba(37, 211, 102, 0.06);
}
.market-card .badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.market-card .badge--live {
  background: var(--green);
  color: var(--dark);
}
.market-card .badge--soon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}
.market-card h4 { color: var(--cream); margin-bottom: 0.5rem; }
.market-card p {
  font-size: 0.85rem;
  color: var(--sand-dark);
  line-height: 1.5;
}

/* --- Dispatcher Feature --- */
.dispatcher-scenario {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dispatcher-scenario__header {
  background: var(--dark);
  color: var(--cream);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.dispatcher-scenario__header h4 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 0.5rem;
}
.dispatcher-scenario__header p {
  color: var(--sand-dark);
  font-size: 0.9rem;
}
.dispatcher-scenario__body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.dispatcher-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.dispatcher-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.dispatcher-col--before h5 { color: var(--terracotta); }
.dispatcher-col--after h5 { color: var(--green-dark); }
.dispatcher-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Payment --- */
.payment-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: pay;
}
.payment-step {
  counter-increment: pay;
  text-align: center;
  position: relative;
  background: var(--cream-alt);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
}
.payment-step::before {
  content: counter(pay);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green-dark);
  background: var(--green-glow);
  border: 2px solid var(--green);
  border-radius: 50%;
}
.payment-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.payment-step strong {
  display: block;
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--sand);
}
.faq-item:first-child { border-top: 1px solid var(--sand); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--green-dark);
}
.faq-item summary:hover { color: var(--green-dark); }
.faq-item .faq-answer {
  padding: 0 0 1.5rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 700px;
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--green-glow);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(120px);
}
.final-cta h2 {
  color: var(--cream);
  position: relative;
}
.final-cta .subtitle {
  margin: 1rem auto 0;
  position: relative;
}
.final-cta__bg {
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.2;
  z-index: 0;
}
.final-cta .btn-group {
  justify-content: center;
  position: relative;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 3.5rem 0 2rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}
.footer__links {
  display: flex;
  gap: 3rem;
}
.footer__col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 0.85rem;
}
.footer__col a {
  display: block;
  font-size: 0.85rem;
  color: var(--sand-dark);
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}
.footer__col a:hover { color: var(--green); }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom a { transition: color 0.25s; }
.footer__bottom a:hover { color: var(--green); }

/* ================================================================
   INVESTOR PAGE
   ================================================================ */

/* --- Investor Hero --- */
.inv-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.inv-hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}
.inv-hero h1 {
  color: var(--cream);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.inv-hero .subtitle {
  color: var(--sand-dark);
  margin-bottom: 2.5rem;
  max-width: 640px;
}

/* --- Key Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.stat {
  text-align: left;
}
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  font-variation-settings: 'opsz' 72;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.section--dark .stat__label { color: var(--sand-dark); }

/* --- Numbered Sections (Investor) --- */
.inv-section-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--green-dark);
  font-weight: 500;
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Data Tables (Investor) --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 2rem;
}
.data-table thead th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 1.25rem 0.85rem;
  text-align: right;
  border-bottom: 2px solid var(--sand);
}
.data-table thead th:first-child { text-align: left; }
.data-table td {
  padding: 0.85rem 1.25rem;
  text-align: right;
  border-bottom: 1px solid var(--sand);
  color: var(--text);
}
.data-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--charcoal);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tfoot td {
  border-top: 2px solid var(--charcoal);
  font-weight: 700;
  color: var(--charcoal);
  padding-top: 1rem;
}
.data-table .highlight {
  color: var(--green-dark);
  font-weight: 700;
}

.section--dark .data-table thead th { color: var(--sand-dark); border-bottom-color: rgba(255,255,255,0.08); }
.section--dark .data-table td { color: var(--sand); border-bottom-color: rgba(255,255,255,0.06); }
.section--dark .data-table td:first-child { color: var(--cream); }
.section--dark .data-table tfoot td { border-top-color: rgba(255,255,255,0.15); color: var(--cream); }

/* --- Flywheel (Investor) --- */
.flywheel {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 480px;
  margin: 2.5rem auto 0;
}
.flywheel-step {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  padding: 1rem 0;
}
.flywheel-step::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
.flywheel-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: calc(1rem + 12px);
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--green-glow));
}
.flywheel-step p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--sand);
}
.flywheel-loop {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  border-top: 2px dashed var(--green-glow);
}

/* --- Expansion Timeline (Investor) --- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sand);
}
.timeline-phase {
  position: relative;
  padding-top: 2.75rem;
  padding-right: 1.5rem;
}
.timeline-phase::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
  z-index: 1;
}
.timeline-phase h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}
.timeline-phase h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.timeline-phase ul {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.timeline-phase li { padding-left: 0.75rem; position: relative; }
.timeline-phase li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* --- Revenue Streams (Investor) --- */
.revenue-streams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.revenue-stream {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--sand);
}
.revenue-stream--primary {
  background: var(--green-glow);
  border-color: var(--green);
}
.revenue-stream--secondary {
  background: var(--cream-alt);
}
.revenue-stream .badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
}
.revenue-stream--primary .badge {
  background: var(--green);
  color: var(--dark);
}
.revenue-stream--secondary .badge {
  background: var(--sand-dark);
  color: var(--charcoal);
}
.revenue-stream h4 { margin-bottom: 0.6rem; }
.revenue-stream p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Chat demo staggered animation */
.chat-demo .chat-msg {
  opacity: 0;
  transform: translateY(10px);
  animation: chatIn 0.4s ease forwards;
}
.chat-demo .chat-msg:nth-child(2) { animation-delay: 0s; }
.chat-demo .chat-msg:nth-child(3) { animation-delay: 2s; }
.chat-demo .chat-msg:nth-child(4) { animation-delay: 4s; }
.chat-demo .chat-msg:nth-child(5) { animation-delay: 6s; }
.chat-demo .chat-msg:nth-child(6) { animation-delay: 8s; }
.chat-demo .chat-msg:nth-child(7) { animation-delay: 10s; }

@keyframes chatIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .timeline::before { display: none; }
  .payment-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 8rem; padding-bottom: 3rem; }
  .chat-demo { margin-top: 2rem; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1.5rem var(--pad-x);
    border-bottom: 1px solid var(--sand);
    gap: 1rem;
  }
  .nav--inv .nav__links.open {
    background: var(--dark);
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }
  .nav--inv .nav__links.open a { color: var(--sand-dark); }
  .nav--inv .nav__links.open a:hover { color: var(--cream); }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .problem-grid { grid-template-columns: 1fr; }
  .problem-col:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }

  .dispatcher-before-after { grid-template-columns: 1fr; }
  .payment-steps { grid-template-columns: 1fr; }
  .revenue-streams { grid-template-columns: 1fr; }

  .timeline { grid-template-columns: 1fr; gap: 1.5rem; }
  .timeline-phase { padding-left: 2rem; }
  .timeline-phase::before { top: 0; }

  .footer__inner { flex-direction: column; }
  .footer__links { flex-direction: column; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .comparison-table { font-size: 0.78rem; }
  .comparison-table th,
  .comparison-table td { padding: 0.65rem 0.75rem; }

  .section { padding: clamp(3.5rem, 8vw, 5rem) 0; }

  /* Must come AFTER .section shorthand so padding-top is not overwritten */
  .hero { padding-top: 8rem; }
  .inv-hero { min-height: auto; padding-top: 8rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .stats-row { grid-template-columns: 1fr; }
  .stat { text-align: center; }
}

/* ================================================================
   STATIC BUILD ADDITIONS
   Rules that were carried by Next.js components (next/image fill,
   inline style props) and now need to live in the stylesheet.
   ================================================================ */

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

/* Chat offer bubble: fare over detail, as the type sizes intend */
.chat-offer-fare,
.chat-offer-detail { display: block; }

/* Final CTA background photograph (was next/image fill) */
.final-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.2;
  z-index: 0;
}

/* Section heading blocks that carried inline styles */
.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--tight { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .subtitle { margin-left: auto; margin-right: auto; }

.problem-wrap { max-width: var(--max-w-wide); margin: 0 auto; }
.grid-2--end { align-items: end; }
.stack-top { margin-top: 1rem; }
.stack-top-lg { margin-top: 2rem; }
.table-scroll { overflow-x: auto; }
.footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.footnote:first-of-type { margin-top: 1rem; }
.payment-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2.5rem auto 0;
  max-width: 480px;
}

/* Driver stat trio */
.driver-stats {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.driver-stat__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--green-dark);
  line-height: 1.1;
}
.driver-stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.market-card__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 500;
}
.market-card__link:hover { text-decoration: underline; }

.dispatcher-scenario__header .eyebrow {
  color: var(--green);
  margin-bottom: 0.5rem;
}

.final-cta .btn--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--cream);
}

/* ================================================================
   INVESTOR PAGE ADDITIONS
   ================================================================ */
.inv-hero .stats-row { position: relative; }
.card--pain { border-color: var(--terracotta); border-width: 2px; }
.card--pain h4 { color: var(--terracotta); margin-bottom: 1.25rem; }
.card--dark {
  background: var(--dark-alt);
  border-color: rgba(255, 255, 255, 0.06);
}
.card--dark h4 { color: var(--cream); }
.card--dark p { color: var(--sand-dark); }
.card--good { border-color: var(--green); border-width: 2px; }
.card--good-fill { background: var(--green-glow); }
.pain-item .tick { color: var(--green-dark); font-weight: 700; flex-shrink: 0; }
.pain-list .pain-item { margin-bottom: 1rem; }
.pain-list .pain-item:last-child { margin-bottom: 0; }
.pain-list .pain-item p { color: var(--text); }

.adv-grid { gap: 2rem 3rem; margin-top: 2.5rem; }
.adv-grid h4 { margin-bottom: 0.5rem; }
.adv-grid p { color: var(--text-muted); font-size: 0.925rem; }

.ltv-row { display: flex; justify-content: space-between; }
.ltv-total {
  border-top: 2px solid var(--green);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
.ltv-total span { font-weight: 700; }
.ltv-total strong { font-size: 1.25rem; color: var(--green-dark); }
.ltv-body { font-size: 0.9rem; line-height: 1.8; }

.moat-layer { margin-bottom: 1.75rem; }
.moat-layer:last-child { margin-bottom: 0; }
.moat-layer h4 { color: var(--green); font-size: 0.95rem; margin-bottom: 0.4rem; }
.moat-layer p { color: var(--sand-dark); font-size: 0.9rem; }

.milestones { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }
.milestone {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--sand);
}
.milestone:last-child { border-bottom: none; }
.milestone strong { color: var(--charcoal); }
.milestone strong.green { color: var(--green-dark); }

.summary-list { max-width: 600px; margin: 2rem auto 0; text-align: left; }
.summary-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: baseline;
}
.summary-row dt {
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 80px;
}
.summary-row dd { color: var(--sand); margin: 0; }
.why-now-note {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.why-now-note p { color: var(--sand-dark); font-size: 0.95rem; }
.why-now-note p + p { margin-top: 0.5rem; }
.why-now-note strong { color: var(--cream); }

/* ================================================================
   TERMS PAGE
   ================================================================ */
.legal-page { background: var(--cream); min-height: 100vh; color: var(--text); }
.legal-nav {
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sand);
  background: var(--cream);
}
.legal-nav__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
}
.legal-nav__back { font-size: 0.875rem; color: var(--text-muted); }
.legal-main { max-width: 680px; margin: 0 auto; padding: 3rem 2rem 6rem; }
.legal-eyebrow {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.legal-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 3rem; }
.legal-section { margin-bottom: 2.5rem; }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}
.legal-section > div { line-height: 1.75; font-size: 0.9375rem; color: var(--text); }
.legal-section p + p,
.legal-section ul { margin-top: 0.85rem; }
.legal-section ul { list-style: disc; padding-left: 1.25rem; }
.legal-section li { margin-bottom: 0.35rem; }
.legal-summary {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--cream-alt);
  border-radius: 12px;
  border: 1px solid var(--sand);
}
.legal-summary__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.legal-summary ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.8;
  color: var(--text);
  font-size: 0.9375rem;
  list-style: disc;
}
.legal-contact { margin-top: 3rem; font-size: 0.875rem; color: var(--text-muted); }
.legal-contact a { color: var(--green-dark); }

/* Final CTA content must sit above the photograph and the blur circle */
.final-cta .container { position: relative; z-index: 1; }
.final-cta .eyebrow { color: var(--green); }
.final-cta h2 { max-width: 700px; margin-left: auto; margin-right: auto; }

/* Investor page: rules that were inline style props in the component */
.adv-note { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.95rem; }
.inv-lede { margin-top: 1rem; margin-bottom: 3rem; }
.revenue-stream__note { margin-top: 1rem; font-size: 0.82rem; }
.why-drivers-pay { margin-top: 3rem; }
.why-drivers-pay h3 { margin-bottom: 1.5rem; }
.econ-grid { margin-top: 2.5rem; align-items: start; }
.econ-note { margin-top: 2rem; color: var(--text-muted); font-size: 0.925rem; max-width: 700px; }
.moat-grid { margin-top: 3rem; align-items: start; }
.moat-heading { color: var(--cream); margin-bottom: 1.5rem; }
.fin-table { margin-top: 2.5rem; }
.fin-table__block { border-top: 1px solid var(--sand); }
.fin-note { max-width: 600px; }
.fin-stats {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--sand);
}
.expansion-grid { margin-top: 3rem; }
.card--pain-outline { border-color: var(--terracotta); }
.card__title-terracotta { color: var(--terracotta); margin-bottom: 1rem; }
.card__title-green { color: var(--green-dark); margin-bottom: 1rem; }
.card--good .card__title-green { margin-bottom: 1.25rem; }
.whynow-grid { margin-top: 2.5rem; }
.traction-grid { margin-top: 2.5rem; }
.traction-heading { margin-bottom: 1.5rem; }
.traction-grid .pain-item { margin-bottom: 0.85rem; }
.traction-grid .pain-item:last-child { margin-bottom: 0; }
.timeline { margin-top: clamp(3rem, 6vw, 5rem); }
.summary-list { margin-block: 2rem 0; }
.summary-cta { margin-top: 3rem; justify-content: center; }
.inv-hero .subtitle { margin-bottom: 2.5rem; }
.legal-section ul + p { margin-top: 0.85rem; }
