/* ---------- step-by-step product flows (src/flows.mjs) ---------- */
/* devices */
.dv{display:block;position:relative;min-width:0}
.dv img{display:block;width:100%;height:auto}
.dv-phone,.dv-tablet{filter:drop-shadow(0 22px 34px rgba(11,34,48,.20)) drop-shadow(0 2px 5px rgba(11,34,48,.10))}
.dark .dv-phone,.dark .dv-tablet{filter:drop-shadow(0 22px 34px rgba(0,0,0,.5))}
.dv-cphone{background:#0d1419;border-radius:clamp(22px,15%,38px)/clamp(22px,7%,38px);padding:clamp(5px,2.2%,8px);box-shadow:var(--sh-3)}
.dv-cphone .scr{display:block;border-radius:clamp(17px,12%,31px)/clamp(17px,5.6%,31px);overflow:hidden;background:#fff;aspect-ratio:780/1384}
.dv-cphone .scr img{width:100%;height:100%;object-fit:cover;object-position:top}
.dv-desk{background:var(--scr-bg);border:1px solid var(--line-2);border-radius:12px;overflow:hidden;box-shadow:var(--sh-3);color:var(--scr-ink)}
.dv-desk .bar{display:flex;align-items:center;gap:7px;height:32px;padding:0 10px 0 12px;background:var(--scr-soft);border-bottom:1px solid var(--scr-line);font-family:var(--mono);font-size:.75rem;color:var(--scr-muted)}
.dv-desk .bar i{width:9px;height:9px;border-radius:50%;background:#d5dce1;flex-shrink:0}
.dv-desk .bar>span{margin-left:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
.dv-desk .bar .zoom-btn{margin-left:auto;flex-shrink:0}
.dv-desk .view{display:block;background:#fff}
.dv-who{display:grid;justify-items:center;gap:10px;min-width:0}
.dv-tag{font-family:var(--mono);font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:3px 10px;white-space:nowrap}

/* the stepper */
.fp{border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden;box-shadow:var(--sh-1)}
.fp+.fp{margin-top:32px}
.fp-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px 28px;flex-wrap:wrap;padding:clamp(18px,2.4vw,28px) clamp(18px,2.6vw,32px) 18px}
.fp-title{display:grid;gap:8px;max-width:68ch;min-width:0}
.fp-kick{font-family:var(--mono);font-size:.75rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--mint-ink)}
.fp-title h3{font-family:var(--serif);font-weight:400;font-size:clamp(1.45rem,1.15rem + 1.1vw,2.05rem);line-height:1.12;letter-spacing:-.016em}
.fp-title p{color:var(--muted);font-size:.98rem;line-height:1.55}
.fp-ctrl{display:flex;align-items:center;gap:8px;flex-shrink:0}
.fp-count{font-family:var(--mono);font-size:.75rem;letter-spacing:.06em;color:var(--faint);margin-right:6px;min-width:5.5ch;text-align:right}
.fp-ctrl button,.fs-ctrl button{width:44px;height:44px;border-radius:8px;border:1px solid var(--line-2);background:var(--surface);display:grid;place-items:center;color:var(--ink);cursor:pointer}
.fp-ctrl button:hover,.fs-ctrl button:hover{border-color:var(--ink)}
.fp-ctrl svg,.fs-ctrl svg{width:16px;height:16px}
.fs-ctrl button[disabled]{opacity:.35;cursor:default;border-color:var(--line)}
.fp-rail{display:flex;gap:4px;overflow-x:auto;padding:0 clamp(12px,2vw,24px);border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface-2);scrollbar-width:none}
.fp-rail::-webkit-scrollbar{display:none}
.fp-rail button{flex:0 0 auto;display:flex;align-items:baseline;gap:7px;background:none;border:0;border-bottom:2px solid transparent;padding:13px 12px 11px;font-size:.86rem;font-weight:500;color:var(--muted);white-space:nowrap;cursor:pointer}
.fp-rail button b{font-family:var(--mono);font-size:.75rem;font-weight:500;color:var(--faint)}
.fp-rail button:hover{color:var(--ink)}
.fp-rail button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--mint)}
.fp-rail button[aria-selected="true"] b{color:var(--mint-ink)}
.fp-panel{display:grid;gap:22px;padding:clamp(16px,2.4vw,30px)}
.fp-panel[hidden]{display:none}
@media(min-width:980px){.fp-panel{grid-template-columns:minmax(0,1fr) minmax(260px,330px);gap:36px;align-items:center}}
.fp-copy{display:grid;gap:10px;align-content:center}
.fp-n{font-family:var(--mono);font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--faint)}
.fp-copy h4{font-family:var(--serif);font-weight:400;font-size:clamp(1.3rem,1.15rem + .55vw,1.6rem);line-height:1.18;letter-spacing:-.012em}
.fp-copy p{color:var(--muted);font-size:1rem;line-height:1.6}
.fp-note{padding:14px clamp(18px,2.6vw,32px);border-top:1px solid var(--line);background:var(--surface-2);font-size:.84rem;color:var(--faint)}

