/* Useum App (021 Originals): see useum.js. Dark 021 shell with the live editorial tokens (editorial.css); the concept
 * product surfaces (.ua-surface) are light, with lilac / lime accents. These are TEMPORARY demo tokens (the brief:
 * not a confirmed Useum identity): swap them here. */
html[data-ed="useum"] {
  --ua-paper: #f7f6f2;
  --ua-paper-2: #e6e4dc;
  --ua-ink: #1d1c22;
  --ua-ink-2: #4f4d58;
  --ua-ink-3: #6e6c77;
  --ua-lilac: #b9a8f0;
  --ua-lilac-ink: #5b47b8;
  --ua-lime: #d6f06c;
  --ua-t: 260ms;
}
[data-ed="useum"] .ed-block[id], [data-ed="useum"] .ed-anchor { scroll-margin-top: calc(var(--ed-top) + 24px); }
.ed-anchor { display: block; height: 0; overflow: hidden; }

/* ---------- shared ---------- */
.ua-h2 { font-size: clamp(2.1rem, 1.2rem + 2.4vw, 3.6rem); max-width: 18ch; }
.ua-lead { margin-top: 1.4rem; max-width: 36rem; font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: color-mix(in oklab, var(--foreground) 80%, transparent); text-wrap: pretty; }
.ua-tag { display: inline-flex; align-items: center; font-family: var(--ed-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px dashed currentColor; color: var(--ed-mute); line-height: 1.3; }
.ua-tag-ex { color: var(--ua-lime); }
.ua-glabel { font-family: var(--ed-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ua-ink-3); }
.ua-pill { display: inline-flex; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 500; line-height: 1.2; background: var(--ua-paper-2); color: var(--ua-ink-2); }
.ua-pill-stage { background: var(--ua-lime); color: var(--ua-ink); }
.ua-skel { display: grid; gap: 5px; flex: 1; min-width: 0; }
.ua-skel i { display: block; height: 6px; border-radius: 3px; background: var(--ua-paper-2); }
.ua-skel i:last-child:not(:first-child) { width: 62%; }
.ua-pmark { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--ua-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ua-surface { background: var(--ua-paper); color: var(--ua-ink); border-radius: 22px; box-shadow: 0 28px 70px -34px rgba(0,0,0,.7); }
.ua-phone { padding: 1.1rem 1.05rem 1.2rem; border-radius: 30px; border: 6px solid #0d0d10; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 70px -30px rgba(0,0,0,.8); }
.ua-app-id { font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.ua-quote { margin-top: .55rem; font-size: 1rem; line-height: 1.45; color: var(--ua-ink); }
.ua-capdots { display: flex; align-items: center; }
.ua-capdots li { width: 11px; height: 11px; border-radius: 50%; background: var(--ua-lilac); border: 2px solid var(--ua-lilac-ink); flex: none; position: relative; }
.ua-capdots li + li { margin-left: 14px; }
.ua-capdots li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 16px; height: 2px; background: var(--ua-lilac-ink); transform: translateY(-50%); }
.ua-capdots li.is-next { background: transparent; border-style: dashed; border-color: var(--ua-ink-3); }
.ua-capdots li.is-next::before { background: repeating-linear-gradient(90deg, var(--ua-ink-3) 0 3px, transparent 3px 6px); }
.ua-tab:focus-visible, .ua-link-btn:focus-visible { outline: 2px solid var(--ua-lilac); outline-offset: 3px; }

/* ---------- 01 hero ---------- */
html[data-ed="useum"] [data-ed-herocol] > p.marketing-eyebrow { order: -2; }
@media (min-width: 1024px) {
  html[data-ed="useum"] .container-lev:has(> [data-ed-herocol]) { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
  html[data-ed="useum"] .container-lev:has(> [data-ed-herocol]) > div:last-child { margin-top: 0 !important; }
  html[data-ed="useum"] [data-ed-herocol] h1 { font-size: clamp(2.7rem, 1.1rem + 3vw, 4.4rem); max-width: 13ch !important; }
}
html[data-ed="useum"] [data-ed-herocol] > p.marketing-lead { max-width: 34rem !important; }
html[data-ed="useum"] [data-ed-herocol] > .ed-more p { max-width: 34rem; }
[data-ed="useum"] [data-ed-stage] { background: radial-gradient(110% 80% at 78% 15%, color-mix(in oklab, var(--ua-lilac) 20%, transparent), transparent 60%), radial-gradient(70% 60% at 12% 95%, color-mix(in oklab, var(--ua-lime) 9%, transparent), transparent 60%), var(--ed-card) !important; }
.ua-hero { margin: 0; }
.ua-hero-cap { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.ua-hero-stage { position: relative; aspect-ratio: 10 / 7.6; }
.ua-hero-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ua-link { fill: none; stroke: color-mix(in oklab, var(--ua-lilac) 75%, transparent); stroke-width: 1.4; stroke-dasharray: 4 4; }
.ua-hlog { position: absolute; left: 0; width: 44%; transform: translateY(-50%); margin-top: 6%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem .6rem; align-items: center; padding: .75rem .85rem; border-radius: 16px; background: var(--ua-paper); color: var(--ua-ink); box-shadow: 0 18px 40px -24px rgba(0,0,0,.8); }
.ua-hlog .ua-glabel { grid-column: 1 / -1; }
.ua-hphone { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); width: 43%; display: flex; flex-direction: column; gap: .9rem; }
.ua-hprod { display: flex; gap: .7rem; align-items: center; padding: .7rem; border-radius: 14px; background: #fff; border: 1px solid var(--ua-paper-2); }
.ua-capstrip { padding: .85rem .9rem; border-radius: 16px; background: color-mix(in oklab, var(--ua-lilac) 24%, white); }
.ua-hcap { margin-top: .75rem; display: grid; gap: .65rem; }
.ua-hcap li { position: relative; display: flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 500; color: var(--ua-ink); }
.ua-hcap-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--ua-lilac); border: 2px solid var(--ua-lilac-ink); }
.ua-hcap li + li::before { content: ""; position: absolute; left: 5px; bottom: 100%; height: .65rem; width: 2px; background: var(--ua-lilac-ink); }
.ua-hcap li.is-next .ua-hcap-dot { background: transparent; border-style: dashed; border-color: var(--ua-ink-3); }
.ua-hcap li.is-next::before { background: repeating-linear-gradient(180deg, var(--ua-ink-3) 0 3px, transparent 3px 6px); }
.ua-hcap-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) {
  .ua-hero-cap { justify-content: flex-start; }
  .ua-hero-stage { aspect-ratio: auto; display: grid; gap: .6rem; }
  .ua-hero-links { display: none; }
  .ua-hlog { position: static; width: auto; transform: none; margin: 0; opacity: 1 !important; padding: .6rem .75rem; }
  .ua-hlog .ua-skel { display: none; }
  .ua-hlog .ua-glabel { grid-column: 1; }
  .ua-hphone { position: static; transform: none; width: auto; margin-top: .4rem; }
}

/* ---------- 02 living experience ---------- */
.ua-live { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: center; }
.ua-live-label { margin-top: clamp(2rem, 4vw, 3rem); }
.ua-tabs { margin-top: 1rem; display: grid; border-top: 1px solid var(--ed-faint); }
.ua-tab { display: flex; align-items: baseline; gap: 1rem; width: 100%; min-height: 52px; padding: .9rem .2rem; text-align: left; border-bottom: 1px solid var(--ed-faint); color: var(--ed-mute); font-size: 1.1rem; font-weight: 500; cursor: pointer; transition: color var(--ua-t), padding var(--ua-t); }
.ua-tab:hover { color: var(--foreground); }
.ua-tab.is-on { color: var(--foreground); padding-left: .8rem; box-shadow: inset 2px 0 0 var(--ua-lime); }
.ua-tab .ed-n { flex: none; }
.ua-live-stage { position: relative; padding: clamp(1.1rem, 2.5vw, 2rem); border-radius: 22px; border: 1px solid var(--ed-faint); background: radial-gradient(90% 70% at 85% 0%, color-mix(in oklab, var(--ua-lilac) 16%, transparent), transparent 65%), var(--ed-card); }
.ua-live-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ua-live-phone { max-width: 30rem; margin: 0 auto; }
.ua-live-top { display: flex; align-items: center; gap: .8rem; padding-bottom: .9rem; border-bottom: 1px solid var(--ua-paper-2); }
.ua-live-top > div { flex: 1; min-width: 0; display: grid; gap: .4rem; }
.ua-live-top .ua-skel { max-width: 9rem; }
.ua-live-dots li { background: var(--ua-paper); border-color: color-mix(in oklab, var(--ua-ink-3) 45%, transparent); transition: background var(--ua-t), border-color var(--ua-t); }
.ua-live-dots li.is-shown { background: var(--ua-lilac); border-style: solid; border-color: var(--ua-lilac-ink); }
.ua-live-dots li + li::before { background: color-mix(in oklab, var(--ua-ink-3) 35%, transparent); }
.ua-live-dots li.is-shown + li.is-shown::before { background: var(--ua-lilac-ink); }
.ua-logs { margin-top: .9rem; display: grid; gap: .7rem; position: relative; }
.ua-log { position: relative; padding-left: 1.5rem; }
.ua-log::before { content: ""; position: absolute; left: 3px; top: 1.05rem; width: 12px; height: 12px; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--ua-ink-3) 45%, transparent); background: var(--ua-paper); transition: background var(--ua-t), border-color var(--ua-t); }
.ua-log + .ua-log::after { content: ""; position: absolute; left: 8px; top: calc(-.7rem - 6px); height: calc(.7rem + 1.05rem + 6px); width: 2px; background: color-mix(in oklab, var(--ua-ink-3) 35%, transparent); }
.ua-log.is-shown::before { background: var(--ua-lilac); border: 2px solid var(--ua-lilac-ink); }
.ua-log.is-shown + .ua-log.is-shown::after { background: var(--ua-lilac-ink); }
.ua-log-card { padding: .75rem .85rem .85rem; border-radius: 14px; background: #fff; border: 1px solid var(--ua-paper-2); min-height: 6.4rem; transition: opacity var(--ua-t), transform var(--ua-t), border-color var(--ua-t); }
.ua-log:not(.is-shown) .ua-log-card { min-height: 4.2rem; background: transparent; border: 1px dashed color-mix(in oklab, var(--ua-ink-3) 60%, transparent); }
.ua-log:not(.is-shown) .ua-log-card > * { display: none; }
.ua-log.is-new .ua-log-card > * { animation: ua-in var(--ua-t) ease-out; }
@keyframes ua-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ua-log.is-new .ua-log-card { border-color: var(--ua-lilac-ink); box-shadow: 0 0 0 1px var(--ua-lilac-ink); }
.ua-log-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; }
.ua-log-when { color: var(--ua-ink-2); }
.ua-log-meta .ua-pill { margin-left: auto; }
.ua-results { margin-top: 1.1rem; min-height: 1.6rem; }
.ua-result { display: none; gap: .7rem; align-items: baseline; font-size: 1.05rem; font-weight: 500; color: var(--foreground); }
.ua-result.is-on { display: flex; }
.ua-note { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--ed-faint); font-size: .88rem; line-height: 1.5; color: var(--ed-mute); }
[data-ua-edit] .ua-log .ua-log-card > * { display: revert !important; }
[data-ua-edit] .ua-log .ua-log-card > .ua-log-meta { display: flex !important; }
[data-ua-edit] .ua-result { display: flex; }
@media (max-width: 1023px) {
  .ua-live { grid-template-columns: 1fr; }
  .ua-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; gap: .5rem; }
  .ua-tab { flex-direction: column; gap: .25rem; padding: .75rem .8rem; border: 1px solid var(--ed-faint); border-radius: 14px; font-size: .98rem; line-height: 1.25; }
  .ua-tab.is-on { padding-left: .8rem; box-shadow: inset 0 0 0 1px var(--ua-lime); }
}
@media (max-width: 479px) {
  .ua-tabs { grid-template-columns: 1fr; }
  .ua-tab { flex-direction: row; gap: .8rem; }
  .ua-live-stage { padding: .9rem; }
  .ua-phone { border-width: 4px; border-radius: 24px; padding: .9rem .8rem 1rem; }
}

