/* A real preview control and a separate entry button, with no nested buttons. */
.scene-preview-trigger {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%;
  padding: 0; border: 0; border-radius: inherit; background: transparent;
  color: inherit;
}
.scene-preview-trigger:focus-visible { outline-offset: -4px; }
.scenario-card .scenario-copy { z-index: 5; pointer-events: none; }
.scenario-card .scene-cta {
  position: relative; z-index: 5; pointer-events: auto; background: transparent;
  color: inherit; border-radius: 0; padding: 0 0 5px; text-align: left;
}
.scenario-card:focus-within { box-shadow: 0 0 0 2px var(--orange); }
.scenario-switcher button[aria-pressed="true"] { color: #c65008; border-color: var(--orange); background: #fff5ec; }

/* Touch input is detected by capability, including hybrid tablets, not screen width. */
:root[data-discovery-input="touch"] .industry-shell .industry .scene-bg {
  filter: saturate(.9) brightness(.96); transform: none;
}
:root[data-discovery-input="touch"] .industry-shell .industry-product-tag {
  display: none;
}
:root[data-discovery-input="touch"] .industry-shell .industry-products {
  display: block;
}
:root[data-discovery-input="touch"] .industry-shell .industry-bottom p {
  margin-bottom: 5px;
}
:root[data-discovery-input="touch"] .industry-shell .industry-product-light {
  display: block; opacity: .65; transform: none;
}
:root[data-discovery-input="touch"] .industry-shell .industry.industry-playing .scene-bg,
:root[data-discovery-input="touch"] .industry-shell .industry.industry-playing .industry-product-light {
  animation: industry-touch-reveal 1.6s cubic-bezier(.2,.65,.3,1) both;
}
@keyframes industry-touch-reveal {
  0% { transform: scale(1); filter: saturate(.5) brightness(.92); }
  50% { transform: scale(1.025); filter: saturate(1) brightness(1.04); }
  100% { transform: scale(1); filter: saturate(.9) brightness(.96); }
}

:root[data-discovery-input="touch"] .discovery-shell .scenario-card {
  box-shadow: none;
}
:root[data-discovery-input="touch"] .discovery-shell .scenario-card > .scene-bg {
  transform: none; filter: saturate(.55) brightness(.7);
}
:root[data-discovery-input="touch"] .discovery-shell .scenario-card .phone {
  transform: translateY(-50%) rotate(7deg);
}
:root[data-discovery-input="touch"] .discovery-shell .scenario-card.scene-active {
  box-shadow: 0 0 0 2px var(--orange);
}
:root[data-discovery-input="touch"] .discovery-shell .scenario-card.scene-active > .scene-bg {
  filter: saturate(1) brightness(.96); transform: scale(1.025);
}
:root[data-discovery-input="touch"] .discovery-shell .scenario-card.scene-active .phone {
  transform: translateY(-50%) rotate(0); opacity: 1;
}
:root[data-discovery-input="touch"] .discovery-shell .scenario-card.scene-playing .phone {
  animation: scene-touch-phone 1.4s cubic-bezier(.2,.65,.3,1) both;
}
:root[data-discovery-input="touch"] .discovery-shell .scenario-card.scene-playing > .scene-bg {
  animation: scene-touch-photo 1.4s cubic-bezier(.2,.65,.3,1) both;
}
:root[data-discovery-input="touch"] .scenario-card .scene-cta {
  min-height: 42px; padding: 10px 16px; border: 1px solid #ffffff60;
  border-radius: 24px; background: #fff; color: #1e293b; font-size: 12px;
}
:root[data-discovery-input="touch"] .scene-footnote .desktop-hint { display: none; }
:root[data-discovery-input="touch"] .scene-footnote .touch-hint { display: inline; }
:root[data-discovery-input="mouse"] .scene-footnote .desktop-hint { display: inline; }
:root[data-discovery-input="mouse"] .scene-footnote .touch-hint { display: none; }
.touch-hint .swipe-hint { display: none; }
@media (max-width: 850px) { .touch-hint .swipe-hint { display: inline; } }
@keyframes scene-touch-phone {
  0% { transform: translateY(-50%) rotate(7deg); }
  45%, 100% { transform: translateY(-50%) rotate(0); }
}
@keyframes scene-touch-photo {
  0% { transform: scale(1); filter: saturate(.55) brightness(.7); }
  60%, 100% { transform: scale(1.025); filter: saturate(1) brightness(.96); }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-discovery-input="touch"] .industry-shell .industry *,
  :root[data-discovery-input="touch"] .discovery-shell .scenario-card * {
    animation: none !important; transition: none !important;
  }
}
