/* Allver case study: page-specific designs on top of the shared kit (assets/case-study/case.css), which keeps the
   site's type and section styles. The page borrows from the product itself: phones standing on a market floor with
   shop stories around them, onboarding read in Azerbaijani and English, a home feed you can scroll, a deck of real
   product cards with callouts, a camera that shutters between posting steps, a market hall drawn in code with the
   route to the stall, a trader profile that assembles from its parts, and a theme switch that floods the screen. */
.av-case { --mn-accent:#5a9fe0; --mn-green:#5cd56f; --mn-blue:#3b85ce; --mn-pink:#3c9ca8; --mn-violet:#06386b; --av-blue:#0a66c2; --av-navy:#06386b; --av-teal:#3c9ca8; --av-green:#5cd56f; --av-orange:#e07a07; --av-campaign:#08b124;
  --av-grad:linear-gradient(120deg,#5a9fe0,#3c9ca8 55%,#5cd56f); --av-line:rgba(255,255,255,.1); }
/* Screens fill their frame edge to edge from the top; the frame's own radius does the rounding. */
.av-case .mn-screen > img { height:100%; object-fit:cover; object-position:top; }
.av-case .mn-screen { background:#fff; }
.av-case .mn-screen > img.mn-autoscroll { height:auto; }
/* Several screens in one phone: only the current one shows. */
.av-swap > img { opacity:0; scale:1.03; transition:opacity .6s var(--mn-ease), scale .9s var(--mn-ease); }
.av-swap > img.is-on { opacity:1; scale:1; }

/* Step buttons shared by the onboarding, studio and route sections: rounded rectangles, the current one lit. */
.av-case [role="tab"] { all:unset; box-sizing:border-box; cursor:pointer; display:grid; gap:4px; padding:16px 18px; border-radius:14px; border:1px solid var(--av-line); background:rgba(255,255,255,.03);
  transition:background-color .4s ease, border-color .4s ease, translate .4s var(--mn-ease); }
.av-case [role="tab"] b { font:700 17px/1.3 Satoshi,Inter,sans-serif; color:rgba(255,255,255,.7); transition:color .4s ease; }
.av-case [role="tab"] span, .av-case [role="tab"] small { font-size:14.5px; line-height:1.45; color:var(--mn-mute); }
.av-case [role="tab"].is-on { border-color:color-mix(in srgb, var(--av-blue) 70%, transparent); background:linear-gradient(120deg,color-mix(in srgb, var(--av-blue) 26%, transparent),color-mix(in srgb, var(--av-green) 10%, transparent)); }
.av-case [role="tab"].is-on b { color:#fff; }
.av-case [role="tab"]:focus-visible { outline:2px solid #fff; outline-offset:3px; }
@media (hover:hover) and (pointer:fine) { .av-case [role="tab"]:not(.is-on):hover { border-color:rgba(255,255,255,.24); background:rgba(255,255,255,.06); } }

/* ── Hero ── */
.av-hero { position:relative; padding:clamp(30px, 5vw, 70px) 0 30px; overflow:clip; }
.av-hero-glow { position:absolute; inset:-10% 0 0; pointer-events:none; background:radial-gradient(40% 46% at 72% 52%,rgba(59,133,206,.4),transparent 70%),radial-gradient(26% 30% at 86% 82%,rgba(92,213,111,.18),transparent 70%),radial-gradient(30% 34% at 14% 80%,rgba(6,56,107,.5),transparent 70%);
  -webkit-mask-image:linear-gradient(transparent,#000 12%,#000 78%,transparent); mask-image:linear-gradient(transparent,#000 12%,#000 78%,transparent); }
.av-hero-grid { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:40px; align-items:center; }
.av-title .mn-w > span { background:linear-gradient(100deg,#fff 30%,#9fd0ff 60%,#7fe39a); -webkit-background-clip:text; background-clip:text; color:transparent; }
.av-hero-stage { position:relative; height:640px; perspective:1400px; }
/* The market floor: stalls in Allver's map navy, lit in a wave, one of them the green target. */
.av-floor { position:absolute; left:50%; top:62%; width:620px; translate:-50% -50%; transform:rotateX(62deg) rotateZ(-32deg); transform-style:preserve-3d; pointer-events:none; }
.av-floor-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:14px 12px; }
.av-floor-grid i { aspect-ratio:1.7; border-radius:8px; background:var(--av-navy); box-shadow:inset 0 0 0 1px rgba(90,159,224,.25); opacity:0; translate:0 18px;
  transition:opacity .7s var(--mn-ease), translate .8s var(--mn-ease); transition-delay:calc(.2s + var(--i) * 70ms); }
.av-hero.is-in .av-floor-grid i { opacity:.85; translate:0 0; animation:av-stall 6s ease-in-out calc(1.4s + var(--i) * .22s) infinite; }
.av-floor-grid i.is-target { background:var(--av-green); box-shadow:0 0 40px rgba(92,213,111,.7), inset 0 0 0 1px rgba(255,255,255,.4); }
.av-hero.is-in .av-floor-grid i.is-target { opacity:1; animation:none; }
@keyframes av-stall { 0%, 70%, 100% { background-color:var(--av-navy); } 80% { background-color:#1f5fa6; } }
.av-hero-back { --w:210px; position:absolute; left:6%; top:40px; z-index:1; rotate:-7deg; opacity:0; translate:0 30px; filter:brightness(.72) saturate(.9); transition:opacity .9s var(--mn-ease) .35s, translate 1s var(--mn-ease) .35s; }
.av-hero-phone { --w:270px; position:absolute; right:12%; top:10px; z-index:2; opacity:0; translate:0 40px; transition:opacity .9s var(--mn-ease) .55s, translate 1s var(--mn-ease) .55s; }
.av-hero-phone .mn-phone-frame { box-shadow:0 60px 110px -40px rgba(59,133,206,.75); }
.av-hero.is-in :is(.av-hero-back, .av-hero-phone) { opacity:1; translate:0 0; }
/* Shop stories (real avatars from the stories row) drift around the phones. */
.av-orbit { position:absolute; left:var(--x); top:var(--y); z-index:3; width:84px; height:84px; border-radius:50%; box-shadow:0 18px 40px -14px rgba(0,0,0,.9);
  opacity:0; scale:.5; transition:opacity .6s ease, scale .8s cubic-bezier(.34,1.56,.64,1); transition-delay:calc(.9s + var(--i) * .18s); }
.av-hero.is-in .av-orbit { opacity:1; scale:1; animation:av-drift 6s ease-in-out calc(1.8s + var(--i) * .7s) infinite alternate; }
@keyframes av-drift { to { translate:0 -14px; rotate:4deg; } }

/* ── Stats in Allver's blue-to-green ── */
.av-stats { margin-top:clamp(40px, 5vw, 64px); }

/* ── Onboarding promises ── */
.av-promise { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:56px; align-items:center; }
.av-promise-list { display:grid; gap:10px; margin-top:34px; }
.av-promise-list [role="tab"] b { font-size:19px; }
.av-promise-stage { position:relative; height:640px; display:grid; place-items:center; }
.av-promise-phone { --w:290px; position:relative; z-index:1; }
/* The onboarding art sits in a large circle; the page echoes it with three rings that breathe around the phone. */
.av-rings { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; }
.av-rings i { grid-area:1 / 1; width:min(560px, 100%); aspect-ratio:1; border-radius:50%; border:1px solid rgba(90,159,224,.22); background:radial-gradient(closest-side,rgba(59,133,206,.12),transparent); animation:av-ring 7s ease-in-out infinite; }
.av-rings i:nth-child(2) { width:min(440px, 80%); animation-delay:-2.3s; }
.av-rings i:nth-child(3) { width:min(320px, 60%); animation-delay:-4.6s; border-color:rgba(92,213,111,.25); }
@keyframes av-ring { 50% { scale:1.06; opacity:.6; } }

/* ── Home feed ── */
.av-feed-stage { margin-top:40px; }
/* Tabs in the app's own style: text with an underline under the current one. */
.av-feed-tabs { display:flex; justify-content:center; gap:clamp(18px, 4vw, 48px); border-bottom:1px solid var(--av-line); }
.av-case .av-feed-tabs [role="tab"] { border:0; border-radius:12px 12px 0 0; background:none; padding:12px 6px 16px; position:relative; text-align:center; justify-items:center; gap:2px; }
.av-case .av-feed-tabs [role="tab"]::after { content:""; position:absolute; left:6px; right:6px; bottom:-1px; height:2px; border-radius:2px; background:#fff; scale:0 1; transition:scale .5s var(--mn-ease); }
.av-case .av-feed-tabs [role="tab"].is-on { background:none; }
.av-case .av-feed-tabs [role="tab"].is-on::after { scale:1 1; }
.av-case .av-feed-tabs [role="tab"] b { font-size:clamp(16px, 1.6vw, 20px); }
.av-feed-body { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:48px; align-items:center; margin-top:44px; }
.av-feed-phone { --w:310px; }
.av-feed-phone .mn-phone-frame { box-shadow:0 60px 110px -50px rgba(59,133,206,.6); }
.av-scroll { position:absolute; inset:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none; opacity:0; visibility:hidden; transition:opacity .5s var(--mn-ease), visibility 0s .5s; }
.av-scroll::-webkit-scrollbar { display:none; }
.av-scroll.is-on { opacity:1; visibility:visible; transition:opacity .5s var(--mn-ease), visibility 0s; }
.av-scroll img { display:block; width:100%; height:auto; }
.av-scroll:focus-visible { outline:2px solid #fff; outline-offset:-4px; }
.av-feed-note { margin:0; display:grid; gap:6px; max-width:280px; }
.av-feed-note--l { justify-self:end; text-align:right; }
.av-feed-note b { font:700 20px/1.25 Satoshi,Inter,sans-serif; }
.av-feed-note span { color:var(--mn-mute); line-height:1.55; }
.av-feed-note.is-swap { animation:av-swap .5s var(--mn-ease); }
@keyframes av-swap { from { opacity:0; translate:0 10px; } }
.av-feed-note--r b { background:var(--av-grad); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* ── Product card deck ── */
.av-deck-wrap { --cw:300px; position:relative; display:grid; grid-template-columns:minmax(0,1fr) var(--cw) minmax(0,1fr); gap:0 36px; margin-top:56px; }
.av-deck { position:relative; width:var(--cw); aspect-ratio:334/610; }
.av-deck-cards { position:absolute; inset:0; }
.av-card { position:absolute; inset:0; width:100%; height:100%; border-radius:14px; user-select:none; -webkit-user-drag:none; touch-action:pan-y; box-shadow:0 30px 60px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.08);
  transform-origin:50% 0; transform:translateY(calc(var(--pos,0) * -13px)) scale(calc(1 - var(--pos,0) * .05)) rotate(calc(var(--pos,0) * 1.2deg)); z-index:calc(10 - var(--pos,0)); filter:brightness(calc(1 - var(--pos,0) * .22));
  transition:transform .7s var(--mn-ease), opacity .7s ease, filter .7s ease; }
.av-card.is-top { cursor:grab; }
.av-card.is-drag { transition:none; cursor:grabbing; }
.av-card.is-out { transform:translate(calc(var(--dir,1) * 130%), -6%) rotate(calc(var(--dir,1) * 22deg)); opacity:0; transition:transform .55s cubic-bezier(.5,0,.75,0), opacity .5s ease .1s; }
/* Markers on the card and the callouts beside it share the same height (--y, a share of the card). */
.av-mark { position:absolute; z-index:20; left:var(--x); top:var(--y); width:16px; height:16px; margin:-8px 0 0 -8px; border-radius:50%; border:2px solid #fff; background:var(--av-blue); box-shadow:0 0 0 4px rgba(59,133,206,.35);
  opacity:0; scale:.3; transition:opacity .4s ease, scale .6s cubic-bezier(.34,1.56,.64,1); transition-delay:calc(.5s + var(--i) * .16s); pointer-events:none; }
.av-deck-wrap.is-in .av-mark { opacity:1; scale:1; }
.av-callouts { position:relative; list-style:none; margin:0; padding:0; }
.av-callouts li { position:absolute; top:var(--y); left:0; right:0; translate:0 -50%; display:grid; gap:2px;
  opacity:0; transition:opacity .6s ease, translate .7s var(--mn-ease); transition-delay:calc(.55s + var(--i) * .16s); }
.av-callouts--l li { text-align:right; padding-right:26px; translate:-16px -50%; }
.av-callouts--r li { padding-left:26px; translate:16px -50%; }
.av-deck-wrap.is-in .av-callouts li { opacity:1; translate:0 -50%; }
.av-callouts li::after { content:""; position:absolute; top:50%; width:calc(18px + 36px); height:1px; background:linear-gradient(90deg,rgba(255,255,255,.55),rgba(255,255,255,.15)); }
.av-callouts--l li::after { right:-36px; }
.av-callouts--r li::after { left:-36px; background:linear-gradient(270deg,rgba(255,255,255,.55),rgba(255,255,255,.15)); }
.av-callouts b { font:700 17px/1.3 Satoshi,Inter,sans-serif; }
.av-callouts span { color:var(--mn-mute); font-size:15px; line-height:1.45; }
[data-av-badge].is-swap { animation:av-swap .45s var(--mn-ease); }
.av-deck-next { all:unset; box-sizing:border-box; grid-column:2; justify-self:center; margin-top:34px; display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius:12px; cursor:pointer;
  font:600 15px/1 Satoshi,Inter,sans-serif; color:#fff; background:var(--av-blue); box-shadow:0 18px 36px -18px rgba(59,133,206,.9); transition:translate .3s var(--mn-ease), background-color .3s ease; }
.av-deck-next svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.av-deck-next:hover { translate:0 -2px; background:#4a93db; }
.av-deck-next:focus-visible { outline:2px solid #fff; outline-offset:3px; }

/* ── Trader studio ── */
.av-studio { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:56px; align-items:center; }
.av-steps { display:grid; gap:10px; margin-top:34px; max-width:520px; }
.av-studio-stage { position:relative; display:grid; justify-items:center; gap:18px; }
.av-studio-phone { --w:290px; }
.av-studio-phone .mn-phone-frame { box-shadow:0 60px 110px -50px rgba(92,213,111,.45); }
/* A camera shutter closes and opens over the screen between steps. */
.av-shutter { position:absolute; inset:0; z-index:6; pointer-events:none; background:radial-gradient(circle at 50% 50%,transparent 0 var(--hole,140%),#000 calc(var(--hole,140%) + 1px)); }
.av-shutter.is-snap { animation:av-snap .7s cubic-bezier(.65,0,.35,1); }
@keyframes av-snap { 0% { --hole:140%; } 45% { --hole:0%; } 55% { --hole:0%; } 100% { --hole:140%; } }
@property --hole { syntax:"<percentage>"; inherits:false; initial-value:140%; }
.av-tag { margin:0; }
.av-tag span { display:inline-block; padding:10px 14px; border-radius:12px; font:600 14px/1 Satoshi,Inter,sans-serif; color:#fff; background:rgba(255,255,255,.06); border:1px solid var(--av-line); }
.av-tag span.is-swap { animation:av-swap .45s var(--mn-ease); }

/* ── From the screen to the stall ── */
.av-route-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:34px; }
.av-route-stage { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); gap:clamp(24px, 4vw, 56px); align-items:center; margin-top:40px; padding:clamp(20px, 3vw, 36px); border-radius:28px; border:1px solid var(--av-line);
  background:radial-gradient(60% 80% at 75% 40%,rgba(6,56,107,.55),transparent 70%),linear-gradient(160deg,rgba(255,255,255,.04),rgba(255,255,255,.01)); }
.av-route-phone { --w:270px; }
.av-plan { position:relative; }
.av-plan-map { position:relative; }
.av-plan svg { display:block; width:100%; height:auto; overflow:visible; }
.av-hall { fill:#e3e3e1; stroke:#cfcfcc; stroke-width:1.5; }
.av-stalls rect { fill:#e6ecc6; stroke:#a5b170; stroke-width:1.2; transition:fill .5s ease, opacity .5s ease; }
.av-stalls text { fill:#6b6b70; font:600 12px Satoshi,Inter,sans-serif; }
.av-stalls g { opacity:0; transition:opacity .6s ease calc(var(--r) * 90ms); }
.av-route-stage.is-in .av-stalls g { opacity:1; }
.av-stalls .av-target { fill:#cfe0a0; }
.av-target-no { fill:#fff; font:800 15px Satoshi,Inter,sans-serif; text-anchor:middle; opacity:0; transition:opacity .4s ease; }
/* Step 1: the stall lights up. Step 3: the route draws and the walker follows it. */
.av-route[data-step="0"] .av-target, .av-route[data-step="2"] .av-target { fill:#1fa64a; stroke:#137a33; filter:drop-shadow(0 4px 10px rgba(31,166,74,.55)); }
.av-route[data-step="0"] .av-target-no, .av-route[data-step="2"] .av-target-no { opacity:1; fill:#fff; }
.av-route[data-step="1"] .av-stalls rect:not(.av-target) { opacity:.45; }
.av-route[data-step="1"] .av-target { fill:var(--av-blue); stroke:#08519b; }
.av-route[data-step="1"] .av-target-no { opacity:1; fill:#fff; }
.av-path { fill:none; stroke:var(--av-blue); stroke-width:5; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:var(--len,300); stroke-dashoffset:var(--len,300); filter:drop-shadow(0 2px 6px rgba(10,102,194,.45)); transition:stroke-dashoffset .3s ease; }
.av-route[data-step="2"] .av-path { stroke-dashoffset:0; transition:stroke-dashoffset 1.6s cubic-bezier(.45,0,.2,1) .2s; }
.av-walker { fill:#fff; stroke:var(--av-blue); stroke-width:3; opacity:0; }
.av-route[data-step="2"] .av-walker { opacity:1; }
.av-you circle { fill:var(--av-blue); stroke:#fff; stroke-width:3; }
.av-you text { fill:#3a3a40; font:600 13px Satoshi,Inter,sans-serif; }
.av-plan-tag { position:absolute; left:calc(363 / 860 * 100%); top:calc(232 / 480 * 100%); translate:-50% -100%; margin:0; display:grid; gap:2px; padding:10px 14px; border-radius:12px; text-align:center; white-space:nowrap;
  background:var(--av-blue); color:#fff; box-shadow:0 18px 36px -16px rgba(0,0,0,.9); opacity:0; scale:.8; transition:opacity .4s ease, scale .5s cubic-bezier(.34,1.56,.64,1); pointer-events:none; }
.av-plan-tag::after { content:""; position:absolute; left:50%; bottom:-6px; width:12px; height:12px; margin-left:-6px; rotate:45deg; background:inherit; border-radius:2px; }
.av-plan-tag b { font-size:15px; }
.av-plan-tag span { font-size:12.5px; opacity:.85; }
.av-route[data-step="0"] .av-plan-tag, .av-route[data-step="2"] .av-plan-tag { opacity:1; scale:1; }
.av-route[data-step="2"] .av-plan-tag { background:#1fa64a; }
/* Step 2: the chat, translated, floats over the hall. */
.av-bubbles { position:absolute; right:4%; top:50%; translate:0 -50%; width:min(300px, 60%); list-style:none; margin:0; padding:0; display:grid; gap:10px; pointer-events:none; }
.av-bubbles li { justify-self:start; max-width:88%; padding:12px 16px; border-radius:16px 16px 16px 4px; font-size:15px; line-height:1.4; color:#17171a; background:#f2f2f4; box-shadow:0 18px 36px -18px rgba(0,0,0,.95);
  opacity:0; translate:0 14px; scale:.94; transition:opacity .35s ease, translate .5s var(--mn-ease), scale .5s var(--mn-ease); }
.av-bubbles li.is-me { justify-self:end; border-radius:16px 16px 4px 16px; background:var(--av-blue); }
.av-route[data-step="1"] .av-bubbles li { opacity:1; translate:0 0; scale:1; transition-delay:calc(.25s + var(--i) * .55s); }

/* ── Storefront that assembles ── */
.av-store { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:56px; align-items:center; }
.av-store-parts { list-style:none; margin:34px 0 0; padding:0; display:grid; gap:10px; }
.av-store-parts li { display:grid; gap:3px; padding:14px 18px; border-radius:14px; border:1px solid var(--av-line); background:rgba(255,255,255,.03); opacity:.4; translate:-8px 0; transition:opacity .5s ease, translate .6s var(--mn-ease), border-color .5s ease, background-color .5s ease; }
.av-store-parts li b { font:700 17px/1.3 Satoshi,Inter,sans-serif; }
.av-store-parts li span { color:var(--mn-mute); font-size:14.5px; line-height:1.45; }
.av-store-parts li.is-on { opacity:1; translate:0 0; border-color:color-mix(in srgb, var(--av-green) 50%, transparent); background:color-mix(in srgb, var(--av-green) 8%, transparent); }
.av-store-stage { position:relative; display:grid; justify-items:center; padding:60px 0; }
.av-store-phone { --w:300px; }
.av-store-phone .mn-phone-frame { box-shadow:0 60px 110px -50px rgba(59,133,206,.6); }
/* While pieces fly in they overhang the screen; the frame clips them once they land. */
.av-case .av-store-screen { overflow:visible; background:#f2f3f5; }
.av-store-screen::before { z-index:12; }
.av-piece { --q:clamp(0, calc((var(--p,0) - var(--k) * .07) * 2.4), 1); position:absolute; z-index:calc(2 + var(--k)); left:calc(var(--l) * 100%); top:calc(var(--t) * 100%); width:calc(var(--pw) * 100%); height:calc(var(--ph) * 100%); overflow:hidden;
  transform:translate(calc(var(--dx) * (1 - var(--q))), calc(var(--dy) * (1 - var(--q)))) rotate(calc(var(--r) * (1 - var(--q)))) scale(calc(.92 + var(--q) * .08));
  opacity:calc(.25 + var(--q) * .75); box-shadow:0 0 0 calc((1 - var(--q)) * 1px) rgba(255,255,255,.4), 0 calc((1 - var(--q)) * 30px) calc((1 - var(--q)) * 50px) -10px rgba(0,0,0,.9);
  border-radius:calc((1 - var(--q)) * 12px); transition:transform .25s linear, opacity .25s linear; }
.av-piece img { position:absolute; max-width:none; width:calc(100% / var(--pw)); height:auto; left:calc(var(--l) / var(--pw) * -100%); top:calc(var(--t) / var(--ph) * -100%); }
.av-piece:first-child { border-top-left-radius:calc(var(--w) * .135); border-top-right-radius:calc(var(--w) * .135); }
.av-piece:last-child { border-bottom-left-radius:calc(var(--w) * .135); border-bottom-right-radius:calc(var(--w) * .135); }

/* ── Themes ── */
.av-themes { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:56px; align-items:center; }
.av-switch { all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:14px; margin-top:30px; padding:10px 16px 10px 10px; border-radius:14px; border:1px solid var(--av-line); background:rgba(255,255,255,.04); }
.av-switch:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.av-switch b { font:600 15px/1 Satoshi,Inter,sans-serif; }
.av-switch-track { position:relative; width:58px; height:32px; border-radius:10px; background:#e7f0f9; transition:background-color .5s ease; }
.av-switch-track i { position:absolute; left:4px; top:4px; width:24px; height:24px; border-radius:7px; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.3); transition:translate .5s var(--mn-ease), background-color .5s ease; }
.av-switch[aria-checked="true"] .av-switch-track { background:#1c1c20; box-shadow:inset 0 0 0 1px rgba(255,255,255,.2); }
.av-switch[aria-checked="true"] .av-switch-track i { translate:26px 0; background:#0b0b0d; box-shadow:inset 0 0 0 2px #fff; }
.av-palette { list-style:none; margin:30px 0 0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.av-palette li { display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:14px; row-gap:2px; align-items:center; padding:14px; border-radius:14px; border:1px solid var(--av-line); background:rgba(255,255,255,.03); }
.av-palette .av-chip { grid-row:1 / 3; }
.av-palette b { font:600 15px/1.2 Satoshi,Inter,sans-serif; }
.av-palette code { font:500 12px ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--mn-mute); }
/* Swatches are the app's own parts: a button, the stall pill and the two offer badges. */
.av-chip { display:inline-grid; place-items:center; min-width:96px; height:34px; padding:0 12px; border-radius:9px; color:#fff; font:700 13px/1 Inter,Satoshi,sans-serif; white-space:nowrap; }
.av-chip--blue { background:var(--av-blue); }
.av-chip--navy { background:#e7f0f9; color:#0d2747; font-weight:600; font-size:11.5px; }
.av-chip--green { background:var(--av-campaign); font-style:italic; }
.av-chip--orange { background:var(--av-orange); font-style:italic; }
.av-themes-stage { display:grid; justify-items:center; }
.av-themes-phone { --w:290px; }
.av-flood-top { clip-path:circle(0% at var(--fx) var(--fy)); transition:clip-path 1.1s cubic-bezier(.65,0,.35,1); }
.av-flood.is-dark .av-flood-top { clip-path:circle(150% at var(--fx) var(--fy)); }

/* ── Outcome & reflection ── */
.av-outcome-list { list-style:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:40px 0 0; padding:0; }
.av-outcome-list li { padding:16px 18px; border-radius:12px; border:1px solid color-mix(in srgb, var(--av-blue) 45%, transparent); background:linear-gradient(140deg,color-mix(in srgb, var(--av-blue) 18%, transparent),color-mix(in srgb, var(--av-green) 6%, transparent)); font-size:15.5px; line-height:1.45; font-weight:500; }
.av-reflect-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:40px; }
.av-reflect-grid p { margin:0; padding:24px; border-radius:20px; border:1px solid var(--av-line); background:rgba(255,255,255,.03); color:var(--mn-mute); font-size:16px; line-height:1.6; }

@media (max-width:1100px) {
  .av-feed-body { grid-template-columns:1fr; justify-items:center; gap:28px; }
  .av-feed-note, .av-feed-note--l { justify-self:center; text-align:center; max-width:420px; }
  .av-feed-note--r { display:none; }
  .av-feed-note--l { order:2; }
}
@media (max-width:1024px) {
  .av-hero-grid, .av-promise, .av-studio, .av-store, .av-themes, .av-reflect-grid { grid-template-columns:1fr; }
  .av-hero-stage { height:600px; }
  .av-promise-stage { height:600px; }
  .av-outcome-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .av-route-stage { grid-template-columns:1fr; justify-items:center; }
  .av-plan { width:100%; }
  .av-deck-wrap { --cw:270px; gap:0 24px; }
}
@media (max-width:767px) {
  .av-hero-stage { height:500px; }
  .av-floor { width:440px; top:60%; }
  .av-hero-back { --w:150px; left:0; top:30px; }
  .av-hero-phone { --w:200px; right:4%; }
  .av-orbit { width:58px; height:58px; }
  .av-promise-stage { height:520px; }
  .av-promise-phone, .av-studio-phone, .av-themes-phone { --w:240px; }
  .av-feed-phone { --w:260px; }
  .av-feed-tabs { gap:10px; }
  .av-steps, .av-route-tabs, .av-palette { grid-template-columns:1fr; }
  .av-route-phone { --w:230px; }
  .av-route-stage { padding:16px; }
  .av-bubbles { position:relative; right:auto; top:auto; translate:none; width:100%; margin-top:14px; }
  .av-bubbles li { font-size:14px; }
  .av-plan-tag { padding:7px 10px; }
  .av-plan-tag b { font-size:13px; }
  .av-plan-tag span { display:none; }
  .av-deck-wrap { --cw:min(270px, 72vw); grid-template-columns:1fr; gap:10px; justify-items:stretch; }
  .av-deck { grid-row:1; justify-self:center; margin-bottom:18px; }
  .av-callouts { display:grid; gap:10px; align-content:start; }
  .av-callouts--l { grid-row:2; }
  .av-callouts--r { grid-row:3; }
  .av-callouts li, .av-callouts--l li, .av-callouts--r li { position:relative; top:auto; translate:0 10px; text-align:left; padding:0; grid-template-columns:96px 1fr; align-items:baseline; gap:12px; }
  .av-deck-wrap.is-in .av-callouts li { translate:0 0; }
  .av-callouts li::after { display:none; }
  .av-deck-next { grid-column:1; grid-row:4; margin-top:16px; }
  .av-store-phone { --w:250px; }
  .av-store-stage { padding:40px 0; }
  .av-outcome-list { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .av-floor-grid i, .av-hero-back, .av-hero-phone, .av-orbit { opacity:1 !important; translate:none !important; scale:none !important; animation:none !important; }
  .av-floor-grid i { opacity:.85 !important; }
  .av-rings i { animation:none !important; }
  .av-shutter { display:none; }
  .av-piece { transform:none !important; opacity:1 !important; box-shadow:none !important; border-radius:0 !important; }
  .av-store-parts li { opacity:1 !important; translate:none !important; }
  .av-path { transition:none !important; }
  .av-flood-top { transition:none !important; }
}

/* Glass cards and statistics tiles in the project's own colours (Allver blue to green); the shared bend, shading and
   count-up come from about-cards. */
.av-case {
  --glass-fill:color-mix(in srgb, rgb(59 133 206) 8%, rgba(12,11,20,.8)); --glass-edge:rgba(59,133,206,.24); --glass-highlight:rgba(59,133,206,.5);
  --glass-drop:rgba(0,0,0,.9); --glass-glow:rgba(59,133,206,.6); --glass-shade:#000; --glass-shine:rgb(120 190 255);
  --stat-bg:linear-gradient(160deg,rgba(59,133,206,.85),rgba(60,156,168,.7) 55%,rgba(92,213,111,.55)); --stat-border:rgba(255,255,255,.18); --stat-border-hover:rgba(255,255,255,.32);
  --stat-glow:rgba(59,133,206,.7); --stat-glow-hover:rgba(59,133,206,.85); --stat-shade:#03213f; --stat-shine:#fff; --stat-number:#fff; --stat-label:#fff;
}
