/* The homepage on a phone. Loaded only for ≤ 640 px (media attribute in index.html), so wider screens never see a rule here.
   Approved by Danney 2026-12-02; mock: reelix-studio room/docs/mocks/2026-12-02-home-mobile. phone.js adds the .ph pieces. */

/* the pieces phone.js adds are [hidden] everywhere else; here they show */
.ph[hidden]{display:block}

/* 1 · header: one row, 56 px: REELIX on the left, the menu on the right. Join the waitlist lives in the dock and the menu
   (Danney 2026-12-02: "we dont have to display join the waitlist on top since we have it bottom"). */
.top{flex-wrap:nowrap;height:56px;padding:0 var(--gut);gap:8px;row-gap:0}
.top .gswap,.top .beta,.top .btn.ghost,.top .btn.volt,.top .grow{display:none}
.top .logo{flex:1;display:flex;align-items:center;min-height:44px;letter-spacing:.3em}
.ph-menu[hidden]{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:var(--s2);border:1px solid var(--l2);color:var(--ink);font-size:17px}
.ph-nav[hidden]{display:none}
.top.ph-open .ph-nav[hidden]{display:grid;position:absolute;top:56px;right:var(--gut);min-width:220px;padding:6px;background:var(--s1);border:1px solid var(--l2);border-radius:16px;box-shadow:0 16px 40px #000c}
.ph-nav a{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:10px;font-size:15px}
.ph-nav a:first-child{background:var(--volt);color:#0a0a0a;font-weight:600;margin-bottom:4px}

/* 2 · hero: left-aligned, fits one screen, no gap under it */
.hero2,.c-c .hero2{justify-items:stretch;text-align:left;padding:var(--x2) 0 0!important;gap:var(--x2)!important}
.ph-kind[hidden]{justify-self:start}
.ph-kind .swap{display:inline-flex;border-radius:999px;padding:3px}
.ph-kind .swap button{height:44px;padding:0 18px;border-radius:999px}
.hero2 h1{font-size:36px;line-height:1.08;letter-spacing:-.02em}
.hero2 .ask{height:56px;width:100%;padding-left:var(--x2)}
.hero2 .fcard{overflow:hidden;aspect-ratio:16/10}
.crew{width:64px;right:10px;top:10px;padding:4px 4px 0;transform:rotate(4deg)}
.crew:before{width:30px;height:10px;top:-4px}
.crew span{font-size:11px;padding:0 0 2px}
.fcap{padding:var(--x6) 12px 10px;align-items:flex-start}

/* 3 · sections: flat, full width, text left, at most one card inside */
.c-c section:not(.hero2){background:none;border:0;border-radius:0;padding:40px 0 8px;margin:0}
.c-c .sec-h,.sec-h{text-align:left;justify-items:start;margin:0 0 20px;gap:10px}
.sec-h>div{gap:10px}
.c-c .sec-h p,.sec-h p{margin:0;font-size:16px}
.sec-h h2{font-size:27px;line-height:1.15;letter-spacing:-.015em}

/* 4 · 01: the steps as one swipe row of chips, then one card for the open step */
.c-c .win{background:none;border:0;border-radius:0;overflow:visible}
.win-top{height:auto;padding:0 0 12px;border:0;gap:12px}
.win-top i{display:none}
.win-top b{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}
.win-top span{flex:none}
.win-m{padding:0}
.track{gap:6px;margin:0 calc(-1*var(--gut)) 12px;padding:0 var(--gut)}
.track u{display:none}
.ts{flex:none;height:44px;padding:0 14px 0 8px;border:1px solid var(--l2);border-radius:22px;background:var(--s1);color:var(--ink)}
.ts.cur{background:var(--ink);border-color:var(--ink);color:#0a0a0a}
.ts.cur i{border-color:#0a0a0a55}
.stepv{background:var(--s1);border:1px solid var(--line);border-radius:16px;padding:16px}
.c-c .stepv .next,.c-c .stepv .lines{background:none;padding:0}
.sv-h{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:6px 10px}
.sv-h>div{display:contents}
.sv-h h3{grid-column:2;grid-row:1}
.sv-h>.lk{grid-column:3;grid-row:1}
.sv-h>.btn{grid-column:4;grid-row:1;height:44px}
.sv-h p{grid-column:1/-1;grid-row:2}

/*    sheets: one swipe row, about 72 % wide each, with dots */
#ovab{display:flex;flex-direction:column}
#ovab .spick{margin:0 calc(-1*var(--gut));padding:0 var(--gut) 4px;gap:10px;scroll-snap-type:x mandatory;scroll-padding:0 var(--gut)}
#ovab .sheetw~.spick{order:-2;margin-top:0}
#ovab .sheetw~.spick button{width:72%;scroll-snap-align:start;opacity:1;border:1px solid var(--l2);border-radius:12px}
#ovab .sheetw~.spick button.on{border-color:var(--volt)}
#ovab .sheetw~.spick img{aspect-ratio:16/9}
#ovab .sheetw~.spick small{left:8px;bottom:8px;padding:1px 7px;border-radius:6px;background:#000a;font:600 12px var(--mono);text-shadow:none}
.ph-dots[hidden]{display:flex;order:-1;justify-content:center;gap:5px;margin:8px 0 4px}
.ph-dots i{width:6px;height:6px;border-radius:50%;background:var(--l2)}.ph-dots i.on{background:var(--ink)}
.c-c .sheetw{background:none;border:0;border-radius:0;padding:0;display:block;margin-top:12px}
.sheetw figure{display:none}
.sheetw>div{gap:8px}
#ovab .cmp{margin:0 0 4px}
#ovab .spick button{flex:none;min-height:44px}

/* 5 · 03: one card of notes, three first, "See all" opens the rest in place */
.teamw{display:block}
.tw-pic,.teamw .tl{display:none}
.teamw .who{margin-bottom:12px}
.c-c .tw-r,.tw-r{gap:0;padding:4px 16px;background:var(--s1);border-color:var(--line);border-radius:16px}
.msg,.msg.me{justify-content:flex-start;align-items:flex-start;gap:10px;padding:12px 0;border-top:1px solid var(--line);text-align:left}
.tw-r .msg:first-child{border-top:0}
.msg.me>img{order:-1}
.msg>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;flex:1;min-width:0;max-width:none}
.msg small{order:1;font-size:13px;font-weight:600;color:var(--ink)}
.msg em{order:2}
.msg p,.msg.me p,.msg.mate p{order:3;flex-basis:100%;padding:0;background:none;border:0;border-radius:0;font-size:15px}
.msg.on small{color:var(--volt)}
#teamw:not(.ph-all) .msg:nth-child(n+4){display:none}
.ph-more[hidden]{padding:4px 0 12px}
.ph-more .btn{width:100%;height:44px;border-radius:999px}
#teamw.ph-all .ph-more{display:none}

/* 6 · 04: the sign-offs in a 3-column grid, the numbers side by side */
.c-c .rc,.rc{background:none;border:0;border-radius:0;padding:0;gap:16px}
.rc h3{font-size:17px}
.trail{grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:14px 8px}
.sum{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:0;border-top:0}
.sum div{align-content:start;padding:12px 10px;background:var(--s1);border:1px solid var(--line);border-radius:12px}
.sum b{font-size:24px}
.sum span{font-size:12px;line-height:1.3}

/* 7 · five parts: a plain list; the stacked cards stay on wider screens */
.bk,.c-c section.bk{height:auto}
#bk .bk-stick{display:none}
.c-c section.bk{padding:40px 0 8px!important}
.ph-list{padding:4px 16px;background:var(--s1);border:1px solid var(--line);border-radius:16px}
.ph-part{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.ph-part:first-child{border-top:0}
.ph-part .n{flex:none;width:26px;font:600 12px var(--mono);color:var(--volt)}
.ph-part>div{flex:1;min-width:0;display:grid;gap:2px}
.ph-part b{font-size:15px}
.ph-part small{font-size:13px;color:var(--mut);letter-spacing:0;text-transform:none;font-family:inherit}
.ph-part .th{flex:none;width:64px;height:44px;border-radius:8px;background:center/cover var(--s3)}
.ph-part .th.pal{display:flex;overflow:hidden}.ph-part .th.pal i{flex:1}
.ph-watch{width:100%;height:48px;margin-top:12px;border-radius:999px}

/* 8 · waitlist: email + Join first, the boarding pass is a small strip under it */
.c-c .line,.line{justify-items:stretch;text-align:left;gap:12px}
.board{justify-content:flex-start}
.pass{display:flex;flex-direction:column;gap:10px;background:none;border:0;box-shadow:none;border-radius:0;overflow:visible}
.ps-main,.ps-meta{display:contents}
.ps-route,.ps-meta>span,.ps-stub{display:none}
.ps-in{order:1;padding:0;border:0;gap:6px}
.ps-in small{color:var(--mut)}
.ps-in input{height:52px;border:1px solid var(--l2);border-radius:12px;background:var(--s1);color:var(--ink);font:16px Inter,-apple-system,"Helvetica Neue",sans-serif;box-shadow:none}
.ps-in input:focus{border-color:var(--volt);box-shadow:0 0 0 3px #d4ff3d44}
.ps-meta .btn{order:2;width:100%;height:48px;margin:0;border-radius:999px;background:var(--volt);border-color:var(--volt);color:#0a0a0a}
.ps-band{order:3;height:auto;padding:12px 14px;border-radius:14px;background:#ece9e1}
.pass.boarded .ps-band:after{content:"✓ Boarded";margin-left:auto;font:700 12px var(--mono)}
.line .mut{text-align:left}

/* 9 · footer: the links on one wrapping line, the © on its own line; room left for the dock */
footer{flex-wrap:wrap;gap:0 18px;padding:20px var(--gut) calc(96px + env(safe-area-inset-bottom,0px))}
footer .grow{display:none}
footer a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;margin:0 -4px}
footer>span:last-child{flex-basis:100%;padding-top:4px}

/* 8 · the dock: from the first screen on, hidden while the waitlist is on screen */
.ph-dock[hidden]{display:none}
.ph-dock[hidden].on{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;gap:8px;padding:24px var(--gut) max(10px,env(safe-area-inset-bottom,0px));background:linear-gradient(#0a0a0a00,#0a0a0a 20px)} /* fades in above the buttons, solid behind them */
.ph-dock .btn{flex:1;height:48px;border-radius:999px}
.ph-dock .btn.ghost{background:#1b1b1b} /* solid, so the page never reads through it */
@media (max-width:420px){.hero2 .fcard{aspect-ratio:4/3}}
