/* #345 the homepage hero: positioning directly below the logo, start and demo links, and a phone with the customer's real screen (server/home-hero.mjs renders the app's own living card). The
   card's own look comes from living-card.css; this file only frames it. The phone rises in once; steam loops above it. Both are transform and opacity, and both stop when motion is reduced. */
/* Feather the existing page texture across the whole hero. */
.sales-hero.hp{display:block;padding-top:0!important;background:radial-gradient(ellipse farthest-side,rgba(248,240,223,.78) 55%,transparent 100%)}
.hp-copy{margin-top:18px;padding:22px 20px 24px}
.hp h1.hp-tagline{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:5px 12px 5px 10px;border:2px solid var(--cc-red);border-radius:999px;background:#fff9ef;color:var(--cc-red-ink);font:700 0.875rem/1.25 var(--cc-font-body);letter-spacing:.2px;text-transform:none;text-wrap:balance}
.hp-tagline::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--cc-red)}
.site .hp-benefit{margin:16px 0 0;font:400 clamp(2.15rem,8.8vw,3.7rem)/1.02 var(--cc-font-display);letter-spacing:-.02em;text-transform:uppercase}
@media (max-width:420px){.hp-copy{padding:20px 14px 22px}.hp .actions{gap:10px}.hp .actions .pill{padding:0 14px}}
.hp-line,.hp-club{display:block}
.hp-line{color:var(--cc-ink)}
.hp-club{margin-top:.06em;color:var(--cc-red);text-wrap:balance}
.hp .lede{margin-top:16px;text-wrap:balance}
.hp .actions{margin-top:24px}
.hp .actions .pill{flex:1 1 auto}
.hp-launch{margin:16px 0 0!important;font:700 1rem/1.4 var(--cc-font-body)!important;color:var(--cc-ink)}

