/* ==========================================================================
   Clarity project page (/work/clarity/)
   Colors, type families and shadows come from tokens.css.
   Page breakpoints: 40rem and 64rem like the rest of the site.
   Section breakpoints, from the "Clarity section break points" frames:
     69.125rem (1106px)  chat screens sit in a row
     71.25rem  (1140px)  progress card and phone sit side by side
     80.9375rem (1295px) design system and demo sit side by side
   ========================================================================== */

.clarity-page {
  --cl-gutter: var(--space-16);
  --cl-screen-width: 18.0625rem;  /* 289px */
  --cl-screen-ratio: 289 / 547;
}

@media (min-width: 40rem) {
  .clarity-page { --cl-gutter: var(--space-64); }
}

@media (min-width: 64rem) {
  .clarity-page { --cl-gutter: var(--space-88); }
}

/* ---- Sections and titles ------------------------------------------------- */

.cl-section {
  padding: var(--space-48) var(--cl-gutter) var(--space-64);
  background-color: var(--color-white);
  font-family: var(--cl-font-text);
  font-size: var(--font-size-body-400);
  line-height: 1.3;
}

.cl-section--tint { background-color: var(--color-blue-25); }
.cl-section--blue { background-color: var(--color-blue-50); }

.cl-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  width: 100%;
  max-width: var(--width-content);
  margin-inline: auto;
}

.cl-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.cl-title__eyebrow {
  color: var(--cl-gray-700);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cl-title__heading {
  color: var(--color-blue-900);
  font-family: var(--cl-font-title);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.12;
}

.cl-divider {
  width: 100%;
  height: var(--size-border);
  margin: 0;
  border: 0;
  background-color: var(--cl-blue-rule);
}

@media (min-width: 40rem) {
  .cl-title__eyebrow { font-size: 1.25rem; }
  .cl-title__heading { font-size: 2.5rem; }
}

/* ---- Hero ---------------------------------------------------------------- */

.cl-hero {
  --cl-gutter: var(--space-24);
  background-color: var(--cl-navy);
}

.cl-hero__inner { gap: 3.5625rem; }

.cl-hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  min-width: 0;
}

.cl-hero__title {
  color: var(--cl-surface);
  font-family: var(--cl-font-title);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.12;
}

.cl-nowrap { white-space: nowrap; }

.cl-hero__tagline {
  color: var(--cl-tame-200);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.cl-demo {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  color: var(--cl-tame-300);
  font-family: var(--font-body);
  font-size: var(--font-size-body-200);
  line-height: var(--line-height-body-200);
  overflow-wrap: anywhere;
}

.cl-demo__row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.cl-demo__row > img { margin-top: var(--space-4); }

.cl-demo a,
.cl-demo a:hover { color: inherit; }

.cl-demo a:hover { color: var(--color-white); }

.cl-demo__login {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin: 0;
}

.cl-demo__login dd { margin: 0; }

.cl-welcome {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-32);
  border-radius: var(--radius-24);
  background-color: var(--cl-surface);
}

.cl-welcome__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 20.28rem;
  height: 21.5rem;
  overflow: hidden;
  border: var(--size-border) solid var(--cl-gray-200);
  border-radius: 0.4rem;
  background-color: var(--color-white);
  box-shadow: var(--cl-shadow-card);
}

.cl-welcome__art {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  height: 9.46rem;
  background-color: var(--cl-teal-light);
}

.cl-welcome__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.08rem;
}

