/* Mobile App — 04 Why essential */

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

.cw-mobile-app-essential__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(72px, 9vw, 120px) var(--cw-ma-pad-x);
}

.cw-mobile-app-essential__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.cw-mobile-app-essential__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cw-mobile-app-essential__title {
  margin: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cw-mobile-app-essential__title-em {
  color: #c8391a;
}

.cw-mobile-app-essential__list {
  display: flex;
  flex-direction: column;
}

.cw-mobile-app-essential__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  text-align: left;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid rgba(20, 18, 16, 0.16);
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.cw-mobile-app-essential__item.is-active {
  opacity: 1;
}

.cw-mobile-app-essential__item-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  padding-top: 3px;
  color: #5a524a;
  transition: color 0.3s;
}

.cw-mobile-app-essential__item.is-active .cw-mobile-app-essential__item-num {
  color: #c8391a;
}

.cw-mobile-app-essential__item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-mobile-app-essential__item-title {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.cw-mobile-app-essential__item-text {
  font-size: 15px;
  line-height: 1.6;
  color: #2e2822;
}

.cw-mobile-app-essential__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
  min-height: 420px;
}

.cw-mobile-app-essential__visual-bg {
  position: absolute;
  inset: 8% 6%;
  border-radius: 32px;
  background: #b6a6f0;
}

.cw-mobile-app-essential__stat-card {
  position: absolute;
  left: 4%;
  top: 12%;
  padding: 14px 18px;
  background: #141210;
  color: #f3efe7;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.cw-mobile-app-essential__stat-value {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: #d4f53c;
}

.cw-mobile-app-essential__stat-label {
  font-size: 12px;
  color: rgba(234, 231, 225, 0.75);
}

.cw-mobile-app-essential__tag {
  position: absolute;
  right: 4%;
  bottom: 14%;
  padding: 10px 14px;
  background: #f3efe7;
  border-radius: 12px;
  z-index: 2;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #141210;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
}

.cw-mobile-app-essential__phone {
  position: relative;
  width: 260px;
  aspect-ratio: 390 / 844;
  border-radius: 40px;
  background: #141210;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 40px 80px -30px rgba(20, 18, 16, 0.6);
  transform: rotate(-4deg);
  z-index: 1;
}

.cw-mobile-app-essential__phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 78px;
  height: 22px;
  margin-left: -39px;
  border-radius: 12px;
  background: #141210;
  z-index: 3;
}

.cw-mobile-app-essential__phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: #222;
}

.cw-mobile-app-essential__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s, transform 0.8s;
}

.cw-mobile-app-essential__shot.is-active {
  opacity: 1;
  transform: scale(1);
}
