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

/* ---------------------------------------------------------------------------
 * Integrations page, hero + value props (not in Figma: flag for design review)
 * ------------------------------------------------------------------------- */
.rt-ih2 {
  padding: var(--pad-top, 160px) 24px 40px;
  background: linear-gradient(to bottom, #fff 0, var(--rt-hero-lilac) 720px, var(--rt-hero-lilac) 100%);
  font-family: var(--rt-font-body);
  color: var(--rt-text-primary);
  -webkit-font-smoothing: antialiased;
}
.rt-ih2 *,
.rt-ih2 *::before,
.rt-ih2 *::after {
  box-sizing: border-box;
}

/* ---- Hero ---- */
.rt-ih2-hero {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.rt-ih2-eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e3e8ff;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rt-indigo-100);
}
.rt-ih2-h1 {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(2.375rem, 1.3rem + 3vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.rt-ih2-sub {
  max-width: 640px;
  margin: 18px auto 0;
  font-family: var(--rt-font-heading);
  font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: #3c4152;
  text-wrap: pretty;
}
.rt-ih2-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
/* the homepage hero's buttons */
.rt-ih2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border: 1.5px solid transparent;
  border-radius: var(--rt-radius-lg);
  font-family: var(--rt-font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.rt-ih2-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 54, 167, 0.18);
}
.rt-ih2-btn:focus-visible {
  outline: 2px solid var(--rt-primary-500);
  outline-offset: 3px;
}
.rt-ih2-btn-primary {
  background: var(--rt-yellow-200);
  border-color: var(--rt-yellow-border);
  color: var(--rt-text-primary);
}
.rt-ih2-btn-secondary {
  border-color: var(--rt-indigo-100);
  color: var(--rt-indigo-100);
}
.rt-ih2-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.7);
}
.rt-ih2-hero-art {
  max-width: 900px;
  margin: 48px auto 0;
}
.rt-ih2-hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Value props: illustration and copy side by side, alternating ---- */
.rt-ih2-rows {
  display: flex;
  flex-direction: column;
  gap: 104px;
  max-width: 1180px;
  margin: 120px auto 0;
  padding: 0 0 96px;
  list-style: none;
}
.rt-ih2-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}
.rt-ih2-row.is-flip .rt-ih2-art {
  order: 2;
}
.rt-ih2-art {
  position: relative;
  display: grid;
  place-items: center;
}
/* the soft hexagon behind each cartoon (as on the old page, but lighter) */
.rt-ih2-blob {
  position: absolute;
  inset: 4% 6%;
  border-radius: 48px;
  background: #e1e5fd;
  clip-path: polygon(25% 2%, 75% 2%, 100% 50%, 75% 98%, 25% 98%, 0% 50%);
  transform: rotate(-8deg);
}
.rt-ih2-row.is-flip .rt-ih2-blob {
  transform: rotate(8deg);
}
.rt-ih2-art img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
}
.rt-ih2-copy h2 {
  margin: 0;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 1.2rem + 1.8vw, 2.75rem);
  line-height: 1.15;
  text-wrap: balance;
}
.rt-ih2-copy > p {
  margin: 16px 0 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
  color: #3c4152;
  text-wrap: pretty;
}
.rt-ih2-copy > p.rt-ih2-note {
  margin-top: 14px;
  font-family: var(--rt-font-heading);
  font-size: 15.5px;
  color: var(--rt-text-secondary);
}
.rt-ih2-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.rt-ih2-bullets li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.5;
  color: #3c4152;
}
.rt-ih2-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e3e8ff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M6 10.5L8.7 13L14 7.5%27 fill=%27none%27 stroke=%27%23374cd2%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / 16px no-repeat;
}
.rt-ih2-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--rt-indigo-100);
  text-decoration: none;
}
.rt-ih2-more svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}
.rt-ih2-more:hover svg {
  transform: translateX(3px);
}
.rt-ih2-more:focus-visible {
  outline: 2px solid var(--rt-primary-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Motion: base styles are the final state ---- */
@keyframes rt-ih2-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.rt-ih2-animate .rt-ih2-hero > * {
  animation: rt-ih2-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rt-ih2-animate .rt-ih2-h1 { animation-delay: 60ms; }
.rt-ih2-animate .rt-ih2-sub { animation-delay: 120ms; }
.rt-ih2-animate .rt-ih2-ctas { animation-delay: 180ms; }
.rt-ih2-animate .rt-ih2-hero-art { animation-delay: 260ms; }

/* ---- Tablet / phone (layouts not in Figma) ---- */
@media (max-width: 899px) {
  .rt-ih2-rows {
    gap: 72px;
    margin-top: 88px;
  }
  .rt-ih2-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .rt-ih2-row.is-flip .rt-ih2-art {
    order: 0;
  }
  .rt-ih2-art img {
    max-width: 480px;
  }
}
@media (max-width: 599px) {
  .rt-ih2 {
    padding: calc(var(--pad-top, 160px) - 40px) 16px 24px;
  }
  .rt-ih2-btn {
    flex: 1 1 100%;
  }
  .rt-ih2-hero-art {
    margin-top: 36px;
  }
  .rt-ih2-rows {
    padding-bottom: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rt-ih2 * {
    animation: none !important;
    transition: none !important;
  }
}

