*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Anchor targets clear the pinned nav */
[id] {
  scroll-margin-top: 80px;
}

body {
  background: #efeeec;
  color: #2a2a2a;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2 {
  margin: 0;
  font-weight: 400;
}

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

/* All measurements are absolute positions on the 1200px design canvas. */
.page {
  position: relative;
  max-width: 1200px;
  height: 1333px;
  margin: 0 auto;
  overflow: hidden;
}

.blueprint {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.btn {
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
}

.mark-top {
  fill: none;
  stroke: #1a1612;
  stroke-width: 5;
}

.mark-base {
  fill: #e2711d;
}

/* 1. Nav */
/* Pinned to the top while scrolling; same spot as the design at scroll 0 */
.nav {
  position: fixed;
  top: 6px;
  left: 0;
  right: 0;
  width: min(1188px, calc(100% - 12px));
  margin: 0 auto;
  height: 56px;
  padding: 0 10px 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fafafa;
  border-radius: 10px;
  z-index: 10;
  transition: box-shadow 0.2s;
}

.nav.is-scrolled {
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 6px 20px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  flex: 1 1 0;
  display: flex;
  align-items: center;
}

.nav-logo svg {
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-actions {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.nav-link {
  position: relative;
  line-height: 56px;
  font-size: 14px;
  white-space: nowrap;
  color: #222;
  transition: color 0.15s;
}

.nav-links .nav-link:hover,
.nav-links .nav-link.is-active {
  color: #e2711d;
}

/* Small orange tick under the section currently on screen */
.nav-links .nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #e2711d;
}

.nav-trigger {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  line-height: 56px;
  letter-spacing: inherit;
  color: #222;
  cursor: pointer;
}

.nav-trigger .chevron {
  transition: transform 0.2s;
}

.nav-menu {
  position: relative;
}

.nav-menu.is-open .nav-trigger {
  color: #e2711d;
}

.nav-menu.is-open .chevron {
  transform: rotate(180deg);
  stroke: #e2711d;
}

/* Platform dropdown */
.nav-panel {
  position: absolute;
  top: 52px;
  left: -14px;
  width: 340px;
  padding: 6px;
  border: 1px solid #e6e5e2;
  border-radius: 10px;
  background: #fafafa;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.16s,
    transform 0.16s,
    visibility 0.16s;
}

.nav-menu.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 7px;
  transition: background 0.12s;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: #efeeec;
  outline: none;
}

.nav-item-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e6e5e2;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  line-height: 24px;
  text-align: center;
  color: #e2711d;
}

.nav-item strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #111;
}

.nav-item small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 17px;
  color: #7a7a7a;
}

.nav-panel-foot {
  display: block;
  margin-top: 4px;
  padding: 10px;
  border-top: 1px solid #e6e5e2;
  font-size: 13px;
  color: #222;
}

.nav-panel-foot:hover {
  color: #e2711d;
}

.chevron {
  margin-left: 3px;
  vertical-align: 1px;
  fill: none;
  stroke: #222;
  stroke-width: 0.9;
}

.nav-login:hover {
  color: #e2711d;
}

.nav-demo {
  flex: none;
  height: 38px;
  padding: 0 16px;
  text-align: center;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 14px;
  line-height: 38px;
  white-space: nowrap;
}

/* Phones: logo + actions only; the footer carries the rest of the links */
@media (max-width: 720px) {
  .nav {
    padding-left: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 16px;
  }
}

/* Fixed-px hero canvas: pin its width so zooming it down keeps the design layout */
.page {
  width: 1200px;
}

@media (max-width: 1199px) {
  .page {
    max-width: none;
  }
}

/* 2. Hero */
.hero {
  position: absolute;
  inset: 0 0 auto 0;
  height: 720px;
}

.connectors {
  position: absolute;
  left: 0;
  top: 0;
}

.connectors path {
  fill: none;
  stroke: #cfcecb;
  stroke-width: 1;
}

