.rp-story,
.rp-story * {
  box-sizing: border-box;
}

.rp-story {
  --rp-ink: #091423;
  --rp-deep: #0d1b2d;
  --rp-blue: #0b6fdc;
  --rp-sky: #43bdf4;
  --rp-paper: #f5f7fa;
  --rp-line: #dce3eb;
  --rp-muted: #5b6879;
  color: var(--rp-ink);
  background: #fff;
}

.rp-story a {
  color: inherit;
  text-decoration: none;
}

.rp-story__jump {
  position: sticky;
  top: var(--theme-sticky-offset, 0);
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 30px;
  overflow-x: auto;
  padding: 14px 24px;
  border-block: 1px solid var(--rp-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(9, 20, 35, 0.05);
  backdrop-filter: blur(14px);
  white-space: nowrap;
}

.rp-story__jump a {
  position: relative;
  padding-block: 5px;
  color: #354255;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.rp-story__jump a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--rp-blue);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.rp-story__jump a:hover::after,
.rp-story__jump a:focus-visible::after {
  transform: scaleX(1);
}

.rp-story__signals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--rp-deep);
  color: #fff;
}

.rp-story__signals > div {
  min-height: 132px;
  padding: 26px clamp(20px, 3vw, 46px);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.rp-story__signals > div:last-child {
  border-right: 0;
}

.rp-story__signals span,
.rp-story__eyebrow {
  display: block;
  color: var(--rp-sky);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.rp-story__signals strong {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.rp-story__signals small {
  display: block;
  margin-top: 6px;
  color: #aebdd0;
  font-size: 12px;
  line-height: 1.45;
}

.rp-story__section,
.rp-story__reviews {
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
  padding-block: 96px;
}

.rp-story__heading {
  max-width: 820px;
}

.rp-story__heading--split,
.rp-story__reviews-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: end;
}

.rp-story h2 {
  margin: 12px 0 0;
  color: var(--rp-ink);
  font-size: clamp(34px, 4.3vw, 60px);
  font-weight: 740;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.rp-story__heading > p,
.rp-story__heading--split > p,
.rp-story__reviews-head > p {
  margin: 20px 0 0;
  color: var(--rp-muted);
  font-size: 15px;
  line-height: 1.75;
}

.rp-story__proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.rp-story__proof-grid article {
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--rp-line);
  border-radius: 18px;
  background: var(--rp-paper);
}

.rp-story__proof-grid article:first-child {
  color: #fff;
  background: linear-gradient(145deg, #0e2239, #091423);
  border-color: #0e2239;
}

.rp-story__proof-grid b {
  color: var(--rp-blue);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
}

.rp-story__proof-grid article:first-child b {
  color: var(--rp-sky);
}

.rp-story__proof-grid h3 {
  margin: 52px 0 10px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.rp-story__proof-grid p {
  margin: 0;
  color: var(--rp-muted);
  font-size: 13px;
  line-height: 1.65;
}

.rp-story__proof-grid article:first-child p {
  color: #b9c7d7;
}

.rp-story__gallery-section {
  border-top: 1px solid var(--rp-line);
}

.rp-story__media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.rp-story__media-card {
  min-width: 0;
  margin: 0;
}

.rp-story__media-square {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--rp-line);
  border-radius: 16px;
  background: #f4f6f8;
}

.rp-story__media-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.rp-story__media-card:hover .rp-story__media-image {
  transform: scale(1.025);
}

.rp-story__media-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 3px 0;
}

.rp-story__media-card figcaption span {
  color: var(--rp-blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.rp-story__media-card figcaption small {
  overflow: hidden;
  color: var(--rp-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-story__install {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 72px;
  align-items: center;
  width: 100%;
  max-width: none;
  padding: 96px max(24px, calc((100vw - 1240px) / 2));
  background: #edf2f7;
}

.rp-story__install-copy > p {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--rp-muted);
  line-height: 1.75;
}

.rp-story__install ol {
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid #cbd5e0;
  list-style: none;
}

.rp-story__install li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #cbd5e0;
}

.rp-story__install li > span {
  color: var(--rp-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.rp-story__install li div {
  display: grid;
  gap: 4px;
}

.rp-story__install li strong {
  font-size: 14px;
}

.rp-story__install li small {
  color: var(--rp-muted);
  font-size: 12px;
  line-height: 1.55;
}

.rp-story__safety {
  padding: 44px;
  border-radius: 22px;
  background: var(--rp-deep);
  color: #fff;
  box-shadow: 0 24px 65px rgba(9, 20, 35, 0.16);
}

.rp-story__safety > span {
  color: var(--rp-sky);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.rp-story__safety h3 {
  max-width: 12ch;
  margin: 22px 0 16px;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.rp-story__safety > p {
  color: #b7c4d4;
  font-size: 14px;
  line-height: 1.7;
}

.rp-story__safety > div {
  display: grid;
  gap: 6px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #35465c;
}

.rp-story__safety b {
  font-size: 12px;
}

.rp-story__safety small {
  color: #91a2b7;
  font-size: 11px;
  line-height: 1.5;
}

.rp-story__details {
  border-bottom: 1px solid var(--rp-line);
}

.rp-story__description {
  margin-top: 40px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--rp-line);
  border-radius: 18px;
  background: var(--rp-paper);
  color: #334054;
  line-height: 1.75;
}

.rp-story__description:empty::before {
  color: var(--rp-muted);
  content: "Product specifications and package contents are being verified for this product record.";
}

.rp-story__description img,
.rp-story__description video,
.rp-story__description iframe {
  max-width: 100%;
  height: auto;
}

.rp-story__checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--rp-line);
  border-radius: 16px;
  background: var(--rp-line);
}

.rp-story__checklist > div {
  display: grid;
  gap: 7px;
  padding: 24px;
  background: #fff;
}

.rp-story__checklist span {
  color: var(--rp-blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.rp-story__checklist strong {
  font-size: 14px;
}

.rp-story__checklist small {
  color: var(--rp-muted);
  font-size: 11px;
  line-height: 1.5;
}

.rp-story__reviews {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1240px) / 2));
  background: var(--rp-deep);
  color: #fff;
}

.rp-story__reviews h2 {
  color: #fff;
}

.rp-story__reviews-head > p {
  color: #aebdd0;
}

.rp-story__review-apps {
  margin-top: 36px;
}

.rp-story__review-empty {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 36px;
  padding: 30px;
  border: 1px solid #34465d;
  border-radius: 18px;
  background: #101f32;
}

.rp-story__review-empty > span {
  padding: 12px;
  border: 1px solid var(--rp-sky);
  border-radius: 99px;
  color: var(--rp-sky);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-align: center;
}

.rp-story__review-empty > div {
  display: grid;
  gap: 7px;
}

.rp-story__review-empty strong {
  font-size: 16px;
}

.rp-story__review-empty small {
  color: #aebdd0;
  font-size: 12px;
  line-height: 1.55;
}

/* Product purchase area: loaded only for the target dash-camera product. */
.product-detail {
  background: #fff;
}

.product-detail__main {
  gap: clamp(32px, 5vw, 72px) !important;
}

.product-detail__media-gallery {
  --desktop-aspect-ratio: 1 !important;
  --mobile-aspect-ratio: 1 !important;
  overflow: hidden;
  border: 1px solid #e0e6ed;
  border-radius: 18px;
  background: #f5f7f9;
}

.product-detail__media-gallery .media-gallery__item,
.product-detail__media-gallery .media-gallery__media {
  aspect-ratio: 1 !important;
}

.product-detail__media-gallery .media-gallery__media,
.product-detail__media-gallery .media-gallery__image {
  background: #f5f7f9;
}

.product-detail__media-gallery .media-gallery__image {
  object-fit: contain;
}

.product-detail__info {
  padding: 4px 0;
}

.product-detail__info .product-description {
  display: none;
}

.product-detail__title {
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.product-detail__price {
  font-weight: 800;
}

.product-detail__info button[type="submit"],
.product-detail__info .button {
  min-height: 52px;
  border-radius: 10px;
}

.product-detail__info fieldset,
.product-detail__info select,
.product-detail__info input {
  border-radius: 9px;
}

@media (max-width: 959px) {
  .rp-story__signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-story__signals > div:nth-child(2) {
    border-right: 0;
  }

  .rp-story__signals > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .rp-story__heading--split,
  .rp-story__reviews-head,
  .rp-story__install {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .rp-story__proof-grid,
  .rp-story__media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-story__proof-grid article:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .rp-story__jump {
    justify-content: flex-start;
    gap: 22px;
    padding-inline: 16px;
  }

  .rp-story__signals > div {
    min-height: 118px;
    padding: 20px 16px;
  }

  .rp-story__signals strong {
    font-size: 12px;
  }

  .rp-story__signals small {
    font-size: 10px;
  }

  .rp-story__section,
  .rp-story__reviews {
    width: min(calc(100% - 28px), 600px);
    padding-block: 66px;
  }

  .rp-story__install,
  .rp-story__reviews {
    width: 100%;
    padding-inline: 14px;
  }

  .rp-story h2 {
    font-size: 36px;
  }

  .rp-story__proof-grid,
  .rp-story__media-grid,
  .rp-story__checklist {
    grid-template-columns: 1fr;
  }

  .rp-story__proof-grid article:first-child {
    grid-column: auto;
  }

  .rp-story__proof-grid article {
    min-height: 240px;
  }

  .rp-story__safety {
    padding: 30px 24px;
  }

  .rp-story__review-empty {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .product-detail__media-gallery {
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-story *,
  .rp-story *::before,
  .rp-story *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
