.process {
  background: var(--ink);
  color: var(--paper);
  padding: 128px var(--pad) 120px;
  border-top: 1px solid rgba(242, 238, 232, .12);
  font-family: var(--body);
}
.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 120px;
  row-gap: 40px;
  align-items: center;
  max-width: 1336px;
  margin: 0 auto;
}
.process-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  display: grid;
  gap: 40px;
  justify-items: start;
  min-width: 0;
}
.process-intro h2 {
  margin: 0;
  color: var(--paper);
  font: 900 80px / .98 var(--mono);
  letter-spacing: -.055em;
  text-wrap: balance;
}
.process-intro > p {
  margin: 20px 0 0;
  color: var(--grey);
  font: 400 19px / 1.55 var(--body);
}
.process-steps {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.process-steps button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8d9195;
  font: 600 20px / 1.3 var(--mono);
  letter-spacing: -.02em;
  cursor: pointer;
  transition: color 160ms;
}
.process-steps button > span { width: 16px; font-size: 13px; font-weight: 600; }
.process-steps button:hover { color: var(--grey); }
.process-steps button[aria-current="step"] { color: var(--paper); }
.process-steps button[aria-current="step"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9d4dc;
}
.process-actions {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  min-width: 0;
}
.process-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 58px;
  min-width: 220px;
  padding: 0 24px;
  border: 1px solid rgba(242, 238, 232, .28);
  border-radius: var(--btn-radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 24px rgba(0, 0, 0, .2);
  font: 600 13px / 1.5 var(--mono);
  text-decoration: none;
}
.process-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  font: 600 13px / 1.5 var(--mono);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.process-phone-wrap {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  gap: 20px;
  justify-items: center;
  min-width: 0;
}
.process-phone {
  width: 390px;
  padding: 12px;
  border-radius: 54px;
  background: var(--paper);
  box-shadow: 0 70px 120px -50px rgba(0, 0, 0, .9), inset 0 2px 0 rgba(255, 255, 255, .7);
}
.process-screen {
  display: flex;
  flex-direction: column;
  height: 560px;
  overflow: hidden;
  border-radius: 43px;
  background: #17181b;
}
.process-phone-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 26px 22px 16px;
  border-bottom: 1px solid rgba(242, 238, 232, .13);
}
.process-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
}
.process-avatar img { display: block; width: 20px; height: 19px; }
.process-phone-header strong { display: block; font: 600 16px / 1.4 var(--mono); }
.process-phone-header div > span { display: block; color: var(--grey); font: 400 13px / 1.5 var(--body); }
.process-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 0;
  padding: 20px 16px 24px;
  overflow-y: auto;
}
.process-step-label {
  align-self: center;
  margin: 0 0 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #26282d;
  color: var(--grey);
  font: 600 12px / 1.5 var(--mono);
}
.process-bubble {
  flex: 0 0 auto;
  max-width: 84%;
  margin: 0;
  padding: 10px 15px;
  border-radius: 18px;
  font: 400 15px / 1.45 var(--body);
  overflow-wrap: anywhere;
}
.process-bubble--you { align-self: flex-end; background: var(--paper); color: var(--ink); }
.process-bubble--you.is-run-end { border-bottom-right-radius: 6px; }
.process-bubble--jay {
  align-self: flex-start;
  background: #26282d;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(242, 238, 232, .08);
}
.process-bubble--jay.is-run-end { border-bottom-left-radius: 6px; }
.process-bubble.is-new { animation: process-bubble-in 220ms cubic-bezier(.2, .8, .2, 1) both; }
.process-typing {
  display: flex;
  align-self: flex-start;
  gap: 5px;
  padding: 13px 15px;
  border-radius: 18px 18px 18px 6px;
  background: #26282d;
}
.process-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grey);
  animation: process-typing-dot 1.2s ease-in-out infinite;
}
.process-typing span:nth-child(2) { animation-delay: .15s; }
.process-typing span:nth-child(3) { animation-delay: .3s; }
.process-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.process-controls button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(242, 238, 232, .28);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font: 600 12px / 1.5 var(--mono);
  cursor: pointer;
}
.process-controls [data-process-next] { background: var(--paper); color: var(--ink); }
.process-controls button:disabled { opacity: .35; cursor: default; }
.process-counter { color: #8d9195; font: 600 12px / 1.5 var(--mono); white-space: nowrap; }
.process button:focus-visible, .process a:focus-visible { outline: 2px solid #506474; outline-offset: 3px; }
.process-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes process-bubble-in {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes process-typing-dot {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .process-layout { column-gap: 48px; }
  .process-intro h2 { font-size: clamp(54px, 6vw, 72px); }
}
@media (max-width: 760px) {
  .process { padding: 72px 20px 80px; }
  .process-layout { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .process-copy { display: contents; }
  .process-intro h2 { font-size: 46px; }
  .process-steps { display: flex; flex-wrap: wrap; gap: 6px; }
  .process-steps button {
    padding: 0 14px;
    border: 1px solid rgba(242, 238, 232, .24);
    border-radius: 999px;
    font-size: 13px;
  }
  .process-steps button[aria-current="step"] { background: var(--paper); color: var(--ink); }
  .process-steps button[aria-current="step"]::after { display: none; }
  .process-phone-wrap, .process-actions { grid-column: 1; grid-row: auto; }
  .process-phone-wrap { width: 100%; max-width: 350px; justify-self: center; }
  .process-phone { width: 100%; max-width: 350px; padding: 10px; border-radius: 46px; }
  .process-screen { height: 470px; border-radius: 37px; }
  .process-actions { gap: 16px 28px; }
  .process-cta { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .process-steps button { transition: none; }
  .process-bubble.is-new, .process-typing span { animation: none; }
}
