/* LifeOS · investors page (market deck, сентябрь 2026). Sits on krea.css + pages.css.
   v6 tokens only, no raw colours. Motion: opacity/transform only (reveals come from .rv in krea.js). */

.pg--investors { background: var(--paper);
  --inv-1: var(--status-info);                                              /* #006bba */
  --inv-2: var(--status-info-soft);                                         /* #ddedff */
  --inv-3: var(--surface-sunken);                                           /* #eeeef1, neutral third step */
  --inv-soft: var(--status-info-soft);                                      /* text on the blue fill */
  --inv-on-1: var(--text-on-accent); }
.inv-hero .lead { max-width: 40em; }
.inv-lead-sub { display: block; margin-top: var(--s2); font-size: 15px; line-height: 1.5; color: var(--text-faint); }
.inv-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.inv-toc .chip { height: 36px; padding: 0 14px; font-size: 14px; }

.inv-sec { padding-top: var(--sec); scroll-margin-top: calc(var(--hd-h) + 8px); }
.inv-sec--first { padding-top: clamp(40px, 5vw, 72px); }
.inv-sec .head { margin-bottom: clamp(32px, 4vw, 56px); }
.inv-sec .head .pg-kicker { margin-bottom: var(--s2); }

.inv-card { border-radius: var(--r-l); background: var(--card); padding: clamp(20px, 2.6vw, 36px); }
.inv-card--blue { background: var(--inv-1); color: var(--inv-on-1); }
.inv-h3 { font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.inv-p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--text-muted); max-width: 44em; text-wrap: pretty; }
.inv-card--blue .inv-p { color: var(--inv-soft); }
.inv-src { margin-top: var(--s3); font-size: 13px; line-height: 1.55; color: var(--text-faint); max-width: 72em; text-wrap: pretty; }

