/* Aerethis SHOWCASE page kit: shared building blocks for the product pages.
 * Additive to /showcase.css and /showcase.js; load it AFTER showcase.css. Reading pages (docs, account,
 * checkout, legal) must not use it. Every page that uses it keeps its own composition in its own stylesheet.
 *
 *   .sc-hero--short           Hero that is shorter than a screen (product sub-pages, catalogs).
 *   .sc-hero--compact         Hero band for dense pages (pricing): copy only, short.
 *   .sc-title/.sc-intro/.sc-actions/.sc-note/.sc-eyebrow   Hero copy typography (same scale as the home hero).
 *   .sc-collage + .sc-frame   Layered real-product frames that tilt with the pointer. Each frame takes
 *                             inline --x --y --w (percent of the collage), --rx --ry --rz (rest rotation),
 *                             --d (parallax depth) and --z. Phones show only the first frame.
 *   .sc-tag                   Floating label chip for a collage (add .sc-layer + data-sc-depth).
 *   .sc-motion                Pause control for hero motion (pair with data-sc-motion, see showcase.js).
 *   .sc-section/.sc-head      Section rhythm and heading block for the content below the hero.
 *   .sc-grid                  Auto-fit glass-card grid.
 */

/* ---------- hero variants ---------- */
/* A short hero still fills the first screen (as-vp4t): the 840px cap is gone so nothing below it peeks out on tall displays. */
.sc-hero--short { min-height: calc(100vh - var(--header, 72px)); min-height: calc(100svh - var(--header, 72px)); }
.sc-hero--compact { min-height: clamp(340px, 46svh, 520px); }
.sc-hero--compact .sc-hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding-block: clamp(48px, 8vh, 120px); }
.sc-hero .sc-eyebrow { display: inline-flex; align-items: center; margin: 0 0 22px; padding: var(--label-pad-block, 6px) var(--label-pad-inline, 14px); border: 1px solid var(--sc-gold-edge); border-radius: var(--label-radius, 999px); background: rgba(21, 23, 36, .72); color: var(--text-1); font-size: var(--label-size, 13px) !important; font-weight: 600; line-height: 1.4; letter-spacing: .04em; backdrop-filter: blur(8px); }
.sc-hero .sc-title { margin: 0; max-width: 15ch; font-size: clamp(40px, 4.4vw, 112px); font-weight: 600; line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: break-word; }
.sc-hero--compact .sc-title { font-size: clamp(36px, 3.8vw, 88px); max-width: 18ch; }
.sc-hero .sc-intro { max-width: 54ch; margin: 26px 0 0; color: var(--text-1); opacity: .9; font-size: clamp(17px, 1.2vw, 24px) !important; line-height: 1.6; }
.sc-hero .sc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sc-hero .sc-note { max-width: 56ch; margin: 16px 0 0; color: var(--text-2); font-size: 14px !important; line-height: 1.6; }
.sc-hero .sc-note a { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; }
.sc-hero-copy { position: relative; }