.cl-welcome__heading {
  color: var(--cl-text-heading);
  font-family: var(--cl-font-title);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.cl-welcome__summary {
  margin-top: 0.81rem;
  color: var(--cl-gray-700);
  font-size: 0.54rem;
  font-weight: 500;
  line-height: 1.65;
}

.cl-welcome__button {
  display: inline-flex;
  align-items: center;
  gap: 0.27rem;
  height: 1.62rem;
  padding-inline: 0.81rem 0.54rem;
  border-radius: 999px;
  background-color: var(--cl-blue-action);
  color: var(--cl-surface);
  font-family: var(--cl-font-control);
  font-size: 0.47rem;
  font-weight: 700;
}

.cl-welcome__button img { width: 0.68rem; }

.cl-glow {
  position: absolute;
  bottom: -4.5rem;
  left: 50%;
  width: 128%;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}

@media (min-width: 40rem) {
  .cl-hero { --cl-gutter: var(--space-64); }
  .cl-hero__title { font-size: 3rem; }
  .cl-hero__tagline { font-size: 2rem; }
  .cl-welcome { padding-block: var(--space-64); }
}

@media (min-width: 64rem) {
  .cl-hero { --cl-gutter: var(--space-88); }
  .cl-hero__inner {
    flex-direction: row;
    align-items: flex-start;
  }
  .cl-hero__text {
    flex: 1;
    min-width: 22rem;
  }
  .cl-demo {
    font-size: var(--font-size-body-300);
    line-height: var(--line-height-body-300);
  }
  .cl-demo__row > img { margin-top: var(--space-4); }
  .cl-welcome {
    flex: 0 1 32rem;
    min-width: 0;
  }
}

/* The 64px headline needs more room than a 1024px window gives it. */
@media (min-width: 80rem) {
  .cl-hero__title { font-size: 4rem; }
}

/* ---- Hero sparkle -------------------------------------------------------- */
/* Keyframes from the Figma motion data, 5.52s loop. */

.cl-sparkle {
  position: relative;
  width: 2.17rem;
  height: 2.17rem;
}

.cl-sparkle__star {
  width: 100%;
  height: 100%;
}

.cl-sparkle__bit {
  position: absolute;
  max-width: none;
  opacity: 0;
  animation: 5.521s linear infinite;
}

.cl-sparkle__bit--cross-top {
  top: 0;
  left: 77.5%;
  width: 22.5%;
  animation-name: cl-cross-top;
}

.cl-sparkle__bit--cross-bottom {
  top: 79%;
  left: -8%;
  width: 22.5%;
  animation-name: cl-cross-bottom;
}

.cl-sparkle__bit--circle-top {
  top: -9%;
  left: -9%;
  width: 22.5%;
  animation-name: cl-circle-top;
}

.cl-sparkle__bit--circle-bottom {
  top: 78%;
  left: 82.7%;
  width: 12.5%;
  animation-name: cl-circle-bottom;
}

@keyframes cl-cross-top {
  0%, 2.2%, 11.8%, 25.1%, 34.7%, 50%, 59.5%, 75.2%, 84.7%, 100% { opacity: 0; }
  6.7%, 29.6%, 54.5%, 79.7% { opacity: 1; }
}

@keyframes cl-cross-bottom {
  0%, 6.3%, 16.6%, 29.2%, 39.5%, 54.1%, 64.4%, 79.3%, 89.6%, 100% { opacity: 0; }
  13.5%, 36.4%, 61.2%, 86.4% { opacity: 1; }
}

@keyframes cl-circle-top {
  0%, 18.2%, 22.9%, 41.1%, 47.8%, 65.9%, 73%, 91.2%, 100% { opacity: 0; }
  5.8%, 28.7%, 53.5%, 78.7% { opacity: 1; }
}

@keyframes cl-circle-bottom {
  0%, 5.8%, 15.4%, 28.7%, 38.3%, 53.5%, 63.1%, 78.7%, 88.3%, 100% { opacity: 0; }
  8.5%, 31.4%, 56.2%, 81.5% { opacity: 1; }
}

/* ---- Screens and carousel ------------------------------------------------ */

.carousel {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  min-width: 0;
}

/* The block padding (and matching negative margin) leaves room for the card
   shadows, which a scroll container would otherwise cut off. The extra class
   outranks the ul[class] reset in base.css. */
.carousel .carousel__track {
  position: relative;
  display: flex;
  gap: var(--space-32);
  margin: calc(var(--space-16) * -1) 0;
  padding: var(--space-16);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
  scroll-padding-inline: var(--space-16);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar { display: none; }

.cl-screen {
  display: flex;
  flex: 0 0 min(var(--cl-screen-width), 100%);
  flex-direction: column;
  gap: 1.75rem;
  scroll-snap-align: start;
}

.cl-screen__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  min-height: 1.3125rem;
}

.cl-screen__label {
  color: var(--cl-teal-dark);
  font-family: var(--cl-font-text);
  font-size: var(--font-size-body-400);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cl-screen__label span { margin-right: var(--space-8); }

.cl-screen__toggle {
  margin-block: calc(var(--space-4) * -1);
  padding: var(--space-4) var(--space-12);
  border: var(--size-border) solid var(--cl-teal-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--cl-teal-dark);
  font-family: var(--cl-font-text);
  font-size: var(--font-size-button);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.cl-screen__toggle[hidden] { display: none; }

.cl-device {
  overflow: hidden;
  aspect-ratio: var(--cl-screen-ratio);
  border-radius: 0.84rem;
  background-color: var(--cl-surface);
  box-shadow: var(--cl-shadow-screen);
}

.cl-device img,
.cl-device__video {
  width: 100%;
  height: 100%;
}

/* The recording is cut to the frame's shape, so it fills it edge to edge. */
.cl-device img,
.cl-device__video { object-fit: cover; }

.carousel__controls {
  display: none;
  justify-content: center;
  gap: 1.75rem;
}

.js .carousel__controls:not([hidden]) { display: flex; }

.carousel__button {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: var(--radius-8);
  background-color: var(--color-blue-50);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.carousel--chat .carousel__button { background-color: var(--color-blue-100); }

.carousel__button:hover { background-color: var(--color-blue-100); }

.carousel__button[aria-disabled="true"] {
  cursor: default;
}

.carousel__button[aria-disabled="true"] img { opacity: 0.3; }

.carousel__button[aria-disabled="true"]:hover { background-color: var(--color-blue-50); }

.carousel--chat .carousel__button[aria-disabled="true"]:hover { background-color: var(--color-blue-100); }

/* Chat: all three screens in one row, no chevrons */
@media (min-width: 69.125rem) {
  .carousel--chat .carousel__track {
    justify-content: center;
    padding-inline: 0;
  }

  .carousel--chat .cl-screen { flex-shrink: 1; }
}

/* ---- Progress ------------------------------------------------------------ */

.cl-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-32);
}

/* Phones show only the scrolling dashboard, as in the mobile frame. */
.cl-progress__panel {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 34.55rem;
  overflow: hidden;
  padding: var(--space-32);
  border-radius: var(--radius-24);
  background-color: var(--cl-surface);
}

.cl-progress__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 37.5rem;
  border: var(--size-border) solid var(--cl-gray-200);
  border-radius: 0.56rem;
  box-shadow: var(--cl-shadow-card);
}

.cl-progress__phone {
  flex-shrink: 0;
  width: min(var(--cl-screen-width), 100%);
  overflow: hidden;
  aspect-ratio: 289 / 553;
  border-radius: 0.84rem;
  background-color: var(--cl-surface);
  box-shadow: var(--cl-shadow-screen);
}

.cl-progress__scroll {
  width: 100%;
  animation: cl-dashboard 5.521s linear infinite;
}

@keyframes cl-dashboard {
  0%, 7.3% { transform: translateY(0); }
  77.2%, 100% { transform: translateY(-54.4%); }
}

@media (min-width: 40rem) {
  .cl-progress__panel { display: flex; }
}

@media (min-width: 71.25rem) {
  .cl-progress {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-48);
  }

  .cl-progress__panel {
    flex: 1;
    min-width: 0;
  }

  .cl-progress__phone { align-self: flex-start; }
}