/*
 * Orange trail behind each truck (positioned per frame in main.js).
 * Three stacked dashes share one front edge, so the longer, fainter
 * ones read as a fading tail behind a bright core.
 */
.connectors .pulse path {
  stroke: #e2711d;
  stroke-linecap: round;
  stroke-dasharray: 0 100000;
}

.connectors .pulse .pulse-tail {
  stroke-width: 3;
  opacity: 0.18;
}

.connectors .pulse .pulse-mid {
  stroke-width: 1.5;
  opacity: 0.5;
}

.connectors .pulse .pulse-head {
  stroke-width: 1.5;
}

.connectors.truck-layer {
  pointer-events: none;
}

.connectors .truck {
  opacity: 0;
}

.connectors .truck .truck-body {
  fill: #111;
}

.connectors .truck .truck-cab {
  fill: #e2711d;
}

.connectors .truck .truck-window {
  fill: #efeeec;
}

.connectors .truck .truck-wheel {
  fill: #111;
  stroke: #efeeec;
  stroke-width: 1;
}

@media (prefers-reduced-motion: reduce) {
  .connectors .pulse,
  .connectors .truck {
    display: none;
  }
}

.connectors circle {
  fill: #111;
}

.connectors .dot-grey {
  fill: #777;
}

.pill {
  position: absolute;
  height: 18px;
  padding: 0 12px;
  border: 1px solid #9a9a9a;
  border-radius: 999px;
  background: #f4f3f1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: #222;
  text-align: center;
  white-space: nowrap;
}

.pill-faded {
  color: #bbb;
  border-color: #ddd;
}

.headline {
  margin: 0;
}

.matrix {
  position: absolute;
  overflow: visible;
}

.matrix rect {
  fill: #111;
}

.tile {
  position: absolute;
  left: 485px;
  top: 248px;
  width: 230px;
  height: 230px;
  border-radius: 36px;
  background: #e2e1de;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-inner {
  width: 184px;
  height: 184px;
  border-radius: 22px;
  background: #f2f1ef;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-inner svg {
  display: block;
}

.tagline {
  position: absolute;
  left: 0;
  right: 0;
  top: 602px;
  font-size: 14px;
  line-height: 20px;
  color: #7a7a7a;
  text-align: center;
}

