.process {
  background: var(--bg-2);
  position: relative;
  padding: var(--s4) 0 var(--s3);
}

.proc-carousel {
  margin-top: var(--s2);
  position: relative;
}

.proc-viewport {
  overflow: hidden;
  border-radius: var(--r-xl);
  touch-action: pan-y;
}
.proc-track {
  display: flex;
  will-change: transform;
  transition: transform .5s cubic-bezier(.65,.05,.2,1);
}
.proc-track.is-dragging {
  transition: none;
}

.proc-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  gap: 28px;
  align-content: start;
  padding: 4px;
  opacity: .35;
  transition: opacity .4s ease;
}
.proc-slide.is-active { opacity: 1; }

.proc-copy { align-self: center; }
.proc-num {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-50, oklch(95% 0.04 252));
  margin-bottom: 14px;
}
.proc-copy h3 {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 10px;
}
.proc-copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0;
}

.proc-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line-2);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.proc-tip svg {
  width: 17px; height: 17px;
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 1px;
}
.proc-tip strong { color: var(--ink); font-weight: 700; }

.proc-visual {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--ink) 0%, oklch(25% 0.05 252) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--white);
}
.proc-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, oklch(58% 0.22 252 / 0.45), transparent 45%),
    radial-gradient(circle at 80% 90%, oklch(78% 0.22 145 / 0.35), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}
.proc-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}

.proc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}
.proc-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: var(--white);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
  flex-shrink: 0;
}
.proc-arrow svg { width: 20px; height: 20px; }
.proc-arrow:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.proc-arrow:disabled { opacity: .32; cursor: not-allowed; }
.proc-arrow:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.proc-dots { display: flex; align-items: center; gap: 10px; }
.proc-dot {
  width: 10px; height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line-2);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.proc-dot.is-active { width: 30px; background: var(--blue); }
.proc-dot:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.proc-swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  transition: opacity .3s ease;
}
.proc-swipe-hint svg { width: 15px; height: 15px; }
.proc-swipe-hint.is-hidden { opacity: 0; }

@media (min-width: 720px) {
  .proc-slide {
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
    align-content: center;
    padding: 8px;
  }
  .proc-visual { aspect-ratio: 1 / 1; }
  .proc-swipe-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .proc-track { transition: none; }
  .proc-slide { transition: none; }
}

.scene {
  position: absolute;
  inset: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.7,.1,.2,1), transform .55s cubic-bezier(.7,.1,.2,1);
  pointer-events: none;
}
.proc-slide.is-active .scene { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scene-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: oklch(80% 0.04 252);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.scene-header .ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: oklch(30% 0.06 252);
  color: var(--green);
  display: grid; place-items: center;
}
.scene-header .ico svg { width: 14px; height: 14px; }

.scene-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  flex-shrink: 0;
  border: 2px solid oklch(45% 0.06 252);
}

.scene-cta {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.scene-cta:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}
@media (hover: hover) {
  .proc-visual { transition: transform .2s ease, box-shadow .2s ease; }
  .proc-slide.is-active .proc-visual:has(.scene-cta:hover) {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px oklch(20% 0.05 252 / 0.34);
  }
}

.cmp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: oklch(28% 0.04 252);
  border: 1px solid oklch(35% 0.04 252);
  transform: translateY(20px);
  opacity: 0;
  animation: cmpIn .6s cubic-bezier(.7,.1,.2,1) forwards;
}
.proc-slide.is-active .cmp-row:nth-child(2) { animation-delay: .1s; }
.proc-slide.is-active .cmp-row:nth-child(3) { animation-delay: .25s; }
.proc-slide.is-active .cmp-row:nth-child(4) { animation-delay: .4s; }
@keyframes cmpIn { to { transform: translateY(0); opacity: 1; } }
.cmp-row.winner {
  background: linear-gradient(135deg, var(--green), oklch(70% 0.22 145));
  color: oklch(20% 0.08 145);
  border-color: transparent;
  animation: cmpIn .6s cubic-bezier(.7,.1,.2,1) .55s forwards, winnerPulse 2.4s ease-in-out 1.4s infinite;
}
@keyframes winnerPulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(78% 0.22 145 / 0.4); }
  50%      { box-shadow: 0 0 0 14px oklch(78% 0.22 145 / 0); }
}
.cmp-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: oklch(40% 0.05 252);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  color: var(--white);
  flex-shrink: 0;
}
.cmp-row.winner .cmp-mark { background: oklch(28% 0.08 145); color: var(--green); }

