/* Grocery App — 02 Top grocery + process */

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

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

@keyframes cw-grocery-leading-grow {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.cw-grocery-leading-process {
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.cw-grocery-leading-process__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.cw-grocery-leading-process__intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.cw-grocery-leading-process__intro.is-revealed,
.cw-grocery-leading-process__process.is-revealed {
  animation: cw-grocery-leading-reveal 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.cw-grocery-leading-process__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;
}

.cw-grocery-leading-process__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #e0431c;
}

.cw-grocery-leading-process__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: #3a332d;
}

.cw-grocery-leading-process__lead {
  margin: 0;
  text-wrap: pretty;
}

.cw-grocery-leading-process__cta {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 18, 16, 0.12);
  text-wrap: pretty;
}

.cw-grocery-leading-process__link {
  color: #e0431c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cw-grocery-leading-process__link:hover,
.cw-grocery-leading-process__link:focus-visible {
  color: #c93a16;
}

.cw-grocery-leading-process__process {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cw-grocery-leading-process__process-title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.025em;
}

.cw-grocery-leading-process__process-title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #e0431c;
}

.cw-grocery-leading-process__track-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px 8px;
}

.cw-grocery-leading-process__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.cw-grocery-leading-process__track-line {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 27px;
  height: 2px;
  background: rgba(20, 18, 16, 0.12);
  pointer-events: none;
}

.cw-grocery-leading-process__track-fill {
  position: absolute;
  left: 12.5%;
  top: 27px;
  height: 2px;
  width: 0;
  background: #141210;
  transition: width 0.5s ease;
  pointer-events: none;
}

.cw-grocery-leading-process__step {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: inherit;
  color: #141210;
  z-index: 1;
}

.cw-grocery-leading-process__step-no {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cw-grocery-badge-bg, #d4f53c);
  color: var(--cw-grocery-badge-fg, #141210);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 15px 'Inter Tight', sans-serif;
  box-shadow: 0 0 0 6px #f3efe7;
  transition: all 0.3s;
  flex: none;
}

.cw-grocery-leading-process__step-label {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: #141210;
  display: flex;
  align-items: center;
  font: 700 14px 'Inter', sans-serif;
  transition: all 0.3s;
  white-space: nowrap;
}

.cw-grocery-leading-process__step.is-active .cw-grocery-leading-process__step-label {
  background: #141210;
  color: #fff;
}

.cw-grocery-leading-process__step:focus-visible {
  outline: 2px solid #141210;
  outline-offset: 4px;
  border-radius: 8px;
}

.cw-grocery-leading-process__detail {
  border-radius: 28px;
  background: #141210;
  color: #f3efe7;
  padding: clamp(24px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  animation: cw-grocery-leading-fade 0.45s ease-out both;
}

.cw-grocery-leading-process__detail.is-animating {
  animation: cw-grocery-leading-fade 0.45s ease-out both;
}

.cw-grocery-leading-process__detail-no {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: #d4f53c;
}

.cw-grocery-leading-process__detail-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cw-grocery-leading-process__detail-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.025em;
}

.cw-grocery-leading-process__detail-text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(234, 231, 225, 0.8);
  max-width: 620px;
}

.cw-grocery-leading-process__detail-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(234, 231, 225, 0.12);
  overflow: hidden;
  max-width: 320px;
}

.cw-grocery-leading-process__detail-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #d4f53c;
}

.cw-grocery-leading-process__detail-bar-fill.is-animating {
  animation: cw-grocery-leading-grow 3.4s linear both;
}

@media (max-width: 720px) {
  .cw-grocery-leading-process__track {
    min-width: 520px;
  }

  .cw-grocery-leading-process__step-label {
    font-size: 12px;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-grocery-leading-process__intro.is-revealed,
  .cw-grocery-leading-process__process.is-revealed,
  .cw-grocery-leading-process__detail,
  .cw-grocery-leading-process__detail-bar-fill.is-animating {
    animation: none;
  }

  .cw-grocery-leading-process__track-fill {
    transition: none;
  }

  .cw-grocery-leading-process__detail-bar-fill.is-animating {
    width: 100%;
  }
}
