/* Odile Loyalty self-serve pages. Phone mockup from the /loyalty hero (public/loyalty.html); card colours per shop. */
.ly-phone{margin:0 auto;width:min(320px,100%);position:relative}
.ly-frame{aspect-ratio:9/16.4;border-radius:46px;padding:12px;background:#111;box-shadow:0 0 0 2px #3a3a3e,0 30px 80px #0008}
.ly-screen{height:100%;border-radius:36px;background:#f2f1f6;overflow:hidden;padding:54px 14px 14px;position:relative}
.ly-screen::before{content:"";position:absolute;top:12px;left:50%;width:96px;height:28px;margin-left:-48px;border-radius:20px;background:#111}
.ly-note{position:absolute;left:10px;right:10px;top:46px;z-index:2;display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:18px;background:#fffffff0;color:#1c1c1e;font:500 12.5px/1.3 system-ui,-apple-system,sans-serif;box-shadow:0 8px 24px #0003}
.ly-note img{width:30px;height:30px;border-radius:7px;flex:none}
.ly-note b{display:flex;justify-content:space-between;font-weight:600}.ly-note b span{font-weight:400;color:#6b6b70}
.ly-card{margin-top:78px;border-radius:14px;overflow:hidden;font:500 13px/1.25 system-ui,-apple-system,sans-serif;box-shadow:0 10px 30px #0004}
.ly-top{display:flex;align-items:center;gap:8px;padding:10px 12px}
.ly-top img{width:26px;height:26px}.ly-top strong{flex:1;font-size:16px;font-weight:600}
.ly-k{display:block;font-size:9.5px;letter-spacing:.06em;opacity:.85}
.ly-hd{text-align:right}.ly-hd .v{font-size:17px}
.ly-strip{display:block;width:100%;height:auto}
.ly-row{display:flex;justify-content:space-between;padding:10px 12px}.ly-row div:last-child{text-align:right}
.ly-qr{display:block;width:96px;height:96px;margin:4px auto 14px;padding:6px;border-radius:8px;background:#fff}
/* Self-serve shops (22 Nov 2026): preview layout; the card colour comes from <shop>/theme.css */
.ly-qr img{width:100%;height:auto}.ly-qr{width:96px;height:auto}
.ly-dot{width:30px;height:30px;border-radius:7px;background:#ddd;flex:none}
.pv{display:grid;gap:28px;align-items:start}@media(min-width:760px){.pv{grid-template-columns:300px 1fr}main:has(.pv){width:min(100% - 2rem,56rem)}}
textarea{width:100%;min-height:96px;font:inherit;padding:10px;border-radius:8px;border:1px solid #d8c8b4}
a.button{display:inline-block;padding:12px 18px;border-radius:10px;text-decoration:none;font-weight:600;background:#431b27;color:#fff}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:12px 0 24px}
.tile{display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:14px;background:#fff8ea;border:1px solid #ecd6b6}
.tile b{font-size:30px;line-height:1}.tile span{font-weight:600}.tile small,.note{color:#6b5446;font-size:14px}
.sign{text-align:center}.sign img{max-width:100%;height:auto}
label{display:block;margin:10px 0}label input:not([type=checkbox]):not([type=color]){display:block;width:100%}
main h2{font-size:clamp(20px,2.2vw,26px);line-height:1.2;margin:28px 0 8px;letter-spacing:0}
/* Odile build chat (22 Nov 2026): chat on the left, the three previews on the right; stacked on a phone. No script needed
   except the logo upload: chips are submit buttons, and column-reverse keeps the newest message in view. */
.build{display:grid;gap:28px;align-items:start}
@media (min-width:860px){.build{grid-template-columns:minmax(0,1fr) 340px}main:has(.build){width:min(100% - 2rem,64rem)}}
.chat{border:1px solid #e3e8f2;border-radius:18px;background:#fff;padding:14px;display:flex;flex-direction:column;gap:10px}
.log{display:flex;flex-direction:column-reverse;gap:8px;max-height:56vh;overflow-y:auto;padding:4px}
.bubble{margin:0;max-width:85%;padding:10px 14px;border-radius:16px;line-height:1.4;animation:pop .28s ease-out both}
.bubble.o{background:#0b1f4b;color:#fff;border-bottom-left-radius:4px;align-self:flex-start}
.bubble.u{background:#e8f0fb;color:#0b1530;border-bottom-right-radius:4px;align-self:flex-end}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.chips .chip{margin:0;padding:8px 14px;border-radius:999px;border:1px solid #0066d6;background:#fff;color:#0066d6;font-weight:600;cursor:pointer;animation:pop .3s ease-out both}
.chips .chip:hover{background:#0066d6;color:#fff}
.chip.c1{animation-delay:.06s}.chip.c2{animation-delay:.12s}.chip.c3{animation-delay:.18s}.chip.c4{animation-delay:.24s}
.say{display:flex;gap:8px;margin:0}.say input{flex:1;margin:0}.say button{margin:0}
.upload{margin:0;font-size:14px;color:#6b7591}.upload input{display:block;margin-top:4px}
.previews h2{font-size:15px;margin:18px 0 8px;color:#6b7591;text-transform:uppercase;letter-spacing:.06em}.previews h2:first-child{margin-top:0}
.mini-sign{border:1px solid #e3e8f2;border-radius:14px;padding:16px;text-align:center;background:#fff}
.mini-sign h3{margin:6px 0 10px;font-size:18px}.mini-sign p{margin:8px 0 0;font-size:14px}
.locked{position:relative;width:150px;margin:0 auto}.locked svg{display:block;width:150px;height:150px;filter:blur(5px);opacity:.55}
.locked span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;color:#0b1f4b}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.bubble,.chips .chip{animation:none}}
/* The build chat is Odile's own page, so it wears Odile Labs' brand (navy, white, Odile blue, Figtree), not the shop's. */
@font-face{font-family:"Figtree";font-weight:400 700;font-display:swap;src:url(/fonts/figtree-var-latin.woff2) format("woff2")}
html:has(.build){background:#f5f7fb}
main:has(.build){background:#fff;border-color:#e3e8f2;color:#3c4660;font-family:"Figtree",-apple-system,"Segoe UI",sans-serif;box-shadow:0 14px 40px #0b1f4b14}
main:has(.build) header h1{color:#0b1f4b;font:700 clamp(1.6rem,4vw,2.2rem)/1.1 "Figtree",sans-serif;letter-spacing:-.02em}
main:has(.build) header h1::before{content:"✦ ";color:#0066d6}
.build button,.build input{font-family:inherit}
.build .chips .chip{width:auto}
.build .say button,.build a.button{width:auto;background:#0066d6;border-color:#0066d6;color:#fff;border-radius:12px;padding:10px 18px}
.build .say button:hover,.build a.button:hover{background:#0b1f4b;border-color:#0b1f4b}
.build .say input{border:1px solid #e3e8f2;border-radius:12px;padding:11px 12px}
.build .say input:focus{outline:0;border-color:#0066d6;box-shadow:0 0 0 3px #0066d626}
.build .note{color:#6b7591}
.locked span{inset:auto 0 50% 0;transform:translateY(50%);margin:0 auto;width:max-content;padding:5px 10px;border-radius:999px;background:#fff;box-shadow:0 2px 10px #0b1f4b26}
/* One-prompt start (Tolga 22 Nov: "more like base 44"): a big describe-it box, example prompts as chips. */
html:has(.prompt-hero){background:#f5f7fb}
main:has(.prompt-hero){background:#fff;border-color:#e3e8f2;color:#3c4660;font-family:"Figtree",-apple-system,"Segoe UI",sans-serif;box-shadow:0 14px 40px #0b1f4b14}
main:has(.prompt-hero) header h1{color:#0b1f4b;font:700 clamp(1.6rem,4vw,2.2rem)/1.1 "Figtree",sans-serif;letter-spacing:-.02em}
.prompt-hero h2{color:#0b1f4b;font-size:clamp(22px,3.4vw,30px);letter-spacing:-.01em;margin:8px 0 4px}
.prompt-hero .big{position:relative;margin:16px 0 12px;border-radius:20px;padding:3px;background:linear-gradient(120deg,#0b1f4b,#0066d6,#7fb2ff,#0066d6,#0b1f4b);background-size:300% 100%;animation:glow 6s linear infinite}
.prompt-hero textarea{display:block;width:100%;border:0;border-radius:17px;padding:16px 16px 60px;font:inherit;font-size:17px;color:#0b1530;resize:vertical;min-height:120px}
.prompt-hero textarea:focus{outline:0}
.prompt-hero .big button{position:absolute;right:12px;bottom:12px;width:auto;margin:0;background:#0066d6;border-color:#0066d6;color:#fff;border-radius:12px;padding:10px 20px;font-family:inherit;font-weight:700}
.prompt-hero .big button:hover{background:#0b1f4b}
.prompt-hero .chips .chip{width:auto;font-family:inherit;font-size:14px;font-weight:600}
.prompt-hero .note{color:#6b7591}
@keyframes glow{to{background-position:300% 0}}
.bubble.built{list-style:none;padding:12px 16px;margin:0}
.built li{position:relative;padding-left:24px;margin:3px 0;animation:pop .3s ease-out both}
.built li::before{content:"✓";position:absolute;left:0;color:#7fb2ff;font-weight:700}
.built .s1{animation-delay:.25s}.built .s2{animation-delay:.5s}.built .s3{animation-delay:.75s}.built .s4{animation-delay:1s}
@media (prefers-reduced-motion:reduce){.prompt-hero .big,.built li{animation:none}}
/* Phones (found recording the ad, 22 Nov): a long pasted link widened the grid past the screen. One column that never grows past it. */
.build{grid-template-columns:minmax(0,1fr)}
.bubble{overflow-wrap:anywhere}
.mini-sign h3,.mini-sign p{overflow-wrap:anywhere}
@media (max-width:620px){main:has(.build),main:has(.prompt-hero){width:auto;margin:0;border-radius:0;border-left:0;border-right:0;padding-left:14px;padding-right:14px}.chat{padding:10px}}
/* Sign-up box in Odile blue too (it still had the shop pages' burgundy button). */
.build.first button,.build.first a.button{width:auto;background:#0066d6;border-color:#0066d6;color:#fff;border-radius:12px;padding:12px 20px;font-family:inherit;font-weight:700}
.build.first a.button.google{background:#fff;color:#0b1f4b;border:1px solid #c9d3e6}
.build.first input{border:1px solid #e3e8f2;border-radius:12px;padding:11px 12px;font-family:inherit}
.bubble.typing{display:flex;gap:5px;padding:14px 16px}
.bubble.typing i{width:8px;height:8px;border-radius:50%;background:#b9c6e4;animation:blink 1s infinite}
.bubble.typing i:nth-child(2){animation-delay:.15s}.bubble.typing i:nth-child(3){animation-delay:.3s}
@keyframes blink{0%,80%,100%{opacity:.3}40%{opacity:1}}
/* Card first (Astra 22 Nov): phone order is card + Go live, then the chat, then the signs; desktop puts the chat on the left. */
.card-first{display:grid;gap:22px;grid-template-columns:minmax(0,1fr);grid-template-areas:"stage" "chat" "extras"}
@media (min-width:860px){.card-first{grid-template-columns:minmax(0,1fr) 360px;grid-template-areas:"chat stage" "chat extras"}}
.card-first .stage{grid-area:stage}.card-first .chat{grid-area:chat;align-self:start}.card-first .extras{grid-area:extras}
.card-first .log{flex-direction:column;max-height:none;overflow:visible}
.stage .ready{margin:0 0 12px;font-size:22px;color:#0b1f4b;letter-spacing:-.01em;text-transform:none}
.stage .sample{font-size:13px;color:#6b7591;margin:10px 4px 14px}
.golive-box{border:1px solid #e3e8f2;border-radius:16px;padding:14px;background:#f5f7fb}
.golive-box .note{margin:8px 0 0;font-size:13px}
.build a.golive{display:block;text-align:center;width:100%;font-size:18px;padding:14px 18px}
.chat h2{margin:0;font-size:15px;color:#6b7591;text-transform:uppercase;letter-spacing:.06em}
.history{border-top:1px solid #e3e8f2;padding-top:8px}.history summary{cursor:pointer;color:#0066d6;font-weight:600;font-size:14px}
.history .bubble{margin:8px 0;animation:none}
.extras details{margin-bottom:12px}.extras summary{cursor:pointer;font-size:15px;color:#6b7591;text-transform:uppercase;letter-spacing:.06em;font-weight:700;margin-bottom:8px}
#chat-error{margin:0;color:#d14343;font-size:14px}
.golive-bar{display:none}
@media (max-width:859px){.golive-bar{display:block;position:sticky;bottom:0;margin:0 -14px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#ffffffeb;border-top:1px solid #e3e8f2;backdrop-filter:blur(8px)}}
.shop-card.changed{animation:flash 1.2s ease-out}
@keyframes flash{0%{box-shadow:0 0 0 0 #0066d6aa}40%{box-shadow:0 0 0 10px #0066d633}100%{box-shadow:0 0 0 0 #0066d600}}
.prompt-hero .try{margin:4px 0 8px;color:#6b7591;font-size:14px}
@media (prefers-reduced-motion:reduce){.shop-card.changed{animation:none}}
/* In the builder the phone is cropped to its top half (notification + card), so the chat stays in reach on a phone. */
.stage .ly-frame{aspect-ratio:auto;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:0;-webkit-mask-image:linear-gradient(#000 82%,transparent);mask-image:linear-gradient(#000 82%,transparent)}
.stage .ly-screen{height:auto;padding-bottom:28px;border-bottom-left-radius:0;border-bottom-right-radius:0}
.stage .ly-frame{-webkit-mask-image:linear-gradient(#000 calc(100% - 26px),transparent);mask-image:linear-gradient(#000 calc(100% - 26px),transparent)}
.stage .ly-screen{padding-bottom:40px}
.golive-bar.hide{display:none}
/* iPhone / Android preview tabs in the builder (radio + CSS; no script). */
.pv-tabs>input{position:absolute;opacity:0;pointer-events:none}
.pv-tabs>label{display:inline-block;margin:0 6px 12px 0;padding:8px 14px;border-radius:999px;border:1px solid #c9d3e6;color:#3c4660;font-weight:600;font-size:14px;cursor:pointer}
#pv-ios:checked+label,#pv-and:checked+label{background:#0b1f4b;border-color:#0b1f4b;color:#fff}
.pv-tabs>input:focus-visible+label{outline:3px solid #0066d666}
.pv-and{display:none}#pv-and:checked~.pv-and{display:block}#pv-and:checked~.pv-ios{display:none}
.ly-browser{margin:0 auto;width:min(320px,100%);border-radius:28px;background:#111;padding:10px;box-shadow:0 0 0 2px #3a3a3e,0 30px 80px #0008}
.lb-bar{background:#2b2b2f;border-radius:18px 18px 0 0;padding:10px 12px}
.lb-url{display:block;background:#3c3c42;color:#e8e8ee;border-radius:999px;padding:6px 12px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lb-page{background:#fff;border-radius:0 0 18px 18px;padding:16px;text-align:center;color:#2b2b2f}
.lb-head{display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px}.lb-head img{border-radius:50%}
.lb-page h3{margin:10px 0;font-size:22px}
.lb-page svg{width:150px;height:150px;display:block;margin:0 auto}
.lb-page p{margin:8px 0 0;font-size:13px}.lb-page .note{color:#6b7591}
.pv-tabs{white-space:nowrap}.pv-tabs>label{font-size:13px;padding:7px 11px;margin-right:4px}
.pv-tabs>.pv-ios,.pv-tabs>.pv-and{white-space:normal}
/* Signs previewed as printed: a band in the shop's colour with its logo. */
.mini-sign.branded{padding:0 0 16px;overflow:hidden}
.ms-band{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;font-size:16px}.ms-band img{border-radius:50%;background:#fff}
.mini-sign.branded h3{margin:14px 14px 10px;font-size:19px}.mini-sign.branded p{margin:8px 14px 0}
.mini-sign .stars{color:#e0a526;letter-spacing:3px;font-size:18px;margin-top:12px!important}
.chips .chip[value="Undo last change"]{border-color:#c9d3e6;color:#3c4660}
/* Start page: Odile building the card (shown by build.js while the server works). */
.building{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:#0b1f4bf2;color:#fff;font-family:"Figtree",sans-serif}
.building div{max-width:320px;padding:24px}.building h2{color:#fff;font-size:24px;margin:0 0 16px}
.building li{list-style:none;margin:10px 0;opacity:.25;transition:opacity .4s;font-size:17px}.building li.on{opacity:1}.building li.on::before{content:"✓ ";color:#7fb2ff}
/* Logo and shop photo buttons under the card. */
.pics{display:flex;gap:10px;margin:12px 0 0}
.pic{flex:1;position:relative;display:flex;align-items:center;justify-content:center;gap:6px;padding:11px 12px;border:1px dashed #9fb3d9;border-radius:12px;color:#0066d6;font-weight:700;font-size:14px;cursor:pointer;background:#fff}
.pic::before{content:"+";font-size:18px;line-height:1}
.pic input{position:absolute;inset:0;opacity:0;cursor:pointer}
.pic.busy{opacity:.6;pointer-events:none}.pic.busy::before{content:"…"}
.pic:focus-within{outline:3px solid #0066d666}
#logo-status{color:#d14343;font-size:14px;margin:8px 0 0}
.ly-strip{display:block;width:100%;height:auto;margin:8px 0}
/* Register counter mode and practice card: a clear green line for what just happened. */
p.done{background:#0f9d6b14;color:#0b7a53;border:1px solid #0f9d6b40;border-radius:12px;padding:12px 14px;font-weight:700;font-size:18px}
.build form.trial{margin:0}.build button.golive{display:block;width:100%;margin:0;font-size:18px;padding:14px 18px;background:#0066d6;border:0;border-radius:12px;color:#fff;font-weight:800;font-family:inherit;cursor:pointer}
.build button.golive:hover{background:#0b1f4b}
/* The hidden tab radios sat past the right edge (page 407px wide on a 393px phone, so it zoomed out and taps missed). Pin them. */
.pv-tabs{position:relative}.pv-tabs>input{left:0;top:0;width:1px;height:1px;margin:0}
/* Register (staff, at the counter): Odile navy and white like the builder and dashboard, big tap targets for a busy counter. */
html:has(main.register){background:#0b1f4b}
main.register{background:#fff;color:#3c4660;font-family:"Figtree",-apple-system,"Segoe UI",sans-serif;border:0;border-radius:22px;box-shadow:0 20px 60px #00000040;width:min(100% - 1.5rem,30rem)}
main.register header{border-bottom:1px solid #e3e8f2}
main.register header h1{color:#0b1f4b;font:800 clamp(1.4rem,5vw,1.9rem)/1.1 "Figtree",sans-serif;letter-spacing:-.02em}
main.register button,main.register a.button{display:block;width:100%;min-height:64px;margin:12px 0 0;border:0;border-radius:16px;background:#0066d6;color:#fff;font:800 20px "Figtree",sans-serif;cursor:pointer;box-shadow:0 10px 26px #0066d640}
main.register button:hover{background:#0b1f4b}
main.register button:disabled{background:#9fb3d9;box-shadow:none}
main.register .balance{background:#0b1f4b;color:#fff;border:0;border-radius:18px;padding:20px;text-align:center}
main.register .balance h2{color:#fff;font:800 clamp(2rem,9vw,2.6rem)/1.05 "Figtree",sans-serif;margin:0}
main.register .balance p{color:#b9c6e4;margin:8px 0 0}
main.register p.done{background:#0f9d6b;color:#fff;border:0;font-size:20px;text-align:center;padding:16px}
main.register input{display:block;width:100%;margin-top:6px;padding:14px;border:1px solid #c9d3e6;border-radius:12px;font:700 22px "Figtree",sans-serif;letter-spacing:.12em;text-align:center;color:#0b1530}
main.register input:focus{outline:0;border-color:#0066d6;box-shadow:0 0 0 3px #0066d626}
main.register label{color:#6b7591;font-weight:600}
main.register a{color:#0066d6;font-weight:700}
main.register video{display:block;width:100%;height:auto;border-radius:16px;margin-top:12px;background:#000}
main.register #scan-status{text-align:center;color:#6b7591}
main.register video[hidden]{display:none}
