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

/* Ultimate Guide promo (not in Figma): lavender card, illustration left, copy right */
.rt-gp {
  padding: 96px 24px;
  background: #fff;
  font-family: var(--rt-font-body);
  color: var(--rt-text-primary);
  -webkit-font-smoothing: antialiased;
}
.rt-gp--clear {
  background: transparent;
}
.rt-gp *,
.rt-gp *::before,
.rt-gp *::after {
  box-sizing: border-box;
}

.rt-gp-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 56px;
  border: 1px solid #e0e5ff;
  border-radius: 28px;
  background:
    radial-gradient(520px 320px at 18% 50%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, #eef0ff 0%, #f6f7ff 100%);
}

.rt-gp-art > img,
.rt-gp-stage {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.rt-gp-art img {
  display: block;
  width: 100%;
  height: auto;
}
.rt-gp-stage {
  position: relative;
}
.rt-gp-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.rt-gp-routes polyline {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.rt-gp-routes .is-a {
  stroke: #ff7f52;
}
.rt-gp-routes .is-b {
  stroke: #45c4d7;
}
.rt-gp-routes .is-c {
  stroke: #667afa;
}
.rt-gp-stage .rt-gp-layer {
  position: absolute;
  height: auto;
}

.rt-gp-eyebrow {
  margin: 0 0 12px;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt-indigo-100);
}

.rt-gp-h2 {
  margin: 0;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.rt-gp-text {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--rt-text-secondary);
  text-wrap: pretty;
}

.rt-gp-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.rt-gp-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--rt-font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}
.rt-gp-n {
  flex: none;
  min-width: 1.6em;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: var(--rt-indigo-200);
}

.rt-gp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 26px;
  border-radius: var(--rt-radius-lg);
  background: var(--rt-indigo-100);
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.rt-gp-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}
.rt-gp-btn:hover {
  transform: translateY(-1px);
  background: #2e40b8;
  box-shadow: 0 6px 16px rgba(31, 54, 167, 0.22);
}
.rt-gp-btn:hover svg {
  transform: translateX(2px);
}
.rt-gp-btn:focus-visible {
  outline: 2px solid var(--rt-primary-500);
  outline-offset: 3px;
}

@media (max-width: 899px) {
  .rt-gp {
    padding: 72px 24px;
  }
  .rt-gp-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 32px 40px;
  }
  .rt-gp-art img {
    max-width: 400px;
  }
}
@media (max-width: 599px) {
  .rt-gp {
    padding: 56px 16px;
  }
  .rt-gp-card {
    padding: 28px 20px 32px;
    border-radius: 22px;
  }
  .rt-gp-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .rt-gp-btn {
    width: 100%;
    justify-content: center;
  }
}
/* the robots: the drone hovers with its propeller spinning, the little robot tilts its head */
.rt-gp--animate .rt-gp-drone {
  animation: rt-gp-hover 3.2s ease-in-out infinite;
}
.rt-gp--animate .rt-gp-prop {
  animation:
    rt-gp-hover 3.2s ease-in-out infinite,
    rt-gp-spin 0.18s linear infinite alternate;
}
.rt-gp--animate .rt-gp-head {
  transform-origin: 50% 92%;
  animation: rt-gp-tilt 5s ease-in-out infinite;
}
/* routes draw in one after another, hold, then fade and start over */
.rt-gp--animate .rt-gp-routes polyline {
  stroke-dasharray: 1;
  animation: rt-gp-route 9s ease-in-out infinite both;
}
.rt-gp--animate .rt-gp-routes .is-b {
  animation-delay: 0.9s;
}
.rt-gp--animate .rt-gp-routes .is-c {
  animation-delay: 1.8s;
}
@keyframes rt-gp-route {
  0% {
    stroke-dashoffset: 1;
    opacity: 0.9;
  }
  22%,
  80% {
    stroke-dashoffset: 0;
    opacity: 0.9;
  }
  92%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes rt-gp-hover {
  50% {
    translate: 0 -4%;
  }
}
@keyframes rt-gp-spin {
  to {
    scale: 0.78 1;
  }
}
@keyframes rt-gp-tilt {
  0%,
  100% {
    rotate: 0deg;
  }
  20%,
  35% {
    rotate: -6deg;
  }
  55%,
  70% {
    rotate: 4deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-gp--animate .rt-gp-layer,
  .rt-gp--animate .rt-gp-routes polyline {
    animation: none;
  }
  .rt-gp-btn,
  .rt-gp-btn svg {
    transition: none;
  }
}