/* ---- Design system ------------------------------------------------------- */

.cl-container--wide { max-width: var(--width-content); }

.cl-system {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-32);
}

.cl-system__library {
  position: relative;
  width: 100%;
  max-width: 39.875rem;
  min-height: 38.125rem;
  overflow: hidden;
  padding: 5.5rem var(--space-16) var(--space-48);
}

/* Shown at the size it has in Figma and cropped by the box. */
.cl-system__buttons {
  position: absolute;
  top: 0;
  left: -7.25rem;
  width: 73.375rem;
  max-width: none;
}

.cl-system__description {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  padding: var(--space-32) var(--space-24);
  background-color: rgb(25 54 99 / 0.9);
  color: var(--color-white);
}

.cl-system__heading {
  color: var(--color-white);
  font-family: var(--cl-font-title);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Four steps: stacked with down arrows on phones, 2 x 2 with right arrows after */
.cl-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-flow li {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 12.125rem;
  min-height: 3.5625rem;
  padding: var(--space-8);
  border: 0.125rem solid var(--cl-gray-200);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.cl-flow li:last-child { border-color: var(--cl-blue-border); }

.cl-flow li:not(:last-child)::after {
  content: "↓" / "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: var(--space-8);
  color: var(--cl-teal);
  font-size: 1.75rem;
  line-height: 1.75rem;
  transform: translateX(-50%);
}

@media (min-width: 40rem) {
  .cl-system__library { padding-inline: var(--space-24); }
  .cl-system__description { padding: var(--space-64); }
  .cl-system__heading { font-size: 2.5rem; }

  .cl-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 12.125rem));
    justify-content: space-between;
    gap: var(--space-24) var(--space-48);
  }

  .cl-flow li:not(:last-child)::after { content: none; }

  .cl-flow li:nth-child(odd)::after,
  .cl-flow li:nth-child(odd):not(:last-child)::after {
    content: "→" / "";
    top: 50%;
    left: 100%;
    width: var(--space-48);
    margin: 0;
    font-size: 2.75rem;
    text-align: center;
    transform: translateY(-55%);
  }
}

