Files
8ce0ce459b A card tapped on a phone answers at once and its page opens at its top (#21)
Part of hanzo-inc/app#445, follow-up to #20.

- A plain open (touch screen, Data Saver, reduced motion, no WebGL) marks the card data-opening=plain: its words step back and a compositor bar runs along its foot until the page is there.
- The route is pushed with scroll: false and the scroll is placed from a MutationObserver when the page's hero is inserted, so the first frame is the page's top (before: ~0.9 s at the tapped-from scroll, mid-page).

Testing: pnpm test 58/58; tsc no new errors; cicd / test-amd64 pass.
Risk: low; only the touch-screen card path and one CSS rule.
How to revert: revert this commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-20 15:59:53 -05:00

781 lines
74 KiB
CSS

/* Hanzo home, rebuilt on Next.js + Motion. Hanzo's own stylesheet (public/hanzo.css) styles their header, footer and product screens;
everything prefixed x- is the new layer. White page, black cards, one dark room for contrast. */
:root {
--ink: var(--foreground); --soft: #6e6e73; --faint: #86868b; --line: rgba(0, 0, 0, .08); --bg: #fff;
/* dark mode (docs/DARK-MODE.md): surfaces that sit on the page, text on an ink fill, a recessed bar, a selected pill,
and the stronger hairlines. Light values are exactly the colours these rules hard-coded before. */
--x-raised: #fff; --x-on-ink: #fff; --x-sunk: #fafafa; --x-knob: #fff; --x-fill: #f5f5f7;
--x-e10: rgba(0, 0, 0, .1); --x-e12: rgba(0, 0, 0, .12); --x-e15: rgba(0, 0, 0, .15);
--x-heat: #0a0a0a; --x-cell: #e8e8ec;
--ease: cubic-bezier(.16, 1, .3, 1); --wrap: 1200px; --r: var(--radius-2xl);
--sans: Zen, 'Zen Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; --mono: 'Zen Mono', 'Zen Mono Fallback', ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* Dark mode (docs/DARK-MODE.md). Every page token points at Hanzo's own token from @hanzo/tokens (its css, imported by
app/layout.tsx), so the dark palette is Hanzo's and none of it is ours. The selector is Hanzo's own,
:not(.light): dark is the default (live's server HTML says class="t_dark"), light is the .light class. */
html:not(.light) {
--soft: var(--muted-foreground); --faint: var(--text-tertiary); --line: var(--border);
--bg: var(--background); /* --card is the token's own: #0f0f0f in dark, #f2f2f2 in light */
/* --x-raised is Hanzo's dark card, #0f0f0f (@hanzo/tokens --card and --popover; live's card background). It reads
--popover because --card on <html> is ours (the muted fill) and would shadow Hanzo's card colour here. */
--x-raised: var(--popover); --x-on-ink: var(--primary-foreground); --x-sunk: var(--surface-card-quiet); --x-knob: var(--secondary);
--x-fill: var(--muted); --x-e10: var(--border); --x-e12: var(--border-control); --x-e15: var(--border-control);
--x-heat: #fff; --x-cell: var(--secondary); /* the open-source band's heat: white, on Hanzo's empty cell */
}
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
/* Footer alignment across hanzo.ai, platform.hanzo.ai, hanzo.app, hanzo.bot, hanzo.team:
tightened list items, 24px social link spacing, right-aligned legal row, and no bottom signature wordmark */
[data-slot="footer-signature"] { display: none !important; }
footer[data-slot="footer"] { gap: 20px !important; padding-top: 32px !important; padding-bottom: 24px !important; }
footer[data-slot="footer"] > div._dsp-grid { row-gap: 20px !important; column-gap: 24px !important; }
footer[data-slot="footer"] > div._dsp-grid > nav > :is(a, span):first-child { padding-bottom: 5px !important; }
footer[data-slot="footer"] > div._dsp-grid > nav > div > a { padding-top: 1.5px !important; padding-bottom: 1.5px !important; line-height: 1.32 !important; }
footer[data-slot="footer"] [data-slot="footer-socials"] { display: flex; align-items: center; gap: 24px !important; row-gap: 8px !important; }
footer[data-slot="footer"] [data-slot="footer-socials"] > a { padding-top: 2px !important; padding-bottom: 2px !important; line-height: 1.35 !important; }
footer[data-slot="footer"] nav[aria-label="Terms & Policies"] { margin-left: auto; display: flex; align-items: center; gap: 20px !important; }
footer[data-slot="footer"] nav[aria-label="Terms & Policies"] > a { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.35 !important; display: inline-flex; align-items: center; }
@media (max-width: 640px) { footer[data-slot="footer"] nav[aria-label="Terms & Policies"] { margin-left: 0; } }
/* light-dark() and the browser's own controls follow the html class, never the device alone (JS off stays bright) */
html.light { color-scheme: light; } html:not(.light) { color-scheme: dark; }
/* Google One Tap (components/OneTap.tsx). Google's frame draws its card 8px in from the sides, 6px from the top and 10px
from the bottom, round 24px, with a light 1px ring, on a transparent page that names no color-scheme: under a dark page
Safari and Firefox paint that page white. The frame is clipped to the card inside its ring, the page draws the card's
edge in its own line colour, and the card sits over the header's own way in (Log in, Try Hanzo), which stand aside
while it shows. The container is sized to the frame, so the edge follows the card in every state. A phone keeps
Google's own placement. */
#credential_picker_container { background: transparent !important; }
@media (min-width: 640px) {
#credential_picker_container { top: 8px !important; right: 8px !important; height: auto !important; }
#credential_picker_container iframe { display: block; clip-path: inset(6px 8px 10px 8px round 24px); }
#credential_picker_container::after { content: ''; position: absolute; inset: 6px 8px 10px; border: 1px solid var(--line); border-radius: 24px; pointer-events: none; }
html:has(#credential_picker_container) header :is([data-slot='login'], a[href$='/signup']) { visibility: hidden; }
}
html.x-lock { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.x-page { position: relative; }
main { display: block; overflow-x: clip; }
.x-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.x-word { display: inline-block; }
.x-mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.x-dim { color: var(--faint); }
.x-wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.x-center { display: flex; justify-content: center; }
.x-sec { padding: clamp(96px, 11vw, 168px) 0; position: relative; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus, #0a0a0b); outline-offset: 3px; } /* brand deck: no blue; the ring takes the room's ink (app/system.css) */
header[data-x-dark='true'] { --foreground: #f5f5f7; --background: #0a0a0a; --color: #f5f5f7; --muted-foreground: #a1a1a6; --primary: #f5f5f7; --primary-foreground: #0a0a0a; --border: #ffffff1f; --hover: #1f1f22; }
header[data-slot='masthead'] { transition: background-color .45s var(--ease), color .45s var(--ease); }
/* sections out of view hold still: their animations pause until they are back on screen */
[data-off] * { animation-play-state: paused !important; }
.x-progress { display: none; }
/* headings: one idea, lots of air */
.x-head { margin-bottom: clamp(40px, 5vw, 72px); }
.x-head h2 { font-size: clamp(2.35rem, 4.6vw, 4.25rem); font-weight: 560; letter-spacing: -.038em; line-height: 1.03; margin: 0; max-width: 17ch; text-wrap: balance; color: var(--ink); }
.x-head p { font-size: clamp(1.0625rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--soft); max-width: 58ch; margin: 22px 0 0; text-wrap: pretty; }
.x-head.center { text-align: center; } .x-head.center h2, .x-head.center p { margin-inline: auto; }
.x-head.dark h2 { color: #f5f5f7; } .x-head.dark p { color: var(--faint); }
.x-kicker { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); text-align: center; margin: 0 0 26px; }
/* buttons and links */
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s; }
.x-btn:hover { border-color: rgba(0, 0, 0, .18); }
.x-btn.solid { background: var(--ink); color: var(--x-on-ink); border-color: var(--ink); }
.x-btn.solid:hover { background: #262626; }
.x-btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.x-arrow { display: inline-flex; align-items: center; gap: 6px; font: 500 15px/1.4 var(--sans); color: var(--ink); text-decoration: none; }
.x-arrow svg { transition: transform .35s var(--ease); }
.x-arrow:hover svg { transform: translateX(4px); }
.x-arrow:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.x-row-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 36px; }
.x-row-links.tight { margin-top: 0; gap: 10px 24px; }
.x-mag { display: inline-flex; }
.x-round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--x-raised); font: 400 22px/1 var(--sans); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.x-round:hover { border-color: rgba(0, 0, 0, .2); }
.x-copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--x-raised); color: var(--soft); font: 500 12.5px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.x-copy:hover { color: var(--ink); }
/* ---------- logo strips ---------- */
.x-marquee { padding: 44px 0 48px; }
.x-mq-view { position: relative; overflow: hidden; }
.x-mq-view::before, .x-mq-view::after { content: ''; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.x-mq-view::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.x-mq-view::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.x-mq-track { display: flex; width: max-content; will-change: transform; animation: x-mq 31s linear infinite; }
.x-mq-track.rev { animation-direction: reverse; }
@keyframes x-mq { to { transform: translate3d(-50%, 0, 0); } }
.x-mq-view:hover .x-mq-track, .x-mq-view:focus-within .x-mq-track, [data-off] .x-mq-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .x-mq-track { animation: none; will-change: auto; } }
@media (min-width: 1101px) {
.x-marquee.still { display: flex; align-items: center; justify-content: center; gap: 34px; width: min(100% - 48px, var(--wrap)); margin-inline: auto; padding: 9px 0; border-bottom: 1px solid var(--line); }
.x-marquee.still .x-kicker { margin: 0; flex: none; }
.x-marquee.still .x-mq-view::before, .x-marquee.still .x-mq-view::after { content: none; }
.x-marquee.still .x-mq-track { animation: none; will-change: auto; width: auto; gap: 34px; zoom: .76; }
.x-marquee.still .x-logo { width: auto; }
.x-marquee.still .x-logo[aria-hidden] { display: none; }
}
.x-logo { flex: none; display: grid; place-items: center; width: 190px; height: 64px; opacity: 1; filter: brightness(0); /* James 7 Nov: logos solid black */ transition: opacity .4s var(--ease), filter .4s var(--ease), transform .4s var(--ease); }
.x-logo:hover { transform: scale(1.06); }
.x-logo img { max-width: 124px; max-height: 30px; object-fit: contain; }
.x-logo[data-base] { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; } /* wordmarks share one baseline: the bottom of their letters */
.x-logo[data-base] img { flex: none; max-width: none; max-height: none; }
html.dark .x-logo { filter: brightness(0) invert(1); } /* James 8 Nov: in dark mode the Backed by / Trusted by logos show white */
/* ---------- hero ---------- */
.x-hero { position: relative; min-height: calc(100svh - 104px); display: flex; align-items: center; padding: 40px 0 146px; overflow: hidden; }
.x-dots { position: absolute; inset: 0; pointer-events: none; color: var(--ink); }
.x-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5.3fr) minmax(0, 6.7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.x-hero-copy { --w: min(400px, calc(100vw - 48px)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.x-badge { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--x-raised); font: 500 12.5px/1 var(--mono); color: var(--soft); text-decoration: none; transition: color .25s ease, border-color .25s ease; }
.x-badge:hover { color: var(--ink); border-color: var(--x-e15); }
.x-badge-t, .x-badge-spark, .x-badge-chev { position: relative; z-index: 1; }
.x-badge-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.x-badge-shine::before, .x-badge-shine::after { content: ''; position: absolute; inset: -2px; pointer-events: none; background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .58) 47%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .58) 53%, transparent 72%); transform: translateX(-130%); }
html.light .x-badge-shine::before, html.light .x-badge-shine::after { background: linear-gradient(105deg, transparent 28%, rgba(10, 10, 10, .18) 50%, transparent 72%); }
.x-badge:hover .x-badge-shine::before { animation: x-badge-hover .85s cubic-bezier(.2, .8, .2, 1); }
@keyframes x-badge-hover { to { transform: translateX(130%); } }
.x-badge-spark { flex: none; }
.x-badge:hover .x-badge-spark { animation: x-spark-twinkle .7s ease-in-out; }
@keyframes x-spark-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.8) rotate(20deg); opacity: .62; } }
.x-badge-chev { flex: none; transition: transform .22s ease; }
.x-badge:hover .x-badge-chev { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
.x-badge-shine::before, .x-badge-shine::after { display: none; }
.x-badge-spark, .x-badge-chev { animation: none; transition: none; }
}
.x-h1 { width: var(--w); margin: 26px 0 0; font-weight: 560; letter-spacing: -.045em; color: var(--ink); }
.x-h1-a, .x-h1-b { display: block; width: 100%; }
.x-h1 [data-line] { display: inline-block; white-space: nowrap; }
.x-h1-a [data-line] { font-size: calc(var(--w) / 13.34); line-height: 1.08; font-weight: 500; letter-spacing: -.018em; }
.x-h1-b { margin-top: 6px; }
.x-h1-b [data-line] { font-size: calc(var(--w) / 5.86); line-height: .98; font-weight: 560; letter-spacing: -.038em; }
.x-flash { --ink-mix: 100%; --x: -9999px; --lo: color-mix(in oklab, var(--ink) var(--ink-mix), var(--bg)); color: transparent; -webkit-text-fill-color: transparent; background-image: linear-gradient(90deg, var(--lo) calc(var(--x) - 1em), var(--ink) var(--x), var(--lo) calc(var(--x) + 1em)); -webkit-background-clip: text; background-clip: text; cursor: default; }
.x-line { display: block; overflow: hidden; padding: .04em 0 .1em; }
.x-line-in { display: block; }
.x-hero-lede { width: var(--w); max-width: var(--w); margin: 22px 0 0; font-size: max(13.5px, calc(var(--w) / 20.6)); line-height: 1.48; color: var(--soft); text-align: center; text-wrap: balance; } /* centred and balanced like the headline above it: no line stretched to fill */
.x-nowrap { white-space: nowrap; }
.x-hero-lede b { color: var(--ink); font-weight: 600; font-feature-settings: 'tnum'; }
.x-num-slot { display: inline-grid; justify-items: end; vertical-align: baseline; }
.x-num-slot > * { grid-area: 1 / 1; }
.x-num-slot > [aria-hidden] { visibility: hidden; pointer-events: none; }
.x-auth { width: var(--w); margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.x-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-auth-b { display: flex; align-items: center; justify-content: center; gap: 9px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); font: 500 14px/1 var(--sans); text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); white-space: nowrap; }
.x-auth-b:hover { border-color: rgba(0, 0, 0, .18); }
.x-auth-b.solid { background: var(--ink); color: var(--x-on-ink); border-color: var(--ink); width: 100%; }
.x-auth-mag { display: flex; width: 100%; }
.x-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font: 400 12.5px/1 var(--sans); }
.x-or::before, .x-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.x-or.small { margin: 2px 0; }
.x-terms { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.x-terms a { color: var(--soft); }
.x-hero-stage { --sw: 720px; --sh: 590px; --k-css: min(1.15, tan(atan2(100cqw, var(--sw)))); position: relative; width: 100%; container-type: inline-size; }
/* the stage is drawn at --sw x --sh and scaled to its column in CSS (k = column / --sw, at most 1.15), with --k-js synced by ResizeObserver for Mobile Safari */
.x-hero-stage::before, .x-fit { --k: var(--k-js, var(--k-css, 1)); }
.x-hero-stage::before { content: ''; display: block; height: calc(var(--sh) * var(--k)); }
.x-fit { position: absolute; left: calc((100% - var(--sw) * var(--k)) / 2); top: 0; width: var(--sw); height: var(--sh); transform: scale(var(--k)); transform-origin: 0 0; perspective: 1700px; } /* centred when k stops at 1.15 */
.x-3d { position: absolute; inset: 0; transform-style: preserve-3d; }
.x-ann { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; background: var(--x-fill); border-bottom: 1px solid var(--line); color: var(--ink); font: 500 13.5px/1.3 var(--sans); text-decoration: none; text-align: center; }
.x-ann svg { flex: none; transition: transform .35s var(--ease); }
.x-ann:hover svg { transform: translateX(3px); }
.x-ann:focus-visible { outline: 2px solid var(--focus, #0a0a0b); outline-offset: -3px; }
/* The beta bar is dark in both themes (hanzo.css [data-slot="beta"]), so its words are white, as on hanzo.ai. */
.x-ann[data-slot="beta"] { color: #fff; }
.x-ann[data-slot="beta"]:focus-visible { outline-color: #fff; }
.x-setup { --lift: 0px; position: absolute; left: 50%; bottom: -76px; translate: -50% var(--lift); display: inline-flex; align-items: stretch; width: max-content; z-index: 5; --mx: -50%; transition: translate .32s var(--ease), scale .16s var(--ease); }
.x-setup.inline { position: relative; left: auto; bottom: auto; translate: 0 var(--lift); align-self: flex-start; --mx: 0px; }
@media (hover: hover) {
.x-setup:has(> .x-setup-main:hover, > .x-setup-chev:hover) { --lift: -2px; }
.x-setup:has(> .x-setup-main:hover, > .x-setup-chev:hover) > :is(.x-setup-main, .x-setup-chev) { border-color: var(--x-e15); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .32); }
.x-setup-main:hover, .x-setup-chev:hover { background: light-dark(#f6f6f8, rgba(255, 255, 255, .06)); }
}
.x-setup:not(:has(> .x-menu[data-open='true'])):has(> .x-setup-main:active, > .x-setup-chev:active) { scale: .985; }
.x-setup-main, .x-setup-chev { box-sizing: border-box; margin: 0; display: inline-flex; align-items: center; height: 42px; border: 1px solid var(--line); background: var(--x-raised); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .25); font: 500 13px/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color .22s var(--ease), box-shadow .32s var(--ease), background-color .2s var(--ease); }
.x-setup-main > svg, .x-setup-chev > svg { flex: none; }
.x-hero .x-setup-main > svg { display: none; }
.x-setup-main { gap: 10px; padding: 0 11px 0 16px; border-radius: 999px 0 0 999px; }
.x-setup-chev { justify-content: center; width: 40px; padding: 0; border-left: 0; border-radius: 0 999px 999px 0; }
.x-setup-chev svg { transition: rotate .4s var(--ease); }
.x-setup-chev[aria-expanded='true'] svg { rotate: 180deg; }
.x-setup-ics { display: inline-flex; }
.x-setup-i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--x-raised); background: light-dark(#f1f1f3, var(--muted)); margin-left: -6px; display: grid; place-items: center; overflow: hidden; }
.x-setup-i svg, .x-setup-i img { width: 13px; height: 13px; }
.x-setup-main b { font-size: 12px; color: var(--soft); padding-right: 4px; }
.x-menu { position: absolute; left: 50%; width: min(372px, calc(100vw - 32px)); max-height: min(460px, 64vh); display: flex; flex-direction: column; border-radius: 22px; background: var(--x-raised); border: 1px solid var(--line); box-shadow: 0 34px 80px -24px rgba(0, 0, 0, .4); overflow: hidden; text-align: left; white-space: normal; opacity: 0; visibility: hidden; --my: -6px; transform: translate(var(--mx), var(--my)) scale(.98); transform-origin: 50% 0; transition: opacity .2s var(--ease), transform .32s var(--ease), visibility 0s .32s; }
.x-setup.inline .x-menu { left: 0; transform-origin: 0 0; }
.x-menu:not(.up) { top: calc(100% + 10px); }
.x-menu.up { bottom: calc(100% + 10px); --my: 6px; transform-origin: 50% 100%; }
.x-setup.inline .x-menu.up { transform-origin: 0 100%; }
.x-menu[data-open='true'] { opacity: 1; visibility: visible; --my: 0px; transform: translate(var(--mx), 0) scale(1); transition-delay: 0s; }
.x-menu-filter { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; flex: none; border-bottom: 1px solid var(--line); color: var(--faint); }
.x-menu-filter input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 13.5px/1 var(--sans); color: var(--ink); }
.x-menu-filter:focus-within { color: var(--ink); }
.x-menu-in { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 6px; } /* James 8 Nov: the setup list scrolls */
.x-menu-row { display: flex; align-items: center; gap: 4px; border-radius: 12px; transition: background-color .15s; }
.x-menu-row[hidden] { display: none; }
.x-menu-row:hover { background: var(--x-fill); }
.x-menu-open, .x-menu-docs { display: flex; align-items: center; gap: 10px; min-height: 38px; color: var(--ink); text-decoration: none; font-size: 13.5px; border-radius: 12px; }
.x-menu-open { flex: 1; min-width: 0; padding: 0 10px; }
.x-menu-docs { flex: none; gap: 5px; padding: 0 10px; color: var(--soft); font: 400 11.5px/1 var(--mono); }
.x-menu-open:hover, .x-menu-docs:hover { color: var(--ink); }
.x-menu a:focus-visible, .x-setup-main:focus-visible, .x-setup-chev:focus-visible { outline: 2px solid var(--focus, #0a0a0b); outline-offset: -2px; }
.x-menu-i { flex: none; width: 22px; height: 22px; border-radius: 6px; background: light-dark(#f1f1f3, var(--muted)); display: grid; place-items: center; overflow: hidden; }
.x-menu-i svg, .x-menu-i img { width: 14px; height: 14px; }
.x-menu-i b { font-size: 10px; }
.x-menu-none { margin: 0; padding: 14px 12px; font-size: 13px; color: var(--faint); }
.x-menu-foot { display: flex; flex-direction: column; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.x-menu-foot a { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 10px; font-size: 13px; color: var(--soft); text-decoration: none; transition: background-color .15s, color .15s; }
.x-menu-foot a:hover { background: var(--x-fill); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .x-setup, .x-menu, .x-setup-chev svg { transition: none !important; } }
/* ---------- models ---------- */
.x-mgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.65fr repeat(4, 1fr); grid-template-rows: repeat(2, minmax(250px, 1fr)); gap: 14px; perspective: 1400px; }
.x-mcard { min-width: 0; }
.x-mcard.big { grid-row: span 2; }
.x-mbtn { all: unset; box-sizing: border-box; display: block; width: 100%; height: 100%; cursor: pointer; position: relative; border-radius: 24px; }
.x-mbtn:focus-visible { outline: 2px solid var(--focus, #0a0a0b); outline-offset: 3px; }
.x-mtilt { position: absolute; inset: 0; line-height: 1.4; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-radius: 24px; overflow: hidden; background: #000; color: #f5f5f7; }
.x-mmedia { position: absolute; inset: 0; overflow: hidden; background: #000; }
.x-mmedia img, .x-mmedia video, .x-modal-media img, .x-modal-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.x-mmedia video { opacity: 0; transition: opacity .6s var(--ease); }
.x-mmedia video.on { opacity: 1; }
.x-mmedia::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 45%, transparent 60%, rgba(0, 0, 0, .55)); }
.x-mtext { position: relative; display: flex; flex-direction: column; gap: 6px; }
.x-mkick { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #b5b5ba; margin-bottom: 8px; }
.x-mname { display: flex; align-items: center; gap: 6px; line-height: 1.05; font-size: 22px; font-weight: 560; letter-spacing: -.02em; }
.x-mname svg { transition: transform .4s var(--ease); }
.x-mbtn:hover .x-mname svg { transform: translateX(4px); }
.x-mcard.big .x-mname { font-size: clamp(2.4rem, 3.6vw, 3.4rem); letter-spacing: -.04em; }
.x-mdesc { font-size: 13.5px; line-height: 1.45; color: #c7c7cc; max-width: 26ch; }
.x-mcard.big .x-mdesc { font-size: 16px; max-width: 24ch; }
.x-mtags { position: relative; display: flex; flex-wrap: wrap; gap: 6px; }
.x-mtags span { padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .55); font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #e5e5ea; }
.x-modal-wrap { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 24px; }
.x-scrim { position: absolute; inset: 0; background: light-dark(rgba(250, 250, 252, .72), var(--surface-scrim)); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.x-modal { position: relative; width: min(1000px, 100%); height: min(640px, 100%); background: #000; color: #f5f5f7; overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .5); }
.x-modal-media { position: relative; overflow: hidden; }
.x-modal-copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.x-modal-copy h3 { margin: 0; color: #f5f5f7; font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 560; letter-spacing: -.045em; line-height: 1; }
.x-modal-desc { margin: 0; font-size: 19px; line-height: 1.45; color: #c7c7cc; }
.x-mtags.static { margin: 4px 0 10px; }
.x-modal-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.x-modal .x-btn.solid { background: #f5f5f7; color: #000; border-color: #f5f5f7; }
.x-modal .x-arrow { color: #f5f5f7; }
.x-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* ---------- platform: a carousel that turns ---------- */
.x-platform { overflow: hidden; }
@keyframes x-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* ---------- agents ---------- */
.x-dock { list-style: none; margin: 0 0 40px; padding: 12px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
.x-ico { position: relative; width: 44px; height: 44px; border-radius: 13px; transition: transform .25s var(--ease); background: var(--x-raised); border: 1px solid var(--line); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .18); display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.x-ico span { display: grid; place-items: center; }
.x-ico svg, .x-ico img { width: 22px; height: 22px; object-fit: contain; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .x-ico:hover { transform: translateY(-3px) scale(1.08); } }
.x-ico::after { content: attr(data-name); position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 4px; padding: 6px 9px; border-radius: 8px; background: var(--ink); color: var(--x-on-ink); font: 500 11px/1 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, translate .3s var(--ease); }
.x-ico:hover::after, .x-ico:focus-visible::after { opacity: 1; translate: -50% 0; }
.x-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.x-panel-wrap { display: flex; }
.x-panel { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.x-panel-h { display: flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); margin-bottom: 6px; }
.x-panel-k { margin: 10px 0 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.x-cmd { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 16px; border-radius: 14px; background: var(--x-raised); border: 1px solid var(--line); font-size: 13.5px; }
.x-cmd-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); }
.x-cmd-t b { color: var(--ink); font-weight: 500; }
.x-steps { list-style: none; margin: 4px 0 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 2px; }
.x-steps-line { position: absolute; left: 25px; top: 28px; bottom: 28px; width: 2px; background: rgba(0, 0, 0, .08); border-radius: 2px; }
.x-steps-line b { position: absolute; inset: 0; background: var(--ink); transform-origin: 50% 0; border-radius: 2px; }
.x-steps button { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 12px; border: 0; background: none; border-radius: 14px; text-align: left; cursor: pointer; color: var(--ink); font-family: var(--sans); }
.x-step-bg { position: absolute; inset: 0; border-radius: 14px; background: var(--x-knob); box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04); }
.x-step-n { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--x-raised); border: 1px solid var(--x-e12); font: 500 12px/1 var(--mono); color: var(--soft); transition: background .3s, color .3s, border-color .3s; }
.x-step-n.done { background: var(--ink); color: var(--x-on-ink); border-color: var(--ink); }
.x-step-t { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.x-step-t b { font-size: 14.5px; font-weight: 500; }
.x-step-t span { font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-script { margin-top: 6px; min-height: 48px; display: flex; align-items: center; padding: 0 16px; border-radius: 14px; background: #0b0b0c; color: #e9e9ec; font-size: 12.5px; overflow: hidden; white-space: nowrap; }
.x-script .x-dim { color: #8e8e93; margin-right: 8px; }
.x-code-t { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); font: 500 12.5px/1 var(--mono); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.x-code-t:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .3); }
.x-code-t:active { transform: scale(.97); }
.x-code-t:focus-visible, .x-code-blk:focus-visible { outline: 2px solid var(--focus, #0a0a0b); outline-offset: 2px; }
.x-code-lbl { display: grid; }
.x-code-lbl > span { grid-area: 1 / 1; transition: opacity .3s var(--ease), transform .45s var(--ease); }
.x-code-lbl > span[data-on='false'] { opacity: 0; transform: translateY(-7px); }
.x-code-lbl > span[data-on='true'] { opacity: 1; transform: none; }
.x-code-lbl > span:last-child[data-on='false'] { transform: translateY(7px); }
.x-code { display: grid; grid-template-rows: 0fr; margin-top: -4px; transition: grid-template-rows .6s var(--ease); }
.x-code[data-open='true'] { grid-template-rows: 1fr; }
.x-code-in { overflow: hidden; min-height: 0; border-radius: 14px; background: #0b0b0c; }
.x-code[data-open='false'] .x-code-in { visibility: hidden; transition: visibility 0s .6s; }
.x-code-blk { margin: 0; padding: 16px; max-height: 340px; overflow: auto; overscroll-behavior: contain; color: #e9e9ec; font-size: 12px; line-height: 1.65; white-space: pre; tab-size: 2; }
.x-code-blk[hidden] { display: none; }
.x-code-l { display: block; min-height: 1.65em; }
.x-code-l .c { color: #6e6e73; } .x-code-l .s { color: #c7c7cc; } .x-code-l .k { color: #fff; font-weight: 500; }
.x-code[data-open='true'] .x-code-blk:not([hidden]) .x-code-l { animation: x-code-in .55s var(--ease) both; animation-delay: calc(min(var(--i), 22) * 32ms + 120ms); }
@keyframes x-code-in { from { opacity: 0; transform: translateX(-10px); } }
@media (prefers-reduced-motion: reduce) { .x-code, .x-code-lbl > span { transition: none; } .x-code-l { animation: none !important; } }
.x-panel-f, .x-panel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.x-panel-links { margin-top: auto; padding-top: 8px; }
/* ---------- faster: the dark room ---------- */
.x-faster { background: #000; color: #f5f5f7; --faint: #a1a1a6; } /* the room is black in both themes, so its quiet words are light in both */
.x-races { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.x-race, .x-cost { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: 28px; }
.x-race { background: #0e0e10; border: 1px solid rgba(255, 255, 255, .08); }
.x-race-top { display: flex; align-items: center; justify-content: space-between; }
.x-race-k { margin: 0; font: 500 12.5px/1.3 var(--mono); color: var(--faint); }
.x-replay { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: none; color: #f5f5f7; display: grid; place-items: center; cursor: pointer; }
.x-race-big { margin: 22px 0 0; font-size: clamp(4rem, 8vw, 7rem); font-weight: 300; letter-spacing: -.055em; line-height: .95; font-feature-settings: 'tnum'; }
.x-race-cap { margin: 10px 0 0; font-size: 17px; font-weight: 500; }
.x-race-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--faint); max-width: 56ch; }
.x-race-title { margin: 26px 0 10px; font-size: 11.5px; color: var(--faint); }
.x-lanes { display: flex; flex-direction: column; gap: 14px; }
.x-lane { transition: opacity .3s var(--ease); }
.x-lane.dim { opacity: .35; }
.x-lane-h { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 7px; }
.x-lane-v { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.x-lane.hi .x-lane-v { color: inherit; }
.x-lane-track { position: relative; display: flex; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.x-lane-track b { display: block; height: 100%; width: 100%; border-radius: 6px; background: #5a5a60; transform-origin: 0 50%; }
.x-lane.hi .x-lane-track b { background: #f5f5f7; }
.x-lane-track em { position: absolute; right: -2px; top: 50%; translate: 100% -50%; font-style: normal; font-size: 11px; color: #f5f5f7; padding-left: 6px; }
.x-facts { margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }
.x-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.x-facts dt { color: var(--faint); } .x-facts dd { margin: 0; }
.x-race-end { margin-top: auto; padding-top: 26px; }
.x-faster .x-arrow { color: #f5f5f7; }
/* ---------- cheaper ---------- */
.x-cost { background: var(--card); border: 1px solid var(--line); }
.x-cost .x-race-k { color: var(--soft); }
.x-cost-big { margin: 18px 0 0; font-size: clamp(2.75rem, 5vw, 4.5rem); font-weight: 560; letter-spacing: -.045em; line-height: 1; }
.x-cost .x-race-note { color: var(--soft); }
.x-vol { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 14px; }
.x-vol span { font-size: 11.5px; color: var(--faint); }
.x-vol input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 16%, transparent); outline-offset: 6px; cursor: pointer; }
.x-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); transition: transform .2s var(--ease); }
.x-vol input:active::-webkit-slider-thumb { transform: scale(1.15); }
.x-vol input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
.x-cost .x-lane-track { background: rgba(0, 0, 0, .07); }
.x-cost .x-lane-track b { background: #b9b9be; width: auto; }
.x-cost .x-lane.hi .x-lane-track b { background: var(--ink); }
.x-cost .x-lane-v { color: var(--soft); }
.x-cost .x-lane.hi .x-lane-v { color: var(--ink); font-weight: 500; }
.x-lane-track.two { gap: 0; }
.x-lane-track.two s { display: block; height: 100%; background: rgba(0, 0, 0, .18); transform-origin: 0 50%; border-radius: 0 6px 6px 0; }
.x-lane-track.two b { border-radius: 6px 0 0 6px; }
/* ---------- pareto ---------- */
.x-plot { position: relative; padding: clamp(18px, 3vw, 32px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.x-plot-svg > svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.x-plot .ax { stroke: rgba(0, 0, 0, .07); }
.x-plot .tick { font: 400 12.5px/1 var(--mono); fill: var(--faint); }
.x-plot .front { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 1 0; }
.x-plot .pt { cursor: pointer; outline: none; }
.x-plot .pt circle { fill: var(--bg); stroke: #8e8e93; stroke-width: 1.5; }
.x-plot .pt text { font: 500 12.5px/1 var(--sans); fill: var(--soft); pointer-events: none; }
.x-plot .pt text { opacity: 0; transition: opacity .25s; }
.x-plot .pt.enso text, .x-plot .pt.best text, .x-plot .pt.hot text { opacity: 1; }
.x-plot .pt.enso circle { fill: var(--ink); stroke: var(--ink); }
.x-plot .pt.enso text { fill: var(--ink); font-weight: 600; }
.x-plot .pt .halo { fill: rgba(0, 0, 0, .07) !important; stroke: none !important; }
.x-plot .pt.best circle:not(.halo) { stroke: var(--ink); stroke-width: 3; }
.x-plot .pt:focus-visible circle:not(.halo), .x-plot .pt a:focus-visible circle:not(.halo) { stroke: var(--ink); stroke-width: 3; }
.x-plot .pt a { outline: none; cursor: pointer; }
.x-plot .pt.rep circle:not(.halo) { stroke-dasharray: calc(3px * var(--u, 1)) calc(2.5px * var(--u, 1)); }
.x-plot .pt .mk { color: var(--ink); pointer-events: none; }
.x-plot .pt.enso .mk { color: var(--bg); }
.x-plot-svg { position: relative; }
.x-tip { position: absolute; z-index: 3; width: min(300px, 78vw); display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--x-raised); border: 1px solid var(--line); box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .35); font-size: 12.5px; line-height: 1.45; color: var(--soft); transform: translate(-50%, calc(-100% - 16px)); animation: x-tip-in .35s var(--ease) both; }
.x-tip.below { transform: translate(-50%, 18px); }
.x-tip b { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 14px; font-weight: 560; letter-spacing: -.01em; }
.x-tip b i { font: 500 13px/1.4 var(--mono); font-style: normal; font-feature-settings: 'tnum'; }
.x-tip a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration: none; font: 500 12px/1.3 var(--mono); overflow-wrap: anywhere; }
.x-tip a:hover { text-decoration: underline; text-underline-offset: 3px; }
@keyframes x-tip-in { from { opacity: 0; scale: .96; } }
.x-plot-src { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--faint); }
.x-plot-src a { color: var(--soft); text-decoration: none; }
.x-plot-src a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.x-plot .guide line { stroke: var(--ink); stroke-dasharray: 3 4; stroke-width: 1; opacity: .5; }
/* ---------- open source ---------- */
.x-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; perspective: 1000px; }
.x-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 18px; min-height: 150px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.x-tile-k { font: 500 12px/1.3 var(--mono); color: var(--soft); }
.x-tile-n { font-size: clamp(1.6rem, 2.3vw, 2.15rem); font-weight: 560; letter-spacing: -.035em; font-feature-settings: 'tnum'; margin-top: auto; }
.x-tile-s { font-size: 12px; color: var(--faint); }
.x-tile-spark { display: block; margin-top: 6px; }
.x-cal { margin-top: 12px; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.x-cal-grid { margin-top: 14px; }
.x-cal-grid [role=img] > div:not(._o-0) { transform: scale(.2); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); transition-delay: calc(var(--i, 0) * 4ms); }
.x-cal-grid.on [role=img] > div:not(._o-0) { transform: none; opacity: 1; }
.x-cal-f { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--faint); }
.x-cal-key { display: inline-flex; align-items: center; gap: 3px; }
.x-repo { min-width: 0; }
.x-repo > div { height: 100%; background: var(--x-raised); }
/* ---------- pricing ---------- */
.x-pricing { background: linear-gradient(var(--bg), var(--card) 30%); }
.x-seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: light-dark(#ececef, var(--muted)); }
.x-seg button { position: relative; border: 0; background: none; height: 34px; padding: 0 18px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--soft); cursor: pointer; }
.x-seg button[aria-selected='true'] { color: var(--ink); }
.x-seg button span:last-child { position: relative; }
.x-seg-bg { position: absolute; inset: 0; border-radius: 999px; background: var(--x-knob); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.x-plans { display: grid; gap: 16px; margin-top: 36px; align-items: start; }
.x-plans.n3 { grid-template-columns: repeat(3, 1fr); }
.x-plans.n2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
.x-plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 28px; background: var(--x-raised); border: 1px solid var(--line); box-shadow: 0 30px 60px -50px rgba(0, 0, 0, .3); }
.x-plan.strong { border-color: rgba(0, 0, 0, .2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .3); }
.x-plan h3 { margin: 0; font-size: 22px; font-weight: 560; letter-spacing: -.02em; }
.x-plan .x-seg button { height: 28px; padding: 0 12px; font-size: 13px; }
.x-plan-d { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--soft); min-height: 3em; }
.x-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 0; }
.x-price-roll { position: relative; display: inline-flex; overflow: hidden; padding: 4px 0; }
.x-price b { display: inline-block; font-size: 44px; font-weight: 560; letter-spacing: -.04em; line-height: 1; font-feature-settings: 'tnum'; white-space: nowrap; }
.x-price-u { font-size: 13px; color: var(--faint); }
.x-plan-sub { margin: -4px 0 4px; font-size: 13px; color: var(--faint); line-height: 1.45; }
.x-plan > .x-btn { width: 100%; height: 46px; margin-top: 4px; }
.x-plan > .x-btn + .x-btn { margin-top: -4px; }
.x-plan-note { margin: 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.x-plan-l { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; }
.x-plan-l p { margin: 0 0 10px; font-size: 13.5px; font-weight: 500; }
.x-plan-l ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.x-plan-l li { position: relative; padding-left: 24px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.x-plan-l li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); rotate: -45deg; }
.x-bill { display: flex; align-items: center; gap: 10px; }
.x-save { padding: 4px 8px; border-radius: 999px; background: var(--ink); color: var(--x-on-ink); font: 600 11.5px/1 var(--mono); }
.x-seats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.x-seats > div { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--card); }
.x-seats b { font-size: 14px; } .x-seats span { font-size: 12.5px; color: var(--soft); line-height: 1.4; }
.x-seats small { font-size: 11.5px; color: var(--faint); line-height: 1.4; }
.x-seats .x-price b { font-size: 32px; }
/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
.x-tiles { grid-template-columns: repeat(3, 1fr); }
.x-dock { gap: 18px 16px; }
.x-mgrid { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; }
.x-mcard.big { grid-column: span 4; grid-row: auto; height: 380px; }
.x-mcard:not(.big) { height: 260px; }
}
@media (max-width: 900px) {
.x-hero { min-height: 0; padding: 32px 0 64px; }
/* one column: the product first, then its words; the gap holds the setup prompt hanging under the stage */
.x-hero-grid { grid-template-columns: 1fr; gap: 112px; }
.x-hero-stage { order: -1; }
.x-panels, .x-races, .x-plans.n3, .x-plans.n2 { grid-template-columns: 1fr; }
.x-modal { grid-template-columns: 1fr; grid-template-rows: 46% 1fr; height: min(720px, 100%); }
}
@media (max-width: 640px) {
.x-wrap { width: min(100% - 28px, var(--wrap)); }
.x-hero-stage { --sw: 360px; --sh: 810px; }
.x-hero-grid { gap: 86px; }
.x-fit { width: 360px; height: 810px; perspective: none; }
.x-setup { bottom: -58px; }
.x-mgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
.x-mcard.big { grid-column: span 2; height: 340px; }
.x-mcard:not(.big) { height: 220px; }
.x-mtilt { padding: 16px; }
.x-mname { font-size: 19px; }
.x-mdesc { font-size: 12.5px; }
.x-dock { gap: 14px 12px; }
.x-ico { width: 46px; height: 46px; border-radius: 13px; }
.x-tiles { grid-template-columns: 1fr 1fr; }
.x-panel, .x-race, .x-cost, .x-plan { padding: 22px; border-radius: 24px; }
.x-cmd { font-size: 12px; }
.x-cal { padding: 16px; overflow-x: auto; }
.x-cal-grid { min-width: 560px; }
.x-plot .pt text { font-size: 22px; }
.x-plot .tick { font-size: 20px; }
.x-seats { grid-template-columns: 1fr; }
.x-modal-wrap { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
.x-caret { animation: none; }
.x-cal-grid [role=img] > div:not(._o-0) { transition: none; }
.x-word, .x-line-in { will-change: auto; }
}
/* ---------- the open transition ---------- */
.x-gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 960; pointer-events: none; opacity: 0; }
.x-gl.on { opacity: 1; }
.x-veil { position: fixed; inset: 0; z-index: 950; background: var(--bg); opacity: 0; pointer-events: none; }
.x-mbtn .x-mtext, .x-mbtn .x-mtags { transition: opacity .3s var(--ease); }
.x-mbtn[data-opening] .x-mtext, .x-mbtn[data-opening] .x-mtags { opacity: 0; }
/* a plain open (a touch screen, Data Saver, reduced motion; components/Opener.tsx): the card answers the tap at once
with a bar along its foot until its page is there. A transform, so it keeps moving while the next page renders. */
.x-mbtn[data-opening=plain]::after { content: ''; position: absolute; left: 24px; right: 24px; bottom: 16px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .9); transform-origin: 0 50%; animation: x-open 1.4s cubic-bezier(.16, 1, .3, 1) infinite; pointer-events: none; z-index: 2; }
@keyframes x-open { from { transform: scaleX(0); opacity: 1; } 75% { transform: scaleX(1); opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .x-mbtn[data-opening=plain]::after { animation: none; opacity: .6; } }
[data-lifted] { visibility: hidden; }
a.x-mbtn { color: inherit; text-decoration: none; }
/* ---------- a model's page ---------- */
.x-mhero { position: relative; height: calc(100svh - 60px); min-height: 520px; overflow: hidden; background: #000; color: #f5f5f7; display: flex; align-items: flex-end; }
.x-mhero-media { position: absolute; inset: 0; }
.x-mhero-media img, .x-mhero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.x-mhero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 45%, transparent 60%, rgba(0, 0, 0, .55)); }
.x-mhero-copy { position: relative; padding-bottom: clamp(40px, 7vh, 88px); }
.x-mhero-name { margin: 0; font-size: clamp(5rem, 14vw, 13rem); font-weight: 560; letter-spacing: -.06em; line-height: .9; color: #f5f5f7; }
.x-mhero-desc { margin: 18px 0 16px; max-width: 30ch; font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.35; color: #d1d1d6; }
.x-mclose { position: absolute; top: 20px; right: 24px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.x-scrollcue { position: absolute; right: 28px; bottom: 32px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #a1a1a6; }
.x-model-body { position: relative; background: var(--bg); }
.x-next { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 70vh; min-height: 420px; padding: clamp(24px, 4vw, 56px); overflow: hidden; background: #000; color: #f5f5f7; text-decoration: none; }
.x-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.x-next:hover img { opacity: 1; transform: scale(1.03); }
.x-next span { position: relative; }
.x-next-k { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #a1a1a6; }
.x-next-n { font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 560; letter-spacing: -.055em; line-height: .95; }
.x-next-d { font-size: 18px; color: #d1d1d6; }
/* ---------- ported pages: Hanzo's content, rising into place ---------- */
.x-ported { display: block; min-height: 60vh; }
.x-rv { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.x-rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .x-rv { opacity: 1; transform: none; transition: none; } }
/* ---------- header menus ---------- */
.x-nav-bridge { position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.x-nav-panel { position: fixed; top: 60px; left: 0; right: 0; z-index: 890; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .25); overflow: hidden; }
.x-nav-grid { display: flex; gap: clamp(24px, 3.2vw, 52px); padding: 26px 24px 36px; }
.x-nav-col { min-width: 0; }
.x-nav-h { margin: 0 0 14px; font: 600 12.5px/1.2 var(--sans); color: var(--ink); }
.x-nav-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.x-nav-a { display: inline-block; border-radius: 6px; font: 400 14px/1.35 var(--sans); color: var(--soft); text-decoration: none; transition: color .2s, transform .3s var(--ease); max-width: 30ch; }
.x-nav-a:hover, .x-nav-a:focus-visible { color: var(--ink); transform: translateX(3px); }
.x-nav-a.big { font-size: 24px; line-height: 1.15; font-weight: 450; letter-spacing: -.02em; color: var(--ink); }
.x-nav-a.big:hover { transform: translateX(5px); }
.x-nav-scrim { position: fixed; inset: 60px 0 0 0; z-index: 880; background: rgba(10, 10, 10, .4); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2); } html.dark .x-nav-scrim { background: rgba(0, 0, 0, .4); } /* James 8 Nov: exactly live hanzo.ai's menu backdrop (black 40%, blur 24px), both modes */ /* one backdrop blur per page: the header's */
.x-sheet { position: fixed; inset: 0; z-index: 990; background: var(--x-raised); overflow-y: auto; padding: 72px 20px 40px; }
.x-sheet-x { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--x-raised); font-size: 15px; cursor: pointer; }
.x-sheet-list { list-style: none; margin: 0; padding: 0; }
.x-sheet-list > li { border-bottom: 1px solid var(--line); }
.x-sheet-b { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; border: 0; background: none; font: 500 26px/1.1 var(--sans); letter-spacing: -.02em; color: var(--ink); text-decoration: none; cursor: pointer; }
.x-sheet-b span { font-weight: 300; font-size: 28px; }
.x-sheet-body { overflow: hidden; }
.x-sheet-body .x-nav-col { padding: 4px 2px 20px; }
.x-sheet-body .x-nav-a.big { font-size: 20px; }
/* ---------- commit calendar ---------- */
.x-cal-months { display: grid; grid-template-columns: repeat(53, 1fr); margin-top: 14px; font: 400 11px/1 var(--mono); color: var(--faint); }
.x-cal-months span { white-space: nowrap; }
.x-cal-grid2 { position: relative; display: grid; grid-template-columns: repeat(53, 1fr); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 3px; margin-top: 8px; outline: none; cursor: crosshair; }
.x-cal-grid2:focus-visible { outline: 2px solid var(--focus, #0a0a0b); outline-offset: 6px; border-radius: 6px; }
.x-cal-grid2 i { aspect-ratio: 1; border-radius: 2px; transform: scale(var(--s, 1)); transition: transform .22s var(--ease); }
.x-cal-grid2 i.blank { visibility: hidden; }
.x-cal-grid2 i.hot { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--ink); z-index: 1; position: relative; }
/* The band's heat, one scale for the calendar, its legend and every bar: from the empty cell to the ink at full strength,
the ink being black in light and white in dark. Each shade is a share of that ink over the empty cell, as /open-source's. */
.l0 { background: var(--x-cell); } .l1 { background: color-mix(in srgb, var(--x-heat) 30%, var(--x-cell)); } .l2 { background: color-mix(in srgb, var(--x-heat) 55%, var(--x-cell)); }
.l3 { background: color-mix(in srgb, var(--x-heat) 78%, var(--x-cell)); } .l4 { background: var(--x-heat); }
.x-bar { background: var(--x-heat); } .x-bar.none { background: var(--x-cell); }
.x-cal-key i { width: 10px; height: 10px; border-radius: 2px; opacity: 1 !important; }
.x-cal-tip { position: absolute; z-index: 3; translate: -50% calc(-100% - 10px); padding: 7px 10px; border-radius: 10px; background: var(--ink); color: var(--x-on-ink); font: 400 12px/1.3 var(--sans); white-space: nowrap; pointer-events: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
.x-cal-tip b { font-weight: 600; margin-right: 4px; }
/* ---------- page kit ---------- */
.x-kick { margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.x-head.dark .x-kick { color: #86868b; }
.x-go { display: inline-flex; }
.x-faq { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.x-faq li { border-bottom: 1px solid var(--line); }
.x-faq button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border: 0; background: none; text-align: left; font: 500 clamp(1.05rem, 1.4vw, 1.25rem)/1.35 var(--sans); letter-spacing: -.01em; color: var(--ink); cursor: pointer; }
.x-faq button i { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; font-style: normal; color: var(--soft); transition: color .2s var(--ease); }
.x-faq button:hover i, .x-faq button[aria-expanded='true'] i { color: var(--ink); }
.x-faq-v { transform-origin: 8px 8px; transition: transform .28s var(--ease), opacity .2s var(--ease); }
.x-faq button[aria-expanded='true'] .x-faq-v { transform: scaleY(0); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .x-faq-v { transition: none; } }
.x-faq-a { overflow: hidden; }
.x-faq-a > div { padding: 0 0 24px; max-width: 64ch; font-size: 16px; line-height: 1.6; color: var(--soft); }
.x-faq-a a { color: var(--ink); }
.x-flap { display: inline-flex; gap: 2px; font-feature-settings: 'tnum'; }
.x-flap span { display: inline-block; min-width: .62em; text-align: center; padding: .06em .04em; border-radius: 6px; background: linear-gradient(#f5f5f7 50%, #ececef 50%); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .04); }
.x-tick circle { stroke: rgba(0, 0, 0, .25); } .x-tick path { stroke: var(--ink); }
.x-band { background: #000; color: #f5f5f7; padding: clamp(96px, 12vw, 180px) 0; text-align: center; }
.x-band h2 { margin: 0 auto; max-width: 18ch; font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 560; letter-spacing: -.045em; line-height: 1; color: #f5f5f7; }
.x-band p { margin: 22px auto 0; max-width: 54ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; color: #a1a1a6; }
.x-band-act { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.x-band .x-btn.solid { background: #f5f5f7; color: #000; border-color: #f5f5f7; height: 52px; padding: 0 30px; font-size: 16px; }
.x-band-note { margin: 0 !important; font-size: 14px !important; }
.x-band-note a { color: #f5f5f7; }
/* ---------- header tools: search, language, log in, cookies ---------- */
.x-pal-wrap { position: fixed; inset: 0; z-index: 995; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: light-dark(rgba(250, 250, 252, .82), var(--surface-scrim)); }
.x-pal { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; border-radius: 20px; background: var(--x-raised); border: 1px solid var(--line); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .35); overflow: hidden; }
.x-pal-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--soft); }
.x-pal-top input { flex: 1; border: 0; outline: none; font: 400 17px/1.3 var(--sans); color: var(--ink); background: none; }
.x-pal-ask { font: 500 12px/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: var(--card); color: var(--ink); }
.x-pal kbd { font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--faint); background: var(--x-sunk); }
.x-pal-list { overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.x-pal-h { margin: 12px 10px 6px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.x-pal-i { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; border-radius: 12px; text-align: left; cursor: pointer; font-family: var(--sans); }
.x-pal-hi { position: absolute; inset: 0; border-radius: 12px; background: var(--card); }
.x-pal-l { position: relative; font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.x-pal-s { position: relative; flex: 1; min-width: 0; font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-pal-k { position: relative; margin-left: auto; font: 500 12px/1 var(--mono); color: var(--soft); }
.x-pal-none { padding: 24px 12px; color: var(--faint); font-size: 14px; }
.x-pal-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.x-pal-foot kbd { margin-right: 3px; }
.x-pop { position: fixed; z-index: 992; min-width: 260px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 16px; background: var(--x-raised); border: 1px solid var(--line); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .3); overscroll-behavior: contain; }
.x-pop-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: min(560px, 92vw); }
.x-pop-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; font: 400 13.5px/1.3 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; }
.x-pop-i:hover, .x-pop-i:focus-visible { background: var(--card); }
.x-pop-i.on { background: var(--card); font-weight: 600; }
.x-pop-i small { color: var(--faint); }
.x-pop-i.big { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; }
.x-pop-i.big b { font-size: 15px; } .x-pop-i.big span { font-size: 13px; color: var(--soft); }
.x-cookie { position: fixed; z-index: 980; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; width: min(760px, calc(100% - 32px)); display: flex; align-items: center; gap: 18px; padding: 14px 14px 14px 20px; border-radius: 18px; background: var(--x-raised); border: 1px solid var(--line); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .3); }
.x-cookie p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.x-cookie div { display: flex; gap: 8px; flex: none; }
.x-prefs { position: relative; width: min(560px, 100%); max-height: 80vh; overflow-y: auto; padding: 28px; border-radius: 22px; background: var(--x-raised); border: 1px solid var(--line); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .35); }
.x-prefs h2 { margin: 0 0 10px; font-size: 22px; font-weight: 560; letter-spacing: -.02em; }
.x-prefs p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--soft); }
.x-prefs ul { list-style: none; margin: 0 0 20px; padding: 0; }
.x-prefs li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.x-prefs em { font-style: normal; font-size: 12.5px; color: var(--ink); font-weight: 500; }
.x-prefs-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--x-raised); cursor: pointer; }
.x-prefs-acts { display: flex; gap: 8px; justify-content: flex-end; }
/* The cookie switch, drawn as @hanzo/ui's Switch on hanzo.bot and hanzo.team, in Hanzo's greys only (hanzoai/ui#300).
Off: the muted track (#ededed; #171717 in dark) with its hairline and a grey knob (#525252; #a3a3a3). On: ink with the
raised knob. The knob is at least 6.7:1 on its track and the two tracks 14:1 apart, in light and in dark. */
.x-switch { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--x-e10); cursor: pointer; padding: 3px; display: flex; justify-content: flex-start; transition: background .25s; }
.x-switch.on { background: var(--ink); box-shadow: none; justify-content: flex-end; }
.x-switch i { width: 20px; height: 20px; border-radius: 50%; background: var(--muted-foreground); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.x-switch.on i { background: var(--x-raised); }
@media (max-width: 640px) { .x-cookie { flex-direction: column; align-items: stretch; } .x-pop-langs { grid-template-columns: 1fr; } .x-pal-s { display: none; } }
/* Ask Hanzo, inline in ⌘K (components/HeaderTools.jsx) */
.x-pal button.x-pal-ask { border: 0; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.x-pal button.x-pal-ask:not(:disabled):hover, .x-pal button.x-pal-ask:focus-visible { background: var(--ink); color: var(--x-on-ink); }
.x-pal button.x-pal-ask:disabled { opacity: .45; cursor: default; }
.x-pal-answer { padding: 18px 22px 20px; overflow-y: auto; overscroll-behavior: contain; }
.x-pal-q { margin: 0 0 10px; font: 500 12px/1.4 var(--mono); color: var(--faint); overflow-wrap: anywhere; }
.x-pal-ans { margin: 0 0 16px; max-width: 64ch; font-size: 16px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.x-pal-ans[data-state=stream] > span:first-child::after { content: ''; display: inline-block; width: .45em; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: x-blink 1s steps(2) infinite; }
.x-pal-dots { display: inline-flex; gap: 5px; vertical-align: middle; }
.x-pal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: x-pal-dot 1.1s ease-in-out infinite; }
.x-pal-dots i:nth-child(2) { animation-delay: .15s; } .x-pal-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes x-pal-dot { 50% { transform: translateY(-4px); opacity: .4; } }
.x-pal-err { margin: -6px 0 14px; font-size: 14px; color: var(--soft); }
@media (prefers-reduced-motion: reduce) { .x-pal-dots i, .x-pal-ans[data-state=stream] > span:first-child::after { animation: none; } }
/* phone sheets: search and header menus rise from the bottom; the grip drags them closed */
.x-grip { position: relative; display: block; width: 40px; height: 5px; margin: 8px auto 2px; border-radius: 99px; background: rgba(0, 0, 0, .18); touch-action: none; cursor: grab; flex: none; }
.x-grip::after { content: ''; position: absolute; inset: -14px -44px; }
@media (max-width: 700px) {
.x-pal-wrap { align-items: flex-end; padding: 0; }
.x-pal { width: 100%; max-height: 86svh; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
.x-pal-foot { display: none; }
.x-pal-i, .x-pal button.x-pal-ask { min-height: 44px; }
.x-pop.x-pop-sheet { left: 0; right: 0; bottom: 0; width: auto; min-width: 0; max-height: 80svh; border-radius: 22px 22px 0 0; padding: 4px 10px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .28); }
.x-pop-sheet .x-pop-langs { width: auto; }
.x-pop-sheet .x-pop-i { min-height: 48px; }
}
/* 44 px touch targets for Hanzo's own small header controls, without moving a pixel of their header */
@media (pointer: coarse) {
header button[aria-controls="menu-company"] { position: relative; }
header button[aria-controls="menu-company"]::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
}
/* ---------- the speed and price cards: clean surfaces. No texture; what moves is the lean and the gloss of [data-tilt] ----------
One size for the four headline figures (--figure), so 3.02x, 9.6x and the two "up to" lines read as one family. */
.x-races { --figure: clamp(2.25rem, 4.2vw, 4rem); }
.x-race, .x-cost { position: relative; overflow: hidden; isolation: isolate; padding: clamp(18px, 2vw, 26px); border-radius: 22px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .4s var(--ease); }
.x-race-big, .x-cost-big { margin: 12px 0 0; font-size: var(--figure); font-weight: 560; letter-spacing: -.045em; line-height: 1; font-feature-settings: 'tnum'; }
.x-race-cap { margin-top: 6px; font-size: 15.5px; }
.x-race-note { margin-top: 8px; font-size: 12.5px; }
.x-race-title { margin: 16px 0 8px; }
.x-lanes { gap: 10px; }
.x-lane-h { font-size: 12.5px; margin-bottom: 5px; }
.x-lane-track { height: 4px; }
.x-race-end { padding-top: 16px; }
.x-facts { margin-top: 14px; padding-top: 12px; gap: 8px; }
.x-vol { margin: 16px 0 10px; }
.x-races > .x-race { border-color: rgba(255, 255, 255, .09); background: #0b0b0d; }
.x-races > .x-race .x-lane.hi .x-lane-track b { box-shadow: 0 0 12px rgba(245, 245, 247, .6); }
.x-races > .x-race:nth-child(2) .x-lane-track { height: 2px; }
.x-races > .x-cost { background: var(--card); }
/* ---------- dark mode: the black rooms keep a lit top ---------- */
html.dark .x-faster { background: radial-gradient(90% 60% at 50% 0%, #202024, #121214 55%, #0c0c0d); }
html.dark .x-band { background: radial-gradient(80% 70% at 50% 100%, #1b1b1e, #0f0f10 70%); }
/* ---------- the lean and the gloss of a card: [data-tilt], lib/tilt.js ----------
hanzo.css carries the app's lean (a perspective transform from --rx and --ry) and its fade (--lit). Here the light is that
same radial glow in a fixed layer of its own, moved by transform to --lx and --ly, the pointer's place on the card in px,
where the app repaints a gradient at each move: nothing is painted while a card follows the pointer, and at rest nothing runs.
The card clips it. Reduced motion has neither (hanzo.css). */
:where([data-tilt]) { position: relative; }
html [data-tilt] { overflow: clip; isolation: isolate; }
html .x-mtilt[data-tilt] { position: absolute; inset: 0; }
html .x-mcard .x-mmedia img, html .x-mcard .x-mmedia video { transition: opacity .6s var(--ease), transform .28s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
html .x-mcard.big .x-mtilt[data-lit] .x-mmedia img, html .x-mcard.big .x-mtilt[data-lit] .x-mmedia video { transform: scale(1.05) translate3d(calc(var(--nx, 0) * -7px), calc(var(--ny, 0) * -7px), 0); }
html .x-mcard:not(.big) .x-mtilt[data-lit] .x-mmedia img, html .x-mcard:not(.big) .x-mtilt[data-lit] .x-mmedia video { transform: scale(1.11) translate3d(calc(var(--nx, 0) * -11px), calc(var(--ny, 0) * -11px), 0); }
html .x-mcard .x-mtext, html .x-mcard .x-mtags { transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
html .x-mcard:not(.big) .x-mtilt[data-lit] .x-mtext, html .x-mcard:not(.big) .x-mtilt[data-lit] .x-mtags { transform: translate3d(calc(var(--nx, 0) * 4.5px), calc(var(--ny, 0) * 4.5px), 0); }
html [data-tilt]::after { inset: auto; left: 0; top: 0; z-index: 2; width: 600px; height: 600px; margin: -300px 0 0 -300px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle closest-side, color-mix(in oklab, var(--foreground) 10%, transparent), transparent 70%); transform: translate3d(var(--lx, 50%), var(--ly, 0px), 0); }
html [data-tilt][data-lit], html [data-tilt][data-lit]::after { will-change: transform; }
html .x-plot[data-tilt][data-lit] { transform: perspective(1200px) rotateX(calc(var(--rx, 0deg) * .35)) rotateY(calc(var(--ry, 0deg) * .35)) !important; }
/* the cards the lean turns are plain elements, whose hover and press are the properties that do not touch their transform */
.x-tile { transition: transform .3s cubic-bezier(.2, .8, .2, 1), translate .3s var(--ease), scale .15s var(--ease); }
.x-tile:active { scale: .98; }
/* ---------- touch: every control is at least 44 x 44 (the pill, the tab and the link keep their look and take the space around them) ---------- */
@media (pointer: coarse) {
.x-btn.sm, .x-setup-main, .x-setup-chev, .x-skip { min-height: 46px; }
.x-setup-main, .x-setup-chev { height: 46px; }
.x-setup-chev { width: 46px; }
.x-seg button { min-width: 44px; }
.x-arrow, .x-tab, .xpr-use, .xmo-use, .xmo-row-n, .xmo-lk, .xmo-every-g a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.x-badge, .x-phone-dl, .xm-tabs button { position: relative; }
.x-badge::after, .x-phone-dl::after, .xm-tabs button::after { content: ''; position: absolute; inset: -12px -6px; }
footer a { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 36px; }
}
@media (max-width: 380px) { .x-setup-i:nth-child(n + 4) { display: none; } } /* the setup row and its 46px chevron stay inside a 360px screen's panel */
/* ---------- Hanzo MCP: the client picker (components/McpPicker.jsx, lib/mcp.js) ---------- */
@media (max-width: 960px) {
}
@media (max-width: 640px) {
}
/* ---------- Corner: Help and preferences menu in the bottom-right corner (@hanzo/ui/corner) ---------- */
.x-corner { position: fixed; bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 8px)); inset-inline-end: max(16px, calc(env(safe-area-inset-right, 0px) + 8px)); z-index: 60; }
.x-corner-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink); opacity: .85; cursor: pointer; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.x-corner-btn:hover, .x-corner-btn[aria-expanded='true'] { opacity: 1; transform: scale(1.06); }
.x-corner-btn:focus-visible { outline: 2px solid var(--focus, #0a0a0b); outline-offset: 2px; }
.x-corner-card { position: absolute; bottom: calc(100% + 8px); inset-inline-end: 0; width: 288px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 76px); overflow-y: auto; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 6px; }
.x-corner-h { display: flex; align-items: center; justify-content: space-between; min-height: 26px; padding: 0 2px; }
.x-corner-h h2 { margin: 0; font: 500 12px/1.2 var(--sans); color: var(--faint); }
.x-corner-h.sub h2 { font: 600 13.5px/1.2 var(--sans); color: var(--ink); }
.x-corner-x { display: grid; place-items: center; width: 28px; height: 28px; margin-inline-end: -4px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--soft); cursor: pointer; }
.x-corner-x:hover { background: var(--x-fill); color: var(--ink); }
.x-corner-list { display: flex; flex-direction: column; gap: 1px; }
.x-corner-item, .x-corner-row { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0 -6px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 500 13.5px/1.25 var(--sans); text-decoration: none; cursor: pointer; text-align: left; }
.x-corner-item:hover, .x-corner-row:hover { background: var(--x-fill); }
.x-corner-item svg:first-child { flex: none; color: var(--soft); }
.x-corner-item span { flex: 1; min-width: 0; }
.x-corner-ext { flex: none; color: var(--faint); }
.x-corner-hr { height: 1px; margin: 4px 0; background: var(--line); }
.x-corner-theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 0 2px; font: 400 13.5px/1.2 var(--sans); color: var(--soft); }
.x-corner-seg { display: inline-flex; align-items: center; padding: 2px; border-radius: 999px; border: 1px solid var(--line); background: var(--x-sunk); gap: 2px; }
.x-corner-seg button { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 28px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--soft); font: 500 12px/1 var(--sans); cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease); }
.x-corner-seg button[aria-checked='true'] { background: var(--x-raised); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.x-corner-row > span:first-child { flex: 1; font-weight: 400; color: var(--soft); }
.x-corner-row > b { font-weight: 600; color: var(--ink); }
.x-corner-row > svg { flex: none; color: var(--faint); }
.x-corner-search { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--x-sunk); color: var(--faint); }
.x-corner-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 13px/1 var(--sans); }
.x-corner-opts { display: flex; flex-direction: column; gap: 1px; max-height: 260px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.x-corner-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 400 13px/1.2 var(--sans); cursor: pointer; text-align: left; }
.x-corner-opt:hover, .x-corner-opt[aria-selected='true'] { background: var(--x-fill); }
.x-corner-opt[aria-selected='true'] { font-weight: 600; }
.x-corner-opt small { color: var(--faint); font-weight: 400; margin-left: 4px; }
@media (pointer: coarse) { .x-corner-item, .x-corner-row, .x-corner-opt { min-height: 44px; } }