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

/* ---------------------------------------------------------------------------
 * Pricing (not in Figma: homepage design language, flag for design review)
 * ------------------------------------------------------------------------- */
.rt-pr {
  font-family: var(--rt-font-body);
  color: var(--rt-text-primary);
  -webkit-font-smoothing: antialiased;
}
.rt-pr *,
.rt-pr *::before,
.rt-pr *::after {
  box-sizing: border-box;
}

/* ---- Top: headline + calculator on the hero's white → lilac wash ---- */
.rt-pr-top {
  padding: var(--pad-top, 150px) 24px 96px;
  background: linear-gradient(to bottom, #fff 0%, var(--rt-hero-lilac) 100%);
}
.rt-pr-header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.rt-pr-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-pr-h1 {
  margin: 0;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.4rem + 2.8vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.rt-pr-sub {
  margin: 18px auto 0;
  max-width: 640px;
  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-pr-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(31, 54, 167, 0.06), 0 24px 60px rgba(31, 54, 167, 0.14);
}
.rt-pr-calc-input {
  padding: 40px 44px 36px;
}
.rt-pr-calc-label {
  display: block;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 18px;
}
.rt-pr-readout {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 8px;
}
.rt-pr-readout p {
  margin: 0;
  font-family: var(--rt-font-heading);
  font-size: 20px;
  color: var(--rt-text-secondary);
}
.rt-pr-readout strong {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--rt-text-primary);
  font-variant-numeric: tabular-nums;
}
.rt-pr-readout span {
  color: var(--rt-text-tertiary);
}

/* Plant */
.rt-pr-plant {
  flex: none;
  width: 84px;
  height: 84px;
}
.rt-pr-grow {
  transform: scale(0);
  transition: transform 600ms cubic-bezier(0.34, 1.45, 0.64, 1);
}
.rt-pr-grow.is-on {
  transform: scale(var(--s, 1));
}

/* Slider */
.rt-pr-slider {
  position: relative;
  padding: 18px 0 34px;
}
.rt-pr-slider input {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.rt-pr-slider input::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--rt-indigo-100) var(--pct), #dfe4fb var(--pct));
}
.rt-pr-slider input::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--rt-indigo-100) var(--pct), #dfe4fb var(--pct));
}
.rt-pr-slider input::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -11px;
  border: 4px solid var(--rt-indigo-100);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 54, 167, 0.3);
  transition: transform 160ms ease;
  appearance: none;
  -webkit-appearance: none;
}
.rt-pr-slider input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 4px solid var(--rt-indigo-100);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 54, 167, 0.3);
}
.rt-pr-slider input:hover::-webkit-slider-thumb,
.rt-pr-slider input:active::-webkit-slider-thumb {
  transform: scale(1.1);
}
.rt-pr-slider input:focus-visible {
  outline: none;
}
.rt-pr-slider input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px rgba(50, 107, 252, 0.25), 0 4px 14px rgba(31, 54, 167, 0.3);
}
.rt-pr-ticks {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 8px;
  height: 18px;
}
.rt-pr-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: var(--rt-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--rt-text-tertiary);
  white-space: nowrap;
}

