/*
 * GAVA Digital Reception product page (digital-reception.html only).
 *
 * Loaded after gava.css and namespaced under .dr-page / dr-* so nothing here
 * affects other pages. Product interfaces are HTML/CSS/SVG mockups.
 *
 * Motion budget: the only continuous animations are the hero's signal pulses
 * and one call waveform, both transform-only; they pause off-screen
 * (data-motion-state, core.js) and while scrolling (body.is-scrolling).
 * Everything else is a one-shot transition triggered when a section enters
 * the viewport (digital-reception.js adds .is-in). Without JavaScript, or with
 * reduced motion, every element is shown in its final state.
 */

/* Icons and shared type */

.dr-page svg:not([viewBox]) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
}

.dr-page .dr-sprite {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}

.dr-page .dr-fill {
  fill: currentColor;
  stroke: none;
}

.dr-page .section-shell h2 {
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  line-height: .96;
}

.dr-page h2 em {
  -webkit-text-stroke-color: var(--cyan);
  display: block;
}

.dr-copy > p, .dr-head > p {
  max-width: 32rem;
  color: var(--muted);
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  line-height: 1.7;
}

.dr-copy h2 {
  margin-bottom: 2rem;
}

.dr-note {
  max-width: 34rem;
  color: var(--muted);
  border-inline-start: 1px solid var(--line-active);
  margin-top: 1.75rem;
  padding-inline-start: 1rem;
  font-size: .82rem;
  line-height: 1.65;
}

.dr-pane-title {
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .9rem;
  font: 500 .68rem / 1.2 var(--font-interface);
  display: block;
}

.dr-ticks {
  max-width: 32rem;
  margin-top: 2rem;
}

.dr-ticks li {
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  gap: .8rem;
  padding: .75rem 0;
  font-size: .92rem;
  line-height: 1.5;
  display: flex;
}

.dr-ticks svg {
  color: var(--cyan);
  margin-top: .15rem;
}

/* Section layouts */

.dr-split {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 7rem);
  display: grid;
}

.dr-split--reverse > .dr-copy {
  order: 2;
}

.dr-split--head {
  align-items: end;
  margin-bottom: 4.5rem;
}

.dr-split--head h2 {
  margin-bottom: 0;
}

.dr-head {
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-bottom: 4.5rem;
  display: flex;
}

.dr-head > p {
  margin-bottom: .4rem;
}

.dr-problem, .dr-ai, .dr-team, .dr-dash, .dr-delivery {
  background: var(--charcoal);
}

.dr-flow-section, .dr-voice, .dr-crm, .dr-custom {
  background: var(--obsidian);
}

/* Product UI kit */

.dr-ui {
  color: var(--cloud);
  background: linear-gradient(180deg, #111821, #0b1016);
  border: 1px solid #8896a540;
  border-radius: .45rem;
  font-family: var(--font-interface);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1.8rem 4rem #00000073;
}

.dr-ui__bar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  padding: .7rem 1.1rem;
  display: flex;
}

.dr-ui__title {
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
}

.dr-ui__title svg {
  color: var(--cyan);
}

.dr-ui__meta {
  color: var(--muted);
  font-size: .76rem;
}

.dr-ui__foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  padding: .75rem 1.1rem;
  font-size: .76rem;
  display: flex;
}

.dr-ui__foot span:before {
  content: "";
  background: var(--cyan);
  border-radius: 50%;
  width: .38rem;
  height: .38rem;
  margin-inline-end: .45rem;
  display: inline-block;
}

.dr-status {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 99px;
  align-items: center;
  gap: .4rem;
  padding: .25rem .65rem;
  font-size: .72rem;
  display: inline-flex;
}

.dr-status--live:before {
  content: "";
  background: var(--cyan);
  border-radius: 50%;
  width: .4rem;
  height: .4rem;
  box-shadow: 0 0 .5rem var(--cyan);
}

.dr-tag {
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 500;
}

.dr-tag--ai {
  color: var(--cyan);
  border-color: #00e5ff59;
}

.dr-tag--human, .dr-tag--scheduled {
  color: #8fb6ff;
  border-color: #3382ff73;
}

.dr-tag--alert {
  color: #ffc46b;
  border-color: #ffc46b66;
}

.dr-avatar {
  color: var(--cloud);
  background: #1d2733;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  font-size: .8rem;
  font-weight: 600;
  display: grid;
}

.dr-avatar--lg {
  width: 3.6rem;
  height: 3.6rem;
  font-size: 1rem;
}

/* Conversation bubbles */

.dr-thread {
  flex-direction: column;
  gap: .55rem;
  padding: 1.1rem;
  display: flex;
}

.dr-msg {
  max-width: 86%;
  border-radius: .7rem;
  padding: .7rem .9rem;
  font-size: .86rem;
  line-height: 1.45;
}

