/* uberdesigner — the tools: the hub, a page per tool and the studios. Written by _tools.py; the live effects come from
   showcase.css and showcase.js, the studios from studio.js. */
.tp2 { padding-top: 120px; padding-bottom: 60px; }
.crumb { display: flex; gap: 10px; font-size: 14px; color: var(--text-tertiary); margin-bottom: 24px; }
.crumb a { color: var(--text-secondary); } .crumb a:hover { color: #fff; } .crumb span::before { content: "/"; margin-right: 10px; color: var(--text-tertiary); }
.th { display: flex; flex-direction: column; gap: 18px; padding-bottom: 48px; }
.th__h { font-size: clamp(48px, 7vw, 112px); line-height: .92; font-weight: 500; letter-spacing: -.055em; text-wrap: balance; }
.th__p { max-width: 34em; font-size: 19px; line-height: 1.5; color: var(--text-secondary); }
.th__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.th__fine { max-width: 36em; font-size: 14px; line-height: 1.5; color: var(--text-tertiary); }
.th--tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.th__t { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.th__t .th__h { font-size: clamp(44px, 5.6vw, 88px); }
.th__demo .tc, .dsplit__m .tc { min-height: 460px; }
.tc--hero .tc__m { min-height: 360px; }
.th__grid .tgrid { grid-template-rows: auto auto; }
.th__grid .tc__m { min-height: 260px; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why div { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 22px; background: #ffffff05; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.why b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; } .why p { font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.soon2 { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.soon2 li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; background: linear-gradient(160deg, #ffffff08, #ffffff02); box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.soon2 b { font-size: 17px; font-weight: 500; } .soon2 p { flex: 1; font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.soon2 button { align-self: flex-start; margin-top: 8px; font-size: 13.5px; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.steps3 { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps3 li { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; background: #ffffff05; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.steps3 span { font: 500 13px ui-monospace, Menlo, monospace; color: var(--accent-ink); } .steps3 p { font-size: 17px; line-height: 1.5; }
.dsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.dsplit > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.plans2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pl2 { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 30px; border-radius: 26px; background: #ffffff05; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.pl2 p { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.pl2 b { flex: 1; font-size: 21px; line-height: 1.35; font-weight: 500; letter-spacing: -.015em; }
.pl2--pro { color: #fff; background: radial-gradient(120% 90% at 15% 0%, #a58bff, #7a4ff0 45%, #5b2fd6); box-shadow: inset 0 0 0 1px #ffffff33, 0 40px 90px -40px #5b2fd6; }
.pl2--pro p { color: #ffffffb3; }
.reads, .more2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.more2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reads a, .m2 { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 20px; background: #ffffff05; box-shadow: inset 0 0 0 1px var(--stroke-secondary); transition: transform .45s var(--spring-ease), box-shadow .2s; }
.reads a:hover, .m2:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--stroke-primary); }
.reads span, .m2 span { font-size: 13px; color: var(--text-tertiary); } .reads b, .m2 b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.tp2 .sec__head { margin-bottom: 32px; }

/* ---------- the studio ---------- */
.tp2--studio { padding-top: 96px; padding-bottom: 20px; }
.st { display: flex; flex-direction: column; gap: 12px; height: calc(100dvh - 116px); min-height: 560px; }
.st__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.st__back { font-size: 14px; color: var(--text-tertiary); } .st__back::before { content: "← "; } .st__back:hover { color: #fff; }
.st__name { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.st__modes { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #ffffff0a; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.st__modes:empty { display: none; }
.st__modes button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--text-secondary); }
.st__modes button[aria-selected="true"] { background: #fff; color: #0a0a0b; }
.st__r { display: flex; gap: 8px; margin-left: auto; }
.st__r .btn { height: 42px; }
.st__r .btn:disabled { opacity: .45; pointer-events: none; }
.st__main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; }
.st__stage { position: relative; min-height: 0; border-radius: 24px; overflow: hidden; background: #0b0b0e; background-image: radial-gradient(#ffffff10 1px, transparent 1px); background-size: 18px 18px; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.st__drop { position: absolute; inset: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 18px; border: 1.5px dashed #ffffff2e; cursor: pointer; text-align: center; padding: 20px; transition: border-color .2s, background-color .2s; }
.st__drop:hover, .st__drop.is-over { border-color: var(--accent-ink); background: #8657e712; }
.st__dropi { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #8657e733; box-shadow: inset 0 0 0 1px #8657e799; font-size: 30px; color: #fff; }
.st__drop b { font-size: 22px; font-weight: 500; } .st__drop > span { font-size: 14px; color: var(--text-tertiary); }
.st__try { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.st__try button { height: 30px; padding: 0 12px; border-radius: 999px; background: #ffffff0f; box-shadow: inset 0 0 0 1px var(--stroke-secondary); font-size: 13px; color: var(--text-secondary); }
.st__try button:hover { color: #fff; background: #ffffff1a; }
.st__view { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; touch-action: none; }
.st__view canvas { grid-area: 1 / 1; max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px -30px #000, 0 0 0 1px #ffffff1a; }
.st__before { clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.st__split { position: absolute; top: 24px; bottom: 24px; left: var(--sx, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 16px #fff; pointer-events: none; }
.st__split::after { content: "↔"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; color: #0a0a0b; font-size: 15px; }
.st__tag { position: absolute; top: 34px; padding: 5px 10px; border-radius: 999px; background: #000000b3; font-size: 12px; font-weight: 600; }
.st__tag--l { left: 34px; } .st__tag--r { right: 34px; }
.st__panel { display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: 24px; overflow-y: auto; background: #ffffff05; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.st__hint { font-size: 14px; color: var(--text-tertiary); }
.ctl { display: flex; flex-direction: column; gap: 8px; }
.ctl > span { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); } .ctl > span em { font-style: normal; color: var(--text-tertiary); }
.ctl input[type=range] { width: 100%; accent-color: #8657e7; }
.ctl input[type=color] { width: 100%; height: 36px; border: 0; border-radius: 10px; background: none; }
.chips3 { display: flex; flex-wrap: wrap; gap: 6px; }
.chips3 button { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; color: var(--text-secondary); background: #ffffff0a; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.chips3 button[aria-pressed="true"] { color: #fff; background: #8657e74d; box-shadow: inset 0 0 0 1px #b69cff; }
.chips3 button .lock { margin-left: 6px; font-size: 10.5px; color: var(--accent-ink); }
.st__note { margin-top: auto; padding: 14px; border-radius: 14px; background: #ffffff06; font-size: 13px; line-height: 1.5; color: var(--text-tertiary); }
.st__note a { color: var(--accent-ink); }
.st__busy { position: absolute; inset: 0; display: grid; place-items: center; background: #06060899; font-size: 15px; }

@media (max-width: 1099px) { .th--tool, .dsplit { grid-template-columns: minmax(0, 1fr); } .soon2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .st { height: auto; } .st__main { grid-template-columns: minmax(0, 1fr); } .st__stage { height: 62vh; } .why, .steps3, .plans2, .reads, .more2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .tp2 { padding-top: 100px; } .soon2 { grid-template-columns: minmax(0, 1fr); } .th__demo .tc, .dsplit__m .tc { min-height: 360px; } .st__r { margin-left: 0; width: 100%; } .st__r .btn { flex: 1; } }

/* ---------- the hub: why, with pictures ---------- */
.why__c { gap: 10px !important; padding: 14px 14px 24px !important; }
.why__c b, .why__c p { padding: 0 10px; }
.why__art { position: relative; display: grid; place-items: center; height: 170px; margin-bottom: 8px; border-radius: 16px; overflow: hidden; background: radial-gradient(90% 90% at 50% 0%, #8657e72e, transparent 70%), #0b0b0e; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.why__art i { font-style: normal; }
.wl__dev { position: relative; width: 120px; height: 82px; border-radius: 10px; background: #18181c; box-shadow: 0 0 0 2px #ffffff26, 0 20px 40px -16px #000; padding: 6px; }
.wl__pic { display: block; width: 100%; height: 100%; border-radius: 5px; background: url(https://assets.uberdesigner.ai/kitefold/cover.eef20336.jpg) center / cover; }
.wl__cloud { position: absolute; right: 22%; top: 18%; font-size: 30px; color: #ffffff59; animation: wl-float 3s ease-in-out infinite; }
.wl__x { position: absolute; right: calc(22% - 4px); top: calc(18% + 20px); width: 44px; height: 2px; background: #ff8a8a; transform: rotate(-35deg); box-shadow: 0 0 10px #ff8a8a; }
@keyframes wl-float { 50% { transform: translateY(-6px); } }
.wf__dots { display: flex; gap: 8px; } .wf__dots i { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px #b69cff; animation: wf-dot 2.4s infinite; }
.wf__dots i:nth-child(2) { animation-delay: .3s; } .wf__dots i:nth-child(3) { animation-delay: .6s; }
@keyframes wf-dot { 0%, 60%, 100% { opacity: 1; } 75% { opacity: .25; } }
.wf__inf { position: absolute; right: 18%; top: 22%; font-size: 52px; line-height: 1; color: transparent; background: linear-gradient(180deg, #fff, #8f6cf0); -webkit-background-clip: text; background-clip: text; animation: wl-float 3.4s ease-in-out infinite; }
.wf__l { position: absolute; bottom: 14px; font-size: 12px; color: var(--text-tertiary); letter-spacing: .04em; }
.why__art--code { place-items: center start; padding: 0 22px; gap: 8px; align-content: center; }
.why__art--code code { font: 400 13px ui-monospace, Menlo, monospace; color: #e9e3ff; white-space: nowrap; }
.why__art--code code i { color: #7f7f8a; } .why__art--code em { font-style: normal; color: #7ee2a8; } .why__art--code u { text-decoration: none; color: #ffd38a; }
.wc__2 { padding: 6px 10px; border-radius: 8px; background: #8657e733; box-shadow: inset 0 0 0 1px #8657e766; animation: wf-dot 3s infinite; }

/* ---------- the hub: what's coming, each with a picture of itself ---------- */
.soon2 li { padding: 12px 12px 20px; gap: 10px; transition: transform .45s var(--spring-ease), box-shadow .2s; }
.soon2 li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--stroke-primary); }
.soon2 li > b, .soon2 li > p, .soon2 li > button, .soon2__t { margin-inline: 8px; }
.sa { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #0b0b0e; box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.sa i { position: absolute; font-style: normal; }
.soon2__t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.soon2__t em { padding: 3px 8px; border-radius: 999px; background: #ffffff14; font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); }
.soon2 button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; text-decoration: none !important; color: var(--text-primary) !important; background: #ffffff0d; box-shadow: inset 0 0 0 1px var(--stroke-secondary); transition: background-color .2s; }
.soon2 button:hover { background: #ffffff1a; }
.soon2 button.is-on { color: #7ee2a8 !important; background: #7ee2a81a; box-shadow: inset 0 0 0 1px #7ee2a855; }
.soon2 button.is-on .bell { display: none; }
.bell { font-size: 12px; filter: grayscale(1) brightness(2); }
/* background remover: a subject lifted off a checkerboard */
.sa0__chk { inset: 0; background: conic-gradient(#ffffff14 25%, transparent 0 50%, #ffffff14 0 75%, transparent 0) 0 0 / 18px 18px; }
.sa0__cut { left: 24%; right: 24%; top: 14%; bottom: 0; border-radius: 48% 48% 0 0; background: url(https://assets.uberdesigner.ai/nocelle/cover.45d9c86c.jpg) 60% 20% / 260% auto; clip-path: inset(0 var(--c, 100%) 0 0); animation: sa-cut 3.6s cubic-bezier(.65, 0, .35, 1) infinite; }
.sa0__line { top: 10%; bottom: 0; left: calc(24% + (52% * (1 - var(--c, 1)))); width: 2px; background: #fff; box-shadow: 0 0 12px #fff; }
@keyframes sa-cut { 0% { clip-path: inset(0 100% 0 0); } 50%, 80% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.sa0__line { display: none; }
/* mockup generator: a design on a laptop and a phone */
.sa1__dev { left: 10%; right: 22%; top: 20%; aspect-ratio: 16 / 10; border-radius: 6px; padding: 4px; background: #222226; box-shadow: 0 0 0 1px #ffffff26, 0 18px 30px -12px #000; animation: wl-float 4s ease-in-out infinite; }
.sa1__ph { right: 10%; bottom: 10%; width: 24%; aspect-ratio: 9 / 18; border-radius: 8px; padding: 3px; background: #222226; box-shadow: 0 0 0 1px #ffffff26, 0 18px 30px -12px #000; animation: wl-float 4s ease-in-out .6s infinite; }
.sa1__dev img, .sa1__ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
/* WebGL effects: a moving gradient */
.sa2__g { inset: -40%; background: conic-gradient(from 0deg, #8657e7, #3a8bff, #00d6a0, #ffd38a, #ff6fae, #8657e7); filter: blur(28px) saturate(1.3); animation: sa-spin 8s linear infinite; }
@keyframes sa-spin { to { transform: rotate(1turn); } }
/* 3D generator: a turning cube */
.sa--3 { perspective: 500px; }
.sa3__cube { left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; transform-style: preserve-3d; animation: sa-cube 7s linear infinite; }
.sa3__cube i { inset: 0; border-radius: 6px; background: linear-gradient(135deg, #a58bff, #5b2fd6); box-shadow: inset 0 0 0 1px #ffffff4d; opacity: .92; }
.sa3__cube i:nth-child(1) { transform: translateZ(35px); } .sa3__cube i:nth-child(2) { transform: rotateY(180deg) translateZ(35px); }
.sa3__cube i:nth-child(3) { transform: rotateY(90deg) translateZ(35px); filter: brightness(.8); } .sa3__cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(35px); filter: brightness(.8); }
.sa3__cube i:nth-child(5) { transform: rotateX(90deg) translateZ(35px); filter: brightness(1.2); } .sa3__cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(35px); filter: brightness(.6); }
@keyframes sa-cube { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(1turn); } }
/* ASCII generator */
.sa4__a { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: 500 13px/1.15 ui-monospace, Menlo, monospace; color: #b69cff; text-shadow: 0 0 10px #8657e7; white-space: pre; animation: wf-dot 2.8s infinite; }
@media (prefers-reduced-motion: reduce) { .sa i, .sa4__a, .why__art i { animation: none !important; } }

/* the file field: out of sight but reachable by keyboard; the drop zone shows the focus */
.st__file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.st__drop:focus-within { outline: 2px solid var(--accent-ink, #b69cff); outline-offset: 4px; }
.st__split { pointer-events: auto; cursor: ew-resize; }
.st__split:focus-visible { outline: 2px solid var(--accent-ink, #b69cff); outline-offset: 6px; }
.st__view:focus-visible { outline: 2px solid var(--accent-ink, #b69cff); outline-offset: -2px; }
#st-tl, #st-tr { transition: none; }
.st__busy { z-index: 3; border-radius: 10px; pointer-events: none; }
h1.st__name { margin: 0; font: inherit; font-weight: 500; }
/* phones: a swipe on the photo scrolls the page; a sideways drag moves the split */
@media (pointer: coarse) { .st__view { touch-action: pan-y; } }
