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

/* The line above the headline (owner, 10 November 2026: "same text no border no green dot just
   fancy italic line"): no pill, no dot, the same words in the system's serif italic (no web font:
   the CSP allows none), in the light purple, a touch larger than the pill's 13 px; one line at
   320 px, two with big browser text (never clipped). */
.hero-kicker {
  color: var(--accent-text);
  font-family: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.1875rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.hero-kicker + h1 { margin-top: 14px; }

/* The three ticks under the price (owner, 10 November 2026, the design review: "line up the
   three ticks in one left-aligned list"): where the three cannot share one row (it needs about
   650 px), one under the other, their ticks in one column, the list centred under the buttons. */
@media (max-width: 47.5em) {
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* The home headline keeps the old fade (owner, 10 November 2026, the design review): from near
   white on "with a" to a deeper light purple on "manager.", drawn as on 85461dc with palette
   colours only (the brand purple set past the end gives the old fade's deeper end, a purple
   the palette retired). Every other highlighted word is the plain light purple (site.css). */
#hero-title .grad-text {
  background: linear-gradient(120deg, var(--text-primary) 10%, var(--accent-text) 55%, var(--accent) 160%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (forced-colors: active) {
  #hero-title .grad-text { background: none; color: CanvasText; }
}
/* The promise in the premium gold (owner, 19 November 2026). */
#hero-title .promise { text-decoration-line: underline; text-decoration-color: var(--lp-premium); text-decoration-thickness: .04em; text-underline-offset: .23em; }

/* The hero (owner, 31 October 2026). Wider than 640 px: the real dashboard capture with the
   phone capture beside it, as released on 25 October 2026 (site.css). Phones: the real app's
   decision rows with demo data (owner, 10 November 2026: sharp on a phone, in place of the
   crop of his illustration), full width inside the gutter up to 400 px (the 1x file's width:
   a sideways phone or small tablet up to 640 px gets the rows centred at that size, so the 3x
   file is never enlarged on a 3x screen and the rows stay near the app's own size). Later on
   10 November 2026 (owner, design verdict: the old hero's atmosphere back) the rows sit in an
   app-style card, the app's own card colour, with a header line as text ("Latest analysis ·
   4 coins"), a soft purple glow behind it and the glowing logo tile on its top-right corner.
   No border, no shadow, no fade inside it: the card ends below the last row, so nothing looks
   cut. The rows' file is see-through around them, so the card's colour shows there, and the
   blocked row's 70 % background shows as it does in the app, on the same colour. No pill on
   it: the caption's one quiet line is its label. Each <picture> swaps in a 1x1 placeholder
   on the screen that hides it, so a visitor downloads only their own hero. The caption names
   the picture shown: its two halves take turns. */
.stage-mobile, .caption-phone { display: none; }
.caption-wide { display: contents; }
@media (max-width: 640px) {
  .stage { margin-top: 32px; }
  .stage .device-browser, .device-phone, .caption-wide { display: none; }
  .stage-devices { padding-bottom: 0; }
  .stage-mobile { display: block; position: relative; }
  .caption-phone { display: contents; }
  .stage-mobile::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -16% -10% -12%;
    background: radial-gradient(closest-side, rgba(88, 101, 242, 0.5), rgba(88, 101, 242, 0.24) 50%,
                rgba(88, 101, 242, 0.07) 80%, rgba(88, 101, 242, 0));
    pointer-events: none;
  }
  .hero-card {
    position: relative;
    isolation: isolate;
    max-width: 400px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    text-align: left;
  }
  .hero-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 5% 13px;
    background: linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07)) 0 100% / 100% 1px no-repeat;
    color: var(--text-primary);
    font-size: clamp(.75rem, 3.6vw, .875rem);  /* the rows' own size: 12 px at 320, 14 from 390 */
    font-weight: 650;
    line-height: 1.25;
  }
  .hero-card-head .icon-sm { color: var(--accent-text); }
  .hero-card-sub { color: var(--text-muted); font-weight: 500; }
  .hero-card picture { display: block; }
  .stage-mobile img { display: block; width: 100%; height: auto; }
  .hero-card-tile { position: absolute; top: -16px; right: 10px; width: 44px; height: 44px; border-radius: 22%; }
  .hero-card-tile svg { width: 28px; height: 28px; }
  .hero-card-tile::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -70%;
    background: radial-gradient(closest-side, rgba(88, 101, 242, 0.75), rgba(88, 101, 242, 0.3) 45%,
                rgba(174, 183, 255, 0.08) 75%, rgba(88, 101, 242, 0));
    pointer-events: none;
  }
}

