/* HTML product previews follow the app manual screenshots and canonical icon catalog. */
@font-face {
  font-family: Collab UI;
  src: url('../fonts/payments/OpenSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Collab UI;
  src: url('../fonts/payments/OpenSans-SemiBold.ttf') format('truetype');
  font-weight: 600 800;
  font-display: swap;
}

.home-collab {
  max-width: 1680px;
  margin: 180px auto 0;
  padding: 130px 55px 0;
  color: #080b11;
}

.home-collab__headings {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 64px;
  text-align: center;
  padding: 0 10px 64px;
}

.home-collab__headings h2 {
  font: 800 clamp(32px,3.1vw,51px)/1.05 Raleway,sans-serif;
  letter-spacing: -.045em;
  margin: 0;
}

.home-collab__headings em {
  color: #0565ff;
  font-style: normal;
}

.home-collab__desk {
  position: relative;
  height: 640px;
  font-family: Collab UI,sans-serif;
  font-size: 14px;
  isolation: isolate;
}

.home-collab__desk::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(#cddffa .8px,transparent .8px);
  background-size: 28px 28px;
  transform: translate(var(--collab-bg-x, 0px), var(--collab-bg-y, 0px));
}

/* The showcase cards are decorative artwork, including their text and icons. */
.home-collab__desk,
.home-collab__desk * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.home-collab__desk img,
.home-collab__desk svg {
  pointer-events: none;
}

.home-collab__connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke-width: 3;
  overflow: visible;
  pointer-events: none;
}

.collab-panel {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 48px 5px #25466926, 0 32px 46px -20px #25466933, 0 3px 5px #273a5114;
  padding: 22px;
  color: #202638;
}

.collab-panel h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 14px;
  color: #11151f;
}

.collab-panel p {
  line-height: 1.65;
  margin: 14px 0;
  color: #5b667d;
}

.collab-icon {
  height: 24px;
  width: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.collab-post {
  position: absolute;
  left: 1%;
  top: 6px;
  width: 27%;
  --rest-angle: 3deg;
  z-index: 2;
}

.collab-byline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #7e879a;
}

.collab-byline b {
  color: #29354b;
}

.collab-avatar {
  display: inline-block;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background-image: url('../img/collaboration/team-portraits.png');
  background-size: 200% 200%;
  clip-path: circle(49%);
  vertical-align: middle;
  background-color: #e5edf7;
}

.collab-avatar--emma {
  background-position: 0 0;
}

.collab-avatar--leo {
  background-position: 100% 0;
}

.collab-avatar--maya {
  background-position: 0 100%;
}

.collab-avatar--noah {
  background-position: 100% 100%;
}

.collab-post__art {
  border-radius: 8px;
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.collab-post__reactions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 13px;
  color: #ee435e;
}

.collab-post__reactions small {
  color: #68738a;
  font-size: 11px;
  margin-left: 4px;
}

.collab-post__reactions img {
  width: 18px;
  height: 18px;
  opacity: .7;
}

