/* Reception Agent page below the hero, in the same hand as the hero and the homepage:
   white surfaces, near-black ink, grey second lines, hairlines, generous space, and the
   hero's blue-violet-magenta gradient used only as a small accent. Markup uses rx-* classes. */

:root {
  --rx-ink: #161617;
  --rx-mute: #86868b;
  --rx-soft: rgba(22, 22, 23, 0.6);
  --rx-line: rgba(22, 22, 23, 0.09);
  --rx-tint: #f4f7fa;
  --rx-foot: #f5f5f7;
  --rx-grad: linear-gradient(90deg, #2678d4 0%, #6557d9 52%, #ca35bd 100%);
  /* left edge of the content column, measured from the viewport (used by the full-bleed carousel) */
  --rx-gutter: 1rem;
}

@media (min-width: 768px) {
  :root {
    --rx-gutter: max(2.25rem, calc((100vw - 1200px) / 2 + 1rem));
  }
}

/* ---------- Shared section system ---------- */
.rx-section {
  position: relative;
  /* half the section gap on each side, so two neighbours add up to one gap: ~104px on phones, 144px on desktop */
  padding: clamp(3.25rem, 5vw, 4.5rem) 0;
}

.rx-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .rx-wrap {
    padding: 0 1rem;
  }
}

.rx-head {
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

/* Section headers stack on one left edge: eyebrow, two-tone heading, then the subheading
   directly beneath at a steady measure (about two lines), so it reads with the heading
   instead of floating beside it. */
.rx-head--split > :last-child:not(:first-child) {
  margin-top: 1.25rem;
  max-width: 36rem;
}

.rx-head--split > div:last-child:not(:first-child) .rx-sub {
  max-width: none;
}

.rx-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rx-head--center .rx-sub {
  margin-top: 1.25rem;
  text-wrap: balance;
}

/* compact header: one-line heading where there's room, one line of copy */
.rx-head--compact .rx-sub {
  max-width: 46rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .rx-head--compact .rx-h2 .rx-muted {
    display: inline;
  }
}

.rx-head--tight {
  margin-bottom: 2.5rem;
}

.rx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--rx-soft);
}

.rx-eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2678d4, #6557d9 55%, #ca35bd);
}

.rx-h2 {
  margin: 0;
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  color: var(--rx-ink);
  text-wrap: balance;
}

.rx-muted {
  color: var(--rx-mute);
}

/* two-line headings: the grey second line always starts on its own line */
:is(.rx-h2, .rx-close-h) .rx-muted {
  display: block;
}

.rx-sub {
  margin: 0;
  max-width: 36rem;
  text-wrap: pretty;
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--rx-soft);
}

.rx-note {
  margin: 0.85rem 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rx-mute);
}

/* ---------- Buttons and links ---------- */
.rx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--rx-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(22, 22, 23, 0.07);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rx-btn:hover {
  background: #303641;
  transform: translateY(-1px);
}

.rx-btn--ghost {
  background: #fff;
  color: var(--rx-ink);
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.14);
}

.rx-btn--ghost:hover {
  background: rgba(22, 22, 23, 0.04);
}

.rx-btn--block {
  width: 100%;
}

.rx-btn--lg {
  min-height: 54px;
  padding: 0 1.75rem;
  font-size: 16px;
}

.rx-textlink {
  font-size: 15px;
  font-weight: 500;
  color: var(--rx-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(22, 22, 23, 0.35);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease;
}

.rx-textlink:hover {
  text-decoration-color: var(--rx-ink);
}

:is(.rx-section, .rx-close, .rx-footer) :is(a, button, summary):focus-visible {
  outline: 2px solid var(--rx-ink);
  outline-offset: 3px;
}

/* ---------- Available tools beneath the reception demo ---------- */
.available-tools {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--rx-line);
}

.available-tools-inner {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.4fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.available-tools-heading h2 {
  margin: 0;
  color: var(--rx-ink);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 550;
  letter-spacing: -0.035em;
}

.available-tools-heading p {
  margin: .4rem 0 0;
  color: var(--rx-mute);
  font-size: .875rem;
  line-height: 1.45;
}

.available-tools-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.available-tool {
  display: flex;
  min-width: 0;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .65rem .75rem;
  border: 1px solid var(--rx-line);
  border-radius: .8rem;
  background: #fff;
  color: var(--rx-ink);
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
}

.available-tool img {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  object-fit: contain;
}

@media (max-width: 900px) {
  .available-tools-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .available-tools-heading {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .available-tools {
    padding: 1.75rem 1rem;
  }

  .available-tools-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
  }

  .available-tool {
    min-height: 4rem;
    flex-direction: column;
    gap: .35rem;
    padding: .55rem .25rem;
    font-size: .72rem;
  }
}

/* ---------- Use cases ---------- */
.rx-carousel {
  position: relative;
  margin-inline: calc(50% - 50vw);
}

.rx-car-track {
  display: flex;
  gap: 16px; /* the legacy carousel script steps by card width + 16px */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--rx-gutter);
  padding: 0 var(--rx-gutter) 4px;
  scrollbar-width: none;
}