/* ---------- 01 · market share bubbles (area = share) ---------- */
.inv-sky { position: relative; border-radius: var(--r-xl); background: var(--card); padding: clamp(20px, 3vw, 40px); overflow: hidden; }
.inv-rail { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; font-weight: 500; color: var(--text-faint); }
.inv-rail span:nth-child(2) { color: var(--text-muted); }
.inv-bubs { --u: clamp(36px, 10.5vw, 52px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(8px, 1.4vw, 20px);
  padding: clamp(32px, 5vw, 72px) 0 clamp(24px, 4vw, 56px); }
.bub { --d0: calc(var(--k) * var(--u)); position: relative; flex: none; width: var(--d0); height: var(--d0); margin: 0; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: var(--paper); color: var(--text-primary); box-shadow: var(--elev-1);
  opacity: 0; transform: scale(.86); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.inv-sky.in .bub { opacity: 1; transform: none; }
.inv-sky.in .bub:nth-child(2) { transition-delay: .08s; } .inv-sky.in .bub:nth-child(3) { transition-delay: .16s; }
.inv-sky.in .bub:nth-child(n+4) { transition-delay: .24s; }
.no-js .bub { opacity: 1; transform: none; }
.bub--1 { background: var(--inv-1); color: var(--inv-on-1); box-shadow: none; }
.bub--2 { background: var(--inv-2); box-shadow: none; }
.bub--3 { background: var(--inv-3); box-shadow: none; }
.bub--2 figcaption span { color: var(--text-primary); }
.bub-logo { width: calc(var(--d0) * .16); height: calc(var(--d0) * .16); min-width: 18px; min-height: 18px; fill: currentColor; }
.bub-logo--line { fill: none; }
.bub figcaption { display: grid; gap: 2px; }
.bub figcaption b { font-weight: 500; font-size: clamp(14px, calc(var(--d0) * .1), 40px); line-height: 1; letter-spacing: -.03em; }
.bub figcaption span { font-size: clamp(11px, calc(var(--d0) * .042), 16px); color: var(--text-muted); font-feature-settings: "tnum"; white-space: nowrap; }
.bub--1 figcaption span { color: var(--inv-soft); }
/* small ones: the label sits under the circle */
.bub--s { margin-bottom: 44px; }
.bub--s figcaption { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; }
.bub--s figcaption b { font-size: 14px; letter-spacing: -.01em; }
.bub--s figcaption span { font-size: 12px; }
.bub--s .bub-logo { width: 40%; height: 40%; }
.inv-sky .pg-tags { margin-top: 0; }

/* ---------- 02 · TAM / SAM / SOM ---------- */
.inv-tam { display: grid; gap: var(--s2); }
.inv-tam-list { display: grid; gap: var(--s2); align-content: start; }
.inv-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; color: var(--text-muted); }
.inv-k b { font: 500 13px/1 var(--mono); letter-spacing: .02em; color: var(--text-primary); padding: 6px 10px; border-radius: 999px; background: var(--paper); }
.inv-tam-i:nth-child(1) .inv-k b { background: var(--inv-3); color: var(--text-primary); }
.inv-tam-i:nth-child(2) .inv-k b { background: var(--inv-2); }
.inv-card--blue .inv-k { color: var(--inv-soft); }
.inv-card--blue .inv-k b { background: var(--paper); color: var(--inv-1); }
.inv-v { margin-top: var(--s3); font-size: clamp(44px, 5.4vw, 80px); font-weight: 500; line-height: .95; letter-spacing: -.045em; font-feature-settings: "tnum"; }
.inv-tam-list .pg-tags { margin-top: var(--s1); }
.inv-tam-fig { display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); }
.inv-rings { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.ring { stroke: none; }
.ring--tam { fill: var(--inv-3); }
.ring--sam { fill: var(--inv-2); }
.ring--som { fill: var(--inv-1); }
.ring-t { font: 500 15px var(--mono); fill: var(--text-muted); text-anchor: middle; letter-spacing: .04em; }
.ring-v { font: 500 30px var(--sans); fill: var(--text-primary); text-anchor: middle; letter-spacing: -.03em; }
.ring-t--f { fill: var(--inv-soft); }
.ring-v--f { fill: var(--inv-on-1); font-size: 22px; }
@media (min-width: 960px) { .inv-tam { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- 03 · demand bars ---------- */
.inv-bars { display: grid; gap: var(--s2); }
.inv-bar-top { display: grid; gap: var(--s2); }
.inv-bar-num { font-size: clamp(36px, 4vw, 60px); font-weight: 500; line-height: 1; letter-spacing: -.04em; font-feature-settings: "tnum"; }
.inv-bar-num small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; letter-spacing: -.01em; color: var(--text-muted); font-weight: 400; }
@media (min-width: 760px) { .inv-bar-top { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s4); } .inv-bar-num { text-align: right; } }
.inv-track { display: flex; gap: 3px; height: 52px; margin-top: var(--s3); border-radius: 14px; overflow: hidden; background: var(--paper); }
.seg { flex: 0 1 var(--w); min-width: 4px; display: flex; align-items: center; padding: 0 12px; overflow: hidden;
  opacity: 0; transform: translate3d(-12px, 0, 0); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.inv-bar.in .seg { opacity: 1; transform: none; }
.inv-bar.in .seg:nth-child(2) { transition-delay: .12s; } .inv-bar.in .seg:nth-child(3) { transition-delay: .24s; } .inv-bar.in .seg:nth-child(4) { transition-delay: .36s; }
.no-js .seg { opacity: 1; transform: none; }
.seg b { font: 500 13px/1 var(--mono); white-space: nowrap; }
.seg--1 { background: var(--inv-1); color: var(--inv-on-1); }
.seg--2 { background: var(--inv-2); color: var(--text-primary); }
.seg--3 { background: var(--inv-3); color: var(--text-primary); }
.seg--4 { background: var(--card-2); color: var(--text-muted); }
.inv-track .seg:first-child[style*="--w:1%"] { padding: 0; }
.inv-track .seg:only-child { flex-basis: 100%; }
.inv-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--text-faint); }
.inv-legend { display: grid; gap: 10px 24px; margin-top: var(--s3); }
@media (min-width: 760px) { .inv-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .inv-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.inv-legend li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--text-muted); }
.inv-legend b { display: block; font-weight: 500; color: var(--text-primary); }
.sw { flex: none; width: 12px; height: 12px; margin-top: 3px; border-radius: 4px; }
.sw--1 { background: var(--inv-1); } .sw--2 { background: var(--inv-2); } .sw--3 { background: var(--inv-3); } .sw--4 { background: var(--card-2); }

