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

/* ---------------------------------------------------------------------------
 * Shopify app page (not in Figma: homepage design language, flag for design review).
 * Dark hero (use the Navbar's Dark theme above it), light body.
 * ------------------------------------------------------------------------- */
.rt-sh {
  font-family: var(--rt-font-body);
  color: var(--rt-text-primary);
  -webkit-font-smoothing: antialiased;
}
.rt-sh *,
.rt-sh *::before,
.rt-sh *::after {
  box-sizing: border-box;
}

/* ---- Hero ---- */
.rt-sh-hero {
  position: relative;
  overflow: hidden;
  padding: var(--pad-top, 170px) 24px 112px;
  background:
    radial-gradient(900px 480px at 78% 30%, rgba(102, 122, 250, 0.22), rgba(102, 122, 250, 0) 70%),
    linear-gradient(to bottom, #0f1546 0%, #131b52 100%);
  color: #fff;
}
.rt-sh-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  max-width: 1232px;
  margin: 0 auto;
}
.rt-sh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid rgba(143, 160, 255, 0.35);
  border-radius: 999px;
  background: rgba(102, 122, 250, 0.14);
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #c7cffd;
}
.rt-sh-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #95bf47; /* Shopify green */
}
.rt-sh-h1 {
  max-width: 640px;
  margin: 0;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(2.375rem, 1.3rem + 2.8vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.rt-sh-h1 em {
  font-style: normal;
  color: var(--rt-yellow-200);
}
.rt-sh-sub {
  max-width: 560px;
  margin: 20px 0 0;
  font-family: var(--rt-font-heading);
  font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: #d6dcff;
  text-wrap: pretty;
}
.rt-sh-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.rt-sh-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-sh-btn:hover {
  transform: translateY(-1px);
}
.rt-sh-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.rt-sh-btn-primary {
  background: var(--rt-yellow-200);
  border-color: var(--rt-yellow-border);
  color: var(--rt-text-primary);
}
.rt-sh-btn-primary:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.rt-sh-btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.rt-sh-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.rt-sh-hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Bands: every part of the page on its own full-width band, alternating navy shades ---- */
.rt-sh {
  --navy: #131b52;
  --navy-alt: #192263;
  --ink: #fff;
  --muted: #c7cffd;
  --line: rgba(143, 160, 255, 0.24);
  background: var(--navy);
  color: var(--ink);
}
.rt-sh-band {
  padding: 112px 24px;
  background: var(--navy);
}
.rt-sh-band--alt {
  background: var(--navy-alt);
}
.rt-sh-quotes-band {
  padding-block: 72px;
}
.rt-sh-hero-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  max-width: 1136px;
  margin: 0 auto;
}

/* ---- Quotes ----
 * Glass cards on the navy: yellow quote mark + stars, the words, then an initials avatar
 * with name and company. The two after the steps are larger, centred, with a soft glow. */
.rt-sh-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 36px 36px 32px;
  border: 1px solid rgba(143, 160, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(143, 160, 255, 0.14), rgba(143, 160, 255, 0.04) 60%);
  box-shadow: 0 24px 60px -28px rgba(4, 8, 40, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.rt-sh-quote:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 196, 0, 0.45);
}
.rt-sh-quote-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rt-sh-qmark {
  width: 36px;
  height: 27px;
  color: var(--rt-yellow-200);
}
.rt-sh-stars {
  display: block;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--rt-yellow-200);
}
.rt-sh-quote blockquote {
  flex: 1;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
  text-wrap: pretty;
}
.rt-sh-quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(143, 160, 255, 0.18);
  font-family: var(--rt-font-heading);
}
.rt-sh-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8fa0ff, #5a6cf0);
  box-shadow: 0 0 0 2px var(--rt-yellow-200);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}
.rt-sh-avatar.is-photo {
  object-fit: cover;
  background: #8fa0ff;
}
/* company logo, white whatever its colours, at the end of the caption */
.rt-sh-qlogo {
  display: block;
  flex: none;
  margin-left: auto;
  border-radius: 6px;
}
.rt-sh-qlogo img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 150px;
  object-fit: contain;
  object-position: right center;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
