/* The phone in the hero: BWYA's finder as the app draws it in the dark (apps/mobile/app/find.tsx). */
.phone { position:relative; width:280px; height:580px; border-radius:48px; padding:10px; background:#1d1b1e; box-shadow:0 0 0 1.5px #3a363b inset, 0 40px 80px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04); flex:none; }
.phone .screen { position:relative; height:100%; border-radius:38px; overflow:hidden; background:#111012; color:#F6F3EE; font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; text-align:center; }
.phone .status { display:flex; justify-content:space-between; align-items:center; padding:15px 26px 0; font-size:13px; font-weight:600; }
.phone .status .bars { display:flex; gap:2px; align-items:flex-end; }
.phone .status .bars i { width:3px; background:#F6F3EE; border-radius:1px; }
.phone .status .batt { width:22px; height:11px; border-radius:3px; border:1px solid rgba(246,243,238,.5); padding:1px; margin-left:5px; }
.phone .status .batt b { display:block; height:100%; width:70%; background:#F6F3EE; border-radius:1.5px; }
.phone .island { position:absolute; top:10px; left:50%; width:86px; height:24px; margin-left:-43px; border-radius:14px; background:#000; }
.phone .f-label { margin:50px 0 2px; font-size:10px; letter-spacing:.18em; font-weight:700; color:#9d9893; }
.phone .f-name { margin:0; font-size:27px; font-weight:800; letter-spacing:-.01em; }
.phone .dial { width:184px; height:184px; margin:22px auto 0; border-radius:50%; background:#2b1915; padding:15px; transition:background .6s; }
.phone .disc { position:relative; width:100%; height:100%; border-radius:50%; background:linear-gradient(160deg,#FF7A3A 0%,#F94A26 55%,#E8304A 100%); display:grid; place-items:center; transition:background .6s; }
.phone .disc::before { content:""; position:absolute; inset:24px; border-radius:50%; border:1.5px solid rgba(255,255,255,.22); }
.phone .disc::after { content:""; position:absolute; top:9px; left:50%; width:4px; height:13px; margin-left:-2px; border-radius:2px; background:rgba(255,255,255,.8); }
.phone .arrow { width:96px; height:96px; transition:transform .5s cubic-bezier(.3,.7,.3,1); }
.phone .f-dist { margin:18px 0 4px; font-size:28px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.phone .f-chip { display:inline-flex; align-items:center; gap:6px; margin:4px 0 0; padding:5px 11px; border-radius:99px; background:#13302b; color:#6fd8c2; font-size:11.5px; font-weight:700; }
.phone .f-chip i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.phone .f-btns { position:absolute; left:14px; right:14px; bottom:30px; display:flex; gap:9px; }
.phone .f-btns span { flex:1; padding:13px 0; border-radius:24px; font-size:14px; font-weight:700; background:#252327; }
.phone .f-btns span + span { background:#3a1b16; color:#ff8a6e; }
.phone .home { position:absolute; bottom:9px; left:50%; width:100px; height:4px; margin-left:-50px; border-radius:2px; background:rgba(246,243,238,.75); }
.phone.found .dial { background:#16301a; }
.phone.found .disc { background:linear-gradient(160deg,#7fcd6b,#5fb85a); }
.phone.found .f-chip { background:#16301a; color:#8fe07c; }
.phone-wrap { position:relative; flex:none; }
.phone-pause { position:absolute; right:-10px; bottom:18px; width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,.18); background:#1d1b1e; color:#F6F3EE; display:grid; place-items:center; cursor:pointer; box-shadow:0 8px 20px -8px rgba(0,0,0,.6); }
.phone-pause svg { width:13px; height:13px; }
.phone-pause .i-play, .phone-pause.paused .i-pause { display:none; }
.phone-pause.paused .i-play { display:block; }
.phone-pause:focus-visible { outline:3px solid #ff8a6e; outline-offset:3px; }
.share-status { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* The phone's screens, as the app draws them in the dark (apps/mobile/app/pair.tsx). One shows at a time. */
.phone .scene { position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .45s, visibility 0s .45s; }
.phone[data-scene="begin"] .s-begin, .phone[data-scene="code"] .s-code, .phone[data-scene="find"] .s-find, .phone[data-scene="found"] .s-find { opacity:1; visibility:visible; transition:opacity .45s; }
.phone .s-begin, .phone .s-code { padding:46px 18px 0; text-align:left; }
.phone .p-word { margin:0 0 14px; font-size:15px; font-weight:900; letter-spacing:.08em; }
.phone .p-title { margin:0 0 6px; font-size:22px; font-weight:800; letter-spacing:-.02em; line-height:1.15; }
.phone .p-body { margin:0 0 14px; font-size:12.5px; line-height:1.4; color:#A29D97; }
.phone .p-body.c { text-align:center; margin:10px 0 12px; }
.phone .p-strong { margin:0 0 8px; font-size:13px; font-weight:700; }
.phone .p-hero { display:flex; align-items:flex-start; justify-content:center; gap:6px; margin:6px 0 18px; }
.phone .p-hero > span { display:grid; justify-items:center; gap:6px; font-size:10.5px; color:#A29D97; }
.phone .p-hero > i { width:52px; margin-top:28px; border-top:2px dotted #4a4750; }
.phone .p-disc { display:grid; place-items:center; width:58px; height:58px; border-radius:50%; background:linear-gradient(160deg,#FF7A3A 0%,#F94A26 55%,#E8304A 100%); box-shadow:0 8px 20px rgba(249,74,38,.2); }
.phone .p-disc svg { width:28px; height:28px; }
.phone .p-seg { display:flex; gap:7px; }
.phone .p-seg span { flex:1; padding:9px 0; border-radius:99px; background:#26252A; font-size:13px; font-weight:700; text-align:center; transition:background .3s; }
.phone .p-seg span.on { background:#F94A26; }
.phone .p-btn { position:absolute; left:16px; right:16px; bottom:30px; padding:13px 0; border-radius:99px; background:#F94A26; color:#fff; font-size:14px; font-weight:800; text-align:center; transition:transform .15s, filter .15s; }
.phone .p-btn.tap { transform:scale(.96); filter:brightness(.85); }
.phone .p-code { padding:10px 10px 12px; border-radius:16px; background:#1C1B1E; border:1px solid #2F2E33; text-align:center; transition:opacity .4s; }
.phone .p-code p { margin:0 0 8px; font-size:9.5px; font-weight:700; letter-spacing:.14em; color:#A29D97; }
.phone .p-code div { display:flex; gap:4px; justify-content:center; }
.phone .p-code span { width:30px; padding:6px 0; border-radius:8px; background:#26252A; font-size:22px; font-weight:800; font-variant-numeric:tabular-nums; }
.phone .p-code i { width:8px; }
.phone .p-check { list-style:none; margin:0; padding:10px 12px; border-radius:16px; background:#1C1B1E; display:grid; gap:9px; font-size:12px; font-weight:600; color:#A29D97; }
.phone .p-check li { display:flex; align-items:center; gap:9px; }
.phone .p-check li::before { content:""; flex:none; width:16px; height:16px; border-radius:50%; border:1.5px solid #2F2E33; box-sizing:border-box; }
.phone .p-check li.done { color:#F5F2EE; }
.phone .p-check li.done::before { border:0; background:#0E9384 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.phone .p-check li.on { color:#F5F2EE; }
.phone .p-check li.on::before { border:0; background:#F94A26; box-shadow:0 0 0 4px rgba(249,74,38,.25); }
/* Before the phones find each other there's no code to read yet. */
.phone .s-code[data-step="0"] .p-code, .phone .s-code[data-step="1"] .p-code, .phone .s-code[data-step="0"] .p-body, .phone .s-code[data-step="1"] .p-body { opacity:.12; }
.phone .s-code[data-step="0"] .p-btn, .phone .s-code[data-step="1"] .p-btn { opacity:0; }
.phone[data-scene="found"] .dial { background:#16301a; }
.phone[data-scene="found"] .disc { background:linear-gradient(160deg,#7fcd6b,#5fb85a); }
.phone[data-scene="found"] .f-chip { background:#16301a; color:#8fe07c; }
.phone.mini { zoom:.78; }

/* The hero's screen picker, and the confetti when she's found. */
.tour { list-style:none; display:flex; justify-content:center; gap:6px; margin:22px 0 0; padding:0; }
.tour button { font:inherit; font-size:13px; font-weight:700; padding:7px 12px; border-radius:99px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:#a8a29c; cursor:pointer; transition:background .3s, color .3s, border-color .3s; }
.tour button:hover { color:#F6F3EE; }
.tour button[aria-current="step"] { background:#F94A26; border-color:#F94A26; color:#fff; }
.tour button:focus-visible { outline:3px solid #ff8a6e; outline-offset:3px; }
.confetti { position:absolute; left:0; top:0; width:0; height:0; z-index:3; pointer-events:none; }
.confetti i { position:absolute; left:0; top:0; width:var(--w); height:var(--h); margin:calc(var(--h) / -2) 0 0 calc(var(--w) / -2); border-radius:2px; background:var(--c); animation:confetti var(--t) cubic-bezier(.12,.75,.35,1) forwards; }
@keyframes confetti {
  0% { transform:translate(0,0) rotate(0) scale(.4); opacity:1; }
  55% { transform:translate(var(--x), var(--y)) rotate(calc(var(--r) * .6)) scale(1); opacity:1; }
  100% { transform:translate(calc(var(--x) * 1.15), calc(var(--y) + 220px)) rotate(var(--r)) scale(1); opacity:0; }
}
@media (prefers-reduced-motion: reduce) { .phone .scene, .phone .p-btn, .phone .p-seg span, .tour button { transition:none; } .confetti { display:none; } }
/* Clear of the screen picker under the phone. */
.hero .phone-pause { bottom:78px; }