.rx-car-track::-webkit-scrollbar {
  display: none;
}

.rx-card-cell {
  flex: none;
  width: min(78vw, 22.5rem);
  scroll-snap-align: start;
}

.rx-card {
  display: flex;
  flex-direction: column;
}

.rx-card-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1122 / 1402;
  border-radius: 24px;
  background: var(--rx-tint);
}

.rx-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--rx-line);
  pointer-events: none;
}

.rx-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rx-card:hover .rx-card-art img {
  transform: scale(1.025);
}

.rx-card-title {
  margin: 1.4rem 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--rx-ink);
}

.rx-card-desc {
  margin: 0.5rem 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--rx-soft);
}

.rx-car-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

.rx-car-dots {
  display: flex;
  gap: 6px;
  margin: 0;
}

.rx-car-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rx-ink);
  opacity: 0.25;
  transition: opacity 0.2s ease;
}

.rx-car-btns {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
}

.rx-car-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--rx-ink);
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.12);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.rx-car-nav:hover:not(:disabled) {
  background: var(--rx-tint);
}

.rx-car-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (min-width: 768px) {
  .rx-car-dots {
    display: none;
  }
}

@media (max-width: 767px) {
  .rx-car-btns {
    display: none;
  }

  .rx-car-controls {
    justify-content: center;
  }
}

.rx-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3.5rem;
}

/* ---------- Results ---------- */
.rx-cases {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .rx-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(300px, auto));
  }

  .rx-case--tall {
    grid-row: span 2;
  }
}

.rx-case {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 2rem;
  border-radius: 24px;
  background: #0d1412;
  color: #f5f5f7;
  text-decoration: none;
}

.rx-case img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* --zoom crops a photo further where a card needs it; hover adds a touch on top */
  transform: scale(var(--zoom, 1));
  transform-origin: var(--zoom-origin, 50% 50%);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rx-case:hover img {
  transform: scale(calc(var(--zoom, 1) * 1.035));
}

/* a deeper floor so the labels read on busy photos */
.rx-case::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 10, 11, 0.9) 0%, rgba(8, 10, 11, 0.62) 34%, rgba(8, 10, 11, 0.18) 68%, rgba(8, 10, 11, 0.06) 100%);
}

.rx-case-co {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.85);
}

.rx-case-stat {
  margin-top: 0.6rem;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  color: #fff;
}

.rx-case--tall .rx-case-stat {
  font-size: clamp(3.5rem, 7vw, 6rem);
}

.rx-case-desc {
  margin-top: 0.55rem;
  font-size: 15.5px;
  color: rgba(245, 245, 247, 0.78);
}

.rx-case-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.85);
}

.rx-case-more svg {
  transition: transform 0.2s ease;
}

.rx-case:hover .rx-case-more svg {
  transform: translateX(2px);
}

/* ---------- Pricing ---------- */
/* Header kept to three short lines (eyebrow, one-line heading, one line of copy) with the
   billing toggle beside it on wide screens, so the plans start sooner. */
.rx-pricing-top {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.rx-pricing-top .rx-head {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

/* one-line heading where there's room; phones keep the grey phrase on its own line */
@media (min-width: 900px) {
  .rx-pricing-head .rx-h2 .rx-muted {
    display: inline;
  }
}

.rx-pricing-head .rx-sub {
  margin-top: 1rem;
  max-width: 50rem;
}

@media (min-width: 900px) {
  .rx-pricing-top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }
}

.rx-billing {
  display: flex;
  flex: none;
}

.rx-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(22, 22, 23, 0.06);
}

#pricing .rx-seg [role="radio"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--rx-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#pricing .rx-seg [role="radio"]:hover {
  color: var(--rx-ink);
}