/* The phone sits below the buttons, with a clear gap the steam can use. */
.hp-visual{margin:64px 0 0;display:grid;justify-items:center}
.hp-stage{position:relative;width:100%;max-width:420px}
.hp-stage::before{content:"";position:absolute;z-index:0;left:50%;top:10%;width:240px;height:240px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle, rgba(244,182,63,.45), rgba(244,182,63,0) 68%);pointer-events:none}
.hp-deck{position:relative;display:grid;justify-items:center}
.hp-steam{position:absolute;z-index:4;left:50%;top:-40px;width:72px;height:36px;margin-left:-36px;pointer-events:none}
.hp-steam i{position:absolute;bottom:0;width:8px;height:22px;border-radius:999px;background:linear-gradient(180deg, rgba(46,31,22,0), rgba(46,31,22,.4));opacity:.7}
.hp-steam i:nth-child(1){left:10px;height:26px}
.hp-steam i:nth-child(2){left:32px;height:34px;opacity:.5}
.hp-steam i:nth-child(3){left:52px;height:20px;opacity:.4}
.hp-phone{position:relative;z-index:2;width:min(78vw,292px);aspect-ratio:9/19.5;padding:9px;display:flex;border-radius:46px;background:#24170f;box-shadow:0 0 0 2px #2E1F16,0 3px 0 4px rgba(46,31,22,.18),0 40px 60px -34px rgba(46,31,22,.7)}
.hp-screen{display:grid;width:100%;align-content:space-between;gap:7px;padding:9px 13px 11px;border-radius:38px;background:var(--cc-paper);overflow:hidden}
.hp-screen .shop-awning{margin:-9px -13px 0}
.hp-screen{min-width:0;grid-template-columns:minmax(0,1fr);--v2-s1:6px;--v2-r:14px}
.site .hp-screen :is(.home-v2-shop,.hp-hello,.home-v2-stop){margin:0}
.hp-screen .home-v2-shop{display:flex;align-items:center;gap:5px}
.site .hp-hello{font:400 1.4375rem/1.05 var(--cc-font-display);letter-spacing:-.01em;color:var(--cc-ink)}
.hp-screen .lc-home-stage{margin-bottom:5px}
.site .hp-screen .home-v2-tile{min-height:112px;padding:8px 4px 6px}
.hp-screen .home-v2-num{font-size:1.8125rem}
.hp-screen .home-v2-label{min-height:0;font-size:0.625rem}
.hp-screen .home-v2-act{min-height:26px;padding:3px;font-size:0.5625rem;overflow-wrap:anywhere}
.hp-screen .smart--reward{margin:0;min-block-size:min-content;--reward-padding:5px 8px;--reward-gap:6px;--reward-art:32px}
.hp-screen .smart--reward .smart-copy strong{font-size:0.875rem}
.hp-screen .smart--reward .smart-copy>span{font-size:0.625rem}
.hp-wallet{display:block;justify-self:center;width:auto;height:26px}
.hp-qr{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:14px;background:#2E1F16;color:var(--cc-paper);font:700 0.875rem/1.1 var(--cc-font-body)}
.hp-qr-icon{flex:none;fill:currentColor}
.hp-arrow{margin-left:auto;color:#F4B63F;font-size:1.125rem;line-height:1}
.hp-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:2px;padding:4px;border:2px solid #2E1F16;border-radius:999px;background:var(--cc-white);font:700 0.8125rem/1 var(--cc-font-body);color:var(--cc-ink);text-align:center}
.hp-tabs span{padding:7px 6px;border-radius:999px}.hp-tabs .is-on{background:#2E1F16;color:var(--cc-paper)}

/* The other offers' cards behind the phone: the same component on its bronze and silver finishes. */
.hp-behind{position:absolute;z-index:1;width:min(52vw,228px);filter:drop-shadow(0 14px 18px rgba(46,31,22,.28))}
.hp-behind-1{left:-18%;top:0;transform:rotate(-12deg)}
.hp-behind-2{right:-16%;top:8%;transform:rotate(10deg)}
/* #405: the rotated silver card pokes ~10px past a phone's edge; clip sideways at the page edge (clip, not hidden, so
   nothing becomes a scroll container and sticky headers still work). */
main.sales{overflow-x:clip}
/* The cup mascot waves from beside the phone, as it did from the old counter scene. */
/* The hero scene peeks from behind the phone (z-index under it), so his coffee never covers the phone's buttons. */
.hp-mascot{position:absolute;z-index:1;left:max(-44px,calc(50% - 236px));bottom:-12px;width:128px;height:auto}
.hp-caption{margin-top:10px;color:var(--cc-pencil);font-size:0.875rem;line-height:1.45;text-align:center}
@media (prefers-reduced-motion: no-preference){
 .hp-phone{animation:hp-rise 640ms cubic-bezier(0.23, 1, 0.32, 1) both}
 .hp-steam i{animation:hp-steam 5.2s linear infinite}
 .hp-steam i:nth-child(2){animation-delay:-1.8s}
 .hp-steam i:nth-child(3){animation-delay:-3.4s}
}
@keyframes hp-rise{from{transform:translateY(22px);opacity:0}to{transform:none;opacity:1}}
@keyframes hp-steam{from{transform:translateY(4px);opacity:.15}28%{opacity:.75}to{transform:translateY(-18px);opacity:0}}
@media (prefers-reduced-motion: reduce){
 .hp-phone,.hp-steam i{animation:none}
 .hp-steam i{opacity:.55;transform:none}
}

@media (min-width:900px){
 .sales-hero.hp{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);column-gap:48px;align-items:center}
 /* Share the phone's row with the copy so the caption never shifts its center. */
 .hp-copy{grid-area:1/1;margin:0;padding:28px 32px}
 .site .hp-benefit{font-size:clamp(2.6rem,4.2vw,3.7rem)}
 .hp .actions .pill{flex:0 0 auto}
 .hp-visual{grid-area:1/2/span 2;grid-template-rows:subgrid;align-self:stretch;margin:0}
 .hp-phone{width:300px}
 .hp-behind{width:236px}
 .hp-behind-1{left:-4%;top:12%}
 .hp-behind-2{right:-6%;top:40%}
 .hp-mascot{left:calc(50% - 280px);bottom:-12px;width:150px}
}