/* ---------- 04 · competitors ---------- */
.inv-comp { padding: clamp(8px, 1.2vw, 16px) clamp(16px, 2.4vw, 32px); }
.crow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "logo name share" "logo niche niche" "logo raised val";
  gap: 4px 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.crow:first-child, .crow--th + .crow { border-top: 0; }
.crow--th { display: none; }
.crow-logo { grid-area: logo; align-self: start; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; background: var(--paper); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.crow-logo img { width: 100%; height: 100%; object-fit: cover; }
.crow-logo--multi { grid-template-columns: 1fr 1fr; gap: 2px; padding: 7px; }
.crow-logo--multi svg { width: 11px; height: 11px; fill: var(--text-primary); }
.crow-logo--txt .ico { width: 18px; height: 18px; color: var(--text-faint); }
.crow-name { grid-area: name; font-size: 17px; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.crow-niche { grid-area: niche; font-size: 14px; line-height: 1.4; color: var(--text-muted); }
.crow-share { grid-area: share; font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-feature-settings: "tnum"; text-align: right; white-space: nowrap; }
.crow-raised, .crow-val { font-size: 13px; color: var(--text-muted); font-feature-settings: "tnum"; white-space: nowrap; }
.crow-raised { grid-area: raised; }
.crow-val { grid-area: val; text-align: right; }
.crow-raised:empty, .crow-val:empty { display: none; }
.crow-raised[data-l]::before, .crow-val[data-l]::before { content: attr(data-l) " "; color: var(--text-faint); }
@media (min-width: 1000px) {
  .crow, .crow--th { grid-template-columns: 44px minmax(0, 1.15fr) minmax(0, 2fr) 9em 8em 9em; grid-template-areas: none; gap: 24px; padding: 18px 0; }
  .crow--th { display: grid; padding: 14px 0 12px; font-size: 11px; line-height: 1.3; color: var(--text-faint); align-items: end; }
  .crow--th span:nth-child(n+4) { text-align: right; }
  .crow > * { grid-area: auto; }
  .crow-logo { width: 44px; height: 44px; align-self: center; }
  .crow-raised, .crow-val { display: block; font-size: 16px; color: var(--text-primary); text-align: right; margin: 0; justify-self: stretch; }
  .crow-raised:empty, .crow-val:empty { display: block; }
  .crow-raised[data-l]::before, .crow-val[data-l]::before { content: none; }
  .crow-niche { font-size: 15px; }
}
.inv-os { margin-top: var(--s2); border-radius: var(--r-l); background: var(--surface-inverse); color: var(--text-inverse); padding: clamp(24px, 3vw, 40px);
  display: grid; gap: var(--s3); align-items: center; }
.inv-os-id { display: flex; align-items: center; gap: 16px; }
.inv-os-id img { width: 56px; height: 56px; border-radius: 16px; flex: none; }
.inv-os-id b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.inv-os-id span { display: block; margin-top: 4px; font-size: 15px; color: var(--text-inverse-muted); }
.inv-os-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-os-chips li { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--accent-pressed); color: var(--text-inverse); font-size: 14px; font-weight: 500; white-space: nowrap; }
.inv-os-stmt { font-size: clamp(28px, 3vw, 44px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.inv-os-stmt .dim { color: var(--text-inverse-muted); }
@media (min-width: 1100px) { .inv-os { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4); } .inv-os-stmt { text-align: right; max-width: 11em; } }

/* ---------- 05 · growth charts ---------- */
.inv-charts { display: grid; gap: var(--s2); }
@media (min-width: 1100px) { .inv-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inv-chart { display: flex; flex-direction: column; }
.inv-plot { position: relative; margin-top: var(--s4); padding-left: 64px; padding-bottom: 28px; }
.inv-area { position: relative; height: clamp(220px, 26vw, 320px); }
.inv-y { position: absolute; left: 0; top: 0; bottom: 28px; width: 56px; font-size: 11px; color: var(--text-faint); }
.inv-y span { position: absolute; left: 0; transform: translateY(-50%); white-space: nowrap; }
.inv-x { position: absolute; left: 64px; right: 0; bottom: 0; height: 16px; font-size: 11px; color: var(--text-faint); }
.inv-x span { position: absolute; top: 0; transform: translateX(-50%); }
.inv-x span:first-child { transform: none; }
.inv-grid, .inv-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.inv-grid .grid line { stroke: var(--border-subtle); stroke-width: 1; vector-effect: non-scaling-stroke; }
.inv-line .ln { fill: none; stroke: var(--inv-1); stroke-width: 2.5; stroke-linecap: round; }
.inv-line .g0 { stop-color: var(--inv-1); stop-opacity: .2; } .inv-line .g1 { stop-color: var(--inv-1); stop-opacity: 0; }
.inv-wipe, .inv-wipe-in { position: absolute; inset: 0; transform: translate3d(-100%, 0, 0); transition: transform 1.8s var(--ease) .15s; }
.inv-wipe { overflow: hidden; }
.inv-wipe-in { transform: translate3d(100%, 0, 0); }
.inv-chart.in .inv-wipe, .inv-chart.in .inv-wipe-in, .no-js .inv-wipe, .no-js .inv-wipe-in { transform: none; }
.inv-shade { position: absolute; top: 0; bottom: 0; background: var(--inv-3); border-radius: 8px; opacity: .55; }
.inv-vl { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--border-strong); }
.inv-vl > span { position: absolute; left: 8px; top: 0; font-size: 12px; line-height: 1.3; color: var(--text-muted); width: max-content; max-width: 16em; }
.inv-vl--r > span { left: auto; right: 8px; text-align: right; }
.inv-note { position: absolute; left: 0; bottom: 10px; font-size: 12px; color: var(--text-faint); max-width: 40%; line-height: 1.3; }
.inv-fc { position: absolute; bottom: 10px; margin-left: 8px; font-size: 11px; color: var(--inv-1); text-transform: uppercase; letter-spacing: .04em; }
.pt { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--inv-1); }
.pt--end { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--inv-1); }
.cm { position: absolute; transform: translate(calc(-100% - 10px), calc(-100% - 6px)); font-size: clamp(16px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.03em; white-space: nowrap; font-feature-settings: "tnum"; }
.cm--r { transform: translate(10px, -4px); font-size: 11px; color: var(--text-muted); letter-spacing: .02em; }
.inv-chart .pt, .inv-chart .cm { opacity: 0; transition: opacity 1s var(--ease); }
.inv-chart.in .pt, .inv-chart.in .cm { opacity: 1; transition-delay: 1.2s; }
.no-js .inv-chart .pt, .no-js .inv-chart .cm { opacity: 1; }
.inv-chart .inv-src { margin-top: auto; padding-top: var(--s3); }
@media (max-width: 759px) {
  .inv-plot { padding-left: 52px; }
  .inv-y { width: 48px; font-size: 10px; }
  .inv-x { left: 52px; font-size: 10px; }
  .inv-chart:last-child .inv-x span:nth-child(even) { display: none; }
  .inv-note { display: none; }
  .inv-vl span { font-size: 11px; max-width: 11em; }
}

/* Gartner table: native disclosure */
.inv-gart { margin-top: var(--s2); padding: 0; }
.inv-gart summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--s3); padding: clamp(20px, 2.6vw, 32px) clamp(20px, 2.6vw, 36px); border-radius: var(--r-l); }
.inv-gart summary::-webkit-details-marker { display: none; }
.inv-gart summary .pg-kicker { grid-column: 1; margin: 0; }
.inv-gart-h { grid-column: 1; font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.inv-gart-hint { grid-column: 1; font-size: 14px; color: var(--text-faint); }
.inv-gart-ic { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; transition: transform .35s var(--ease); }
.inv-gart[open] .inv-gart-ic { transform: rotate(45deg); }
.inv-gart-b, .inv-gart[open] .inv-gart-a { display: none; }
.inv-gart[open] .inv-gart-b { display: inline; }
.inv-gart-body { padding: 0 clamp(20px, 2.6vw, 36px) clamp(20px, 2.6vw, 36px); }
.inv-gart-body > .inv-p { margin-top: 0; }
.inv-tbl-wrap { margin-top: var(--s3); overflow-x: auto; border-radius: var(--r-m); background: var(--paper); }
.inv-tbl { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; font-feature-settings: "tnum"; }
.inv-tbl th { text-align: left; font: 500 11px/1.3 var(--mono); color: var(--text-faint); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.inv-tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.inv-tbl tr:last-child td { border-bottom: 0; }
.inv-tbl td:first-child { font-weight: 500; }
.inv-tbl td.f { font-weight: 600; color: var(--inv-1); }
.inv-tbl em { font-style: normal; font-size: 12px; color: var(--text-muted); margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--card); }
.inv-gart-body .pg-tags { margin-top: var(--s2); }


.inv-fin { display: grid; gap: var(--s3); }
.inv-fin-t { font-size: clamp(40px, 6vw, 96px); font-weight: 500; line-height: .96; letter-spacing: -.045em; text-wrap: balance; max-width: 12em; }
.inv-fin-t .dim { display: block; color: var(--inv-1); }
.inv-fin-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); font-size: 14px; color: var(--text-faint); }

