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_01P5YBdv4vL6q1MbG8BDxRdW
502 lines
42 KiB
CSS
502 lines
42 KiB
CSS
/* ---------- gui v2 (gu-), on the Business grammar in components/v2/Biz.css; greys and ink only (JAMES.md 7) ---------- */
|
|
/* dark (Hanzo's selector and tokens): the shared Business grammar (Biz.css --bz-*) follows Hanzo's dark on this page; the
|
|
devices draw the kit in its dark theme: the screen is the page, $4 a muted surface, $8 the inverted ink */
|
|
html:not(.light) .gu { --bz-ink: var(--foreground); --bz-muted: var(--muted-foreground); --bz-quiet: var(--text-tertiary); --bz-line: var(--border); --bz-paper: var(--card); --bz-room: var(--muted); --bz-card: var(--muted); --bz-tile: var(--secondary); --bz-track: var(--secondary); --acc-soft: var(--secondary); background: var(--bg); color: var(--ink); }
|
|
html:not(.light) .gu .x-btn.solid { --btn-solid-hover: var(--primary-hover); }
|
|
html:not(.light) .gu-code { box-shadow: 0 0 0 1px var(--border); }
|
|
html:not(.light) .gu-cmp { outline: 1px solid var(--border); outline-offset: -1px; }
|
|
html:not(.light) .gu-pp-dev { background: var(--background); }
|
|
html:not(.light) .gu-w, html:not(.light) .gu-w .gu-t, html:not(.light) .gu-w .gu-b { transition: scale .15s cubic-bezier(0, 0, .2, 1), background-color .15s cubic-bezier(0, 0, .2, 1), color .15s cubic-bezier(0, 0, .2, 1); }
|
|
html:not(.light) .gu-w[data-bg='$4'] { background-color: var(--muted) !important; }
|
|
html:not(.light) .gu-w[data-bg='$4'] .gu-t { color: var(--foreground) !important; }
|
|
html:not(.light) .gu-w[data-bg='$4'] .gu-b { background-color: var(--primary) !important; color: var(--primary-foreground) !important; }
|
|
html:not(.light) .gu-w[data-bg='$8'] { background-color: var(--primary) !important; color: var(--primary-foreground); }
|
|
html:not(.light) .gu-w[data-bg='$8'] .gu-t { color: var(--primary-foreground) !important; }
|
|
html:not(.light) .gu-w[data-bg='$8'] .gu-b { background-color: var(--background) !important; color: var(--foreground) !important; }
|
|
/* the install pane is Frame's light Code, and Hanzo's tokens give any .light element its light values: so the dark
|
|
values are carried in from the page (--gu-*, resolved on .gu) and the pane is told it is dark */
|
|
html:not(.light) .gu { --gu-muted: var(--muted); --gu-secondary: var(--secondary); --gu-border: var(--border); --gu-soft: var(--muted-foreground); --gu-faint: var(--text-tertiary); }
|
|
html:not(.light) .gu .cf-code.light { color-scheme: dark; background: var(--gu-muted); color: var(--ink); border-color: var(--gu-border); }
|
|
html:not(.light) .gu .cf-code.light .cf-code-bar { border-color: var(--gu-border); }
|
|
html:not(.light) .gu .cf-code.light .cf-code-bar > i { background: var(--gu-secondary); }
|
|
html:not(.light) .gu .cf-code.light .cf-code-tabs { background: var(--gu-secondary); }
|
|
html:not(.light) .gu .cf-code.light .cf-code-tabs button[aria-selected='true'] { color: var(--x-on-ink); }
|
|
html:not(.light) .gu .cf-code.light .s { color: var(--gu-soft); }
|
|
html:not(.light) .gu .cf-code.light .c { color: var(--gu-faint); }
|
|
html:not(.light) .gu .cf-code.light .cf-mark { background-color: var(--gu-secondary); background-image: none; }
|
|
html:not(.light) .gu .cf-code.light .cf-code-bar .x-copy { background: var(--gu-secondary); border-color: var(--gu-border); color: var(--gu-soft); }
|
|
@media (hover: hover) { html:not(.light) .gu .cf-code.light .cf-code-bar .x-copy:hover { background: var(--ink); color: var(--x-on-ink); border-color: var(--ink); } }
|
|
html:not(.light) .gu .cf-paste-box { box-shadow: 0 0 0 1px var(--border); }
|
|
@media (hover: hover) { html:not(.light) .gu .bz-open-card:hover .bz-open-plus { color: var(--x-on-ink); } }
|
|
|
|
/* the hero: a centred two-line title, the code bar, four frames in one row */
|
|
.gu-hero { padding: clamp(24px, 2vw, 36px) 0 0; overflow: clip; }
|
|
.gu-top { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
|
|
.gu-h1 { max-width: none; }
|
|
.gu-h1 > span { display: block; }
|
|
.gu-h1 .bz-line:nth-child(2) { color: light-dark(#737373, var(--muted-foreground)); }
|
|
.gu-pkg { margin: 4px 0 0; font-size: 14px; color: var(--faint); }
|
|
.gu-acts { justify-content: center; margin-top: 6px; }
|
|
@keyframes gu-in { from { opacity: 0; } }
|
|
.gu-stage { margin-top: 6px; }
|
|
.gu-settle { transform-origin: 50% 0; }
|
|
@media (prefers-reduced-motion: reduce) { .gu-settle { transform: none !important; } }
|
|
|
|
/* the code bar: what the four are rendering, with the Pause */
|
|
.gu-code { display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%; margin: 0 auto 20px; padding: 6px 6px 6px 22px; border-radius: 999px; background: light-dark(#0a0a0a, var(--muted)); color: #f5f5f5; box-shadow: none; }
|
|
.gu-code p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: 16px; }
|
|
.gu-code-t { color: #737373; }
|
|
.gu-code-p { display: inline-flex; align-items: center; color: #a3a3a3; }
|
|
.gu-code-v { position: relative; display: inline-flex; height: 1.4em; overflow: hidden; }
|
|
.gu-code-v b { display: inline-block; font-weight: 497; line-height: 1.4; color: #ffffff; }
|
|
.gu-hold { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: light-dark(#171717, var(--secondary)); color: #f5f5f5; cursor: pointer; transition: border-color .15s, transform .09s; }
|
|
@media (hover: hover) { .gu-hold:hover { border-color: rgba(255, 255, 255, .55); } }
|
|
.gu-hold:active { transform: scale(.97); }
|
|
.gu-hold.off { opacity: .3; cursor: default; }
|
|
.gu-hold:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
|
|
|
|
/* the four */
|
|
.gu-four { display: grid; gap: 24px; align-items: center; }
|
|
.gu-hero-four { grid-template-columns: .42fr .42fr 1fr 1fr; max-width: min(1152px, calc((100svh - 400px) * 2.5)); margin: 0 auto; align-items: end; } /* one baseline for the four captions */
|
|
.gu-fig { margin: 0; min-width: 0; }
|
|
.gu-fig figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; text-align: center; }
|
|
.gu-fig figcaption b { font-size: 17px; font-weight: 606; letter-spacing: -.01em; }
|
|
.gu-fig figcaption span { font-size: 14px; color: var(--soft); }
|
|
|
|
/* device frames: sized by their own width (container units), so one drawing serves every size */
|
|
.gu-dev { position: relative; container-type: inline-size; }
|
|
.gu-frame { position: relative; }
|
|
.gu-ios, .gu-android { aspect-ratio: 9 / 19.5; padding: 3.4cqw; background: light-dark(#0a0a0a, var(--secondary)); box-shadow: none; }
|
|
.gu-ios { border-radius: 17cqw; }
|
|
.gu-android { border-radius: 10cqw; }
|
|
.gu-ios .gu-scr, .gu-android .gu-scr { height: 100%; }
|
|
.gu-ios .gu-scr { border-radius: 13.6cqw; }
|
|
.gu-android .gu-scr { border-radius: 7cqw; }
|
|
.gu-scr { position: relative; display: grid; place-items: center; padding: 8cqw; background: light-dark(#ffffff, var(--background)); overflow: hidden; }
|
|
.gu-island { position: absolute; z-index: 2; left: 50%; top: 6cqw; width: 30cqw; height: 8.6cqw; translate: -50% 0; border-radius: 999px; background: #0a0a0a; }
|
|
.gu-hole { position: absolute; z-index: 2; left: 50%; top: 6cqw; width: 5cqw; height: 5cqw; translate: -50% 0; border-radius: 50%; background: #0a0a0a; }
|
|
.gu-gest { position: absolute; z-index: 2; left: 50%; bottom: 6cqw; width: 30cqw; height: 1.6cqw; translate: -50% 0; border-radius: 999px; background: light-dark(rgba(0, 0, 0, .45), var(--text-disabled)); }
|
|
.gu-sb { position: absolute; z-index: 2; left: 12cqw; top: 6.4cqw; font-size: 13px; line-height: 1; font-weight: 606; color: var(--ink); }
|
|
.gu-android .gu-sb { left: 9cqw; top: 6cqw; }
|
|
@container (max-width: 160px) { .gu-sb { display: none; } }
|
|
.gu-web, .gu-desk { border-radius: 16px; background: light-dark(#ffffff, var(--background)); border: 1px solid var(--x-e10); box-shadow: none; overflow: hidden; }
|
|
.gu-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: light-dark(#f5f5f5, var(--muted)); border-bottom: 1px solid var(--line); }
|
|
.gu-desk .gu-bar { background: light-dark(#ededed, var(--secondary)); }
|
|
.gu-lights { display: flex; gap: 6px; }
|
|
.gu-lights i { width: 10px; height: 10px; border-radius: 50%; background: light-dark(#d4d4d4, var(--text-disabled)); }
|
|
.gu-url { width: 46%; height: 18px; margin: 0 auto; border-radius: 6px; background: light-dark(#ffffff, var(--background)); border: 1px solid var(--line); }
|
|
.gu-wt { margin: 0 auto; padding-right: 42px; font-size: 13px; font-weight: 497; color: var(--soft); }
|
|
.gu-web .gu-scr, .gu-desk .gu-scr { aspect-ratio: 16 / 10; padding: 5cqw; }
|
|
.gu-desk .gu-scr { background: light-dark(#f5f5f5, var(--muted)); }
|
|
|
|
/* Hanzo's Welcome: YStack, Text, Button */
|
|
.gu-w { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: calc(var(--pad) * 1px * var(--k, 1)); border: 1px solid var(--line); box-shadow: none; }
|
|
.gu-t { font-size: 17px; font-weight: 606; letter-spacing: -.02em; white-space: nowrap; }
|
|
.gu-b { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; font-size: 14px; font-weight: 497; white-space: nowrap; }
|
|
.gu-w.parts, .gu-w.parts [data-part] { outline: 1.5px dashed light-dark(rgba(0, 0, 0, .45), var(--text-tertiary)); outline-offset: 4px; }
|
|
.gu-w.parts::after, .gu-w.parts [data-part]::after { content: attr(data-part); position: absolute; left: -5px; top: -30px; padding: 3px 7px; border-radius: 6px; background: var(--ink); color: var(--x-on-ink); font: 497 13px/1.2 var(--mono); letter-spacing: 0; white-space: nowrap; }
|
|
.gu-w.parts [data-part] { position: relative; }
|
|
.gu-w.parts [data-part]::after { top: 50%; left: calc(100% + 12px); translate: 0 -50%; }
|
|
.gu-ios .gu-w.parts [data-part]::after, .gu-android .gu-w.parts [data-part]::after { display: none; }
|
|
/* the render tag hangs under its frame (where the hidden caption was), so it never sits on the card inside the window */
|
|
.gu-tag { position: absolute; z-index: 3; left: 50%; top: calc(100% + 10px); translate: -50% 0; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--x-on-ink); font-size: 13px; white-space: nowrap; animation: gu-in .4s var(--ease) both; }
|
|
|
|
.gu-four { position: relative; }
|
|
.gu-fig { position: relative; }
|
|
.gu-hero .gu-stage { position: relative; margin-top: 28px; }
|
|
|
|
/* build it once: the heading, the compare signature, then the five chapters as plain rows */
|
|
.gu-build { padding-top: clamp(72px, 8vw, 116px); }
|
|
.gu-build-top { margin-bottom: clamp(28px, 3vw, 44px); }
|
|
.gu-build-top h2 { margin: 0; max-width: 18ch; }
|
|
|
|
/* the signature: one window, a divider dragged across it; Hanzo's source on the left, the platform it renders on the right */
|
|
.gu-cmp { --h: clamp(360px, 46svh, 480px); position: relative; height: var(--h); border-radius: 24px; overflow: hidden; background: light-dark(#f5f5f5, var(--muted)); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
|
|
.gu-cmp-a, .gu-cmp-b { position: absolute; inset: 0; }
|
|
.gu-cmp-a { background: light-dark(#171717, var(--background)); clip-path: inset(0 calc(100% - var(--x)) 0 0); transition: clip-path .5s cubic-bezier(.4, 0, .2, 1); }
|
|
.gu-cmp[data-dragging] .gu-cmp-a, .gu-cmp[data-dragging] .gu-cmp-h { transition: none; }
|
|
.gu-cmp-a pre { margin: 0; padding: clamp(28px, 4vw, 56px); font-size: clamp(14px, 1.4vw, 17px); line-height: 1.7; color: #a3a3a3; white-space: pre; }
|
|
.gu-src-k { color: #737373; }
|
|
.gu-src-t { color: #fafafa; }
|
|
.gu-cmp-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
|
|
.gu-cmp-dev { grid-column: 2; justify-self: center; display: grid; place-items: center; height: 100%; padding: 28px 0 64px; }
|
|
/* the phones are sized by the window's height (9:19.5 inside its padding), so they never reach the platform names */
|
|
.gu-cmp-dev[data-k='ios'] .gu-dev, .gu-cmp-dev[data-k='android'] .gu-dev { width: calc((var(--h) - 100px) * 9 / 19.5); }
|
|
.gu-cmp-dev[data-k='web'] .gu-dev, .gu-cmp-dev[data-k='desk'] .gu-dev { width: min(clamp(260px, 30vw, 440px), calc((var(--h) - 134px) * 1.6)); }
|
|
.gu-cmp-dev .gu-dev { animation: gu-in .4s cubic-bezier(0, 0, .2, 1) both; }
|
|
.gu-cmp-plat { position: absolute; right: 24px; bottom: 18px; display: flex; gap: 6px; margin: 0; font-size: 13px; }
|
|
.gu-cmp-plat span { padding: 6px 10px; border-radius: 8px; color: #737373; transition: background-color .15s, color .15s; }
|
|
.gu-cmp-plat span.on { background: var(--ink); color: var(--x-on-ink); }
|
|
.gu-cmp-h { position: absolute; top: 0; bottom: 0; left: var(--x); width: 44px; margin-left: -22px; display: grid; place-items: center; outline: none; transition: left .5s cubic-bezier(.4, 0, .2, 1); }
|
|
.gu-cmp-h::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: light-dark(#ffffff, var(--foreground)); box-shadow: 0 0 0 1px var(--x-e10); }
|
|
.gu-cmp-h i { position: relative; width: 44px; height: 44px; border-radius: 50%; background: light-dark(#ffffff, var(--secondary)); box-shadow: 0 0 0 1px var(--x-e12), 0 24px 60px -16px rgba(0, 0, 0, .18); transition: transform .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gu-cmp-h i::before, .gu-cmp-h i::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
|
|
.gu-cmp-h i::before { left: 11px; rotate: -45deg; }
|
|
.gu-cmp-h i::after { right: 11px; rotate: 135deg; }
|
|
@media (hover: hover) { .gu-cmp:hover .gu-cmp-h i { transform: scale(1.08); } }
|
|
.gu-cmp[data-dragging] .gu-cmp-h i { transform: scale(.97); }
|
|
.gu-cmp-h:focus-visible i { outline: 2px solid var(--ink); outline-offset: 3px; }
|
|
|
|
/* the five chapters: words left, each chapter's own object right; the list leans with the scroll speed (--sk) */
|
|
.gu-chs { list-style: none; margin-top: clamp(56px, 6vw, 88px); padding-bottom: 0; transform: skewY(var(--sk, 0deg)); transform-origin: 50% 0; }
|
|
.gu-ch { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); }
|
|
.gu-ch-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 10px; }
|
|
.gu-ch-t { margin: 0; font-size: 21px; font-weight: 606; letter-spacing: -.02em; line-height: 1.2; }
|
|
.gu-ch-copy .bz-body { margin: 0; }
|
|
.gu-ch-n { margin: 0; font-size: 13px; color: var(--soft); }
|
|
.gu-ch-obj { grid-column: 7 / span 6; display: grid; place-items: center; min-height: 200px; padding: 28px; border-radius: 24px; background: light-dark(#f5f5f5, var(--muted)); }
|
|
.gu-ch-targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
|
|
.gu-ch-targets li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: light-dark(#ffffff, var(--secondary)); }
|
|
.gu-ch-targets b { font-size: 17px; font-weight: 606; }
|
|
.gu-ch-targets span { font-size: 13px; color: var(--soft); }
|
|
.gu-ch-targets li { transition: background-color .3s cubic-bezier(0, 0, .2, 1), color .3s cubic-bezier(0, 0, .2, 1), transform .3s cubic-bezier(.16, 1, .3, 1); }
|
|
.gu-ch-targets li.on { background: var(--ink); color: var(--x-on-ink); transform: translateY(-2px); }
|
|
.gu-ch-targets li.on span { color: light-dark(#a3a3a3, var(--neutral-600)); }
|
|
.gu-ch-pair { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
|
|
.gu-ch-flat { width: 100%; padding: 24px; border-radius: 16px; background: light-dark(#171717, var(--background)); container-type: inline-size; }
|
|
.gu-ch-flat .gu-flat { padding: 0; font-size: 15px; }
|
|
.gu-ch-parts { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 30px; }
|
|
.gu-ch-parts .gu-w { gap: 18px; }
|
|
.gu-ch-prims { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
|
|
.gu-ch-prims li { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; color: var(--soft); background: light-dark(#ffffff, var(--secondary)); }
|
|
.gu-ch-prims li.on { background: var(--ink); border-color: var(--ink); color: var(--x-on-ink); }
|
|
@keyframes gu-press { 0%, 72%, 100% { scale: 1; } 82% { scale: .93; } }
|
|
.gu-ch-wave .gu-b { animation: gu-press 1.5s cubic-bezier(.4, 0, .2, 1) infinite; }
|
|
|
|
/* the compiler's flat rule (chapter 03) */
|
|
.gu-scr.flat { background: #171717; place-items: center start; }
|
|
.gu-flat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0 6cqw; color: #a3a3a3; font-size: clamp(11px, 5.4cqw, 15px); line-height: 1.5; animation: gu-in .3s cubic-bezier(0, 0, .2, 1) both; }
|
|
.gu-flat span:not(.gu-flat-t) { color: #fafafa; }
|
|
|
|
/* ---------- the five entrances (docs/MOTION-MAP.md), in page order. A section is armed by JS only (below the fold,
|
|
motion allowed), so the server HTML, JS off and reduced motion are the finished page. ---------- */
|
|
/* 1 split-merge: the compare's two halves slide in from left and right and meet at the divider */
|
|
.gu-cmp-wrap[data-arm] .gu-cmp-a { transform: translateX(-24%); opacity: 0; }
|
|
.gu-cmp-wrap[data-arm] .gu-cmp-b { transform: translateX(24%); opacity: 0; }
|
|
.gu-cmp-wrap[data-arm][data-in] .gu-cmp-a, .gu-cmp-wrap[data-arm][data-in] .gu-cmp-b { transform: none; opacity: 1; transition: transform .8s cubic-bezier(.16, 1, .3, 1), opacity .5s cubic-bezier(0, 0, .2, 1), clip-path .5s cubic-bezier(.4, 0, .2, 1); }
|
|
/* 2 velocity-skew: the rows arrive leaning and straighten (and the list keeps leaning with scroll speed, --sk) */
|
|
.gu-chs[data-arm] .gu-ch { transform: translateY(48px) skewY(6deg); opacity: 0; transform-origin: 0 0; }
|
|
.gu-chs[data-arm][data-in] .gu-ch { transform: none; opacity: 1; transition: transform .7s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 80ms), opacity .4s cubic-bezier(0, 0, .2, 1) calc(var(--i) * 80ms); }
|
|
/* 3 domino: the editor's rows tip into place one after another */
|
|
.gu-api[data-arm] .gu-api-top > *, .gu-api[data-arm] .gu-ed > *, .gu-api[data-arm] .gu-api-one { transform: rotate(-9deg) translateY(-12px); transform-origin: 0 100%; opacity: 0; }
|
|
.gu-api[data-arm][data-in] .gu-api-top > *, .gu-api[data-arm][data-in] .gu-ed > *, .gu-api[data-arm][data-in] .gu-api-one { transform: none; opacity: 1; transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .3s cubic-bezier(0, 0, .2, 1); }
|
|
.gu-api[data-in] .gu-api-top > :nth-child(2) { transition-delay: .09s; }
|
|
.gu-api[data-in] .gu-ed > :nth-child(1) { transition-delay: .18s; }
|
|
.gu-api[data-in] .gu-ed > :nth-child(2) { transition-delay: .27s; }
|
|
.gu-api[data-in] .gu-ed > :nth-child(3) { transition-delay: .36s; }
|
|
.gu-api[data-in] .gu-ed > :nth-child(4) { transition-delay: .45s; }
|
|
.gu-api[data-in] .gu-ed > :nth-child(5) { transition-delay: .54s; }
|
|
.gu-api[data-in] .gu-api-one { transition-delay: .63s; }
|
|
/* 4 cursor-lens: a lens sweeps the row once and each card resolves as it passes; then the lens follows a fine pointer
|
|
and the card under it magnifies */
|
|
.gu-lens-wrap { position: relative; }
|
|
.gu-lens { position: absolute; z-index: 4; left: 0; top: 0; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; border: 1.5px solid var(--ink); pointer-events: none; opacity: 0; transform: translate(var(--lx, 0px), var(--ly, 0px)); transition: opacity .2s cubic-bezier(0, 0, .2, 1); }
|
|
.gu-lens-wrap[data-lens] .gu-lens { opacity: 1; }
|
|
.gu-plats > li { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
|
|
.gu-plats > li.gu-lensed { transform: scale(1.04); z-index: 2; }
|
|
@keyframes gu-sweep { from { transform: translate(-80px, 160px); opacity: 1; } 92% { opacity: 1; } to { transform: translate(calc(100cqw + 80px), 160px); opacity: 0; } }
|
|
.gu-lens-wrap { container-type: inline-size; }
|
|
.gu-lens-wrap[data-arm] .gu-plats > li { opacity: 0; transform: scale(.9); filter: blur(4px); }
|
|
.gu-lens-wrap[data-arm][data-in] .gu-lens { animation: gu-sweep 1.3s cubic-bezier(.4, 0, .2, 1) both; }
|
|
.gu-lens-wrap[data-arm][data-in] .gu-plats > li { opacity: 1; transform: none; filter: none; transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .3s cubic-bezier(0, 0, .2, 1), filter .4s cubic-bezier(0, 0, .2, 1); }
|
|
.gu-lens-wrap[data-in] .gu-plats > li:nth-child(1) { transition-delay: .15s; }
|
|
.gu-lens-wrap[data-in] .gu-plats > li:nth-child(2) { transition-delay: .45s; }
|
|
.gu-lens-wrap[data-in] .gu-plats > li:nth-child(3) { transition-delay: .75s; }
|
|
.gu-lens-wrap[data-in] .gu-plats > li:nth-child(4) { transition-delay: 1.05s; }
|
|
.gu-lens-wrap[data-in][data-lens] .gu-plats > li { transition-delay: 0s; }
|
|
/* 5 grow-from-point: the close grows out of the last point the visitor clicked (or its centre) */
|
|
.gu-end[data-arm] { clip-path: circle(0 at var(--gx, 50%) var(--gy, 50%)); }
|
|
.gu-end[data-arm][data-in] { clip-path: circle(150% at var(--gx, 50%) var(--gy, 50%)); transition: clip-path .9s cubic-bezier(.16, 1, .3, 1); }
|
|
/* the one ask leans toward the pointer */
|
|
.gu-pull { display: inline-flex; transition: translate .3s cubic-bezier(.16, 1, .3, 1); }
|
|
|
|
/* beyond: the shorthands are the API (the one dark room) */
|
|
.gu-api { background: #171717; color: #fafafa; padding-bottom: clamp(72px, 7vw, 104px); }
|
|
.gu-api-top { align-items: end; margin-bottom: clamp(56px, 6vw, 88px); }
|
|
.gu-api-top h2 { grid-column: 1 / span 7; color: #ffffff; }
|
|
.gu-api-top .bz-body { grid-column: 9 / span 4; color: #a3a3a3; }
|
|
.gu-api-obj { align-items: center; }
|
|
.gu-ed { grid-column: 1 / span 5; padding: 26px; border-radius: 28px; background: #0f0f0f; border: 1px solid rgba(255, 255, 255, .1); }
|
|
.gu-ed-k { display: flex; justify-content: space-between; margin: 0; font-size: 16px; color: #737373; }
|
|
.gu-ed-end { align-items: center; gap: 12px; margin-top: 14px; min-height: 30px; }
|
|
.gu-ed-n { font-size: 14px; color: #737373; }
|
|
.gu-prop { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 14px 0 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
|
|
.gu-prop label { font-size: 16px; color: #f5f5f5; }
|
|
.gu-opts { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
|
|
.gu-opts button { flex: none; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: #171717; color: #a3a3a3; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .09s; }
|
|
@media (hover: hover) {
|
|
.gu-opts button:hover { border-color: rgba(255, 255, 255, .4); color: #f5f5f5; }
|
|
.gu-opts button[aria-checked='true']:hover { background: #ffffff; border-color: #ffffff; color: #0a0a0a; outline: 1px solid rgba(255, 255, 255, .45); outline-offset: 3px; }
|
|
}
|
|
.gu-opts button:active { transform: scale(.97); }
|
|
.gu-opts button[aria-checked='true'] { background: #f5f5f5; color: #0a0a0a; border-color: #f5f5f5; }
|
|
.gu-opts button:focus-visible, .gu-prop input:focus-visible { outline: 2px solid #f5f5f5; outline-offset: 2px; }
|
|
/* the field that closes the chip row shows the value the YStack takes now (its placeholder), ready to be typed over */
|
|
.gu-prop input { --text-control: 16px; flex: 1 1 64px; min-width: 64px; max-width: 120px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: #0f0f0f; color: #f5f5f5; font-size: 16px; outline: none; transition: border-color .15s, background-color .15s; }
|
|
.gu-prop input::placeholder { color: #a3a3a3; opacity: 1; }
|
|
.gu-prop input:focus { border-style: solid; border-color: rgba(255, 255, 255, .55); background: #0a0a0a; }
|
|
@media (hover: hover) { .gu-prop input:hover { border-color: rgba(255, 255, 255, .3); } }
|
|
.gu-prop input.bad { border-style: dashed; border-color: #f5f5f5; text-decoration: underline wavy rgba(255, 255, 255, .8); text-underline-offset: 4px; }
|
|
/* the typecheck, on the closing line: a tick while every value is a token; the drifted value struck and a cross once one is not */
|
|
.gu-tc { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: #d4d4d4; font-size: 14px; line-height: 1.4; }
|
|
.gu-tc i { font-style: normal; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 14px; transition: background-color .15s, color .15s; }
|
|
.gu-tc.bad { color: #f5f5f5; }
|
|
.gu-tc.bad i { background: #f5f5f5; color: #0a0a0a; border-color: #f5f5f5; }
|
|
.gu-tc s { text-decoration-thickness: 1.5px; }
|
|
.gu-api-one { grid-column: 7 / span 6; margin: 0; }
|
|
.gu-api-one .gu-web { border-color: rgba(255, 255, 255, .16); }
|
|
.gu-api-one .gu-scr { aspect-ratio: 16 / 11; }
|
|
.gu-api-one .gu-t { font-size: 26px; }
|
|
.gu-api-one .gu-b { height: 44px; padding: 0 20px; font-size: 16px; }
|
|
.gu-api-one .gu-w { gap: 16px; --k: 1.5; }
|
|
|
|
/* ship: the code, then the platforms as cards that open */
|
|
.gu-ship-top { align-items: end; margin-bottom: clamp(56px, 6vw, 88px); }
|
|
.gu-ship-copy { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 22px; padding-bottom: 6px; }
|
|
.gu-ship-code { grid-column: 6 / span 8; }
|
|
.gu-ship-code .cf-code { margin: 0; }
|
|
.gu-plats { grid-template-columns: .72fr .72fr 1fr 1fr; list-style: none; margin: 0; padding: 0; align-items: stretch; }
|
|
.gu-plats > li { display: flex; }
|
|
/* every card's device sits in the same 236px box, so the four names share one baseline and no card has an empty foot */
|
|
.gu-plat { justify-content: flex-start; gap: 22px; padding: 26px 26px 28px; transition: translate .3s cubic-bezier(.16, 1, .3, 1), background-color .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gu-plat-dev { display: grid; place-items: center; width: 100%; height: 236px; flex: none; pointer-events: none; }
|
|
@media (hover: hover) and (pointer: fine) { .gu-plat:hover { background: light-dark(#e4e4e7, var(--secondary)); translate: 0 -6px; } }
|
|
.gu-plat:active { scale: .97; }
|
|
.gu-plat-ios .gu-plat-dev .gu-dev, .gu-plat-android .gu-plat-dev .gu-dev { width: 108px; }
|
|
.gu-plat-web .gu-plat-dev .gu-dev, .gu-plat-desk .gu-plat-dev .gu-dev { width: 100%; }
|
|
.gu-plat-dev .gu-w { --k: .6; gap: 6px; }
|
|
.gu-plat-dev .gu-t { font-size: 14px; }
|
|
.gu-plat-dev .gu-b { height: 26px; padding: 0 10px; font-size: 13px; }
|
|
.gu-plat-t { display: flex; flex-direction: column; gap: 4px; padding-right: 52px; }
|
|
.gu-plat-t b { font-size: 21px; font-weight: 606; letter-spacing: -.02em; }
|
|
.gu-plat-t span { font-size: 16px; color: var(--soft); }
|
|
/* one line holds the sub-label; on hover or focus it slides up and the props the woken device just took slide in */
|
|
.gu-plat-sw { display: grid; overflow: hidden; }
|
|
.gu-plat-sw > * { grid-area: 1 / 1; transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .2s cubic-bezier(0, 0, .2, 1); }
|
|
.gu-plat-t .gu-plat-p { display: flex; flex-wrap: wrap; gap: 0 10px; align-self: center; font-size: 13px; color: var(--ink); opacity: 0; transform: translateY(100%); }
|
|
.gu-plat-t .gu-plat-p span { font-size: 13px; color: var(--ink); }
|
|
@media (hover: hover) and (pointer: fine) {
|
|
.gu-plat:hover .gu-plat-s { opacity: 0; transform: translateY(-100%); }
|
|
.gu-plat:hover .gu-plat-p { opacity: 1; transform: none; }
|
|
}
|
|
.gu-plat:focus-visible .gu-plat-s { opacity: 0; transform: translateY(-100%); }
|
|
.gu-plat:focus-visible .gu-plat-p { opacity: 1; transform: none; }
|
|
/* the iOS card shows its sheet at rest (touch has no hover); it rises again once when the card wakes */
|
|
.gu-plat-dev .gu-sheet { animation: none; }
|
|
@keyframes gu-rise { from { transform: translateY(100%); } }
|
|
@media (hover: hover) and (pointer: fine) { .gu-plat:hover .gu-plat-dev .gu-sheet { animation: gu-rise .6s cubic-bezier(.16, 1, .3, 1) both; } }
|
|
/* the opened card: it grows to the whole screen and reads as that platform's own page (device large on the left,
|
|
its live props above it, the name at page size on the right); Esc, Close or Back send it back into its card */
|
|
.gu .bz-open-layer { padding: 12px; }
|
|
.gu .bz-open-panel { width: 100%; height: calc(100svh - 24px); max-height: none; }
|
|
.gu .bz-open-scroll { flex: 1; display: grid; align-items: center; padding: clamp(28px, 4vw, 64px); }
|
|
.gu-pp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
|
|
.gu-pp-dev { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: min(62svh, 560px); padding: 32px; border-radius: 24px; background: var(--card); }
|
|
.gu-pp-dev .gu-code { margin-bottom: 24px; }
|
|
.gu-pp-ios .gu-dev, .gu-pp-android .gu-dev { width: min(260px, 100%); }
|
|
.gu-pp-web .gu-dev, .gu-pp-desk .gu-dev { width: 100%; }
|
|
.gu-pp-copy { display: flex; flex-direction: column; gap: 16px; padding-right: 32px; }
|
|
.gu-pp-copy .bz-headline { font-size: 52px; font-weight: 497; letter-spacing: -.03em; line-height: 1.04; }
|
|
.gu-pp-s { margin: 0; font-size: 16px; color: var(--soft); }
|
|
|
|
/* get */
|
|
.gu-ship { padding-top: clamp(72px, 8vw, 116px); padding-bottom: clamp(44px, 5vw, 72px); }
|
|
.gu-get { padding-top: clamp(44px, 5vw, 72px); padding-bottom: 0; }
|
|
/* the section heading reads first: both columns start on one line, and the prompt's title sits a step below the h2 */
|
|
.gu-get .bz-grid { align-items: start; }
|
|
.gu-stars { font-size: 12px !important; color: var(--faint) !important; }
|
|
.gu-get-main { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
|
|
.gu-chips { display: flex; flex-wrap: wrap; gap: 10px; }
|
|
.gu-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font: 497 14px/1 var(--mono); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .09s; }
|
|
.gu-chip span { color: var(--faint); }
|
|
.gu-chip em { font-style: normal; margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--soft); }
|
|
@media (hover: hover) { a.gu-chip:hover { border-color: light-dark(rgba(0, 0, 0, .3), var(--border-selected)); } }
|
|
a.gu-chip:active { transform: scale(.97); }
|
|
.gu-paste { grid-column: 7 / span 6; grid-template-columns: 1fr !important; gap: 22px !important; }
|
|
.gu-paste .cf-paste-t { font-size: 21px; }
|
|
|
|
/* the close */
|
|
.gu-end-main { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
|
|
.gu-end-main .bz-display { max-width: 15ch; }
|
|
.gu-end-main .bz-acts { margin-top: 12px; }
|
|
.gu-end { padding-bottom: clamp(72px, 7vw, 116px); }
|
|
.gu-end-acts { align-items: center; gap: 10px 28px; flex-wrap: wrap; }
|
|
.gu-row { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; font: 497 16px/1.2 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-underline-offset .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gu-row svg { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
|
|
@media (hover: hover) { .gu-row:hover { text-underline-offset: 5px; } .gu-row:hover svg { transform: translateX(4px); } }
|
|
.gu-row:active { transform: translateY(1px); }
|
|
|
|
@media (max-width: 900px) {
|
|
.gu-hero { padding: 28px 0 0; }
|
|
.gu-top { gap: 12px; }
|
|
.gu-stage { margin-top: 28px; }
|
|
.gu-code { margin-bottom: 18px; padding: 5px 5px 5px 16px; border-radius: 24px; }
|
|
.gu-code p { font-size: 14px; gap: 2px 10px; }
|
|
.gu-hero-four { grid-template-columns: 1fr 1fr; grid-template-areas: none; gap: 14px; max-width: none; }
|
|
.gu-fig figcaption { margin-top: 10px; }
|
|
.gu-fig figcaption b { font-size: 16px; }
|
|
.gu-sb, .gu-wt { font-size: 14px; }
|
|
.gu-wt { padding-right: 0; }
|
|
.gu-bar { height: 28px; gap: 8px; padding: 0 9px; }
|
|
.gu-lights i { width: 8px; height: 8px; }
|
|
.gu-web .gu-scr, .gu-desk .gu-scr { aspect-ratio: 4 / 3.2; padding: 3cqw; }
|
|
.gu-w { --k: .6; gap: 7px; }
|
|
.gu-t { font-size: 16px; }
|
|
.gu-b { height: 30px; padding: 0 11px; font-size: 14px; }
|
|
.gu-tag, .gu-w.parts::after, .gu-w.parts [data-part]::after { font-size: 14px; }
|
|
.gu-w.parts [data-part]::after { display: none; }
|
|
|
|
/* the hero keeps its own room before the next section */
|
|
.gu-hero { padding-bottom: 44px; }
|
|
.gu-four::before { left: 18%; right: 18%; }
|
|
|
|
/* the compare on a phone: the same window, the device sized to its half, only the lit platform named */
|
|
.gu-cmp { --h: 380px; }
|
|
.gu-cmp-a pre { padding: 24px 20px; font-size: 13px; }
|
|
.gu-cmp-dev { padding: 20px 0 56px; }
|
|
.gu-cmp-dev[data-k='web'] .gu-dev, .gu-cmp-dev[data-k='desk'] .gu-dev { width: min(150px, 42vw); }
|
|
.gu-cmp-dev[data-k='web'] .gu-bar, .gu-cmp-dev[data-k='desk'] .gu-bar { height: 20px; padding: 0 7px; }
|
|
.gu-cmp-dev .gu-wt { font-size: 11px; }
|
|
.gu-cmp-dev .gu-lights i { width: 6px; height: 6px; }
|
|
.gu-cmp-plat { right: 12px; bottom: 12px; }
|
|
.gu-cmp-plat span:not(.on) { display: none; }
|
|
|
|
/* a chapter on a phone: its title and counter, then its object, then its words (the object leads) */
|
|
.gu-ch { grid-template-columns: minmax(0, 1fr); grid-template-areas: 't' 'n' 'obj' 'body'; row-gap: 8px; padding: 28px 0; }
|
|
.gu-ch-copy { display: contents; }
|
|
.gu-ch-t { grid-area: t; font-size: 21px; }
|
|
.gu-ch-n { grid-area: n; }
|
|
.gu-ch-copy .bz-body { grid-area: body; margin-top: 8px; }
|
|
.gu-ch-obj { grid-area: obj; min-height: 180px; margin-top: 8px; padding: 20px; }
|
|
.gu-ch-targets b { font-size: 16px; }
|
|
.gu-ch-flat { padding: 18px; }
|
|
.gu-ch-flat .gu-flat { font-size: 14px; }
|
|
.gu-ch-parts { gap: 24px; padding-top: 30px; }
|
|
.gu-ch-parts .gu-w.parts [data-part]::after { display: block; }
|
|
.gu-plat-dev { height: 220px; }
|
|
|
|
.gu-api-top { display: flex; flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 40px; }
|
|
.gu-ed { grid-column: 1 / -1; padding: 18px; border-radius: 24px; }
|
|
.gu-prop { grid-template-columns: minmax(0, 1fr); padding: 12px 0; }
|
|
.gu-opts { flex-wrap: wrap; }
|
|
.gu-prop input { height: 44px; max-width: none; }
|
|
.gu-opts button { height: 44px; }
|
|
.gu-api-one { grid-column: 1 / -1; margin-top: 32px; }
|
|
.gu-api-one .gu-t { font-size: 21px; }
|
|
.gu-api-one .gu-scr { aspect-ratio: 4 / 3; }
|
|
|
|
.gu-ship-copy, .gu-ship-code { grid-column: 1 / -1; }
|
|
.gu-ship-code { margin-top: 32px; }
|
|
.gu-plats { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
|
|
.gu-plats::-webkit-scrollbar { display: none; }
|
|
.gu-plats > li { flex: 0 0 74%; scroll-snap-align: start; scroll-margin-left: 16px; }
|
|
.gu-plat { min-height: 340px; padding: 20px; gap: 16px; }
|
|
/* the phone frames fit their 220px box (9:19.5), so the art always ends above the card's name */
|
|
.gu-plat-ios .gu-plat-dev .gu-dev, .gu-plat-android .gu-plat-dev .gu-dev { width: 100px; }
|
|
.gu-plat-t { padding-right: 40px; }
|
|
.gu-plat-t b { font-size: 17px; }
|
|
.gu-plat-t span { font-size: 14px; }
|
|
.gu-plat-dev .gu-b { font-size: 14px; }
|
|
.gu .bz-open-layer { padding: 0; }
|
|
.gu .bz-open-panel { height: auto; max-height: calc(100svh - var(--gu-top, 60px) - 8px); }
|
|
.gu .bz-open-scroll { padding: 64px 20px 32px; }
|
|
.gu-pp { grid-template-columns: minmax(0, 1fr); gap: 24px; }
|
|
.gu-pp-dev { min-height: 0; padding: 20px; }
|
|
.gu-pp-copy { padding-right: 0; }
|
|
.gu-pp-copy .bz-headline { font-size: 32px; }
|
|
|
|
.gu-get-main, .gu-paste { grid-column: 1 / -1; }
|
|
.gu-paste { margin-top: 56px; }
|
|
.gu .cf-paste-k, .gu .x-copy-t, .gu .cf-code-k { font-size: 14px; }
|
|
.gu .cf-code pre { font-size: 14px; }
|
|
.gu .x-arrow { min-height: 44px; }
|
|
/* the terminal scrolls sideways on a phone, and says so: a fade at the right edge and a thin visible bar */
|
|
.gu .cf-code pre { scrollbar-width: thin; scrollbar-color: light-dark(rgba(0, 0, 0, .3), var(--border-selected)) transparent; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 40px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.gu-tag { animation: none; }
|
|
}
|
|
|
|
/* the shared code pane in greys (its default colours are hues) */
|
|
.gu .cf-code .s { color: light-dark(#404040, var(--muted-foreground)); }
|
|
.gu .cf-code .k { color: var(--ink); font-weight: 606; }
|
|
.gu .cf-code.light .cf-mark, .gu .cf-mark { background-image: linear-gradient(light-dark(rgba(0, 0, 0, .1), var(--border-control)), light-dark(rgba(0, 0, 0, .1), var(--border-control))); }
|
|
|
|
/* the kit's own button answers like a button (scale is its own property, so Motion's layout transform is untouched) */
|
|
.gu-b { position: relative; cursor: pointer; transition: scale .15s cubic-bezier(0, 0, .2, 1); }
|
|
.gu-b::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #ffffff; opacity: 0; transition: opacity .15s cubic-bezier(0, 0, .2, 1); pointer-events: none; }
|
|
@media (hover: hover) { .gu-b:hover::before { opacity: .1; } }
|
|
.gu-b:active { scale: .97; transition-duration: .09s; }
|
|
.gu-b:active::before { opacity: .14; }
|
|
.gu-b-solid { background: var(--ink); color: var(--x-on-ink); border-radius: 8px; }
|
|
|
|
/* phones: the Welcome card is drawn in the frame's own units, so it never spills past the screen */
|
|
.gu-ios .gu-scr, .gu-android .gu-scr { padding: 4cqw; }
|
|
.gu-ios .gu-w, .gu-android .gu-w { max-width: 100%; gap: 4cqw; padding: calc(var(--pad) * .36cqw); }
|
|
.gu-ios .gu-t, .gu-android .gu-t { font-size: 9.5cqw; }
|
|
.gu-ios .gu-b, .gu-android .gu-b { height: 17cqw; padding: 0 6.5cqw; font-size: 8cqw; }
|
|
|
|
/* each platform's own screen */
|
|
.gu-s { position: absolute; inset: 0; display: flex; flex-direction: column; }
|
|
.gu-s-ios { justify-content: flex-end; padding-top: 22cqw; background: light-dark(#f5f5f5, var(--background)); }
|
|
.gu-s-bars { display: flex; flex-direction: column; gap: 4cqw; padding: 0 8cqw; margin-bottom: auto; }
|
|
.gu-s-bars i { display: block; height: 4cqw; border-radius: 2cqw; background: light-dark(#e4e4e7, var(--secondary)); }
|
|
.gu-s-bars i:nth-child(2) { width: 70%; } .gu-s-bars i:nth-child(3) { width: 45%; }
|
|
.gu-sheet { display: flex; flex-direction: column; align-items: center; gap: 4cqw; padding: 4cqw 4cqw 10cqw; border-radius: 12cqw 12cqw 0 0; background: light-dark(#ffffff, var(--muted)); box-shadow: 0 -1px 0 var(--line); animation: gu-sheet 4.8s cubic-bezier(.16, 1, .3, 1) infinite; }
|
|
.gu-sheet-h { width: 18cqw; height: 2.4cqw; border-radius: 2cqw; background: light-dark(#d4d4d4, var(--secondary)); }
|
|
.gu-sheet .gu-w { border: 0; padding: 2cqw; }
|
|
@keyframes gu-sheet { 0%, 8% { transform: translateY(100%); } 22%, 86% { transform: none; } 100% { transform: translateY(100%); } }
|
|
.gu-s-list { padding: 18cqw 0 0; background: light-dark(#ffffff, var(--background)); }
|
|
.gu-li { display: flex; align-items: center; justify-content: space-between; min-height: 15cqw; padding: 0 8cqw; border-bottom: 1px solid var(--line); font-size: 8.5cqw; }
|
|
.gu-li b { font-weight: 497; }
|
|
.gu-li i { width: 4cqw; height: 4cqw; border-top: 1.5px solid #737373; border-right: 1.5px solid #737373; rotate: 45deg; }
|
|
.gu-li.on { background: light-dark(#f5f5f5, var(--muted)); }
|
|
.gu-li.on b { font-weight: 606; }
|
|
.gu-s-form { position: absolute; inset: 0; align-items: flex-start; justify-content: center; gap: 3.2cqw; padding: 0 22cqw; }
|
|
.gu-field { display: flex; align-items: center; width: 100%; height: 9cqw; padding: 0 2.4cqw; border-radius: 1.6cqw; border: 1px solid light-dark(rgba(0, 0, 0, .14), var(--border-control)); background: light-dark(#ffffff, var(--muted)); }
|
|
.gu-field i { width: 1px; height: 55%; background: var(--ink); animation: gu-caret 1s steps(1) infinite; }
|
|
.gu-field.short { width: 64%; }
|
|
@keyframes gu-caret { 50% { opacity: 0; } }
|
|
.gu-s-form .gu-b { margin-top: 1.6cqw; }
|
|
.gu-s-split { flex-direction: row; background: light-dark(#f5f5f5, var(--background)); }
|
|
.gu-side { display: flex; flex-direction: column; gap: 1.2cqw; width: 30%; padding: 4cqw 3cqw; border-right: 1px solid var(--line); background: light-dark(#ededed, var(--muted)); }
|
|
.gu-side b { padding: .8cqw 1.8cqw; border-radius: 1.4cqw; font: 497 clamp(10px, 3.6cqw, 13px)/1.3 var(--mono); color: light-dark(#525252, var(--muted-foreground)); }
|
|
.gu-side b.on { background: light-dark(#ffffff, var(--secondary)); color: var(--ink); }
|
|
.gu-main { flex: 1; display: grid; place-items: center; }
|
|
.gu-plat-dev .gu-s-form .gu-t, .gu-plat-dev .gu-s-split .gu-t { font-size: 13px; }
|
|
.gu-plat-dev .gu-li { font-size: 13px; }
|
|
|
|
/* cards: the device tilts with the pointer while the card lifts */
|
|
.gu-plat-dev { transition: transform .4s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
|
|
/* woken (pointed at or focused): the web form fills, the list moves to Button (in the JSX), the Welcome takes the next props */
|
|
.gu-field::after { content: ''; display: block; height: 30%; width: 0; margin-left: 2px; border-radius: 1px; background: #a3a3a3; transition: width .4s cubic-bezier(.16, 1, .3, 1); }
|
|
.gu-s-form.wake .gu-field::after { width: 52%; }
|
|
.gu-s-form.wake .gu-field.short::after { width: 70%; transition-delay: .12s; }
|
|
.gu-li { transition: background-color .3s cubic-bezier(0, 0, .2, 1); }
|
|
/* the morph: while a card flies to its sheet and back its content is hidden, then fades back once landed */
|
|
.gu-ship .gu-plat > :not(.bz-open-plus) { transition: opacity .25s cubic-bezier(0, 0, .2, 1); }
|
|
/* only the card in flight (Motion writes its layout transform inline) and the one whose sheet is open */
|
|
.gu-ship.gu-morph .gu-plat:is([style*='scale'], [style*='translate'], [style*='opacity: 0']) > :not(.bz-open-plus) { opacity: 0; transition-duration: .08s; }
|
|
/* the hero ask: a deck step on hover (not the system's #2c2c2e) and a 1px press */
|
|
.gu .x-btn.solid { --btn-solid-hover: #262626; }
|
|
.gu .x-btn.solid:active { translate: 0 1px; }
|
|
|
|
/* the terminal's Copy: a 44px control that inverts on hover; once copied it shows a tick and "Copied" */
|
|
.gu .cf-code .x-copy { height: 44px; padding: 0 16px; transition: background-color .15s cubic-bezier(0, 0, .2, 1), color .15s cubic-bezier(0, 0, .2, 1), scale .09s; }
|
|
@media (hover: hover) { .gu .cf-code .x-copy:hover { background: var(--ink); color: var(--x-on-ink); border-color: var(--ink); } }
|
|
.gu .cf-code .x-copy:active { scale: .97; }
|
|
/* the code keeps its lines: it scrolls sideways instead of wrapping mid-tag */
|
|
.gu .cf-code pre { white-space: pre; overflow-x: auto; }
|
|
.gu .cf-code pre code { white-space: pre; }
|
|
/* Deploy to Cloud: the arrow slides out as the underline drops */
|
|
@media (hover: hover) { .gu .gu-end-acts .gu-row:hover svg { transform: translateX(6px); } }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.gu-sheet, .gu-field i, .gu-flat, .gu-four[data-step='4'] .gu-b { animation: none !important; }
|
|
.gu-plat-dev, .gu-plat, .gu-pull, .gu-run-i, .gu-prims, .gu-four::before, .gu-run .gu-dev::before, .gu-fig figcaption, .gu-field::after { transition: none !important; }
|
|
.gu-run-t { animation: none !important; }
|
|
.gu-pull { translate: none !important; }
|
|
.gu-run-i > *, .gu-run-h, .gu-plat-sw > * { transition: none !important; }
|
|
.gu-plat-dev .gu-sheet { animation: none !important; }
|
|
}
|