/* Keep the preview in normal flow and size the shared stage to its tallest panel. */
.go-setup-stage { width: 100%; max-width: 560px; min-height: 448px; display: grid; align-content: start; gap: 24px; font-size: 14px; }
.go-setup-brief { display: grid; min-height: 66px; line-height: 1.55; color: #f3f2ee; }
.go-setup-brief::before, .go-setup-brief > span { grid-area: 1/1; }
/* Measure the fully typed copy at the current width so the toolbar never jumps. */
.go-setup-brief::before { content: attr(data-brief); visibility: hidden; }
.go-setup-tools { flex-wrap: wrap; }
.go-setup-tools > span { white-space: nowrap; }
.go-setup-panels { display: grid; align-items: start; }
.go-setup-panels > .pg-panel {
  grid-area: 1/1;
  min-width: 0;
  animation: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .26s ease, transform .32s cubic-bezier(.22,1,.36,1), visibility 0s;
}
.go-setup-panels > .pg-panel[aria-hidden="true"] {
  opacity: 0;
  transform: translateY(4px);
  visibility: hidden;
  pointer-events: none;
  transition-delay: 0s, 0s, .26s;
}
.go-faq-row {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows .34s cubic-bezier(.22,1,.36,1), opacity .22s ease;
}
.go-faq-row[aria-hidden="true"] { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.go-faq-clip { min-height: 0; overflow: hidden; }
#faq .pr-q:focus-visible { outline-offset: -3px; }
#how [role="tablist"] { overflow-anchor: none; }
@media (prefers-reduced-motion: reduce) {
  #how *, #faq * { animation: none !important; transition: none !important; }
  .go-setup-panels > .pg-panel { transform: none; }
  #how .pg-seg { transform: translateX(200%); }
}
.go-setup-label { display: grid; }
.go-setup-label::before, .go-setup-label > span { grid-area: 1/1; }
.go-setup-label::before { content: attr(data-full); visibility: hidden; }

.go-setup-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
/* Four equal portions of native scrolling hold the scene, including full
   reading intervals for both the first and final steps. */
#how { padding-top: var(--section-space); }
#how .go-section-heading { padding: 0 0 clamp(16px, 3svh, 36px); }
.go-setup-track[data-scroll-steps]::after { content: ""; display: block; height: clamp(880px, 168svh, 1920px); }
.go-setup-track[data-scroll-steps] > .go-setup-scene { position: sticky; top: var(--go-setup-pin); }
#how .pg-fill { animation: none; transform: none; }
.go-step-caption { display: none; }
@media (max-width: 1020px) {
  .go-setup-layout { display: grid; gap: 14px; }
  #how [role="tablist"] { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); min-height:0!important; gap:4px 12px; }
  #how [role="tab"] { min-height:44px; align-items:stretch; column-gap:8px!important; }
  #how .go-step-body { display:grid; align-content:center; padding:6px 0!important; }
  #how .go-step-body > span:first-child { font-size:clamp(14px,2.4vw,18px)!important; }
  #how .go-step-body > span:first-child > span { width:16px!important; }
  #how .go-step-body > span + span { display:none!important; }
  #go-setup-demo { padding:16px!important; border-radius:20px!important; }
  .go-setup-stage { min-height:0; grid-template: auto 1fr / minmax(0,1fr); gap:10px; }
  .go-step-caption { display:block; grid-area:1/1; min-height:3lh; line-height:1.35; font-size:13px; font-weight:600; color:white; text-shadow:0 1px 4px #18181a; }
  .go-setup-stage > .pg-glass, .go-setup-panels { grid-area:2/1; align-self:start; }
  #go-setup-demo[aria-labelledby="go-step-1"] .go-setup-panels,
  #go-setup-demo:not([aria-labelledby="go-step-1"]) .go-setup-stage > .pg-glass { visibility:hidden; opacity:0; pointer-events:none; }
}
@media (min-width:1021px) {
  .go-setup-layout { display:grid; grid-template-columns:minmax(0, .85fr) minmax(0, 1.45fr); }
}
@media (max-width:360px) {
  #go-setup-demo { padding:10px!important; }
  .go-setup-stage .pg-panel:has(.pg-seg) { padding:10px!important; }
  .go-setup-stage .pg-seg ~ span { font-size:11px; }
}
@media (max-width:1020px) and (max-height:650px) {
  #how .go-section-heading h2 { font-size:26px!important; line-height:1.04!important; }
  #how .go-section-heading { padding-bottom:12px; }
  .go-setup-stage .go-setup-tools { display:none!important; }
  .go-setup-stage .pg-glass { padding:14px!important; }
}

/* 17 Nov 2026: on phones the brief and the step panels fade between steps instead of switching instantly. */
@media (max-width:1020px) {
  .go-setup-stage > .pg-glass, .go-setup-panels { transition: opacity .26s ease, visibility 0s linear 0s; }
  #go-setup-demo[aria-labelledby="go-step-1"] .go-setup-panels,
  #go-setup-demo:not([aria-labelledby="go-step-1"]) .go-setup-stage > .pg-glass { transition: opacity .2s ease, visibility 0s linear .2s; }
}
@media (prefers-reduced-motion: reduce) {
  .go-setup-stage > .pg-glass, .go-setup-panels { transition: none !important; }
}

#how [role="tab"]:is(:hover,:focus-visible) .go-step-body > span:first-child { text-decoration:underline; text-underline-offset:.2em; }