/* label placement: end points sit left of the dot, mid points above-left; labels get the card fill so grid/dash lines pass behind */
.cm { line-height: 1.2; }
.cm--end { transform: translate(calc(-100% - 14px), -50%); }
.cm--r { transform: translate(calc(-100% - 10px), calc(-100% - 2px)); }
@media (min-width: 1000px) { .inv-bubs { --u: clamp(36px, calc((100vw - 300px) / 26.5), 56px); flex-wrap: nowrap; } }
@media (max-width: 999px) {
  .crow { grid-template-areas: "logo name share" "logo niche niche" "logo raised raised" "logo val val"; }
  .crow-val { text-align: left; }
}
@media (max-width: 759px) {
  .inv-plot { margin-top: calc(var(--s4) + 36px); }
  .inv-vl span { top: -40px; }
  .inv-chart:first-child .inv-x span:nth-child(2) { display: none; }
}
.inv-sky .pg-tag, .inv-tam-list .pg-tag, .inv-gart-body .pg-tag { background: var(--paper); }
.inv-tam-list .pg-tag { background: var(--card); }

.inv-sec--fin { padding-top: clamp(24px, 3vw, 48px); }
.nw { white-space: nowrap; }

/* ---------- 06 · product: «лучшее из двух миров» (2026-10-22, Nick: «два телефона объединялись, два интерфейса превращались
   в LifeOS», principle one-to-one with slide 06 of deck-22-09-26-v2). Sticky scene: investors.js adds .s1 (ChatGPT + Telegram
   slide to the middle and dissolve, LifeOS phone appears, its rows fly in from both sides) and .s2 (finale: wordmark + line).
   The stage is drawn at a fixed size (wide 1240 x 600, phone 600 x 920) so the three phones keep their proportions;
   --k scales it into the free space, --ty centres it. Motion: transform/opacity only. Phone frame = .phone from krea.css. ---------- */
