/* The landing screen (app-home.js; #s-identify), in Joe's redesign (Nov 2026): the hero with the search box and its
   button in one pill beside a tabbed card of example figures, the three steps, and the founder's video. Colours come
   from app-showcase.css's --sc-* tokens (dark first, light under html[data-pf-theme="light"]). Also the classes the
   Finding screen's map labels draw with (uk-stars.js), which started here. */

/* View B's scatter of stars behind the whole page (uk-stars.js createPageStars, mounted by app-boot.js). z-index -1 sits
   above the body's background (it propagates to the canvas root) and below all content. Not behind the landing:
   the redesign's page is plain. */
.vb-page-stars{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
html:has(#s-identify:not([hidden])) .vb-page-stars{display:none}
@media print{.vb-page-stars{display:none}}

/* The Finding screen's map: View B's stars and the name labels over it (app-finding.css). */
.vb-uk-stars{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.vb-star-label{position:absolute;z-index:1;left:calc(var(--x, 50) * 1%);top:calc(var(--y, 50) * 1%);padding:3px 10px;border-radius:999px;
  border:1px solid rgba(255,245,91,.55);background:rgba(7,21,39,.88);color:var(--yellow);font-size:.85rem;font-weight:600;
  white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .45s ease;box-shadow:0 0 18px rgba(255,245,91,.18)}
.vb-star-label.on{opacity:1}
.vb-star-label--above{transform:translate(-50%, calc(-100% - 12px))}
.vb-star-label--left{transform:translate(calc(-100% - 12px), -50%)}
.vb-star-label--right{transform:translate(12px, -50%)}
@media print{.vb-uk-stars,.vb-star-label{display:none}}
@media (prefers-reduced-motion:reduce){.vb-star-label{transition:none}}
html.pf-reduce-motion .vb-star-label{transition:none}

/* While the landing shows: the design's page colour and its wider column (1200px), for the page and the site's bar. */
html:has(#s-identify:not([hidden])){--maxw:1200px;--pf-maxw:1200px}
html:has(#s-identify:not([hidden])) body{background:var(--sc-bg)}
#pf-root:has(> #s-identify:not([hidden])){padding-top:72px;padding-bottom:40px}

.home{color:var(--sc-fg)}
.home :is(.home-h1,.home-h2,.home-card-t,.home-video-t){font-family:var(--sc-head);font-weight:800;color:var(--sc-fg)}
.home .home-hero{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:64px;align-items:center}
.home-h1{font-size:clamp(2.3rem,4.4vw,3.5rem);line-height:1.04;letter-spacing:-.035em;margin:0 0 26px}
.home-lede{max-width:36em;margin:0;color:var(--sc-dim);font-size:1.12rem;line-height:1.6}
.home .error{margin:16px 0 0}
.home-note{margin:18px 0 0;color:var(--sc-dim2);font-size:.88rem}

/* The search box and its button, one pill (View A's company search in #identifyBox, then #homeCta over its right
   end). The label and hint stay for screen readers only; the placeholder says what to type. The suggestions float
   over what's below. The size filter's funnel sits just left of the button. */
.home-search{position:relative;max-width:580px;margin:32px 0 0;--home-cta-w:204px}
.home-search .pf-cs{margin:0}
.home-search .pf-label,.home-search .pf-hint{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.home-search .pf-cs-box{max-width:none}
.home-search .pf-input{max-width:none;min-height:64px;padding:16px calc(var(--home-cta-w) + 14px) 16px 26px;border-radius:999px;border:1px solid var(--sc-line);
  background:var(--sc-card);color:var(--sc-fg);font-size:1.05rem;box-shadow:none}
.home-search .pf-input::placeholder{color:var(--sc-dim2);opacity:1}
.home-search .pf-cs-box--filter .pf-input{padding-right:calc(var(--home-cta-w) + 56px)}
.home-search .pf-sf-btn{right:calc(var(--home-cta-w) + 10px)}
.home-search .pf-input:hover{border-color:rgba(173,196,227,.3)}
.home-search .pf-input:focus{border-color:var(--sc-bar);outline:none;box-shadow:0 0 0 3px rgba(79,129,188,.3)}
html[data-pf-theme="light"] .home-search .pf-input{box-shadow:0 6px 22px rgba(11,32,57,.06)}
html[data-pf-theme="light"] .home-search .pf-input:hover{border-color:rgba(11,32,57,.25)}
html[data-pf-theme="light"] .home-search .pf-input:focus{box-shadow:0 0 0 3px rgba(79,129,188,.25)}
.home-search .pf-cs-list{position:absolute;left:0;right:0;top:100%;z-index:50;box-shadow:0 25px 50px -12px rgba(0,0,0,.8)}
.home-search .pf-cs-head,.home-search .pf-cs-live,.home-search .pf-cs-trading,.home-search .pf-cs-msg,.home-search .pf-identify-reset{margin:8px 0 0 26px}
.home-cta{position:absolute;top:7px;right:7px;width:var(--home-cta-w);min-height:50px;padding:0 18px;border:0;border-radius:999px;
  background:var(--sc-yellow);color:var(--sc-on-yellow);font:inherit;font-weight:700;white-space:nowrap;cursor:pointer}
.home-cta:hover{filter:brightness(.96)}
.home-cta:focus-visible{outline:3px solid var(--sc-fg);outline-offset:3px}

/* The tabbed card of example figures (app-showcase.js mountHeroDemo) */
.home-demo{min-width:0}

/* The three steps */
.home-steps{margin:120px 0 0}
.home-steps-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin:0 0 40px}
.home-h2{max-width:14em;margin:0;font-size:clamp(1.8rem,3.2vw,2.5rem);line-height:1.12;letter-spacing:-.035em}
.home-more-link{min-height:44px;display:inline-flex;align-items:center;color:var(--sc-accent);font-weight:700;text-decoration:none}
.home-more-link:hover{text-decoration:underline;text-underline-offset:4px}
html:not([data-bm-site]) .home-site-only{display:none}
/* Four steps on benchmarcus.com; three inside the Powdr app, which leaves out Powdr's own Achieve card. */
.home-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;list-style:none;margin:0;padding:0}
html:not([data-bm-site]) .home-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.home-card{padding:28px 24px 30px;border:1px solid var(--sc-line);border-radius:22px;background:linear-gradient(180deg,var(--sc-card),var(--sc-card2))}
.home-card p{margin:0;color:var(--sc-dim);line-height:1.6}
.home-num{margin:0 0 20px}
.home-card-t{margin:24px 0 10px;font-size:1.45rem;letter-spacing:-.02em}
.home-steps>.sc-note{margin-top:22px}
/* Achieve: Powdr's step, Powdr blue in both themes (as How it works' Achieve step and Powdr band). */
.home-card--powdr{border-color:#4F7BB5;background:#345F97;color:#FFFFFF}
.home .home-card--powdr .home-card-t{color:#FFFFFF}
.home-card--powdr p{color:#DCE7F5}
.home-card--powdr .home-num{background:rgba(255,255,255,.18);color:#FFF55B}
.home-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}
.home-card-top .home-num{margin:0}
.home-card-logo{display:block;width:76px;height:auto}

/* The founder's video */
.home-video{position:relative;display:flex;align-items:center;gap:28px;margin:40px 0 0;padding:28px;border:1px solid var(--sc-line);border-radius:24px;background:linear-gradient(180deg,var(--sc-card),var(--sc-card2))}
.home-video-thumb{position:relative;flex:none;width:104px;height:140px;padding:0;border:0;border-radius:14px;overflow:hidden;background:#2F588C center/cover no-repeat;display:grid;place-items:center;cursor:pointer}
.home-video-thumb:focus-visible{outline:3px solid var(--sc-fg);outline-offset:3px}
.home-video-thumb:hover::after{filter:brightness(.96);transform:scale(1.08)}
.home-video-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.home-video-thumb::after{content:"";position:absolute;right:10px;bottom:10px;width:34px;height:34px;border-radius:50%;
  background:var(--sc-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3.5v9l7.5-4.5z' fill='%230B1424'/%3E%3C/svg%3E") 55% 50%/14px no-repeat}
.home-video-copy{flex:1 1 auto;min-width:0}
.home-video-copy p:last-child{margin:0;color:var(--sc-dim)}
.home-video-t{margin:0 0 6px;font-size:1.5rem;letter-spacing:-.02em}
.home-video-btn{flex:none;padding:12px 30px}

/* "Your searches", for someone who has bought (app-home.js): top right, as at the end of the paid views' nav, with the
   same clock (app-paid.css .pd-nav-link--history). Opened, the history (app-paid-history.js, styled by app-paid.css)
   takes the hero's place. */
.home-top{display:flex;justify-content:flex-end;margin:-40px 0 8px}
.home-top[hidden]{display:none}
.home-history-link{display:inline-flex;align-items:center;min-height:44px}
.home-history-link::before{content:"";flex:none;width:14px;height:14px;margin-right:8px;border-radius:50%;border:1.5px solid currentColor;
  background:linear-gradient(currentColor,currentColor) 50% 3px/1.5px 5px no-repeat,linear-gradient(currentColor,currentColor) 5px 50%/3px 1.5px no-repeat}
.home-history-link:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.home--history .home-top,.home--history .home-door{display:none}

/* "Is this you?" after "Compare my business" (app-home.js): it takes the hero's place. */
.home--asking .home-top,.home--asking .home-door{display:none}
.home-questions{max-width:520px;margin:24px auto 0}


@media (max-width:1100px){
  html[data-bm-site] .home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:960px){
  .home .home-hero{grid-template-columns:minmax(0,1fr);gap:48px}
  .home-demo{max-width:560px}
  html:not([data-bm-site]) .home-cards{grid-template-columns:minmax(0,1fr)}
  .home-steps{margin-top:80px}
}
@media (max-width:640px){
  #pf-root:has(> #s-identify:not([hidden])){padding-top:32px}
  .home-questions{margin-top:0}
  .home-top{margin-top:0}
  /* The button drops under the box, full width. The box stays taller than the button under it (user, Nov 2026). */
  .home-search .pf-input{min-height:76px;padding-top:24px;padding-bottom:24px;padding-right:22px}
  .home-search .pf-cs-box--filter .pf-input{padding-right:56px}
  .home-search .pf-sf-btn{right:6px}
  .home-cta{position:static;width:100%;min-height:52px;margin:12px 0 0}
  /* Fewer words and less scrolling on a phone (user ask, Nov 2026): the headline says what the lede said, so the
     search box comes up the screen; the steps sit closer together but keep their pictures (the user liked them);
     the video band loses its sentence. */
  .home-lede{display:none}
  .home .home-hero{gap:36px}
  .home-steps{margin-top:56px}
  .home-steps-head{margin-bottom:20px}
  html[data-bm-site] .home-cards,html:not([data-bm-site]) .home-cards{grid-template-columns:minmax(0,1fr);gap:12px}
  .home-card{padding:20px}
  .home-card-top{margin-bottom:14px}
  .home-num{margin-bottom:14px}
  .home-card-t{margin:18px 0 8px;font-size:1.3rem}
  .home-video{flex-wrap:wrap;gap:18px;padding:20px}
  .home-video-thumb{width:84px;height:112px}
  .home-video-copy{flex-basis:calc(100% - 110px)}
  .home-video-copy p:last-child{display:none}
  .home-video-t{font-size:1.3rem}
  .home-video-btn{flex:1 1 100%}
}
