/* The page "Free time" as a landing page (docs/bots/spec/125-bots-become-
   scenarios-and-the-site-promotes-them.md, section 5; templates/bots/
   free_time.html). Loaded by that page alone. The band for a visitor on the
   other pages keeps its own sheet (bots/free.css), which this page no longer
   loads.

   From top to bottom: the head in the box of the homepage's studio banner
   (goonlab.css .home-cta: the panel, its two soft glows, the accent outline),
   the words on the left and the launch pop-up's moving picture on the right
   from 900 pixels, one column below; the three steps as three cards in the
   look of the Studio's two cards (bots/make.css .make-pick), one under the
   other on a phone; "How it works" as a short list with a drawn sign before
   each line (the pop-up's signs, bots/launch.css .bots-launch-icon); "Want
   more?" in a box of its own; the main button once more at the foot. The
   site's colours (goonlab.css :root), spacings and type steps (parts.css),
   its buttons. Nothing moves for a customer who asked his system for less
   motion; on a phone every button is at least 44 pixels high. */

.free-page { display: grid; gap: var(--space-6, 2rem); }
.free-page p, .free-page h1, .free-page h2, .free-page h3 { margin: 0; }

/* ---- the head */
.free-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background:
    radial-gradient(45rem 16rem ellipse at 12% 0%, rgba(255, 106, 165, 0.11), transparent 60%),
    radial-gradient(40rem 16rem ellipse at 95% 100%, rgba(168, 85, 247, 0.10), transparent 60%),
    var(--panel);
  border: 1px solid var(--accent-dim);
  border-radius: 14px;
}
.free-page-words { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4, 1rem); min-width: 0; }
/* the small mark "Free every week": the look of the pop-up's "New" */
.free-page-mark {
  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: var(--text-body, 1rem); font-weight: 800; line-height: 1.5;
}
.free-page .free-page-title {
  font-size: clamp(2.25rem, 3.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--text);
}
.free-page-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.free-page .free-page-lead { max-width: 34ch; color: var(--muted); font-size: 1.25rem; line-height: 1.5; }
/* the line of his own state: a small highlighted box (the look of the site's
   notice of information, parts.css .note-info) */
.free-page .free-time-state {
  max-width: 100%;
  padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
  border: 1px solid var(--accent-dim); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm, 6px);
  background: var(--tint);
  color: var(--text); font-size: var(--text-body, 1rem); font-weight: 600; line-height: 1.5;
}
.free-page-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3, 0.75rem); }

/* the moving picture: 16 seconds of a real stream, forward and backward,
   without sound; its still picture stands until it plays and wherever it does
   not (the look of the pop-up's picture, bots/launch.css .bots-launch-screen) */
.free-page-scene { position: relative; min-width: 0; }
.free-page-scene::before {
  content: ""; position: absolute; inset: -10% -6%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 77, 141, 0.20), transparent);
  pointer-events: none;
}
.free-page-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);
}
.free-page-video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.free-page-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: var(--text-badge, 0.8125rem); font-weight: 800; letter-spacing: 0.08em; line-height: 1.5;
}
.free-page-live-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--accent);
  animation: free-page-pulse 1.6s ease-out infinite;
}
@keyframes free-page-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); }
}

/* ---- a drawn sign in its small box (the pop-up's points) */
.free-page-sign {
  flex: none;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 77, 141, 0.30); border-radius: 12px;
  background: var(--tint);
}
.free-page-sign svg {
  width: 1.4rem; height: 1.4rem;
  fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.free-page-sign svg .is-fill { fill: var(--accent); stroke: none; }

/* ---- the three steps: three cards side by side */
.free-page-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5, 1.5rem);
}
.free-page-step {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3, 0.75rem);
  padding: var(--space-5, 1.5rem);
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.15s ease;
}
.free-page-step:hover { border-color: var(--accent-dim); }
.free-page-step-top { display: flex; align-items: center; justify-content: space-between; align-self: stretch; gap: var(--space-3, 0.75rem); }
.free-page-step .free-page-sign { width: 3.25rem; height: 3.25rem; border-radius: 14px; }
.free-page-step .free-page-sign svg { width: 1.7rem; height: 1.7rem; }
.free-page-step-n {
  font-family: var(--mono); font-size: 2rem; font-weight: 800; line-height: 1;
  color: var(--accent);
}
.free-page .free-page-step-name { font-size: var(--text-h2, 1.25rem); line-height: 1.3; color: var(--text); }
.free-page .free-page-step-line { color: var(--muted); font-size: var(--text-body, 1rem); line-height: 1.5; }

