/* Business Operating System: the page's own layout (plan.md "Business Operating System"). Components and tokens from
   design\components.css and design\system.css; the scenes lay out their own panels. */

/* #top: the darkened reception full bleed, the words and the form box in the left column, the day's schedule tilted in
   3D on the right (scene bospanel; under 1280 px as an agenda); under 1024 px the words, then the reception with the
   panel, then the form box */
.bos-top { position: relative; min-height: min(calc(100svh - var(--header-h)), 960px); background: var(--c-ink); isolation: isolate; scroll-margin-top: var(--header-h); }
.bos-top__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--c-ink); scroll-margin-top: var(--header-h); }
.bos-top__media { position: absolute; inset: 0; }
.bos-top__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 50%; }
.bos-top__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .76) 34%, rgba(0, 0, 0, .42) 60%, rgba(0, 0, 0, .3) 100%), linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .55) 100%); }
.bos-top__panel { position: absolute; z-index: 2; top: clamp(16px, 3svh, 40px); bottom: clamp(16px, 3svh, 40px); left: calc(max(var(--gutter), (100% - var(--max-w)) / 2) + 500px); right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
.bos-top__stop { position: absolute; z-index: 6; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: 18px; }
.bos-top__in { position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; min-height: inherit; padding-block: clamp(24px, 4svh, 56px); pointer-events: none; }
.bos-top__in > * { pointer-events: auto; width: 460px; }
.bos-top__title { margin: 0; font-size: clamp(2.2rem, 1.2rem + 2.3vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.bos-top__lead { margin: clamp(12px, 1.8svh, 18px) 0 0; font-size: var(--fs-lead); line-height: 1.5; color: rgba(246, 251, 253, .88); text-wrap: pretty; }
.bos-top__form { position: relative; margin-top: clamp(18px, 3svh, 30px); }
@media (min-width: 1024px) and (max-width: 1279px) {
  /* the right column takes the day as an agenda (the scene's phone design), as tall as the header allows */
  .bos-top__panel { top: 8px; bottom: 8px; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .bos-top__form.formbox { padding: 18px 20px; }
  .bos-top__form .tile { min-height: 62px; padding-block: 6px; }
  .bos-top__form .tile__pic { height: 46px; }
  .bos-top__form .formbox__q { margin-bottom: 10px; }
  .bos-top__form .formbox__note { margin-top: 10px; }
  .bos-top__title { font-size: clamp(2.1rem, 1rem + 2.1vw, 3rem); }
}
@media (max-width: 1023px) {
  .bos-top { display: flex; flex-direction: column; min-height: 0; }
  .bos-top__in { display: contents; }
  .bos-top__in > * { width: auto; }
  .bos-top__words { order: 1; max-width: 760px; padding: 24px var(--gutter) 20px; }
  .bos-top__stage { order: 2; position: relative; inset: auto; height: 640px; }
  .bos-top__panel { left: max(var(--gutter), calc(50% - 360px)); right: max(var(--gutter), calc(50% - 360px)); top: 24px; bottom: 24px; }
  .bos-top__form { order: 3; align-self: center; width: calc(100% - 2 * var(--gutter)); max-width: 560px; margin: 20px 0 30px; }
  .bos-top__stop { top: 14px; right: 14px; bottom: auto; }
}
@media (max-width: 760px) {
  .bos-top__title { font-size: clamp(2rem, 1.2rem + 4vw, 2.6rem); }
  .bos-top__lead { font-size: 1.04rem; }
  .bos-top__stage { height: 760px; }
  .bos-top__panel { left: 10px; right: 10px; top: 52px; bottom: 12px; }
}

/* #ba: six app windows scattered over the desk, each with its own sign-in and what waits in it; with SBOWiz (the switch)
   the same six settle as panels of one dashboard, nothing waiting, marked Free */
.bos-ba__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.bos-ba__stage { aspect-ratio: 1240 / 700; scroll-margin-top: calc(var(--header-h) + 16px); }
.bos-ba__stage .stage__media::after { content: ""; position: absolute; inset: 0; background: rgba(4, 10, 14, .34); transition: background-color .6s var(--ease-out); }
.bos-ba:has(.switch [value="after"]:checked) .bos-ba__stage .stage__media::after { background: rgba(4, 10, 14, .62); }
.six { position: absolute; inset: 0; z-index: 2; font-family: var(--font-ui); color: var(--c-paper); }
.six p, .six ul { margin: 0; }
.six__frame { position: absolute; left: 9%; top: calc(50% - 221px); width: 82%; height: 442px; box-sizing: border-box; border-radius: var(--radius-l); background: rgba(6, 13, 22, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px rgba(2, 228, 255, .5), 0 0 30px rgba(2, 228, 255, .16), 0 30px 70px rgba(0, 0, 0, .55); opacity: 0; transform: scale(.96); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.six__bar { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px; border-bottom: 1px solid rgba(246, 251, 253, .1); }
.six__bar > b { font: 700 1.0625rem/1.2 var(--font-ui); }
.six__bar > span { font: 500 .875rem/1.2 var(--font-ui); color: var(--c-quiet); }
.six__free { margin-left: auto; display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--c-brand); color: var(--c-ink); font: 800 .875rem/1 var(--font-ui); font-style: normal; letter-spacing: .02em; }
.six__w { --w: 25%; position: absolute; left: var(--bx); top: var(--by); width: var(--w); box-sizing: border-box; padding: 12px 14px; border-radius: var(--radius-m); background: rgba(246, 251, 253, .96); color: var(--c-navy); box-shadow: 0 18px 40px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(11, 23, 38, .08); transform: rotate(var(--br)); transition: left .75s var(--ease-out), top .75s var(--ease-out), transform .75s var(--ease-out), background-color .5s, box-shadow .5s, color .5s; transition-delay: calc(var(--i) * 70ms); }
.six__w--text { --bx: 4%; --by: 9%; --br: -4deg; --ax: 11%; --ay: calc(50% - 147px); }
.six__w--people { --bx: 29%; --by: 21%; --br: 3deg; --ax: 37.4%; --ay: calc(50% - 147px); }
.six__w--cal { --bx: 55%; --by: 6%; --br: -2.5deg; --ax: 63.8%; --ay: calc(50% - 147px); }
.six__w--card { --bx: 70%; --by: 36%; --br: 4deg; --ax: 11%; --ay: calc(50% - 2px); }
.six__w--mail { --bx: 10%; --by: 52%; --br: 2.5deg; --ax: 37.4%; --ay: calc(50% - 2px); }
.six__w--bolt { --bx: 42%; --by: 58%; --br: -3deg; --ax: 63.8%; --ay: calc(50% - 2px); }
.six__title { display: flex; align-items: center; gap: 8px; }
.six__ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--c-navy); color: var(--c-brand); }
.six__ic svg { width: 16px; height: 16px; }
.six__title > b { font: 700 .9375rem/1.2 var(--font-ui); }
.six__badge { margin-left: auto; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--radius-pill); background: var(--c-fix); color: var(--c-ink); font: 700 .8125rem/1 var(--font-ui); white-space: nowrap; }
.six__done { margin-left: auto; display: none; align-items: center; gap: 6px; font: 600 .8125rem/1 var(--font-ui); color: var(--c-brand); white-space: nowrap; }
.six__tick { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c-brand); color: var(--c-ink); }
.six__tick svg { width: 11px; height: 11px; }
.six__rows { display: grid; gap: 6px; margin-top: 10px !important; padding: 0; list-style: none; }
.six__rows li { padding: 7px 10px; border-radius: 8px; background: rgba(11, 23, 38, .06); font: 500 .875rem/1.4 var(--font-ui); color: var(--c-text-on-paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .5s var(--ease-out), background-color .5s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.six__sum { position: absolute; z-index: 2; left: 11%; top: calc(50% + 143px); width: 78%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); box-sizing: border-box; margin: 0; border-radius: var(--radius-m); background: rgba(28, 44, 70, .72); box-shadow: inset 0 0 0 1px rgba(59, 129, 181, .45); opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out) .55s, transform .6s var(--ease-out) .55s; }
.six__sum > span { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 20px; font: 500 .9375rem/1.3 var(--font-ui); color: var(--c-quiet); }
.six__sum > span + span { box-shadow: inset 1px 0 0 rgba(246, 251, 253, .1); }
.six__sum b { flex: none; font: 800 1.75rem/1 var(--font-display); letter-spacing: -.02em; color: var(--c-brand); font-variant-numeric: tabular-nums; }
.bos-ba:has(.switch [value="after"]:checked) .six__sum { opacity: 1; transform: none; }
.six__login { display: flex; align-items: center; gap: 7px; margin-top: 10px !important; padding-top: 9px; border-top: 1px solid rgba(11, 23, 38, .1); font: 600 .8125rem/1.3 var(--font-ui); color: var(--c-quiet-on-paper); }
.six__lock { display: grid; place-items: center; width: 16px; height: 16px; color: var(--c-quiet-on-paper); }
.six__lock svg { width: 14px; height: 14px; }
/* with SBOWiz: the frame comes, the windows settle into its grid as its dark panels, nothing waiting */
.bos-ba:has(.switch [value="after"]:checked) .six__frame { opacity: 1; transform: none; }
.bos-ba:has(.switch [value="after"]:checked) .six__w { --w: 25.2%; left: var(--ax); top: var(--ay); transform: none; background: rgba(28, 44, 70, .72); color: var(--c-paper); box-shadow: inset 0 0 0 1px rgba(59, 129, 181, .45); }
.bos-ba:has(.switch [value="after"]:checked) .six__badge, .bos-ba:has(.switch [value="after"]:checked) .six__login { display: none; }
.bos-ba:has(.switch [value="after"]:checked) .six__done { display: inline-flex; }
.bos-ba:has(.switch [value="after"]:checked) .six__rows li { background: rgba(246, 251, 253, .06); color: rgba(246, 251, 253, .86); }
@media (prefers-reduced-motion: reduce) { .six__w, .six__frame, .six__sum, .six__rows li, .bos-ba__stage .stage__media::after { transition: none; } }
@media (max-width: 1239px) {
  /* two columns of three: each window wide enough for its rows */
  .bos-ba__stage { aspect-ratio: auto; height: 720px; }
  .six__w { --w: 44%; }
  .six__w--text { --bx: 3%; --by: 4%; --ax: 5%; --ay: calc(50% - 226px); }
  .six__w--people { --bx: 50%; --by: 10%; --ax: 51%; --ay: calc(50% - 226px); }
  .six__w--cal { --bx: 6%; --by: 36%; --ax: 5%; --ay: calc(50% - 81px); }
  .six__w--card { --bx: 49%; --by: 42%; --ax: 51%; --ay: calc(50% - 81px); }
  .six__w--mail { --bx: 2%; --by: 68%; --ax: 5%; --ay: calc(50% + 64px); }
  .six__w--bolt { --bx: 52%; --by: 72%; --ax: 51%; --ay: calc(50% + 64px); }
  .six__frame { left: 3%; width: 94%; top: calc(50% - 300px); height: 600px; }
  .six__sum { left: 5%; width: 90%; top: calc(50% + 211px); }
  .six__sum > span { padding: 14px 16px; gap: 10px; }
  .bos-ba:has(.switch [value="after"]:checked) .six__w { --w: 44%; }
}
@media (max-width: 760px) {
  /* on the phone: a loose pile of six windows down the desk, settling into one column of panels */
  .bos-ba__stage { aspect-ratio: auto; height: 800px; }
  .six__w { --w: 86%; padding: 9px 12px; }
  .six__rows { margin-top: 8px !important; }
  .six__rows li:nth-child(2) { display: none; }
  .six__login { margin-top: 8px !important; padding-top: 7px; }
  .six__w--text { --bx: 3%; --by: 2.5%; --br: -3deg; --ax: 7%; --ay: 76px; }
  .six__w--people { --bx: 11%; --by: 18.5%; --br: 2.5deg; --ax: 7%; --ay: 172px; }
  .six__w--cal { --bx: 2%; --by: 34.5%; --br: -2deg; --ax: 7%; --ay: 268px; }
  .six__w--card { --bx: 11%; --by: 50.5%; --br: 3deg; --ax: 7%; --ay: 364px; }
  .six__w--mail { --bx: 4%; --by: 66.5%; --br: -2.5deg; --ax: 7%; --ay: 460px; }
  .six__w--bolt { --bx: 10%; --by: 82%; --br: 2deg; --ax: 7%; --ay: 556px; }
  .six__frame { left: 3%; width: 94%; top: 12px; height: 776px; }
  .six__bar { height: 52px; padding: 0 14px; gap: 8px; }
  .six__bar > span { display: none; }
  .six__sum { left: 7%; width: 86%; top: 652px; grid-template-columns: minmax(0, 1fr); }
  .six__sum > span { padding: 9px 14px; gap: 10px; font-size: .875rem; }
  .six__sum > span + span { box-shadow: inset 0 1px 0 rgba(246, 251, 253, .1); }
  .six__sum b { min-width: 52px; font-size: 1.375rem; }
  .bos-ba:has(.switch [value="after"]:checked) .six__w { --w: 86%; }
}

/* #systems: the seven panels as one board over the treatment room's left half, the wall and the fern (scene bossys);
   under 1260 px one column of the panels, centred over the room's left part, the women out of the crop */
.bos-sys .part__head { margin-bottom: clamp(28px, 4vw, 48px); }
.bos-sys__stage { height: clamp(660px, 52vw, 720px); scroll-margin-top: calc(var(--header-h) + 16px); }
.bos-sys__stage .stage__media > img { object-position: 50% 20%; }
.bos-sys__stage .stage__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 10, 14, .7) 0%, rgba(4, 10, 14, .55) 46%, rgba(4, 10, 14, 0) 64%); }
.bos-sys__scene { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 58%; }
.bos-sys__stop { position: absolute; z-index: 5; right: 14px; bottom: 14px; }
@media (max-width: 1259px) {
  .bos-sys__stage { height: 1080px; }
  .bos-sys__stage .stage__media > img { object-position: 0% 50%; }
  .bos-sys__stage .stage__media::after { background: rgba(4, 10, 14, .62); }
  .bos-sys__scene { right: 0; width: min(100%, 560px); margin-inline: auto; }
  .bos-sys__stop { top: 14px; bottom: auto; }
}

