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

/* ---------------------------------------------------------------------------
 * Zapier app page (not in Figma: the Shopify app page's design, flag for design review).
 * Dark hero (use the Navbar's Dark theme above it), navy bands with one light band in the middle.
 * ------------------------------------------------------------------------- */
.rt-zp {
  --navy: #131b52;
  --navy-alt: #192263;
  --muted: #c7cffd;
  --line: rgba(143, 160, 255, 0.24);
  font-family: var(--rt-font-body);
  background: var(--navy);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
.rt-zp *,
.rt-zp *::before,
.rt-zp *::after {
  box-sizing: border-box;
}
:where(.rt-zp) :where(h1, h2, h3, p, ul, ol) {
  margin: 0;
}
:where(.rt-zp) :where(ul, ol) {
  padding: 0;
  list-style: none;
}

/* ---- Hero ---- */
.rt-zp-hero {
  position: relative;
  overflow: hidden;
  padding: var(--pad-top, 170px) 24px 88px;
  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%, var(--navy) 100%);
}
.rt-zp-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-zp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 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: var(--muted);
}
.rt-zp-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4f00; /* Zapier orange */
}
.rt-zp-h1 {
  /* in em so it breaks the same at every size: "Connect Routific to / thousands of apps / with Zapier" */
  max-width: 10.2em;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.3rem + 2.8vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.rt-zp-h1 em,
.rt-zp-h2 em {
  font-style: normal;
  color: var(--rt-yellow-200);
}
/* the highlighted phrase stays on one line ("Connect Routific to / thousands of apps / with Zapier") */
.rt-zp-h1 em {
  white-space: nowrap;
}
.rt-zp-sub {
  max-width: 540px;
  margin-top: 20px;
  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-zp-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.rt-zp-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-zp-btn:hover {
  transform: translateY(-1px);
}
.rt-zp-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.rt-zp-btn-primary {
  background: var(--rt-yellow-200);
  border-color: var(--rt-yellow-border);
  color: var(--rt-text-primary);
}
.rt-zp-btn-primary:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.rt-zp-btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.rt-zp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---- The hero's Zap ---- */
.rt-zp-flow {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  color: var(--rt-text-primary);
  box-shadow: 0 30px 70px rgba(5, 8, 35, 0.5);
}
.rt-zp-box {
  padding: 16px 18px;
  border: 1px solid #dfe3fb;
  border-radius: 14px;
  background: #fff;
}
.rt-zp-box--zap {
  background: #fff7f2;
  border-color: #ffd9c4;
}
.rt-zp-box-label {
  font-size: 13px;
  font-weight: 600;
  color: #5b6ae0;
}
.rt-zp-box--zap .rt-zp-box-label {
  color: #c2410c;
}
.rt-zp-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 17px;
}
.rt-zp-chip {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 0 0 1px #e3e6f5, 0 2px 6px rgba(19, 27, 82, 0.08);
}
.rt-zp-chip svg,
.rt-zp-chip img {
  display: block;
  width: 20px;
  height: 20px;
}
.rt-zp-chip.is-small {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.rt-zp-chip.is-small svg {
  width: 14px;
  height: 14px;
}
.rt-zp-chip.is-big {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.rt-zp-chip.is-big svg,
.rt-zp-chip.is-big img {
  width: 26px;
  height: 26px;
}
/* a wire between boxes, with a pulse running down it */
.rt-zp-wire {
  position: relative;
  align-self: center;
  width: 2px;
  height: 26px;
  background: #dfe3fb;
}
.rt-zp-wire::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #ff4f00;
  opacity: 0;
}
.rt-zp-orders {
  border-color: #c9cffa;
}
.rt-zp-orders-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 15px;
}
.rt-zp-orders-head img {
  width: 22px;
  height: 22px;
}
.rt-zp-orders ul {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.rt-zp-orders li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f5f6ff;
  font-size: 14px;
}
.rt-zp-orders strong {
  font-weight: 700;
  white-space: nowrap;
}
.rt-zp-addr {
  overflow: hidden;
  color: #4a527d;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rt-zp-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: #d9f5ee;
  color: #0e7a62;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.rt-zp-pill.is-ready {
  background: #eceefd;
  color: #4a527d;
  font-weight: 600;
}
/* one loop: the trigger appears, a pulse runs to Zapier, then on to Routific, and the order drops in */
.rt-zp-animate .rt-zp-flow.is-live .rt-zp-box:first-child {
  animation: rt-zp-in 420ms ease both;
}
.rt-zp-animate .rt-zp-flow.is-live .rt-zp-wire::after {
  animation: rt-zp-pulse 520ms ease-in 420ms both;
}
.rt-zp-animate .rt-zp-flow.is-live .rt-zp-box--zap {
  animation: rt-zp-flash 520ms ease 900ms both;
}
.rt-zp-animate .rt-zp-flow.is-live .rt-zp-wire.is-second::after {
  animation-delay: 1300ms;
}
.rt-zp-animate .rt-zp-flow.is-live li.is-new {
  animation: rt-zp-drop 480ms cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
@keyframes rt-zp-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes rt-zp-pulse {
  from {
    top: 0;
    opacity: 1;
  }
  to {
    top: calc(100% - 8px);
    opacity: 1;
  }
}
@keyframes rt-zp-flash {
  40% {
    box-shadow: 0 0 0 4px rgba(255, 79, 0, 0.18);
  }
}
@keyframes rt-zp-drop {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
}

/* ---- Bands ---- */
.rt-zp-band {
  padding: 112px 24px;
  background: var(--navy);
}
.rt-zp-band--alt {
  background: var(--navy-alt);
}
.rt-zp-band--light {
  background: #f5f6ff;
  color: var(--rt-text-primary);
}
.rt-zp-wrap {
  max-width: 1136px;
  margin: 0 auto;
}
.rt-zp-h2 {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 1.2rem + 2vw, 3rem);
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}
.rt-zp-h2.is-left {
  text-align: left;
}
.rt-zp-lead {
  max-width: 620px;
  margin-top: 16px;
  font-family: var(--rt-font-heading);
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.rt-zp-lead.is-center {
  margin-inline: auto;
  text-align: center;
}
.rt-zp-band--light .rt-zp-lead {
  color: #4a527d;
}
.rt-zp-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--rt-yellow-200);
  text-decoration: none;
}
.rt-zp-more svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}
a.rt-zp-more {
  min-height: 44px;
}
.rt-zp-more:focus-visible {
  outline: 2px solid var(--rt-yellow-200);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Set-up: the video beside three stops on a route ---- */
.rt-zp-setup {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  margin-top: 48px;
}
.rt-zp-setup.is-solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
  margin-inline: auto;
}
.rt-zp-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0f1546;
  box-shadow: 0 30px 70px rgba(5, 8, 35, 0.5);
}
.rt-zp-video iframe,
.rt-zp-video-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.rt-zp-video-btn {
  padding: 0;
  background: none;
  cursor: pointer;
}
.rt-zp-video-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rt-zp-play {
  position: absolute;
  left: 23%;
  top: 80%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  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-zp-play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.rt-zp-video-btn:hover .rt-zp-play {
  transform: translate(-50%, -50%) scale(1.06);
}
.rt-zp-video-btn:focus-visible {
  outline: 3px solid var(--rt-yellow-200);
  outline-offset: -3px;
}
.rt-zp-steps {
  display: grid;
  gap: 32px;
}
.rt-zp-steps li {
  position: relative;
  padding-left: 60px;
}
/* the route between the stops */
.rt-zp-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: -28px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(143, 160, 255, 0.55) 0 6px, transparent 6px 12px);
}
.rt-zp-stop {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rt-yellow-200);
  color: var(--rt-text-primary);
  font-family: var(--rt-font-heading);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 0 5px rgba(255, 191, 0, 0.16);
}
.rt-zp-steps h3 {
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 36px;
}
.rt-zp-steps p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- What Zapier can do: copy on the left, actions and searches on the right ---- */
.rt-zp-automate {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 64px;
}
.rt-zp-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 20px;
}
.rt-zp-caps-col {
  padding: 28px;
  border: 1px solid #e3e6f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(19, 27, 82, 0.06);
}
.rt-zp-caps h3 {
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6ae0;
}
.rt-zp-caps ul {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.rt-zp-caps li {
  display: grid;
  gap: 2px;
  padding-left: 18px;
  background: radial-gradient(circle at 4px 10px, #ff4f00 3.5px, transparent 4px) no-repeat;
}
.rt-zp-caps strong {
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 16px;
}
.rt-zp-caps span {
  font-size: 15px;
  line-height: 1.5;
  color: #4a527d;
}

/* ---- Ideas ---- */
.rt-zp-ideas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.rt-zp-idea {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.rt-zp-idea:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 160, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
}
.rt-zp-idea:hover .rt-zp-more svg {
  transform: translateX(3px);
}
.rt-zp-idea:focus-visible {
  outline: 2px solid var(--rt-yellow-200);
  outline-offset: 3px;
}
.rt-zp-idea-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.rt-zp-idea-apps > svg {
  width: 18px;
  height: 18px;
}
/* after the title in the DOM (so it's read second), shown top-right beside the logos */
.rt-zp-tag {
  position: absolute;
  top: 39px;
  right: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 173, 10, 0.12);
  color: #ffc960;
  font-size: 12px;
  font-weight: 700;
}
.rt-zp-idea h3 {
  margin-top: 22px;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 20px;
}
.rt-zp-idea p {
  flex: 1;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.rt-zp-idea .rt-zp-more {
  margin-top: 18px;
  font-size: 15px;
}

/* ---- Shopify note ---- */
.rt-zp-shopify {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}
.rt-zp-shopify > div {
  flex: 1;
}
.rt-zp-shopify h2 {
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.rt-zp-shopify p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.rt-zp-shopify .rt-zp-more {
  flex: none;
}

/* ---- Tablet / phone (ours: flag for design review) ---- */
@media (max-width: 991px) {
  .rt-zp-hero-inner,
  .rt-zp-setup,
  .rt-zp-automate {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .rt-zp-flow {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }
  .rt-zp-ideas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .rt-zp-hero {
    padding-inline: 16px;
    padding-bottom: 64px;
  }
  .rt-zp-play {
    width: 56px;
    height: 56px;
  }
  .rt-zp-play svg {
    width: 24px;
    height: 24px;
  }
  .rt-zp-tag {
    top: 33px;
    right: 22px;
  }
  .rt-zp-band {
    padding: 64px 16px;
  }
  .rt-zp-ctas .rt-zp-btn {
    flex: 1 1 100%;
  }
  .rt-zp-flow {
    padding: 18px;
    border-radius: 20px;
  }
  .rt-zp-trigger {
    font-size: 16px;
  }
  .rt-zp-orders li {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .rt-zp-orders li .rt-zp-addr {
    display: none;
  }
  .rt-zp-setup {
    margin-top: 32px;
  }
  .rt-zp-caps,
  .rt-zp-ideas {
    grid-template-columns: minmax(0, 1fr);
  }
  .rt-zp-caps-col,
  .rt-zp-idea {
    padding: 22px;
  }
  .rt-zp-shopify {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rt-zp *,
  .rt-zp *::before,
  .rt-zp *::after {
    animation: none !important;
    transition: none !important;
  }
}