/* Breakdown */
.rt-pr-breakdown {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-family: var(--rt-font-heading);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.rt-pr-breakdown th {
  padding: 0 0 10px;
  border-bottom: 1.5px solid #dfe4fb;
  font-weight: 600;
  font-size: 13px;
  color: var(--rt-text-tertiary);
  text-align: left;
}
.rt-pr-breakdown td {
  padding: 11px 0;
  border-bottom: 1px solid #eef0f6;
}
.rt-pr-breakdown th:nth-child(2),
.rt-pr-breakdown td:nth-child(2) {
  color: var(--rt-text-secondary);
}
.rt-pr-breakdown th:last-child,
.rt-pr-breakdown td:last-child {
  text-align: right;
  font-weight: 600;
}

/* Price card */
.rt-pr-calc-price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px 32px;
  overflow: hidden;
  background: linear-gradient(160deg, #2a41c4 0%, var(--rt-hero-blue) 60%, #172a8a 100%);
  color: #fff;
}
.rt-pr-calc-price::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(102, 122, 250, 0.55), rgba(102, 122, 250, 0));
  pointer-events: none;
}
.rt-pr-calc-price > * {
  position: relative;
}
.rt-pr-price-k {
  margin: 0;
  font-family: var(--rt-font-heading);
  font-weight: 600;
  font-size: 15px;
  color: #c7cffd;
}
.rt-pr-price {
  margin: 8px 0 0;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.rt-pr-price span {
  margin-left: 4px;
  font-size: 20px;
  letter-spacing: 0;
  color: #c7cffd;
}
.rt-pr-price-sub {
  min-height: 1.5em;
  margin: 10px 0 0;
  font-family: var(--rt-font-heading);
  font-size: 15px;
  color: #dfe4ff;
}
.rt-pr-price-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 26px 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
  font-family: var(--rt-font-heading);
  font-size: 15px;
}
.rt-pr-price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rt-pr-price-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #8ff0cf;
}
.rt-pr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--rt-radius-lg);
  font-family: var(--rt-font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 22px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.rt-pr-btn:hover {
  transform: translateY(-1px);
}
.rt-pr-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.rt-pr-btn-primary {
  margin-top: auto;
  background: var(--rt-yellow-200);
  border-color: var(--rt-yellow-border);
  color: var(--rt-text-primary);
}
.rt-pr-btn-primary:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.rt-pr-btn-ghost {
  margin-top: 10px;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.rt-pr-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.rt-pr-note {
  margin: 14px 0 0;
  font-family: var(--rt-font-heading);
  font-size: 13px;
  color: #c7cffd;
  text-align: center;
}

/* ---- Volume ladder ---- */
.rt-pr-tiers {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px 24px;
  text-align: center;
}
.rt-pr-h3 {
  margin: 0 0 32px;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  line-height: 1.25;
}
.rt-pr-ladder {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rt-pr-ladder li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  /* each step a little taller: the stairs of a growing business */
  min-height: calc(112px + var(--i) * 10px);
  padding: 14px 8px 16px;
  border-radius: 16px 16px 6px 6px;
  background: color-mix(in srgb, var(--rt-indigo-100) calc(6% + var(--i) * 3%), #fff);
  font-family: var(--rt-font-heading);
}
.rt-pr-ladder li {
  transition: transform 260ms cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 200ms ease;
}
.rt-pr-ladder li.is-active {
  box-shadow: 0 0 0 2.5px var(--rt-indigo-100), 0 14px 28px rgba(31, 54, 167, 0.18);
  transform: translateY(-8px);
}
.rt-pr-ladder li:last-child.is-active {
  box-shadow: 0 0 0 2.5px var(--rt-yellow-200), 0 14px 28px rgba(31, 54, 167, 0.25);
}
.rt-pr-ladder li:first-child {
  background: #e4f6ee;
}
.rt-pr-ladder li:last-child {
  background: var(--rt-hero-blue);
  color: #fff;
}
.rt-pr-step-range {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rt-text-secondary);
  font-variant-numeric: tabular-nums;
}
.rt-pr-ladder li:last-child .rt-pr-step-range,
.rt-pr-ladder li:last-child em {
  color: #c7cffd;
}
.rt-pr-ladder strong {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
}
.rt-pr-ladder em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--rt-text-tertiary);
}
.rt-pr-tiers-note {
  margin: 18px 0 0;
  font-family: var(--rt-font-heading);
  font-size: 14px;
  color: var(--rt-text-secondary);
}