@media (min-width: 80.9375rem) {
  .cl-system {
    flex-direction: row;
    justify-content: space-between;
    gap: 3.5625rem;
  }

  .cl-system__library {
    flex: 0 1 39.875rem;
    min-width: 0;
  }
}

/* ---- Design system: behavior demo ---------------------------------------- */
/* A looping picture of the interaction, not a working form. Keyframes follow
   the Figma motion data (5.52s loop). With reduced motion the animations are
   off and the first state (empty field and Submit button) stays on screen. */

.cl-behavior {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 26.5rem;
  height: 18.1875rem;
  overflow: hidden;
  border: var(--size-border) solid var(--cl-gray-200);
  border-radius: var(--radius-12);
  background-color: var(--color-white);
  color: var(--cl-gray-700);
  font-weight: 500;
}

.cl-behavior__form {
  position: absolute;
  top: 1.9375rem;
  left: calc(50% - 6.875rem);
  width: 13.75rem;
  height: 10.375rem;
  animation: cl-form-fade 5.521s linear infinite;
}

.cl-behavior__label {
  display: block;
  font-family: var(--cl-font-title);
  font-size: 1.25rem;
  line-height: 1.75rem;
  letter-spacing: -0.01em;
}

.cl-field {
  position: absolute;
  top: 2.5rem;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 3.375rem;
  padding-inline: var(--space-12);
  border: var(--size-border) solid var(--cl-gray-200);
  border-radius: var(--radius-8);
  background-color: var(--color-white);
  animation: 5.521s linear infinite;
}

.cl-field--default { animation-name: cl-field-default; }

.cl-field--hover {
  border: 0.125rem solid var(--cl-gray-300);
  opacity: 0;
  animation-name: cl-field-hover;
}

.cl-field--error {
  justify-content: flex-end;
  border-color: var(--cl-error);
  opacity: 0;
  animation-name: cl-field-error;
}

.cl-field--error img { width: 1.25rem; }

.cl-field--filled {
  opacity: 0;
  animation-name: cl-field-filled;
}

.cl-behavior__message {
  position: absolute;
  top: 6.375rem;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  animation: cl-message 5.521s linear infinite;
}

.cl-behavior__message span {
  display: flex;
  align-items: center;
  height: 2.8125rem;
  padding-inline: var(--space-12);
  border: var(--size-border) solid var(--cl-error);
  border-radius: var(--radius-4);
  background-color: var(--cl-error-surface);
  color: var(--cl-error);
  font-size: var(--font-size-button);
}

.cl-behavior__submit,
.cl-behavior__restart,
.cl-behavior__loading {
  position: absolute;
  display: grid;
  justify-items: center;
}

.cl-behavior__submit > *,
.cl-behavior__restart > * { grid-area: 1 / 1; }

.cl-behavior__submit {
  top: 7.375rem;
  left: 0;
  width: 100%;
  animation:
    cl-submit-show 5.521s linear infinite,
    cl-submit-move 5.521s linear infinite,
    cl-submit-press 5.521s ease-out infinite;
}

.cl-behavior__loading {
  top: 7.375rem;
  left: 0;
  width: 100%;
  opacity: 0;
  animation: cl-loading 5.521s linear infinite;
}

.cl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  height: 3rem;
  padding-inline: var(--space-24);
  border-radius: 999px;
  background-color: var(--cl-blue-action);
  color: var(--cl-surface);
  font-family: var(--cl-font-control);
  font-size: var(--font-size-button);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cl-pill--hover {
  background-color: var(--cl-blue-action-hover);
  opacity: 0;
}

.cl-behavior__submit .cl-pill--hover { animation: cl-submit-hover 5.521s linear infinite; }

.cl-pill--loading {
  padding-right: var(--space-16);
  background-color: var(--cl-gray-100);
  color: var(--cl-gray-300);
}

.cl-behavior__spinner {
  width: 1.25rem;
  animation: cl-spin 5.521s linear infinite;
}