/* the stage keeps one shape from step to step, so nothing jumps */
.fp-stage{position:relative;border-radius:12px;background:radial-gradient(70% 80% at 18% 12%,color-mix(in srgb,var(--blue) 9%,transparent),transparent 70%),radial-gradient(60% 70% at 92% 96%,color-mix(in srgb,var(--mint) 11%,transparent),transparent 70%),var(--canvas);min-width:0;overflow:hidden}
.dark .fp-stage{background:var(--canvas-2)}
@media(min-width:700px){
  .fp-stage{aspect-ratio:16/10.6}
  /* devices are sized by height inside the fixed stage, each keeping its own shape */
  .st-kiosk>.dv-tablet{position:absolute;left:4.5%;top:7%;height:86%;aspect-ratio:2144/1632}
  .st-kiosk>.dv-tablet.room,.st-kiosk>.dv-tablet:has(img[width="1600"][height="1249"]){aspect-ratio:1640/1280}
  .st-kiosk>.dv-tablet img{width:100%;height:100%}
  .st-kiosk.solo>.dv-tablet{left:50%;transform:translateX(-50%)}
  .st-kiosk .fp-side{position:absolute;right:4.5%;bottom:4%;height:84%;display:flex;align-items:flex-end;gap:14px}
  .st-kiosk .fp-side .dv-phone{height:100%;aspect-ratio:828/1736}
  .st-kiosk .fp-side .dv-phone img{width:100%;height:100%}
  .st-phones{display:grid;place-items:center}
  .fp-phones{display:flex;justify-content:center;align-items:stretch;gap:clamp(18px,4%,48px);height:88%}
  .fp-phones>.dv-phone{height:100%;aspect-ratio:828/1736}
  .fp-phones .dv-phone img{width:100%;height:100%}
  .fp-phones>.dv-cphone{height:100%;aspect-ratio:796/1400}
  .fp-phones .dv-cphone .scr{height:100%;aspect-ratio:auto}
  .fp-phones>.aphone{height:100%;aspect-ratio:790/1776}
  .fp-phones>.aphone.tall{aspect-ratio:790/1712}
  .fp-phones .aphone .ap-screen{height:100%}
  .fp-phones .aphone img{height:100%;object-fit:cover;object-position:top}
  .fp-phones>.aphone:not(.tall){-webkit-mask-image:linear-gradient(#000 84%,transparent);mask-image:linear-gradient(#000 84%,transparent)}
  .fp-phones>.dv-who{height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:10px}
  .fp-phones>.dv-who>.dv-phone{height:100%;aspect-ratio:828/1736}
  .st-desk{display:flex;align-items:center;justify-content:center;padding:4.5%}
  .st-desk .dv-desk{width:100%;max-height:100%;display:flex;flex-direction:column}
  .st-desk .dv-desk .view{min-height:0;overflow:hidden;flex:1}
}
@media(max-width:699px){
  .fp-stage{padding:18px 14px}
  .st-kiosk{display:grid;justify-items:center}
  .st-kiosk>.dv-tablet{width:100%}
  .st-kiosk .fp-side{display:flex;justify-content:center;gap:12px;width:40%;margin-top:-13%;justify-self:end;margin-right:2%;position:relative}
  .st-kiosk .fp-side .dv-who,.st-kiosk .fp-side .dv{width:100%}
  .fp-phones{display:flex;justify-content:center;gap:12px}
  .fp-phones>*{flex:0 1 48%;min-width:0}
  .fp-phones.n1>*{flex-basis:66%}
  .st-desk{padding:12px}
}

/* the filmstrip: every step in a row */
.fs{display:grid;gap:22px}
.fs+.fs,.fp+.fs,.fs+.fp{margin-top:44px}
.fs-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px 28px;flex-wrap:wrap}
.fs-head>div:first-child{display:grid;gap:8px;max-width:68ch;min-width:0}
.fs-head h3{font-family:var(--serif);font-weight:400;font-size:clamp(1.45rem,1.15rem + 1.1vw,2.05rem);line-height:1.12;letter-spacing:-.016em}
.fs-head p{color:var(--muted);font-size:.98rem;line-height:1.55}
.fs-ctrl{display:flex;gap:8px}
.fs-track{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(172px,20.5%,236px);gap:clamp(18px,2.4vw,30px);overflow-x:auto;padding:8px 4px 20px;scroll-snap-type:x mandatory;scroll-padding-left:4px;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent;align-items:start}
.fs-track:focus-visible{outline:2px solid var(--focus);outline-offset:4px;border-radius:8px}
.fs-step{margin:0;display:grid;gap:14px;scroll-snap-align:start;min-width:0}
.fs-step figcaption{font-size:.88rem;color:var(--muted);line-height:1.5;border-top:1px solid var(--line);padding-top:12px}
.fs-step figcaption b{display:block;color:var(--ink);font-weight:600;font-size:.96rem;margin-bottom:3px}
.fs-n{display:flex;align-items:center;gap:8px;font-family:var(--mono);font-size:.75rem;letter-spacing:.08em;color:var(--faint);margin-bottom:6px}
.fs-n em{font-style:normal;text-transform:uppercase;letter-spacing:.1em;color:var(--mint-ink);background:var(--mint-wash);padding:1px 6px;border-radius:3px}
.fs>.fp-note{padding:0;border:0;background:none}
@media(max-width:699px){.fs-track{grid-auto-columns:58%;margin-inline:-16px;padding-inline:16px;scroll-padding-left:16px}}

/* the flow index */
.fx{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
@media(min-width:900px){.fx{grid-template-columns:repeat(3,minmax(0,1fr))}.fx.n4,.fx.n8{grid-template-columns:repeat(4,minmax(0,1fr))}}
.fx a{display:grid;gap:6px;align-content:start;padding:18px 20px 20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);transition:border-color .15s,box-shadow .15s}
.fx a:hover{border-color:var(--ink);box-shadow:var(--sh-2)}
.fx-n{font-family:var(--serif);font-size:1.7rem;line-height:1;color:var(--ink)}
.fx-who{font-family:var(--mono);font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--mint-ink);margin-top:4px}
.fx b{color:var(--ink);font-weight:600;font-size:1rem;line-height:1.3}
.fx-p{font-size:.88rem;color:var(--muted);line-height:1.5}
.band.soft .fp,.band.soft .fx a{background:var(--surface)}