/* Chapter 02, "Watch it think" (owner, 10 November 2026: the close-up of the dashboard capture
   was soft on a phone): the real app's SOL row, Blocked, with its one-line reason, and the
   AVAX sale under it, captured on a 390 px phone at 1x, 2x and 3x (landing/README.md, Product
   screenshots), see-through around the rows so the chapter's glow shows there. At every width,
   never wider than its 1x file (400 px), centred in its column; no box, no fade: the rows end
   where the picture does. */
.vis-rows { display: grid; place-items: center; aspect-ratio: auto; }
.vis-rows picture { display: block; width: 100%; max-width: 400px; }
.vis-rows img { display: block; width: 100%; height: auto; }

/* The price line under the hero's buttons with the browser's bigger text on a small phone: every
   part takes its own line and each half's own dot hides (an empty line, so its words stay
   apart). site.css stacks the two halves from 35em (560 px at the default text size). Nothing
   changes at the default size. */
@media (max-width: 18em) {
  .hp-group { flex-direction: column; align-items: center; gap: 2px; white-space: normal; }
  .hp-group .hp-sep { height: 0; overflow: hidden; }
}

/* Chapter 05's questions open the FAQ page, not an answer here (owner, 6 November 2026): each
   row ends with the chapter's arrow ("Read the chapter"), not the FAQ's "+". Only that link's
   own arrow moves when the chapter is hovered. */
.q-row .go-arrow { position: absolute; top: 50%; right: 12px; width: 28px; height: 28px; margin-top: -14px; color: var(--accent-text); }
.chapter-teaser:hover .q-row .go-arrow,
.chapter-teaser:focus-visible .q-row .go-arrow { background: var(--accent-soft); color: var(--accent-text); transform: none; }

/* The closing call to action, "Trade live. Stay in control." (owner, 24 October 2026: "one of
   the new designs near the footer next to a section"). The network illustration sits beside
   the copy from 1000 px (narrower, the copy's column would stack its two buttons) and above it
   on narrower screens, phones included since 30 October 2026 (their hero shows the app
   illustration now, not this picture). It has no box: its see-through WebP fades out at the
   sides and the bottom. Lazy: it loads only when it is near. */
.final-cta { display: grid; grid-template-columns: minmax(0, 1fr); }
.final-art { grid-row: 1; width: min(320px, 100%); margin: -8px auto 4px; }
.final-art img {
  width: 100%;
  height: auto;
  -webkit-mask-image: var(--lp-fade-x), linear-gradient(rgba(0, 0, 0, 0), #000 4%, #000 85%, rgba(0, 0, 0, 0));
  -webkit-mask-composite: source-in;
  mask-image: var(--lp-fade-x), linear-gradient(rgba(0, 0, 0, 0), #000 4%, #000 85%, rgba(0, 0, 0, 0));
  mask-composite: intersect;
}
@media (min-width: 641px) {
  .final-art { width: min(440px, 100%); }
}
/* Side by side: the copy is left-aligned in the first column, the picture centred on it in the
   second; a soft glow sits behind the picture. */
@media (min-width: 1000px) {
  .final-cta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(24px, 4vw, 56px);
    text-align: left;
    background:
      radial-gradient(ellipse 42% 62% at 76% 52%, rgba(88, 101, 242, 0.18), transparent 70%),
      radial-gradient(ellipse 70% 90% at 50% 0%, rgba(88, 101, 242, 0.32), transparent 70%),
      var(--bg-base);
  }
  .final-copy { grid-column: 1; grid-row: 1; }
  .final-cta .brand-mark { margin: 0 0 20px; }
  .final-cta .section-lead { margin-left: 0; margin-right: 0; }
  .final-cta .cta-row { justify-content: flex-start; }
  /* The drawing sits a little above the middle of its picture (the bottom fade needs room):
     nudged down so it centres on the copy. */
  .final-art { grid-column: 2; width: 100%; margin: 0; transform: translateY(5%); }
}

/* The story's steps (owner, 1 November 2026: the longer step from 05 into 06, for all of
   them). A chapter starts as far below the one above as pricing does below chapter 05: the
   story's bottom padding, pricing's thread and the 18 px under it (site.css), less the
   teaser padding the chapter below adds. Its thread hangs the same way: as long as pricing's,
   ending 18 px above the chapter. */
.story-list { --story-gap: calc(clamp(32px, 4vw, 56px) + clamp(28px, 4vw, 48px) + 18px - clamp(10px, 1.4vw, 20px)); }
.story-item + .story-item::before { top: calc(clamp(10px, 1.4vw, 20px) - 18px - clamp(28px, 4vw, 48px)); height: clamp(28px, 4vw, 48px); }
