/* Peak AI · Live view · daytime, in sample A "Kopitiam" (marble, jade, teak, egg yolk; Fraunces + Figtree) */
:root {
  color-scheme: light;
  --jade-900: #123f2f;
  --jade-700: #1f6b4f;
  --jade-600: #26805e;
  --jade-500: #3fae84;
  --mint-300: #b9dfcd;
  --mint-200: #d3ebdf;
  --mint-100: #e7f4ed;
  --teak-950: #1e120c;
  --teak-900: #2a1a12;
  --teak-600: #6b4630;
  --marble: #f7f4ee;
  --marble-2: #fffdf9;
  --bg: var(--marble);
  --surf: rgba(255, 253, 249, 0.95);
  --surf-solid: #fffdf9;
  --surf-2: #f3eee5;
  --line: rgba(42, 26, 18, 0.08);
  --line-2: rgba(42, 26, 18, 0.14);
  --line-3: rgba(42, 26, 18, 0.26);
  --text: #24190f;
  --text-2: #4a3d33;
  --text-3: #6e6259;
  --mint: var(--jade-700);
  --mint-dim: #e7f4ed;
  --jade: #3fae84;
  --yolk: #f2b33d;
  --yolk-2: #f7c766;
  --yolk-deep: #e09a24;
  --yolk-ink: #a8650c;
  --yolk-dim: #fcefd2;
  --chilli: #c8382c;
  --chilli-dim: #fbe5e1;
  --teak: #2a1a12;
  --c-order: #12a36b;
  --c-transfer: #f39a17;
  --c-money: #6b4630;
  --shadow: 0 1px 0 rgba(42, 26, 18, .04), 0 10px 30px -12px rgba(42, 26, 18, .18);
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hdr: 70px;
  --panel-w: 448px;
  --spring: cubic-bezier(.22, 1.18, .36, 1);
  /* Atmospheric colour field, shared with the main page (styles.css) */
  --field-paper: #fffdf9;
  --field-mint-wash: #e6f3eb;
  --field-mint-pool: 176, 219, 197;
  --field-mint-soft: 211, 235, 223;
  --field-yolk-warm: 251, 227, 180;
  --field-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .16  0 0 0 0 .10  0 0 0 0 .06  0 0 0 1.25 -.5'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 78px; }
/* while the phone card is open, the page holds still under it */
html.sheet-lock, html.sheet-lock body { overflow: hidden; overscroll-behavior: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--jade-700); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; font-variation-settings: "opsz" 96; text-wrap: balance; color: var(--teak-900); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
/* jade-900, as on the main page: over 3:1 on marble, white and the yolk buttons (yolk only on the dark footer) */
:focus-visible { outline: 3px solid var(--jade-900); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--teak-900); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
.dim { color: var(--text-3); }
.show-sm { display: none; }

/* Buttons (from sample A) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--body); text-decoration: none; border-radius: 999px; padding: 15px 24px; border: 0; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease; }
.btn-yolk { background: var(--yolk); color: var(--teak); box-shadow: inset 0 -3px 0 rgba(120, 70, 0, .25), 0 6px 16px -6px rgba(224, 154, 36, .7); }
.btn-yolk:hover { transform: translateY(-2px); box-shadow: inset 0 -3px 0 rgba(120, 70, 0, .25), 0 12px 22px -8px rgba(224, 154, 36, .8); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }

/* ---------- Header (as sample A) ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--hdr); display: flex; align-items: center; gap: 18px; padding: 0 28px;
  background: rgba(247, 244, 238, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(42, 26, 18, .08); transition: background .25s, border-color .25s; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--jade-900); font: 600 1.45rem/1 var(--display); letter-spacing: -.02em; font-variation-settings: "opsz" 96; }
.brand img { width: 34px; height: 34px; }
.brand span { white-space: nowrap; }
/* a plain page tag, no dot: this is a demo, not a status */
.page-tag { display: inline-flex; align-items: center; font: 600 13px/1 var(--body); color: var(--text-2); background: rgba(255, 253, 249, .9); padding: 8px 12px; border-radius: 999px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jade-500); box-shadow: 0 0 0 3px rgba(63, 174, 132, .2); flex: none; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 10px; }
.top-link:hover { color: var(--jade-700); }
.top-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Live stage: a daytime sky over the city ---------- */
.live { position: relative; height: 100vh; height: 100svh; min-height: 660px; overflow: hidden;
  background:
    radial-gradient(70% 55% at 34% 62%, rgba(255, 253, 249, .95) 0%, rgba(255, 253, 249, 0) 70%),
    radial-gradient(60% 40% at 80% 0%, rgba(211, 235, 223, .7), rgba(211, 235, 223, 0) 70%),
    radial-gradient(50% 40% at 20% 100%, rgba(252, 239, 210, .7), rgba(252, 239, 210, 0) 70%),
    linear-gradient(180deg, #eef5f0 0%, #f7f4ee 52%, #f3ede2 100%); }
.city { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.city.dragging { cursor: grabbing; }
.city-canvas { position: absolute; inset: 0; }
.city-canvas canvas, .city-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the still city draws past its frame, under the header, intro and panel, as the 3D one does */
.city-canvas svg, .city-poster svg { overflow: visible; }
.city-canvas canvas { transition: opacity .4s ease; }
.is-fallback .city, .live[data-city="loading"] .city { cursor: default; }
/* the still city that stands in while the 3D view loads */
.city-poster { position: absolute; inset: 0; transition: opacity .4s ease; }
.city-poster svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-poster.out { opacity: 0; pointer-events: none; }
.city-labels { position: absolute; inset: 0; pointer-events: none; }
.city-label { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  background: rgba(255, 253, 249, .96); border: 1px solid rgba(42, 26, 18, .14); color: var(--teak-900); font: 600 12.5px/1 var(--body); letter-spacing: 0; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(42, 26, 18, .35); transform: translate(-50%, -100%); transition: border-color .2s, background .2s, color .2s, opacity .25s, visibility 0s; will-change: transform; }
/* a larger, invisible touch area around each label */
.city-label::before { content: ""; position: absolute; inset: -8px -4px; }
.city-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--jade-500); box-shadow: 0 0 0 2px rgba(63, 174, 132, .2); }
.city-label .ls { display: none; }
.city-labels.narrow .city-label .ln { display: none; }
.city-labels.narrow .city-label .ls { display: inline; }
.city-label:hover, .city-label.hot { border-color: var(--jade-600); color: var(--jade-900); background: #fff; }
.city-label.on { background: var(--yolk); color: var(--teak); border-color: var(--yolk-deep); box-shadow: 0 0 0 4px rgba(242, 179, 61, .25), 0 8px 20px -6px rgba(224, 154, 36, .6); }
.city-label.on i { background: var(--teak); box-shadow: none; }
.city-labels.dim .city-label:not(.hot):not(.on) { opacity: .85; color: var(--text-2); }
/* labels that drift under the panel or header leave the tab order too */
.city-labels .city-label.off { opacity: 0 !important; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility 0s linear .25s; }

/* SVG city (still view, and the poster while the 3D view loads), same daytime palette */
.fb-b { stroke: rgba(42, 26, 18, .32); stroke-width: .8; stroke-linejoin: round; transition: opacity .3s; }
.fb-b .f1 { fill: #f7efe1; } .fb-b .f2 { fill: #e6dac6; } .fb-b .f3 { fill: #7cc3a3; }
.fb-b .win { stroke: #4f8f7c; stroke-opacity: .8; stroke-width: 1.2; }
.fb-b.on { stroke: #c97a12; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(242, 179, 61, .7)); }
.fb-b.on .f3 { fill: #f2b33d; } .fb-b.on .f1 { fill: #fdf1d6; } .fb-b.on .f2 { fill: #f1dfb8; }
.fb-b.hot { stroke: var(--jade-700); stroke-width: 1.3; }
.fb-b.dim { opacity: .62; }
.fb-r polyline { fill: none; stroke: var(--c); stroke-opacity: .55; stroke-width: 1.1; stroke-dasharray: 2 3; }
.fb-r circle { fill: var(--c); stroke: rgba(30, 18, 12, .45); stroke-width: .7; }
.fb-r.on polyline { stroke-opacity: 1; stroke-width: 1.9; animation: dash 1.2s linear infinite; }
.fb-r.dim { opacity: .25; }
@keyframes dash { to { stroke-dashoffset: -10; } }
.fb-label { cursor: pointer; }
.fb-hits .hit { fill: transparent; stroke: none; }
.fb-label .pill { fill: rgba(255, 253, 249, .97); stroke: rgba(42, 26, 18, .2); }
.fb-label text { fill: var(--teak-900); font: 600 11px var(--body); }
.fb-label circle { fill: var(--jade-500); }
.fb-label:hover .pill, .fb-label:focus .pill, .fb-label.hot .pill { stroke: var(--jade-600); }
.fb-label.on .pill { fill: var(--yolk); stroke: var(--yolk-deep); }
.fb-label.on text, .fb-label.on circle { fill: var(--teak); }
.fb-label:focus { outline: none; }
.fb-label:focus-visible .pill { stroke: var(--jade-900); stroke-width: 3; }

/* Intro, top-left over the city */
.intro { position: absolute; z-index: 6; left: 32px; top: calc(var(--hdr) + 26px); max-width: 520px; pointer-events: none; }
.intro > * { pointer-events: auto; }
/* a soft marble wash behind the headline, so the city never runs through the words */
.intro::before { content: ""; position: absolute; z-index: -1; inset: -28px -48px -24px -32px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(247, 244, 238, .94), rgba(247, 244, 238, .8) 55%, rgba(247, 244, 238, 0)); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--jade-700); }
.intro h1 { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.04; margin: 10px 0 16px; color: var(--teak-900); text-shadow: 0 1px 18px rgba(255, 253, 249, .9); }
.intro-row { display: flex; align-items: center; gap: 8px; }
.mode { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 253, 249, .92); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mode button { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 700 14px/1 var(--body); transition: background .2s, color .2s; }
.mode button:hover { color: var(--jade-700); }
.mode button[aria-pressed="true"] { background: var(--teak-900); color: #fff; }
/* Key to the dots: a chip that opens a small legend (shown where the full legend does not fit) */
.key { position: relative; display: none; }
.key-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 253, 249, .94); color: var(--text-2); font: 700 13.5px/1 var(--body); box-shadow: var(--shadow); }
.key-btn::before { content: ""; width: 22px; height: 8px; flex: none;
  background: radial-gradient(circle at 4px 4px, var(--c-order) 3.4px, transparent 3.9px), radial-gradient(circle at 11px 4px, var(--c-transfer) 3.4px, transparent 3.9px), radial-gradient(circle at 18px 4px, var(--c-money) 3.4px, transparent 3.9px); }
.key-btn[aria-expanded="true"] { border-color: var(--jade-600); color: var(--jade-900); }
.key-pop { position: absolute; z-index: 12; top: calc(100% + 8px); right: 0; width: max-content; max-width: min(300px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 16px; background: var(--surf-solid); box-shadow: 0 1px 0 rgba(42, 26, 18, .04), 0 18px 40px -16px rgba(42, 26, 18, .4), inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--text-2); }
.key-pop ul { display: grid; gap: 7px; margin: 6px 0 8px; }
.key-pop li { display: flex; align-items: center; gap: 9px; }
.key-h { font: 700 11px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.key-note { font-size: 12px; color: var(--text-3); }
.still-note { display: none; }

/* Legend + note, bottom-left */
.city-foot { position: absolute; z-index: 6; left: 32px; right: calc(var(--panel-w) + 56px); bottom: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; pointer-events: none; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.flows-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 253, 249, .86); box-shadow: inset 0 0 0 1px var(--line); }
.flows-legend li { display: inline-flex; align-items: center; gap: 7px; }
.fl { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 1.5px rgba(30, 18, 12, .55); }
.fl-order { background: var(--c-order); }
.fl-transfer { background: var(--c-transfer); }
.fl-money { background: var(--c-money); }
.fl-none { background: var(--surf-2); box-shadow: inset 0 0 0 1.5px var(--line-3); }
.city-note { color: var(--text-3); padding: 7px 12px; border-radius: 999px; background: rgba(255, 253, 249, .86); }
/* pauses the city's movement; sits top-right of the city, away from the tour controls */
.motion { position: absolute; z-index: 6; top: calc(var(--hdr) + 26px); right: calc(var(--panel-w) + 40px); box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 253, 249, .92); color: var(--text-2); font: 600 13px/1 var(--body); }
.motion svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.motion:hover { color: var(--jade-700); border-color: var(--line-3); }

/* ---------- Panel (desktop side panel; on phones, the detail card) ---------- */
.panel { position: absolute; z-index: 10; top: calc(var(--hdr) + 16px); right: 16px; bottom: 16px; width: var(--panel-w); display: flex; flex-direction: column;
  background: var(--surf); border: 1px solid var(--line-2); border-radius: 24px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(42, 26, 18, .04), 0 30px 70px -24px rgba(42, 26, 18, .35); }
.panel:focus { outline: none; }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 24px 28px; -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b9ad9c transparent; border-radius: 0; }
.panel-body:focus-visible { outline-offset: -3px; }
.panel-ctl { flex: none; border-top: 1px solid var(--line); padding: 12px 16px 14px; }

.step.anim { animation: stepIn .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeIn { from { opacity: 0; } }
.p-eye { display: flex; align-items: baseline; gap: 8px; font: 700 11.5px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.p-n { font: 600 24px/1 var(--display); color: #c97a12; letter-spacing: 0; }
.p-where { margin-left: auto; color: var(--jade-700); text-align: right; }
.p-eye .p-where:first-child { margin-left: 0; text-align: left; }
.p-t { font-size: 26px; line-height: 1.12; margin: 10px 0 8px; color: var(--teak-900); }
/* the heading takes focus after the panel re-renders; it is not a control, so no ring */
.p-t:focus { outline: none; }
.p-d { font-size: 14.5px; color: var(--text-2); }
.ba { display: grid; gap: 8px; margin: 16px 0; }
.ba-k { display: block; font: 700 10.5px/1.3 var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.ba-b { padding: 10px 14px 11px; border-radius: 14px; background: var(--chilli-dim); }
.ba-b .ba-k { color: #b3301f; margin-bottom: 4px; }
.ba-b b { display: block; font: 600 15.5px/1.3 var(--display); letter-spacing: -.01em; color: #7d2219; }
.ba-a { padding: 10px 14px; border-radius: 14px; background: var(--mint-100); box-shadow: inset 0 0 0 1px rgba(63, 174, 132, .22); }
.ba-a .ba-k { color: var(--jade-700); }
.ba-a p { font-size: 14px; line-height: 1.5; color: var(--text); }
.screen { margin: 0 0 16px; }
/* Capability chips: tap one to read what it does */
.capchips { display: flex; flex-wrap: wrap; gap: 6px; }
.capchips li:has(button[aria-expanded="true"]) { flex-basis: 100%; }
.capchips button, .chip-static { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font: 600 13px/1.25 var(--body); text-align: left; padding: 7px 10px 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text); transition: border-color .2s, background .2s; }
.chip-static { padding-right: 13px; }
.capchips button:hover { border-color: var(--jade-600); }
.capchips button i { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--mint-100); }
.capchips button i::before, .capchips button i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 7px; height: 2px; border-radius: 1px; background: var(--jade-700); transition: transform .2s; }
.capchips button i::after { transform: rotate(90deg); }
.capchips button[aria-expanded="true"] { border-color: var(--yolk-deep); background: var(--yolk-dim); }
.capchips button[aria-expanded="true"] i { background: #fff; }
.capchips button[aria-expanded="true"] i::after { transform: rotate(0); }
.capchips p { font-size: 13.5px; line-height: 1.45; color: var(--text-2); padding: 6px 4px 4px 13px; max-width: 60ch; }
.card-foot { display: grid; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.to-feat { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 15px; border-radius: 999px; border: 1px solid rgba(63, 174, 132, .4); background: var(--mint-100); color: var(--jade-700); font: 700 13.5px/1 var(--body); }
.to-feat:hover { border-color: var(--jade-600); }
.to-feat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card-foot p { font-size: 12px; line-height: 1.45; color: var(--text-3); }

/* Controls: prev, play, next on one row; the twelve problem dots on their own row */
.ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.ctl .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--teak-900); display: grid; place-items: center; transition: border-color .2s, background .2s; }
.ctl .ic:hover { border-color: var(--jade-600); background: var(--mint-100); }
.ctl .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ctl .play { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: var(--yolk); color: var(--teak); font: 700 14px/1 var(--body); box-shadow: inset 0 -3px 0 rgba(120, 70, 0, .22); white-space: nowrap; }
.ctl .play:hover { background: var(--yolk-2); }
.ctl .play svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.dots { order: 5; width: 100%; display: flex; justify-content: space-between; }
.dots button { width: 24px; height: 28px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: #9c8f7e; transition: width .25s, background .25s; }
.dots button:hover i { background: var(--text-3); }
.dots button.on i { width: 16px; background: var(--yolk-deep); }
.prog { height: 3px; margin-top: 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.prog span { display: block; height: 100%; background: var(--yolk-deep); transform-origin: 0 50%; transform: scaleX(0); transition: transform .12s linear; }
.ctl-ex { flex-wrap: nowrap; }
.ctl-ex .play { flex: none; }
.ctl-ex .hint { margin-left: auto; font-size: 12.5px; color: var(--text-3); text-align: right; }

/* Look-around panel */
.bl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 16px 0 14px; }
.bl button { text-align: left; padding: 10px 12px; min-height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--text); transition: border-color .2s, background .2s; }
.bl button:hover { border-color: var(--jade-600); background: var(--mint-100); }
.bl b { display: block; font-size: 14px; }
.bl span { font-size: 12px; color: var(--text-3); }
.legend-in { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; font-size: 12.5px; color: var(--text-2); }
.legend-in li { display: inline-flex; align-items: center; gap: 7px; }
.feed-h { display: flex; justify-content: space-between; align-items: center; }
.feed { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.feed li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 8px 2px; border-bottom: 1px dashed var(--line-2); color: var(--text-2); }
.feed li:first-child { animation: feedIn .5s ease both; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-4px); } }
.feed b { color: var(--text); font-weight: 700; }
.feed time { color: var(--text-3); }
.feed li > span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 0; box-shadow: 0 0 0 1.5px rgba(30, 18, 12, .3); }
.feed .k-order::before { background: var(--c-order); }
.feed .k-transfer::before { background: var(--c-transfer); }
.feed .k-money::before { background: var(--c-money); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-bottom: 12px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text-2); font-size: 13px; font-weight: 600; }
.back:hover { color: var(--jade-700); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* the way back after a jump from the features list: beside All buildings */
.ex-backs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ex-backs .back { margin-bottom: 0; }
.flows { display: grid; gap: 6px; margin: 12px 0 4px; font-size: 13.5px; color: var(--text-2); }
.flows li { display: flex; align-items: center; gap: 9px; }
.probs { margin: 18px 0; display: grid; gap: 6px; }
.probs button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 12px 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font-size: 14px; font-weight: 600; transition: border-color .2s; }
.probs button:hover { border-color: var(--yolk-deep); }
.probs em { margin-left: auto; flex: none; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--teak); background: var(--yolk); padding: 6px 11px; border-radius: 999px; }
.deps details { border-top: 1px solid var(--line); }
.deps summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 2px; cursor: pointer; list-style: none; }
.deps summary::-webkit-details-marker { display: none; }
.deps summary::before { content: ""; width: 7px; height: 7px; flex: none; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(-45deg); transition: transform .2s; }
.deps details[open] summary::before { transform: rotate(45deg); }
.deps summary b { font: 600 15px/1.2 var(--display); color: var(--teak-900); }
.deps summary span { margin-left: auto; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.deps details p { font-size: 13.5px; color: var(--text-2); margin: 0 0 10px; }
.deps details .capchips { padding-bottom: 14px; }

/* Phone-only pieces, hidden on desktop */
.cap, .scrim, .card-head { display: none; }

/* ---------- Mock screens (light, like a product screenshot) ---------- */
.ms { --ink: #24190f; --ink-2: #6a5e55; --line-ms: #e9e2d6; --ok: #1f6b4f; --warn: #8a5a06; --bad: #b3301f;
  background: #fffdf9; color: var(--ink); border-radius: 16px; padding: 12px 14px 14px; font: 400 12.5px/1.4 var(--body);
  box-shadow: 0 0 0 1px #e6dfd3, 0 14px 30px -18px rgba(42, 26, 18, .4); font-variant-numeric: tabular-nums; }
.ms .ok { color: var(--ok); } .ms .warn { color: var(--warn); } .ms .bad { color: var(--bad); }
.ms-top { display: flex; justify-content: space-between; align-items: center; font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ms-app { display: inline-flex; align-items: center; gap: 6px; }
.ms-app svg { width: 16px; height: 16px; }
.ms-ill { font: 700 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #8a5a06; background: #fcefd2; padding: 4px 7px; border-radius: 999px; }
.ms-ill.dark { color: #8a5a06; background: var(--yolk-dim); }
.ms-title { font: 600 15px/1.25 var(--display); margin: 8px 0 10px; color: var(--teak); }
.ms-sub { color: var(--ink-2); font-size: 11.5px; margin-top: 6px; }
.ms-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.ms-acts.col { flex-direction: column; align-items: stretch; }
/* mock buttons: only the main one answers a tap (a small demo); the rest are part of the picture */
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font: 700 11.5px/1.1 var(--body); background: #fff; color: var(--teak); box-shadow: inset 0 0 0 1.5px #dcd2c2; cursor: default; user-select: none; -webkit-user-select: none; }
.ms-btn.pri { background: #1f6b4f; color: #fff; box-shadow: none; cursor: pointer; }
.ms-btn.pri.done { background: var(--mint-100); color: var(--jade-700); box-shadow: inset 0 0 0 1.5px rgba(31, 107, 79, .35); }
.ms-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ms-btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.ms-pill { display: inline-block; align-self: flex-start; font: 700 10.5px/1 var(--body); letter-spacing: .03em; padding: 4px 8px; border-radius: 999px; background: #e7f4ed; color: #1f6b4f; }
.ms-pill.warn { background: #fcefd2; color: #8a5a06; }
.ms-line { margin-top: 10px; padding: 8px 10px; border-radius: 10px; font-size: 12px; border-left: 3px solid; color: var(--ink) !important; }
.ms-line.bad { background: #fbe5e1; border-color: var(--bad); }
.ms-line.warn { background: #fcefd2; border-color: #e09a24; }
.ms-line.ok { background: #e7f4ed; border-color: var(--ok); }
.ms-card { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fcefd2; border: 1px solid #f1d9a6; }
.ms-card.bad { background: #fbe5e1; border-color: #f2c4bb; }
.ms .ms-card.warn, .ms .ms-card.bad { color: var(--ink); }
.ms-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.ms-card-h span { color: var(--ink-2); font-size: 11px; text-align: right; }

.ms-bars { position: relative; }
.ms-barrow { display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: 8px; padding: 5px 0; }
.ms-lbl { font-weight: 600; font-size: 12px; }
.ms-v { text-align: right; font-size: 12.5px; }
.ms-track { position: relative; height: 10px; border-radius: 5px; background: #efe9de; }
.ms-track::after { content: ""; position: absolute; left: var(--tgt); top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--teak); }
.ms-fill { display: block; height: 100%; border-radius: 5px; background: #3fae84; }
.ms-fill.warn { background: #e8a33d; } .ms-fill.bad { background: #d9503f; }
.anim .ms-fill { animation: grow 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes grow { from { width: 0; } }
.ms-tgt { padding: 0 52px 0 98px; font-size: 10.5px; color: var(--ink-2); font-weight: 600; }
.ms-tgt span { position: relative; left: var(--tgt); display: inline-block; transform: translateX(-50%); }

.ms-grid4 { display: grid; grid-template-columns: 82px repeat(3, 1fr); gap: 4px; align-items: center; }
.ms-gh { font: 700 10px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 2px; }
.ms-rn { font-weight: 700; font-size: 11.5px; }
.ms-cell { display: flex; align-items: center; gap: 5px; padding: 5px 6px; border-radius: 8px; font-size: 11px; font-weight: 600; background: #e7f4ed; color: var(--ok); line-height: 1.15; }
.ms-cell.bad { background: #fbe5e1; color: var(--bad); }
.ms-cell i { font-style: normal; font-weight: 700; flex: none; }
.ms-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.ms-photos figure { margin: 0; }
.ms-photos figcaption { font-size: 10.5px; color: var(--ink-2); margin-top: 3px; }
.ph { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.ph-a { background: linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, .25) 49% 51%, transparent 52%), repeating-linear-gradient(180deg, #b8c3c4 0 9px, #8b989a 9px 11px), #a9b4b6; }
.ph-b { background: linear-gradient(transparent 55%, #8f9f9a 55% 62%, transparent 62%), linear-gradient(90deg, transparent 30%, #e6ecea 30% 70%, transparent 70%), repeating-linear-gradient(90deg, #d7e2df 0 13px, #c4d1cd 13px 14px), repeating-linear-gradient(0deg, #d7e2df 0 13px, #c4d1cd 13px 14px); }
.ph-c { background: radial-gradient(30% 22% at 62% 58%, #7c6a4e 0 60%, transparent 62%), linear-gradient(170deg, #50463a, #2f2a24); }
.ph-d { background: linear-gradient(90deg, transparent 47%, rgba(0, 0, 0, .25) 48% 52%, transparent 53%), linear-gradient(180deg, #c3cdcf, #8d999b); aspect-ratio: 3 / 4; }
.ph-d::after { content: "9.4"; position: absolute; left: 8px; top: 8px; font: 700 10.5px/1 var(--body); color: #fff; background: #c8382c; padding: 3px 4px; border-radius: 3px; }

.ms-kpis { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-bottom: 10px; }
.ms-kpis.three { grid-template-columns: repeat(3, 1fr); }
.ms-kpi { background: #f6f2ea; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.ms-kpi span { font: 700 10px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ms-kpi b { font: 600 21px/1.15 var(--display); margin-top: 2px; }
.ms-kpi em { font-style: normal; font-size: 10.5px; color: var(--ink-2); }
.ms-kpi.spark svg { width: 100%; height: 34px; margin: 4px 0 2px; overflow: visible; }
.ms-kpi.spark polyline { fill: none; stroke: #c8382c; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ms-kpi.spark .tg { stroke: #1f6b4f; stroke-width: 1.2; stroke-dasharray: 3 3; }
.ms-kpis.three .ms-kpi b { font-size: 18px; }
.ms-list-h, .ms-list { display: grid; grid-template-columns: 1.7fr .9fr .9fr .7fr; gap: 6px; align-items: center; }
.ms-list-h { font: 700 10px/1.2 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 4px; border-bottom: 1px solid var(--line-ms); }
.ms-list { padding: 6px 0; border-bottom: 1px solid var(--line-ms); font-size: 12px; }
.ms-list > :first-child { font-weight: 600; }
.ms-list > :not(:first-child), .ms-list-h > :not(:first-child) { text-align: right; }

.ms-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; align-items: start; }
.ms-phone { border: 5px solid var(--teak); border-radius: 18px; background: #fff; padding: 8px 8px 6px; font-size: 11px; }
.ms-phone-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 5px; border-bottom: 1px solid var(--line-ms); }
.ms-phone-h span { font-size: 10.5px; color: var(--ink-2); }
.ms-item { display: flex; justify-content: space-between; gap: 6px; padding: 5px 0; border-bottom: 1px solid #f2ede4; }
.ms-item em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-2); }
.ms-item b { white-space: nowrap; }
.ms-item.locked { opacity: .55; }
.ms-item.locked em { color: var(--bad); }
.ms-item .lk { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.ms-phone-f { display: flex; justify-content: space-between; padding-top: 5px; font-weight: 700; }
.ms-approve { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 12px; background: #f6f2ea; font-size: 11.5px; }
.ms-approve > b { font: 600 14px/1.2 var(--display); }

.ms-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms-col { text-align: center; font-size: 11.5px; display: flex; flex-direction: column; gap: 3px; }
.ms-vbars { height: 86px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; border-bottom: 1px solid var(--line-ms); margin-bottom: 4px; }
.vb { width: 20px; border-radius: 5px 5px 0 0; }
.vb.s { background: #b9dfcd; } .vb.b { background: #3fae84; } .vb.b.warn { background: #e8a33d; } .vb.b.bad { background: #d9503f; }
.anim .vb { animation: rise .9s .25s cubic-bezier(.2, .7, .2, 1) both; transform-origin: bottom; }
@keyframes rise { from { transform: scaleY(0); } }
.ms-gap { font-weight: 700; font-size: 11px; }
.ms-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 10.5px; color: var(--ink-2); }
.ms-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.ms-legend i.s { background: #b9dfcd; } .ms-legend i.b { background: #3fae84; }

.ms-mail { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #f6f2ea; margin-bottom: 4px; font-size: 12px; }
.ms-mail span { font-size: 10.5px; color: var(--ink-2); }
.ms-tr { display: grid; grid-template-columns: 1.7fr .8fr .8fr .8fr; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-ms); font-size: 11.5px; }
.ms-tr.th { font: 700 10px/1.2 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.ms-tr > :not(:first-child) { text-align: right; }
.ms-tr em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-2); }
.ms-tr > :first-child { font-weight: 600; }
.ms-tr.th > :first-child { font-weight: 700; }
.ms-tr .dim { color: var(--ink-2); }
.ms-table.cash .ms-tr { grid-template-columns: .5fr 1fr 1fr 1fr 1.1fr; }
.ms-tr.short { background: #fbe5e1; border-radius: 8px; padding-left: 6px; padding-right: 6px; border-bottom-color: transparent; }
.ms-split.inv { grid-template-columns: .82fr 1.5fr; align-items: center; }
.ms-paper { display: flex; flex-direction: column; gap: 6px; padding: 10px 9px; border-radius: 3px; background: #fbf7ee; transform: rotate(-3deg); box-shadow: 0 8px 16px rgba(42, 26, 18, .2), 0 0 0 1px #ece4d4; font-size: 10.5px; }
.ms-paper b { letter-spacing: .05em; }
.ms-paper i { display: block; height: 3px; border-radius: 2px; background: #c9c0b1; }
.ms-paper .hand { font: italic 600 11px/1.1 var(--display); color: #2b4a8a; }
.ms-paper .tot { align-self: flex-end; }
.ms-lines .ms-tr { grid-template-columns: 1.6fr .7fr .8fr; }
.ms-lines .ms-tr.chk { background: #fcefd2; border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.ms-lines .ms-tr.tot { border-bottom: 0; }

.ms-queue { display: flex; gap: 6px; }
.ms-queue .q { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 10px; background: #f6f2ea; font-size: 10.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-queue .q b { display: block; font-size: 11px; color: var(--teak); }
.ms-queue .q.on { background: #e7f4ed; box-shadow: inset 0 0 0 1.5px #3fae84; }
.ms-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 12px; background: #efe6d8; }
.ms-chat .b { max-width: 90%; padding: 8px 10px; border-radius: 12px; font-size: 12px; background: #fff; }
.ms-chat .b em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-2); margin-top: 4px; }
.ms-chat .in { align-self: flex-start; border-top-left-radius: 4px; }
.ms-chat .draft { align-self: flex-end; background: #dcf5e6; border: 1.5px dashed #3fae84; border-top-right-radius: 4px; }
.ms-chat .draft .ms-pill { display: table; margin-bottom: 5px; }

.ms-chk { display: grid; gap: 4px; }
.ms-ticket { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; margin-top: 10px; padding: 10px; border-radius: 12px; background: #f6f2ea; }
.ms-ticket b { font: 600 14px/1.2 var(--display); }
.ms-ticket p { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.ms-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.ms-steps li { border-top: 3px solid #e6dfd3; padding-top: 6px; font-size: 10.5px; color: var(--ink-2); }
.ms-steps b { display: block; font-size: 11px; color: var(--teak); }
.ms-steps .done { border-color: #3fae84; }
.ms-steps .now { border-color: #e8a33d; }

.ms-hm { display: grid; grid-template-columns: 28px repeat(var(--cols), 1fr); gap: 3px; align-items: center; }
.hm-h { font-size: 10px; color: var(--ink-2); text-align: left; }
.hm-d { font-size: 10.5px; color: var(--ink-2); font-weight: 600; }
.hm-c { height: 14px; border-radius: 3px; background-color: #f1ece3; background-image: linear-gradient(rgba(31, 107, 79, var(--v)), rgba(31, 107, 79, var(--v))); }
.ms-mix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ms-mix div { padding: 8px 10px; border-radius: 10px; background: #f6f2ea; }
.ms-mix span { display: block; font: 700 10px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 3px; }
.ms-mix b { font-size: 11.5px; line-height: 1.35; display: block; }


/* ---------- Features browser: on the same calm colour field as the main page ---------- */
.features { position: relative; isolation: isolate; padding: 96px 0 88px; border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--marble-2) 0, rgba(255, 253, 249, 0) 160px, rgba(247, 244, 238, 0) calc(100% - 160px), var(--marble) 100%),
    radial-gradient(40% 56% at 90% 10%, rgba(var(--field-mint-pool), .8), rgba(var(--field-mint-pool), 0) 72%),
    radial-gradient(38% 48% at 2% 88%, rgba(var(--field-yolk-warm), .8), rgba(var(--field-yolk-warm), 0) 72%),
    linear-gradient(180deg, var(--marble-2) 0%, #eef6f0 28%, var(--field-mint-wash) 70%, var(--marble) 100%); }
/* fine paper grain, faded out at the top and bottom edges */
.features::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--field-grain) 0 0 / 200px 200px; opacity: .16;
  -webkit-mask-image: linear-gradient(transparent, #000 160px, #000 calc(100% - 160px), transparent); mask-image: linear-gradient(transparent, #000 160px, #000 calc(100% - 160px), transparent); }
.features > * { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.f-head { max-width: 720px; }
.f-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; margin: 12px 0 12px; }
/* takes focus after a jump to the features; it is not a control, so no ring */
.f-head h2:focus { outline: none; }
.f-lede { color: var(--text-2); font-size: 16px; }
.f-body { display: grid; grid-template-columns: 290px 1fr; gap: 24px; margin-top: 36px; align-items: start; }
.f-tabs { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 90px; padding: 8px; border-radius: 20px; background: var(--surf-solid); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.f-tabs button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text-2); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.f-tabs button:hover { color: var(--jade-700); background: var(--mint-100); }
.f-tabs button em { font-style: normal; font-size: 12.5px; color: var(--text-3); }
.f-tabs button[aria-pressed="true"] { background: var(--yolk-dim); border-color: rgba(224, 154, 36, .35); color: var(--teak-900); box-shadow: inset 3px 0 0 var(--yolk-deep); }
.f-pane { min-width: 0; padding: 26px 28px 28px; border-radius: 22px; background: var(--surf-solid); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.f-in.anim { animation: stepIn .45s cubic-bezier(.2, .7, .2, 1) both; }
.f-pane h3 { font-size: 26px; line-height: 1.15; }
.f-pane h3:focus { outline: none; }
.f-sme { font: 600 17px/1.45 var(--body); color: var(--text); margin-top: 8px; }
.f-corp { font-size: 14.5px; color: var(--text-2); margin-top: 6px; max-width: 64ch; }
.f-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpis { display: flex; flex-wrap: wrap; gap: 6px; }
.kpis li { font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 8px; background: var(--surf-2); color: var(--text-2); }
.f-where { display: flex; flex-wrap: wrap; gap: 6px; }
.f-where button { min-height: 36px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(63, 174, 132, .35); background: var(--mint-100); color: var(--jade-700); }
.f-where button:hover { border-color: var(--jade-600); }
/* Capability list, as on the main page: a tick, the name, one line on what it does */
.fcaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); column-gap: 28px; margin-top: 2px; }
.fcaps li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid #f0ebe3; }
.fcaps .tk { width: 22px; height: 22px; border-radius: 50%; background: var(--jade-700); display: grid; place-items: center; margin-top: 1px; }
.fcaps .tk svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fcaps b { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--text); }
.fcaps div span { display: block; font-size: 14px; line-height: 1.45; color: var(--text-2); margin-top: 2px; }
.f-more { display: none; }
/* short screens (phones on their side): the department list is taller than the window, so it scrolls with the page */
@media (max-height: 600px) { .f-tabs { position: static; } }

/* Back to features, after a jump from the features list into the city */
.back-feat { position: fixed; z-index: 41; bottom: 132px; left: calc((100% - var(--panel-w) - 32px) / 2); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--teak-900); color: #fff; font: 700 14px/1 var(--body); box-shadow: 0 14px 30px -12px rgba(42, 26, 18, .55); animation: fadeIn .25s ease both; }
.back-feat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Footer, dark teak like sample A */
.foot { background: var(--teak-950); color: #cbb8a5; padding: 30px 0 36px; font-size: 13.5px; }
.foot a { color: #f6efe6; }
.foot .dim { color: #a8968a; }
.foot .brand { color: #f6efe6; }
.foot .btn-yolk { color: var(--teak); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot :focus-visible { outline-color: var(--yolk); }
/* contact: the button, and the address as text with Copy, for phones with no mail app set up */
.foot-cta { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.cta-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 14px; line-height: 1.3; color: #cbb8a5; }
.cta-mail a { display: inline-block; padding: 12px 0; font-weight: 600; text-underline-offset: 3px; }
.copy-mail { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 700 13px/1 var(--body); transition: background .15s ease; }
.copy-mail:hover { background: rgba(255, 255, 255, .22); }
.copy-mail.done { background: var(--jade-600); }
.brand-sm { font-size: 1.15rem; }
.brand-sm img { width: 26px; height: 26px; }

/* Desktop and tablet: the city fades out under the frosted header, so no roof shows through it as a blur.
   The mask sits on .city, which always fills the stage from the top of the page: the still city and the
   poster move into the free area below the intro, and a mask on them would cut them flat at their own edges. */
@media (min-width: 761px) {
  .city {
    -webkit-mask-image: linear-gradient(transparent calc(var(--hdr) - 4px), #000 calc(var(--hdr) + 32px));
    mask-image: linear-gradient(transparent calc(var(--hdr) - 4px), #000 calc(var(--hdr) + 32px)); }
}

/* ---------- Narrower desktops ---------- */
@media (max-width: 1100px) {
  :root { --panel-w: 400px; }
  .flows-legend { display: none; }
  .key { display: block; }
}
@media (max-width: 900px) and (min-width: 761px) {
  :root { --panel-w: 360px; }
  .page-tag { display: none; }
}
@media (max-height: 900px) and (min-width: 761px) {
  .intro h1 { font-size: 30px; margin-bottom: 12px; }
  .p-t { font-size: 23px; }
  .ba { margin: 12px 0; }
}

/* ---------- Phones and portrait tablets: full-screen city, caption bar, detail card ----------
   Same query as mqMobile in live.js. */
@media (max-width: 760px) and (min-height: 501px), (orientation: portrait) and (max-width: 1024px) {
  /* the stage stops a little short of the screen, so the features section peeks in below */
  .live { height: calc(100vh - 44px); height: calc(100svh - 44px); min-height: min(480px, 100svh); }

  .intro { left: 12px; right: 12px; top: calc(var(--hdr) + 2px); max-width: none; }
  .intro-head { max-height: 120px; overflow: hidden; margin-bottom: 10px; transition: max-height .4s ease, opacity .25s ease, margin .4s ease; }
  .intro .eyebrow { font-size: 11px; gap: 8px; letter-spacing: .12em; }
  .intro h1 { font-size: clamp(21px, 3.6vw, 30px); margin: 5px 0 0; }
  /* folds away after the first tap or step; the h1 stays for screen readers */
  .intro.compact .intro-head { max-height: 0; opacity: 0; margin-bottom: 0; }
  .mode { padding: 3px; }
  .mode button { height: 40px; padding: 0 14px; font-size: 13.5px; }
  .key { display: block; }
  .still-note { display: inline-block; margin-top: 8px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-2); background: rgba(255, 253, 249, .92); box-shadow: inset 0 0 0 1px var(--line-2); }
  /* with the card open, the strip of city above it starts right under the view buttons */
  .live.card-open .still-note { visibility: hidden; }
  .city-foot, .motion { display: none; }
  .intro::before { display: none; }
  /* the card covers the city, so there is nothing to drag or tap behind it */
  .ctl-ex .hint { display: none; }

  /* Caption bar */
  .cap { display: flex; position: absolute; z-index: 8; left: 10px; right: 10px; bottom: 10px; max-width: 640px; margin: 0 auto; align-items: center; gap: 6px; padding: 15px 8px 12px 6px;
    border-radius: 20px; background: rgba(255, 253, 249, .97); box-shadow: 0 1px 0 rgba(42, 26, 18, .04), 0 16px 36px -14px rgba(42, 26, 18, .45), inset 0 0 0 1px var(--line);
    touch-action: none; transition: opacity .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
  .live.card-open .cap { opacity: 0; transform: translateY(14px); pointer-events: none; }
  .cap-grab { position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #d6cdbf; }
  .cap-open { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 8px; padding: 2px 6px 4px 8px; border: 0; border-radius: 14px; background: transparent; text-align: left; color: var(--text); }
  .cap-open:active { background: var(--surf-2); }
  .cap-n { font: 700 11px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
  .cap-n b { font: 600 16px/1 var(--display); letter-spacing: 0; color: var(--yolk-ink); }
  .cap-more { justify-self: end; display: inline-flex; align-items: center; gap: 3px; padding: 6px 8px 6px 11px; border-radius: 999px; background: var(--mint-100); box-shadow: inset 0 0 0 1px rgba(63, 174, 132, .35); color: var(--jade-700); font: 700 13px/1 var(--body); white-space: nowrap; }
  .cap-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .cap-open.ex .cap-more { grid-column: 1 / -1; justify-self: start; }
  .cap-t { grid-column: 1 / -1; font: 600 16px/1.22 var(--display); letter-spacing: -.01em; color: var(--teak-900); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cap-t.anim { animation: fadeIn .3s ease both; }
  .cap-btns { flex: none; display: flex; align-items: center; gap: 6px; }
  .cap-btns .ic { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--teak-900); display: grid; place-items: center; }
  .cap-btns .ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
  .cap-btns .ic[data-c="motion"] svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
  .cap-btns .play { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--yolk); color: var(--teak); font: 700 13.5px/1 var(--body); box-shadow: inset 0 -3px 0 rgba(120, 70, 0, .22); }
  .cap-btns .play svg { width: 17px; height: 17px; fill: currentColor; }
  .cap-btns .play.wide { width: auto; padding: 0 16px 0 13px; border-radius: 999px; }
  .cap-prog { position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--line); overflow: hidden; }
  .cap-prog span { display: block; height: 100%; background: var(--yolk-deep); transform-origin: 0 50%; transform: scaleX(0); transition: transform .12s linear; }
  /* one-time coach line above the caption bar */
  .coach { position: absolute; left: 6px; right: 6px; bottom: calc(100% + 10px); padding: 10px 14px; border-radius: 14px; background: var(--teak-900); color: #fff; font: 600 13.5px/1.4 var(--body); box-shadow: 0 12px 26px -12px rgba(42, 26, 18, .6); animation: fadeIn .4s .6s ease both; }
  .coach::after { content: ""; position: absolute; left: 28px; bottom: -6px; width: 12px; height: 12px; background: var(--teak-900); transform: rotate(45deg); border-radius: 2px; }

  /* Scrim + detail card, fixed to the screen so they never ride the page */
  /* hidden (not just transparent) while the card is closed, so screen readers never reach it */
  .scrim { display: block; position: fixed; inset: 0; z-index: 45; border: 0; padding: 0; background: rgba(30, 18, 12, .3); opacity: 0; visibility: hidden; pointer-events: none; touch-action: none; transition: opacity .3s ease, visibility 0s linear .3s; }
  .live.card-open .scrim { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease, visibility 0s; }
  .panel { position: fixed; z-index: 46; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: 640px; margin: 0 auto; height: 74vh; height: 74svh; max-height: calc(100svh - 56px); border-radius: 24px 24px 0 0; border-bottom: 0;
    background: var(--surf-solid); backdrop-filter: none; -webkit-backdrop-filter: none; padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -18px 50px -20px rgba(42, 26, 18, .45);
    transform: translateY(calc(100% + 30px)); visibility: hidden; transition: transform .3s cubic-bezier(.5, 0, .75, 0), visibility 0s linear .3s; }
  .live.card-open .panel { transform: translateY(0); visibility: visible; transition: transform .6s var(--spring), visibility 0s; }
  .panel.dragging { transition: none !important; }
  /* card header: grabber, where you are, close; it stays put while the body scrolls */
  .card-head { display: block; flex: none; padding: 0 10px 0 18px; border-bottom: 1px solid transparent; transition: border-color .2s; touch-action: none; }
  .panel.scrolled .card-head { border-bottom-color: var(--line-2); }
  .grip { display: grid; place-items: center; height: 18px; cursor: pointer; }
  .grip i { width: 36px; height: 4px; border-radius: 2px; background: #d6cdbf; }
  .card-bar { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-bottom: 6px; }
  .card-lbl { flex: 1; min-width: 0; font: 700 12px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-lbl b { font: 600 20px/1 var(--display); letter-spacing: 0; color: var(--yolk-ink); margin-right: 2px; }
  .card-x { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surf-2); color: var(--teak-900); }
  .card-x::after { content: ""; position: absolute; inset: -4px; }
  .card-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  .panel-body { padding: 6px 18px 18px; }
  .panel .p-eye { display: none; }
  .panel-ctl { padding: 10px 12px 12px; }
  .step.anim { animation: fadeIn .24s ease both; }
  .p-t { font-size: 22px; margin: 0 0 6px; }
  .p-d { font-size: 14px; }
  .dots button { width: 26px; height: 32px; }

  .features { padding-top: 14px; }
  .back-feat { bottom: auto; top: calc(var(--hdr) + 58px); left: 50%; }
}

/* ---------- Phones (by width): header, features, footer, mock screens ---------- */
@media (max-width: 760px) {
  :root { --hdr: 56px; }
  /* a jump to the features lands right under the header, so no part of the caption bar shows above them */
  html { scroll-padding-top: var(--hdr); }
  .top { padding: 0 10px 0 12px; gap: 8px; background: linear-gradient(180deg, rgba(247, 244, 238, .95) 0%, rgba(247, 244, 238, .72) 62%, rgba(247, 244, 238, 0) 100%); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* fully opaque once the stage has scrolled away: nothing from the city or the caption bar shows through */
  .top.solid { background: var(--marble); border-bottom-color: rgba(42, 26, 18, .08); }
  .brand { font-size: 1.2rem; gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .page-tag, .hide-sm { display: none; }
  .show-sm { display: inline; }
  .top-nav { gap: 4px; }
  .top-link { padding: 0 8px; font-size: .9rem; }
  .top-back { gap: 2px; padding: 0 8px 0 4px; }
  .top-back svg { width: 18px; height: 18px; }
  .top .btn-sm { min-height: 40px; padding: 0 14px; font-size: .86rem; margin-left: 2px; }

  .ms { padding: 11px 12px 12px; }
  .ms-barrow { grid-template-columns: 84px 1fr 42px; }
  .ms-tgt { padding: 0 50px 0 92px; }
  .ms-grid4 { grid-template-columns: 74px repeat(3, 1fr); }
  .ms-split { grid-template-columns: 1fr; }
  .ms-split.inv { grid-template-columns: .8fr 1.5fr; }
  /* mock micro text: never below 11px on a phone */
  .ms-ill, .ms-gh, .ms-kpi span, .ms-list-h, .ms-tr.th, .ms-mix span, .ms-pill, .ms-tgt, .hm-d, .ms-item em, .ms-tr em, .ms-phone-h span, .ms-steps li, .ms-legend, .ms-photos figcaption, .ms-mail span, .ms-kpi em, .ms-paper { font-size: 11px; }
  .hm-h, .ms-item .lk { font-size: 10.5px; }
  .ms-kpi b { font-size: 22px; } .ms-kpis.three .ms-kpi b { font-size: 19px; }
  .ms-v { font-size: 13px; }

  .features { padding-bottom: 56px; }
  .wrap { padding: 0 16px; }
  .f-head h2 { margin: 10px 0 10px; }
  .f-lede { font-size: 15px; }
  .f-body { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  /* every department in view at once: a two-column grid, no sideways scrolling */
  .f-tabs { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .f-tabs button { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 14px; background: #fff; }
  .f-tabs button[aria-pressed="true"] { box-shadow: none; border-color: var(--yolk-deep); background: var(--yolk-dim); }
  .f-pane { padding: 20px 18px 22px; border-radius: 18px; }
  .f-pane h3 { font-size: 22px; }
  .f-sme { font-size: 16px; }
  .f-meta { grid-template-columns: 1fr; gap: 14px; }
  .fcaps { grid-template-columns: 1fr; }
  .fcaps.is-clipped li:nth-child(n + 7) { display: none; }
  .f-more { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 46px; margin-top: 10px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--jade-700); font: 700 14.5px/1 var(--body); }
  .f-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .foot-cta { margin-left: 0; flex-basis: 100%; }
}

/* ---------- Phones on their side: the city on the left, a compact panel on the right ----------
   Same query as mqLand in live.js. */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --hdr: 48px; --panel-w: min(42vw, 400px); }
  .top { padding: 0 12px; gap: 10px; }
  .brand { font-size: 1.15rem; gap: 7px; }
  .brand img { width: 26px; height: 26px; }
  .page-tag { display: none; }
  .top-link { min-height: 40px; }
  .top .btn-sm { min-height: 36px; padding: 0 14px; font-size: .86rem; }
  .live { height: 100vh; height: 100svh; min-height: 0; }
  .intro { left: 10px; top: calc(var(--hdr) + 6px); }
  .intro-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mode { padding: 3px; }
  .mode button { height: 36px; padding: 0 12px; font-size: 13px; }
  .key-btn { height: 38px; }
  .still-note { display: inline-block; margin-top: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-2); background: rgba(255, 253, 249, .92); box-shadow: inset 0 0 0 1px var(--line-2); }
  .city-foot { display: none; }
  .motion { top: auto; right: auto; left: 10px; bottom: 8px; width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; box-shadow: var(--shadow); }
  .motion span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .panel { top: calc(var(--hdr) + 6px); right: 6px; bottom: 6px; border-radius: 18px; }
  .panel-body { padding: 12px 16px 16px; }
  .panel-ctl { padding: 6px 10px 8px; }
  .ctl { gap: 6px; }
  .ctl .ic, .ctl .play { height: 36px; }
  .ctl .ic { width: 36px; }
  .dots button { height: 24px; }
  .prog { margin-top: 4px; }
  .p-n { font-size: 19px; }
  .p-t { font-size: 19px; margin: 6px 0 4px; }
  .p-d { font-size: 13.5px; }
  .ba { margin: 10px 0; }
  .back-feat { bottom: 56px; left: calc((100% - var(--panel-w)) / 2); }
}

@media (max-width: 380px) {
  .brand span { display: none; }
  .top .btn-sm { padding: 0 12px; font-size: .82rem; }
  .cap-t { font-size: 15px; }
  .mode button { padding: 0 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
