/* ForecastsPro landing: the /how-it-works page's own styles.
 *
 * Loaded after site.css and seats.css on /how-it-works only (site.css keeps its size budget).
 * Tokens only, no inline styles (the CSP).
 */

/* The full live demo, a grey button under this page's own demo and its note (design notes, 6
   November 2026; a purple one above the demo until then). Positioned, so the demo's backdrop
   (.demo-frame::before, 120 px under the window) never veils it, as the note above it. */
.demo-more { position: relative; justify-content: center; margin-top: 24px; }

/* "What you get" closes with the owner's illustration of the app with demo data (owner, 31
   October 2026: the home hero for a day, now smaller here). At most 600 px wide, so its 1280 px
   file is sharp on a retina screen too. No box: its top is lifted to the page's colour and its
   bottom is the page's colour, so it fades in over its top 3.8 % and out over its lower 30 %
   (--lp-fade-hero) and at the sides (--lp-fade-x). No pill on it: the one quiet caption line
   under it is its label (owner, 10 November 2026: no "demo" on the pictures). The picture
   is darker than the page except at its bottom, so the page darkens softly towards it (as
   behind the home hero): a shade that reaches zero inside its own box (closest-side), so it has
   no edge anywhere. Phones skip it (its <picture> resolves to a 1x1 placeholder there): too
   small to read, and their home hero is its phone version. */
/* The shade reaches 108 px past each side of the 600 px picture (816 px in all), so from 641 to
   815 px it would widen the page and let it scroll sideways (tablets in portrait, phones held
   sideways). The section clips it sideways, as .hero does; clip, not hidden, so the section is
   no scroll container and nothing is cut vertically. It spans the whole width, so the cut sits
   at the screen's edge and does not show; its own glow (::before) is inset 0 sideways. */
.section-preview { overflow-x: clip; }
.art-app { max-width: 600px; margin: clamp(40px, 5vw, 64px) auto 0; }
.section-preview .art-app { margin-bottom: 0; }
.art-app-pic { position: relative; isolation: isolate; }
.art-app-pic::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -24% -18% -8%;
  background: radial-gradient(closest-side at 50% 50%, rgba(9, 10, 14, 0.8), rgba(9, 10, 14, 0.55) 55%,
              rgba(9, 10, 14, 0.22) 80%, rgba(9, 10, 14, 0));
  pointer-events: none;
}
.art-app img {
  width: 100%;
  height: auto;
  -webkit-mask-image: var(--lp-fade-x), var(--lp-fade-hero);
  -webkit-mask-composite: source-in;
  mask-image: var(--lp-fade-x), var(--lp-fade-hero);
  mask-composite: intersect;
}
@media (max-width: 640px) {
  .art-app { display: none; }
}

/* "What you get" on phones (640 px and narrower): the whole market read is 1200 px of app in
   358 px, its text 3 to 4 px tall, so the same picture shows only the Fear & Greed card and
   BTC's card with its Details (design notes, 6 November 2026, Worth doing 5; the home page's
   chapter 04 does the same in site.css, .vis-numbers). Since 10 November 2026 (owner: "this
   meter is not shown completely") x 223-698 and y 122.5-436.5 of 1200 x 570: the card's title,
   the gauge, 62, Greed and "Updated" sit inside the solid part, clear of the top 10 % and the
   last fifth that fade (--lp-fade-art-y-long), and the ETH card stays out. The picture is the
   window, and the screenshot inside it is not masked again. */
@media (max-width: 640px) {
  .shot-close picture {
    position: relative;
    display: block;
    aspect-ratio: 475 / 314;
    overflow: clip;
    border-radius: var(--lp-shot-radius);
    -webkit-mask-image: var(--lp-fade-x), var(--lp-fade-art-y-long);
    -webkit-mask-composite: source-in;
    mask-image: var(--lp-fade-x), var(--lp-fade-art-y-long);
    mask-composite: intersect;
  }
  .shot-close .shot {
    position: absolute;
    top: 0;
    left: 0;
    width: 252.6%;
    max-width: none;
    transform: translate(-18.61%, -21.49%);
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Big browser text on a narrow screen (under 320 px at 16 px): the demo's buttons and the
   three risk levels stack and a value goes under its label, so nothing runs off the screen. */
@media (max-width: 19.9375em) {
  .demo-actions, .seg-words { grid-template-columns: minmax(0, 1fr); }
  .demo-limit, .demo-kv-row { flex-wrap: wrap; column-gap: 10px; }
}
