/* Onboarding: the complete three-step connection plan. */
.setup--detailed { height: auto; padding-block: 40px 38px; }
.setup-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 26px; }
.setup--detailed .eyebrow { margin-bottom: 9px; }
.setup--detailed h2 { position: static; max-width: none; font-size: clamp(30px, 3.12vw, 42px); letter-spacing: -.05em; }
.setup-heading__lead { max-width: 350px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; letter-spacing: -.015em; }

.onboarding-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.onboarding-step { position: relative; display: flex; min-width: 0; flex-direction: column; min-height: 326px; padding: 22px 21px 18px; border: 1px solid #dce4e8; border-radius: 20px; background: radial-gradient(ellipse at 0 0, #dffff57d, transparent 62%), #fff; }
.onboarding-step--channels { border-color: #e2ddef; background: radial-gradient(ellipse at 0 0, #efe7ffbf, transparent 62%), #fff; }
.onboarding-step--portal { border-color: #e0e3ef; background: #f7f8fc; }
.onboarding-step:not(:last-child)::after { position: absolute; z-index: 1; top: 39px; right: -18px; width: 17px; height: 1px; background: #b9bfda; content: ""; }
.onboarding-step__top { margin-bottom: 20px; }
.onboarding-step__number { display: grid; width: 36px; height: 36px; flex-shrink: 0; place-items: center; border: 1px solid #70eddb; border-radius: 50%; background: linear-gradient(130deg, #a1fff1, #56e7d0); color: #102a32; font-size: 13px; font-weight: 800; line-height: 1; }
.onboarding-step--channels .onboarding-step__number { border-color: #b88bfc; background: linear-gradient(140deg, #ebdcff, #ac72fa); color: #211443; }
.onboarding-step--portal .onboarding-step__number { border-color: #d7d4e7; background: #eeebf7; color: #6e6689; }
.onboarding-step__copy { min-width: 0; }
.onboarding-step__copy h3 { margin: 0 0 11px; color: var(--ink); font-size: clamp(17px, 1.82vw, 23px); font-weight: 750; line-height: 1.2; letter-spacing: -.045em; }
.onboarding-step__copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; letter-spacing: -.015em; overflow-wrap: break-word; }

.setup-visual { position: relative; display: flex; width: 100%; min-height: 100px; align-items: center; justify-content: center; margin-top: auto; padding-top: 20px; font-family: "Segoe UI", Arial, sans-serif; user-select: none; }
.setup-mini-window { width: 100%; padding: 10px 12px 13px; border: 1px solid #fff; border-radius: 13px; background: linear-gradient(135deg, #fcffff, #f0fbfa); box-shadow: 0 5px 15px #9cc9bf25, inset 0 0 0 1px #d9ede7; transform: perspective(700px) rotateY(-8deg) rotateZ(-3deg); }
.setup-mini-dots { display: flex; gap: 3px; margin-bottom: 10px; }
.setup-mini-dots i { width: 3px; height: 3px; border-radius: 50%; background: #acbdbf; }
.setup-mini-input { display: flex; align-items: center; gap: 8px; min-height: 33px; padding: 6px 7px; border: 1px solid #d9e7e7; border-radius: 7px; background: #fff; color: #626f7c; font-size: 11px; white-space: nowrap; }
.setup-mini-input > .icon { width: 15px; height: 15px; color: #8c9ca8; }
.setup-mini-check { display: grid; width: 20px; height: 20px; place-items: center; margin-left: auto; border-radius: 50%; background: #62e5c8; color: #12604d; }
.setup-mini-check .icon { width: 14px; height: 14px; stroke-width: 2.5; }

.setup-visual--channels { min-height: 100px; flex-direction: column; gap: 8px; }
.setup-apps { display: flex; position: relative; align-items: center; gap: 17px; }
.setup-apps::before { position: absolute; z-index: 0; top: 50%; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, #6fe6d0, #bb8cf5); content: ""; }
.setup-apps > span { display: grid; position: relative; width: 47px; height: 45px; place-items: center; border: 1px solid #fff; border-radius: 12px; background: linear-gradient(135deg, #fff, #f1ecff); box-shadow: 0 5px 10px #8d72bf1f, inset 0 0 0 1px #ece5f5; }
.setup-apps > span:nth-child(1) { transform: rotate(-6deg); }
.setup-apps > span:nth-child(3) { transform: rotate(6deg); }
.setup-apps img { display: block; width: 29px; height: 29px; }
.setup-channel-ready { display: flex; align-items: center; gap: 4px; color: #6d6488; font-size: 10px; line-height: 1.2; }
.setup-channel-ready .icon { width: 12px; height: 12px; color: #3cad93; stroke-width: 2; }

.setup-portal-window { width: 100%; padding: 10px 11px; border: 1px solid #e1dff0; border-radius: 12px; background: linear-gradient(120deg, #fff, #f0eef9); box-shadow: 0 4px 12px #8d89b916; transform: perspective(700px) rotateY(7deg) rotateZ(3deg); color: #77728d; font-size: 11px; }
.setup-portal-key { display: flex; align-items: center; gap: 7px; padding-bottom: 9px; border-bottom: 1px solid #e5e1ed; white-space: nowrap; }
.setup-portal-key > .icon { width: 15px; height: 15px; color: #a28ec6; }
.setup-key-mask { margin-left: auto; color: #b2a8cd; font-size: 10px; letter-spacing: .03em; }
.setup-portal-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; }
.setup-portal-line > .icon { width: 14px; height: 14px; color: #9e93bc; }

@media (min-width: 1200px) {
  .setup--detailed { padding-block: 48px 44px; }
  .setup-heading { margin-bottom: 30px; }
  .setup-heading__lead { max-width: 410px; font-size: 17px; }
  .onboarding-steps { gap: 22px; }
  .onboarding-step { min-height: 346px; padding: 26px 26px 22px; }
  .onboarding-step:not(:last-child)::after { top: 43px; right: -23px; width: 22px; }
  .onboarding-step__copy p { font-size: 16px; }
  .setup-visual { max-width: 290px; align-self: center; min-height: 105px; }
}
@media (min-width: 700px) and (max-width: 959px) {
  .setup-heading { align-items: flex-start; }
  .setup-heading__lead { max-width: 310px; font-size: 14px; }
  .onboarding-step { min-height: 334px; padding: 18px 16px 17px; }
  .onboarding-steps { gap: 12px; }
  .onboarding-step:not(:last-child)::after { top: 35px; right: -13px; width: 12px; }
  .onboarding-step__copy h3 { font-size: 18px; min-height: 44px; }
  .onboarding-step__copy p { font-size: 14px; }
  .setup-mini-window, .setup-portal-window { padding-inline: 8px; }
  .setup-mini-input { gap: 5px; padding-inline: 5px; font-size: 10px; }
  .setup-mini-input > .icon { display: none; }
  .setup-mini-check { width: 17px; height: 17px; }
  .setup-portal-key { gap: 4px; font-size: 10px; }
  .setup-key-mask { font-size: 8px; }
  .setup-apps { gap: 12px; }
  .setup-apps > span { width: 40px; height: 40px; }
  .setup-apps img { width: 26px; height: 26px; }
}
@media (max-width: 699px) {
  .setup--detailed { padding-block: 31px 30px; }
  .setup-heading { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 23px; }
  .setup--detailed h2 { font-size: clamp(27px, 7.3vw, 38px); }
  .setup-heading__lead { max-width: none; font-size: 14px; }
  .setup-heading__lead br { display: none; }
  .onboarding-steps { grid-template-columns: 1fr; gap: 15px; }
  .onboarding-step { min-height: 0; padding: 20px 21px 17px; }
  .onboarding-step:not(:last-child)::after { top: auto; right: auto; bottom: -16px; left: 39px; width: 1px; height: 15px; }
  .onboarding-step__top { margin-bottom: 17px; }
  .onboarding-step__copy h3 { margin-bottom: 10px; font-size: 20px; }
  .onboarding-step__copy p { font-size: 15px; }
  .setup-visual { min-height: 92px; max-width: 280px; align-self: center; padding-top: 17px; }
}