#pricing .rx-seg [role="radio"].limitless-billing-active {
  border: 0;
  background: #fff;
  color: var(--rx-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

.rx-save {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(101, 87, 217, 0.1);
  font-size: 12px;
  font-weight: 500;
  color: #5a45cf;
}

.rx-plans {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .rx-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .rx-plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rx-plan {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1.5px solid rgba(22, 22, 23, 0.09);
  border-radius: 24px;
  background: #fff;
}

/* Enterprise: custom-priced, so it sits on a quiet tinted surface instead of a white card */
.rx-plan--enterprise {
  border-color: transparent;
  background: var(--rx-foot);
}

/* the featured plan carries the hero gradient as its border */
.rx-plan--featured {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #2678d4, #6557d9 52%, #ca35bd) border-box;
  box-shadow: 0 24px 48px -28px rgba(70, 60, 170, 0.35);
}

.rx-plan-head {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rx-line);
}

.rx-plan-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 26px;
}

.rx-plan-name {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--rx-ink);
}

.rx-plan-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--rx-ink);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}

.rx-plan-for {
  margin: 0.3rem 0 0;
  font-size: 14px;
  color: var(--rx-mute);
}

.rx-plan-price {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.75rem;
}

#pricing .rx-price {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--rx-ink);
}

/* US$ / CA$ sits small beside the amount so the number stays the focus */
#pricing .rx-cur {
  margin-right: 0.12em;
  font-size: 0.45em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: 0.95em;
  color: var(--rx-soft);
}

/* currency line under the plans: "Prices in Canadian dollars.  [USD | CAD]" */
.rx-currency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.rx-currency-note {
  margin: 0;
  font-size: 13px;
  color: var(--rx-mute);
}

.rx-currency .rx-textlink {
  margin-left: auto;
  font-size: 13.5px;
}

#pricing .rx-seg--currency [role="radio"] {
  padding: 0.3rem 0.75rem;
  font-size: 13px;
}

.rx-tax {
  margin-left: 0.4rem;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--rx-mute);
}

#pricing .rx-overage,
#pricing [data-savings] {
  font-size: 13px;
  line-height: 1.4;
  color: var(--rx-mute);
}

.rx-plan-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.rx-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(22, 22, 23, 0.82);
}

.rx-check {
  flex: none;
  margin-top: 1px;
  color: var(--rx-ink);
}

/* ---------- Revenue calculator ---------- */
.rx-calc-panel {
  display: grid;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1024px) {
  .rx-calc-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.rx-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
}

.rx-calc-result {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  background: var(--rx-tint);
}

@media (max-width: 1023px) {
  .rx-calc-result {
    order: -1;
  }
}

/* a soft orb of colour behind the figure */
.rx-result-glow {
  position: absolute;
  z-index: -1;
  top: -32%;
  right: -16%;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(48px);
  background:
    radial-gradient(circle at 35% 35%, rgba(167, 139, 250, 0.9), transparent 58%),
    radial-gradient(circle at 68% 58%, rgba(56, 189, 248, 0.75), transparent 60%),
    radial-gradient(circle at 45% 82%, rgba(244, 114, 182, 0.55), transparent 60%);
  pointer-events: none;
}

.rx-result-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--rx-soft);
}

.rx-result-value {
  margin: 0.9rem 0 0;
  font-size: clamp(3.25rem, 6.4vw, 5.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  color: var(--rx-ink);
}

.rx-result-per {
  margin: 0.6rem 0 0;
  font-size: 15px;
  color: var(--rx-mute);
}

.rx-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(22, 22, 23, 0.1);
}

.rx-k {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--rx-mute);
}

.rx-v {
  margin: 0.35rem 0 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--rx-ink);
}

#revenue-calculator .rx-v .text-sm {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--rx-mute);
}

.rx-calc-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--rx-mute);
}

.rx-field {
  display: block;
}

.rx-field-label,
.rx-slider-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--rx-ink);
}

.rx-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 52px;
  padding: 0 1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.12);
  transition: box-shadow 0.2s ease;
}

.rx-input:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--rx-ink);
}

.rx-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--rx-ink);
  -moz-appearance: textfield;
  appearance: textfield;
}

.rx-input input::-webkit-inner-spin-button,
.rx-input input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rx-input span {
  font-size: 15px;
  color: var(--rx-mute);
}

.rx-input--money {
  max-width: 16rem;
  margin-top: 0.6rem;
}

.rx-input--sm {
  width: 7.5rem;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 999px;
}

.rx-input--sm input {
  font-size: 15px;
  text-align: right;
}

.rx-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#revenue-calculator input[type="range"] {
  display: block;
  width: 100%;
  height: 22px;
  margin: 1rem 0 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

