
:root{--red:#C8102E;--red-deep:#A50D26;--cream:#F2E8D5;--cream-soft:#ECE0C9;--display:'Futura','Futura PT','Jost',sans-serif}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Jost',sans-serif;background:var(--red);color:var(--cream);min-height:100vh;display:flex;flex-direction:column}
::selection{background:var(--cream);color:var(--red)}
a{color:inherit}
.display{font-family:var(--display);font-weight:700;text-transform:uppercase;line-height:.95}
.label{font-weight:600;letter-spacing:.24em;text-transform:uppercase;font-size:.66rem}
header{display:flex;justify-content:space-between;align-items:center;padding:1.2rem clamp(1rem,4vw,2.5rem)}
header a{text-decoration:none}
main{flex:1;width:100%;display:flex;flex-direction:column;min-height:0}
/* the invitation fills the first screen: title, how it works, one button, then the money */
#vOut{flex:1;display:flex;flex-direction:column;min-height:0}
/* 3.5rem is what the header actually measures — 4.6 pushed the screen past the fold */
.screen{min-height:calc(100dvh - 3.5rem);display:flex;flex-direction:column}
.hero{text-align:center;padding:clamp(.5rem,3vh,2rem) clamp(1rem,4vw,2.5rem) 0}
.hero h1{font-size:clamp(2.3rem,7.2vw,5.6rem);margin-bottom:.7rem}
.hero .sub{font-size:clamp(.95rem,1.2vw,1.08rem);line-height:1.5;max-width:38rem;margin:0 auto}
.hero .sub b{font-weight:600}
.hero .btn{margin-top:1.2rem;font-size:.8rem;padding:1.15em 2.2em}
/* takes whatever the hero leaves, so the whole range lands above the fold. the floor is only
   there for the squat viewport that would otherwise crush it — set high enough and it wins
   over the flex, which is exactly how the money used to get sliced off at the fold. */
.stage{flex:1 1 0;position:relative;min-height:min(40vh,620px);margin-top:clamp(.5rem,2vh,1.5rem)}
.herocount{margin-top:.9rem;font-size:.64rem;letter-spacing:.24em;text-transform:uppercase;font-weight:600;opacity:.85}
.below{width:100%;max-width:60rem;margin:0 auto;padding:clamp(2rem,5vw,3.5rem) clamp(1rem,4vw,2.5rem)}
#vIn{width:100%;max-width:60rem;margin:0 auto;padding:clamp(2rem,6vw,4rem) clamp(1rem,4vw,2.5rem)}
h1{font-size:clamp(2.4rem,8vw,5rem);margin-bottom:1rem}
.lede{font-size:clamp(1rem,1.6vw,1.2rem);line-height:1.55;max-width:38rem;margin-bottom:2.2rem}
.lede b{font-weight:600}
/* sections, not boxes: a full-bleed hairline sets them apart and the red does the rest.
   only the inverted cards stay solid blocks — those are the steps you act on. */
.card{padding:1.4rem;margin-bottom:1.2rem}
.card:not(.inv){padding:0;margin-bottom:1.6rem}
/* a rule only where one section meets another — the first one needs nothing above it */
.card:not(.inv):not(:first-child){border-top:1.5px solid var(--cream);padding-top:1.5rem}
/* inside the grid they're columns side by side, so a rule on top of one of them reads as a stray line */
@media(min-width:760px){.grid .card:not(.inv){border-top:none;padding-top:0}}
.card.inv{background:var(--cream);color:var(--red)}
.card h2{font-family:var(--display);font-weight:700;text-transform:lowercase;font-size:1.4rem;line-height:1.1;margin-bottom:.6rem}
.card p{font-size:.95rem;line-height:1.5}
.grid{display:grid;gap:1.2rem;grid-template-columns:1fr}
@media(min-width:760px){.grid{grid-template-columns:1.2fr 1fr}}
.row{display:flex;gap:.55rem;align-items:flex-end;margin-top:1rem}
input{font-family:'Jost',sans-serif;font-size:.95rem;font-weight:500;flex:1;background:transparent;border:none;border-bottom:1.5px solid currentColor;color:inherit;padding:.5em .15em;outline:none;border-radius:0;min-width:0}
input::placeholder{color:inherit;opacity:.5;font-style:italic;font-weight:400}
.btn{font-family:'Jost',sans-serif;font-weight:600;letter-spacing:.18em;text-transform:uppercase;font-size:.7rem;cursor:pointer;padding:.95em 1.2em;transition:background .22s,color .22s;text-decoration:none;display:inline-block;text-align:center}
.btn.solid{background:var(--cream);color:var(--red);border:1px solid var(--cream)}
.btn.solid:hover{background:transparent;color:var(--cream)}
.btn.ghost{background:transparent;color:var(--cream);border:1px solid var(--cream)}
.btn.ghost:hover{background:var(--cream);color:var(--red)}
.inv .btn.solid{background:var(--red);color:var(--cream);border-color:var(--red)}
.inv .btn.solid:hover{background:transparent;color:var(--red)}
.inv .btn.ghost{color:var(--red);border-color:var(--red)}
.inv .btn.ghost:hover{background:var(--red);color:var(--cream)}
.btn.done{opacity:.55;pointer-events:none}
.btns{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.btns .btn{flex:1 1 auto}
.link{font-family:ui-monospace,Menlo,monospace;font-size:.9rem;word-break:break-all;border:1px dashed currentColor;padding:.7rem .8rem;margin-top:.6rem}
.note{font-size:.8rem;font-style:italic;opacity:.85;margin-top:.8rem;line-height:1.45}
/* join modal */
dialog.modal{border:none;padding:0;background:var(--cream);color:var(--red);width:min(34rem,calc(100vw - 2rem));max-height:calc(100vh - 2rem);overflow:auto;margin:auto}
dialog.modal::backdrop{background:rgba(90,6,20,.72)}
.modal .x{position:absolute;top:.5rem;right:.7rem;background:none;border:none;color:var(--red);font-size:1.9rem;line-height:1;cursor:pointer;font-family:var(--display);padding:.2rem .4rem}
.modalbody{padding:clamp(1.4rem,4vw,2rem);position:relative}
.modalbody h2{font-family:var(--display);font-weight:700;text-transform:lowercase;font-size:clamp(1.7rem,4.5vw,2.4rem);line-height:1;margin-bottom:.5rem}
.modalbody>p{font-size:.95rem;line-height:1.5}
.steps{list-style:none;margin:1.3rem 0 0}
.steps li{display:block;padding:1rem 0;border-top:1px solid rgba(200,16,46,.25)}
.steps h3{font-size:.95rem;font-weight:600;line-height:1.4;display:flex;gap:.6rem;align-items:baseline}
.steps h3 i{font-family:var(--display);font-style:normal;font-size:1.5rem;line-height:.9}
.steps .btns{margin-top:.7rem}
.steps .btn{flex:1 1 6.5rem;font-size:.62rem;padding:.85em .6em}
/* the scene is transparent above the money line, so the cream shows through — never crop it */
.modalimg{display:block;width:100%;height:auto;margin-top:-.5rem}
/* pyramid */
.pyr{display:flex;flex-direction:column;align-items:center;gap:.35rem;margin:1rem 0 .4rem}
.pyr .lv{display:flex;align-items:center;justify-content:space-between;gap:.8rem;background:var(--cream);color:var(--red);padding:.55rem .9rem;min-height:2.6rem}
.inv .pyr .lv{background:var(--red);color:var(--cream)}
.pyr .lv:nth-child(1){width:46%}.pyr .lv:nth-child(2){width:56%}.pyr .lv:nth-child(3){width:78%}.pyr .lv:nth-child(4){width:100%}
.pyr .lv b{font-family:var(--display);font-size:1.5rem;line-height:1}
.pyr .lv span{font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;text-align:right;line-height:1.3}
.pyr .lv.you{justify-content:center}
.pyr .lv.you b{font-size:.72rem;letter-spacing:.18em;font-family:'Jost',sans-serif;white-space:nowrap}
/* the pile: the 3d money heap, one figure per person (see pile.js) */
.pilehead{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap}
.pilehead h2{margin-bottom:0}
.pilecard>p{margin:.6rem 0 0}
.pilebox{position:relative;height:clamp(300px,48vh,460px);margin:1rem 0 .8rem}
/* narrow screens are width-limited, so a shorter box wastes less red */
@media(max-width:560px){.pilebox{height:min(76vw,340px)}}
.pilebox::after{content:'';position:absolute;left:0;right:0;bottom:-.4rem;height:2px;background:var(--cream)}
.pilemore{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;opacity:.8;margin-top:.9rem;text-align:center}
/* the pot ladder: more people on the pile, bigger cut of the sale */
.tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin:1.1rem 0 .5rem}
.tier{border:1px solid currentColor;padding:.7rem .4rem;text-align:center;opacity:.5}
.tier.on{background:var(--cream);color:var(--red);border-color:var(--cream);opacity:1}
.tier b{display:block;font-family:var(--display);font-size:1.7rem;line-height:1}
.tier span{font-size:.58rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;line-height:1.3;display:block;margin-top:.2rem}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin-top:.8rem}
.stat{border:1px solid currentColor;padding:.9rem .6rem;text-align:center}
.stat b{display:block;font-family:var(--display);font-size:2.2rem;line-height:1}
.stat span{font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600}
ol.lb{list-style:none;counter-reset:n}
ol.lb li{display:flex;justify-content:space-between;align-items:baseline;gap:.8rem;padding:.55rem 0;border-bottom:1px solid rgba(242,232,213,.3);font-size:.95rem;counter-increment:n}
ol.lb li::before{content:counter(n,decimal-leading-zero);font-family:var(--display);opacity:.55;font-size:.85rem}
ol.lb li .nm{flex:1}
ol.lb li small{font-size:.72rem;opacity:.7;font-style:italic}
ol.lb li b{font-family:var(--display);font-size:1.15rem}
ol.lb li.me{font-weight:600;background:rgba(242,232,213,.12);margin:0 -.5rem;padding-left:.5rem;padding-right:.5rem}
/* the next section's rule closes the list off, so the last row doesn't need its own */
ol.lb li:last-child{border-bottom:none}
.msg{font-size:.9rem;font-style:italic;margin-top:.8rem;min-height:1.3em}
footer{padding:1.2rem clamp(1rem,4vw,2.5rem);border-top:1px solid var(--cream);font-size:.78rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.6rem}
footer a{text-decoration:none;font-weight:500}
[hidden]{display:none!important}
.fade{animation:f .45s ease both}@keyframes f{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.screen{min-height:0}
.hero{padding:clamp(2.5rem,6vw,6rem) clamp(1rem,4vw,2.5rem) 1rem}
.hero h1{font-size:clamp(2.25rem,7.2vw,6.8rem);letter-spacing:-.045em;text-transform:uppercase;margin-bottom:1rem}
.hero .aside{font-size:clamp(1.15rem,2.3vw,1.8rem);font-style:italic;margin-bottom:1.6rem}
.hero .sub{max-width:35rem}
.hero .btn{margin-top:1.7rem}
.hero-photo{display:block;width:100%;height:auto;margin-top:clamp(1rem,4vw,3rem)}
.money-section{width:100%;padding:clamp(3rem,7vw,6rem) 0 0;border-top:1px solid var(--cream)}
.money-heading{padding:0 clamp(1rem,4vw,3.5rem) 1.8rem;display:flex;justify-content:space-between;align-items:flex-end;gap:1.5rem;flex-wrap:wrap}
.money-heading h2{font-size:clamp(2.5rem,6vw,5.5rem);text-transform:lowercase;letter-spacing:-.045em;margin-top:.7rem}
.money-heading .herocount{font-size:.75rem;letter-spacing:.1em}
.cash-host{width:100%;min-width:0}
#vIn{max-width:90rem}
#pileIn.pilebox{height:auto;min-height:0;margin:2rem 0 0}
#pileIn.pilebox::after{display:none}
.below{max-width:72rem;padding-top:clamp(3rem,7vw,6rem);padding-bottom:clamp(3rem,7vw,6rem)}
.below .card:not(.inv){margin-bottom:3rem}
.below .card:not(.inv):not(:first-child){padding-top:3rem}
.below .card h2{font-size:clamp(1.8rem,3vw,2.5rem);margin-bottom:1rem}
.below .card>p{max-width:42rem}
.below .pyr{max-width:35rem;margin:1.8rem auto}
.cameo-copy{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start}
.cameo-copy .cameo-number{font-family:var(--display);font-size:clamp(5rem,14vw,10rem);font-weight:700;line-height:.85;letter-spacing:-.06em}
.cameo-copy .cameo-number span{display:block;font-family:'Jost',sans-serif;font-size:.65rem;letter-spacing:.18em;text-transform:uppercase;line-height:1.5;margin-top:1rem}
.preview-banner{background:var(--cream);color:var(--red);padding:.8rem 1rem;text-align:center;font-size:.75rem;font-weight:600;letter-spacing:.08em}
.btn:disabled{opacity:.55;cursor:wait}
input:focus-visible,.btn:focus-visible,a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
input[aria-invalid="true"]{border-bottom-width:3px}
#vIn>.card,.grid{margin-bottom:2.5rem}
@media(max-width:560px){.hero{padding-top:2.5rem}.money-heading{gap:.5rem}.cameo-copy{grid-template-columns:1fr;gap:1.8rem}.modal .row{flex-direction:column;align-items:stretch;gap:.85rem}.modal .row input,.modal .row .btn{width:100%;flex:auto}.modal .row input{min-height:2.8rem}.modalbody{padding-top:2.7rem}.grid .row{flex-wrap:wrap}.grid .row input{flex-basis:100%}}
.group-photo{display:block;width:100%;height:auto;margin-top:clamp(1.5rem,4vw,4rem)}
.crowd-growth{text-align:center;padding:clamp(2rem,5vw,4rem) 1rem 0}
.crowd-growth>.label{line-height:1.6}
.crowd-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem;max-width:72rem;width:100%;margin:2rem auto;text-align:left}
.growth-stage{border-top:1px solid currentColor;padding-top:1rem}
.crowd-stats b{display:block;font-family:var(--display);font-weight:700;font-size:clamp(2.8rem,5vw,4.6rem);letter-spacing:-.04em;line-height:1.1}
.crowd-stats .growth-open b{font-size:clamp(1.6rem,3vw,2.6rem);line-height:1}
.crowd-stats span{display:block;font-size:clamp(.6rem,1vw,.7rem);font-weight:600;letter-spacing:.14em;text-transform:uppercase;margin-top:.65rem;line-height:1.5}
.crowd-stats small{display:block;font-size:.8rem;line-height:1.5;margin-top:.6rem;opacity:.85}
.artwork-caption{max-width:38rem;margin:1rem auto 0;text-align:center;font-style:italic;font-size:.78rem;line-height:1.5;opacity:.85}
@media(max-width:760px){.crowd-stats{grid-template-columns:1fr 1fr;gap:1.5rem 1rem}}
.below{max-width:46rem;padding-top:clamp(2.5rem,6vw,5rem);padding-bottom:clamp(2rem,5vw,4rem)}
.below .card:not(.inv){margin-bottom:0}
.leaderboard-heading{display:flex;justify-content:space-between;gap:1rem;margin:2rem 0 .7rem;align-items:baseline}
.leaderboard-heading h3{font-size:1rem;font-weight:600;text-transform:lowercase}
.leaderboard-heading span{font-size:.65rem;font-style:italic;opacity:.8}
.board-link{text-align:center;margin-top:1.4rem}
.lb .nm{min-width:0;overflow-wrap:anywhere}
.lb small,.lb b{white-space:nowrap}
.pot-details{border-top:1px solid rgba(242,232,213,.3);margin-top:2rem;padding-top:1rem;font-size:.85rem;line-height:1.5}
.pot-details summary{cursor:pointer;font-weight:500}
.pot-details p{margin-top:1rem}
.pot-details:focus-visible,.pot-details summary:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.lower-invitation{text-align:center;padding-top:clamp(1rem,4vw,3rem)}
.lower-invitation .invite-copy{max-width:76rem;margin:auto;padding:0 1rem}
.lower-invitation h2{font-size:clamp(3.1rem,11vw,10rem);text-transform:lowercase;letter-spacing:-.055em;margin-bottom:1rem;white-space:nowrap}
.lower-invitation .aside{font-style:italic;font-size:clamp(1.1rem,2.3vw,1.8rem);margin-bottom:1.5rem}
.lower-invitation .sub{font-size:clamp(.95rem,1.2vw,1.08rem);line-height:1.55;max-width:38rem;margin:0 auto}
.lower-invitation .btn{margin-top:1.5rem;padding:1.15em 2.2em;font-size:.8rem}
@media(max-width:560px){.crowd-stats{gap:.5rem}.crowd-stats span{letter-spacing:.1em}.lb li{gap:.55rem}.lb li small{font-size:.65rem}}
@media(prefers-reduced-motion:reduce){.fade{animation:none}.btn{transition:none}}
.sale-nudge{font-size:.85rem;line-height:1.5;margin:1rem 0;max-width:42rem}.hero .sale-nudge{margin:1.2rem auto}.sale-pot-example{margin:1.2rem 0;padding:.8rem 0;border-top:1px solid currentColor;font-size:.9rem;line-height:1.5}.tier small{display:block;font-size:.64rem;line-height:1.4;max-width:11rem;margin:.5rem auto 0}.modal .sale-nudge{font-size:.8rem;max-width:30rem}
.account-return{margin:.8rem auto 0;font-size:.9rem}
.text-button{font:inherit;color:inherit;background:none;border:0;text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:44px;padding:.5rem .25rem}
.text-button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.text-button:disabled{opacity:.55;cursor:wait}
#authStatus{max-width:36rem;margin:.6rem auto 0;line-height:1.5}
#sessionNote{font-size:.78rem;margin-top:.5rem}
#switchAuthMode{font-size:.85rem;margin-top:.5rem}
.tiers{grid-template-columns:repeat(2,minmax(0,1fr))}
.tier.next{opacity:.85;border-style:dashed}
.tier.next b{font-size:1.2rem;line-height:1.2}
header{flex-wrap:wrap;gap:.6rem 1.5rem}
.header-right{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.5rem 1.5rem;min-width:0}
.refer-nav{display:flex;align-items:center;flex-wrap:wrap;gap:.25rem 1.1rem}
.refer-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:.75rem;font-weight:500;text-underline-offset:5px}
.refer-nav a:hover,.refer-nav a[aria-current="page"]{text-decoration:underline}
.refer-nav #navAccount{font-weight:600}
a.text-button{display:inline-flex;align-items:center}
#sessionCheck{width:100%;max-width:38rem;margin:clamp(2rem,6vw,4rem) auto;padding:0 1.2rem;font-size:.95rem;line-height:1.5}
.auth-gate{width:100%;max-width:38rem;margin:clamp(1rem,4vw,3rem) auto;padding:0 1.2rem 3rem}
.auth-gate #authStatus{margin:0 0 1rem}
.auth-panel{background:var(--cream);color:var(--red);border-top:1px solid currentColor;border-bottom:1px solid currentColor}
.auth-panel .modalbody{padding:clamp(1.4rem,4vw,2rem) 0}
.auth-panel .row input,.auth-panel .row .btn{min-height:44px}
#accountEmail{overflow-wrap:anywhere;margin:0 0 1rem}
@media(max-width:760px){header .header-right{width:100%;justify-content:space-between;gap:.25rem .75rem}.refer-nav{gap:.15rem .85rem}}
@media(max-width:560px){header .header-right{flex-direction:column;align-items:flex-start}.refer-nav{width:100%;justify-content:space-between;gap:.15rem .6rem}.refer-nav a{font-size:.7rem}.auth-panel .row{flex-direction:column;align-items:stretch;gap:.85rem}.auth-panel .row input,.auth-panel .row .btn{width:100%;flex:auto}}
