/* Widget showroom — same look as the other docs pages (docs/leona_booking/start, docs/leona_booking/tour):
   Fraunces + Outfit, the blue → violet ClaudiaFix gradient, white cards on a pale paper. */
:root{--blue:#2563eb;--vio:#7c3aed;--ink:#0b1020;--mute:#5b6478;--line:rgba(15,23,42,.1);--paper:#f6f7ff;--warn:#fff7e0;--warn-line:#f2d48a}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--paper);color:var(--ink)}
body{margin:0;font:16px/1.55 Outfit,system-ui,sans-serif;overflow-x:hidden}
img{max-width:100%;height:auto}
a{color:var(--blue)}
/* the header stays at the top while the page scrolls: a widget that brings its next step into view must land below it */
.top{position:sticky;top:0;z-index:50;padding:.75rem 1.15rem;border-bottom:1px solid var(--line);background:#fff;display:flex;gap:.6rem;align-items:center;font-weight:700}
.top img{width:32px;height:32px;border-radius:9px}
.top .brand{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lang{margin-left:auto;display:flex;flex-wrap:wrap;gap:.15rem;border:1px solid var(--line);border-radius:999px;padding:.1rem .2rem;background:#fff;flex:0 0 auto}
.lang a{padding:.2rem .5rem;border-radius:999px;font-size:.72rem;font-weight:800;color:var(--mute);text-decoration:none}
.lang a[aria-current]{background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff}
.demo-note{background:var(--warn);border-bottom:1px solid var(--warn-line);padding:.6rem 1.15rem;text-align:center;font-weight:650;font-size:.98rem}
main{width:min(1180px,100%);margin:0 auto;padding:1.4rem 1.15rem 3rem}
h1,h2,h3{font-family:Fraunces,Georgia,serif;font-weight:600;letter-spacing:-.03em;line-height:1.2}
h1{font-size:clamp(1.7rem,4vw,2.2rem);margin:.2rem 0 .6rem}
h2{font-size:1.35rem;margin:0 0 .3rem}
.kicker{color:var(--vio);letter-spacing:.16em;text-transform:uppercase;font-size:.68rem;font-weight:700;margin:0}
.lead{color:#334155;font-size:1.05rem;margin:0 0 1rem}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:1rem 1.05rem;margin:.7rem 0}
.muted{color:var(--mute);font-size:.92rem}
footer{color:var(--mute);font-size:.82rem;margin-top:2rem;border-top:1px solid var(--line);padding-top:1rem}

/* 1. which app */
.pick-app{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .8rem;margin:0 0 1rem}
.pick-app label{font-weight:700;font-size:1.05rem}
.pick-app select{font:inherit;font-size:1.05rem;font-weight:650;padding:.55rem 2.2rem .55rem .8rem;border:1px solid rgba(15,23,42,.25);border-radius:12px;background:#fff;color:var(--ink);max-width:100%;min-height:48px}

/* 2. the pages of that app (left) and the open one (right) */
.sr-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;align-items:start}
@media (min-width:900px){.sr-grid{grid-template-columns:260px minmax(0,1fr)}}
.wlist{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
@media (min-width:900px){.wlist{position:sticky;top:76px}}
.wlist button{width:100%;text-align:left;font:inherit;font-size:1.05rem;font-weight:650;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:14px;padding:.8rem .95rem;cursor:pointer;min-height:48px;line-height:1.3}
.wlist button:hover{border-color:rgba(37,99,235,.45)}
.wlist button[aria-current="true"]{border-color:transparent;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff}
.wlist button:focus-visible,.seg button:focus-visible,.copy:focus-visible,.pick-app select:focus-visible,.who select:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}

.stage{min-width:0}
.stage .says{font-size:1.08rem;color:#334155;margin:0 0 .8rem}
.toggles{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;margin:0 0 .8rem}
.seg{display:inline-flex;border:1px solid rgba(15,23,42,.18);border-radius:999px;background:#fff;padding:3px;max-width:100%}
.seg button{font:inherit;font-weight:650;font-size:.98rem;border:0;background:transparent;color:var(--mute);padding:.45rem .9rem;border-radius:999px;cursor:pointer;min-height:40px;white-space:nowrap}
.seg button[aria-pressed="true"]{background:var(--ink);color:#fff}
.who{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.who label{font-weight:700}
.who select{font:inherit;font-size:1rem;padding:.4rem .6rem;border:1px solid rgba(15,23,42,.25);border-radius:10px;background:#fff;min-height:40px;max-width:100%}
.note{background:#eef2ff;border:1px solid rgba(37,99,235,.2);border-radius:12px;padding:.6rem .8rem;margin:0 0 .8rem;font-size:.95rem}
.note[hidden]{display:none}

/* the live page: the copied code runs inside this box, nothing else */
.frame-wrap{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;margin:0 0 1rem}
.frame-wrap[data-size="phone"] .live{width:min(390px,100%);margin:0 auto;border:1px solid rgba(15,23,42,.15);border-radius:12px;overflow:hidden}
.frame-wrap[data-size="desktop"] .live{width:100%}
.live{min-height:60px}
.live-cap{margin:0 0 .5rem;font-size:.85rem;color:var(--mute);text-align:center}

/* the code */
.code{padding:0;overflow:hidden}
.code-head{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--line)}
.code-head b{font-size:1.05rem}
.copy{font:inherit;font-weight:700;font-size:1rem;border:0;border-radius:999px;padding:.55rem 1.1rem;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;cursor:pointer;min-height:44px}
.copy.done{background:#15803d}
.code pre{margin:0;padding:.9rem 1rem;background:#0b1020;color:#e2e8f0;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-all;overflow-wrap:anywhere}
.code .muted{margin:0;padding:.7rem 1rem}

/* room under the last card, as on a real site with more below the widget: the page can always bring a widget's next step
   up to the header, so the step-change scroll is really exercised (a page that ends right under the widget cannot scroll) */
body::after{content:"";display:block;height:70vh}