/* ---------- 03 product world ---------- */
.ua-world-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: end; }
.ua-world-head .ua-lead { margin-top: 0; }
.ua-world { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ua-world-tag { position: absolute; right: 0; top: -2.2rem; }
.ua-wcol { display: flex; flex-direction: column; }
.ua-wz { border-radius: 0; box-shadow: none; padding: clamp(1.1rem, 2.2vw, 1.7rem); aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: center; gap: .8rem; }
.ua-wcol + .ua-wcol .ua-wz { border-left: 1px solid var(--ua-paper-2); }
.ua-wcol:first-child .ua-wz { border-radius: 22px 0 0 22px; }
.ua-wcol:last-child .ua-wz { border-radius: 0 22px 22px 0; }
.ua-wcopy { padding: 1.5rem clamp(1rem, 2vw, 1.75rem) 0 0; }
.ua-wcopy .ed-h3 { margin-top: .4rem; }
.ua-wcopy p { margin-top: .55rem; max-width: 26rem; font-size: 1.02rem; line-height: 1.55; color: var(--ed-mute); }
.ua-wz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.ua-wz-grid li { display: grid; justify-items: center; gap: .5rem; padding: .65rem .3rem; border-radius: 12px; background: #fff; border: 1px solid var(--ua-paper-2); }
.ua-wz-grid .ua-pmark { width: 28px; height: 28px; }
.ua-wz-grid .ua-capdots li { width: 8px; height: 8px; border-width: 1.5px; }
.ua-wz-grid .ua-capdots li + li { margin-left: 8px; }
.ua-wz-grid .ua-capdots li + li::before { width: 10px; height: 1.5px; }
.ua-wz-op { display: flex; gap: .7rem; align-items: center; padding: .7rem; border-radius: 12px; background: #fff; border: 1px solid var(--ua-paper-2); }
.ua-wz-avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ua-paper-2); border: 1.5px solid var(--ua-ink-3); }
.ua-wz-trail { margin-left: 1.1rem; display: grid; gap: .55rem; padding-left: 1rem; border-left: 2px solid var(--ua-lilac-ink); }
.ua-wz-trail li { position: relative; display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; background: color-mix(in oklab, var(--ua-lilac) 18%, white); }
.ua-wz-dot { position: absolute; left: calc(-1rem - 7px); width: 12px; height: 12px; border-radius: 50%; background: var(--ua-lilac); border: 2px solid var(--ua-lilac-ink); }
.ua-wz-people { display: grid; gap: .55rem; }
.ua-wz-people li { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 12px; background: #fff; border: 1px solid var(--ua-paper-2); }
.ua-wz-people li > span:last-child { flex: 1; min-width: 0; display: grid; gap: .45rem; }
.ua-wz-people li.is-on { border-color: var(--ua-lilac-ink); box-shadow: 0 0 0 1px var(--ua-lilac-ink); }
.ua-wz-people li.is-on .ua-wz-avatar { background: var(--ua-lime); border-color: var(--ua-ink); }
.ua-wz-people .ua-capdots li { width: 8px; height: 8px; border-width: 1.5px; padding: 0; background: var(--ua-lilac); box-shadow: none; }
.ua-wz-people .ua-capdots li + li { margin-left: 8px; }
.ua-wz-people .ua-capdots li + li::before { width: 10px; height: 1.5px; }
.ua-world-line { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--ed-rule); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; color: var(--foreground); max-width: 34ch; text-wrap: balance; }
@media (max-width: 1023px) {
  .ua-world-head { grid-template-columns: 1fr; align-items: start; }
  .ua-world { grid-template-columns: 1fr; gap: 2.25rem; }
  .ua-world-tag { position: static; margin-bottom: -1rem; }
  .ua-wz { aspect-ratio: auto; min-height: 13rem; border-radius: 20px !important; border-left: 0 !important; }
  .ua-wcopy { padding: 1.1rem 0 0; }
}

/* ---------- 04 an original by Zero to One ---------- */
.ua-orig { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: center; }
.ua-orig .ua-h2 { max-width: 16ch; }
.ua-orig-body { margin-top: 1.6rem; max-width: 36rem; }
.ua-orig-body p:last-child { color: var(--foreground); font-weight: 500; }
.ua-link-btn { margin-top: 2rem; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .65rem 1.15rem; border-radius: 999px; border: 1px solid var(--ed-soft); color: var(--foreground); font-size: .95rem; font-weight: 500; transition: border-color .2s, background .2s; }
.ua-link-btn:hover { border-color: var(--foreground); background: color-mix(in oklab, var(--foreground) 6%, transparent); }
.ua-orig-fig { position: relative; margin: 0; max-width: 30rem; width: 100%; justify-self: end; }
.ua-orig-labels span { position: absolute; transform: translate(-50%, -50%); font-family: var(--ed-mono); font-size: 11px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--foreground); text-align: center; max-width: 30%; opacity: 0; transition: opacity .9s var(--ed-ease) .35s; }
.ua-orig-fig.is-in .ua-orig-labels span, [data-ua-edit] .ua-orig-labels span { opacity: 1; }
@media (max-width: 1023px) {
  .ua-orig { grid-template-columns: 1fr; }
  .ua-orig-fig { justify-self: start; max-width: 26rem; }
}
@media (max-width: 400px) { .ua-orig-labels span { font-size: 9.5px; } }

/* ---------- 05 status & CTA (closing band) ---------- */
html[data-ed="useum"] [data-ed-closing] > span.ed-anchor { order: -2; }
html[data-ed="useum"] [data-ed-closing] > .ua-stage { order: 1; margin-top: 1.5rem; display: flex; justify-content: center; }
.ua-stage div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--foreground) 28%, transparent); }
.ua-stage dt { font-family: var(--ed-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.ua-stage dd { font-size: .98rem; font-weight: 500; color: var(--foreground); }
html[data-ed="useum"] [data-ed-closing] > div.ed-closing-sign { order: 3; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--ed-faint); }
html[data-ed="useum"] [data-ed-closing] > div.ed-closing-sign p { font-family: var(--ed-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--foreground) 80%, transparent); }

@media (prefers-reduced-motion: reduce) {
  html[data-ed="useum"] { --ua-t: 0ms; }
  .ua-log-card, .ua-tab, .ua-live-dots li, .ua-orig-labels span { transition: none !important; }
  .ua-log.is-new .ua-log-card > * { animation: none !important; }
}
.ua-live-stage:focus-visible { outline: 2px solid var(--ua-lilac); outline-offset: 3px; }