.cl-behavior__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--cl-overlay);
  backdrop-filter: blur(0.375rem);
  opacity: 0;
  animation: cl-overlay 5.521s linear infinite;
}

.cl-behavior__modal {
  position: absolute;
  top: 2rem;
  left: 50%;
  width: min(22.5rem, 100% - 1.5rem);
  height: 14.1875rem;
  translate: -50% 0;
  opacity: 0;
  animation: cl-modal 5.521s linear infinite;
}

.cl-behavior__dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  padding: var(--space-32);
  border: var(--size-border) solid var(--cl-gray-200);
  border-radius: var(--radius-12);
  background-color: var(--color-white);
  box-shadow: var(--cl-shadow-modal);
  color: var(--cl-text-heading);
}

.cl-behavior__dialog-title {
  font-family: var(--cl-font-title);
  font-size: 1.625rem;
  line-height: 1.2;
  text-align: center;
}

.cl-behavior__restart {
  top: 11.1875rem;
  left: 0;
  width: 100%;
  animation: cl-restart-press 5.521s ease-out infinite;
}

.cl-behavior__restart .cl-pill--hover { animation: cl-restart-hover 5.521s linear infinite; }

@keyframes cl-form-fade {
  0%, 61.6% { opacity: 1; scale: 1; translate: 0 0; animation-timing-function: ease-in; }
  67%, 92.3% { opacity: 0; scale: 0.9; translate: 0 0; }
  92.4% { opacity: 0; scale: 1; translate: 0 -0.125rem; animation-timing-function: ease-in; }
  96%, 100% { opacity: 1; scale: 1; translate: 0 0; }
}

@keyframes cl-field-default {
  0% { opacity: 1; animation-timing-function: step-end; }
  19.9% { opacity: 0; animation-timing-function: step-end; }
  92.4%, 100% { opacity: 1; }
}

@keyframes cl-field-hover {
  0%, 3.6% { opacity: 0; }
  7.2%, 16.3% { opacity: 1; }
  19.9%, 100% { opacity: 0; }
}

@keyframes cl-field-error {
  0%, 16.3% { opacity: 0; }
  19.9% { opacity: 1; animation-timing-function: step-end; }
  36.2%, 100% { opacity: 0; }
}

@keyframes cl-field-filled {
  0% { opacity: 0; animation-timing-function: step-end; }
  36.2% { opacity: 1; animation-timing-function: step-end; }
  92.4%, 100% { opacity: 0; }
}

@keyframes cl-message {
  0%, 16.3% { height: 0; opacity: 0; }
  17.3% { height: 3.3125rem; }
  18.4% { height: 2.74rem; }
  19.9% { height: 2.8125rem; }
  23.5% { height: 2.8125rem; opacity: 1; }
  36.1% { height: 2.8125rem; opacity: 1; }
  36.2%, 100% { height: 0; opacity: 0; }
}

@keyframes cl-submit-show {
  0% { opacity: 1; animation-timing-function: step-end; }
  48.9% { opacity: 0; animation-timing-function: step-end; }
  92.4%, 100% { opacity: 1; }
}

@keyframes cl-submit-move {
  0%, 16.3% { translate: 0 0; }
  17.3% { translate: 0 3.9rem; }
  18.4% { translate: 0 3.22rem; }
  19.9%, 36.1% { translate: 0 3.3125rem; }
  36.2%, 100% { translate: 0 0; }
}

@keyframes cl-submit-press {
  0%, 12.7%, 19.9%, 41.7%, 48.9%, 100% { scale: 1; }
  16.3%, 45.3% { scale: 0.98; }
}

@keyframes cl-submit-hover {
  0%, 7.2% { opacity: 0; }
  12.7%, 48.8% { opacity: 1; }
  48.9%, 100% { opacity: 0; }
}

@keyframes cl-loading {
  0% { opacity: 0; animation-timing-function: step-end; }
  48.9% { opacity: 1; animation-timing-function: step-end; }
  92.4%, 100% { opacity: 0; }
}

@keyframes cl-spin {
  0%, 48.9% { rotate: 0deg; }
  67%, 100% { rotate: 360deg; }
}

@keyframes cl-overlay {
  0% { opacity: 0; animation-timing-function: step-end; }
  67% { opacity: 1; animation-timing-function: step-end; }
  92.4%, 100% { opacity: 0; }
}

