mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P5YBdvdmGVS8p6FhaTwzh4
365 lines
33 KiB
CSS
365 lines
33 KiB
CSS
/* ---------- /computer (round 2): deck greys, the deck scale, the desktop moving in the first screen ---------- */
|
|
/* dark (docs/DARK-MODE.md): the page's deck greys as tokens (light values unchanged), pointing at Hanzo's own in dark;
|
|
v2/AppType.css's fixed greys on .av are re-pointed here too. The hero and the closing band are black rooms in both modes. */
|
|
.cp { --cp-ink: #0a0a0a; --cp-ink2: #525252; --cp-ink3: #737373; --cp-on-ink: #fafafa; --cp-paper: #fff; --cp-quiet: #f5f5f5; --cp-hair: rgba(0, 0, 0, .1); }
|
|
html:not(.light) .cp { --cp-ink: var(--foreground); --cp-ink2: var(--muted-foreground); --cp-ink3: var(--text-tertiary); --cp-on-ink: var(--primary-foreground); --cp-paper: var(--secondary); --cp-quiet: var(--x-fill); --cp-hair: var(--border); --ac-soft: var(--x-fill); }
|
|
html:not(.light) .av.cp { background: var(--bg); color: var(--ink); }
|
|
html:not(.light) .cp-mk-win .cp-wbar { background: var(--white-05); border-bottom-color: var(--cp-hair); }
|
|
html:not(.light) .cp-mk-win .cp-wbar i { background: var(--white-20); }
|
|
html:not(.light) .cp .av-lede, html:not(.light) .cp .av-body { color: var(--soft); }
|
|
html:not(.light) .cp .av-kick, html:not(.light) .cp .av-spec dt { color: var(--faint); }
|
|
html:not(.light) .cp .av-kick b, html:not(.light) .cp .av-spec dd { color: var(--ink); }
|
|
html:not(.light) .cp .av-spec, html:not(.light) .cp .av-spec dt, html:not(.light) .cp .av-spec dd { border-color: var(--line); }
|
|
html:not(.light) .cp .av-obj { box-shadow: 0 0 0 1px var(--line); }
|
|
html:not(.light) .cp .av-card { background: var(--x-fill); }
|
|
html:not(.light) .cp .av-dark .av-body, html:not(.light) .cp .av-dark .av-lede { color: var(--white-78); }
|
|
html:not(.light) .cp .av-dark .av-kick { color: var(--white-55); }
|
|
.cp .x-arrow { min-height: 44px; display: inline-flex; align-items: center; }
|
|
.cp-note { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #737373; }
|
|
|
|
/* hero: the first black room; a 7/5 head over the full-bleed desktop. Pulled up under the 60 px header so the header
|
|
is dark from the first frame. */
|
|
.cp-hero { margin-top: -60px; padding: 92px 0 clamp(56px, 6vw, 88px); }
|
|
.cp-top { align-items: end; }
|
|
.cp-top-l { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 14px; }
|
|
.cp-h1 { margin: 0; font-size: 52px; font-weight: 497; line-height: 1.04; letter-spacing: -.035em; color: #fafafa; }
|
|
.cp-lede { margin: 0; font-size: 21px; line-height: 1.45; letter-spacing: -.01em; color: rgba(255, 255, 255, .78); }
|
|
.cp-top-r { grid-column: 8 / -1; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
|
|
.cp-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 24px; }
|
|
.cp-hero .x-arrow { color: #fafafa; }
|
|
.cp-dom { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
|
|
/* the whole desktop, dock included, sits above the fold at 1470x801 */
|
|
.cp-stage { width: min(100% - 48px, 1152px, (100svh - 330px) * 16 / 9 + 16px); margin: 24px auto 0; }
|
|
.js .cp-settle { animation: cp-arrive .9s cubic-bezier(.16, 1, .3, 1) .25s both; }
|
|
@keyframes cp-arrive { from { opacity: 0; } to { opacity: 1; } }
|
|
|
|
.cp-obj { padding: 8px; border-radius: 24px; background: #171717; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
|
|
.cp-desk { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; isolation: isolate; }
|
|
.cp-wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
.cp-menu { position: absolute; left: 0; right: 0; top: 0; height: 5%; display: flex; align-items: center; gap: 2%; padding: 0 1.4%; background: #171717; z-index: 2; }
|
|
.cp-menu > i { width: 1%; aspect-ratio: 1; border-radius: 3px; background: #fafafa; }
|
|
.cp-menu > span:not(.cp-menu-mic) { width: 3.2%; height: 18%; border-radius: 3px; background: rgba(255, 255, 255, .3); }
|
|
.cp-menu-mic { margin-left: auto; display: flex; align-items: center; height: 60%; opacity: 0; transition: opacity .3s; }
|
|
.cp-menu-mic .cp-bars { height: 100%; gap: 2px; }
|
|
.cp-menu-mic .cp-bars i { width: 2px; }
|
|
.m4 .cp-menu-mic { opacity: 1; }
|
|
.cp-you { padding: 1px 8px; border-radius: 6px; font: 500 12px/1.4 var(--mono); color: #fafafa; background: rgba(255, 255, 255, .1); transition: background-color .3s, color .3s; }
|
|
.m5 .cp-you { background: #fafafa; color: #0a0a0a; }
|
|
.cp-win { position: absolute; border-radius: 10px; background: #fff; overflow: hidden; }
|
|
.cp-win.a { left: 6%; top: 12%; width: 50%; height: 70%; }
|
|
.cp-win.b { left: 52%; top: 29%; width: 41%; height: 54%; z-index: 1; box-shadow: -12px 0 24px -12px rgba(0, 0, 0, .4); }
|
|
.cp-wbar { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; background: #f5f5f5; border-bottom: 1px solid rgba(0, 0, 0, .1); }
|
|
.cp-wbar i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #d4d4d4; }
|
|
.cp-wbar span { margin-left: 8px; font-size: 13px; font-weight: 500; color: #525252; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.cp-el { position: absolute; }
|
|
.cp-title { font-size: 15px; font-weight: 606; line-height: 1.25; letter-spacing: -.01em; color: #0a0a0a; white-space: nowrap; }
|
|
.cp-field { height: 5.4%; border-radius: 8px; box-shadow: inset 0 0 0 1.5px #d4d4d4; transition: box-shadow .3s; }
|
|
.cp-field b { position: absolute; left: 5%; top: 35%; width: 58%; height: 30%; border-radius: 3px; background: #737373; transform-origin: 0 50%; }
|
|
.js .cp-field b { transform: scaleX(0); }
|
|
.cp-url { flex: 0 1 46%; height: 12px; margin-left: 12px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
|
|
/* the portal's rows: a file name, its export bar and a tick; one row exports at a time, top to bottom */
|
|
.cp-row { left: 9%; width: 40%; height: 4%; display: grid; grid-template-columns: auto 1.3fr .9fr 5%; grid-template-rows: 100%; align-items: center; gap: 5%; }
|
|
.cp-row > i { position: relative; height: 100%; border-radius: 4px; background: #f5f5f5; overflow: hidden; }
|
|
.cp-row-n s { position: absolute; left: 8%; top: 36%; width: var(--cpw); height: 28%; border-radius: 2px; background: #a3a3a3; }
|
|
.cp-row-p s { position: absolute; inset: 0; background: #262626; transform-origin: 0 50%; }
|
|
.js .cp-desk.live .cp-row-p s { animation: cp-export 9s cubic-bezier(.4, 0, .2, 1) calc(var(--r) * 1.5s) infinite both; }
|
|
@keyframes cp-export { 0% { transform: scaleX(0); opacity: 1; } 14%, 90% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
|
|
.cp-dl { display: grid; place-items: center; width: 100%; max-height: 100%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #d4d4d4; color: #fff; }
|
|
.cp-dl svg { width: 70%; height: 70%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
|
|
.cp-dl { background: #0a0a0a; box-shadow: none; }
|
|
.js .cp-desk.live .cp-dl { animation: cp-tick 9s ease calc(var(--r) * 1.5s) infinite both; }
|
|
@keyframes cp-tick { 0%, 13% { background: #fff; box-shadow: inset 0 0 0 1.5px #d4d4d4; } 16%, 90% { background: #0a0a0a; box-shadow: inset 0 0 0 1.5px #0a0a0a; } 100% { background: #fff; box-shadow: inset 0 0 0 1.5px #d4d4d4; } }
|
|
.cp-row em { display: grid; place-items: center; height: 100%; padding: 0 8px; border-radius: 4px; background: #f2f2f2; font: 600 12px/1 var(--mono); font-style: normal; letter-spacing: .1em; color: #525252; }
|
|
.cp-btn { width: 11%; height: 5.6%; border-radius: 999px; background: #0a0a0a; display: grid; place-items: center; }
|
|
.cp-btn b { width: 52%; height: 18%; border-radius: 2px; background: rgba(255, 255, 255, .78); }
|
|
/* the 2009 tool: square chrome, a toolbar of bevelled buttons, a tree beside a ruled table */
|
|
.cp-win.b { display: flex; flex-direction: column; border-radius: 6px; }
|
|
.cp-win.b .cp-wbar { flex: none; background: #404040; border-bottom: 0; }
|
|
.cp-win.b .cp-wbar i { border-radius: 2px; background: rgba(255, 255, 255, .3); }
|
|
.cp-win.b .cp-wbar span { color: #fafafa; }
|
|
.cp-old-menu { flex: 0 0 7%; display: flex; align-items: center; gap: 4%; padding: 0 3%; background: #f5f5f5; }
|
|
.cp-old-menu i { height: 26%; border-radius: 2px; background: #737373; }
|
|
.cp-old-tools { flex: 0 0 12%; display: flex; align-items: center; gap: 1.6%; padding: 0 2%; background: #f2f2f2; border-bottom: 1px solid rgba(0, 0, 0, .14); }
|
|
.cp-old-tools i { height: 68%; aspect-ratio: 1; border-radius: 3px; background: linear-gradient(#ffffff, #e5e5e5); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
|
|
.cp-old-tools i:nth-child(3) { margin-right: 2%; }
|
|
.cp-old-tools span { flex: 1; }
|
|
.cp-old-body { flex: 1; display: grid; grid-template-columns: 30% 1fr; min-height: 0; }
|
|
.cp-old-tree { display: flex; flex-direction: column; justify-content: space-evenly; padding: 3% 6%; border-right: 1px solid rgba(0, 0, 0, .14); background: #fafafa; }
|
|
.cp-old-tree i { height: 6%; border-radius: 2px; background: #a3a3a3; }
|
|
.cp-old-tree i:first-child { background: #404040; }
|
|
.cp-old-table { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
|
|
.cp-old-table i { position: relative; border-right: 1px solid rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(0, 0, 0, .1); }
|
|
.cp-old-table i::before { content: ''; position: absolute; left: 10%; top: 42%; width: var(--cpw); height: 16%; border-radius: 2px; background: #d4d4d4; }
|
|
.cp-old-table i.h { background: #f2f2f2; }
|
|
.cp-old-table i.h::before { background: #525252; width: 50%; }
|
|
.cp-old-status { flex: 0 0 6%; display: flex; align-items: center; justify-content: space-between; padding: 0 3%; background: #f2f2f2; border-top: 1px solid rgba(0, 0, 0, .14); }
|
|
.cp-old-status i { width: 22%; height: 30%; border-radius: 2px; background: #a3a3a3; }
|
|
.cp-old-status i + i { width: 10%; }
|
|
.cp-dock { position: absolute; left: 50%; bottom: 2.4%; height: 8%; display: flex; gap: 8px; padding: .6% .8%; border-radius: 14px; background: rgba(255, 255, 255, .14); transform: translateX(-50%); z-index: 2; }
|
|
.cp-dock i { height: 100%; aspect-ratio: 1; border-radius: 22%; background: rgba(255, 255, 255, .78); }
|
|
.cp-dock i:nth-child(2) { background: #fafafa; }
|
|
|
|
/* the agent's own marks on the screenshot, one mode at a time */
|
|
.cp-pix, .cp-scan, .cp-ocr, .cp-som { position: absolute; pointer-events: none; z-index: 3; }
|
|
.cp-pix { inset: 0; background-image: linear-gradient(rgba(163, 163, 163, .4) 1px, transparent 1px), linear-gradient(90deg, rgba(163, 163, 163, .4) 1px, transparent 1px); background-size: 14px 14px; opacity: 0; transition: opacity .4s var(--av-ease); }
|
|
.m0 .cp-pix { opacity: 1; }
|
|
.cp-scan { inset: 0; background: linear-gradient(to bottom, #fafafa 0 2px, rgba(0, 0, 0, .3) 2px 3px, transparent 3px); opacity: 0; }
|
|
.m0.live .cp-scan { animation: cp-scan 2.4s cubic-bezier(.4, 0, .2, 1) .2s infinite; }
|
|
@keyframes cp-scan { 0% { opacity: 0; transform: translateY(0); } 10%, 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(100%); } }
|
|
.cp-ocr, .cp-som { inset: 0; }
|
|
.cp-ocr i { position: absolute; border-radius: 5px; box-shadow: inset 0 0 0 2px #0a0a0a; background: rgba(10, 10, 10, .06); opacity: 0; transform: scale(.96); transition: opacity .15s, transform .15s; }
|
|
.m2 .cp-ocr i { opacity: 1; transform: none; transition: opacity .3s calc(.7s + var(--i) * .12s), transform .4s var(--av-ease) calc(.7s + var(--i) * .12s); }
|
|
.cp-som b { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 8px; background: #0a0a0a; color: #fafafa; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 2px #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
|
|
.m3 .cp-som b { opacity: 1; transform: none; transition: opacity .3s calc(.3s + var(--i) * .06s), transform .3s var(--av-ease) calc(.3s + var(--i) * .06s); }
|
|
.cp-bars { display: flex; align-items: center; gap: 3px; height: 26px; }
|
|
.cp-bars i { width: 3px; height: 100%; border-radius: 3px; background: #fafafa; transform: scaleY(.3); }
|
|
.m4.live .cp-bars i, .cp-hd.on .cp-bars i { animation: cp-bar .9s ease-in-out calc(var(--i) * -.13s) infinite alternate; }
|
|
.cp-bars i:nth-child(3n) { animation-duration: .7s !important; } .cp-bars i:nth-child(4n + 1) { animation-duration: 1.1s !important; }
|
|
@keyframes cp-bar { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
|
|
.m1 .cp-field { box-shadow: inset 0 0 0 2px #0a0a0a; }
|
|
.m1.live .cp-field b { animation: cp-fill 1.2s var(--av-ease) 1.4s both; }
|
|
.js .m1:not(.live) .cp-field b, .js .cp-desk:not(.m1) .cp-field b { transform: scaleX(1); }
|
|
@keyframes cp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
|
|
.cp-lane { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
|
|
.cp-cur { position: absolute; left: 0; top: 0; margin: -3px 0 0 -4px; display: block; }
|
|
.cp-cur svg { display: block; }
|
|
.cp-cur i { position: absolute; left: -12px; top: -12px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
|
|
|
|
.cp-cap { padding: 0 0 2px; }
|
|
.cp-cap-top { display: flex; align-items: center; gap: 12px; padding: 0 10px 8px 0; }
|
|
.cp-pause { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fafafa; cursor: pointer; transition: transform .09s; }
|
|
.cp-pause:active { transform: scale(.97); }
|
|
.cp-pause:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
|
|
@media (hover: hover) { .cp-pause:hover { background: rgba(255, 255, 255, .14); } }
|
|
.cp-cap-k { flex: 1; font-size: 17px; font-weight: 497; letter-spacing: -.01em; color: #fafafa; }
|
|
.cp-count { font-size: 12px; letter-spacing: .14em; color: rgba(255, 255, 255, .55); }
|
|
.cp-tabs { flex: none; list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; border-radius: 999px; background: #0f0f0f; overflow-x: auto; scrollbar-width: none; }
|
|
.cp-tabs button { min-width: 44px; border-radius: 999px !important; font-size: 13px !important; letter-spacing: .06em; }
|
|
.cp-tabs .cp-tab-bg { border-radius: 999px; }
|
|
.cp-tabs::-webkit-scrollbar { display: none; }
|
|
.cp-tabs li { flex: 1 1 auto; }
|
|
.cp-tabs button { position: relative; width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: #a3a3a3; font: 500 14px/1 var(--sans); white-space: nowrap; cursor: pointer; overflow: hidden; transition: color .15s; }
|
|
.cp-tabs button[aria-selected='true'] { color: #fafafa; }
|
|
.cp-tabs button:active { transform: scale(.97); }
|
|
.cp-tabs button:focus-visible { outline: 2px solid #fafafa; outline-offset: -2px; }
|
|
@media (hover: hover) { .cp-tabs button:hover { color: #fafafa; } }
|
|
.cp-tabs button span { position: relative; }
|
|
.cp-tab-bg { position: absolute; inset: 0; border-radius: 12px; background: #262626; }
|
|
.cp-tab-t { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: #fafafa; transform-origin: 0 50%; animation: cp-time 4.8s linear forwards; }
|
|
.cp-tab-t.paused { animation-play-state: paused; }
|
|
@keyframes cp-time { from { transform: scaleX(0); } to { transform: scaleX(1); } }
|
|
|
|
/* ---------- three lenses ---------- */
|
|
.cp-sc-b { font-size: 17px; color: var(--cp-ink); max-width: 36ch; line-height: 1.55; }
|
|
.cp-sub { margin-top: 6px; padding-top: 17px; border-top: 1px solid var(--cp-hair); max-width: 40ch; }
|
|
.cp-sub-t { margin: 0 0 6px; font-size: 17px; font-weight: 606; color: var(--cp-ink); }
|
|
.cp-sub .av-body { font-size: 15px; }
|
|
.cp-vis { position: relative; width: 100%; height: 100%; border-radius: 24px; background: var(--cp-quiet); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: clamp(24px, 3vw, 44px); overflow: hidden; }
|
|
|
|
/* lens 1: four kinds of screen, one grid of pixels */
|
|
.cp-px-grid { position: relative; width: min(100%, 500px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
.cp-px-t { display: flex; flex-direction: column; gap: 8px; }
|
|
.cp-px-t em { font-style: normal; font-size: 13px; color: var(--cp-ink2); }
|
|
.cp-px-art { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--cp-paper); box-shadow: inset 0 0 0 1px var(--cp-hair); overflow: hidden; }
|
|
.cp-px-art i { position: absolute; border-radius: 4px; }
|
|
.t0 i:nth-child(1) { left: 0; top: 0; width: 28%; height: 100%; border-radius: 0; background: light-dark(#ededed, var(--white-10)); }
|
|
.t0 i:nth-child(2) { left: 36%; top: 14%; width: 40%; height: 9%; background: light-dark(#262626, var(--muted-foreground)); }
|
|
.t0 i:nth-child(3) { left: 36%; top: 32%; width: 54%; height: 30%; background: light-dark(#f2f2f2, var(--white-10)); }
|
|
.t0 i:nth-child(4) { left: 36%; top: 72%; width: 24%; height: 12%; border-radius: 99px; background: light-dark(#0a0a0a, var(--muted-foreground)); }
|
|
.t1 .cp-px-art { background: light-dark(#fafafa, var(--secondary)); }
|
|
.t1 i:nth-child(1) { left: 14%; top: 18%; width: 38%; aspect-ratio: 1; border-radius: 50%; background: light-dark(#0a0a0a, var(--muted-foreground)); }
|
|
.t1 i:nth-child(2) { left: 46%; top: 36%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #737373; }
|
|
.t1 i:nth-child(3) { left: 62%; top: 12%; width: 18%; aspect-ratio: 1; border-radius: 4px; background: light-dark(#d4d4d4, var(--white-30)); transform: rotate(18deg); }
|
|
.t1 i:nth-child(4) { left: 10%; top: 78%; width: 70%; height: 4%; background: light-dark(#d4d4d4, var(--white-30)); }
|
|
.t2 .cp-px-art { background: #171717; }
|
|
.t2 i:nth-child(1) { left: 8%; top: 10%; width: 84%; height: 66%; border-radius: 6px; background: #404040; }
|
|
.t2 i:nth-child(2) { left: 18%; top: 20%; width: 46%; height: 40%; border-radius: 4px; background: light-dark(#fff, var(--muted-foreground)); }
|
|
.t2 i:nth-child(3) { left: 8%; top: 82%; width: 84%; height: 8%; background: #262626; }
|
|
.t2 i:nth-child(4) { left: 58%; top: 46%; width: 5%; aspect-ratio: 1; border-radius: 50%; background: #fafafa; }
|
|
.t3 i:nth-child(1) { left: 0; top: 0; width: 100%; height: 14%; border-radius: 0; background: light-dark(#f2f2f2, var(--white-10)); }
|
|
.t3 i:nth-child(2) { left: 10%; top: 24%; width: 80%; height: 34%; background: light-dark(#e5e5e5, var(--white-14)); }
|
|
.t3 i:nth-child(3) { left: 10%; top: 66%; width: 66%; height: 6%; background: light-dark(#d4d4d4, var(--white-30)); }
|
|
.t3 i:nth-child(4) { left: 10%; top: 78%; width: 48%; height: 6%; background: light-dark(#d4d4d4, var(--white-30)); }
|
|
.cp-px-mesh { position: absolute; inset: -6px; border-radius: 16px; background-image: linear-gradient(light-dark(rgba(10, 10, 10, .14), var(--white-14)) 1px, transparent 1px), linear-gradient(90deg, light-dark(rgba(10, 10, 10, .14), var(--white-14)) 1px, transparent 1px); background-size: 12px 12px; opacity: 0; pointer-events: none; }
|
|
.cp-px-sweep { position: absolute; left: -6px; right: -6px; top: -6px; bottom: -6px; background: linear-gradient(to bottom, var(--cp-ink) 0 2px, transparent 2px); opacity: 0; pointer-events: none; }
|
|
.cp-px.on .cp-px-mesh { animation: cp-mesh 5s ease .4s infinite; }
|
|
.cp-px.on .cp-px-sweep { animation: cp-sweep 5s cubic-bezier(.4, 0, .2, 1) .4s infinite; }
|
|
@keyframes cp-mesh { 0%, 8% { opacity: 0; } 40%, 82% { opacity: 1; } 100% { opacity: 0; } }
|
|
@keyframes cp-sweep { 0% { opacity: 0; transform: translateY(0); } 6% { opacity: 1; } 40% { opacity: 1; transform: translateY(100%); } 46%, 100% { opacity: 0; transform: translateY(100%); } }
|
|
.cp-px-k { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cp-ink2); }
|
|
|
|
/* lens 2: OCR boxes, then Set-of-Mark labels */
|
|
.cp-mk-win { position: relative; width: min(100%, 480px); aspect-ratio: 4 / 3; border-radius: 16px; background: var(--cp-paper); box-shadow: inset 0 0 0 1px var(--cp-hair); overflow: hidden; }
|
|
.cp-mk-body > span, .cp-mk-ocr i, .cp-mk-som b { position: absolute; }
|
|
.cp-mk-h { left: 8%; top: 16%; width: 44%; height: 6%; border-radius: 4px; background: light-dark(#262626, var(--muted-foreground)); }
|
|
.cp-mk-f { left: 8%; top: 29%; width: 60%; height: 11%; border-radius: 9px; box-shadow: inset 0 0 0 1.5px light-dark(#d4d4d4, var(--white-30)); }
|
|
.cp-mk-l { left: 8%; height: 4%; border-radius: 4px; background: light-dark(#e5e5e5, var(--white-14)); }
|
|
.cp-mk-l:nth-child(3) { top: 47%; } .cp-mk-l:nth-child(4) { top: 55%; } .cp-mk-l:nth-child(5) { top: 63%; }
|
|
.cp-mk-b { left: 8%; top: 76%; width: 26%; height: 11%; border-radius: 99px; background: light-dark(#0a0a0a, var(--muted-foreground)); }
|
|
.cp-mk-b2 { left: 38%; top: 76%; width: 22%; height: 11%; border-radius: 99px; box-shadow: inset 0 0 0 1.5px light-dark(#d4d4d4, var(--white-30)); }
|
|
.cp-mk-ocr i { border-radius: 6px; box-shadow: inset 0 0 0 2px var(--cp-ink); background: light-dark(rgba(10, 10, 10, .05), var(--white-05)); opacity: 0; }
|
|
.o-h { left: 6.5%; top: 14%; width: 47%; height: 10%; } .o-f { left: 6.5%; top: 27%; width: 63%; height: 15%; }
|
|
.o-l0 { left: 6.5%; top: 45.5%; width: 67%; height: 7%; } .o-l1 { left: 6.5%; top: 53.5%; width: 51%; height: 7%; } .o-l2 { left: 6.5%; top: 61.5%; width: 59%; height: 7%; }
|
|
.o-b { left: 6.5%; top: 74%; width: 29%; height: 15%; }
|
|
.cp-mk-som b { display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 8px; background: var(--cp-ink); color: var(--cp-on-ink); font-size: 13px; box-shadow: 0 0 0 3px var(--cp-paper); opacity: 0; }
|
|
.s-f { left: 8%; top: 29%; } .s-b { left: 8%; top: 76%; } .s-b2 { left: 38%; top: 76%; } .s-h { left: 8%; top: 16%; }
|
|
.cp-mk-miss { position: absolute; left: 0; top: 0; opacity: 0; }
|
|
.cp-mk.on .cp-mk-ocr i { animation: cp-ocr 8s ease calc(var(--i) * .12s) infinite; }
|
|
.cp-mk.on .cp-mk-som b { animation: cp-som 8s var(--av-ease) calc(var(--i) * .1s) infinite; }
|
|
.cp-mk.on .cp-mk-miss { animation: cp-miss 8s cubic-bezier(.4, 0, .2, 1) infinite; }
|
|
@keyframes cp-ocr { 0%, 4% { opacity: 0; } 10%, 44% { opacity: 1; } 50%, 100% { opacity: 0; } }
|
|
@keyframes cp-som { 0%, 52% { opacity: 0; transform: scale(.6); } 58%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
|
|
@keyframes cp-miss { 0% { opacity: 0; transform: translate(340px, 290px); } 8% { opacity: 1; } 30%, 46% { transform: translate(115px, 322px); } 70%, 92% { opacity: 1; transform: translate(66px, 300px); } 100% { opacity: 0; transform: translate(66px, 300px); } }
|
|
.cp-mk-flags { display: flex; gap: 8px; font-size: 13px; }
|
|
.cp-mk-flags span { padding: 7px 12px; border-radius: 8px; background: var(--cp-paper); color: var(--cp-ink2); box-shadow: inset 0 0 0 1px var(--cp-hair); }
|
|
.cp-mk.on .f-ocr { animation: cp-flag 8s ease infinite; }
|
|
.cp-mk.on .f-som { animation: cp-flag 8s ease -4s infinite; }
|
|
@keyframes cp-flag { 0%, 4% { background: var(--cp-paper); color: var(--cp-ink2); } 8%, 46% { background: var(--cp-ink); color: var(--cp-on-ink); } 50%, 100% { background: var(--cp-paper); color: var(--cp-ink2); } }
|
|
|
|
/* lens 3: the two permissions, and a voice */
|
|
.cp-hd-os { display: flex; gap: 8px; font-size: 13px; }
|
|
.cp-hd-os span { padding: 7px 12px; border-radius: 8px; background: var(--cp-paper); box-shadow: inset 0 0 0 1px var(--cp-hair); color: var(--cp-ink); }
|
|
.cp-hd-perm { width: min(100%, 420px); padding: 6px; border-radius: 16px; background: var(--cp-paper); box-shadow: inset 0 0 0 1px var(--cp-hair); }
|
|
.cp-hd-row { display: flex; align-items: center; gap: 14px; padding: 14px; }
|
|
.cp-hd-row + .cp-hd-row { border-top: 1px solid var(--cp-hair); }
|
|
.cp-hd-ic { width: 32px; height: 32px; border-radius: 9px; background: light-dark(#262626, var(--muted-foreground)); }
|
|
.cp-hd-row:nth-child(2) .cp-hd-ic { background: #737373; }
|
|
.cp-hd-row b { flex: 1; font-size: 16px; font-weight: 606; }
|
|
.cp-hd-sw { position: relative; width: 50px; height: 30px; border-radius: 99px; background: light-dark(#d4d4d4, var(--white-20)); }
|
|
.cp-hd-sw::before { content: ''; position: absolute; inset: 0; border-radius: 99px; background: var(--cp-ink); opacity: 0; }
|
|
.cp-hd-sw i { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: light-dark(#fff, var(--background)); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
|
|
.cp-hd.on .cp-hd-sw::before { animation: cp-swb 7s ease calc(.6s + var(--i) * .8s) infinite; }
|
|
.cp-hd.on .cp-hd-sw i { animation: cp-swi 7s var(--av-ease) calc(.6s + var(--i) * .8s) infinite; }
|
|
@keyframes cp-swb { 0% { opacity: 0; } 6%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
|
|
@keyframes cp-swi { 0% { transform: none; } 6%, 86% { transform: translateX(20px); } 94%, 100% { transform: none; } }
|
|
.cp-hd-voice { display: flex; align-items: center; gap: 14px; max-width: 100%; padding: 12px 20px 12px 14px; border-radius: 999px; background: #0a0a0a; }
|
|
.cp-hd-voice em { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .78); white-space: nowrap; }
|
|
.cp-hd-voice .cp-bars { height: 28px; }
|
|
.cp-mic { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fafafa; }
|
|
.cp-mic::before { content: ''; position: absolute; left: 50%; top: 22%; width: 26%; height: 40%; margin-left: -13%; border-radius: 99px; background: #0a0a0a; }
|
|
.cp-mic::after { content: ''; position: absolute; left: 50%; bottom: 20%; width: 2px; height: 16%; margin-left: -1px; background: #0a0a0a; }
|
|
|
|
/* ---------- the pre-flight ---------- */
|
|
/* no dead white between the pinned lenses, the pre-flight and the paste block */
|
|
.cp .cp-pre { padding-top: 44px; padding-bottom: 72px; }
|
|
.cp .cp-ship { padding-top: 27px; }
|
|
@media (min-width: 900px) { .js .cp-sc.av-sc { height: calc(var(--n) * 92svh); } }
|
|
.cp-pre-l { grid-column: 1 / span 5; align-self: start; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
|
|
.cp-pre-l .av-body { margin-top: 6px; }
|
|
.cp-meter { margin-top: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 20px; }
|
|
.cp-meter-n { font-size: 14px; color: var(--cp-ink2); }
|
|
.cp-meter-n b { font: 220 44px/1 var(--sans); letter-spacing: -.04em; color: var(--cp-ink); margin-right: 4px; }
|
|
.cp-meter-bar { display: block; height: 4px; border-radius: 4px; background: light-dark(#d4d4d4, var(--white-20)); overflow: hidden; }
|
|
.cp-meter-bar i { display: block; height: 100%; background: var(--cp-ink); transform: scaleX(0); transform-origin: 0 50%; }
|
|
.cp-meter-t { grid-column: 1 / -1; font-size: 13px; color: var(--cp-ink2); }
|
|
.cp-meter-t.ok { color: var(--cp-ink); }
|
|
.cp-checks { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cp-hair); }
|
|
.cp-checks li { border-bottom: 1px solid var(--cp-hair); }
|
|
.cp-check { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 48px; gap: 20px; align-items: start; padding: 27px 0; border: 0; background: none; color: var(--cp-ink); text-align: left; cursor: pointer; }
|
|
.cp-check:active .cp-box { transform: scale(.97); }
|
|
.cp-check:focus-visible { outline: 2px solid var(--cp-ink); outline-offset: 4px; border-radius: 12px; }
|
|
.cp-check-n { padding-top: 6px; font-size: 12px; color: var(--cp-ink3); }
|
|
.cp-check-t { display: flex; flex-direction: column; gap: 8px; }
|
|
.cp-check-t b { font-size: 21px; font-weight: 497; letter-spacing: -.015em; line-height: 1.25; }
|
|
.cp-check-t span { font-size: 16px; line-height: 1.55; color: var(--cp-ink2); max-width: 52ch; }
|
|
.cp-box { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px light-dark(rgba(0, 0, 0, .2), var(--white-30)); color: light-dark(#fff, var(--primary-foreground)); transition: background-color .3s, box-shadow .3s, transform .09s; }
|
|
.cp-tick { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s var(--av-ease); }
|
|
.cp-check.on .cp-tick { stroke-dashoffset: 0; }
|
|
@media (hover: hover) { .cp-check:hover .cp-box { box-shadow: inset 0 0 0 1.5px var(--cp-ink); } }
|
|
.cp-check.on .cp-box { background: var(--cp-ink); box-shadow: none; }
|
|
|
|
/* ---------- paste and the repo, then the one closing Band ---------- */
|
|
.cp-ship .av-grid { align-items: start; }
|
|
.cp-paste { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 44px); border-radius: 24px; background: var(--cp-quiet); }
|
|
.cp-prompt { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; padding: 20px 22px; border-radius: 16px; background: var(--cp-paper); box-shadow: inset 0 0 0 1px var(--cp-hair); }
|
|
.cp-prompt .cp-note { grid-column: 1 / -1; }
|
|
.cp-prompt code { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
|
|
.cp-prompt .x-copy { height: 44px; min-width: 205px; justify-content: center; padding: 0 16px; font-size: 14px; }
|
|
/* the prompt waits for you: a caret blinks after its last word */
|
|
.cp-prompt code::after { content: ''; display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -.18em; background: var(--cp-ink); animation: cp-caret 1.1s steps(1) infinite; }
|
|
@keyframes cp-caret { 50% { opacity: 0; } }
|
|
/* the lede follows the h1's cut-in, never before it */
|
|
.js .cp-lede { animation: cp-lede .7s cubic-bezier(.16, 1, .3, 1) .42s both; }
|
|
@keyframes cp-lede { from { clip-path: inset(0 0 100% 0); transform: translateY(10px); } to { clip-path: inset(0 0 0 0); transform: none; } }
|
|
.cp-check-t b, .cp-sc .av-head { text-wrap: balance; }
|
|
.cp .cp-sc .av-head { font-size: 26px; }
|
|
@media (hover: hover) { .cp-prompt .x-copy:hover { background: var(--cp-ink); color: var(--cp-on-ink); } }
|
|
@media (hover: hover) { .cp-check:hover { background: var(--x-sunk); } }
|
|
.cp-get { grid-column: 9 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: clamp(24px, 3vw, 44px); }
|
|
.cp-get .x-arrow { color: var(--cp-ink); }
|
|
.cp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; margin: 6px 0 4px; font-size: 15px; color: var(--cp-ink); }
|
|
.cp-meta p { display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; }
|
|
.cp-meta-k { font: 600 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cp-ink3); }
|
|
.cp-meta p .x-mono { font-size: 13px; color: var(--cp-ink2); }
|
|
.cp-src { display: inline-flex; align-items: center; min-height: 44px; color: var(--cp-ink); text-underline-offset: 3px; }
|
|
.cp-meta dd .x-mono { margin-left: 6px; font-size: 13px; color: var(--cp-ink2); }
|
|
.cp-term { align-self: stretch; margin: 10px 0 6px; border-radius: 16px; background: #171717; overflow: hidden; }
|
|
.cp-term-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
|
|
.cp-term-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
|
|
.cp-term code { display: flex; align-items: center; gap: 10px; padding: 20px 18px 24px; font-size: 15px; color: #fafafa; }
|
|
.cp-term b { color: #a3a3a3; font-weight: 400; }
|
|
.cp-term-c { width: 9px; height: 18px; margin-left: -4px; background: #fafafa; animation: cp-caret 1.1s steps(1) infinite; }
|
|
/* the hero ask on black: hover darkens to silver so it reads, press scales */
|
|
@media (hover: hover) { .cp-hero .x-btn[data-cta='computer-hero-try']:hover { background: #d4d4d4; } }
|
|
.cp-band { padding: clamp(116px, 12vw, 188px) 0; }
|
|
.cp-band .av-wrap { display: flex; flex-direction: column; align-items: center; }
|
|
.x-band h2.cp-band-h { font-size: 44px; font-weight: 497; letter-spacing: -.03em; line-height: 1.08; }
|
|
.cp-band .x-arrow { color: #fafafa; }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.cp *, .cp *::before, .cp *::after { animation: none !important; }
|
|
.cp-px-mesh { opacity: .6; }
|
|
.cp-mk-som b { opacity: 1; }
|
|
.cp-hd-row:first-child .cp-hd-sw::before { opacity: 1; }
|
|
.cp-hd-row:first-child .cp-hd-sw i { transform: translateX(20px); }
|
|
}
|
|
|
|
@media (max-width: 899px) {
|
|
.cp-hero { padding: 80px 0 96px; }
|
|
.cp-top { row-gap: 20px; }
|
|
.cp-top-l { gap: 10px; }
|
|
.cp-h1 { font-size: 40px; }
|
|
.cp-lede { font-size: 19px; }
|
|
.cp-top-r { align-items: flex-start; }
|
|
.cp-acts { justify-content: flex-start; }
|
|
.cp-stage { width: calc(100% - 20px); margin-top: 28px; }
|
|
.cp-obj { padding: 6px; border-radius: 20px; }
|
|
/* phones crop the desktop at a readable size instead of shrinking all of it: the portal fills the frame */
|
|
.cp-obj { overflow: hidden; }
|
|
.cp-desk { width: 172%; aspect-ratio: 16 / 9; border-radius: 14px; margin-left: -3%; }
|
|
.cp-wbar { height: 18px; gap: 4px; padding: 0 6px; }
|
|
.cp-title { font-size: 13px; }
|
|
.cp-row em { padding: 0 5px; font-size: 11px; }
|
|
.cp-wbar i { width: 6px; height: 6px; }
|
|
.cp-win { border-radius: 8px; }
|
|
.cp-you { font-size: 11px; padding: 1px 6px; }
|
|
.cp-som b { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: 11px; border-radius: 6px; box-shadow: 0 0 0 2px #fff; }
|
|
.cp-dock { gap: 4px; border-radius: 8px; }
|
|
.cp-pix { background-size: 9px 9px; }
|
|
.cp-cur svg { width: 20px; height: 20px; }
|
|
.cp-cap-top { flex-wrap: wrap; padding: 4px 4px 8px 0; gap: 8px; }
|
|
.cp-cap-k { flex: 1 1 calc(100% - 60px); font-size: 15px; }
|
|
.cp-tabs { flex: 1 1 100%; justify-content: space-between; }
|
|
.cp-count { display: none; }
|
|
.cp-tabs li { flex: 1 1 0; }
|
|
|
|
.cp-vis { min-height: 420px; border-radius: 20px; padding: 20px; }
|
|
.cp-sc-b { font-size: 17px; }
|
|
.cp-px-grid { gap: 10px; }
|
|
.cp-mk-miss { display: none; }
|
|
.cp-hd-row b { font-size: 15px; }
|
|
.cp-hd-voice { gap: 10px; padding: 12px 16px 12px 12px; }
|
|
.cp-hd-voice .cp-bars i:nth-child(n + 12) { display: none; }
|
|
|
|
.cp-pre-l { position: static; }
|
|
.cp-check { grid-template-columns: minmax(0, 1fr) 48px; gap: 16px; padding: 24px 0; }
|
|
.cp-check-n { display: none; }
|
|
.cp-check-t b { font-size: 19px; }
|
|
.cp-check-t span { font-size: 15px; }
|
|
.cp-paste { padding: 22px; border-radius: 20px; }
|
|
.cp-prompt { grid-template-columns: minmax(0, 1fr); padding: 18px; }
|
|
.cp-prompt .x-copy { justify-self: start; }
|
|
.cp-meta { flex-wrap: wrap; gap: 8px 32px; }
|
|
.x-band h2.cp-band-h { font-size: 32px; }
|
|
}
|