.cta {
  position: absolute;
  left: 525px;
  top: 663px;
  width: 150px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 0 4px;
  border: 2px solid #0e0a0a;
  border-radius: 10px;
  background: #1c1515;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.cta-icon,
.signup-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon {
  background: linear-gradient(180deg, #ee8a3c, #e2711d);
}

.signup-icon {
  background: #000;
}

.dotgrid {
  display: grid;
  grid-template-columns: repeat(5, 2px);
  grid-auto-rows: 2px;
  gap: 2px;
}

.dotgrid i {
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
}

/* 3. Social proof */
.proof {
  position: absolute;
  left: 6px;
  top: 757px;
  width: 1188px;
  height: 206px;
  border-radius: 18px;
  background: #f8f8f7;
}

.proof-col {
  position: absolute;
  top: 38px;
  height: 130px;
}

.col-1 {
  left: 0;
  width: 319px;
}

.col-2 {
  left: 319px;
  width: 296px;
  border-left: 1px solid #e2e2e0;
}

.col-3 {
  left: 615px;
  width: 296px;
  border-left: 1px solid #e2e2e0;
}

.col-4 {
  left: 911px;
  width: 277px;
  border-left: 1px solid #e2e2e0;
}

.wordmark {
  position: absolute;
  color: #111;
  white-space: nowrap;
  letter-spacing: 0;
}

/* Column titles share one style and sit on the same row */
.wm-1,
.wm-2,
.wm-3 {
  top: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.wm-1 {
  left: 41px;
}

.wm-2,
.wm-3 {
  left: 16px;
}

.stat-label {
  position: absolute;
  left: 41px;
  top: 109px;
  font-size: 13px;
  line-height: 18px;
  color: #444;
  white-space: nowrap;
}

.col-3 .stat-label {
  left: 16px;
}

/* Bottom-aligned with the stat labels and the button in the other columns */
.quote {
  position: absolute;
  left: 16px;
  bottom: 1px;
  max-width: 255px;
  font-size: 13px;
  line-height: 22px;
  color: #444;
}

.connect {
  position: absolute;
  left: 16px;
  top: 0;
  width: 220px;
  font-size: 13.5px;
  line-height: 21px;
  color: #444;
}

.signup {
  position: absolute;
  left: 16px;
  top: 87px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 3px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #111;
}

/* 4. Introducing Sim-1 */
.sim-heading {
  position: absolute;
  left: 42px;
  top: 1089px;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.sim-heading .ink {
  color: #222;
}

.sim-heading .muted {
  color: #ababab;
}

.za-map-svg {
  position: absolute;
  left: 500px;
  top: 990px;
  width: 700px;
  height: 343px;
}

.za-map circle {
  fill: #cfcecb;
}

/* 5. Driver app walkthrough */
.showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 42px 96px;
}

.showcase-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.pill-static {
  position: static;
  display: inline-block;
  margin-bottom: 20px;
}

.section-heading {
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.01em;
}

.section-heading .ink {
  color: #222;
}

.section-heading .muted {
  color: #ababab;
}

.section-lede {
  margin-top: 20px;
  font-size: 15px;
  line-height: 24px;
  color: #6a6a6a;
}

/* Cropped feature snippets (never whole app screens) */
.snippets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.snippet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 28px;
  padding: 28px;
  border-radius: 18px;
  background: #f8f8f7;
}

.snippet-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e6e5e2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.snippet-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.step {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #e2711d;
}

.snippet h3 {
  margin: 6px 0 6px;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  color: #111;
}

.snippet p {
  font-size: 13.5px;
  line-height: 21px;
  color: #6a6a6a;
}

/* Platform page: a single row of snippet frames */
.snippets-row {
  grid-template-columns: repeat(4, 1fr);
}

/* 6. Request a demo */
.contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 42px 96px;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  border-radius: 18px;
  background: #f8f8f7;
}

.cta-static {
  position: static;
  flex: none;
}

/* Sub-pages (How it works, Contact): footer sits at the bottom of short pages */
.site-page {
  display: flex;
  flex-direction: column;
  /* vh isn't zoom-adjusted, so divide out the site zoom set in site.js */
  min-height: calc(100vh / var(--site-zoom, 1));
}

.site-page .subpage {
  flex: 1 0 auto;
  width: 100%;
}

/* Centred blocks would otherwise shrink to their content inside the flex column */
.site-page .contact {
  width: 100%;
}

.subpage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 130px 42px 96px;
}

/* Legal pages (privacy policy, account deletion) */
.legal {
  max-width: 720px;
  font-size: 15px;
  line-height: 24px;
  color: #4a4a4a;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #222;
}

.legal p,
.legal ul,
.legal ol {
  margin: 0 0 14px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal strong {
  font-weight: 500;
  color: #222;
}

.legal a {
  color: #e2711d;
  font-weight: 500;
}

.legal a:hover {
  text-decoration: underline;
}

.legal-updated {
  margin-top: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #8a8a8a;
}

/* How it works */
.flow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid #e2e1de;
}

.flow-text {
  max-width: 480px;
}

.flow-text .step {
  margin-right: 10px;
}

.who {
  display: inline-block;
  height: 18px;
  padding: 0 10px;
  border: 1px solid #9a9a9a;
  border-radius: 999px;
  background: #f4f3f1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: #222;
}

.flow-text h2 {
  margin: 14px 0 10px;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -0.01em;
  color: #222;
}

.flow-text p {
  font-size: 15px;
  line-height: 24px;
  color: #6a6a6a;
}

.flow-text ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.flow-text li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 24px;
  color: #444;
}

.flow-text li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e2711d;
}

.flow-snippet {
  justify-self: center;
  width: 100%;
  max-width: 380px;
}

