/* Both product demos use the same glass, painting and window frame. */
.hero-stage, .bg-hero {
  --preview-glass: linear-gradient(180deg, rgba(30,30,34,.66), rgba(18,18,21,.8));
  --preview-filter: blur(26px) saturate(1.5);
  --preview-edge: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.24), 0 50px 120px rgba(23,24,27,.32);
}
html body .hero-stage .appwin::before, .bg-hero > .pg-glass {
  background: var(--preview-glass)!important;
  -webkit-backdrop-filter: var(--preview-filter)!important;
  backdrop-filter: var(--preview-filter)!important;
  box-shadow: var(--preview-edge)!important;
}
.bg-hero {
  background: url('/assets/paintings/haverstraw.jpg') center 42% / cover no-repeat;
  border-radius: 28px!important;
  padding: clamp(28px,4.4vw,64px) clamp(20px,4.4vw,64px) 0!important;
}
.bg-hero > .pg-glass {
  border: 0!important; border-radius: 22px 22px 0 0!important;
  display: grid!important; grid-template-columns: clamp(200px,19vw,248px) minmax(0,1fr);
  max-width: none!important;
}
.bg-hero > .pg-glass > aside {
  background: rgba(10,10,12,.22)!important;
  border-color: rgba(255,255,255,.20)!important; min-height: 0!important;
}
.bg-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(20,20,23,.18));
}
.bg-hero > .pg-glass { position: relative; }
.bg-hero aside img { height: 18px!important; }
.go-demo-orb {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #bdbab5 40%, #6f6c68 75%, #3a3836);
}
.bg-hero > .pg-glass > div > div:last-child > div {
  background: rgba(14,14,16,.55); border: 0!important; border-radius: 22px!important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10)!important;
}
@media (min-width: 1001px) {
  .bg-hero > .pg-glass { min-height: clamp(420px, 38vw, 540px); }
  .bg-hero > .pg-glass > div > div:first-child { padding-block: 10px!important; }
  .bg-hero > .pg-glass > div > div:nth-child(2) { padding-block: 12px 0!important; gap: 10px!important; }

  .bg-hero .pg-glass ol > li { height: 42px!important; }
  .bg-hero > .pg-glass > div > div:last-child { margin-top: auto; padding-block: 8px!important; }
}
.bg-hero .pg-glass li { height: 50px!important; }
.go-demo-caption { margin: 8px 0 0; text-align: center; font-size: 11px; line-height: 1.4; color: rgba(245,244,242,.72); }
@media(max-width:1000px) {
  .bg-hero > .pg-glass { grid-template-columns: minmax(0,1fr); }
  .bg-hero > .pg-glass > aside { display: none!important; }
}
@media(max-width:760px) {
  .bg-hero { padding: 18px 14px 0!important; border-radius: 24px!important; }
}
@media(max-width:600px) {
  .bg-hero { padding: 6px!important; }
  .bg-hero .pg-glass > div > div { padding-inline: 12px!important; }
  .bg-hero .pg-glass > div > div:nth-child(2) { padding-top: 12px!important; gap: 10px!important; }
  .bg-hero .pg-glass ol { padding-inline: 8px!important; }
  .bg-hero .pg-glass li { column-gap: 6px!important; grid-template-columns: 18px minmax(0,1fr) 36px!important; }

  .bg-hero .go-demo-outcome > div { flex-wrap:wrap; padding:10px!important; }
  .bg-hero .pg-glass ol + div button { white-space:nowrap; }
}

/* Size the slot to its longest state before the first transition. */
.go-demo-outcome { display: grid; min-height: 68px; }
.go-demo-outcome > div { grid-area: 1/1; min-width: 0; transition: opacity .24s ease; }
.go-demo-outcome > [aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .go-demo-outcome > div { transition: none; }
}

.go-invoice-list li { transition: opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1); }
.go-invoice-list li[aria-hidden="true"] { opacity: 0; transform: translateY(5px); }
.go-invoice-list, .go-demo-outcome { transition: opacity .3s ease; }
.go-invoice-list[data-fading="true"], .go-demo-outcome[data-fading="true"] { opacity: 0; }
.go-invoice-sending {
  display:flex; align-items:center; gap:16px; padding:16px 18px;
  border:1px solid rgba(255,255,255,.16); border-radius:14px;
  background:rgba(255,255,255,.06); font-size:13px;
}
.go-send-track { height:4px; flex:1 1 56px; overflow:hidden; border-radius:4px; background:rgba(255,255,255,.12); }
.go-send-track i { display:block; height:100%; background:#f3f2ee; transform:scaleX(0); transform-origin:left; }
.go-invoice-sending[aria-hidden="false"] .go-send-track i { animation:go-send-progress 3.2s linear forwards; }
@keyframes go-send-progress { to { transform:scaleX(1); } }
@media (prefers-reduced-motion:reduce) {
  .go-invoice-list li, .go-invoice-list, .go-demo-outcome { transition:none; }
  .go-invoice-sending .go-send-track i { animation:none; }
}

/* Use the finish of the Praus feature windows for the Go job and setup cards. */
#jobs article.pg-glass, #go-setup-demo :is(.pg-glass, .pg-panel), .go-story-panel::after {
  background: linear-gradient(180deg,rgba(30,30,34,.5),rgba(16,16,19,.68))!important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.26), 0 30px 70px rgba(0,0,0,.35)!important;
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
  border: 0!important;
  border-radius: 22px!important;
}

/* Keep the text and controls on a sharp layer above the painting and its glass. */
.go-story-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f3f2ee;
  background: #292929 var(--story-painting) center / cover no-repeat;
}
.go-story-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: clamp(8px, 1vw, 14px);
  pointer-events: none;
}
.go-engine-panel { --story-painting: url("/go/img/praus-feat-agents.jpg"); }
.go-assistant-panel { --story-painting: url("/go/img/praus-feat-research.jpg"); }
.go-teammate-panel { --story-painting: url("/go/img/praus-hero.jpg"); }
.go-story-panel .pr-ghost-d { color: inherit; }
@media (prefers-reduced-transparency: reduce) {
  .go-story-panel::after { background: #242427!important; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
