/*
 * Design tokens from the Routific Website Figma file (variables on node 7166:92349).
 * Code components render inside Shadow DOM, so tokens are declared on :host as well as :root
 * (:root covers the local preview and Webflow's own page; :host covers the shadow tree).
 */
:host,
:host {
  /* Brand */
  --rt-indigo-100: #374cd2;
  --rt-indigo-200: #667afa;
  --rt-yellow-200: #ffad0a;
  --rt-yellow-border: #b97b01;
  --rt-turquoise: #45c4d7;
  --rt-primary-500: #326bfc;
  --rt-primary-600: #1750e3;
  --rt-hero-blue: #1f36a7;
  --rt-hero-lilac: #eceefb;

  /* Text */
  --rt-text-primary: #282828;
  --rt-text-secondary: #676d7e;
  --rt-text-tertiary: #9da1af;

  /* Route colours */
  --rt-route-violet: #7547bf;
  --rt-route-pink: #ff85a9;
  --rt-route-sky: #269ed1;
  --rt-route-lilac: #a770db;

  /* Type — Proxima Nova is expected to be loaded by the Webflow site (Adobe Fonts);
     Plus Jakarta Sans and Figtree are loaded from Google Fonts by useDocumentFonts(). */
  --rt-font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --rt-font-heading: "Figtree", system-ui, sans-serif;
  --rt-font-body: "proxima-nova", "Proxima Nova", "Figtree", system-ui, sans-serif;
  --rt-font-ui: "SF Pro Text", -apple-system, "Inter", system-ui, sans-serif;

  /* Radii */
  --rt-radius-md: 8px;
  --rt-radius-lg: 16px;

  /* Vector map (Hero/showcase/MapBase.tsx): Mapbox-light look of the current Routific UI */
  --map-land: #edeff3;
  --map-street: #fcfdfe;
  --map-park: #d3e9d1;
  --map-water: #b3caf3;
  --map-industrial: #f2e4c6;
  --map-highway: #aab3c7;
  --map-highway-edge: #fcfdfe;
}

/* ---------------------------------------------------------------------------
 * Footer (Figma instance 7166:88303): 1440 wide, 160px side padding, 59px top/bottom
 * ------------------------------------------------------------------------- */
.rt-ft {
  border-top: 1px solid #e5e9ff;
  background: #fff;
  font-family: var(--rt-font-body);
  color: var(--rt-text-primary);
  -webkit-font-smoothing: antialiased;
}

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

.rt-ft-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  max-width: calc(1120px + 2 * 24px);
  margin: 0 auto;
  padding: 59px 24px;
}

.rt-ft a {
  text-decoration: none;
  color: inherit;
}

.rt-ft a:focus-visible {
  outline: 2px solid var(--rt-primary-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.rt-ft-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

/* ---- Brand column: logo top, Techstars bottom ---- */
.rt-ft-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  gap: 32px;
}

.rt-ft-logo {
  display: flex;
  align-items: center;
  width: 148px;
  height: 48px;
  padding: 8px 0;
}

.rt-ft-logo img {
  display: block;
}

.rt-ft-logo img + img {
  margin-left: 5.8px;
  height: 26.969px;
  width: auto;
}

.rt-ft-techstars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rt-ft-techstars p {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--rt-text-secondary);
}

.rt-ft-techstars img {
  display: block;
}

/* ---- Link columns ---- */
.rt-ft-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 150px;
}

.rt-ft-title {
  margin: 0;
  padding: 4px 0;
  border-bottom: 1px solid #e9e9ed;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: var(--rt-text-tertiary);
}

.rt-ft-col ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt-ft-col a {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
  transition: color 160ms ease;
}

.rt-ft-col a:hover {
  color: var(--rt-indigo-100);
}

/* ---- Bottom bar ---- */
.rt-ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rt-ft-social {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt-ft-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e5e9ff;
  border-radius: 32px;
  background: #fff;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.rt-ft-social a:hover {
  border-color: var(--rt-indigo-100);
  background: #f3f5ff;
}

.rt-ft-social img {
  display: block;
}

.rt-ft-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  line-height: 16px;
  color: var(--rt-text-secondary);
}

.rt-ft-legal a:hover {
  color: var(--rt-indigo-100);
}

/* ---- Responsive (Figma only has 1440) ---- */
@media (max-width: 991px) {
  .rt-ft-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 24px;
  }
  .rt-ft-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-end;
  }
  .rt-ft-col {
    width: auto;
  }
  .rt-ft-col a {
    white-space: normal;
  }
}

@media (max-width: 599px) {
  .rt-ft-inner {
    gap: 40px;
    padding: 48px 16px;
  }
  .rt-ft-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rt-ft-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .rt-ft-col ul {
    gap: 16px;
  }
  .rt-ft-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

