/* PITCH Score hero concepts. Builds on the homepage hero (hero/hero.css): the same tokens (--u, --cta-h, brand blues),
   container units, header scrim, .er-final headline block and caption hand-off. Only what is new lives here. */

/* ---------- Stage: a 16:9 box that covers the hero (ps.js sizes it and steers the phone crop with --focus-x) ---------- */
.ps-hero { --ease: cubic-bezier(.2,.7,.2,1); }
.ps-stage { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 100%; transform-origin: var(--kb-origin, 40% 45%);
            opacity: 0; filter: blur(14px); transform: scale(1.06);
            transition: opacity 1.1s ease, filter 1.4s ease, transform 2.2s var(--ease), left .9s var(--ease); }
.ps-ready .ps-stage { opacity: 1; filter: none; transform: none; animation: ps-drift 34s ease-in-out 2.2s infinite alternate; }
@keyframes ps-drift { to { transform: scale(1.07); } } /* slow Ken Burns push-in, like a camera breathing */
.ps-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.ps-bg.on { opacity: 1; }
.ps-tint { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ps-paused .ps-stage, .ps-paused .ps-pin i::after { animation-play-state: paused !important; }

/* Text: the eyebrow, H1 and buttons are the homepage's .er-final block. Login sits quietly under the buttons. */
.ps-hero .er-final .eyebrow { padding-top: 0; }
.ps-login { display: inline-block; margin-top: calc(1 * var(--u)); font: 700 max(12px, 1cqw) Manrope, sans-serif; color: #D6E6F3 !important;
            text-decoration: none !important; border-bottom: 1px solid rgba(214,230,243,.35); opacity: 0; transition: opacity .8s ease; }
.er-final.on .ps-login { opacity: 1; transition-delay: 1.4s; }
.ps-login:hover { color: #fff !important; border-color: #fff; }

/* ---------- Concept A: The Floor, Slowed Down ---------- */
.ps-a { --kb-origin: 30% 40%; }
.ps-a .ps-bg { filter: grayscale(1) contrast(1.15) brightness(.78); }
.ps-a .ps-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,20,32,.15), rgba(11,20,32,.55)), #0E3A5C; mix-blend-mode: color; }
.ps-a .ps-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(90% 70% at 15% 100%, rgba(5,12,22,.7), transparent 60%); }

/* ---------- /consulting: a still, full-colour photo (consulting-demo/build.py, data-concept "still"). ---------- */
.ps-sl .ps-tint { background: radial-gradient(85% 80% at 0% 100%, rgba(8,18,32,.86), rgba(8,18,32,.35) 55%, transparent 75%); }
.ps-sl .er-final h1 { max-width: 50cqw; } /* breaks as "Know who to meet. / Remember everyone / you do." */
.ps-hero[data-concept="still"].ps-ready .ps-stage { animation: none; } /* no push-in: a still hero has no pause button */
.ps-pins { position: absolute; inset: 0; z-index: 2; }
.ps-pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.ps-pin i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, #6FC7EE);
            box-shadow: 0 0 0 3px rgba(255,255,255,.85); transform: scale(0); transition: transform .5s var(--ease); }