a.rt-sh-qlogo:hover img {
  opacity: 1;
}
a.rt-sh-qlogo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.rt-sh-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}
.rt-sh-who strong {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.rt-sh-band--quote {
  position: relative;
  overflow: hidden;
  padding-block: 104px;
}
.rt-sh-band--quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 320px at 50% 50%, rgba(102, 122, 250, 0.28), rgba(102, 122, 250, 0) 70%);
  pointer-events: none;
}
.rt-sh-quote.is-big {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 64px 48px;
  align-items: center;
  text-align: center;
}
.rt-sh-quote.is-big:hover {
  transform: none;
}
.rt-sh-quote.is-big .rt-sh-quote-top {
  flex-direction: column;
  gap: 14px;
}
.rt-sh-quote.is-big .rt-sh-qmark {
  width: 48px;
  height: 36px;
}
.rt-sh-quote.is-big blockquote {
  margin-top: 26px;
  font-family: var(--rt-font-display);
  font-size: clamp(1.3125rem, 1rem + 0.9vw, 1.875rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.rt-sh-quote.is-big .rt-sh-qlogo {
  margin-left: 12px;
  padding-left: 24px;
  border-left: 1px solid rgba(143, 160, 255, 0.3);
  border-radius: 0;
}
.rt-sh-quote.is-big .rt-sh-qlogo img {
  height: 38px;
  max-width: 170px;
}
.rt-sh-quote.is-big figcaption {
  flex-wrap: wrap;
  justify-content: center;
  border-top: 0;
  padding-top: 0;
  margin-top: 32px;
  text-align: left;
}
@media (prefers-reduced-motion: reduce) {
  .rt-sh-quote {
    transition: none;
  }
  .rt-sh-quote:hover {
    transform: none;
  }
}

/* ---- Video ---- */
.rt-sh-h2 {
  margin: 0;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
.rt-sh-video-wrap {
  max-width: 960px;
  margin: 0 auto;
}
.rt-sh-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0f1546;
  box-shadow: 0 30px 70px rgba(5, 8, 35, 0.5);
}
.rt-sh-video iframe,
.rt-sh-video-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.rt-sh-video-btn {
  padding: 0;
  background: none;
  cursor: pointer;
}
.rt-sh-video-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rt-sh-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--rt-yellow-200);
  color: var(--rt-text-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}
.rt-sh-play svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
}
.rt-sh-video-btn:hover .rt-sh-play {
  transform: translate(-50%, -50%) scale(1.06);
}
.rt-sh-video-btn:focus-visible {
  outline: 3px solid var(--rt-yellow-200);
  outline-offset: -3px;
}

