/* Cart progress bar (2026-11-20): a glass card floating at the bottom. Collapsed = one row; a tap (or an add, on the page) opens the ladder.
   Glass recipe matches the founders app (team/glass.css): warm dark fill, 26 px blur, lit top edge, hairline rim. */
.cbf{display:none}
html{scroll-padding-bottom:var(--bar)}
.thumb.has.cbfOn{display:block;position:fixed;left:0;right:0;bottom:0;width:auto;transform:none;background:transparent;border:0;border-radius:0;box-shadow:none;
  padding:0 12px calc(10px + env(safe-area-inset-bottom,0px));pointer-events:none}
.thumb.cbfOn .w{display:none}
.thumb.cbfOn .cbf{display:block;position:relative;overflow:hidden;pointer-events:auto;max-width:520px;margin:0 auto;border-radius:22px;padding:10px 10px 10px 16px;
  background:rgba(22,19,14,.76);-webkit-backdrop-filter:saturate(170%) blur(26px);backdrop-filter:saturate(170%) blur(26px);
  border:1px solid rgba(255,246,230,.12);box-shadow:inset 0 1px 0 rgba(255,250,240,.18),0 10px 30px rgba(0,0,0,.5);transform-origin:50% 100%}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.thumb.cbfOn .cbf{background:rgba(14,13,8,.97)}}
