.feature-showcase {
  display: grid;
  align-items: center;
  overflow: clip;
  background: linear-gradient(180deg, var(--color-bg) 0%, #ffffff 44%, var(--yc-primary-50) 100%);
}

.feature-showcase__header {
  display: grid;
  max-width: 760px;
  margin-bottom: var(--space-10);
  gap: var(--space-3);
}

.feature-showcase__header h2,
.feature-showcase__header p,
.feature-block__copy h3,
.feature-block__copy p {
  margin-bottom: 0;
}

.feature-showcase__header p {
  max-width: 620px;
  color: var(--color-text-secondary);
  font-size: clamp(17px, 4.8vw, 21px);
  line-height: 1.48;
}

.feature-showcase__list,
.feature-block,
.feature-block__copy {
  display: grid;
}

.feature-showcase__list {
  gap: var(--space-8);
}

.feature-block {
  position: relative;
  gap: var(--space-6);
  align-items: center;
  border: 1px solid var(--color-border-accent);
  border-radius: clamp(var(--radius-lg), 5vw, 32px);
  background: var(--gradient-page-panel);
  padding: clamp(var(--space-5), 6vw, var(--space-12));
  box-shadow: var(--shadow-section);
  isolation: isolate;
  overflow: hidden;
}

.feature-block::before {
  position: absolute;
  inset: var(--space-3);
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.feature-block__copy {
  max-width: 540px;
  gap: var(--space-3);
}

.feature-block__copy h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.16;
}

.feature-block__copy > p:not(.feature-block__kicker) {
  color: var(--color-text-secondary);
  font-size: clamp(16px, 4.2vw, 19px);
  line-height: 1.58;
}

.feature-block__kicker {
  color: var(--yc-primary-700);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feature-tile {
  position: relative;
  display: grid;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: clamp(var(--radius-lg), 4vw, 28px);
  background: var(--color-paper);
  box-shadow:
    var(--shadow-soft),
    0 22px 54px rgba(11, 118, 197, 0.12);
}

.feature-tile--choose {
  padding: var(--space-4);
  background: var(--gradient-surface-muted);
}

.feature-recipe-scroll {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: var(--radius-md);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  scroll-behavior: auto;
  scrollbar-width: none;
}

.feature-recipe-scroll::-webkit-scrollbar {
  display: none;
}

.feature-recipe-scroll__track {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-2);
  will-change: transform;
}

.feature-recipe-card {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-md);
  background: var(--yc-gray-50);
  padding: var(--space-5);
  opacity: 0.92;
  box-shadow: var(--shadow-sm);
}

.feature-recipe-card strong {
  color: var(--color-text);
  font-size: 20px;
  line-height: 1.25;
}

.feature-recipe-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.feature-tile--cook {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--space-4);
  padding: var(--space-5);
}

.feature-step-progress {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding-inline: var(--space-2);
  overflow: visible;
}

.feature-step-progress .app-demo-progress__dot {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: grid;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  place-items: center;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--yc-gray-300);
  padding: 0;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.25, 1),
    background-color 180ms ease;
}

.feature-step-progress .app-demo-progress__dot.is-complete,
.feature-step-progress .app-demo-progress__dot.is-current {
  background: var(--yc-primary-600);
}

.feature-step-progress .app-demo-progress__dot.is-current {
  transform: scale(1.2);
}

.feature-step-progress .app-demo-progress__dot.is-current::after {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-inverse);
  content: "";
}

.feature-step-progress .app-demo-progress__line {
  position: relative;
  height: 2px;
  flex: 1 1 0;
  overflow: hidden;
  background: var(--yc-gray-300);
}

.feature-step-progress .app-demo-progress__line::after {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--yc-primary-600);
  content: "";
  transition: transform 220ms ease;
}

.feature-step-progress .app-demo-progress__line.is-complete::after {
  transform: scaleX(1);
}

.feature-step-stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: stretch;
}

.feature-step-panel {
  display: grid;
  width: 100%;
  place-items: center;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  opacity: 0;
  transform: translateX(10px);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.feature-step-panel:not(:first-child) {
  position: absolute;
  inset: 0;
}

.feature-step-panel.is-active {
  opacity: 1;
  transform: translateX(0);
}

.feature-step-panel p {
  max-width: 13ch;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(24px, 7vw, 30px);
  font-weight: 800;
  line-height: 1.34;
  text-align: center;
}

.feature-encouragement {
  position: relative;
  z-index: 1;
  justify-self: center;
  max-width: 100%;
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.32;
  text-align: center;
}

.feature-tile--shout {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-paper);
}

.feature-wave {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.feature-wave .app-demo-wave__svg {
  width: 100%;
  height: 100%;
}

.feature-wave .app-demo-wave__stop--start {
  stop-color: var(--yc-wave-fill);
  stop-opacity: 0.95;
}

.feature-wave .app-demo-wave__stop--end {
  stop-color: var(--yc-wave-fill);
  stop-opacity: 0.75;
}

.feature-wave .app-demo-wave__fill {
  fill: url(#featureWaveFill);
  fill-opacity: 0.86;
}

.feature-wave .app-demo-wave__stroke {
  fill: none;
  stroke: var(--yc-wave-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7px;
}

.feature-timer {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: center;
  justify-self: center;
  width: min(100%, 196px);
  gap: clamp(14px, 3.6vh, 24px);
  justify-items: center;
  border-radius: var(--radius-lg);
  background: transparent;
  padding: var(--space-3);
  text-align: center;
  transform-origin: center;
}

.feature-tile--shout.is-expired .feature-timer {
  animation: demoTimerPulse 1200ms ease-in-out infinite;
}

.feature-timer .app-demo-timer__value {
  max-width: 15ch;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(34px, 11vw, 52px);
  font-weight: 800;
  line-height: 1.16;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.feature-tile--shout.is-expired .app-demo-timer__value {
  color: var(--yc-success);
  font-size: clamp(20px, 6.6vw, 24px);
  line-height: 1.35;
  white-space: normal;
}

.feature-timer .app-demo-timer__caption {
  max-width: 14ch;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(20px, 6.4vw, 28px);
  font-weight: 800;
  line-height: 1.38;
  text-align: center;
}

.feature-tile--shout.is-expired .app-demo-timer__caption {
  display: none;
}

@media (min-width: 760px) {
  .feature-showcase__header {
    margin-bottom: var(--space-10);
  }

  .feature-showcase__list {
    gap: var(--space-10);
  }

  .feature-block {
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.72fr);
    gap: var(--space-12);
  }

  .feature-block:nth-child(even) {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 0.92fr);
  }

  .feature-block:nth-child(even) .feature-block__copy {
    order: 2;
    justify-self: end;
  }

  .feature-block:nth-child(even) .feature-block__visual {
    order: 1;
  }

  .feature-tile {
    width: min(100%, 360px);
  }
}

@media (min-height: 760px) {
  .feature-showcase {
    min-height: var(--panel-min-height);
    padding: var(--panel-safe-block) 0;
  }

  .feature-block {
    min-height: calc(var(--panel-min-height) - var(--space-20));
  }
}

@media (max-width: 420px) {
  .feature-tile {
    width: 100%;
  }

  .feature-tile--cook,
  .feature-tile--shout {
    padding: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-recipe-card,
  .feature-step-panel,
  .feature-timer {
    transition: none;
  }
}