.mg { height: 320vh; height: 320svh; padding-top: 0; padding-bottom: 0; }
.mg-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.mg-in { position: relative; height: 100%; display: flex; flex-direction: column; padding-top: calc(var(--hd-h) + 8px); }
.mg .head { margin-bottom: clamp(12px, 2vw, 28px); }
.mg-box { position: relative; flex: 1 1 auto; min-height: 0; margin-bottom: 40px; }
.mg-stage { --dw: 1240; --dh: 600; --dx: 214px; position: absolute; left: 50%; top: 0; width: 1240px; height: 600px;
  transform: translate3d(-50%, var(--ty, 0px), 0) scale(var(--k, 1)); transform-origin: 50% 0; }
.mg .phone { --w: 280px; }

.mg-dev { position: absolute; top: 0; height: 600px; display: flex; align-items: center; gap: 26px;
  transition: transform 1.2s var(--ease), opacity .5s linear; }
.mg-dev--gpt { left: 0; z-index: 3; }
.mg-dev--tg { right: 0; z-index: 3; }
.mg-dev--os { left: 480px; z-index: 1; opacity: 0; transform: scale(.86); transition: transform .5s var(--ease), opacity .3s linear; }

.mg-pm { width: 240px; display: grid; gap: 12px; }
.mg-pm li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.mg-pm .ico { width: 20px; height: 20px; margin-top: 1px; }
.mg-pm .ok .ico { color: var(--inv-1); }
.mg-pm .no { color: var(--text-muted); }
.mg-pm .no .ico { color: var(--text-faint); }
.mg-pm .f { color: var(--inv-1); font-weight: 600; }
.mg-pm--l, .mg-pm--r { transition: opacity .45s var(--ease); }

