:root {
  --rp-blue: var(--primary-blue);
  --rp-blue-dark: #0b3158;
  --rp-blue-soft: #eef7ff;
  --rp-orange: var(--primary-orange);
  --rp-text: #172033;
  --rp-muted: #526176;
  --rp-radius: 22px;
  --rp-shadow: 0 20px 50px rgba(23, 89, 156, 0.14);
}

.route-planner-page {
  color: var(--rp-text);
  background: #fff;
}

.rp__container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.rp__hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(29, 187, 230, 0.42), transparent 34%),
    linear-gradient(135deg, var(--rp-blue-dark), var(--rp-blue));
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.rp__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.lp__hero-card.rp__hero-card {
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rp__hero-card .lp__hero-title {
  max-width: 15ch;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
}

.rp__hero-intro {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.rp__hero-card .lp-hero-form {
  max-width: 650px;
}

.rp__hero-media {
  display: grid;
  place-items: center;
  min-width: 0;
}

.rp__hero-media .lp__device-video {
  width: min(330px, 88%);
}

.rp__section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.rp__section--tint {
  background: var(--rp-blue-soft);
}

.rp__split {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.rp__split--reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.rp__media-panel {
  min-height: 610px;
  display: grid;
  place-items: center;
  border-radius: var(--rp-radius);
  background:
    radial-gradient(circle at 25% 20%, rgba(29, 187, 230, 0.2), transparent 40%),
    var(--rp-blue-soft);
}

.rp__media-panel--blue {
  background:
    radial-gradient(circle at 72% 20%, rgba(29, 187, 230, 0.4), transparent 38%),
    var(--rp-blue);
}

.rp__media-panel .lp__device-video {
  width: min(330px, 78%);
}

.rp__content h2,
.rp__section-heading h2,
.rp__final-cta h2 {
  color: var(--rp-blue);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.rp__content > p:not(.rp__eyebrow),
.rp__section-heading + p {
  color: var(--rp-muted);
  line-height: 1.7;
}

.rp__eyebrow {
  margin-bottom: 0.6rem;
  color: var(--rp-orange);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rp__points {
  display: grid;
  margin: 1.4rem 0 1.8rem;
}

.rp__points article {
  padding: 1rem 0 1rem 1rem;
  border-left: 3px solid var(--rp-orange);
}

.rp__points article + article {
  border-top: 1px solid #dce6f0;
}

.rp__points h3,
.rp__steps h3,
.rp__trip-types h3,
.rp__feature-copy h3 {
  color: var(--rp-blue);
  font-size: 1.2rem;
  font-weight: 750;
}

.rp__points p,
.rp__steps p,
.rp__trip-types p,
.rp__feature-copy p {
  margin: 0.4rem 0 0;
  color: var(--rp-muted);
  line-height: 1.6;
}

.rp__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 13px;
  background: var(--rp-orange);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(232, 111, 23, 0.2);
}

.rp__button:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(0.95);
}

.rp__section-heading {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.rp__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.rp__steps li {
  padding: 0 1.35rem;
}

.rp__steps li + li {
  border-left: 1px solid #c9d9e9;
}

.rp__steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--rp-blue);
  color: #fff;
  font-weight: 800;
}

.rp__check-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.rp__check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--rp-text);
}

.rp__check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--rp-orange);
  font-weight: 900;
}

.rp__trip-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rp__trip-types article {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 1.5rem;
  border: 1px solid #dbe7f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 89, 156, 0.08);
}

.rp__trip-types a,
.rp__feature-copy a {
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--rp-blue);
  font-weight: 800;
  text-decoration: none;
}

.rp__trip-types a:hover,
.rp__feature-copy a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.rp__feature-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.rp__feature-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #dde7f0;
  border-radius: var(--rp-radius);
  background: #fff;
  box-shadow: var(--rp-shadow);
}

.rp__feature-media {
  height: 360px;
  overflow: hidden;
  display: grid;
  place-items: start center;
  padding-top: 1.5rem;
  background: var(--rp-blue-soft);
}

.rp__feature-media .lp__device-video {
  width: 180px;
}

.rp__feature-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.route-planner-page .faq {
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.route-planner-page .faq__grid > :nth-child(3) {
  grid-column: auto;
}

.rp__final-cta {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--rp-blue-soft);
  text-align: center;
}

.rp__final-cta .rp__container {
  max-width: 780px;
}

.rp__final-cta p {
  margin: 1rem auto 1.5rem;
  color: var(--rp-muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.rp__final-cta small {
  display: block;
  margin-top: 0.9rem;
  color: var(--rp-muted);
}

@media (max-width: 980px) {
  .rp__hero-grid,
  .rp__split,
  .rp__split--reverse {
    grid-template-columns: 1fr;
  }

  .rp__hero-card .lp__hero-title {
    max-width: none;
  }

  .rp__hero-media {
    max-height: 520px;
    overflow: hidden;
  }

  .rp__split--reverse .rp__media-panel {
    order: -1;
  }

  .rp__steps,
  .rp__trip-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp__steps {
    gap: 2rem 0;
  }

  .rp__steps li:nth-child(3) {
    border-left: 0;
  }

  .rp__feature-showcase {
    grid-template-columns: 1fr;
  }

  .rp__feature-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  }

  .rp__feature-media {
    height: 440px;
  }
}

@media (max-width: 640px) {
  .rp__container {
    width: min(100% - 1.25rem, 1160px);
  }

  .rp__hero {
    padding-top: 2.5rem;
  }

  .rp__hero-card .lp__hero-title {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
    text-align: left;
  }

  .rp__hero-media {
    max-height: 440px;
  }

  .rp__media-panel {
    min-height: 500px;
  }

  .rp__steps,
  .rp__trip-types {
    grid-template-columns: 1fr;
  }

  .rp__steps {
    gap: 0;
  }

  .rp__steps li {
    padding: 1.35rem 0;
  }

  .rp__steps li + li {
    border-top: 1px solid #c9d9e9;
    border-left: 0;
  }

  .rp__trip-types article {
    min-height: 0;
  }

  .rp__feature-card {
    display: flex;
  }

  .rp__feature-media {
    height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-planner-page .lp__device-screen-video {
    display: none;
  }
}
