/* blameUGC live-demo viewer */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-var.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --c1: #efe6dc; --c2: #e9c9c0; --c3: #3b2a22; --c4: #c4623f;
  --uv: #6b4dff; --orchid: #d17bff; --cyan: #5fe3e8;
  --ink: #09090e; --ink-2: #12111a; --ink-3: #1c1b27;
  --on-ink: #f3f2f8; --on-ink-soft: #a7a7bb;
  --line: rgba(255, 255, 255, .1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bar: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; display: flex; flex-direction: column; height: 100svh; overflow: hidden; background: var(--ink); color: var(--on-ink); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; 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: -999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #09090e; font-weight: 600; text-decoration: none; }
.skip:focus { left: 8px; }

/* ---------- BAR ---------- */
.vbar { position: relative; z-index: 10; flex: 0 0 auto; display: flex; align-items: center; gap: 12px; height: var(--bar); padding: 0 12px 0 8px; background: rgba(12, 11, 18, .96); border-bottom: 1px solid var(--line); }
.vbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vbar__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 6px; border-radius: 11px; transition: background .3s; }
.vbar__back:hover { background: rgba(255, 255, 255, .07); }
.vbar__back svg { opacity: .7; }
.vbar__logo { display: block; flex: 0 0 auto; width: 22px; height: 22px; margin-right: 6px; background: url("../img/logo-chrome-uv.png") center / contain no-repeat; }
.vbar__mark { font: 560 19px/1 var(--display); letter-spacing: -.045em; font-variation-settings: "wdth" 92; }
.vbar__mark b { font-weight: 800; background: linear-gradient(100deg, #5fe3e8, #d17bff 45%, #8a6dff 75%, #6b4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.switch { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ibtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 11px; background: transparent; cursor: pointer; color: var(--on-ink); transition: background .3s; }
.ibtn:hover { background: rgba(255, 255, 255, .08); }
.switch__pick { position: relative; display: flex; align-items: center; }
.switch__sw { position: absolute; left: 12px; width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); pointer-events: none; }
.switch__pick select { appearance: none; -webkit-appearance: none; min-width: 250px; height: 44px; padding: 0 40px 0 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: 15px; font-weight: 500; cursor: pointer; transition: background .3s; }
.switch__pick select:hover { background: rgba(255, 255, 255, .11); }
.switch__pick select option { background: #17161f; color: #fff; }
.switch__caret { position: absolute; right: 12px; pointer-events: none; opacity: .7; }

.devices { display: flex; padding: 3px; gap: 2px; border-radius: 13px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.devices button { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--on-ink-soft); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .3s, color .3s; }
.devices button:hover { color: #fff; }
.devices button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.devices svg { width: 17px; height: 17px; }

.vbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.vbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background .3s, box-shadow .3s, transform .4s var(--ease); }
.vbtn:active { transform: scale(.97); }
.vbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vbtn--ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.vbtn--ghost:hover { background: rgba(255, 255, 255, .08); }
.vbtn--uv { background: var(--uv); color: #fff; box-shadow: 0 10px 26px -12px rgba(107, 77, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .2); }
.vbtn--uv:hover { background: #7d62ff; }
.vbtn__short { display: none; }

@media (max-width: 1180px) { .devices span { display: none; } .devices button { padding: 0 10px; } .switch__pick select { min-width: 220px; } }
@media (max-width: 960px) { .vbar .vbtn--ghost .vbtn__long { display: none; } .vbar .vbtn--ghost { width: 44px; padding: 0; } .vbar__mark { display: none; } }
@media (max-width: 720px) {
  :root { --bar: 60px; }
  .vbar { gap: 6px; padding: 0 8px 0 4px; }
  .devices, .vbar .vbtn--ghost { display: none; }
  .switch { flex: 1 1 auto; min-width: 0; margin-left: 0; }
  .switch__pick { flex: 1 1 auto; min-width: 0; }
  .switch__pick select { min-width: 0; width: 100%; font-size: 14.5px; padding-right: 34px; }
  .switch__caret { right: 10px; }
  .vbar__actions { margin-left: 0; }
  .vbar__back { padding: 0; width: 44px; justify-content: center; }
}
@media (max-width: 520px) {
  .switch__prev, .switch__next { display: none; }
  .vbtn--uv { padding: 0 14px; }
  .vbtn--uv .vbtn__long { display: none; }
  .vbtn--uv .vbtn__short { display: inline; }
}

/* ---------- STAGE ---------- */
.stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 24px; isolation: isolate; background: var(--ink); }
.stage::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(40% 50% at 50% 55%, color-mix(in srgb, var(--c4) 28%, transparent), transparent 70%), radial-gradient(30% 40% at 85% 20%, rgba(107, 77, 255, .22), transparent 70%); transition: background 1s var(--ease); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px); background-size: 22px 22px; }
.stage[data-device="desktop"] { padding: 16px 20px 20px; }

.device { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transform-origin: center center; transition: transform .6s var(--ease); }
.device__screen { position: relative; overflow: hidden; background: var(--c1); }
.device iframe { display: block; border: 0; background: #fff; }
.device__chrome { display: none; }

/* desktop: browser window */
.stage[data-device="desktop"] .device { border-radius: 14px; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1); }
.stage[data-device="desktop"] .device__chrome { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #f3f3f6; border-bottom: 1px solid #e3e3ea; }
.device__chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.device__chrome i:nth-child(2) { background: #ffbd2e; } .device__chrome i:nth-child(3) { background: #28c941; }
.device__url { display: inline-flex; align-items: center; gap: 7px; margin: 0 auto; transform: translateX(-30px); padding: 5px 16px; border-radius: 8px; background: #e6e6ec; color: #4b4c5a; font: 500 13px/1.2 var(--mono); }
.device__url svg { width: 12px; height: 12px; fill: none; stroke: #1fa463; stroke-width: 2.4; }

/* tablet and phone: device bezels */
.stage[data-device="tablet"] .device, .stage[data-device="phone"] .device { background: linear-gradient(145deg, #2c2c38, #0d0d13 45%, #22222d); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.stage[data-device="tablet"] .device { padding: 24px; border-radius: 46px; }
.stage[data-device="tablet"] .device__screen { border-radius: 24px; }
.stage[data-device="phone"] .device { padding: 14px; border-radius: 62px; }
.stage[data-device="phone"] .device__screen { border-radius: 48px; }
.stage[data-device="phone"] .device__screen::after { content: ""; position: absolute; top: 7px; left: 50%; width: 11px; height: 11px; transform: translateX(-50%); border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12); background: #050507; pointer-events: none; z-index: 3; }

/* phone-sized screens: the demo fills the stage */
.stage[data-device="full"] { padding: 0; }
.stage[data-device="full"] .device { position: absolute; inset: 0; transform: none; width: auto !important; }
.stage[data-device="full"] .device__screen { position: absolute; inset: 0; }
.stage[data-device="full"] iframe { width: 100% !important; height: 100% !important; }

/* ---------- LOADING AND MISSING ---------- */
.loader { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: radial-gradient(80% 60% at 50% 40%, color-mix(in srgb, var(--c2) 80%, var(--c1)), var(--c1)); color: var(--c3); transition: opacity .5s var(--ease), visibility .5s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__card { display: grid; justify-items: center; gap: 6px; padding: 24px; text-align: center; }
.loader__bar { position: relative; width: 120px; height: 4px; margin-bottom: 18px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--c3) 15%, transparent); }
.loader__bar i { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 4px; background: var(--c4); animation: slide 1.1s var(--ease) infinite; }
@keyframes slide { from { left: -40%; } to { left: 100%; } }
.loader__name { margin: 0; font: 650 clamp(30px, 4vw, 54px)/1 var(--display); letter-spacing: -.045em; font-variation-settings: "wdth" 90; }
.loader__style { margin: 0; font-size: 15px; font-weight: 500; opacity: .7; }

.soon { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, var(--c4) 35%, var(--ink-2)), var(--ink-2) 75%); color: var(--on-ink); overflow: auto; }
.soon__card { max-width: 520px; display: grid; gap: 14px; }
.soon__kicker { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--on-ink-soft); }
.soon__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c4); }
.soon__title { margin: 0; font: 650 clamp(30px, 3.4vw, 48px)/1 var(--display); letter-spacing: -.045em; font-variation-settings: "wdth" 90; }
.soon p:not(.soon__kicker) { margin: 0; color: var(--on-ink-soft); font-size: 16.5px; }
.soon__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.stage[data-device="phone"] .soon { padding: 60px 22px 22px; }

.nojs { position: fixed; inset: auto 16px 16px; padding: 16px; border-radius: 12px; background: #fff; color: #111; }
.nojs a { color: #5136e8; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