.flow-step-text {
  grid-template-columns: 1fr;
}

.flow-card {
  padding: 8px 22px;
  border-radius: 18px;
  background: #f8f8f7;
}

.rate-row,
.formula-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e2e2e0;
  font-size: 13px;
  color: #444;
}

.rate-row:last-child,
.formula-row:last-child {
  border-bottom: 0;
}

.rate-row span:first-child,
.formula-row span:first-child {
  font-weight: 500;
  color: #111;
}

.tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: #e2711d;
}

.formula-row {
  grid-template-columns: 110px 1fr;
}

.formula-row span:last-child {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #444;
}

.formula-row.total span:last-child {
  color: #e2711d;
}

/* Platform pages */
.platform-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.platform-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.text-link {
  font-size: 13px;
  font-weight: 500;
  color: #222;
}

.text-link:hover {
  color: #e2711d;
}

.platform-screens {
  margin-bottom: 64px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 26px 26px 28px;
  border-radius: 18px;
  background: #f8f8f7;
}

.feature h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  color: #111;
}

.feature p {
  font-size: 13.5px;
  line-height: 21px;
  color: #6a6a6a;
}

.feature ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.feature li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 20px;
  color: #444;
}

.feature li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e2711d;
}

.spec-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid #e2e1de;
}

.spec-title,
.more-title {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.01em;
  color: #222;
}

.spec-note {
  grid-column: 2;
  font-size: 12.5px;
  color: #7a7a7a;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips .who {
  height: 26px;
  padding: 0 14px;
  font-size: 11px;
  line-height: 24px;
}

.platform-more {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #e2e1de;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.more-card {
  position: relative;
  display: block;
  padding: 22px 22px 46px;
  border: 1px solid #e2e1de;
  border-radius: 14px;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.more-card:hover {
  border-color: #e2711d;
  background: #f8f8f7;
}

.more-card strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #111;
}

.more-card small {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 18px;
  color: #7a7a7a;
}

.more-card span {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: #e2711d;
}

.nav-item[aria-current='page'] strong {
  color: #e2711d;
}

@media (max-width: 900px) {
  .features,
  .more-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spec-panel {
    grid-template-columns: 1fr;
  }

  .spec-note {
    grid-column: auto;
  }
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 80px;
  align-items: start;
}

.next-steps {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.next-steps li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #e2e1de;
  font-size: 14px;
  line-height: 20px;
  color: #444;
}

.next-steps .step {
  line-height: 20px;
}

.contact-direct {
  margin-top: 28px;
  font-size: 13px;
  color: #6a6a6a;
}

.contact-direct a {
  color: #e2711d;
  font-weight: 500;
}

.contact-direct a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 36px;
  border-radius: 18px;
  background: #f8f8f7;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
  font-size: 12.5px;
  color: #444;
}

.field em {
  font-style: normal;
  color: #e2711d;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #111;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.field input,
.field select {
  height: 42px;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #e2711d;
  box-shadow: 0 0 0 3px rgba(226, 113, 29, 0.15);
}

.was-validated .field :invalid {
  border-color: #d64532;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}

.form-foot .cta {
  cursor: pointer;
  font-family: inherit;
  letter-spacing: inherit;
}

.form-foot .cta:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  font-size: 13px;
  line-height: 18px;
  color: #6a6a6a;
}

.form-status.is-success {
  color: #22892f;
}

.form-status.is-error {
  color: #d64532;
}

@media (max-width: 900px) {
  .flow-step,
  .contact-layout,
  .field-row {
    grid-template-columns: 1fr;
  }

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

/* 7. Footer */
.footer {
  margin-top: 24px;
  border-top: 1px solid #e2e1de;
}

.footer-top,
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 42px;
  padding-right: 42px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 56px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #111;
}

.footer-brand svg {
  display: block;
}

.footer-about p {
  max-width: 300px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 20px;
  color: #6a6a6a;
}

.footer-cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #e2711d;
}