.cbf button{touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-family:inherit}
.cbsr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* the row: [what you save / pips / next unlock] [Continue] */
.cbr{display:flex;align-items:center;gap:12px}
.cbt{flex:1;min-width:0;min-height:52px;display:flex;flex-direction:column;justify-content:center;gap:6px;text-align:left;background:none;border:0;border-radius:12px;padding:2px 0;color:var(--ink);cursor:pointer}
.cbt:focus-visible,.cba:focus-visible{outline:2px solid var(--gold-hi);outline-offset:2px}
.cbh{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cbv{font-size:16px;font-weight:600;line-height:1.2;color:var(--gold-hi);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cbc{flex:none;color:rgba(237,235,231,.72);transition:transform .25s var(--ease)}
.cbf.open .cbc{transform:rotate(180deg)}
.cbq{display:flex;gap:4px}
.cbq i{flex:1;height:4px;border-radius:2px;background:rgba(255,248,236,.18);position:relative;overflow:hidden}
.cbq i::after{content:"";position:absolute;inset:0;border-radius:2px;background:var(--gold);transform:scaleX(0);transform-origin:left center;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.cbq i.on::after{transform:scaleX(1)}
.cbs{font-size:12.5px;line-height:1.25;color:rgba(237,235,231,.82);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cbs.ul{color:var(--gold-hi);font-weight:600}
.thumb.cbfOn .cbr>.btn{flex:none;width:auto;min-width:0;min-height:52px;height:52px;margin:0;padding:0 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;line-height:1.1;font-size:15px}
.thumb.cbfOn .btn .px{display:flex;align-items:baseline;gap:8px;font-size:13.5px;font-variant-numeric:tabular-nums}
.thumb.cbfOn .btn .px s{font-weight:400;opacity:.6;text-decoration-thickness:1.5px}
.thumb.cbfOn .btn .px b{font-weight:700}

/* the ladder (open) */
/* the ladder opens and closes as one smooth move: the row height animates (a small, isolated surface), the content fades */
.cbw{display:grid;grid-template-rows:0fr;transition:grid-template-rows .34s cubic-bezier(.16,1,.3,1)}
.cbf.open .cbw{grid-template-rows:1fr}
.cbx{min-height:0;overflow:hidden;padding:0 6px 0 0;opacity:0;transition:opacity .2s ease-out}
.cbf.open .cbx{opacity:1;transition-delay:.06s}
.cbx>:first-child{margin-top:14px}.cbx>:last-child{margin-bottom:14px}
.cbx>[hidden]{display:none}
.cbtr{position:relative;height:6px;background:rgba(255,248,236,.16);border-radius:3px;margin:0 9px 12px}
.cbtr i.cbp{position:absolute;inset:0;background:var(--gold);border-radius:3px;transform-origin:left center;transform:scaleX(var(--p,0));transition:transform .55s cubic-bezier(.16,1,.3,1)}
.cbk{position:absolute;top:-6px;width:18px;height:18px;border-radius:50%;background:#16130E;border:2px solid rgba(255,248,236,.34);transform:translateX(-50%);transition:background-color .2s,border-color .2s}
.cbk:nth-of-type(1){left:0}.cbk:nth-of-type(2){left:50%}.cbk:nth-of-type(3){left:100%}
.cbk.on{background:var(--gold);border-color:var(--gold)}
.cbl{display:flex;justify-content:space-between;gap:6px}
.cbb{display:flex;flex-direction:column;flex:1;min-width:0;font-size:12px;line-height:1.3;color:rgba(237,235,231,.72);text-align:center}
.cbb:first-child{align-items:flex-start;text-align:left}.cbb:last-child{align-items:flex-end;text-align:right}
.cbb i{font-style:normal}
.cbb b{font-weight:500;font-size:13.5px;color:var(--ink)}
.cbb.on b{color:var(--gold-hi)}
.cba{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;margin-top:14px;padding:0 14px;border:0;border-radius:14px;background:rgba(255,248,236,.09);box-shadow:inset 0 0 0 1px rgba(255,246,230,.16);color:var(--gold-hi);font-weight:600;font-size:14.5px;cursor:pointer;transition:transform .15s ease-out}
.cba[hidden]{display:none}
.cba svg{flex:none}
.cba span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cba:active{transform:scale(.97)}

/* motion: the ladder rises 8 px as it opens; an unlock sends one slow gold sheen across it */
.cbf::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(105deg,transparent 36%,rgba(226,198,142,.26) 50%,transparent 64%);transform:translateX(-110%)}
.cbf.won::after{animation:cbSheen 1.3s cubic-bezier(.16,1,.3,1)}
@keyframes cbSheen{from{opacity:1;transform:translateX(-110%)}to{opacity:1;transform:translateX(110%)}}

/* above an open product sheet (phones): the sheet ends above the bar, and the sheet's own gold Add stays the one primary button */
@media (max-width:759px){
  body.cbLift .thumb.cbfOn{z-index:56}
  body.cbLift .thumb.cbfOn::before{content:"";position:absolute;left:0;right:0;bottom:0;top:-8px;background:#000;z-index:-1}
  body.cbLift .sci .pn{bottom:calc(var(--bar) + 8px);max-height:calc(92svh - var(--bar) - 8px);padding-bottom:16px;border-radius:28px 28px 22px 22px}
  body.cbLift .thumb.cbfOn .cbr>.btn{background:rgba(255,248,236,.1);background-image:none;color:var(--ink);box-shadow:inset 0 0 0 1px rgba(255,246,230,.2)}
  body.cbLift .thumb.cbfOn .cbr>.btn::before,body.cbLift .thumb.cbfOn .cbr>.btn::after{display:none}
}
.mcard .cfr{align-self:end;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:var(--ink-2);margin-top:8px;grid-row:auto}
/* the chat button rides above the bar as it is now (--barx is measured from the bar and already includes the safe area) */
@media (max-width:999px){body.cbarOn.hasbox .tc-b{--tcl:calc(96px + env(safe-area-inset-bottom,0px) - var(--barx,var(--bar)) - 12px)}}
@media (prefers-reduced-motion:reduce){.cbtr i.cbp,.cbq i::after,.cbk,.cbc,.cba,body.cbarOn.hasbox .tc-b{transition:none}.cbf.won::after{animation:none}.cbw,.cbx{transition:none}}

/* 2026-11-24 a11y: room under the footer so the floating bar never hides the last links or a focused one */
body:has(.thumb.cbfOn){padding-bottom:calc(var(--bar,96px) + 96px)}