@keyframes cl-modal {
  0%, 66.9% { opacity: 0; scale: 0.99; }
  67% { opacity: 0.65; scale: 0.99; animation-timing-function: ease-out; }
  69.7%, 92.3% { opacity: 1; scale: 1; }
  92.4%, 100% { opacity: 0; scale: 1; }
}

@keyframes cl-restart-press {
  0%, 85.1%, 92.4%, 100% { scale: 1; }
  88.8% { scale: 0.98; }
}

@keyframes cl-restart-hover {
  0%, 79.7% { opacity: 0; }
  85.1%, 92.3% { opacity: 1; }
  92.4%, 100% { opacity: 0; }
}

/* ---- Tool kit ------------------------------------------------------------ */
/* The diagram keeps its Figma proportions and scales as one piece. */

.cl-tools {
  display: flex;
  justify-content: center;
}

.cl-tools__diagram {
  position: relative;
  width: 100%;
  max-width: 33.5rem;
  margin: 0;
  padding: 0;
  aspect-ratio: 536.25 / 471.75;
  list-style: none;
  container-type: inline-size;
}

.cl-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3.36cqw;
  height: 15.66cqw;
  padding-inline: 2.8cqw;
  border-radius: 999px;
  background-color: var(--cl-blue-brand);
  color: var(--color-white);
  font-size: max(2.24cqw, 0.625rem);
  font-weight: 700;
  line-height: 1.3;
}

.cl-chip img {
  width: 8.95cqw;
  height: 8.95cqw;
  border-radius: 50%;
}

.cl-chip--claude {
  top: 41.65%;
  left: 0;
  width: 29.37%;
}

.cl-chip--figma {
  top: 7.63%;
  left: 71.89%;
  width: 28.11%;
}

.cl-chip--cursor {
  top: 75.52%;
  left: 71.89%;
  width: 27.97%;
}

.cl-tools__arrows {
  position: absolute;
  top: 0.04%;
  left: 12.63%;
  width: 85.94%;
}

.cl-tools__arrows img { width: 100%; }

/* ---- Team ---------------------------------------------------------------- */
/* Phones and tablets use a tighter gap under the divider than desktop. */

.cl-section--team .cl-container { gap: 1.75rem; }

.cl-team {
  display: grid;
  gap: 3.5625rem;
}

.cl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-24);
  padding: var(--space-40) var(--space-44) var(--space-44);
  border: 0.125rem solid var(--cl-gray-100);
  border-radius: var(--radius-24);
  background-color: var(--cl-teal-subtle);
}

.cl-card__label {
  color: var(--cl-teal-dark);
  font-family: var(--cl-font-text);
  font-size: var(--font-size-body-400);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cl-card__heading {
  color: var(--cl-navy);
  font-family: var(--cl-font-title);
  font-size: var(--font-size-heading-300);
  font-weight: 600;
  line-height: 1.2;
}

/* Accent bar between the heading and the list */
.cl-card__heading::after {
  content: "";
  display: block;
  width: 6.25rem;
  height: 0.375rem;
  margin-top: var(--space-20);
  background-color: var(--cl-teal);
}

.cl-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  margin: calc(var(--space-4) * -1) 0 0;
  padding: 0;
  list-style: none;
  color: var(--cl-gray-900);
  font-family: var(--font-body);
  font-size: var(--font-size-body-200);
  line-height: var(--line-height-body-200);
}

/* Phones: the bullet sits beside the first line. */
.cl-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-20);
}

.cl-card__list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.625rem;
  border-radius: 50%;
  background-color: var(--cl-teal);
}

/* Tablet and up: the bullet is centred on the whole item. */
@media (min-width: 40rem) {
  .cl-card__list {
    font-size: var(--font-size-body-300);
    line-height: var(--line-height-body-300);
  }

  .cl-card__list li { align-items: center; }
  .cl-card__list li::before { margin-top: 0; }
}

@media (min-width: 64rem) {
  .cl-section--team .cl-container { gap: var(--space-32); }

  .cl-team { grid-template-columns: 1fr 1fr; }

  .cl-card__list {
    font-size: var(--font-size-body-200);
    line-height: var(--line-height-body-200);
  }
}

@media (max-width: 39.99rem) {
  .cl-section--team { --cl-gutter: var(--space-24); }
}

/* ---- Footer -------------------------------------------------------------- */

.cl-footer .site-footer__nav { justify-content: center; }

.cl-footer .button { text-transform: none; }