.footer-cta:hover {
  text-decoration: underline;
}

.footer-col h3 {
  margin: 4px 0 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  font-size: 13px;
  color: #444;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #e2711d;
}

.ext {
  font-size: 11px;
  color: #9a9a9a;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid #e2e1de;
  padding-top: 28px;
  padding-bottom: 32px;
  font-size: 12.5px;
  color: #7a7a7a;
}

.footer-credit {
  margin-right: auto;
}

.footer-credit a {
  color: #e2711d;
  font-weight: 500;
}

.footer-credit a:hover,
.footer-top-link:hover {
  text-decoration: underline;
}

.footer-top-link {
  color: #444;
}

@media (max-width: 900px) {
  .snippets,
  .snippets-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .snippet {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }
}

/* ---------------- Phone layout ----------------
 * The hero, proof and intro sections are an absolutely-positioned 1200px canvas.
 * On phones that canvas would shrink to ~30%, so instead it becomes a stacked,
 * flowing layout. Canvas-only decoration (blueprint grid, connector lines,
 * trucks) is hidden; main.js skips canvas positioning at this width.
 */
@media (max-width: 720px) {
  .page {
    width: auto;
    height: auto;
    overflow: visible;
  }

  .blueprint,
  .connectors {
    display: none;
  }

  /* Hero: tile, headline, tagline, CTA, then the feature pills as chips */
  .hero {
    position: static;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 100px 16px 56px;
  }

  .hero .pill {
    position: static;
    order: 5;
    height: 24px;
    line-height: 22px;
    font-size: 11px;
  }

  .tile {
    position: static;
    order: 1;
    flex: 0 0 150px;
    height: 150px;
    margin: 0 calc(50% - 75px) 20px;
    border-radius: 28px;
  }

  .tile-inner {
    width: 120px;
    height: 120px;
    border-radius: 18px;
  }

  .tile-inner svg {
    width: 40px;
    height: 66px;
  }

  .headline {
    order: 2;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .headline .matrix {
    position: static;
    width: auto;
    height: 32px;
  }

  .tagline {
    position: static;
    order: 3;
    flex: 0 0 100%;
    margin-top: 20px;
    font-size: 15px;
    line-height: 22px;
  }

  .hero .cta {
    position: static;
    order: 4;
    margin: 16px calc(50% - 75px) 24px;
  }

  /* Proof points: stacked cards */
  .proof {
    position: static;
    width: auto;
    height: auto;
    margin: 0 12px;
    padding: 4px 20px;
  }

  .proof-col {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 0;
    border-left: 0;
  }

  .proof-col + .proof-col {
    border-top: 1px solid #e2e2e0;
  }

  .proof .wordmark,
  .proof .stat-label,
  .proof .quote,
  .proof .connect,
  .proof .signup,
  .proof .matrix {
    position: static;
  }

  .proof .matrix {
    width: auto;
    height: 30px;
  }

  .proof .stat-label {
    white-space: normal;
  }

  .proof .quote,
  .proof .connect {
    max-width: none;
    width: auto;
  }

  /* Intro heading + map */
  .sim {
    padding: 72px 24px 0;
  }

  .sim-heading {
    position: static;
    font-size: 28px;
    line-height: 34px;
    white-space: normal;
  }

  .za-map-svg {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    margin-top: 16px;
  }

  /* Flowing sections: tighter gutters and heading size to match */
  .showcase {
    padding: 72px 24px 64px;
  }

  .showcase-head {
    margin-bottom: 36px;
  }

  .snippets {
    grid-template-columns: 1fr;
  }

  .snippet {
    padding: 20px;
  }

  .section-heading {
    font-size: 28px;
    line-height: 34px;
  }

  .contact {
    padding: 0 12px 64px;
  }

  .contact-inner {
    padding: 28px 24px;
  }

  .subpage {
    padding: 100px 24px 64px;
  }

  .footer-top,
  .footer-bottom {
    padding-left: 24px;
    padding-right: 24px;
  }
}
