/* Product evidence sits in the existing violet world, without altering its 3D scene. */
.workflow-showcase {
  --tour-ink: #fbfaff;
  --tour-muted: #e1d8f4;
  position: relative;
  margin-top: 54px;
  padding: clamp(24px, 3.8vw, 48px);
  overflow: hidden;
  border: 1px solid #79619e;
  border-radius: 24px;
  background: radial-gradient(ellipse at 18% 75%, #7652cc70, transparent 62%),
    linear-gradient(125deg, #211434, #412673 64%, #342052);
  color: var(--tour-ink);
}
.workflow-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.workflow-kicker {
  margin-bottom: 14px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #d4c1ff;
}
.workflow-heading h3 {
  max-width: 18ch;
  white-space: pre-line;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.13;
  letter-spacing: -.035em;
}
.workflow-intro {
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--tour-muted);
}
.workflow-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.workflow-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 66px;
  padding: 15px 18px;
  border: 1px solid #ab92d56b;
  border-radius: 12px;
  background: #ffffff08;
  color: #eae1fb;
  text-align: left;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  transition: background .2s, border-color .2s;
}
.workflow-tab svg { flex: 0 0 20px; width: 20px; height: 20px; }
.workflow-tab:hover { background: #ffffff16; border-color: #d3c0f8; }
.workflow-tab[aria-selected=true] { background: #faf7ff; border-color: #faf7ff; color: #352052; }
.workflow-tab-number {
  margin-left: auto;
  color: inherit;
  opacity: .7;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}
.workflow-panel {
  display: grid;
  grid-template-columns: minmax(0, 3.3fr) minmax(180px, 1fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
  margin-top: 30px;
}
.workflow-figure { min-width: 0; margin: 0; }
.workflow-image-action {
  display: block;
  width: 100%;
  padding: 6px;
  border: 1px solid #ffffff90;
  border-radius: 11px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 22px 46px #0b061d65;
}
.workflow-screen {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 5px;
}
.workflow-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--tour-muted);
}
.workflow-enlarge {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid #cbb5f1;
  background: transparent;
  color: #fff;
  white-space: nowrap;
  font-size: .875rem;
}
.workflow-step {
  display: block;
  margin-bottom: 16px;
  color: #c9b0f5;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.workflow-copy h4 {
  margin: 0;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.18;
  letter-spacing: -.025em;
}
.workflow-copy p {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--tour-muted);
}
.workflow-proof {
  display: block;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #b296dc60;
  color: #e3d6fb;
  font-size: .75rem;
  line-height: 1.7;
}
.workflow-error { margin-top: 14px; color: #ffe0b4; font-size: .875rem; }
.workflow-showcase :focus-visible { outline-color: #b4ffe2; }
.workflow-panel:focus-visible { outline: 3px solid #b4ffe2; outline-offset: 8px; }
.catalog-tour-link { display: inline-flex; align-items: center; min-height: 44px; margin: 12px 0 0 18px; padding-block: 8px; border-bottom: 1px solid #278f7c; color: #152b3b; font-size: .875rem; font-weight: 500; }
.selected-product:not([data-selected-product="mwm"]) .catalog-tour-link { display: none; }
/* Make existing product explanations readable, not thumbnail captions. */
.collection-heading p, .catalog-description, .product-pair h3+p,
.local-heading p, details p { font-size: 1rem; }
.catalog-features, .identity-caption, .catalog-action, .pair-actions a,
.selector-channel, .question-list summary, .closing-action { font-size: .875rem; }
.catalog-action, .pair-actions a, .closing-action, .dialog-close, .expand-product { min-height: 44px; }
.dialog-close, .expand-product { min-width: 44px; }
.catalog-visual-action>span, .catalog-status, .spec-row span, .spec-note { font-size: .8125rem; }
.product-dialog .dialog-bar { position: sticky; top: 0; z-index: 1; background: #fafaf7; }
/* HTML height hints must not become an 835/875px-tall letterbox on a phone. */
.actual-screen { width: 100%; height: auto; aspect-ratio: auto; }
.experience-stage.is-open .hero-copy,
.experience-stage.is-open .stage-footer { visibility: hidden; }
@media (max-width: 1000px) {
  .workflow-heading { align-items: start; flex-direction: column; gap: 20px; }
  .workflow-intro { max-width: 58ch; }
  .workflow-panel { grid-template-columns: 1fr; }
  .workflow-copy { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 0 28px; }
  .workflow-step { grid-column: 1 / -1; margin-bottom: 10px; }
  .workflow-copy p { margin-top: 0; }
  .workflow-proof { grid-column: 1 / -1; margin-top: 20px; }
}
/* The generic tablet icon size must not shrink the horizontal brand wordmarks. */
@media (min-width: 701px) and (max-width: 1100px) {
  .mwm-selector>img { width: 110%; height: auto; }
  .mtm-selector>img { width: 100%; height: auto; }
}
@media (max-width: 700px) {
  .experience-stage {
    --mobile-reveal-top: clamp(240px, 34svh, 320px);
    /* Reserve the toolbar, caption, control row and bottom breathing room. */
    --mobile-image-max-height: max(130px, calc(100svh - var(--mobile-reveal-top) - 208px));
    --mobile-reveal-width: min(90%, calc(var(--mobile-image-max-height) * 1.62742857));
  }
  .inside-copy { top: clamp(64px, 10svh, 96px); }
  .inside-copy h2 { font-size: clamp(25px, 7.4vw, 31px); max-width: none; }
  .product-reveal {
    top: var(--mobile-reveal-top);
    width: var(--mobile-reveal-width);
    left: calc((100% - var(--mobile-reveal-width)) / 2);
  }
  .product-caption { min-height: 84px; justify-content: start; }
  .hero-switch { width: 44px; height: 44px; }
  .experience-stage.is-open .hero-switches {
    /* The tallest existing capture is 875/1424, not the viewport's height. */
    top: calc(var(--mobile-reveal-top) + min(55.31vw, var(--mobile-image-max-height)) + 144px);
    bottom: auto;
  }
  .workflow-showcase { margin-top: 38px; padding: 24px 18px; border-radius: 18px; }
  .workflow-heading h3 { font-size: 28px; }
  .workflow-kicker { margin-bottom: 12px; }
  .workflow-tabs { gap: 6px; margin-top: 26px; }
  .workflow-tab { justify-content: center; flex-direction: column; gap: 8px; padding: 13px 5px; min-height: 88px; text-align: center; }
  .workflow-tab-number { display: none; }
  .workflow-panel { gap: 25px; margin-top: 22px; }
  .workflow-image-action { padding: 3px; border-radius: 7px; }
  .workflow-figure figcaption { align-items: start; gap: 8px; }
  .workflow-figure figcaption>span { max-width: 20ch; }
  .workflow-enlarge { padding-top: 0; min-height: 44px; }
  .workflow-copy { display: block; }
  .workflow-copy h4 { font-size: 25px; }
  .workflow-copy p { margin-top: 14px; }
  .selector-channel { font-size: .875rem; }
  .catalog-tour-link { display: flex; width: fit-content; margin-left: 0; }
  .product-topline { height: auto; min-height: 44px; }
  .catalog-description, .collection-heading p, .product-pair h3+p,
  .local-heading p, details p { font-size: 1rem; }
}
@media (max-width: 700px) and (max-height: 650px) {
  .experience-stage { --mobile-reveal-top: 190px; }
  .inside-copy { top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-tab { transition: none; }
}