.ps-pin i::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--c, #6FC7EE); animation: ps-ping 1.8s ease-out infinite; }
@keyframes ps-ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.ps-pin-tag { position: absolute; left: 16px; top: 0; transform: translate(-6px, -50%); opacity: 0; white-space: nowrap;
              display: flex; flex-direction: column; gap: 2px; padding: .55cqw .9cqw; border-radius: .8cqw;
              background: rgba(8,16,28,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
              border: 1px solid rgba(255,255,255,.18); border-top: 3px solid var(--c, #6FC7EE);
              font: 700 max(10px, .85cqw)/1.15 Manrope, sans-serif; color: #D6E6F3; transition: opacity 1s ease, transform 1.2s var(--ease); }
.ps-pin-tag b { font-size: max(12px, 1.05cqw); font-weight: 800; color: #fff; }
.ps-pin-tag em { font-style: normal; font-weight: 800; color: #fff; margin-top: .35cqw; align-self: flex-start;
                 padding: .3cqw .7cqw; border-radius: 999px; background: #146FA3; font-size: max(10px, .8cqw); }
.ps-pin.on i { transform: scale(1); }
.ps-pin-tag { text-decoration: none; pointer-events: none; cursor: pointer; }
.ps-pin.on .ps-pin-tag { opacity: 1; transform: translate(0, -50%); transition-delay: .3s; pointer-events: auto; }
.ps-pin.on .ps-pin-tag:hover { background: rgba(8,16,28,.82); border-color: rgba(111,199,238,.6); }
.ps-pin.on .ps-pin-tag:hover em { background: #2A9FD8; }
.ps-t-a { --c: #F4B53C; } .ps-t-b { --c: #6FC7EE; } .ps-t-c { --c: #9AA8B8; } .ps-t-target { --c: #3DD68C; }
.ps-pin:has(.ps-t-a) { --c: #F4B53C; } .ps-pin:has(.ps-t-b) { --c: #6FC7EE; } .ps-pin:has(.ps-t-c) { --c: #9AA8B8; } .ps-pin:has(.ps-t-target) { --c: #3DD68C; }

/* ---------- Concept B: Scored in the Moment ---------- */
.ps-b { --kb-origin: 50% 35%; }
.ps-b .ps-tint { background: radial-gradient(70% 90% at 0% 100%, rgba(5,12,22,.62), transparent 65%), linear-gradient(90deg, rgba(5,12,22,.25), transparent 40%); }
/* Headline keeps to the left woman's side; the card floats in the gap between the two faces */
.ps-b .er-final h1 { max-width: 43cqw; }
.ps-b .er-final p { max-width: 40cqw; }
.ps-card { position: absolute; z-index: 3; left: 49.5cqw; top: calc(var(--er-hdr-h, 85px) + 1.5cqw); width: 19cqw; min-width: 250px; padding: 1.3cqw;
           border-radius: 1.4cqw; color: #EAF1F8; font-family: Manrope, sans-serif; overflow: hidden;
           background: linear-gradient(160deg, rgba(18,26,37,.78), rgba(9,13,20,.86)); backdrop-filter: blur(16px) saturate(1.2);
           -webkit-backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(255,255,255,.14);
           box-shadow: 0 30px 70px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
           opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .7s ease, transform .9s var(--ease); }
.ps-card.on { opacity: 1; transform: none; }
.ps-card.ps-tight { display: none; } /* short screens: the headline wins (ps.js checks the overlap) */
.ps-card-scan { position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none; opacity: 0;
                background: linear-gradient(180deg, transparent, rgba(84,182,236,.22) 85%, rgba(84,182,236,.9) 100%); transform: translateY(-100%); }
.ps-card.scanning .ps-card-scan { animation: ps-scan 1s ease-in-out; }
@keyframes ps-scan { 0% { opacity: 1; transform: translateY(-100%); } 100% { opacity: 0; transform: translateY(260%); } }
.ps-card-top { display: flex; align-items: center; gap: .8cqw; margin-bottom: 1.1cqw; }
.ps-av { flex: none; width: 2.8cqw; height: 2.8cqw; min-width: 34px; min-height: 34px; border-radius: 50%; display: grid; place-items: center;
         background: linear-gradient(135deg, #2A9FD8, #146FA3); font-weight: 800; font-size: max(12px, 1cqw); }
.ps-who { min-width: 0; flex: 1; }
.ps-name { display: block; font-weight: 800; font-size: max(13px, 1.1cqw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-role { display: block; font-size: max(10.5px, .82cqw); color: #AEB8C4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-target { font-size: max(10px, .75cqw); font-weight: 800; color: #3DD68C; border: 1px solid rgba(61,214,140,.45); padding: .25cqw .55cqw;
             border-radius: 999px; opacity: 0; transform: scale(.8); transition: opacity .4s, transform .4s var(--ease); }
.ps-card.is-target .ps-target.on { opacity: 1; transform: none; }
.ps-crit { list-style: none; margin: 0; padding: 0; display: grid; gap: .55cqw; }
.ps-crit li { display: grid; grid-template-columns: 6.2cqw 1fr; align-items: center; gap: .6cqw; font-size: max(11px, .86cqw); font-weight: 700; color: #AEB8C4; }
.ps-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3cqw; }
.ps-meter s { height: max(6px, .5cqw); border-radius: 99px; background: rgba(255,255,255,.1); transition: background .3s ease, box-shadow .3s; }
.ps-meter s.f { background: #54B6EC; box-shadow: 0 0 8px rgba(84,182,236,.5); }
.ps-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1cqw; padding-top: 1cqw; border-top: 1px solid rgba(255,255,255,.1); }
.ps-total b { font-size: max(26px, 2.6cqw); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ps-total small { font-size: max(12px, .95cqw); color: #7C8A9C; font-weight: 700; margin-left: 2px; }
.ps-tier { font-weight: 800; font-size: max(12px, 1cqw); padding: .45cqw .9cqw; border-radius: 999px; color: #0b1420; background: var(--tier, #F4B53C);
           opacity: 0; transform: scale(1.6) rotate(-6deg); transition: opacity .25s ease, transform .5s cubic-bezier(.3,1.6,.5,1); }
.ps-tier.on { opacity: 1; transform: none; }
.ps-next { margin-top: .9cqw; font-size: max(11px, .86cqw); line-height: 1.35; color: #EAF1F8; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.ps-next span { display: block; font-size: max(9.5px, .7cqw); text-transform: uppercase; letter-spacing: .1em; color: #54B6EC; font-weight: 800; margin-bottom: 2px; }
.ps-next p { margin: 0; color: #EAF1F8 !important; font-size: inherit !important; font-weight: 700; }
.ps-next.on { opacity: 1; transform: none; }

/* ---------- Concept C: Scan. Score. Follow up. ---------- */
.ps-c .ps-tint { background: radial-gradient(80% 80% at 0% 100%, rgba(5,12,22,.6), transparent 62%); }
.ps-c .ps-bg { transform: scale(1.04); transition: opacity 1.4s ease, transform 7s linear; }
.ps-c .ps-bg.on { transform: scale(1); }
.ps-c .er-ctas-main { left: 5cqw; }
.ps-c .er-final h1 { max-width: 42cqw; } .ps-c .er-final p { max-width: 40cqw; } /* keep clear of the speaker's face */
.ps-beats { position: absolute; z-index: 3; left: 5cqw; top: calc(var(--er-hdr-h, 85px) + 18px); /* clear of Book Demo, bottom right */ display: flex; gap: .5cqw; }
.ps-beats b { width: 3.2cqw; min-width: 28px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; position: relative; }
.ps-beats b::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.ps-beats b.on::after { animation: ps-progress var(--d, 5s) linear forwards; }
.ps-beats b.done::after { transform: none; }
.ps-paused .ps-beats b.on::after { animation-play-state: paused; }
@keyframes ps-progress { to { transform: scaleX(1); } }

/* ---------- Phone layout (matches hero.css's 700px container break) ---------- */
@container (max-width: 700px) {
  .ps-sl .er-final h1 { max-width: none; }
  .ps-hero .er-final .eyebrow { padding-top: 0; }
  .ps-login { font-size: 3.3cqw; }
  .ps-pin-tag { padding: 1.4cqw 2.2cqw; border-radius: 2cqw; font-size: 2.8cqw; }
  .ps-pin-tag b { font-size: 3.4cqw; }
  .ps-pin-tag em { padding: .8cqw 1.8cqw; font-size: 2.6cqw; margin-top: .8cqw; }
  .ps-b .er-final h1, .ps-b .er-final p { max-width: none; }
  /* Phones: the card shrinks to one live row (who, score, tier) above the headline; meters and next step stay on desktop */
  .ps-crit, .ps-next, .ps-role, .ps-target { display: none !important; }
  .ps-card { display: flex; align-items: center; gap: 3cqw; right: 18cqw !important; }
  .ps-card .ps-card-top { margin: 0; flex: 1; min-width: 0; }
  .ps-card .ps-card-foot { margin: 0; padding: 0; border: 0; gap: 2.4cqw; }
  .ps-card { left: 6cqw; right: 6cqw; width: auto; top: calc(var(--er-hdr-h, 70px) + 3cqw); min-width: 0; padding: 3.6cqw; border-radius: 4cqw; }
  .ps-card-top { gap: 2.4cqw; margin-bottom: 3cqw; }
  .ps-av { width: 8cqw; height: 8cqw; font-size: 3cqw; }
  .ps-name { font-size: 3.6cqw; } .ps-role { font-size: 2.8cqw; } .ps-target { font-size: 2.6cqw; padding: .6cqw 1.6cqw; }
  .ps-crit { gap: 1.6cqw; } .ps-crit li { grid-template-columns: 17cqw 1fr; font-size: 2.9cqw; gap: 2cqw; }
  .ps-meter { gap: 1cqw; } .ps-meter s { height: 1.6cqw; }
  .ps-card-foot { margin-top: 3cqw; padding-top: 2.6cqw; }
  .ps-total b { font-size: 7.5cqw; } .ps-total small { font-size: 3cqw; }
  .ps-tier { font-size: 3.2cqw; padding: 1.3cqw 2.8cqw; }
  .ps-next { font-size: 2.9cqw; margin-top: 2.4cqw; } .ps-next span { font-size: 2.3cqw; }
  .ps-c .er-ctas-main { left: 6cqw; }
  .ps-c .er-final h1, .ps-c .er-final p { max-width: none; }
  .ps-beats { left: 6cqw; gap: 1.5cqw; }
  .ps-beats b { width: 9cqw; }
}

/* ---------- Comparison table additions (live .erck-table styles do the rest) ---------- */
.ps-col-sub { display: block; margin-top: 5px; font-size: 11.5px; color: var(--text-muted, #7C8A9C); font-weight: 600; }
.ps-row-tag { display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px;
              letter-spacing: .06em; text-transform: uppercase; color: #54B6EC; border: 1px solid rgba(84,182,236,.45); }
.erck-table td .erck-price-note { margin-top: 6px; }
.ps-verify { display: block; width: max-content; margin: 6px auto 0; padding: 1px 7px; border-radius: 4px; font-size: 10.5px; letter-spacing: .05em;
             text-transform: uppercase; color: #F4B53C; border: 1px dashed rgba(244,181,60,.6); }
.erck-table tr:has(.ps-verify) th.erck-feature { box-shadow: inset 3px 0 0 rgba(244,181,60,.7); }

/* Desktop: the tool names stay in view while you scroll the table. Sticky needs every ancestor up to the page
   to stop being a scroll box, so the scroll wrapper goes visible and the shell clips (rounded corners) without scrolling.
   Phones keep the sideways swipe and the pinned feature column from the live styles. The live styles load later
   in the page, hence the .erck-wrap prefix. --header-height is Squarespace's fixed site header. */
@media (min-width: 1024px) {
  .erck-wrap .erck-table-scroll { overflow: visible; }
  .erck-wrap .erck-table-shell { overflow: clip; }
  .erck-wrap .erck-table thead th { position: sticky; top: var(--header-height, 0px); z-index: 3; box-shadow: 0 1px 0 var(--line, #24303D); }
  .erck-wrap .erck-table thead th.erck-us-head { background: linear-gradient(rgba(84,182,236,.10), rgba(84,182,236,.10)), var(--panel-2);
                                      box-shadow: inset 0 3px 0 var(--accent), 0 1px 0 var(--line, #24303D); }
}

@media (prefers-reduced-motion: reduce) {
  .ps-stage, .ps-ready .ps-stage { animation: none; transition: opacity .4s; filter: none; transform: none; }
  .ps-pin i::after { animation: none; }
  .ps-c .ps-bg { transition: opacity .4s; transform: none; }
}

/* The transparent header's wrapper spans the top of the hero; let clicks fall through its empty space to the
   tags below (Concept A), while its own links and buttons keep working. */
html.er-hdr-over .header-announcement-bar-wrapper { pointer-events: none; }
html.er-hdr-over .header-announcement-bar-wrapper :is(a, button, input, select, [role="button"], .header-burger, .header-nav-folder-title) { pointer-events: auto; }
