/* hero-1112 — product plate in the first screen + phone sign-up bar.
   CLEAR DAY (12.11.2026): the picture is a floating plate, radius 24, soft shadow, no border. */
.fm-hero-art { margin: 0; }
.fm-hero-art img { display: block; width: 100%; height: auto; border: 0; border-radius: var(--radius-lg, 24px); background: var(--plate, #FEFEFF); box-shadow: var(--shadow-up); }

@media (max-width: 860px) {
  .fm-hero-art { grid-column: 1 / -1; margin: 0 0 .9rem; }
  .fm-hero-art img { height: clamp(150px, 39vw, 220px); object-fit: cover; }
  .hero:has(> .fm-hero-art) { padding-top: 1rem; }
  .hero:has(> .fm-hero-art) h1 { margin-bottom: .85rem; }
  .hero:has(> .fm-hero-art) > p { margin-bottom: 1rem; }
  .article-hero:has(.fm-hero-art), .n2-hero:has(.fm-hero-art) { padding-top: 1rem; }
  /* comparison heroes: the sign-up button leads the AI strip so it stays on the first screen */
  .hero > .ai-strip { flex-direction: column; align-items: flex-start; gap: .85rem; margin-top: 1rem !important; }
  .hero > .ai-strip > .btn { order: -1; }
}

@media (min-width: 861px) {
  /* landing heroes: the plate sits top right, beside the headline */
  .hero:has(> figure) > .section-label,
  .hero:has(> figure) > h1 { grid-column: 1; }
  .hero > .fm-hero-art { grid-column: 2; grid-row: 1 / span 3; align-self: start; margin-top: .35rem; }
  .hero:has(> .fm-hero-art) > .tide-plate { grid-row: 4 / span 3; }
  /* pages that already carry their own product figure keep it, moved up to the first screen */
  .hero:has(> figure[class$="-fig"]) > .fm-hero-art { display: none; }
  .hero > figure[class$="-fig"] { grid-row: 1 / span 5; }
  /* article, tool and legal heroes: plate pinned right, text keeps its measure on the left */
  .article-hero > .container:has(> .fm-hero-art),
  .n2-hero > .container:has(> .fm-hero-art) {
    position: relative; padding-right: calc(min(40%, 480px) + 2.5rem); min-height: min(27vw, 360px);
  }
  .article-hero .fm-hero-art, .n2-hero .fm-hero-art { position: absolute; top: 0; right: 0; width: min(40%, 480px); }
}

/* phone sign-up bar: slides in after 60% of the first screen */
.fm-sticky { display: none; }
@media (max-width: 860px) {
  .fm-sticky {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(254,254,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px -14px rgba(18,26,46,.28);
    transform: translateY(110%); visibility: hidden;
    transition: transform .42s var(--spring), visibility 0s linear .42s;
  }
  html.fm-cta-on .fm-sticky { transform: none; visibility: visible; transition: transform .42s var(--spring); }
  .fm-sticky-note { font-family: var(--body); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-soft); line-height: 1.3; }
  .fm-sticky .btn { padding: .75rem 1.3rem; white-space: nowrap; }
  .fm-sticky .btn:hover { transform: none; }
  html.fm-cta-on body { padding-bottom: 4.6rem; }
  html.fm-cta-on .n2-peek { bottom: 4.1rem; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .fm-sticky { transition: none; } }

/* CLEAR DAY: tool heroes with a picture keep one text column; the short answer sits under the headline */
@media (min-width: 861px) {
  .tool-hero .container:has(> .fm-hero-art) { display: block; }
  .tool-hero .container:has(> .fm-hero-art) > .fm-answer { margin: 1.4rem 0 0; }
}

/* product screenshots crop from the top-left so the first numbers stay readable on phones */
@media (max-width: 860px) { .fm-hero-art img[src*="/clear-day/finman-"] { object-position: left top; } }