.dr-msg--customer {
  background: #1b2430;
  border-end-start-radius: .15rem;
  align-self: flex-start;
}

.dr-msg--ai {
  background: #00e5ff12;
  border: 1px solid #00e5ff38;
  border-end-end-radius: .15rem;
  align-self: flex-end;
}

.dr-msg--human {
  background: #3382ff1f;
  border: 1px solid #3382ff59;
  border-end-end-radius: .15rem;
  align-self: flex-end;
}

.dr-msg__via, .dr-msg__who {
  color: var(--muted);
  align-items: center;
  gap: .35rem;
  margin-bottom: .3rem;
  font-size: .7rem;
  display: flex;
}

.dr-msg--card {
  align-items: flex-start;
  gap: .6rem;
  display: flex;
}

.dr-msg--card svg {
  color: var(--cyan);
  margin-top: .1rem;
}

.dr-msg--notice {
  max-width: none;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  align-self: stretch;
  padding: .5rem .75rem;
  font-size: .76rem;
}

.dr-typing {
  background: #00e5ff12;
  border: 1px solid #00e5ff38;
  border-radius: .7rem;
  align-self: flex-end;
  gap: .3rem;
  padding: .8rem .9rem;
  display: flex;
}

.dr-typing i {
  background: var(--cyan);
  border-radius: 50%;
  width: .35rem;
  height: .35rem;
  animation: .9s ease-in-out infinite alternate drTyping;
}

.dr-typing i:nth-child(2) {
  animation-delay: .15s;
}

.dr-typing i:nth-child(3) {
  animation-delay: .3s;
}

/* Waveform: transform-only bars. --static keeps fixed heights. */

.dr-wave {
  align-items: center;
  gap: 3px;
  height: 3.2rem;
  display: flex;
}

.dr-wave i {
  background: linear-gradient(var(--cyan), var(--blue));
  transform-origin: 50%;
  border-radius: 2px;
  flex: 1;
  max-width: 4px;
  height: 100%;
  transform: scaleY(.35);
}

.dr-wave i:nth-child(3n+1) {
  transform: scaleY(.55);
}

.dr-wave i:nth-child(4n+2) {
  transform: scaleY(.85);
}

.dr-wave i:nth-child(5n+3) {
  transform: scaleY(.25);
}

.dr-wave:not(.dr-wave--static) i {
  animation: 1.1s ease-in-out infinite alternate drWave;
}

.dr-wave:not(.dr-wave--static) i:nth-child(2n) {
  animation-delay: -.35s;
}

.dr-wave:not(.dr-wave--static) i:nth-child(3n) {
  animation-delay: -.7s;
  animation-duration: .9s;
}

.dr-wave:not(.dr-wave--static) i:nth-child(5n) {
  animation-delay: -.2s;
  animation-duration: 1.3s;
}

/* A. Hero */

.dr-hero {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 3vw;
  display: grid;
}

.dr-hero__copy {
  z-index: 4;
  position: relative;
}

.dr-hero h1 {
  font-size: clamp(2.7rem, 4.3vw, 5rem);
  line-height: .93;
}

.dr-hero h1 span {
  display: block;
}

.dr-hero h1 em {
  -webkit-text-stroke-color: var(--cyan);
  margin-top: .12em;
}

.dr-hero__copy > p {
  max-width: 31rem;
  color: var(--muted);
  margin-top: 2rem;
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  line-height: 1.7;
}

