/* The Binder website search (wave7054): the header's search button, the frosted search panel and the card phone.
   site/search.js builds them on every page; the home page (index.html) loads this file too, so nothing here leans on
   site/site.css. The phone and the results are the app itself (mobile.html framed, scripts/tb-embed.js). */

/* the header button, left of Home */
.navsearch{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin-right:-10px;border:0;border-radius:12px;background:transparent;color:#fff;cursor:pointer;transition:background-color .2s,scale .25s cubic-bezier(.2,.8,.2,1)}
.navsearch svg{width:21px;height:21px;display:block}
.navsearch:hover{background:rgba(255,255,255,.12);scale:1.08}
.navsearch:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* the frosted search panel */
.srch{position:fixed;inset:0;z-index:55}.srch[hidden]{display:none}
.srch-scrim{position:absolute;inset:0;background:rgba(5,4,15,.78);-webkit-backdrop-filter:blur(30px) saturate(1.2);backdrop-filter:blur(30px) saturate(1.2);opacity:0;transition:opacity .25s ease}
.srch-panel{position:absolute;left:50%;top:76px;width:min(1080px,calc(calc(100vw / var(--z,1)) - 40px));height:72px;display:flex;flex-direction:column;
 translate:-50% -10px;scale:.98;opacity:0;transition:opacity .25s ease,translate .3s cubic-bezier(.2,.8,.2,1),scale .3s cubic-bezier(.2,.8,.2,1),height .5s cubic-bezier(.22,1,.36,1);
 border-radius:30px;color:#fff;font-family:Outfit,system-ui,-apple-system,sans-serif}
/* wave7097, Nic: rebuilt. One frosted panel (the website's frosted look) holds the bar and the results; it grows smoothly from
   the bar to its full height when a search starts (.tall), or to a short card for a message (.short), and back. */
.srch.tall .srch-panel{height:min(860px,calc(calc(100vh / var(--z,1)) - 112px))}
.srch.short .srch-panel{height:150px}
/* frosted with a layer behind the content (CLAUDE.md: a frosted element would be a backdrop root for its dropdowns) */
.srch-panel::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:rgba(255,255,255,.07);-webkit-backdrop-filter:blur(60px) saturate(1.6);backdrop-filter:blur(60px) saturate(1.6);border:1px solid rgba(255,255,255,.12);box-shadow:0 20px 60px rgba(0,0,0,.25)}   /* the frosted hard rule (site.css, wave7083) */
.srch.in .srch-scrim{opacity:1}.srch.in .srch-panel{opacity:1;translate:-50% 0;scale:1}
.srch-form{flex:none;display:flex;align-items:center;gap:14px;padding:0 14px 0 24px;height:72px}   /* wave7061: no separator line */
.srch-form>svg{flex:none;opacity:.75}
.srch-form input{flex:1;min-width:0;height:100%;background:transparent;border:0;outline:0;color:#fff;font:inherit;font-size:20px}
.srch-form input::placeholder{color:rgba(255,255,255,.55)}
.srch-form input::-webkit-search-cancel-button{display:none}
.srch-x{flex:none;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:24px;line-height:1;cursor:pointer;transition:background-color .2s,scale .2s}
.srch-x:hover{background:rgba(255,255,255,.22);scale:1.06}
.srch-body[hidden]{display:none}.srch-body{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;padding:4px 18px 18px;opacity:0;transition:opacity .35s ease .12s}
.srch.tall .srch-body,.srch.short .srch-body{opacity:1}
/* the results window: the frame inside is a little larger than the window and clipped by it, so no browser can leave a
   sliver of its edge showing (Safari did, under the page zoom); the frame scrolls its own tiles */
.srch-win{position:relative;flex:1;min-height:0;border-radius:20px;overflow:hidden}
.srch.short .srch-win{display:none}
.srch-msg{flex:none;margin:8px 6px 12px;font-size:17px;font-weight:600;color:rgba(255,255,255,.8)}
.srch-tiles{position:absolute;left:0;top:0;display:block;width:calc(100% + 4px);height:calc(100% + 4px);border:0;color-scheme:dark;background:transparent}
.srch-more:not([hidden]){display:flex;flex:none;margin:14px auto 0}
html.srch-on,html.srch-on body{overflow:hidden}
.srch,.srch *{scrollbar-width:none}.srch ::-webkit-scrollbar{display:none;width:0;height:0}   /* wave7100, Nic: no scroll bar in the search */

/* the violet button used in the panel and beside the phone */
.sp-btn{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 22px;border:0;border-radius:16px;background:#fff;color:#0b0a10;font:inherit;font-weight:700;font-size:15px;text-decoration:none;cursor:pointer;transition:translate .2s cubic-bezier(.2,.8,.2,1),filter .2s}
.sp-btn:hover{translate:0 -2px;filter:brightness(1.12)}

/* the card phone (moved from site/site.css, wave7041-7052), above the search panel */
.pm-phone .dev{position:relative}
.pm-phone .screens{position:absolute;overflow:hidden}
.pm-phone .bez{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.pm-auth{background:rgba(22,16,44,.6);-webkit-backdrop-filter:blur(26px) saturate(1.5);backdrop-filter:blur(26px) saturate(1.5);border-radius:24px;border:1px solid rgba(255,255,255,.12);box-shadow:0 20px 60px rgba(0,0,0,.25);color:#fff;font-family:Outfit,system-ui,-apple-system,sans-serif}
.pmodal{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center}.pmodal[hidden]{display:none}
.pm-scrim{position:absolute;inset:0;background:rgba(5,4,15,.55);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);opacity:0;transition:opacity .35s ease}
.pm-phone{position:relative;z-index:1;transform-origin:50% 50%;transition:transform .55s cubic-bezier(.18,.95,.22,1),opacity .3s ease}
.pm-phone.moving{will-change:transform}   /* a layer of its own only while it moves (wave7065) */
.pm-screen{isolation:isolate;transform:translateZ(0)}
.pm-phone .dev{width:var(--w);height:calc(var(--w)*2.04444)}
/* wave7065: the phone's shadow is a plain rounded box behind it, not a filter. A filter on the phone made the browser
   repaint the whole live app frame through it on every change, which flickered at the screen's top edge on real GPUs. */
.pm-phone .dev::after{content:'';position:absolute;z-index:-1;left:3%;right:3%;top:2%;bottom:2%;border-radius:calc(var(--w)*.16);box-shadow:0 30px 60px rgba(0,0,0,.6)}
.pm-screen{background:#08060f}
/* wave7051, Nic: the card phone darker and thicker. The frame picture is the darker one (landing/bezel-dark.webp, wave7052), and the screen sits further in on a
   black border, as on a real iPhone (the black plate fills the frame's own screen opening behind it). */
.pm-phone .dev::before{content:'';position:absolute;left:4.7%;top:2.15%;width:90.6%;height:95.7%;border-radius:calc(var(--w)*.115);background:#000}
.pm-phone .screens.pm-screen{left:6.3%;top:2.93%;width:87.4%;height:94.14%;border-radius:calc(var(--w)*.1)}
.pm-screen iframe{position:absolute;left:0;border:0;transform-origin:0 0;color-scheme:dark;background:#08060f}
.pm-status{position:absolute;top:0;left:0;right:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:0 7.5% 0 9.5%;padding-top:.2em;background:transparent;color:#fff;font-weight:600;letter-spacing:-.01em;pointer-events:none;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.pm-status b{font-weight:600}.pm-status span{display:flex;align-items:center;gap:.32em}.pm-status svg{width:1.15em;height:auto}
.pm-bat{display:inline-block;position:relative;width:1.65em;height:.8em;border:1.5px solid rgba(255,255,255,.45);border-radius:.25em;padding:1.5px}.pm-bat i{display:block;width:78%;height:100%;background:#fff;border-radius:.12em}
.pm-bat::after{content:'';position:absolute;right:-.2em;top:50%;width:.1em;height:.3em;margin-top:-.15em;background:rgba(255,255,255,.45);border-radius:0 1px 1px 0}
.pm-x{position:absolute;z-index:2;top:22px;right:26px;width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:28px;line-height:1;cursor:pointer;opacity:0;transition:opacity .3s ease,background-color .2s,scale .2s cubic-bezier(.2,.8,.2,1)}
.pm-x:hover{background:rgba(255,255,255,.24);scale:1.06}
html.pm-on .pm-x{opacity:1}
.pm-auth{--r:26px;position:absolute;z-index:2;left:calc(50% + var(--w,360px)/2 + 28px);top:50%;translate:0 -50%;width:300px;padding:22px}
.pm-auth b{display:block;font-size:20px;line-height:1.2}.pm-auth p{margin-top:8px;font-size:15px;line-height:1.5}.pm-auth .sp-btn{margin-top:16px;height:46px;padding:0 22px;font-size:15px}
.pm-auth-x{display:block;margin-top:10px;background:none;border:0;color:rgba(255,255,255,.75);font:inherit;font-size:14px;cursor:pointer}.pm-auth-x:hover{color:#fff}
html.pm-on,html.pm-on body{overflow:hidden}
@media(max-width:900px){.pm-auth{left:50%;top:auto;bottom:20px;translate:-50% 0;width:min(340px,calc(calc(100vw / var(--z,1)) - 32px))}}
@media(prefers-reduced-motion:reduce){.pm-phone,.pm-scrim{transition:none}}
@media(prefers-reduced-motion:reduce){.srch-scrim,.srch-panel,.srch-body,.navsearch,.sp-btn{transition:none}}

/* wave7059: smoother search. Placeholder tiles shimmer while the app searches; the results fade in over them. */
.srch-more[hidden]{display:none!important}
.srch-skel{position:absolute;left:0;right:0;top:0;z-index:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding-top:4px}.srch-skel[hidden]{display:none}
.srch-skel i{display:block;border-radius:14px;padding:10px;background:rgba(255,255,255,.05)}
.srch-skel b,.srch-skel s{display:block;border-radius:8px;background:linear-gradient(100deg,rgba(255,255,255,.06) 30%,rgba(255,255,255,.14) 50%,rgba(255,255,255,.06) 70%);background-size:300% 100%;animation:srsh 1.3s linear infinite}
.srch-skel b{aspect-ratio:5/7}.srch-skel s{height:10px;margin-top:10px;width:80%}.srch-skel s:last-child{width:50%}
@keyframes srsh{from{background-position:100% 0}to{background-position:-50% 0}}
.srch-tiles{z-index:1;opacity:0;translate:0 10px;transition:opacity .35s ease,translate .45s cubic-bezier(.22,1,.36,1)}.srch-tiles.in{opacity:1;translate:0 0}.srch-tiles.in.dim{opacity:.6}
@media(max-width:900px){.srch-skel{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* the phone's screen cover, lifted once the card is painted */
.pm-cover{position:absolute;inset:0;z-index:1;background:#08060f;pointer-events:none;transition:opacity .32s ease}
.pm-cover.off{opacity:0}
.srch-panel{will-change:transform,opacity}
@media(prefers-reduced-motion:reduce){.srch-skel b,.srch-skel s{animation:none}.srch-tiles,.pm-cover{transition:none}}