/* a band that carries one flow: heading beside the flow on wide screens */
.flow-band .head{margin-bottom:clamp(28px,3vw,40px)}
.flow-facts{display:flex;flex-wrap:wrap;gap:8px 10px;margin-top:22px}
.flow-facts span{font-size:.84rem;padding:6px 12px;border-radius:999px;border:1px solid var(--line-2);background:var(--surface);color:var(--text)}

/* hero composition: a desktop window with a phone in front */
.hero-dev{position:relative;padding:0 0 8% 0}
.hero-dev .dv-desk{width:100%}
.hero-dev .hero-ph{position:absolute;right:-2%;bottom:0;width:27%}
.hero-dev .hero-ph .dv-cphone,.hero-dev .hero-ph .dv-phone{width:100%}
@media(max-width:699px){.hero-dev{padding-bottom:16%}.hero-dev .hero-ph{width:34%;right:0}}
.st-desk .rule-panel{width:100%;max-width:620px}
/* phone pairs inside the shared tour component */
.phone-pair>.dv-who{width:min(44%,240px);align-self:flex-start}
.phone-pair>.dv-who>.aphone,.phone-pair>.dv-who>.dv{width:100%}
.phone-pair>.dv-phone{width:min(44%,240px)}
/* enlarge a kiosk or room screen, from the caption */
.fp-zoom{display:flex;margin-top:4px}
.fp-zoom .zoom-btn{font-size:.75rem;padding:5px 10px}
/* the flow index: two columns on a phone */
@media(max-width:699px){.fx{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fx a{padding:14px 14px 16px}.fx-n{font-size:1.4rem}.fx b{font-size:.92rem}.fx-p{font-size:.82rem}}
@media(max-width:359px){.fx{grid-template-columns:1fr}}

/* round 2 fixes (12 Nov): the stage takes about two thirds of the frame, with less padding, so screens read at a useful size */
@media(min-width:980px){.fp-panel{grid-template-columns:minmax(0,1fr) minmax(240px,300px);gap:28px;padding:16px 16px 16px 16px}}
@media(min-width:700px){.st-desk{padding:2.5%}}

/* ================= mobile and tablet pass (direction 42, 12 Nov 2026) ================= */
/* D15 dark theme: "Enlarge the screen" below kiosk and room steps sits on the page, so it takes the page's colours */
:root[data-theme="dark"] .fp-zoom .zoom-btn{background:var(--surface);border-color:var(--line-2);color:var(--muted)}
/* D5 flow index cards: never a lone card on phones and tablets (two across, an odd last card spans the row; nine sit three by three) */
@media(max-width:899px){.fx>:last-child:nth-child(odd){grid-column:1/-1}}
@media(min-width:700px) and (max-width:899px){
  .fx{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fx:is(.n3,.n6,.n9){grid-template-columns:repeat(3,minmax(0,1fr))}
  .fx:is(.n3,.n6,.n9)>:last-child:nth-child(odd){grid-column:auto}
}
