/* Public page backgrounds belong to full-width sections, never to text wraps. */
html body.premium-public .hero.bots-hero {
  position: relative; isolation: isolate; width: 100%; max-width: none; margin-inline: 0;
  padding-bottom: 45px; overflow: visible;
  background: #060807;
}
html body.premium-public .hero.bots-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('/site-assets/luminous-contours.svg') 80% center / min(900px,80vw) auto no-repeat;
  opacity: .27; mask-image: linear-gradient(0deg, transparent, #000 20% 80%, transparent);
}
html body.premium-public .hero.bots-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 38% 76% at 75% 75%, #d8ff3e1c, transparent 78%),
    radial-gradient(ellipse 25% 70% at 70% 32%, #b49aff12, transparent 75%);
  mask-image: linear-gradient(#000 55%,transparent 100%);
}
html body.premium-public:has(.bots-hero) > .ambient { display: none; }
html body.premium-public .bots-hero-inner { min-width: 0; }
html body.premium-public .bots-hero :is(.hero-layout,.hero-layout > div,.bot-terminal-scene) { min-width: 0; }
html body.premium-public .bots-hero .bot-terminal-scene { margin: 0; }
html body.premium-public .bots-hero .hero-foot { flex-wrap: wrap; gap: 12px 28px; line-height: 1.8; }
html body.premium-public .bots-hero .hero-foot span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
html body.premium-public .bots-hero .terminal-float-chip { right: 16px; max-width: calc(100% - 32px); }
html body.premium-public .bots-hero .terminal-label { font-size: clamp(14px,1.3vw,19px); overflow-wrap: anywhere; }
html body.premium-public .bots-hero :is(.bot-terminal-command,.terminal-titlebar span,.terminal-heatmap-label,.terminal-bottom) { overflow-wrap: anywhere; }
html body.premium-public .bots-hero :is(.terminal-heatmap-label,.terminal-bottom) { flex-wrap: wrap; }
html body.premium-public main > .hero { height: auto; }
html body.premium-public[data-public-page] :is(.hero-layout,.hero-copy,.content,.article-main) { min-width: 0; }
html body.premium-public[data-public-page] :is(.hero-copy,.lead,.page-meta,.content-head) { height: auto; overflow: visible; }
html body.premium-public[data-public-page] :is(.lead,.hero-copy p,.content-head h2) { overflow-wrap: break-word; }
html body.premium-public[data-public-page] .stats-strip {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); height: auto; overflow: visible;
}
html body.premium-public[data-public-page] .stats-strip > div { min-width: 0; height: auto; overflow-wrap: break-word; }
html body.premium-public[data-public-page] .workflow-rail { grid-template-columns: repeat(4,minmax(0,1fr)); height: auto; }
html body.premium-public[data-public-page] .workflow-rail button { min-width: 0; overflow-wrap: break-word; }
html body.premium-public[data-public-page] .public-industry-figure:has(.public-screen) { height: auto; min-height: 0; }
html body.premium-public[data-public-page] .public-screen { min-width: 0; width: 100%; height: auto; }
html body.premium-public[data-public-page] .public-screen-lines { grid-template-columns: repeat(2,minmax(0,1fr)); }
html body.premium-public[data-public-page] .public-screen-lines span { min-width: 0; overflow-wrap: break-word; }

/* Diffuse mist below the closing buttons, across the full page width. */
html body.premium-public #signup.landing-closing {
  position: relative; isolation: isolate; width: 100%; max-width: none;
  margin: 0; padding: 45px 0 0; overflow: clip; background: #060807;
}
html body.premium-public #signup > .closing-mist {
  position: relative; width: 100%; height: clamp(230px,26vw,380px);
  overflow: hidden; pointer-events: none; opacity: .9;
  mask-image: linear-gradient(transparent, #000 24% 78%, transparent);
}
html body.premium-public #signup .mist-cloud {
  position: absolute; left: 0; display: block; pointer-events: none;
  background: radial-gradient(ellipse 36% 42% at 22% 52%, #a4cf386b, transparent 86%),
    radial-gradient(ellipse 32% 36% at 59% 63%, #d8ff3ed9, transparent 80%),
    radial-gradient(ellipse 24% 32% at 84% 43%, #eaff9673, transparent 85%);
  filter: blur(28px); opacity: .7; will-change: transform;
}
html body.premium-public #signup .mist-cloud--dim { opacity: .38; filter: blur(40px); }
html body.premium-public #signup .mist-cloud--violet {
  opacity: .42; filter: blur(32px);
  background: radial-gradient(ellipse 39% 37% at 30% 52%, #b89aff80, transparent 85%),
    radial-gradient(ellipse 29% 42% at 69% 64%, #d8ff3e50, transparent 88%);
}
html body.premium-public #signup > .closing-copy.cta.wrap {
  margin: 0 auto; padding-bottom: 24px; border: 0; background: transparent !important;
}
html body.premium-public #signup > .closing-copy.cta.wrap::before,
html body.premium-public #signup > .closing-copy.cta.wrap::after { display: none; }
html body.premium-public #signup .actions { flex-wrap: wrap; }
html body.premium-public #signup .actions .btn { max-width: 100%; }
html body.premium-public #signup .actions .btn.ghost { flex-shrink: 0; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html body.premium-public #signup .mist-cloud { will-change: auto; }
}
@media (max-width:760px) {
  html body.premium-public[data-public-page] .stats-strip { grid-template-columns: minmax(0,1fr); }
  html body.premium-public[data-public-page] .stats-strip > div { padding: 20px; border-left: 0; border-top: 1px solid #b89aff30; }
  html body.premium-public[data-public-page] .workflow-rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html body.premium-public .hero.bots-hero { padding-bottom: 30px; }
  html body.premium-public .bots-hero .bot-terminal-scene { margin-inline: auto; }
  html body.premium-public .bots-hero .hero-foot span:last-child { display: block; }
  html body.premium-public .bots-hero .bot-terminal-titlebar span { min-width: 0; font-size: 8px; text-align: right; }
}
@media (max-width:480px) {
  html body.premium-public[data-public-page] .public-screen { padding: 18px; }
  html body.premium-public[data-public-page] .public-screen-lines { grid-template-columns: minmax(0,1fr); }
  html body.premium-public[data-public-page] .public-screen-lines span { padding: 12px; }
}

/* Compact article artwork: at most 512 x 320 px, with natural proportions. */
html body.premium-public[data-public-page] .article-image { width: 100%; max-width: 512px; height: auto; max-height: none; min-width: 0; }
html body.premium-public[data-public-page] .article-image .industry-art { position: relative; width: 100%; height: auto; min-height: 0; max-height: none; padding: 0; border: 0; border-radius: 0; overflow: visible; }
html body.premium-public[data-public-page] .article-image img { position: static; display: block; width: 100%; max-width: 100%; height: auto; max-height: none; aspect-ratio: auto; margin: 0; padding: 0; object-fit: contain; transform: none !important; }

/* Show the complete Studio capture, including its bottom rows, on the landing. */
html body.premium-public .signal-stage .industry-hero-art { height: auto; min-height: 0; aspect-ratio: auto; }
html body.premium-public .signal-stage img.signal-screen-capture { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; object-position: center; }