.dr-hero .hero-actions, .dr-cta .hero-actions {
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.dr-scene {
  z-index: 3;
  perspective: 1400px;
  position: relative;
}

/* Depth comes from a static tilt on each panel rather than on the stage: a
 * rotated stage makes Chrome depth-sort the panels and ignore z-index. */
.dr-scene__stage {
  height: 37rem;
  position: relative;
}

.dr-scene__channels, .dr-scene__console {
  transform: rotateY(-10deg) rotateX(4deg);
}

.dr-scene__channels {
  flex-direction: column;
  gap: 1.15rem;
  display: flex;
  position: absolute;
  top: 7.5rem;
  inset-inline-start: 0;
}

.dr-scene__channels li {
  align-items: center;
  display: flex;
}

.dr-channel {
  background: #0c1219;
  border: 1px solid #8896a540;
  border-radius: 99px;
  align-items: center;
  gap: .5rem;
  width: 8.4rem;
  padding: .55rem .8rem;
  font-size: .8rem;
  display: flex;
}

.dr-channel svg {
  color: var(--cyan);
}

.dr-link {
  background: linear-gradient(90deg, #00e5ff73, #00e5ff1a);
  width: 4rem;
  height: 1px;
  display: block;
  position: relative;
  overflow: hidden;
}

.dr-link b {
  background: linear-gradient(90deg, transparent, var(--cloud));
  width: 1.4rem;
  height: 1px;
  animation: 2.8s linear infinite drPulse;
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  transform: translate(-1.4rem);
}

.dr-scene__channels li:nth-child(2) .dr-link b {
  animation-delay: -.7s;
}

.dr-scene__channels li:nth-child(3) .dr-link b {
  animation-delay: -1.4s;
}

.dr-scene__channels li:nth-child(4) .dr-link b {
  animation-delay: -2.1s;
}

.dr-scene__console {
  z-index: 2;
  width: min(21rem, 100% - 12.4rem);
  position: absolute;
  top: 2.5rem;
  inset-inline-start: 12.4rem;
}

.dr-scene__call {
  z-index: 3;
  width: 15.5rem;
  position: absolute;
  top: -1.5rem;
  inset-inline-end: -2.5rem;
  transform: rotateY(-14deg) rotateX(4deg);
}

.dr-scene__call .dr-ui__title {
  white-space: nowrap;
}

.dr-scene__call .dr-wave {
  height: 2.2rem;
  margin: .8rem 1.1rem .4rem;
}

.dr-scene__call .dr-ui__meta {
  margin: 0 1.1rem .9rem;
  display: block;
}

.dr-scene__journey {
  z-index: 3;
  width: 14rem;
  position: absolute;
  bottom: -1.5rem;
  inset-inline-end: -2.5rem;
  transform: rotateY(-14deg) rotateX(4deg);
}

.dr-steps {
  padding: .9rem 1.1rem 1.1rem;
}

.dr-steps li {
  color: var(--muted);
  align-items: center;
  gap: .65rem;
  padding: .35rem 0;
  font-size: .8rem;
  display: flex;
}

.dr-steps li:before {
  content: "";
  border: 1px solid var(--muted);
  border-radius: 50%;
  flex: none;
  width: .6rem;
  height: .6rem;
}

.dr-steps .is-done {
  color: var(--cloud);
}

.dr-steps .is-done:before {
  background: var(--cyan);
  border-color: var(--cyan);
}

.dr-steps .is-current {
  color: var(--cyan);
}

.dr-steps .is-current:before {
  border-color: var(--cyan);
  box-shadow: 0 0 .6rem var(--cyan);
}

.motion-ready .dr-scene .dr-ui, .motion-ready .dr-scene__channels li {
  animation: drRise .9s var(--ease-reveal) both;
}

.motion-ready .dr-scene__channels li:nth-child(2) {
  animation-delay: .06s;
}

.motion-ready .dr-scene__channels li:nth-child(3) {
  animation-delay: .12s;
}

.motion-ready .dr-scene__channels li:nth-child(4) {
  animation-delay: .18s;
}

.motion-ready .dr-scene__console {
  animation-delay: .2s;
}

.motion-ready .dr-scene__call {
  animation-delay: .45s;
}

.motion-ready .dr-scene__journey {
  animation-delay: .6s;
}

.dr-hero[data-motion-state="idle"] .dr-link b, body.is-scrolling .dr-link b, [data-motion-state="idle"] .dr-wave i, body.is-scrolling .dr-wave i {
  animation-play-state: paused;
}

/* B. Problem */

.dr-problem__list {
  max-width: 32rem;
  margin-top: 2rem;
}

.dr-problem__list li {
  border-bottom: 1px solid var(--line);
  gap: .9rem;
  padding: .8rem 0;
  font-size: .92rem;
  line-height: 1.5;
  display: flex;
}

.dr-problem__list li:before {
  content: "";
  border: 1px solid var(--muted);
  flex: none;
  width: .5rem;
  height: .5rem;
  margin-top: .45rem;
}

.dr-scatter {
  min-height: 31rem;
  position: relative;
}

.dr-scatter:before {
  content: "";
  border: 1px dashed #8896a540;
  border-radius: 50%;
  position: absolute;
  inset: 12% 14%;
}

.dr-scatter__item {
  background: #0b1016;
  border: 1px dashed #8896a573;
  border-radius: .45rem;
  width: 15.5rem;
  padding: 1rem 1.1rem;
  position: absolute;
}

.dr-scatter__src {
  color: var(--muted);
  align-items: center;
  gap: .4rem;
  margin-bottom: .55rem;
  font-size: .72rem;
  display: flex;
}

.dr-scatter__item strong {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.35;
  display: block;
}

.dr-scatter__item small {
  color: #ffc46b;
  margin-top: .5rem;
  font-size: .74rem;
  display: block;
}

.dr-scatter__item--a {
  top: 0;
  inset-inline-start: 2%;
  transform: rotate(-3deg);
}

.dr-scatter__item--b {
  top: 3.5rem;
  inset-inline-end: 0;
  transform: rotate(2.5deg);
}

.dr-scatter__item--c {
  top: 12rem;
  inset-inline-start: 22%;
  transform: rotate(-1deg);
}

.dr-scatter__item--d {
  bottom: 1.5rem;
  inset-inline-start: 0;
  transform: rotate(2deg);
}

.dr-scatter__item--e {
  bottom: 0;
  inset-inline-end: 4%;
  transform: rotate(-2.5deg);
}

/* C. Unified flow */

.dr-flow {
  counter-reset: drStep;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 3.5rem;
  display: grid;
}

.dr-flow li {
  counter-increment: drStep;
  padding-inline-end: 2rem;
  position: relative;
}

.dr-flow li:after {
  content: "";
  background: var(--line);
  height: 1px;
  position: absolute;
  top: 1.6rem;
  inset-inline-start: 3.2rem;
  inset-inline-end: 0;
}

.dr-flow li:before {
  content: "";
  background: var(--cyan);
  transform-origin: 0;
  height: 1px;
  transition: transform .9s var(--ease-system);
  z-index: 1;
  position: absolute;
  top: 1.6rem;
  inset-inline-start: 3.2rem;
  inset-inline-end: 0;
  transform: scaleX(0);
}

.dr-flow li:nth-child(4n):after, .dr-flow li:nth-child(4n):before, .dr-flow li:last-child:after, .dr-flow li:last-child:before {
  display: none;
}

.dr-flow li.is-passed:before {
  transform: scaleX(1);
}

.dr-flow__node {
  background: var(--obsidian);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .4s, border-color .4s, box-shadow .4s;
  border-radius: .4rem;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  position: relative;
}

.dr-flow__node svg {
  width: 1.3rem;
  height: 1.3rem;
}

.dr-flow__branch .dr-flow__node {
  border-style: dashed;
}

.dr-flow li.is-active .dr-flow__node, .dr-flow li.is-passed .dr-flow__node {
  color: var(--cyan);
  border-color: var(--cyan);
}

.dr-flow li.is-active .dr-flow__node {
  box-shadow: 0 0 1.4rem #00e5ff40;
}

.dr-flow h3 {
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin: 1.4rem 0 .6rem;
  font: 500 1.02rem / 1.25 var(--font-brand);
}

.dr-flow h3:before {
  content: counter(drStep, decimal-leading-zero);
  color: var(--cyan);
  letter-spacing: .14em;
  margin-bottom: .55rem;
  font: 500 .66rem / 1 var(--font-interface);
  display: block;
}

.dr-flow p {
  max-width: 15rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}

/* D. AI demo */

.dr-demo__label {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 99px;
  padding: .25rem .7rem;
  font-size: .72rem;
}

.dr-demo__body {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  display: grid;
}

.dr-demo__chat {
  border-inline-end: 1px solid var(--line);
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.dr-demo__chat > .dr-pane-title, .dr-demo__side > .dr-pane-title {
  padding: 1.1rem 1.1rem 0;
}

.dr-demo__log {
  overscroll-behavior: contain;
  height: 25rem;
  overflow-y: auto;
}

.dr-demo__choices {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: .55rem;
  padding: 1rem 1.1rem;
  display: flex;
}

.dr-demo__choices button {
  color: var(--cloud);
  border: 1px solid #8896a566;
  border-radius: 99px;
  min-height: 2.75rem;
  padding: .55rem 1rem;
  font-size: .82rem;
  transition: color .25s, border-color .25s, background .25s;
  background: none;
}

.dr-demo__choices button:hover:not(:disabled) {
  color: var(--cyan);
  border-color: var(--cyan);
}

.dr-demo__choices button.is-done {
  color: var(--muted);
}

.dr-demo__choices button.is-done:before {
  content: "✓ ";
  color: var(--cyan);
}

.dr-demo__choices button:disabled {
  cursor: default;
  opacity: .45;
}

.dr-demo__choices .dr-demo__reset {
  color: var(--muted);
  border-color: transparent;
  margin-inline-start: auto;
}

.dr-demo__side {
  min-width: 0;
}

.dr-rules {
  border: 1px solid var(--line);
  border-radius: .35rem;
  margin: 0 1.1rem 1.1rem;
  padding: .9rem 1rem;
}

.dr-rules__title {
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
  font-size: .8rem;
  font-weight: 600;
  display: flex;
}

.dr-rules__title svg {
  color: var(--cyan);
}

.dr-rules li {
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem 0;
  font-size: .8rem;
  display: flex;
}

.dr-rules b {
  font-weight: 500;
}

.dr-allow {
  color: var(--cyan);
}

.dr-deny {
  color: #ffc46b;
}

.dr-activity {
  overscroll-behavior: contain;
  max-height: 19.5rem;
  padding: 0 1.1rem 1.1rem;
  overflow-y: auto;
}

.dr-activity li {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: .6rem;
  padding: .65rem 0;
  font-size: .82rem;
  line-height: 1.45;
  display: grid;
}

.dr-activity li svg {
  color: var(--cyan);
  margin-top: .1rem;
}

.dr-activity li.dr-activity--human svg {
  color: #8fb6ff;
}

.dr-activity li.dr-activity--alert svg {
  color: #ffc46b;
}

.dr-activity small {
  color: var(--muted);
  margin-top: .15rem;
  font-size: .74rem;
  display: block;
}

.dr-activity .dr-activity__empty {
  color: var(--muted);
  border: 0;
  display: block;
}

.dr-js .dr-enter {
  animation: drEnter .45s var(--ease-reveal) both;
}

/* E. Voice */

.dr-callcenter__live {
  padding: 1.25rem 1.25rem 1.1rem;
}

.dr-callcenter__caller {
  align-items: center;
  gap: .8rem;
  display: flex;
}

.dr-callcenter__caller strong {
  font-size: .9rem;
  display: block;
}

.dr-callcenter__caller small {
  color: var(--muted);
  font-size: .76rem;
}

.dr-callcenter__caller .dr-status {
  color: var(--cyan);
  margin-inline-start: auto;
}

.dr-callcenter .dr-wave {
  margin: 1.2rem 0 .9rem;
}

.dr-callcenter__line {
  color: var(--muted);
  font-size: .86rem;
  font-style: italic;
}

.dr-callcenter__grid {
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}

.dr-ivr, .dr-queue {
  padding: 1.1rem 1.25rem 1.25rem;
}

.dr-ivr {
  border-inline-end: 1px solid var(--line);
}

.dr-ivr li {
  color: var(--muted);
  align-items: center;
  gap: .7rem;
  padding: .4rem 0;
  font-size: .82rem;
  display: flex;
}

.dr-ivr b {
  border: 1px solid var(--line);
  border-radius: .25rem;
  flex: none;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  font-weight: 500;
  display: grid;
}

.dr-ivr .is-current {
  color: var(--cloud);
}

.dr-ivr .is-current b {
  color: var(--cyan);
  border-color: var(--cyan);
}

.dr-queue li {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  font-size: .82rem;
  display: flex;
}

/* F. Team queue */

.dr-tasks li {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  padding: .95rem 1.1rem;
  display: grid;
}

.dr-task__src {
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
}

.dr-tasks strong {
  font-size: .88rem;
  font-weight: 600;
  display: block;
}

.dr-tasks small {
  color: var(--muted);
  margin-top: .2rem;
  font-size: .76rem;
  display: block;
}

.dr-task--escalated {
  background: linear-gradient(90deg, #ffc46b12, transparent 70%);
  box-shadow: inset 2px 0 #ffc46b;
}

.dr-task--escalated .dr-task__src {
  color: #ffc46b;
}

.dr-task__action {
  color: var(--obsidian);
  background: var(--cyan);
  border-radius: 99px;
  grid-column: 2 / -1;
  justify-self: start;
  padding: .35rem .8rem;
  font-size: .74rem;
  font-weight: 600;
}

.dr-routing {
  padding: 1.1rem 1.1rem 1.25rem;
}

.dr-routing li {
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) 1rem minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  font-size: .82rem;
  display: grid;
}

.dr-routing svg {
  color: var(--muted);
}

.dr-routing li span:last-child {
  color: #8fb6ff;
}

.dr-js .dr-team:not(.is-in) .dr-task--escalated {
  opacity: 0;
  transform: translateY(-.8rem);
}

.dr-team .dr-task--escalated {
  transition: opacity .6s var(--ease-reveal) .3s, transform .7s var(--ease-reveal) .3s;
}

/* G. Customer record */

.dr-record__body {
  grid-template-columns: 15rem minmax(0, 1fr) 15rem;
  display: grid;
}

.dr-record__profile {
  border-inline-end: 1px solid var(--line);
  flex-direction: column;
  align-items: flex-start;
  padding: 1.4rem;
  display: flex;
}

.dr-record__profile > strong {
  margin-top: .9rem;
  font-size: 1.05rem;
}

.dr-record__profile > small {
  color: var(--muted);
  align-items: center;
  gap: .35rem;
  margin-top: .3rem;
  font-size: .76rem;
  display: flex;
}

.dr-record__profile dl {
  align-self: stretch;
  margin-top: 1.4rem;
}

.dr-record__profile dl div {
  border-top: 1px solid var(--line);
  padding: .6rem 0;
}

.dr-record__profile dt, .dr-workflow dt {
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .64rem;
  font-weight: 500;
}

.dr-record__profile dd {
  margin: .25rem 0 0;
  font-size: .84rem;
}

.dr-record__main {
  min-width: 0;
  padding: 1.4rem;
}

.dr-pipeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .35rem;
  margin-bottom: 1.6rem;
  display: grid;
}

.dr-pipeline li {
  color: var(--muted);
  text-align: center;
  border-top: 3px solid #8896a533;
  padding-top: .6rem;
  font-size: .74rem;
  transition: color .5s, border-color .5s;
}

.dr-pipeline .is-done {
  color: var(--cloud);
  border-color: var(--cyan);
}

.dr-pipeline .is-current {
  color: var(--cyan);
  border-color: var(--cyan);
  font-weight: 600;
}

.dr-js .dr-crm:not(.is-in) .dr-pipeline li {
  color: var(--muted);
  border-color: #8896a533;
}

.dr-pipeline li:nth-child(2) {
  transition-delay: .25s;
}

.dr-pipeline li:nth-child(3) {
  transition-delay: .5s;
}

.dr-pipeline li:nth-child(4) {
  transition-delay: .75s;
}

.dr-timeline li {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .6rem 0;
  font-size: .84rem;
  line-height: 1.45;
  display: grid;
}

.dr-timeline time {
  color: var(--muted);
  font-size: .76rem;
}

.dr-timeline b {
  font-weight: 600;
}

.dr-record__next {
  border-inline-start: 1px solid var(--line);
  background: linear-gradient(180deg, #00e5ff0a, transparent);
  padding: 1.4rem;
}

.dr-record__next strong {
  font: 500 1rem / 1.35 var(--font-brand);
  display: block;
}

.dr-record__next small {
  color: var(--muted);
  margin-top: .6rem;
  font-size: .78rem;
  display: block;
}

/* H. Dashboard */

.dr-board__kpis {
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
}

.dr-board__kpis div {
  border-inline-end: 1px solid var(--line);
  padding: 1.25rem 1.4rem;
}

.dr-board__kpis div:last-child {
  border-inline-end: 0;
}

.dr-board__kpis span {
  color: var(--muted);
  font-size: .78rem;
  display: block;
}

.dr-board__kpis strong {
  margin-top: .4rem;
  font: 500 2.1rem / 1 var(--font-brand);
  display: block;
}

.dr-board__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}

.dr-chart {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 1.4rem;
}

.dr-chart:nth-child(odd) {
  border-inline-end: 1px solid var(--line);
}

.dr-chart:nth-last-child(-n+2) {
  border-bottom: 0;
}

.dr-chart figcaption {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: .8rem;
}

.dr-bars li {
  grid-template-columns: 5.5rem minmax(0, 1fr) 3.2rem;
  align-items: center;
  gap: .8rem;
  padding: .4rem 0;
  font-size: .82rem;
  display: grid;
}

.dr-bars--team li {
  grid-template-columns: 5.5rem minmax(0, 1fr) 4.2rem;
}

.dr-bars i {
  background: #ffffff0f;
  border-radius: 99px;
  height: .55rem;
  position: relative;
  overflow: hidden;
}

.dr-bars i:after {
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform-origin: 0;
  transform: scaleX(var(--v));
  transition: transform 1s var(--ease-system);
  border-radius: inherit;
  position: absolute;
  inset: 0;
}

.dr-bars b, .dr-funnel b {
  text-align: end;
  font-weight: 500;
}

.dr-line {
  clip-path: inset(0 -1% 0 0);
  width: 100%;
  height: 8rem;
  transition: clip-path 1.4s var(--ease-system);
  display: block;
  overflow: visible;
}

.dr-line path {
  vector-effect: non-scaling-stroke;
}

.dr-chart__note {
  color: var(--muted);
  margin-top: .6rem;
  font-size: .72rem;
}

.dr-line__grid {
  stroke: var(--line);
  stroke-width: 1px;
  fill: none;
}

.dr-line__area {
  fill: #00e5ff14;
}

.dr-line__path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2px;
}

.dr-line__axis {
  color: var(--muted);
  justify-content: space-between;
  margin-top: .5rem;
  font-size: .72rem;
  display: flex;
}

.dr-funnel li {
  width: calc(var(--v) * 100%);
  background: linear-gradient(90deg, #3382ff40, #00e5ff26);
  transform-origin: 0;
  transition: transform 1s var(--ease-system);
  border-radius: .25rem;
  justify-content: space-between;
  min-width: 9rem;
  margin-bottom: .4rem;
  padding: .55rem .8rem;
  font-size: .82rem;
  display: flex;
}

.dr-js .dr-board:not(.is-in) .dr-bars i:after, .dr-js .dr-board:not(.is-in) .dr-funnel li {
  transform: scaleX(0);
}

.dr-js .dr-board:not(.is-in) .dr-line {
  clip-path: inset(0 100% 0 0);
}

/* I + J. Customization and industries */

.dr-blocks {
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  display: grid;
}

.dr-blocks li {
  border-bottom: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  padding: 1.6rem;
}

.dr-blocks svg {
  color: var(--cyan);
  width: 1.4rem;
  height: 1.4rem;
}

.dr-blocks strong {
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin: 1rem 0 .4rem;
  font: 500 1rem / 1.3 var(--font-brand);
  display: block;
}

.dr-blocks span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.dr-industries {
  margin-top: 7rem;
}

.dr-industries__title {
  max-width: 40rem;
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1;
}

.dr-tabs {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.dr-tabs button {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  min-height: 2.75rem;
  padding: .55rem 1.1rem;
  font-size: .84rem;
  transition: color .25s, border-color .25s, background .25s;
  background: none;
}

.dr-tabs button:hover {
  color: var(--cloud);
  border-color: #8896a599;
}

.dr-tabs button[aria-selected="true"] {
  color: var(--obsidian);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 600;
}

.dr-tabpanel {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #12182099, #080b0f);
  border-radius: .45rem;
  margin-top: 1.25rem;
  padding: 2rem;
}

.dr-tabpanel + .dr-tabpanel {
  margin-top: 1rem;
}

.dr-tabpanel__lead {
  max-width: 44rem;
  font: 400 clamp(1.1rem, 1.6vw, 1.35rem) / 1.45 var(--font-brand);
}

.dr-workflow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
  display: grid;
}

.dr-workflow div {
  border-top: 1px solid var(--line-active);
  padding-top: .9rem;
}

.dr-workflow dd {
  margin: .5rem 0 0;
  font-size: .9rem;
  line-height: 1.55;
}

.dr-facts {
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 6rem;
  padding-top: 2.5rem;
  display: grid;
}

.dr-facts h3 {
  color: var(--cloud);
  letter-spacing: .14em;
  margin-bottom: .9rem;
  font: 500 .72rem / 1.2 var(--font-interface);
}

.dr-facts p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.7;
}

/* L. Conversion */

.dr-cta {
  background: radial-gradient(circle at 78% 55%, #00e5ff1a, transparent 30%), var(--obsidian);
  min-height: 0;
}

.dr-cta .button-link {
  margin: 0;
}

/* Keyframes */

@keyframes drPulse {
  to {
    transform: translate(5.4rem);
  }
}

@keyframes drWave {
  0% {
    transform: scaleY(.2);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes drTyping {
  to {
    opacity: .25;
  }
}

@keyframes drRise {
  0% {
    opacity: 0;
    translate: 0 1.2rem;
  }

  to {
    opacity: 1;
    translate: 0;
  }
}

@keyframes drEnter {
  0% {
    opacity: 0;
    transform: translateY(.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 1180px) {
  .dr-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  .dr-scene {
    width: min(100%, 44rem);
    justify-self: center;
  }

  .dr-record__body {
    grid-template-columns: 13rem minmax(0, 1fr);
  }

  .dr-record__next {
    border-top: 1px solid var(--line);
    border-inline-start: 0;
    grid-column: 1 / -1;
  }
}

@media (max-width: 1050px) {
  .dr-split, .dr-split--head {
    grid-template-columns: minmax(0, 1fr);
  }

  .dr-split--reverse > .dr-copy {
    order: 0;
  }

  .dr-head {
    display: block;
  }

  .dr-head > p {
    margin-top: 2rem;
  }

  .dr-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dr-flow li:nth-child(4n):after, .dr-flow li:nth-child(4n):before {
    display: block;
  }

  .dr-flow li:nth-child(2n):after, .dr-flow li:nth-child(2n):before {
    display: none;
  }

  .dr-blocks, .dr-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dr-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dr-page .section-shell h2 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .dr-hero h1 {
    font-size: clamp(2.6rem, 11.5vw, 3.6rem);
  }

  /* Mobile scene: channels as a row above one console; no 3D, no extra panels. */
  .dr-scene {
    perspective: none;
    width: 100%;
  }

  .dr-scene__stage {
    flex-direction: column;
    gap: .9rem;
    height: auto;
    display: flex;
  }

  .dr-scene__channels, .dr-scene__console {
    transform: none;
  }

  .dr-scene__channels {
    flex-flow: wrap;
    gap: .5rem;
    position: static;
  }

  .dr-channel {
    width: auto;
  }

  .dr-link, .dr-scene__call, .dr-scene__journey {
    display: none;
  }

  .dr-scene__console {
    width: 100%;
    position: static;
  }

  .dr-scatter {
    min-height: 0;
    flex-direction: column;
    gap: .8rem;
    display: flex;
  }

  .dr-scatter:before {
    display: none;
  }

  .dr-scatter__item {
    width: min(100%, 17rem);
    position: static;
  }

  .dr-scatter__item:nth-child(even) {
    align-self: flex-end;
  }

  .dr-flow {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .dr-flow li {
    min-height: 7.5rem;
    padding-block: 0 2rem; padding-inline: 4.6rem 0;
  }

  .dr-flow__node {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
  }

  .dr-flow li:after, .dr-flow li:before, .dr-flow li:nth-child(2n):after, .dr-flow li:nth-child(2n):before {
    width: 1px;
    height: auto;
    display: block;
    top: 3.2rem;
    bottom: 0;
    inset-inline-start: 1.6rem;
    inset-inline-end: auto;
  }

  .dr-flow li:before {
    transform-origin: top;
    transform: scaleY(0);
  }

  .dr-flow li.is-passed:before {
    transform: scaleY(1);
  }

  .dr-flow li:last-child:after, .dr-flow li:last-child:before {
    display: none;
  }

  .dr-flow h3 {
    margin-top: 0;
  }

  .dr-flow p {
    max-width: none;
  }

  .dr-demo .dr-ui__bar, .dr-board > .dr-ui__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dr-demo__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .dr-demo__chat {
    border-bottom: 1px solid var(--line);
    border-inline-end: 0;
  }

  .dr-demo__log {
    height: 18rem;
  }

  .dr-activity {
    max-height: 16rem;
  }

  .dr-demo__choices .dr-demo__reset {
    margin-inline-start: 0;
  }

  .dr-callcenter__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dr-ivr {
    border-bottom: 1px solid var(--line);
    border-inline-end: 0;
  }

  .dr-record__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .dr-record__profile {
    border-bottom: 1px solid var(--line);
    border-inline-end: 0;
  }

  .dr-pipeline li {
    font-size: .66rem;
  }

  .dr-timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: .2rem;
  }

  .dr-board__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dr-board__kpis div:nth-child(2) {
    border-inline-end: 0;
  }

  .dr-board__kpis div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .dr-board__grid, .dr-blocks, .dr-facts, .dr-workflow {
    grid-template-columns: minmax(0, 1fr);
  }

  .dr-chart:nth-child(odd) {
    border-inline-end: 0;
  }

  .dr-chart:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .dr-tabpanel {
    padding: 1.4rem;
  }

  .dr-industries {
    margin-top: 5rem;
  }

  .dr-facts {
    gap: 2rem;
    margin-top: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dr-link b, .dr-wave i, .dr-typing i {
    animation: none !important;
  }

  .dr-flow li:before, .dr-bars i:after, .dr-funnel li, .dr-line, .dr-pipeline li, .dr-team .dr-task--escalated {
    transition: none !important;
  }
}

/* Arabic / RTL
 *
 * Positions and spacing mirror through logical properties. These rules mirror
 * what is directional by meaning: the hero's tilt and signal flow (channels
 * on the right feed the console on the left), chart growth and time axes,
 * connector lines and arrows. Product text, logos and check marks are not
 * mirrored. */

[dir="rtl"] .dr-scene__channels, [dir="rtl"] .dr-scene__console {
  transform: rotateY(10deg) rotateX(4deg);
}

[dir="rtl"] .dr-scene__call, [dir="rtl"] .dr-scene__journey {
  transform: rotateY(14deg) rotateX(4deg);
}

[dir="rtl"] .dr-link {
  background: linear-gradient(270deg, #00e5ff73, #00e5ff1a);
}

[dir="rtl"] .dr-link b {
  background: linear-gradient(270deg, transparent, var(--cloud));
  animation-name: drPulseRtl;
  transform: translate(1.4rem);
}

@keyframes drPulseRtl {
  to {
    transform: translate(-5.4rem);
  }
}

[dir="rtl"] .dr-flow li:before, [dir="rtl"] .dr-bars i:after, [dir="rtl"] .dr-funnel li {
  transform-origin: 100%;
}

[dir="rtl"] .dr-bars i:after {
  background: linear-gradient(270deg, var(--blue), var(--cyan));
}

[dir="rtl"] .dr-funnel li {
  background: linear-gradient(270deg, #3382ff40, #00e5ff26);
}

/* The time axis reads right to left, so the trend line is mirrored with it. */
[dir="rtl"] .dr-line {
  transform: scaleX(-1);
}

[dir="rtl"] .dr-task--escalated {
  background: linear-gradient(270deg, #ffc46b12, transparent 70%);
  box-shadow: inset -2px 0 #ffc46b;
}

[dir="rtl"] .dr-routing svg {
  transform: scaleX(-1);
}

[dir="rtl"] .dr-demo__choices button.is-done:before {
  content: "✓ ";
}

@media (max-width: 720px) {
  [dir="rtl"] .dr-flow li:before {
    transform-origin: top;
  }
}

@media (max-width: 720px) {
  [dir="rtl"] .dr-scene__channels, [dir="rtl"] .dr-scene__console {
    transform: none;
  }
}

html[lang="ar"] :is(.dr-pane-title, .dr-facts h3, .dr-flow h3:before, .dr-record__profile dt, .dr-workflow dt, .dr-demo__label, .dr-status, .dr-tag) {
  font-size: .8rem;
}