/* #auto: the client's visit running itself: the spa's follow-up flow over the lounge, the phone in her hand beside it
   with the thread on its screen (scene bosauto, which draws the flow too); under 1000 px the phone fills a narrower
   stage and the flow is a strip of six nodes above it */
.bos-auto .part__head { margin-bottom: clamp(28px, 4vw, 44px); }
.bos-auto__stage { height: 650px; overflow: clip; scroll-margin-top: calc(var(--header-h) + 16px); } /* clip: a link or focus that scrolls to the phone's screen never scrolls the stage itself */
.bos-auto__zoom { position: absolute; left: calc(100% - 1364px); top: -273px; width: 1763px; height: 1176px; }
.bos-auto__photo { position: absolute; inset: 0; margin: 0; }
.bos-auto__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bos-auto__photo .screen { box-sizing: border-box; padding: 2px; background: var(--c-white) content-box; }
.bos-auto__photo .screen > [data-scene] { position: absolute; inset: 0; }
.bos-auto__flow { position: absolute; z-index: 3; left: clamp(20px, 5%, 64px); top: 50%; width: clamp(300px, 30vw, 340px); transform: translateY(-50%); }
.bos-auto__stop { position: absolute; z-index: 5; right: 14px; top: 14px; }
@media (max-width: 999px) {
  .bos-auto__stage { width: min(100%, 400px); height: auto; margin-inline: auto; aspect-ratio: 358 / 722; }
  .bos-auto__zoom { left: -219%; top: -22.5%; width: 478%; height: 158.1%; }
  .bos-auto__flow { left: 14px; right: 62px; top: 16px; width: auto; transform: none; }
  .bos-auto__stop { top: 16px; }
}
