/* Food Delivery App — 03 Core features */

@keyframes cw-food-feat-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cw-food-feat-reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-food-delivery-features {
  background: #eae3d6;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.cw-food-delivery-features__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cw-food-delivery-features__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 760px;
}

.cw-food-delivery-features__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #c8391a;
}

.cw-food-delivery-features__title.is-revealed,
.cw-food-delivery-features__tabs-wrap.is-revealed {
  animation: cw-food-feat-reveal 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.cw-food-delivery-features__tabs-wrap {
  align-self: flex-start;
  max-width: 100%;
}

.cw-food-delivery-features__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
}

.cw-food-delivery-features__tab {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #141210;
  font: 600 14px 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}

.cw-food-delivery-features__tab.is-active {
  background: var(--cw-food-tab-bg, #d4f53c);
  color: var(--cw-food-tab-fg, #141210);
}

.cw-food-delivery-features__tab:focus-visible {
  outline: 2px solid #141210;
  outline-offset: 2px;
}

.cw-food-delivery-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}

.cw-food-delivery-features__grid.is-swapping .cw-food-delivery-features__card {
  animation: none;
  opacity: 0;
}

.cw-food-delivery-features__card {
  border-radius: 24px;
  background: #fff;
  color: #141210;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 250px;
  box-sizing: border-box;
  cursor: pointer;
  border: 0;
  text-align: left;
  font: inherit;
  transition: background 0.3s, color 0.3s;
  animation: cw-food-feat-fade 0.45s ease-out both;
}

.cw-food-delivery-features__card.is-spotlight {
  background: #141210;
  color: #f3efe7;
}

.cw-food-delivery-features__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cw-food-delivery-features__card-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--cw-food-feat-icon-bg, #d4f53c);
  color: var(--cw-food-feat-icon-fg, #141210);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}

.cw-food-delivery-features__card.is-spotlight .cw-food-delivery-features__card-icon {
  background: #ff5527;
  color: #fff;
}

.cw-food-delivery-features__card-no {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  opacity: 0.55;
}

.cw-food-delivery-features__card-title {
  margin: auto 0 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.cw-food-delivery-features__card-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  opacity: 0.82;
}

.cw-food-delivery-features__card:focus-visible {
  outline: 2px solid #ff5527;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cw-food-delivery-features__card,
  .cw-food-delivery-features__title.is-revealed,
  .cw-food-delivery-features__tabs-wrap.is-revealed {
    animation: none;
  }
}
