/* goonlab — the homepage's scenarios (docs/bots/spec/125-bots-become-
   scenarios-and-the-site-promotes-them.md, section 4; templates/core/
   home.html). Loaded by the homepage only, and only for a visitor the bots
   are open to (core.views.landing, bots_open), after the site's own sheets,
   make.css and, with the row, catalog.css; and, for the same row's look, by
   the first page of a search of the video catalog that finds scenarios
   (templates/videos/catalog.html and _scenarios_found.html: of this sheet
   only the rule of the row applies there). It is not in goonlab.css: that
   file's content is part of the ?v= value every page asks for the site's
   files with, and every other visitor's pages must stay exactly as they
   were (core.tests_make).

   THE BANNER at the very top, in the studio banner's own box (.home-cta):
   from 900 pixels wide the words and the two buttons on the left, the launch
   pop-up's picture of a stream on the right (static/bots/launch.css draws it
   there; the same sizes and colours here); below 900 pixels one column, the
   picture under the words. THE TWO CARDS under it, side by side from 700
   pixels, one under the other below: the second one carries the accent edge
   of the site's marked card (parts.css, .card.is-marked) with the marks
   "New" (the launch pop-up's) and "FREE" (filled in the accent colour,
   larger). THE ROW is the homepage's own row of cards (goonlab.css,
   .video-strip) with the catalog's card (catalog.css). The site's colours
   (goonlab.css :root), buttons and spacings (parts.css). Nothing here
   touches another page. */

/* ---- the banner */
/* the words and the picture stand together in the middle of a wide banner,
   as the launch pop-up's panel holds them (at most about 1200 pixels) */
.home-cta.home-scn-banner {
  display: grid;
  grid-template-columns: minmax(0, 36rem) minmax(0, 34rem);
  justify-content: center;
  align-items: center;
  gap: var(--space-5) clamp(1.5rem, 5vw, 6rem);
  padding: clamp(1.5rem, 2.2vw, 2.25rem) clamp(1.5rem, 2.6vw, 2.75rem);
  margin-bottom: var(--space-4);
  overflow: hidden;
  background:
    radial-gradient(38rem 26rem at 100% 0%, rgba(255, 77, 141, 0.16), transparent 70%),
    radial-gradient(30rem 24rem at 0% 100%, rgba(168, 85, 247, 0.13), transparent 70%),
    var(--panel);
}
/* a visitor the age rules hold back gets no picture: the words alone */
.home-cta.home-scn-banner.home-scn-plain { grid-template-columns: minmax(0, 46rem); }
.home-scn-words {
  min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start;
}
.home-cta .home-scn-kicker { margin: 0 0 var(--space-3); }
/* the mark "New": the launch pop-up's (launch.css, .bots-launch-new) */
.home-scn-new {
  display: inline-flex; align-items: center;
  padding: 0.1rem 0.7rem;
  border: 1px solid var(--accent-dim); border-radius: var(--radius-pill, 999px);
  background: var(--tint);
  color: var(--accent); font-size: 0.9375rem; font-weight: 800; line-height: 1.5;
  white-space: nowrap;
}
.home-cta .home-scn-title {
  margin: 0;
  font-size: clamp(2.25rem, 1.6vw + 1.25rem, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--text);
}
/* the heading in the site's gradient, as the launch pop-up's coloured words */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .home-cta .home-scn-title {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
.home-cta .home-scn-line {
  margin: var(--space-3) 0 0;
  max-width: 36ch;
  color: var(--muted); font-size: 1.25rem; line-height: 1.5;
}
/* the free minutes stand out: the accent colour, as the launch pop-up's free point */
.home-cta .home-scn-free {
  margin: var(--space-2) 0 0;
  color: var(--accent); font-size: 1.125rem; font-weight: 700; line-height: 1.5;
}
.home-scn-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* the picture of a stream: the launch pop-up's (launch.css, .bots-launch-screen) */
.home-scn-scene { position: relative; min-width: 0; }
.home-scn-scene::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 77, 141, 0.20), transparent);
  pointer-events: none;
}
.home-scn-screen {
  position: relative; z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
  background: #2b1140;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.home-scn-video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.home-scn-live {
  position: absolute; top: 0.75rem; left: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill, 999px);
  background: rgba(10, 8, 18, 0.74);
  color: #fff; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.5;
}
.home-scn-live-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--accent);
  animation: home-scn-pulse 1.6s ease-out infinite;
}
@keyframes home-scn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 141, 0.65); }
  70% { box-shadow: 0 0 0 0.55rem rgba(255, 77, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 141, 0); }
}