.cmp-mark--green  { background: var(--green); }
.cmp-mark--blue   { background: var(--blue); }
.cmp-mark--yellow { background: oklch(82% 0.16 88); }
.cmp-body { flex: 1; min-width: 0; }
.cmp-body strong { display: block; font-size: 13px; font-weight: 700; }
.cmp-body small { display: block; font-size: 11px; opacity: 0.6; }
.cmp-row.winner .cmp-body small { opacity: 0.7; }
.cmp-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.cmp-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 999px;
  background: oklch(28% 0.08 145);
  color: var(--green);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  animation: bubbleIn .5s cubic-bezier(.7,.1,.2,1) forwards;
}
.bubble.them {
  align-self: flex-start;
  background: oklch(30% 0.04 252);
  border-bottom-left-radius: 5px;
}
.bubble.me {
  align-self: flex-end;
  background: var(--blue);
  color: var(--white);
  border-bottom-right-radius: 5px;
}
.proc-slide.is-active .bubble:nth-child(2) { animation-delay: .2s; }
.proc-slide.is-active .bubble:nth-child(3) { animation-delay: .55s; }
.proc-slide.is-active .bubble:nth-child(4) { animation-delay: .95s; }
.proc-slide.is-active .bubble:nth-child(5) { animation-delay: 1.35s; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }
.typing {
  display: inline-flex; gap: 4px;
  align-items: center;
}
.typing span {
  width: 6px; height: 6px;
  background: oklch(70% 0.04 252);
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.bill {
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bill-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.bill-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.bill-row:last-child { border-bottom: none; }
.bill-row .lab { font-size: 13px; color: var(--ink-2); }
.bill-row .val { font-family: var(--display); font-weight: 700; font-size: 15px; }
.bill-row.old .val {
  text-decoration: line-through;
  color: var(--ink-3);
}
.bill-row.new .val {
  color: oklch(40% 0.18 145);
  font-size: 18px;
}
.savings-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--green), oklch(85% 0.18 145));
  color: oklch(20% 0.08 145);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  align-self: flex-start;
  animation: pillBounce .6s cubic-bezier(.34, 1.56, .64, 1) .8s both;
}
@keyframes pillBounce {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.savings-pill svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .scene, .proc-slide.is-active .cmp-row, .proc-slide.is-active .bubble {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 719px) {

  .proc-slide { gap: 16px; }
  .proc-visual {
    min-height: 0;
    max-height: none;

    height: clamp(268px, 33vh, 300px);
    aspect-ratio: auto;
  }
  .proc-copy h3 { font-size: 24px; }
  .proc-copy p { font-size: 15px; line-height: 1.55; }
  .proc-num { margin-bottom: 10px; }
  .proc-tip { margin-top: 12px; padding: 10px 12px; font-size: 12.5px; }

  .scene { padding: 13px; gap: 7px; }
  .scene-header { font-size: 11px; letter-spacing: .08em; }
  .scene-header .ico { width: 24px; height: 24px; }
  .scene-avatar { width: 32px; height: 32px; }
  .cmp-row { padding: 8px 11px; gap: 10px; border-radius: 12px; }
  .cmp-mark { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; }
  .cmp-body strong { font-size: 12.5px; line-height: 1.3; }
  .cmp-body small { font-size: 10.5px; line-height: 1.3; }
  .cmp-price { font-size: 13px; }
  .cmp-tag { font-size: 9px; padding: 3px 6px; }
  .chat { gap: 6px; }
  .bubble { max-width: 84%; padding: 7px 11px; font-size: 12.5px; line-height: 1.3; border-radius: 14px; }
}