/* ---- "How it works", then "Want more?": a box each, one under the other;
   from 900 pixels the five lines of "How it works" stand in two columns and
   the button of "Want more?" stands beside its words */
.free-page-box {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4, 1rem);
  padding: var(--space-5, 1.5rem);
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  min-width: 0;
}
.free-page .free-page-box-title { font-size: var(--text-h2, 1.25rem); color: var(--text); }
.free-page-points {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4, 1rem) var(--space-6, 2rem);
  align-self: stretch;
}
.free-page-point { display: flex; align-items: flex-start; gap: var(--space-3, 0.75rem); }
.free-page-point .free-page-sign { width: 2.25rem; height: 2.25rem; border-radius: 10px; }
.free-page-point .free-page-sign svg { width: 1.15rem; height: 1.15rem; }
.free-page-point-text { padding-top: 0.3rem; color: var(--text); font-size: var(--text-body, 1rem); line-height: 1.5; }
/* "Want more?": the accent outline and the glow of the head; its words on
   the left, its button on the right */
.free-page-more {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: var(--space-4, 1rem) var(--space-6, 2rem);
  background:
    radial-gradient(30rem 14rem ellipse at 100% 0%, rgba(168, 85, 247, 0.12), transparent 60%),
    var(--panel);
  border-color: var(--accent-dim);
}
.free-page-more-words { display: flex; flex-direction: column; gap: var(--space-3, 0.75rem); min-width: 0; }
.free-page-more-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2, 0.5rem); }
.free-page-more-points li {
  position: relative; padding-left: 1.1rem;
  color: var(--muted); font-size: var(--text-body, 1rem); line-height: 1.5;
}
.free-page-more-points li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.6em;
  width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent);
}

/* ---- the foot: the main button once more */
.free-page-foot { display: flex; justify-content: center; padding-block: var(--space-2, 0.5rem) 0; }

@media (prefers-reduced-motion: reduce) {
  .free-page-live-dot { animation: none !important; }
  .free-page-step { transition: none; }
}

/* the colours the system forces (Windows high contrast): the heading's
   gradient words in the system's text colour */
@media (forced-colors: active) {
  .free-page-grad { background: none; color: CanvasText; }
}

/* ---- below 900 pixels: one column (the words, then the picture) */
@media (max-width: 899px) {
  .free-page { gap: var(--space-5, 1.5rem); }
  .free-page-head { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; gap: 1.5rem; }
  .free-page .free-page-title { font-size: 2.125rem; line-height: 1.08; }
  .free-page .free-page-lead { max-width: none; font-size: 1.0625rem; }
  .free-page-live { font-size: var(--text-body, 1rem); padding: 0.15rem 0.6rem; }
  .free-page-screen { border-radius: 14px; }
  .free-page-scene::before { inset: -6% -4%; }
  .free-page-points { grid-template-columns: minmax(0, 1fr); gap: var(--space-3, 0.75rem); }
  .free-page-more { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 720px) {
  .free-page-steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-3, 0.75rem); }
  .free-page-step { padding: var(--space-4, 1rem); }
  .free-page-box { padding: var(--space-4, 1rem); }
  /* the buttons the width of the column, each at least 44 pixels high */
  .free-page-buttons { align-self: stretch; }
  .free-page-buttons .btn {
    flex: 1 1 auto;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px;
  }
  .free-page-box > .free-page-buttons, .free-page-foot .free-page-buttons { width: 100%; }
}