/* ---- ROI calculator (after the features) ---- */
.rt-pr-roi {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 128px;
}
.rt-pr-roi-head {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}
.rt-pr-roi-head .rt-pr-h3 {
  margin-bottom: 0;
}
.rt-pr-roi-head .rt-pr-sub {
  margin-top: 10px;
}
.rt-pr-roi-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(31, 54, 167, 0.06), 0 20px 48px rgba(31, 54, 167, 0.1);
}
.rt-pr-roi-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding: 36px 44px 32px;
}
.rt-pr-roi-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--rt-font-heading);
  font-size: 14.5px;
  color: var(--rt-text-secondary);
}
.rt-pr-roi-field strong {
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--rt-text-primary);
  font-variant-numeric: tabular-nums;
}
.rt-pr-slider-sm {
  padding: 8px 0 0;
}
.rt-pr-slider-sm input::-webkit-slider-runnable-track {
  height: 6px;
}
.rt-pr-slider-sm input::-moz-range-track {
  height: 6px;
}
.rt-pr-slider-sm input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-width: 3px;
}
.rt-pr-slider-sm input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-width: 3px;
}
.rt-pr-roi-out {
  padding: 30px 44px 34px;
  border-top: 1px solid #e3f2ea;
  background: #effaf4;
  text-align: center;
}
.rt-pr-roi-k {
  margin: 0;
  font-family: var(--rt-font-heading);
  font-weight: 600;
  font-size: 15px;
  color: #1a8a5a;
}
.rt-pr-roi-save {
  margin: 6px 0 0;
  font-family: var(--rt-font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #138a57;
  font-variant-numeric: tabular-nums;
}
.rt-pr-roi-save span {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0;
  color: #1a8a5a;
}
.rt-pr-roi-sub {
  margin: 10px 0 0;
  font-family: var(--rt-font-heading);
  font-size: 16px;
  color: #3c4152;
  font-variant-numeric: tabular-nums;
}
.rt-pr-roi .rt-pr-tiers-note {
  max-width: 680px;
  margin: 16px auto 0;
  text-align: center;
}

/* ---- Features ---- */
.rt-pr-features {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 24px;
}
.rt-pr-features-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.rt-pr-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-wrap: balance;
}
.rt-pr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rt-pr-feature {
  padding: 26px 26px 28px;
  border: 1px solid #e7eaf6;
  border-radius: 20px;
  background: #fff;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.rt-pr-feature:hover {
  border-color: #cfd6fb;
  box-shadow: 0 14px 32px rgba(31, 54, 167, 0.1);
  transform: translateY(-2px);
}
.rt-pr-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #eef1ff;
  color: var(--rt-indigo-100);
}
.rt-pr-icon svg {
  width: 24px;
  height: 24px;
}
.rt-pr-feature h3 {
  margin: 0;
  font-family: var(--rt-font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}
.rt-pr-feature p {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--rt-text-secondary);
  text-wrap: pretty;
}
.rt-pr-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.rt-pr-extras p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  padding: 20px 24px;
  border-radius: 20px;
  background: #f4f5fe;
  font-family: var(--rt-font-heading);
  font-size: 15.5px;
  line-height: 1.5;
  color: #3c4152;
}
.rt-pr-extras a {
  font-weight: 700;
  color: var(--rt-indigo-100);
  text-decoration: none;
}
.rt-pr-extras a:hover {
  text-decoration: underline;
}
.rt-pr-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff4dc;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #a86b00;
}
.rt-pr-badge.is-api {
  background: #e3e8ff;
  color: var(--rt-indigo-100);
}

/* ---- Tablet / phone (layouts not in Figma) ---- */
@media (max-width: 1023px) {
  .rt-pr-ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rt-pr-ladder li {
    min-height: 0;
    border-radius: 16px;
  }
  .rt-pr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .rt-pr-calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .rt-pr-roi-inputs {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .rt-pr-extras {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 599px) {
  .rt-pr-top {
    padding: calc(var(--pad-top, 150px) - 40px) 16px 64px;
  }
  .rt-pr-calc {
    border-radius: 22px;
  }
  .rt-pr-calc-input {
    padding: 28px 20px 24px;
  }
  .rt-pr-calc-price {
    padding: 28px 22px 24px;
  }
  .rt-pr-roi-inputs,
  .rt-pr-roi-out {
    padding: 26px 20px;
  }
  .rt-pr-roi-save span {
    display: block;
    margin-top: 4px;
  }
  .rt-pr-readout strong {
    font-size: 36px;
  }
  .rt-pr-plant {
    width: 60px;
    height: 60px;
  }
  .rt-pr-ticks span:nth-child(2),
  .rt-pr-ticks span:nth-child(5) {
    display: none;
  }
  .rt-pr-tiers,
  .rt-pr-roi,
  .rt-pr-features {
    padding-left: 16px;
    padding-right: 16px;
  }
  .rt-pr-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rt-pr-ladder li:last-child {
    grid-column: span 2;
  }
  .rt-pr-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-pr * {
    transition: none !important;
  }
}