/* ---------- motion pause control ---------- */
.sc-motion { position: absolute; left: var(--sc-gutter); bottom: calc((var(--sc-cue-h) - 44px) / 2 + var(--sc-cue-gap)); z-index: 3; padding-inline: 16px 18px; }
.sc-motion[hidden] { display: none; }
.sc-motion [data-icon="play"], .sc-motion[data-state="paused"] [data-icon="pause"] { display: none; }
.sc-motion[data-state="paused"] [data-icon="play"] { display: block; }
.sc-motion:focus-visible { outline: 2px solid var(--air, #9BB2D9); outline-offset: 3px; }
@media (max-width: 900px) { .sc-motion { bottom: calc((var(--sc-cue-h) - 44px) / 2 + var(--sc-cue-gap)); } }
/* Narrow screens: the pause control keeps only its icon so it never meets the centered scroll cue. */
@media (max-width: 640px) {
  .sc-motion { width: 44px; padding: 0; }
  .sc-motion [data-sc-motion-label] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- collage of real product frames ---------- */
/* The collage keeps its proportions and is capped by the hero budget (--sc-hero-fit), so its frames and captions end above the scroll cue band.
 * --sc-collage-room is the fixed-size caption strip a frame adds below its image, which the proportional scaling cannot shrink. */
.sc-collage { --sc-collage-ratio: 1.12; --sc-collage-room: 40px; position: relative; width: min(100%, calc(76svh * var(--sc-collage-ratio)), calc((var(--sc-hero-fit) - var(--sc-collage-room)) * var(--sc-collage-ratio))); aspect-ratio: var(--sc-collage-ratio) / 1; margin-inline: auto; }
.sc-frame { position: absolute; left: var(--x, 0%); top: var(--y, 0%); width: var(--w, 60%); z-index: var(--z, 1); margin: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--sc-edge); background: linear-gradient(155deg, #1d2033, #11121c);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 70px -30px rgba(226, 169, 69, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: perspective(1500px) rotateX(calc(var(--rx, 0deg) - var(--sc-ny, 0) * 2deg)) rotateY(calc(var(--ry, 0deg) + var(--sc-nx, 0) * 3deg)) rotateZ(var(--rz, 0deg)) translate3d(calc(var(--sc-nx, 0) * var(--d, 0) * -16px), calc(var(--sc-ny, 0) * var(--d, 0) * -11px), 0);
  animation: sc-drift var(--t, 13s) ease-in-out infinite alternate; will-change: transform; }
.sc-frame .shot-link { border: 0; border-radius: 0; box-shadow: none; }
.sc-frame-cap { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px 12px; color: var(--text-2); font-size: 13px !important; line-height: 1.4; border-top: 1px solid var(--sc-edge); }
.sc-frame-cap::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3, #E2A945); box-shadow: 0 0 12px rgba(226, 169, 69, .6); }
.sc-frame:focus-within { border-color: var(--sc-gold-edge); }
@keyframes sc-drift { from { translate: 0 -8px; } to { translate: 0 10px; } }
.sc-collage .sc-layer { z-index: 5; }
.sc-tag { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--sc-gold-edge); border-radius: 999px; background: rgba(15, 16, 26, .88); backdrop-filter: blur(10px); color: var(--text-1); font-size: 13px !important; font-weight: 600; line-height: 1.3; letter-spacing: .01em; white-space: nowrap; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .9); animation: sc-float var(--t, 9s) ease-in-out infinite alternate; }
.sc-tag::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3, #E2A945); box-shadow: 0 0 12px rgba(226, 169, 69, .7); }
.sc-tag.is-air::before { background: var(--air, #9BB2D9); box-shadow: 0 0 12px rgba(155, 178, 217, .7); }

/* ---------- content rhythm below the hero ---------- */
.sc-section { padding-block: var(--sc-section-y); }
.sc-head { max-width: clamp(520px, 44vw, 960px); }
.sc-head .sc-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--air, #9BB2D9); font-size: 12px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sc-head .sc-kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.sc-head h2 { margin: 0; font-size: var(--sc-h2); font-weight: 580; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.sc-head p:not(.sc-kicker) { margin: 14px 0 0; color: var(--text-2); font-size: var(--sc-body) !important; line-height: 1.65; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--sc-min, 300px)), 1fr)); gap: var(--sc-gap); }
.sc-alt { position: relative; border-block: 1px solid var(--border); background: radial-gradient(60vw 40vh at 85% 0%, rgba(226, 169, 69, .07), transparent 70%), radial-gradient(50vw 40vh at 0% 100%, rgba(60, 74, 150, .14), transparent 70%), var(--bg-1); }

/* Pages whose fixed header floats over the hero (the main element carries no top padding). */
.sc-hero.sc-hero--under-header { padding-top: var(--header, 72px); min-height: 100vh; min-height: 100svh; }
.sc-hero--compact.sc-hero--under-header { min-height: calc(clamp(340px, 46svh, 520px) + var(--header, 72px)); }

/* ---------- breakpoints ---------- */
@media (max-width: 900px) {
  .sc-hero--compact { min-height: 0; }
  .sc-hero--compact.sc-hero--under-header { min-height: 0; }
  .sc-hero--compact .sc-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .sc-hero .sc-eyebrow { margin-bottom: 18px; }
  .sc-hero .sc-title { font-size: clamp(36px, 10.5vw, 56px); max-width: none; }
  .sc-hero .sc-intro { margin-top: 20px; }
  .sc-collage { width: 100%; aspect-ratio: auto; max-height: none; }
  .sc-collage .sc-frame { position: relative; left: auto; top: auto; width: 100%; transform: none; animation: none; }
  .sc-collage .sc-frame ~ .sc-frame, .sc-collage .sc-tag { display: none; }
}
@media (max-width: 640px) {
  .sc-hero .sc-actions { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .sc-hero .sc-actions .btn { width: 100%; }
}

/* ---------- calm / reduced motion / Lite ---------- */
.sc-calm .sc-frame, .sc-calm .sc-tag { animation: none; }
html[data-tier="lite"] .sc-frame, html[data-tier="lite"] .sc-tag { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .sc-frame, .sc-tag { animation: none; }
  .sc-frame { transform: perspective(1500px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)); }
}
@media (forced-colors: active) {
  .sc-frame, .sc-tag { border-color: CanvasText; }
}
