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

/* ---------------------------------------------------------------------------
 * The Routific logo (About us). Not in Figma: flag for design review.
 * ------------------------------------------------------------------------- */
.rt-al {
  padding: 120px 24px 128px;
  font-family: var(--rt-font-body);
  color: var(--rt-text-primary);
  -webkit-font-smoothing: antialiased;
}
.rt-al *,
.rt-al *::before,
.rt-al *::after {
  box-sizing: border-box;
}
.rt-al-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 72px;
  max-width: 1180px;
  margin: 0 auto;
}
.rt-al-mark {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  border-radius: 48px;
  background: radial-gradient(closest-side, #e7ebff, rgba(231, 235, 255, 0));
}
.rt-al-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.rt-al-petal,
.rt-al-wing {
  transition: opacity 260ms ease, filter 260ms ease;
}
/* hexagon outlines (the hive), only shown while "Hive" is hot */
.rt-al-hex path {
  fill: none;
  stroke: var(--rt-indigo-100);
  stroke-width: 3;
  stroke-dasharray: 8 6;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.12);
  transition: opacity 260ms ease;
}
.rt-al.is-hive .rt-al-hex path {
  opacity: 0.8;
}
.rt-al.is-hive .rt-al-petal,
.rt-al.is-hive .rt-al-wing {
  opacity: 0.35;
}
.rt-al.is-bee .rt-al-petal {
  opacity: 0.25;
}
.rt-al.is-bee .rt-al-wing {
  filter: drop-shadow(0 0 10px rgba(102, 122, 250, 0.9));
}
.rt-al.is-flower .rt-al-wing {
  opacity: 0.15;
}
.rt-al.is-flower .rt-al-petal {
  filter: drop-shadow(0 6px 10px rgba(31, 54, 167, 0.25));
}

.rt-al-h2 {
  margin: 0;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
  line-height: 1.2;
}
.rt-al-intro {
  margin: 14px 0 0;
  font-family: var(--rt-font-heading);
  font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: #3c4152;
}
.rt-al-ideas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.rt-al-idea {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #e7eaf6;
  border-radius: 20px;
  background: #fff;
  cursor: default;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.rt-al-idea:focus-visible {
  outline: 2px solid var(--rt-primary-500);
  outline-offset: 3px;
}
.rt-al-idea.is-hot {
  border-color: #cfd6fb;
  box-shadow: 0 14px 30px rgba(31, 54, 167, 0.1);
  transform: translateX(4px);
}
.rt-al-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #eef1ff;
  color: var(--rt-indigo-100);
}
.rt-al-idea.is-hot .rt-al-icon {
  background: var(--rt-indigo-100);
}
.rt-al-icon img {
  display: block;
  width: 46px;
  height: 36px;
  transition: filter 200ms ease;
}
.rt-al-idea.is-hot .rt-al-icon img {
  filter: brightness(0) invert(1);
}
.rt-al-idea h3 {
  margin: 2px 0 0;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 18px;
}
.rt-al-idea p {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--rt-text-secondary);
  text-wrap: pretty;
}

/* ---- Assembly (base styles are the final state) ---- */
.rt-al-animate .rt-al-petal {
  opacity: 0;
  transform: translate(var(--from)) rotate(-12deg);
  transform-box: fill-box;
  transform-origin: center;
}
.rt-al-animate .rt-al-wing {
  opacity: 0;
}
.rt-al-animate.is-seen .rt-al-petal {
  animation: rt-al-in 800ms calc(var(--i) * 110ms) cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
.rt-al-animate.is-seen .rt-al-wing {
  animation: rt-al-fade 600ms calc(600ms + var(--i) * 80ms) ease forwards;
}
@keyframes rt-al-in {
  to { opacity: 1; transform: none; }
}
@keyframes rt-al-fade {
  to { opacity: 1; }
}
/* once assembled, the hover dimming applies on top */
.rt-al-animate.is-seen.is-bee .rt-al-petal,
.rt-al-animate.is-seen.is-hive .rt-al-petal { animation: none; opacity: 0.3; transform: none; }
.rt-al-animate.is-seen.is-flower .rt-al-wing,
.rt-al-animate.is-seen.is-hive .rt-al-wing { animation: none; opacity: 0.2; }
.rt-al-animate.is-seen.is-bee .rt-al-wing,
.rt-al-animate.is-seen.is-flower .rt-al-petal { animation: none; opacity: 1; transform: none; }

@media (max-width: 899px) {
  .rt-al {
    padding: 88px 16px 96px;
  }
  .rt-al-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .rt-al-mark {
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-al * {
    animation: none !important;
    transition: none !important;
  }
  .rt-al-animate .rt-al-petal,
  .rt-al-animate .rt-al-wing {
    opacity: 1;
    transform: none;
  }
}