/* ---- Steps: text and screenshot as equal halves, centred on each other ---- */
.rt-sh-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  max-width: 1136px;
  margin: 0 auto;
}
.rt-sh-step.is-flip .rt-sh-shot {
  order: -1;
}
.rt-sh-shot {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 70px rgba(5, 8, 35, 0.5);
}
/* built-in illustrations: no white card, a soft lavender glow on the navy */
.rt-sh-shot.is-art {
  overflow: visible;
  border-radius: 28px;
  background: radial-gradient(70% 70% at 50% 50%, rgba(102, 122, 250, 0.2), rgba(102, 122, 250, 0) 75%);
  box-shadow: none;
}
.rt-ill {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--rt-font-heading);
}
.rt-ill-win {
  fill: #1d2770;
  stroke: rgba(143, 160, 255, 0.32);
  stroke-width: 1.5;
  filter: drop-shadow(0 18px 30px rgba(4, 8, 40, 0.55));
}
.rt-ill-bar {
  fill: rgba(143, 160, 255, 0.1);
}
.rt-ill-h {
  font-family: var(--rt-font-display);
  font-size: 18px;
  font-weight: 700;
  fill: #fff;
}
.rt-ill-h.is-lg {
  font-size: 26px;
}
.rt-ill-t {
  font-size: 16px;
  font-weight: 700;
  fill: #fff;
}
.rt-ill-t.is-sm {
  font-size: 15px;
  font-weight: 600;
}
.rt-ill-m {
  font-size: 15px;
  fill: #c7cffd;
}
.rt-ill-m.is-xs {
  font-size: 13px;
}
.rt-ill-cap {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  fill: #ffad0a;
}
.rt-ill-sel {
  fill: rgba(102, 122, 250, 0.26);
}
.rt-ill-line {
  fill: rgba(199, 207, 253, 0.42);
}
.rt-ill-line.is-faint {
  fill: rgba(199, 207, 253, 0.2);
}
.rt-ill-pill text {
  font-size: 13px;
  font-weight: 700;
}
.rt-ill-pill.is-yellow rect {
  fill: rgba(255, 173, 10, 0.16);
  stroke: rgba(255, 173, 10, 0.6);
}
.rt-ill-pill.is-yellow text {
  fill: #ffc65a;
}
.rt-ill-pill.is-green rect {
  fill: #95bf47;
}
.rt-ill-pill.is-green text {
  fill: #0c1240;
}
.rt-ill-pill.is-muted rect {
  fill: rgba(143, 160, 255, 0.18);
}
.rt-ill-pill.is-muted text {
  fill: #d6dcff;
}
.rt-ill-pill.is-outline rect {
  fill: none;
  stroke: rgba(199, 207, 253, 0.45);
}
.rt-ill-pill.is-outline text {
  fill: #fff;
}
.rt-ill-menu {
  fill: #fff;
  filter: drop-shadow(0 20px 36px rgba(4, 8, 40, 0.6));
}
.rt-ill-menuline {
  fill: #dfe3fb;
}
.rt-ill-menucap {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  fill: #7a83b8;
}
.rt-ill-menuitem {
  font-family: var(--rt-font-display);
  font-size: 16px;
  font-weight: 700;
  fill: #131b52;
}
.rt-ill-btn {
  font-family: var(--rt-font-display);
  font-size: 15px;
  font-weight: 700;
  fill: #131b52;
}
.rt-ill-btn.is-white {
  font-size: 17px;
  fill: #fff;
}
.rt-ill-store {
  fill: #fff;
  filter: drop-shadow(0 10px 22px rgba(4, 8, 40, 0.5));
}
.rt-ill-field {
  fill: rgba(143, 160, 255, 0.12);
  stroke: rgba(143, 160, 255, 0.22);
}
.rt-ill-field.is-hot {
  fill: rgba(255, 173, 10, 0.14);
  stroke: rgba(255, 173, 10, 0.7);
}
.rt-ill-dot {
  fill: #8fa0ff;
}
.rt-ill-dot.is-hot {
  fill: #ffad0a;
}
/* arrows and connector lines */
.rt-ill-flow {
  fill: none;
  stroke: rgba(143, 160, 255, 0.7);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rt-ill-flow.is-hot {
  stroke: #ffad0a;
  stroke-width: 3;
}
.rt-sh-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.rt-sh-step-n {
  margin: 0 0 14px;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt-yellow-200);
}
.rt-sh-step-h {
  margin: 0;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 1.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.rt-sh-step-text {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.65;
  color: #d6dcff;
  text-wrap: pretty;
}
.rt-sh-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.rt-sh-bullets li {
  position: relative;
  max-width: 500px;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.5;
  color: #d6dcff;
}
.rt-sh-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 173, 10, 0.16) 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%23ffad0a%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / 16px no-repeat;
}
.rt-sh-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}
.rt-sh-more:hover {
  border-color: #fff;
}
.rt-sh-more svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}
.rt-sh-more:hover svg {
  transform: translateX(3px);
}
.rt-sh-more:focus-visible {
  outline: 2px solid var(--rt-yellow-200);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---- Tablet / phone (layouts not in Figma) ---- */
@media (max-width: 991px) {
  .rt-sh-hero-inner,
  .rt-sh-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .rt-sh-step.is-flip .rt-sh-shot {
    order: 0;
  }
  .rt-sh-hero-art {
    max-width: 560px;
  }
  .rt-sh-hero-quotes {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .rt-sh-band {
    padding-block: 88px;
  }
}
@media (max-width: 599px) {
  .rt-sh-hero {
    padding: calc(var(--pad-top, 170px) - 50px) 16px 72px;
  }
  .rt-sh-btn {
    flex: 1 1 100%;
  }
  .rt-sh-band {
    padding: 72px 16px;
  }
  .rt-sh-band--quote,
  .rt-sh-quotes-band {
    padding-block: 56px;
  }
  .rt-sh-quote,
  .rt-sh-quote.is-big {
    padding: 28px 22px 24px;
    border-radius: 20px;
  }
  .rt-sh-quote blockquote {
    font-size: 17px;
  }
  /* big quotes: the logo drops to its own centred row */
  .rt-sh-quote.is-big .rt-sh-qlogo {
    flex-basis: 100%;
    margin: 4px 0 0;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(143, 160, 255, 0.3);
  }
  .rt-sh-quote.is-big .rt-sh-qlogo img {
    margin: 0 auto;
    object-position: center;
  }
  .rt-sh-video {
    border-radius: 16px;
  }
  .rt-sh-play {
    width: 64px;
    height: 64px;
  }
  .rt-sh-shot {
    border-radius: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rt-sh * {
    animation: none !important;
    transition: none !important;
  }
}

