/* ==========================================================================
   Hero stage + logo marquee (shared)
   The B hero (text left, photo right with stacked interface cards, dot-grid canvas behind) and the customer logo marquee under it.
   Used by erp-overview.html and the TPL-02 page. The A hero (dark, centered) is still overview-only and stays in overview.css.
   Load order: page-base.css -> cta-banner.css -> hero-stage.css -> <page>.css
   ========================================================================== */

.page .hero{position:relative;overflow:hidden}
.page .hero__canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.page .hero__layout{position:relative;z-index:1}
.page .hero h1{margin:var(--spacing-5) 0 var(--spacing-6);font-size:var(--h1-size);font-weight:var(--h1-weight);line-height:1.12;letter-spacing:-.02em}
.page .hero h1 em{font-style:normal}
.page .hero__lead{max-width:560px;font-size:var(--font-size-18);line-height:1.7}
.page .hero__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacing-7);margin-top:var(--spacing-9)}
.page .marquee{position:relative;z-index:1;overflow:hidden;margin-top:var(--spacing-18);padding:0 0 var(--spacing-12);-webkit-mask-image:linear-gradient(90deg,transparent,var(--color-base-black) 12%,var(--color-base-black) 88%,transparent);mask-image:linear-gradient(90deg,transparent,var(--color-base-black) 12%,var(--color-base-black) 88%,transparent)}
.page .marquee__track{display:flex;width:max-content;animation:marquee-scroll 40s linear infinite}
.page .marquee ul{display:flex;gap:var(--spacing-24);margin:0;padding:0 var(--spacing-11);list-style:none}
.page .marquee img{width:auto;height:18px;opacity:var(--logo-opacity);filter:grayscale(1) brightness(.55) contrast(.9)}
html:not([data-style="a"]) .page .marquee img{opacity:.6}
@keyframes marquee-scroll{to{transform:translateX(-50%)}}
/* B: text on the left, image on the right; large people photo + stacked interface cards, dot-grid background texture */
html:not([data-style="a"]) .page .hero{padding:var(--spacing-18) 0 0;background:var(--bg)}
html:not([data-style="a"]) .page .hero__layout{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:center;gap:var(--spacing-16)}
html:not([data-style="a"]) .page .hero h1 em{color:var(--page-accent)}
html:not([data-style="a"]) .page .hero__lead{color:var(--body)}
/* B hero proportions (reference: Ramp small-business): the image's right edge aligns with the header / container, the eyebrow sits flush with the image top, and the heading block is vertically centered in the space below */
@media (width >= 64rem){
html:not([data-style="a"]) .page .hero{padding:var(--spacing-4) 0 0}
html:not([data-style="a"]) .page .hero__layout{grid-template-columns:minmax(0,1fr) min(52%,calc(100svh - 200px),660px);gap:round(clamp(var(--spacing-10),5vw,var(--spacing-24)),1px);align-items:stretch}
html:not([data-style="a"]) .page .hero__copy{display:flex;flex-direction:column;align-items:flex-start;padding:0}
html:not([data-style="a"]) .page .hero .eyebrow{margin:auto 0 0;line-height:1.4} /* The eyebrow follows the heading and is vertically centered in the space below together with it */
html:not([data-style="a"]) .page .hero h1{margin-top:var(--spacing-4);font-size:round(clamp(var(--font-size-40),4.2vw,var(--font-size-48)),1px);line-height:1.18}
html:not([data-style="a"]) .page .hero__actions{margin-bottom:auto}
html:not([data-style="a"]) .page .hero__lead{max-width:520px}
html:not([data-style="a"]) .page .hero__stage{padding:0}
html:not([data-style="a"]) .page .hero__photo{aspect-ratio:1/1;border-radius:var(--radius-2xl)}
html:not([data-style="a"]) .page .hero__photo img{object-position:56% center}
html:not([data-style="a"]) .page .hero__stack{left:calc(var(--spacing-12) * -1);bottom:var(--spacing-12)}
html:not([data-style="a"]) .page .marquee{margin-top:var(--spacing-16)}
}
.page .hero__stage{position:relative;padding:0 0 var(--spacing-10) var(--spacing-10)}
.page .hero__photo{overflow:hidden;aspect-ratio:16/11;border-radius:var(--radius-2xl);background:var(--tertiary)}
.page .hero__photo img{width:100%;height:100%;object-fit:cover;object-position:48% center}
.page .hero__stack{position:absolute;left:0;bottom:0;width:300px;height:110px}
.page .stack-card{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid rgba(10,37,64,.08);border-radius:var(--radius-xl);background:var(--color-base-white);color:#0A2540;transform-origin:50% 100%;opacity:0;transform:translateY(16px);transition:transform .7s var(--ease-out),opacity .6s var(--ease)}
.page .stack-card i{display:grid;flex:none;place-items:center;width:32px;height:32px;border-radius:50%;background:#E6F0FF;color:var(--link)}
.page .stack-card i svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.page .stack-card--stock i{background:#DDF3E8;color:#1C7A43}
.page .stack-card--ar i{background:#EFEDFF;color:#5B4BD6}
.page .stack-card span{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.page .stack-card b{font-size:15px;font-weight:600;line-height:1.4}
.page .stack-card small{overflow:hidden;color:#5E6A78;font-size:13px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis}
.page .stack-card em{color:#0E8A5F;font-size:14px;font-style:normal;font-weight:600}

@media (width < 64rem){
  html:not([data-style="a"]) .page .hero__layout{grid-template-columns:1fr;gap:var(--spacing-10)}
}
@media (width < 48rem){
  .page .hero__lead{font-size:var(--font-size-16)}
  html:not([data-style="a"]) .page .hero{padding-top:var(--spacing-12)}
  .page .marquee{margin-top:var(--spacing-12)}
  .page .hero__stage{padding:0 0 var(--spacing-8)}
  .page .hero__photo{margin-inline:auto}
  .page .hero__stack{width:min(280px,85%)}
}
@media (prefers-reduced-motion:reduce){
  .page .marquee__track{animation:none}
  .page .stack-card{transition:none}
}
/* Content icons: line width is fixed at 1.5px and does not change with scaling (same as ICON_STROKE in components/ui/icons.tsx) */
.page .stack-card i svg{stroke-width:1.5px}
.page .stack-card i svg :is(path,line,circle,rect,polyline,polygon,ellipse){vector-effect:non-scaling-stroke}

/* Shared hero layering, copy breathing room and audience badge. */
.page .hero{isolation:isolate}
.page .hero>.hero__canvas{z-index:-1;pointer-events:none}
.page .hero>:is(.wrap,.hero__layout){position:relative;z-index:1}
html:not([data-style="a"]) .page:not(.entry-page--home) .hero .hero__copy>.hero__lead,.page.entry-page--industry .industry-hero .hero-grid>div:first-child>.intro{max-width:460px;padding-right:24px;box-sizing:border-box}
.page .hero :is(.hero__audience,.factory-audience){display:inline-flex;align-items:center;width:fit-content;max-width:100%;box-sizing:border-box;padding:6px 12px;border:1px solid var(--border);border-radius:var(--radius-full,999px);background:var(--secondary);color:var(--body);font-size:13px;line-height:1.6;margin-top:24px}
@media(max-width:700px){html:not([data-style="a"]) .page:not(.entry-page--home) .hero .hero__copy>.hero__lead,.page.entry-page--industry .industry-hero .hero-grid>div:first-child>.intro{max-width:100%;padding-right:16px}}

/* Scale the complete notification stack, including its animated spacing. */
@media(width < 48rem){.page .hero__stack{width:300px;transform:scale(.72);transform-origin:bottom left}}