/* step 1: the two phones slide together and dissolve, LifeOS takes their place */
.mg.s1 .mg-pm--l, .mg.s1 .mg-pm--r { opacity: 0; }
.mg.s1 .mg-dev--gpt { transform: translate3d(var(--dx), 0, 0) scale(.96) rotate(-2deg); opacity: 0; transition: transform 1.2s var(--ease), opacity .3s linear .75s; }
.mg.s1 .mg-dev--tg { transform: translate3d(calc(var(--dx) * -1), 0, 0) scale(.96) rotate(2deg); opacity: 0; transition: transform 1.2s var(--ease), opacity .3s linear .75s; }
.mg.s1 .mg-dev--os { opacity: 1; transform: none; transition: transform 1s var(--ease) .4s, opacity .2s linear .4s; }

.mgo-row { transition: opacity .7s var(--ease), transform .9s var(--ease); }
.mgo-row[data-side="l"] { opacity: 0; transform: translate3d(-70px, 0, 0); }
.mgo-row[data-side="r"] { opacity: 0; transform: translate3d(70px, 0, 0); }
.mgo-hd, .mgo-tabs, .mgo-add, .mgo-comp { opacity: 0; transition: opacity .6s var(--ease); }
.mg-pm--os li { opacity: 0; transform: translate3d(24px, 0, 0); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.mg.s1 .mgo-hd, .mg.s1 .mgo-tabs, .mg.s1 .mgo-add, .mg.s1 .mgo-comp { opacity: 1; transition-delay: .45s; }
.mg.s1 .mgo-row { opacity: 1; transform: none; transition-delay: calc(.95s + var(--i) * .06s); }
.mg.s1 .mg-pm--os li { opacity: 1; transform: none; transition-delay: calc(1.45s + var(--i) * .06s); }

/* step 2: finale, the list gives way to the wordmark and the line */
.mg-fin { position: absolute; left: 0; right: 0; top: 50%; display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translate3d(0, calc(-50% + 24px), 0); transition: opacity .8s var(--ease), transform 1s var(--ease); pointer-events: none; }
.mg-fin-mark { width: 440px; font: 600 88px/1 var(--sans); letter-spacing: -.05em; }
.mg-fin-mark .br, .mgo-mark .br { color: var(--logo-accent); }
.mg-fin-t { width: 440px; text-align: right; text-wrap: balance; font-size: 38px; font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.mg-fin-t .f { color: var(--inv-1); }
.mg.s2 .mg-pm--os li { opacity: 0; transform: translate3d(24px, 0, 0); transition-delay: 0s; }
.mg.s2 .mg-fin { opacity: 1; transform: translate3d(0, -50%, 0); transition-delay: .3s; }

.mg-hint { position: absolute; left: var(--pad); right: var(--pad); bottom: max(14px, env(safe-area-inset-bottom)); display: grid; justify-items: center; text-align: center; font-size: 12px; color: var(--text-faint); }
.mg-hint span { grid-area: 1 / 1; transition: opacity .6s var(--ease); }
.mg-hint [data-s="1"], .mg.s1 .mg-hint [data-s="0"] { opacity: 0; }
.mg.s1 .mg-hint [data-s="1"] { opacity: 1; }
.mg.s2 .mg-hint span { opacity: 0; }

/* phone screens (drawn at the 280 px phone; the whole stage is scaled) */
.mg-ph .phone-scr { display: flex; flex-direction: column; padding-bottom: 22px; font-size: 15px; line-height: 1.25; letter-spacing: -.01em; text-align: left; }
.mg-ph svg { width: 20px; height: 20px; flex: none; }
.mg .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 600 14px/1 var(--sans); letter-spacing: 0; }
.mg .av svg { width: 20px; height: 20px; }
.av--ink, .av--ag { background: var(--surface-inverse); color: var(--text-inverse); }
.av--ag { border-radius: 12px; }
.av--sky { background: var(--tone-sky-surface); color: var(--tone-sky-ink); }
.av--mint { background: var(--tone-mint-surface); color: var(--tone-mint-ink); }
.av--sand { background: var(--tone-sand-surface); color: var(--tone-sand-ink); }
.av--rose { background: var(--tone-rose-surface); color: var(--tone-rose-ink); }
.bdg { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--status-info); color: var(--text-on-accent); font: 600 12px/1 var(--sans); }
/* ChatGPT */
.mgg { padding-left: 12px; padding-right: 12px; }
.mgg-search { display: flex; align-items: center; gap: 10px; height: 40px; margin: 6px 0 10px; padding: 0 12px; border-radius: 12px; background: var(--surface-sunken); color: var(--text-faint); font-size: 16px; }
.mgg-search span { flex: 1; }
.mgg-search .mgg-pen { color: var(--text-primary); }
.mgg-row { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px; font-size: 16px; font-weight: 500; }
.mgg-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); }
.mgg-ic svg { width: 17px; height: 17px; }
.mgg-ic--dark { background: var(--surface-media); color: var(--text-on-accent); }
.mgg-ic--dark svg { fill: currentColor; }
.mgg-grp { font-size: 13px; font-weight: 600; color: var(--text-faint); padding: 14px 6px 4px; }
.mgg-chat { height: 38px; line-height: 38px; padding: 0 6px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgg-user { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 10px 6px 0; font-size: 16px; font-weight: 500; }
.mgg-user .av { width: 34px; height: 34px; font-size: 14px; }
.mgg-user svg { margin-left: auto; color: var(--text-faint); }
/* Telegram */
.mgt-hd { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 8px; font-size: 17px; }
.mgt-hd b { font-weight: 600; }
.mgt-a, .mgt-hd svg { color: var(--status-info); }
.mgt-search { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; margin: 0 12px 6px; border-radius: 10px; background: var(--surface-sunken); color: var(--text-faint); font-size: 16px; }
.mgt-search svg { width: 17px; height: 17px; }
.mgt-tabs { display: flex; gap: 15px; padding: 0 14px; font-size: 15px; color: var(--text-faint); }
.mgt-tabs span { position: relative; padding: 6px 0 9px; }
.mgt-tabs .on { color: var(--status-info); font-weight: 500; }
.mgt-tabs .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--status-info); }
.mgt-row, .mgo-row { display: flex; align-items: center; gap: 11px; padding: 7px 14px 7px 12px; }
.mgt-t, .mgo-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.mgt-t b, .mgo-t b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgt-t > span, .mgo-t > span { display: block; font-size: 14px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgt-m, .mgo-m { display: grid; justify-items: end; gap: 5px; align-self: start; padding-top: 2px; }
.mgt-m i, .mgo-m i { font-style: normal; font-size: 13px; color: var(--text-faint); }
.mgt-bar { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 6px 0; font-size: 10px; color: var(--text-faint); }
.mgt-bar span { display: grid; justify-items: center; gap: 3px; }
.mgt-bar svg { width: 24px; height: 24px; }
.mgt-bar .on { color: var(--status-info); }
/* LifeOS */
.mgo-hd { display: flex; justify-content: space-between; align-items: center; padding: 4px 16px 10px; }
.mgo-mark { font: 600 21px/1 var(--sans); letter-spacing: -.04em; }
.mgo-tabs { display: flex; gap: 6px; padding: 0 12px 8px; }
.mgo-tabs span { height: 28px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; font: 500 12px/1 var(--sans); background: var(--surface-sunken); color: var(--text-muted); }
.mgo-tabs .on { background: var(--surface-inverse); color: var(--text-inverse); }
.mgo-t b { font-size: 15px; font-weight: 500; }
.mgo-t b em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--inv-1); margin-left: 4px; }
.mgo-t .mgo-vc { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.mgo-m .bdg { background: var(--surface-inverse); color: var(--text-inverse); }
.mgo-m .mgo-chk { width: 16px; height: 16px; color: var(--inv-1); }
.mgo-add { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 12px 0; height: 42px; border-radius: 999px; background: var(--surface-inverse); color: var(--text-inverse); font-size: 14px; font-weight: 500; }
.mgo-add svg { width: 18px; height: 18px; }
.mgo-comp { margin: auto 12px 0; height: 48px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--surface-default); display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-faint); }
.mgo-mic { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-inverse); color: var(--text-inverse); display: grid; place-items: center; }
.mgo-mic svg { width: 18px; height: 18px; }

