/* Festival kit: shared chrome for the six day-of pages (portal, crew, go, live, store, install).
   Loads AFTER /festival-kit/premium.css and uses its header (.hd), sub-page hero (.phero) and steel tokens.
   The demo's own tokens come from /<slug>/demo.css (--brand --brand-d --brand-l --accent --ink --paper --logo --hero-img).
   Until that file exists the generated page carries the same tokens, derived from data.js.
   Generated pages are made by FESTIVAL-KIT-TOOLS/make-wrappers.py. */

/* The four modules read --fk-accent, --fk-accent-bright and --fk-ink. Point them at the kit's tokens so
   one brand drives the header, the hero and every module. */
:root{--fk-accent:var(--brand);--fk-accent-bright:var(--brand-l);--fk-ink:var(--ink)}

html,body{margin:0}
body{min-height:100vh}
a{color:inherit}

/* ---------- header: the kit's .hd, adjusted for these pages ---------- */
.hd .hd-in{max-width:1340px}
.hd .mark b{max-width:30ch;overflow:hidden;text-overflow:ellipsis}
.hd .hd-logo.always{width:auto;min-width:112px;max-width:190px}
.hd .fw-back{font-family:'Sora',sans-serif;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.86);text-decoration:none;white-space:nowrap;padding:10px 2px;position:relative}
.hd .fw-back:after{content:'';position:absolute;left:0;right:100%;bottom:4px;height:1.5px;background:var(--brand-l);transition:right .24s}
.hd .fw-back:hover{color:#fff}.hd .fw-back:hover:after,.hd .fw-back:focus-visible:after{right:0}
.hd .hd-nav a[aria-current=page]{color:#fff}
.hd .hd-nav a[aria-current=page]:after{right:0;background:var(--brand-l)}
/* the two phone apps carry their own sticky app bar, so the page header scrolls away instead of stacking */
body.fw-app .hd{position:relative}
body.fw-app .hd-in,body.fw-app .hd.scrolled .hd-in{padding:10px 18px}
@media(max-width:1120px){body.fw-app .hd-in{padding:10px 16px 8px}}

/* ---------- sub-page hero, compact for tools ---------- */
.fw-phero .bg{background:var(--hero-img) center 40%/cover no-repeat,
  radial-gradient(90% 150% at 12% 0%,color-mix(in srgb,var(--brand-l) 38%,transparent),transparent 62%),
  linear-gradient(125deg,var(--brand-d),var(--deep) 78%)}
.fw-phero .in{padding:118px 20px 36px;max-width:1280px;text-align:left}
body.fw-live .fw-phero .in{max-width:1100px;padding-left:16px;padding-right:16px}
body.fw-store .fw-phero .in{max-width:1040px;padding-left:14px;padding-right:14px}
body.fw-install .fw-phero .in{max-width:820px;text-align:center;padding-bottom:84px}
body.fw-install .fw-phero p{margin-left:auto;margin-right:auto}
.fw-phero h1{font-size:clamp(26px,3.6vw,40px)}
.fw-phero p{max-width:60ch;margin-left:0}
@media(max-width:1120px){.fw-phero .in{padding:136px 20px 30px}}
@media(max-width:600px){.fw-phero .in{padding:162px 16px 26px}body.fw-install .fw-phero .in{padding-bottom:84px}}
/* a sign-in card lifts out of the bottom of the hero */
body:has(.fkp-gatewrap) .fw-phero .in{padding-bottom:96px}
body:has(.fkp-gatewrap) #fk-root{margin-top:-64px}
#fk-root{position:relative;z-index:2}
/* module surfaces must not reveal-fade (they re-draw constantly) */
#fk-root .pm-rv,#fk-root .pm-in{opacity:1!important;transform:none!important}

/* the demo's Front Desk assistant button sits above the bottom tab bars */
body.fw-tabbed #wpcw-launch{bottom:calc(84px + env(safe-area-inset-bottom))!important;right:16px!important}

/* ---------- install page: one steel-edged sheet lifting out of the hero, flat inside ---------- */
.fw-page{max-width:820px;margin:-44px auto 0;padding:0 16px 90px;position:relative;z-index:2}
.fw-sheet{position:relative;border-radius:14px;padding:30px 30px 28px;background:var(--plate-soft,#f7f9fc);
  box-shadow:var(--metal-edge,inset 0 1px 0 rgba(255,255,255,.95),0 0 0 1px #c4ccd9),var(--metal-lift,0 24px 56px rgba(13,21,38,.18))}
.fw-sheet p{margin:0 0 10px;line-height:1.6;color:var(--body)}
.fw-sheet .fw-why{color:var(--slate)}
.fw-sheet hr{border:0;border-top:1px solid color-mix(in srgb,var(--steel-sh,#0d1526) 14%,#fff);margin:24px 0}
.fw-qrrow{display:flex;gap:26px;align-items:center;flex-wrap:wrap;margin:14px 0 6px}
.fw-qr{width:176px;height:176px;flex:none;display:flex;align-items:center;justify-content:center}
.fw-qr img,.fw-qr canvas{width:176px!important;height:176px!important}
.fw-qrrow>div:last-child{flex:1 1 280px;min-width:0}
.fw-url{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:15px;font-weight:700;word-break:break-all}
.fw-url a{color:var(--brand-d)}
.fw-steps{margin:6px 0 0;padding-left:22px;line-height:1.6;color:var(--body)}
.fw-steps li{margin:0 0 8px}
.fw-cols{display:grid;grid-template-columns:1fr 1fr;gap:30px}
@media(max-width:640px){.fw-cols{grid-template-columns:1fr;gap:0}.fw-sheet{padding:22px 18px 22px}.fw-qr{margin:0 auto}}
.fw-cta{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 24px;border-radius:7px;color:#fff;font-family:'Sora',sans-serif;font-weight:700;text-decoration:none;font-size:15px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--brand-l) 80%,var(--brand)),var(--brand) 48%,var(--brand-d));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),inset 0 -1px 0 rgba(0,0,0,.35),0 3px 6px color-mix(in srgb,var(--brand-d) 34%,transparent),0 12px 26px color-mix(in srgb,var(--brand-d) 26%,transparent)}
.fw-cta:hover{filter:brightness(1.07)}
.fw-cta:focus-visible{outline:3px solid var(--brand-l);outline-offset:2px}
.fw-demo{font-size:12.5px;color:var(--muted);margin:16px 0 0}
