/*
 * 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;
}

/* ---------------------------------------------------------------------------
 * Industry FAQ (not in Figma: homepage design language, flag for design review)
 * ------------------------------------------------------------------------- */
.rt-fq {
  padding: 128px 24px;
  background: #fff;
  font-family: var(--rt-font-body);
  color: var(--rt-text-primary);
  -webkit-font-smoothing: antialiased;
}

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

.rt-fq-inner {
  max-width: 880px;
  margin: 0 auto;
}

.rt-fq-h2 {
  margin: 0 0 48px;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
  line-height: 1.2;
  text-align: center;
}

.rt-fq-list {
  border-top: 1px solid #e3e6f3;
}

.rt-fq-item {
  border-bottom: 1px solid #e3e6f3;
}

.rt-fq-q {
  margin: 0;
}

.rt-fq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 4px;
  border: 0;
  background: none;
  font: inherit;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  line-height: 1.4;
  color: var(--rt-text-primary);
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease;
}
.rt-fq-toggle:hover,
.rt-fq-item.is-open .rt-fq-toggle {
  color: #2435a1;
}
/* On the published site a TextNode is a slotted span; let clicks reach the button */
.rt-fq-toggle ::slotted(*) {
  pointer-events: none;
}
.rt-fq-toggle:focus-visible {
  outline: 2px solid var(--rt-primary-500);
  outline-offset: 2px;
  border-radius: 6px;
}

.rt-fq-icon {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 50%;
  background: #eef0fd;
  color: var(--rt-indigo-100);
  transition: background-color 200ms ease, color 200ms ease;
}
.rt-fq-v {
  transform-origin: 12px 12px;
  transition: transform 220ms ease;
}
.rt-fq-item.is-open .rt-fq-icon {
  background: var(--rt-indigo-100);
  color: #fff;
}
.rt-fq-item.is-open .rt-fq-v {
  transform: rotate(90deg);
}

.rt-fq-a {
  padding: 0 64px 28px 4px;
}
.rt-fq-a p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #3c4152;
  text-wrap: pretty;
}

.rt-fq-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--rt-indigo-100);
  text-decoration: none;
}
.rt-fq-link:hover {
  text-decoration: underline;
}

@media (max-width: 599px) {
  .rt-fq {
    padding: 96px 16px;
  }
  .rt-fq-h2 {
    margin-bottom: 32px;
  }
  .rt-fq-toggle {
    padding: 20px 0;
  }
  .rt-fq-a {
    padding: 0 0 22px;
  }
  .rt-fq-a p {
    font-size: 16px;
  }
}


/* ---- Dark theme (dark pages such as the Shopify app) ---- */
.rt-fq--dark {
  background: #131b52;
  color: #fff;
}
.rt-fq--dark .rt-fq-list,
.rt-fq--dark .rt-fq-item {
  border-color: rgba(143, 160, 255, 0.24);
}
.rt-fq--dark .rt-fq-toggle {
  color: #fff;
}
.rt-fq--dark .rt-fq-toggle:hover,
.rt-fq--dark .rt-fq-item.is-open .rt-fq-toggle {
  color: var(--rt-yellow-200);
}
.rt-fq--dark .rt-fq-icon {
  background: rgba(143, 160, 255, 0.16);
  color: #fff;
}
.rt-fq--dark .rt-fq-item.is-open .rt-fq-icon {
  background: var(--rt-yellow-200);
  color: var(--rt-text-primary);
}
.rt-fq--dark .rt-fq-a p {
  color: #d6dcff;
}
.rt-fq--dark .rt-fq-link {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .rt-fq * {
    transition: none !important;
  }
}

