/* Highlight stack hero. Page tokens, fonts and the waitlist form come from ../../v2/shared/base.css (paper palette).
   Only transform and opacity move. Names start with stk- so nothing in base.css is overridden by accident. */

:root { --yellow: #D9E84A; --stk-pad: 28px; }

.stk-hero {
  min-height: 100svh; padding: 0 var(--m) 28px;
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "bar" "h1" "stage" "form";
  grid-template-rows: auto auto auto auto; align-content: start; overflow-x: clip;
}
.stk-bar { grid-area: bar; height: 64px; display: flex; align-items: center; }
.stk-brand { display: block; width: 140px; line-height: 0; }
.stk-brand img { width: 140px; height: 50px; object-fit: cover; }   /* the lockup file has side padding; crop it onto the margin */
.stk-copy { display: contents; }

.stk-hero h1 { grid-area: h1; font-size: clamp(1.7rem, 7.4vw, 2.2rem); line-height: 1.04; letter-spacing: -.035em; padding-top: 4px; }
.stk-line { display: block; overflow: clip; padding-bottom: .14em; margin-bottom: -.14em; }
.stk-line > span { display: block; }

.stk-form { grid-area: form; margin-top: 0; min-height: 0; }

/* ---- Stage and stack -------------------------------------------------------------------- */
.stk-stage { grid-area: stage; --ch: clamp(300px, calc(100svh - 385px), 520px); --cw: calc(var(--ch) * 9 / 16);
  display: flex; justify-content: center; align-items: center; padding: var(--stk-pad) 0 calc(var(--stk-pad) + 6px); }
.stk-stack { position: relative; width: var(--cw); height: var(--ch); outline-offset: 12px; touch-action: pan-y; }

.stk-card { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; background: #20303a; color: #121314;
  transform-origin: 50% 70%; will-change: transform; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.stk-card.is-top { cursor: grab; }
.stk-pan { position: absolute; top: 0; left: 50%; height: 120%; aspect-ratio: 16 / 9; transform: translateX(-50%); }   /* 120% = StackOverlay.ZOOM */
.stk-pan video, .stk-pan canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.stk-bars { position: absolute; top: 0; left: 0; right: 0; padding: 10px 10px 14px; display: flex; gap: 4px; pointer-events: none;
  background: rgba(18, 19, 20, .34); }   /* flat neutral strip so the white bars read on a bright wall */
.stk-seg { position: relative; flex: 1 1 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.stk-seg > i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }

.stk-label { position: absolute; left: 12px; bottom: 14px; max-width: calc(100% - 72px); margin: 0; padding: 7px 11px 6px;
  background: var(--yellow); border-radius: 2px; font-weight: 700; font-size: .9375rem; line-height: 1.15; letter-spacing: -.01em; pointer-events: none; }
.stk-label.is-miss::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: #A8452F; }   /* quiet warm red dot */
.stk-share { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ground); color: var(--text); display: grid; place-items: center; pointer-events: none; }

/* ---- Wide: copy on the left, stack on the right ----------------------------------------- */
@media (min-width: 900px) {
  .stk-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: clamp(24px, 4vw, 72px); min-height: 100svh;
    grid-template-rows: auto 1.6fr auto 1fr; grid-template-areas: "bar bar" "h1 stage" "form stage" ". stage"; padding-bottom: 0; }
  .stk-hero h1 { align-self: end; font-size: clamp(2.2rem, 4.5vw, 4.4rem); padding-top: 0; }
  .stk-form { align-self: start; margin-top: 32px; max-width: 34rem; }
  .stk-stage { --ch: clamp(440px, calc(100svh - 150px), 760px); --stk-pad: 28px; padding-bottom: 28px; }
  .stk-label { font-size: 1.0625rem; left: 16px; bottom: 18px; }
  .stk-share { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .stk-bars { padding: 14px 14px 18px; }
}

@media (prefers-reduced-motion: reduce) { .stk-card { will-change: auto; } }
@media (hover: hover) and (pointer: fine) { .stk-card.is-top:active { cursor: grabbing; } }
