/* Mobile App — 13 Success stories */

.cw-mobile-app-stories {
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: #15130f;
  color: #f3efe7;
  --cw-ma-edge: clamp(12px, 1.5vw, 24px);
  --cw-ma-pad-x: clamp(12px, 1.25vw, 18px);
}

.cw-mobile-app-stories__inner {
  box-sizing: border-box;
  width: min(1580px, calc(100vw - 2 * var(--cw-ma-edge)));
  max-width: calc(100vw - 2 * var(--cw-ma-edge));
  margin-inline: auto;
  padding: clamp(36px, 4.5vw, 56px) var(--cw-ma-pad-x);
}

.cw-mobile-app-stories__card {
  border: 1px solid rgba(234, 231, 225, 0.09);
  border-radius: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  overflow: hidden;
}

.cw-mobile-app-stories__left {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px dashed rgba(234, 231, 225, 0.1);
}

.cw-mobile-app-stories__title {
  margin: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #f3efe7;
  text-wrap: balance;
}

.cw-mobile-app-stories__feature {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.cw-mobile-app-stories__feature.is-animate {
  animation: cw-ma-stories-fade 0.4s ease-out both;
}

@keyframes cw-ma-stories-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cw-mobile-app-stories__feature-num {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(72px, 12vw, 110px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: #ff5527;
}

.cw-mobile-app-stories__feature-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(234, 231, 225, 0.6);
  max-width: 14ch;
}

.cw-mobile-app-stories__right {
  padding: clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
}

.cw-mobile-app-stories__intro {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(234, 231, 225, 0.72);
}

.cw-mobile-app-stories__item {
  border-top: 1px solid rgba(234, 231, 225, 0.09);
}

.cw-mobile-app-stories__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #f3efe7;
  -webkit-tap-highlight-color: transparent;
}

.cw-mobile-app-stories__trigger:focus-visible {
  outline: 2px solid #ff5527;
  outline-offset: 4px;
  border-radius: 4px;
}

.cw-mobile-app-stories__index {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: rgba(255, 85, 39, 0.5);
  flex-shrink: 0;
  pointer-events: none;
}

.cw-mobile-app-stories__item-title {
  flex: 1;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  pointer-events: none;
}

.cw-mobile-app-stories__plus {
  font-size: 20px;
  color: rgba(255, 85, 39, 0.5);
  transform: rotate(0deg);
  transition: transform 0.3s ease, color 0.25s ease;
  flex-shrink: 0;
  pointer-events: none;
}

.cw-mobile-app-stories__item.is-open .cw-mobile-app-stories__trigger {
  color: #ff5527;
}

.cw-mobile-app-stories__item.is-open .cw-mobile-app-stories__index,
.cw-mobile-app-stories__item.is-open .cw-mobile-app-stories__plus {
  color: #ff5527;
}

.cw-mobile-app-stories__item.is-open .cw-mobile-app-stories__plus {
  transform: rotate(45deg);
}

.cw-mobile-app-stories__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}

.cw-mobile-app-stories__item.is-open .cw-mobile-app-stories__body {
  grid-template-rows: 1fr;
}

.cw-mobile-app-stories__body-inner {
  overflow: hidden;
}

.cw-mobile-app-stories__text {
  margin: 0 0 20px 46px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(234, 231, 225, 0.66);
}

@media (min-width: 900px) {
  .cw-mobile-app-stories__left {
    border-bottom: 0;
    border-right: 1px dashed rgba(234, 231, 225, 0.1);
  }
}

@media (max-width: 640px) {
  .cw-mobile-app-stories__text {
    margin-left: 0;
  }
}