#revenue-calculator input[type="range"]:focus-visible {
  outline: none;
}

#revenue-calculator input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: var(--rx-grad) 0 0 / var(--range-progress, 50%) 100% no-repeat, rgba(22, 22, 23, 0.1);
}

#revenue-calculator input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 22, 23, 0.12), 0 2px 6px rgba(22, 22, 23, 0.18);
  transition: transform 0.15s ease;
  -webkit-appearance: none;
}

#revenue-calculator input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

#revenue-calculator input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(101, 87, 217, 0.35), 0 2px 6px rgba(22, 22, 23, 0.18);
}

#revenue-calculator input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(22, 22, 23, 0.1);
}

#revenue-calculator input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--rx-grad);
}

#revenue-calculator input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 22, 23, 0.12), 0 2px 6px rgba(22, 22, 23, 0.18);
}

.rx-assume {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rx-line);
}

.rx-assume summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  border-radius: 8px;
}

.rx-assume summary::-webkit-details-marker {
  display: none;
}

.rx-assume-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--rx-ink);
}

#revenue-calculator .rx-assume-text {
  display: block;
  margin-top: 0.3rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--rx-mute);
}

.rx-assume-plus {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 23, 0.12);
  font-size: 17px;
  line-height: 1;
  color: var(--rx-ink);
  transition: transform 0.25s ease;
}

.rx-assume[open] .rx-assume-plus {
  transform: rotate(45deg);
}

.rx-assume-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* ---------- Closing: falling orbs behind a centred call to action ---------- */
/* stays inside the page frame (body clips at the 16-20px gutters), so the walls sit at the canvas edges */
.rx-close {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* top matches the section rhythm; the tall bottom is the orbs' landing room */
  padding: clamp(3.25rem, 5vw, 4.5rem) 0 12rem;
  text-align: center;
}

@media (min-width: 640px) {
  .rx-close {
    padding: clamp(3.25rem, 5vw, 4.5rem) 1.5rem 16rem;
  }
}

.rx-orb-pile {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
}

/* empty space passes the pointer through to the orbs */
.rx-close-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  pointer-events: none;
}

.rx-close-content :is(a, button, h2, p, img) {
  pointer-events: auto;
}

.rx-close-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 2.25rem;
  object-fit: contain;
}

.rx-close-h {
  margin: 0;
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(2.75rem, 6.4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--rx-ink);
  text-wrap: balance;
}

.rx-close .rx-sub {
  max-width: 32rem;
  text-wrap: balance;
  margin: 1.6rem auto 2.5rem;
}

.rx-close-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
}

/* ---------- Footer (homepage footer, framed like the hero card) ---------- */
footer.rx-footer {
  margin-bottom: 16px;
  padding: 4.5rem 1.25rem 2rem;
  border-radius: 24px;
  background-color: var(--rx-foot) !important;
}

@media (min-width: 768px) {
  footer.rx-footer {
    margin-bottom: 20px;
    border-radius: 28px;
  }
}

.rx-footer-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.rx-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .rx-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rx-footer-grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(7, minmax(0, 1fr));
  }
}

.rx-footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .rx-footer-brand {
    grid-column: auto;
  }
}

.rx-footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.rx-footer-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.rx-footer-brand span {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--rx-ink);
}

.rx-footer-brand p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--rx-mute);
}

.rx-footer h4 {
  margin: 0 0 1rem;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rx-ink);
}

.rx-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rx-footer li a {
  font-size: 13px;
  line-height: 1.45;
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rx-footer li a:hover {
  color: var(--rx-ink);
}

.rx-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rx-line);
}

@media (min-width: 640px) {
  .rx-footer-bottom {
    flex-direction: row;
  }
}

.rx-footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: var(--rx-mute);
}

.rx-socials {
  display: flex;
  gap: 0.5rem;
}

.rx-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #6e6e73;
  box-shadow: inset 0 0 0 1px var(--rx-line);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.rx-social:hover {
  color: var(--rx-ink);
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .rx-card-art img,
  .rx-case img,
  .rx-case-more svg,
  .rx-btn,
  .rx-assume-plus,
  #revenue-calculator input[type="range"]::-webkit-slider-thumb {
    transition: none;
  }

  .rx-car-track {
    scroll-behavior: auto;
  }
}

/* Closing section without the falling orbs: no extra landing room at the bottom */
.rx-close--plain,
.rx-close.rx-close--plain {
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}