/* phone layout: the two phones side by side with their lists under them, LifeOS bigger in the middle */
@media (max-width: 759px) {
  .mg-box { margin-bottom: 34px; }
  .mg-stage { --dw: 640; --dh: 920; --dx: 160px; width: 600px; height: 920px; }
  .mg-dev { top: 40px; height: auto; flex-direction: column; align-items: stretch; gap: 24px; transform-origin: 50% 0; }
  .mg-dev--gpt .mg-pm { order: 2; }
  .mg-dev--gpt .mg-pm, .mg-dev--tg .mg-pm { width: 280px; gap: 10px; }
  .mg-pm li { grid-template-columns: 22px minmax(0, 1fr); font-size: 21px; }
  .mg-pm .ico { width: 22px; height: 22px; }
  .mg.s1 .mg-dev--gpt { transform: translate3d(var(--dx), 0, 0) scale(1.12) rotate(-2deg); }
  .mg.s1 .mg-dev--tg { transform: translate3d(calc(var(--dx) * -1), 0, 0) scale(1.12) rotate(2deg); }
  .mg-dev--os { left: 160px; top: 0; transform-origin: 50% 0; }
  .mg-dev--os .phone { transform: scale(1.25); transform-origin: 50% 0; }
  .mg-pm--os { position: absolute; left: -160px; top: 784px; width: 600px; grid-template-columns: max-content; justify-content: center; gap: 8px; }
  .mg-fin { top: 780px; flex-direction: column; justify-content: flex-start; gap: 10px; transform: translate3d(0, 24px, 0); }
  .mg.s2 .mg-fin { transform: none; }
  .mg-fin-mark { width: auto; font-size: 60px; }
  .mg-fin-t { width: auto; text-align: center; font-size: 28px; }
}
/* no script: the merged LifeOS state, still */
.no-js .mg { height: auto; }
.no-js .mg-pin { position: static; height: auto; }
.no-js .mg-box { height: 640px; }
.no-js .mg-dev--gpt, .no-js .mg-dev--tg, .no-js .mg-hint { display: none; }
.no-js .mg-dev--os, .no-js .mg-dev--os * { opacity: 1 !important; }
.no-js .mg-dev--os .mgo-row, .no-js .mg-pm--os li { transform: none !important; }
