/* Retail Fast Track · demo guidata
   Inside the stage every size is in cqw (1cqw = 1% of the page width), so the demo keeps the
   report's proportions on any screen. 1 px of the 1931-px capture = 0.0518cqw. */
/* the deck's typeface for the index and the two bars (OFL, fonts/OFL-Montserrat.txt), subset to Latin */
@font-face { font-family: "Montserrat"; src: url(fonts/Montserrat-500.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/Montserrat-600.woff) format("woff"); font-weight: 600; font-display: swap; }
:root {
  color-scheme: dark;                                   /* a deliberately dark page: native controls follow */
  --brandfont: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --gold: #F8B400;
  --p1d: #F8B400; --p2d: #E1466A;                        /* the index rows on the dark bars (owner: blue, red and yellow) */
  --blue: #1F4CE3;          /* left panel blue, sampled from the report */
  --navy: #1B2533;
  --body: #39465A;
  --muted: #6B7787;
  --slicer: #ECECEE;
  --green: #4FA986;
  --canvas: #E5E8ED;
  --ink: #0B0F19;           /* presenter background */
  --ease: cubic-bezier(.4, 0, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--navy);
  font-family: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, sans-serif; }
button { font: inherit; }
.app { height: 100%; display: flex; flex-direction: column; }

/* ---------- stage ---------- */
.wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px 14px 0; }
.stage { position: relative; aspect-ratio: 1931 / 1086; width: min(100%, calc((100vh - 148px) * 1931 / 1086));
  background: var(--canvas); overflow: hidden; container-type: inline-size; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.layer { position: absolute; inset: 0; }
/* two slots per layer, each a whole page: its ground, its network drawn live (canvas), then the page image (a
   narrative page has a transparent ground). The incoming slot fades in ON TOP of the outgoing one, which stays whole
   until it is covered: two half-transparent pages over a coloured ground would mix into a violet flash (owner). */
/* each layer keeps its slots' z-index to itself: without a stacking context of its own (the dim layer has none on a
   full-page step, once its filter is off) the slots would paint above the caption and hide it */
.layer { isolation: isolate; }
.layer .slot { position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity 520ms var(--ease); }
.layer .slot.on { opacity: 1; }
.layer .slot.top { z-index: 2; }
.layer .slot.under { opacity: 1; transition: none; }
.layer .slot > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.dim { transition: filter 650ms var(--ease); }
/* owner: a darker veil rather than heavy shadows */
.focused .dim { filter: brightness(.22) saturate(.6); }
.lit { transition: filter 650ms var(--ease); }
.soft .dim, .soft .lit { filter: brightness(.45) saturate(.8); }   /* owner: clearly darker than the caption */
.intro-on .dim, .intro-on .lit { filter: brightness(.13) saturate(.3); }
/* owner: darker still where the opener's text sits, so the report's own colours never compete with it */
.iscrim { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 650ms var(--ease);
  background: linear-gradient(90deg, rgba(6,9,15,.62) 0%, rgba(6,9,15,.58) 50%, rgba(6,9,15,.22) 63%, rgba(6,9,15,.1) 100%); }
.intro-on .iscrim { opacity: 1; }
/* ---------- a report page's opener ---------- */
.intro { position: absolute; inset: 0; z-index: 6; display: none; align-items: center; padding: 0 0 0 7cqw; color: #fff;
  font-family: var(--brandfont); pointer-events: none; }
.intro .in-txt { width: 49cqw; }
.intro.on { display: grid; }
.in-eb { font-size: .95cqw; font-weight: 600; letter-spacing: .24cqw; text-transform: uppercase; color: #8FA8FF; }
.in-h { margin: .9cqw 0 0; font-size: 3.7cqw; line-height: 1.08; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.in-p { margin: 1.4cqw 0 0; max-width: 44cqw; font-size: 1.55cqw; line-height: 1.45; font-weight: 500; color: #D5DEFA; text-wrap: pretty; }
.in-stats { display: flex; gap: 2.4cqw; margin-top: 2.8cqw; }
.in-stats .st { padding-left: 1.1cqw; border-left: .16cqw solid rgba(255,255,255,.28); }
.in-stats .st:first-child { border-left-color: var(--blue); }
.in-stats b { display: block; font-size: 2.45cqw; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.in-stats span { display: block; margin-top: .4cqw; font-size: .98cqw; font-weight: 500; color: #AFC0EC; }
.in-map svg { display: block; width: 100%; height: auto; border-radius: .7cqw; background: #0F1626;
  box-shadow: inset 0 0 0 .08cqw rgba(255,255,255,.16); }
.in-parts { list-style: none; margin: 1.5cqw 0 0; padding: 0; display: grid; gap: .75cqw; counter-reset: part; }
.in-parts li { display: flex; align-items: center; gap: .9cqw; font-size: 1.1cqw; font-weight: 500; color: #E8EDFB; }
.in-parts i { flex: none; width: 1.75cqw; height: 1.75cqw; border-radius: 50%; display: grid; place-items: center; background: var(--blue);
  font-style: normal; font-size: .85cqw; font-weight: 600; color: #fff; }
.intro.on .in-txt > * { animation: in-rise 620ms var(--ease) both; }
.intro.on .in-h { animation-delay: 60ms; } .intro.on .in-p { animation-delay: 120ms; }
.intro.on .in-qh { animation-delay: 200ms; } .intro.on .in-qa { animation-delay: 260ms; }
/* the questions the page answers: a solid blue rule (owner: legends in full colour), the question, the indicator */
.in-qh { margin-top: 2.6cqw; font-size: .9cqw; font-weight: 600; letter-spacing: .2cqw; text-transform: uppercase; color: #8FA8FF; }
.in-qa { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3cqw 2.2cqw; margin-top: 1.1cqw; }
.in-qa .qa { padding-left: 1cqw; border-left: .22cqw solid var(--blue); }
.in-qa b { display: block; font-size: 1.2cqw; line-height: 1.3; font-weight: 600; color: #fff; text-wrap: balance; }
.in-qa span { display: flex; align-items: center; gap: .45cqw; margin-top: .4cqw; font-size: .95cqw; font-weight: 500; color: #AFC0EC; }
.in-qa svg { flex: none; width: .95cqw; height: .95cqw; fill: none; stroke: #5C86FF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes in-rise { from { opacity: 0; transform: translateY(.8cqw); } to { opacity: 1; transform: none; } }
.in-map .pt { opacity: 0; animation: in-fade 480ms var(--ease) forwards; }
@keyframes in-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .intro.on .in-txt > *, .intro.on .in-map, .in-map .pt { animation: none; opacity: 1; } }
.phone .intro { display: none !important; }

/* spotlight frames: shadow carriers sitting exactly on the card edge (no ring, no margin); a light lift only */
.frame { position: absolute; pointer-events: none; opacity: 0; transition: opacity 300ms; }
.frame.on { opacity: 1; box-shadow: 0 .25cqw .9cqw rgba(0,0,0,.3); }
/* owner: the section in front should feel alive -> it lifts a little (demo.js lift), a sheen passes once, its shadow breathes */
@keyframes breathe { 0%, 100% { box-shadow: 0 .25cqw .9cqw rgba(0,0,0,.3); } 50% { box-shadow: 0 .55cqw 1.7cqw rgba(0,0,0,.44); } }
/* the path: the unlit stations over the lit slide, uncovered behind a travelling marker */
.reveal { position: absolute; inset: 0; pointer-events: none; display: none; }
.reveal.on { display: block; }
.reveal img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rfx { position: absolute; inset: 0; pointer-events: none; }
.rfx .pill { position: absolute; width: 1.5cqw; height: 1.5cqw; margin: -.75cqw 0 0 -.75cqw; border-radius: 50%; background: #1F4CE3;
  box-shadow: 0 0 0 .3cqw #fff, 0 .25cqw .9cqw rgba(16, 40, 140, .45); }
/* the cover's name, at the place and size of the slide's own (deck px / 1920, 1080), so the slide keeps its layout */
.ctitle { position: absolute; inset: 0; pointer-events: none; display: none; color: #fff; font-family: var(--brandfont); }
.ctitle.on { display: block; }
.ctitle .ln { position: absolute; white-space: nowrap; }
.ctitle .l1 { left: 6.25%; top: 22.963%; font-size: 4.375cqw; line-height: 4.375cqw; font-weight: 500; letter-spacing: -.012em; }
.ctitle .l2 { left: 5.625%; top: 31.111%; font-size: 8.333cqw; line-height: 8.333cqw; font-weight: 600; letter-spacing: -.04em; }
.ctitle .mz { position: absolute; left: 0; top: -.25cqw; right: 0; bottom: -.25cqw; }
.ctitle .mz i { position: absolute; opacity: 0; }
.rfx .disc { position: absolute; border-radius: 50%; background-repeat: no-repeat; }
.rfx .burst { position: absolute; border-radius: 50%; border: .25cqw solid var(--bc); opacity: 0; }
/* links on the narrative pages (the slide is an image): transparent hot areas, a soft light on hover */
.links { position: absolute; inset: 0; pointer-events: none; }
.links a { position: absolute; pointer-events: auto; border-radius: .5cqw; transition: background 160ms; }
.links a:hover, .links a:focus-visible { background: rgba(255,255,255,.14); outline: none; }
.links a.pillish { border-radius: 3cqw; }
/* two signals travel round the lit section, as along the routes of the watermark network: a bright head, a soft tail */
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0;
  transition: opacity 500ms var(--ease); }
.orbit.on { opacity: 1; }
.orbit path { fill: none; stroke-linecap: round; animation: orbit var(--dur, 9s) linear infinite; animation-delay: var(--delay, 0s); }
.orbit .tl { stroke: var(--sc); stroke-opacity: .32; stroke-width: 2.4; stroke-dasharray: 70 930; stroke-dashoffset: 0; }
.orbit .hd { stroke: var(--sc); stroke-width: 3.4; stroke-dasharray: 14 986; stroke-dashoffset: -56;
  filter: drop-shadow(0 0 3px var(--sc)); }
.orbit .s1 { --sc: #FFFFFF; } .orbit .s2 { --sc: #E1466A; --delay: -3s; } .orbit .s3 { --sc: #5C86FF; --delay: -6s; }
.orbit .tw { opacity: 0; transform-box: fill-box; transform-origin: center; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 45%, 55% { opacity: .95; transform: scale(1.15); } }
.orbit .tl { animation-name: orbit-t; } .orbit .hd { animation-name: orbit-h; }
@keyframes orbit-t { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }
@keyframes orbit-h { from { stroke-dashoffset: -56; } to { stroke-dashoffset: -1056; } }
@media (prefers-reduced-motion: reduce) { .frame.on { animation: none; } .orbit { display: none; } }
.ring { position: absolute; pointer-events: none; opacity: 0; border: .12cqw solid rgba(255,255,255,.95); }
.ring.on { animation: ring 1.6s var(--ease) infinite; }
@keyframes ring { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(1.05); } }

/* clickable tiles on the Indice */
.tiles .tile { position: absolute; border: .12cqw solid var(--blue); border-radius: .42cqw; background: transparent;
  cursor: pointer; opacity: 0; transition: opacity 300ms, background 200ms; }
.tiles.on .tile { opacity: 1; }
.tiles .tile:hover { background: rgba(31,76,227,.16); }

/* zoom of a subsection, using the 2x capture */
.zoom { position: absolute; inset: 0; pointer-events: none; }
.zoom-bg { position: absolute; inset: 0; background: rgba(6,9,18,.74); opacity: 0; transition: opacity 500ms var(--ease); }
.zoom.on .zoom-bg { opacity: 1; }
.zoom img { position: absolute; opacity: 0; border-radius: .6cqw; background: #fff; padding: 2cqw 2.2cqw; object-fit: contain;
  box-shadow: 0 .4cqw 1.2cqw rgba(0,0,0,.4);
  transition: left 700ms var(--ease), top 700ms var(--ease), width 700ms var(--ease), height 700ms var(--ease), opacity 250ms; }
.zoom.on img { opacity: 1; }

/* ---------- caption card: built like a left-panel slicer (same radii, flat colours) ---------- */
/* owner: on some pages the caption box did not show while its pointer did. A drop-shadow filter makes the browser redraw
   the whole caption through an extra surface over the very large page images, and under GPU memory pressure it can skip
   that redraw. A plain box shadow on the box and a layer of its own for the caption keep it drawn reliably. */
.card { position: absolute; width: 30cqw; opacity: 0; transform: translateY(.4cqw); will-change: opacity, transform;
  transition: opacity 350ms var(--ease), transform 350ms var(--ease); }
.card.show { opacity: 1; transform: none; }
.card.narrow { width: 23cqw; }
.card.wide { width: 54cqw; }                 /* under a wide close-up: a short caption leaves the image room */
.card .cbox { position: relative; border-radius: .48cqw; overflow: hidden; background: #fff; padding: .36cqw;
  box-shadow: 0 .3cqw .9cqw rgba(0,0,0,.3); }
/* speech-bubble pointer: a white triangle growing out of the card edge toward the lit area */
.card .tail { position: absolute; display: none; background: #fff; }
.card .tail.on { display: block; }
.card .tail.l { width: .95cqw; height: 1.9cqw; left: -.9cqw; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.card .tail.r { width: .95cqw; height: 1.9cqw; right: -.9cqw; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.card .tail.t { width: 1.9cqw; height: .95cqw; top: -.9cqw; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.card .tail.b { width: 1.9cqw; height: .95cqw; bottom: -.9cqw; clip-path: polygon(0 0, 50% 100%, 100% 0); }
.card .head { background: var(--blue); color: #fff; padding: 1.05cqw 1.3cqw 1.1cqw; display: flex; gap: .9cqw; align-items: stretch;
  border-radius: .32cqw; }
.card .pill { flex: none; width: .62cqw; border-radius: .31cqw; background: #fff; }
.card .htext { flex: 1; min-width: 0; }
.card .eyebrow { font-size: .72cqw; font-weight: 700; letter-spacing: .14cqw; text-transform: uppercase; opacity: .82; }
.card h2 { margin: .35cqw 0 0; font-size: 1.5cqw; line-height: 1.15; font-weight: 700; }
.card .hicon { flex: none; width: 2.2cqw; height: 2.2cqw; color: #fff; opacity: .95; align-self: center; }
.card .hicon svg { width: 100%; height: 100%; stroke-width: 1.4; overflow: visible; }   /* strokes on the 24-px edge stay whole */
/* owner: never one word alone on a line: titles balanced, running text without orphans */
.card h2 { text-wrap: balance; }
.card .lead, .card .bullets li { text-wrap: pretty; }
.card .body { padding: .85cqw 1cqw .85cqw 2.5cqw; color: var(--body); font-size: .98cqw; line-height: 1.48; }
.card .lead { margin: 0; }
.card .lead:empty { display: none; }
.card b { color: var(--navy); font-weight: 600; }
.card .bullets { list-style: none; margin: .55cqw 0 0; padding: 0; }
.card .bullets:empty { display: none; }
.card .bullets li { position: relative; padding-left: 1.05cqw; margin-top: .3cqw; }
.card .bullets li::before { content: ""; position: absolute; left: 0; top: .52cqw; width: .42cqw; height: .42cqw;
  border-radius: .1cqw; background: var(--blue); }
/* the opener's page schematic and its numbered bullets: one solid blue, numbers in the map and in the list */
.card .cmap { display: none; margin: .1cqw 0 .9cqw; }
.card .cmap.on { display: block; }
.card .cmap svg { display: block; width: 100%; height: auto; }
.card .cmap text { font-family: var(--brandfont); font-size: 76px; font-weight: 700; }
.card .cmap .pt { opacity: 0; animation: in-fade 420ms var(--ease) forwards; }
.card .bullets.num { margin-top: 0; }
.card .bullets.num li { padding-left: 1.95cqw; margin-top: .45cqw; }
.card .bullets.num li::before { display: none; }
.card .bullets.num i { position: absolute; left: 0; top: .1cqw; width: 1.3cqw; height: 1.3cqw; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: .72cqw;
  font-weight: 700; line-height: 1; }
.static .card .cmap .pt { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .card .cmap .pt { animation: none; opacity: 1; } }
/* active filter, drawn like a report slicer */
.fchip { display: none; align-items: center; gap: .55cqw; background: var(--slicer); border-radius: .3cqw;
  padding: .42cqw .7cqw .42cqw .42cqw; margin-bottom: .7cqw; font-size: .86cqw; }
.fchip.on { display: inline-flex; }
.fchip .fpill { width: .42cqw; align-self: stretch; border-radius: .21cqw; background: var(--green); }
.fchip .fl { color: var(--muted); }
.fchip .fv { color: var(--navy); font-weight: 600; }
.tag { display: none; float: right; margin: -.2cqw -.4cqw .4cqw .6cqw; padding: .18cqw .55cqw; border-radius: .25cqw;
  background: #FFF4D6; color: #7A5600; font-size: .72cqw; font-weight: 600; }
.tag.on { display: block; }

/* the Metrika guide (brand/guide of the templates): white body over the dark veil, its small icon in the report's red */
.mascot { position: absolute; width: 7.4cqw; opacity: 0; pointer-events: none; transition: opacity 400ms 250ms;
  color: #fff; --shadow: rgba(0,0,0,.38); --check: #E1466A; }
.mascot svg { display: block; width: 100%; height: auto; }
.mascot.on { opacity: 1; }

/* tour progress: a thin bar at the foot of the card (only while a tour runs or is paused) */
.card .prog { display: none; height: .2cqw; margin: 0 1cqw .55cqw 2.5cqw; border-radius: .1cqw; background: #E3E8F3; overflow: hidden; }
.tour .card .prog { display: block; }
.card .prog i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* ---------- section bar (top): identical on every page, the index always one click away ---------- */
.secbar { flex: none; height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 22px; color: #E8ECF4;
  font-family: var(--brandfont); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { flex: none; width: 96px; } .brand svg { display: block; width: 100%; height: auto; }
.secbar button { font-family: var(--brandfont); cursor: pointer; }
.hubbtn { flex: none; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px 0 14px; border-radius: 8px; border: 0;
  background: #fff; color: var(--blue); font-weight: 600; font-size: 15px; }
.hubbtn svg { width: 18px; height: 18px; fill: currentColor; }
.hubbtn:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.onhub .hubbtn { background: var(--blue); color: #fff; }
.tabs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 8px; border: 0;
  background: transparent; color: rgba(232,236,244,.8); font-weight: 500; font-size: 14px; white-space: nowrap; }
.tab:hover { background: rgba(255,255,255,.08); color: #fff; }
.tab .tcode { font-weight: 600; font-size: 12.5px; color: var(--pc, #fff); }
.tab.p1 { --pc: var(--p1d); } .tab.p2 { --pc: var(--p2d); }
.tab.gs { margin-left: 14px; position: relative; }                                   /* a part of the report starts */
.tab.gs::before { content: ""; position: absolute; left: -9px; top: 11px; bottom: 11px; width: 1px; background: rgba(255,255,255,.16); }
.tab.cur { background: var(--blue); color: #fff; font-weight: 600; }
.tab.cur .tcode { color: #fff; }
.tourbtn { flex: none; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px 0 14px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-weight: 600; font-size: 14px; }
.tourbtn svg { width: 17px; height: 17px; fill: currentColor; }
.tourbtn .i-pause { display: none; }
.tourbtn:hover { border-color: #fff; }
.tourbtn.playing .i-play { display: none; } .tourbtn.playing .i-pause { display: block; }
.tourbtn.paused { background: #fff; color: var(--blue); border-color: #fff; animation: callout 2.4s var(--ease) infinite; }
@keyframes callout { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } }

/* ---------- step bar (bottom): where you are in the section, the filters, back and forward ---------- */
.bar { position: relative; height: 72px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 22px; color: #E8ECF4;
  font: 500 13px var(--brandfont); }
.chapter { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.cnum { flex: none; min-width: 40px; height: 40px; padding: 0 7px; border-radius: 8px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.ctext { display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }
.ctext b { font-size: 14.5px; font-weight: 600; }
.ctext span { opacity: .66; }
.dots { display: flex; gap: 6px; }
.dots i { position: relative; overflow: hidden; width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2);
  transition: background 300ms; cursor: pointer; }
.dots i.done { background: rgba(124,156,255,.75); }
.dots i.on { background: #fff; }
.tour .dots i.on { background: rgba(255,255,255,.3); }
.dots i b { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.presets { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.plabel { opacity: .66; margin-right: 4px; }
.chip { font: 500 13px var(--brandfont); border: 1px solid rgba(255,255,255,.32); background: transparent; color: #E8ECF4;
  height: 34px; padding: 0 13px; border-radius: 7px; cursor: pointer; }
.chip:hover:not(:disabled) { border-color: rgba(255,255,255,.75); }
.chip.on { background: #fff; color: var(--blue); border-color: #fff; font-weight: 600; }
.chip:disabled { opacity: .28; cursor: default; }
.nav { display: flex; gap: 8px; }
.nav button { width: 44px; height: 42px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06);
  color: #fff; cursor: pointer; display: grid; place-items: center; }
.nav button:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.nav button:disabled { opacity: .3; cursor: default; }
.nav button.primary { width: 56px; background: var(--blue); border-color: var(--blue); }
.nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.onhub .dots, .onhub .presets { visibility: hidden; }
.resume { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 14px; border: 0; border-radius: 8px;
  background: #fff; color: var(--blue); font: 600 14px var(--brandfont); cursor: pointer; white-space: nowrap;
  animation: callout 2.4s var(--ease) infinite; }
.resume svg { width: 16px; height: 16px; fill: currentColor; }
.tpaused:not(.onhub) .resume { display: inline-flex; }

/* narrower windows: section names only on the current tab, codes elsewhere */
@media (max-width: 1500px) { .tab:not(.cur):not(.named) .tname { display: none; } }
@media (max-width: 1100px) { .brand { display: none; } .plabel { display: none; } .chapter { min-width: 0; } .ctext span { display: none; } }

/* ---------- the index (first screen and home): the deck's blue ground, the seven topics as cards ---------- */
.hub { position: absolute; inset: 0; z-index: 20; color: #fff; font-family: var(--brandfont); opacity: 0; visibility: hidden;
  transition: opacity 420ms var(--ease), visibility 0s linear 420ms; }
.hub.on { opacity: 1; visibility: visible; transition: opacity 420ms var(--ease); }
.hub { background: var(--blue); }
.hub-net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hub button { font-family: var(--brandfont); cursor: pointer; }
.hub-hd { position: absolute; left: 5cqw; right: 5cqw; top: 2.55cqw; display: flex; justify-content: space-between;
  align-items: center; font-size: .94cqw; font-weight: 500; }
.hub-hd b { font-weight: 600; }
.hub-hd i { display: inline-block; width: .06cqw; height: .95cqw; background: rgba(255,255,255,.5); margin: 0 .75cqw; vertical-align: -.12cqw; }
.hub-hd em { display: inline-block; width: .5cqw; height: .5cqw; border-radius: 50%; background: var(--gold); margin-right: .65cqw; vertical-align: .08cqw; }
.hub-hd .hb-r { color: #DCE4FF; } .hub-hd .hb-r b { color: #fff; }
.hub-hero { position: absolute; left: 5cqw; top: 6.6cqw; width: 60cqw; }
.hub-hero h1 { margin: 0; font-size: 3.4cqw; line-height: 1.1; font-weight: 600; letter-spacing: -.022em; text-wrap: balance; }
.hub-hero p { margin: 1.1cqw 0 0; font-size: 1.24cqw; line-height: 1.45; font-weight: 500; color: #F3F6FF; max-width: 58cqw; text-wrap: balance; }
.hub-cta { display: flex; gap: 1cqw; margin-top: 1.7cqw; }
.cta-play, .cta-ghost { position: relative; display: inline-flex; align-items: center; gap: .7cqw; height: 3.3cqw; padding: 0 1.8cqw 0 1.45cqw;
  border-radius: .55cqw; font-weight: 600; font-size: 1.15cqw; overflow: hidden; transition: box-shadow 200ms, background 200ms; }
.cta-play { border: 0; background: #fff; color: var(--blue); }
.cta-play svg { width: 1.35cqw; height: 1.35cqw; fill: currentColor; }
.cta-play small { font-size: .9cqw; font-weight: 500; color: #5B6B8C; margin-left: .2cqw; }
.cta-play:hover { box-shadow: 0 0 0 .3cqw rgba(255,255,255,.28); }
.cta-count { position: absolute; left: 0; bottom: 0; width: 100%; height: .24cqw; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.cta-ghost { border: .12cqw solid rgba(255,255,255,.9); background: transparent; color: #fff; padding: 0 1.45cqw 0 1.8cqw; }
.cta-ghost svg { width: 1.25cqw; height: 1.25cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta-ghost:hover { background: rgba(255,255,255,.12); }
.hub-guide { position: absolute; left: 80cqw; top: 6cqw; width: 10cqw; color: #fff; --shadow: rgba(10,26,92,.35); --check: var(--gold); }
.hub-guide svg { display: block; width: 100%; height: auto; }
/* two rows of topics (owner: no page snapshots; acquisti, magazzino and cassa together): translucent cards over the
   moving network, an icon disc in the row's colour (yellow, red), the code and name, the question, an arrow */
.hub-rows { position: absolute; left: 5cqw; right: 5cqw; top: 29.2cqw; }      /* a clear band under the buttons */
.hub-row + .hub-row { margin-top: 1.8cqw; }
.hub-row.g1 { --acc: var(--gold); --acc-ink: #202022; } .hub-row.g2 { --acc: #E1466A; --acc-ink: #fff; }
.hr-label { display: flex; align-items: center; gap: .75cqw; margin-bottom: .95cqw; font-size: .9cqw; font-weight: 600;
  letter-spacing: .12cqw; text-transform: uppercase; color: #fff; white-space: nowrap; }
.hr-label i { flex: none; width: .6cqw; height: .6cqw; border-radius: 50%; background: var(--acc); }
.hr-label span { color: #DCE4FF; font-weight: 500; letter-spacing: .06cqw; text-transform: none; }
.hr-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25cqw; }
.tcard { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1cqw; min-height: 7.6cqw; padding: 1cqw 1.2cqw;
  border: 0; border-radius: .75cqw; background: rgba(16, 44, 170, .9); color: #fff; text-align: left;
  box-shadow: inset 0 .07cqw 0 rgba(255,255,255,.14), 0 .55cqw 1.6cqw rgba(5, 16, 70, .26);
  transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.tcard:hover, .tcard:focus-visible { background: #fff; color: var(--blue); transform: translateY(-.2cqw); outline: none;
  box-shadow: 0 .8cqw 2.2cqw rgba(5, 16, 70, .32); }
.tcard:hover .tc-q, .tcard:focus-visible .tc-q { color: #4A5A80; }
.tcard:hover .tc-code, .tcard:focus-visible .tc-code { color: var(--blue); }
.tc-ico { width: 3.1cqw; height: 3.1cqw; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); }
.tc-ico svg { width: 1.6cqw; height: 1.6cqw; stroke-width: 1.6; overflow: visible; }
.tc-txt { min-width: 0; }
.tc-top { display: flex; align-items: baseline; gap: .6cqw; }
.tc-code { font-size: .95cqw; font-weight: 600; color: rgba(255,255,255,.75); }
.tc-title { font-size: 1.45cqw; line-height: 1.15; font-weight: 600; white-space: nowrap; }
.tc-q { display: block; margin-top: .3cqw; font-size: 1cqw; line-height: 1.36; font-weight: 500; color: #E3E9FF; text-wrap: balance; }
.tc-arr { width: 1.45cqw; height: 1.45cqw; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  opacity: .75; transition: transform 200ms var(--ease), opacity 200ms; }
.tcard:hover .tc-arr, .tcard:focus-visible .tc-arr { transform: translateX(.3cqw); opacity: 1; }
/* owner: the closing card in yellow, the call to action, so nobody takes it for the place to start (white read as the
   first card); dark ink on it for contrast */
.tcard.cta { background: var(--gold); border-color: var(--gold); color: #202022; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tcard.cta:hover { background: var(--gold); box-shadow: 0 0 0 .3cqw rgba(248,180,0,.35); }
.tcard.cta .tc-q { color: #3A3320; } .tcard.cta .tc-code { color: #202022; }
.tcard.cta .tc-ico { --acc: #202022; --acc-ink: var(--gold); }

/* full screen: the stage fills the screen and both bars float, hiding when idle */
:fullscreen .wrap { padding: 0; }
:fullscreen .stage { width: min(100vw, calc(100vh * 1931 / 1086)); box-shadow: none; }
:fullscreen .bar, :fullscreen .secbar { position: fixed; left: 0; right: 0; z-index: 30; background: rgba(11,15,25,.92); transition: opacity 400ms; }
:fullscreen .bar { bottom: 0; } :fullscreen .secbar { top: 0; }
:fullscreen .app.idle .bar, :fullscreen .app.idle .secbar { opacity: 0; }
:fullscreen .app.idle { cursor: none; }

/* static render mode (screenshots): no motion */
.static *, .static *::before, .static *::after { transition: none !important; animation: none !important; }

/* ---------- phones (up to 820 px wide, or 520 px tall): the page in a window with a camera on the lit area, the
   caption under it as plain text, the index as a scrolling page. Elements moved out of the stage size in px. ---------- */
.main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mcap { display: none; }
.phone .secbar { height: 52px; gap: 8px; padding: 0 10px; }
.phone .brand { display: none; }
.phone .hubbtn { height: 38px; padding: 0 12px 0 10px; font-size: 14px; gap: 7px; }
.phone .hubbtn svg { width: 16px; height: 16px; }
.phone .tab { height: 36px; padding: 0 9px; font-size: 13px; gap: 6px; }
.phone .tab.gs { margin-left: 8px; } .phone .tab.gs::before { left: -5px; }
.phone .tab:not(.cur):not(.named) .tname { display: none; }
.phone .tourbtn { height: 38px; padding: 0 11px; }
.phone #tourLbl { display: none; }
.phone .wrap { flex: none; display: block; position: relative; padding: 0; height: min(72vw, 42vh); overflow: hidden; background: #070A12; }
.phone .stage { width: 100%; box-shadow: none; transform-origin: 0 0; transition: transform 650ms var(--ease); }
.phone .mcap { display: block; flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 16px; }
.phone .card { position: relative; width: auto; filter: none; transform: none; transition: opacity 300ms var(--ease); }
.phone .card .tail { display: none !important; }
.phone .card .cbox { border-radius: 10px; padding: 5px; }
.phone .card .head { padding: 14px 16px 15px; gap: 12px; border-radius: 7px; }
.phone .card .pill { width: 6px; border-radius: 3px; }
.phone .card .eyebrow { font-size: 11px; letter-spacing: 1.6px; }
.phone .card h2 { margin-top: 5px; font-size: 20px; }
.phone .card .hicon { width: 28px; height: 28px; }
.phone .card .body { padding: 12px 14px 12px 22px; font-size: 15px; line-height: 1.5; }
.phone .card .bullets { margin-top: 8px; }
.phone .card .bullets li { padding-left: 15px; margin-top: 5px; }
.phone .card .bullets li::before { top: 8px; width: 6px; height: 6px; border-radius: 1.5px; }
.phone .fchip { font-size: 13px; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 5px; margin-bottom: 10px; }
.phone .fchip .fpill { width: 6px; border-radius: 3px; }
.phone .tag { font-size: 11px; padding: 3px 8px; border-radius: 4px; margin: -2px -4px 6px 8px; }
.phone .card .prog { height: 3px; margin: 0 14px 8px 22px; border-radius: 2px; }
.phone .mascot { display: none; }
.phone .bar { height: auto; flex-wrap: wrap; gap: 8px 10px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.phone .chapter { order: 1; flex: 1; min-width: 0; gap: 9px; }
.phone .cnum { min-width: 34px; height: 34px; font-size: 12px; }
.phone .ctext { min-width: 0; }
.phone .ctext b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .ctext span { display: block; font-size: 12px; }
.phone .nav { order: 2; }
.phone .resume { order: 2; height: 42px; padding: 0 14px 0 12px; font-size: 13px; }
.phone #fs { display: none; }
.phone .nav button { width: 46px; height: 42px; }
.phone .nav button.primary { width: 60px; }
.phone .dots { order: 3; width: 100%; justify-content: center; gap: 5px; }
.phone .dots i { width: 16px; height: 4px; }
.phone .presets { order: 4; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.phone .presets::-webkit-scrollbar { display: none; }
.phone .presets:not(:has(.chip:enabled)) { display: none; }
.phone .plabel { display: none; }
.phone .chip { flex: none; height: 32px; padding: 0 11px; font-size: 12.5px; }
/* the index on a phone: a page of its own that scrolls, the network fixed behind it */
.phone .hub { position: fixed; z-index: 40; top: 52px; left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain; }
.phone .hub-net { position: fixed; top: 52px; left: 0; width: 100%; height: calc(100% - 52px); }
.phone .hub-hd { position: relative; left: auto; right: auto; top: auto; padding: 16px 18px 0; font-size: 12px; }
.phone .hub-hd .hb-r { display: none; }
.phone .hub-hd i { width: 1px; height: 12px; margin: 0 8px; vertical-align: -1px; }
.phone .hub-hero { position: relative; left: auto; top: auto; width: auto; padding: 18px 18px 4px; }
.phone .hub-hero h1 { font-size: 31px; line-height: 1.12; }
.phone .hub-hero p { margin-top: 12px; font-size: 16px; max-width: none; }
.phone .hub-cta { flex-direction: column; gap: 10px; margin-top: 18px; }
.phone .cta-play, .phone .cta-ghost { justify-content: center; height: 50px; padding: 0 18px; gap: 10px; border-radius: 9px; font-size: 16px; }
.phone .cta-play svg, .phone .cta-ghost svg { width: 18px; height: 18px; }
.phone .cta-play small { font-size: 13px; }
.phone .cta-ghost { border-width: 1.5px; }
.phone .cta-count { height: 3px; }
.phone .hub-guide { display: none; }
.phone .hub-rows { position: relative; left: auto; right: auto; top: auto; padding: 20px 14px 28px; }
.phone .hub-row + .hub-row { margin-top: 22px; }
.phone .hr-label { gap: 8px; margin-bottom: 10px; font-size: 12px; letter-spacing: 1.4px; }
.phone .hr-label i { width: 8px; height: 8px; }
.phone .hr-label span { display: none; }
.phone .hr-cards { grid-template-columns: 1fr; gap: 10px; }
.phone .tcard { min-height: 0; gap: 14px; padding: 14px; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 18px rgba(5, 16, 70, .26); }
.phone .tc-ico { width: 46px; height: 46px; }
.phone .tc-ico svg { width: 24px; height: 24px; }
.phone .tc-top { gap: 8px; }
.phone .tc-code { font-size: 13px; }
.phone .tc-title { font-size: 19px; }
.phone .tc-q { margin-top: 4px; font-size: 14.5px; }
.phone .tc-arr { width: 20px; height: 20px; }
.phone.onhub .main, .phone.onhub .bar { display: none; }
/* a phone held sideways: the page window and the caption side by side */
.phone.land .main { flex-direction: row; }
.phone.land .wrap { flex: 1.4; height: auto; }
.phone.land .mcap { flex: 1; padding: 8px 10px; }
.phone.land .card h2 { font-size: 17px; }
.phone.land .card .body { font-size: 13.5px; }
.phone.land .bar { flex-wrap: nowrap; padding: 4px 10px; }
.phone.land .dots { order: 2; width: auto; } .phone.land .nav { order: 4; } .phone.land .presets { order: 3; width: auto; flex: 1; }
.phone.land .ctext span { display: none; }

/* ---------- filter menu (bottom bar): one button, a grouped list that opens upward ---------- */
.fmenu { position: relative; margin-left: auto; }
.fbtn { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.06); color: #E8ECF4; font: 500 13px var(--brandfont); cursor: pointer; white-space: nowrap; }
.fbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fbtn .fbl { opacity: .7; }
.fbtn b { font-weight: 600; color: #fff; }
.fbtn .fcar { width: 14px; height: 14px; opacity: .7; transition: transform 200ms var(--ease); }
.fbtn:hover:not(:disabled) { border-color: rgba(255,255,255,.75); }
.fbtn:disabled { opacity: .4; cursor: default; }
.fmenu.open .fbtn { background: #fff; color: var(--blue); border-color: #fff; }
.fmenu.open .fbtn b { color: var(--blue); }
.fmenu.open .fcar { transform: rotate(180deg); }
.fpop { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 50; width: 290px; padding: 8px; border-radius: 12px; background: #fff;
  color: var(--navy); box-shadow: 0 14px 40px rgba(0,0,0,.45); display: none; font-family: var(--brandfont); }
.fmenu.open .fpop { display: block; }
.fgrp + .fgrp { border-top: 1px solid #E6EAF2; margin-top: 4px; padding-top: 4px; }
.fgh { padding: 7px 10px 3px; font-size: 10.5px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: #6B7787; }
.fopt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent;
  color: var(--navy); font: 500 14px var(--brandfont); text-align: left; cursor: pointer; }
.fopt i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #B5BFCE; box-sizing: border-box; }
.fopt.on i { border: 4px solid var(--blue); }
.fopt span { flex: 1; }
.fopt kbd { font: 500 11px var(--brandfont); color: #8A94A3; border: 1px solid #DCE2EC; border-radius: 4px; padding: 1px 5px; }
.fopt:hover:not(:disabled) { background: #EEF2FB; }
.fopt.on { color: var(--blue); font-weight: 600; }
.fopt:disabled { opacity: .35; cursor: default; }
.onhub .fmenu { visibility: hidden; }
.phone .fmenu { order: 4; width: 100%; margin-left: 0; }
.phone .fbtn { width: 100%; }
.phone .fbtn b { flex: 1; text-align: left; }
.phone .fpop { left: 0; right: 0; width: auto; }
.phone.land .fmenu { order: 3; width: auto; flex: 1; }
.phone.land .fbtn { width: auto; }