.collab-avatar-stack {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.collab-avatar-stack .collab-avatar {
  margin-left: -6px;
  width: 26px;
  height: 26px;
}

/* Reuse the first block's filled pointer, white outline and name tag. */
.collab-cursor {
  position: absolute;
  width: 142px;
  height: 90px;
  z-index: 5;
  pointer-events: none;
  color: #0565ff;
  /* Drift independently of the card and the SVG's pointer-driven depth offset. */
  animation: hero-pointer 14s ease-in-out infinite;
}

.collab-cursor svg {
  display: block;
  width: 100%;
  overflow: visible;
  transform: translate(var(--accent-x, 0px), var(--accent-y, 0px));
}

.collab-cursor text {
  fill: #fff;
  font: 700 18px Raleway, sans-serif;
}

.collab-cursor--emma {
  animation-delay: -2s;
  right: -27px;
  top: -39px;
  color: #8b24ff;
}

.collab-cursor--leo {
  animation-delay: -4s;
  top: -65px;
  right: 28%;
  color: #00b894;
}

.collab-cursor--noah {
  animation-delay: -9s;
  bottom: -50px;
  left: 30%;
}

/* Card-local frames stay aligned at every breakpoint and inherit rigid motion. */
[data-collab-card] {
  transform: translate(var(--motion-x, 0px), var(--motion-y, 0px))
    rotate(calc(var(--rest-angle) + var(--motion-angle, 0deg)));
  touch-action: pan-y;
}

.home-collab[data-motion-ready] [data-collab-card] { cursor: grab; }
.home-collab[data-collab-dragging] [data-collab-card] { cursor: grabbing; }

.collab-accent {
  position: absolute;
  width: 64px;
  height: 64px;
  overflow: visible;
  pointer-events: none;
  transform: translate(var(--accent-x, 0px), var(--accent-y, 0px));
}

.collab-sparkle { width: 32px; height: 32px; }
.collab-sparkle use {
  animation: hero-sparkle 11s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* Ray directions converge on the SVG corner, placed exactly at the card corner. */
.collab-accent--post-rays, .collab-accent--brief-rays { left: -64px; top: -64px; }
.collab-accent--post-star { left: -46px; top: 53%; }
.collab-accent--calendar-star { right: -38px; bottom: 30%; }
.collab-accent--brief-star { right: -22px; top: -113px; }
.collab-accent--goals-rays { right: -64px; top: -64px; }
.collab-accent--arrow { left: 7%; top: calc(100% + 13px); width: 170px; height: 70px; }
.collab-accent--goals-star { left: -38px; top: calc(100% + 72px); }
.collab-accent--note-rays { left: calc(100% + 4px); top: 18px; }
.collab-accent--note-scribble { left: -47px; bottom: 10px; width: 34px; height: 40px; }

.home-collab__headings, .home-collab__promise {
  transform: translate(var(--collab-copy-x, 0px), var(--collab-copy-y, 0px));
}

.home-collab[data-motion-paused] .collab-sparkle use,
.home-collab[data-motion-paused] .collab-cursor,
.home-collab[data-collab-dragging] .collab-cursor { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .collab-sparkle use, .collab-cursor { animation: none; }
  [data-collab-card] { touch-action: auto; }
}

.collab-calendar {
  position: absolute;
  left: 0;
  top: 414px;
  width: 28%;
  --rest-angle: -3deg;
  z-index: 2;
  padding: 19px;
}

.collab-calendar h3,.collab-goals h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.collab-calendar__arrows {
  margin-left: auto;
  font-size: 22px;
  font-weight: 400;
}

.collab-calendar__grid {
  display: grid;
  grid-template-columns: 34px repeat(5,1fr);
  grid-template-rows: 40px repeat(3,40px);
  position: relative;
  font-size: 9px;
  background: repeating-linear-gradient(to bottom,transparent 0,transparent 39px,#edf1f7 39px,#edf1f7 40px);
}

.collab-calendar__grid>div:not(.collab-event) {
  text-align: center;
  border-right: 1px solid #edf1f7;
  color: #6e7992;
}

.collab-calendar__grid>div b {
  display: block;
  color: #3c4964;
  font-size: 12px;
}

.collab-calendar__grid .is-today {
  background: #f0f7ff;
  color: #0565ff;
}

.collab-calendar__grid .is-today b {
  color: #0565ff;
}

.collab-calendar__time {
  grid-column: 1;
  padding-top: 10px;
  color: #8490a6;
}

.collab-event {
  border-radius: 5px;
  padding: 4px 7px;
  text-align: left;
  border-left: 2px solid #0565ff;
  background: #edf5ff;
  color: #0565ff;
  line-height: 1.5;
  overflow: hidden;
}

.collab-event span {
  display: block;
}

.collab-calendar__grid .collab-event b {
  font-size: 9px;
  color: inherit;
}

.collab-event--kickoff {
  grid-column: 2/4;
  grid-row: 3;
}

.collab-event--create {
  grid-column: 4/7;
  grid-row: 3;
  margin-left: 8px;
  background: #eaf7f2;
  border-color: #59b99b;
  color: #327263;
}

.collab-event--review {
  grid-column: 2/5;
  grid-row: 4;
  margin-top: 3px;
  background: #f5ecff;
  border-color: #9c60ec;
  color: #8040b9;
}

.collab-brief-wrap {
  position: absolute;
  left: 30.5%;
  top: 127px;
  width: 30.5%;
  --rest-angle: 7deg;
  z-index: 3;
}

.collab-eniac {
  position: absolute;
  right: 8%;
  bottom: calc(100% - 32px);
  width: 270px;
  height: 180px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.collab-brief {
  padding: 28px 28px 20px;
  min-height: 446px;
}

.collab-brief__space {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #65738c;
  margin-bottom: 16px;
}

.collab-brief__space>span {
  margin-left: auto;
  font-size: 20px;
}

.collab-brief h3 {
  font: 800 29px/1.2 Raleway,sans-serif;
  letter-spacing: -1px;
  margin-bottom: 25px;
}

.collab-brief__section {
  margin-top: 22px;
}

.collab-brief__section h4 {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}

.collab-brief__section p,.collab-brief__section ul {
  padding-left: 37px;
  color: #727c90;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

.collab-brief__section ul {
  padding-left: 52px;
}

.collab-team {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}

.collab-team>div {
  display: flex;
  gap: 6px;
  align-items: center;
}

.collab-team b {
  font-size: 9px;
  line-height: 1.5;
}

.collab-team small {
  display: block;
  color: #8390a4;
  font-weight: 400;
  font-size: 9px;
}

.collab-brief__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 9px;
  color: #8791a3;
}

.collab-live-dot {
  width: 5px;
  height: 5px;
  background: #00b894;
  clip-path: circle(50%);
}

.collab-goals {
  position: absolute;
  right: 0;
  top: 135px;
  width: 34.5%;
  --rest-angle: -5deg;
  padding: 18px;
  z-index: 2;
}

.collab-goals h3 a {
  margin-left: auto;
  color: #6e7890;
  font-size: 10px;
  text-decoration: none;
  font-weight: 400;
}

.collab-goals h3 a:is(:hover, :focus-visible) {
  color: var(--link-highlight);
}

.collab-goals h3 a span {
  margin-left: 8px;
}

.collab-board {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px;
  min-height: 288px;
}

.collab-board__column {
  border-radius: 8px;
  background: #f3f4f6;
  padding: 6px;
}

.collab-board h4 {
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 1px;
  margin: 0 0 10px;
  gap: 7px;
  white-space: nowrap;
}

.collab-board h4 span {
  color: #8a92a0;
  font-size: 9px;
  font-weight: 400;
}

.collab-board h4 img {
  width: 13px;
  height: 13px;
  margin-left: auto;
}

.collab-task {
  border-radius: 8px;
  background: #fff;
  padding: 13px 8px 10px;
  margin-bottom: 5px;
  font-size: 12px;
  line-height: 1.55;
  min-height: 72px;
}

.collab-task footer {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 14px;
  white-space: nowrap;
}

.collab-task small {
  font-size: 9px;
  color: #727b8e;
}

.collab-task footer b {
  border-radius: 3px;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  background: #9326ba;
  padding: 2px 3px;
  margin-left: auto;
}

.collab-task .collab-avatar {
  width: 16px;
  height: 16px;
}

.collab-note {
  position: absolute;
  right: 2%;
  top: 455px;
  z-index: 4;
  width: 180px;
  height: 184px;
  --rest-angle: -8deg;
}

.collab-note__art {
  position: absolute;
  width: 116%;
  max-width: none;
  height: auto;
  left: -8%;
  top: -8%;
  filter: drop-shadow(0 15px 18px #4d4b3429);
}

.home-collab__promise {
  text-align: center;
  padding-top: 174px;
}

.home-collab__promise h2,
.home-pricing__heading h2,
.home-marketplace__heading h2 {
  font: 800 clamp(40px,4.8vw,78px)/1.06 Raleway,sans-serif;
  letter-spacing: -.045em;
  color: #080b11;
  margin: 0 0 20px;
}

.home-collab__promise p {
  font-size: clamp(16px,1.4vw,22px);
  color: #71819d;
  margin: 0 0 26px;
}

.home-collab__start {
  background: #0565ff;
  color: #fff;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 6px 18px #0565ff15;
}

.home-collab__start:hover {
  background: #004ee0;
  color: #fff;
}

.home-collab__start img {
  width: 17px;
  height: 17px;
  margin-left: 14px;
  filter: brightness(0) invert(1);
}

@media(max-width:1250px) and (min-width:1201px) {
  .home-collab {
    padding-inline: 35px;
  }

  .home-collab__desk {
    font-size: 12px;
  }

  .collab-panel {
    padding: 16px;
  }

  .collab-post h3 {
    font-size: 17px;
  }

  .collab-byline {
    gap: 5px;
    font-size: 9px;
  }

  .collab-brief h3 {
    font-size: 26px;
  }

  .collab-team {
    flex-wrap: wrap;
    justify-content: start;
    gap: 12px;
  }

  .collab-brief__section p,.collab-brief__section ul {
    font-size: 11px;
  }

  .collab-task {
    padding: 10px 5px;
  }

  .collab-task footer {
    gap: 2px;
  }

  .collab-task footer b {
    font-size: 7px;
  }

  .collab-goals {
    width: 35%;
    right: -1%;
  }

  .collab-brief-wrap {
    left: 30.5%;
    width: 30.5%;
  }

  .collab-post {
    width: 28%;
  }

  .collab-calendar {
    width: 29%;
  }

}

@media(max-width:1200px) {
  .home-collab {
    margin-top: 80px;
    padding: 90px 24px 0;
  }

  .home-collab__headings {
    gap: 20px;
    padding: 0 0 70px;
  }

  .home-collab__headings h2 {
    font-size: 32px;
  }

  .home-collab__desk {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 38px;
    padding: 0 20px;
  }

  .home-collab__connections {
    display: none;
  }

  .collab-accent--post-rays, .collab-accent--brief-rays { left: -44px; top: -44px; width: 44px; height: 44px; }
  .collab-accent--goals-rays { right: -44px; top: -44px; width: 44px; height: 44px; }

  .collab-post { --rest-angle: -1.8deg; }
  .collab-calendar { --rest-angle: 1.4deg; }
  .collab-brief-wrap { --rest-angle: 2.2deg; align-self: start; }
  .collab-goals { --rest-angle: -1.2deg; }
  .collab-accent--post-star, .collab-accent--calendar-star { display: none; }

  .collab-post,.collab-calendar,.collab-brief-wrap,.collab-goals,.collab-note {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
  }

  .collab-post {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .collab-calendar {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .collab-brief-wrap {
    grid-column: 2;
    grid-row: 1/3;
    margin-top: 90px;
  }

  .collab-brief {
    padding: 20px;
    min-height: 0;
  }

  .collab-eniac {
    width: 210px;
    height: 140px;
    right: 3%;
  }

  .collab-brief h3 {
    font-size: 25px;
  }

  .collab-team {
    flex-wrap: wrap;
    gap: 16px;
  }

  .collab-goals {
    grid-column: 1/-1;
    grid-row: 3;
    margin-top: 20px;
  }

  .collab-board {
    min-height: 250px;
  }

  .collab-task {
    font-size: 13px;
  }

  .collab-task footer b {
    font-size: 8px;
  }

  .collab-task small {
    font-size: 9px;
  }

  .collab-note {
    display: none;
  }

  .home-collab__promise {
    padding-top: 110px;
  }

}

@media(max-width:560px) {
  .home-collab {
    padding-inline: 20px;
  }

  .home-collab__headings {
    gap: 10px;
    padding-bottom: 48px;
  }

  .home-collab__headings h2 {
    font-size: clamp(20px,5.7vw,30px);
    letter-spacing: -.04em;
  }

  .collab-post { --rest-angle: -1.2deg; }
  .collab-calendar { --rest-angle: 1.1deg; }
  .collab-brief-wrap { --rest-angle: 1.5deg; }
  .collab-goals { --rest-angle: -.9deg; }
  .collab-accent--post-rays, .collab-accent--brief-rays { left: -28px; top: -28px; width: 28px; height: 28px; }
  .collab-accent--goals-rays { right: -28px; top: -28px; width: 28px; height: 28px; }
  .collab-accent--brief-star { right: 0; }
  .collab-accent--goals-star { left: 3px; top: calc(100% + 45px); }
  .collab-accent--arrow { width: 130px; height: 54px; }

  .home-collab__desk {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 12px;
  }

  .collab-panel {
    width: 100%;
  }

  .collab-post__art {
    height: 190px;
  }

  .collab-calendar {
    order: 2;
    margin-top: 10px;
  }

  .collab-brief-wrap {
    order: 3;
    margin-top: 115px;
  }

  .collab-goals {
    order: 4;
    margin-top: 24px;
    padding: 12px;
  }

  .collab-board__column {
    padding: 4px;
  }

  .collab-task {
    font-size: 10px;
    padding: 10px 6px;
  }

  .collab-task footer b {
    font-size: 6px;
  }

  .collab-task small {
    font-size: 7px;
  }

  .collab-board h4 {
    font-size: 9px;
    gap: 4px;
  }

  .collab-brief h3 {
    font-size: 30px;
  }

  .collab-team {
    justify-content: space-between;
    gap: 8px;
  }

  .home-collab__promise {
    padding-top: 84px;
  }

  .home-collab__promise h2,
  .home-pricing__heading h2,
  .home-marketplace__heading h2 {
    font-size: 44px;
  }

  .home-collab__promise p {
    line-height: 1.6;
  }

  .collab-cursor--emma {
    right: 0;
  }

  .collab-cursor--leo {
    right: 15%;
  }

}