/* ---- the two cards: no box around them, each card its own */
.home-cta.home-scn-make {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--space-4);
  padding: 0;
  border: 0; border-radius: 0;
  background: none; box-shadow: none;
  margin-bottom: var(--space-5);
}
.home-scn-make > .home-make-choice {
  min-width: 0;
  padding: var(--space-5);
  gap: var(--space-3);
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px;
}
/* the second card: the accent edge and the soft glow of the site's marked
   card; its marks beside its button, "FREE" at the card's right edge, and
   its line under them (the markup keeps the line right after the button, as
   in the first card, and the marks last) */
.home-scn-make > .home-scn-pick {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
  border-color: var(--accent);
  background:
    radial-gradient(28rem 12rem ellipse at 100% 0%, rgba(255, 106, 165, 0.12), transparent 60%),
    var(--panel);
  box-shadow: 0 8px 30px var(--glow);
}
.home-scn-pick > .btn { order: 1; flex: none; max-width: 100%; }
.home-cta .home-scn-marks {
  order: 2;
  flex: 1 1 auto;
  display: flex; align-items: center; gap: var(--space-3);
  margin: 0; min-width: 0;
}
.home-scn-pick > p:not(.home-scn-marks) { order: 3; flex: 1 1 100%; margin: 0; }
/* "FREE": a filled badge in the accent colour, larger than "New" */
.home-scn-free-mark {
  margin-left: auto;
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.8rem;
  border-radius: var(--radius-sm, 6px);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.5rem; font-weight: 900; letter-spacing: 0.08em; line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 6px 20px var(--glow-strong);
}

/* ---- the first row of cards: the cards' own space above it, so that the
   tags stand at the same distance under the cards when there is no row */
.section.home-scn-row { margin-top: 0; }

/* ---- a narrow window and a phone */
@media (max-width: 899px) {
  .home-cta.home-scn-banner { grid-template-columns: minmax(0, 1fr); }
  .home-cta .home-scn-title { font-size: 2.125rem; }
  .home-cta .home-scn-line { max-width: none; font-size: 1.0625rem; }
  .home-cta .home-scn-free { font-size: 1.0625rem; }
  .home-scn-new { font-size: 1rem; }
  .home-scn-live { font-size: 1rem; padding: 0.15rem 0.6rem; }
  .home-scn-screen { border-radius: 14px; }
  .home-scn-scene::before { inset: -6% -4%; }
}
@media (max-width: 699px) {
  .home-cta.home-scn-make { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
}
@media (max-width: 599px) {
  /* mobile.css widens every button of the banner's box to the full width:
     the two buttons stand one under the other, and the second card's marks
     stand above its button */
  .home-scn-actions { align-self: stretch; flex-direction: column; align-items: stretch; }
  .home-scn-make > .home-make-choice { padding: var(--space-4); }
  .home-cta .home-scn-marks { order: 0; flex-basis: 100%; }
  .home-scn-pick > .btn { flex: 1 1 100%; }
}

/* ---- motion and forced colours */
@media (prefers-reduced-motion: reduce) {
  .home-scn-live-dot { animation: none; }
}
@media (forced-colors: active) {
  .home-cta .home-scn-title { background: none; color: CanvasText; }
  .home-scn-free-mark { border: 1px solid CanvasText; }
}
