Files
site/app/globals.css
zeekay 3d00906cdd Restore corner help menu, phone Duo mode, and model card media sizing
- Restore the floating bottom-right Hanzo Mark help and preferences menu
  ([data-slot="corner-trigger"] / [data-slot="corner-card"]) in HeaderTools
  with Markdown page copy, support links, and Theme/Language/Font controls,
  removing the static duplicate footer mark from content.js
- Restore foldable iPhone Duo split-screen mode in Hero Devices with live
  maxpower agent lanes, shorter balanced phone height (368px), larger
  terminal footprint, white submitted user bubble text on dark muted
  fill, and hover-only Download App pill
- Hide the leading copy SVG dot on the hero Copy setup prompt button
- Fix model card media collapse caused by html [data-tilt] overriding
  .x-mtilt absolute positioning

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
2026-11-09 16:32:41 -08:00

772 lines
73 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: #0a0a0a; --soft: #6e6e73; --faint: #86868b; --line: rgba(0, 0, 0, .08); --card: #f5f5f7; --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: 24px;
--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/design (tokens/colors.css,
carried by hanzo.css too), 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) {
--ink: var(--foreground); --soft: var(--muted-foreground); --faint: var(--text-tertiary); --line: var(--border);
--card: var(--popover); --bg: var(--background); /* --card is Hanzo's dark card, #0f0f0f, as live (read through --popover, the same
colour in @hanzo/design, since this rule restates --card itself) */
/* --x-raised is Hanzo's dark card, #0f0f0f (@hanzo/design --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 wordmark in dark: live draws it in --foreground at opacity .18 (dark grey). components/Chrome.jsx raises the
link's own opacity to 1 as the page ends, so in dark its contents carry live's .18 (light keeps today's look). */
html:not(.light) [data-slot=footer-signature] > * { opacity: .18; }
/* 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; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped, 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: 40px 0 8px; }
.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; } }
.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 110px; 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 { display: flex; flex-direction: column; align-items: center; text-align: center; }
.x-badge { 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(--ink); text-decoration: none; }
.x-h1 { margin: 26px 0 0; font-weight: 560; letter-spacing: -.045em; color: var(--ink); }
.x-h1-a, .x-h1-b { display: block; }
.x-h1-a { font-size: clamp(1.45rem, 2.05vw, 2rem); line-height: 1.12; letter-spacing: -.028em; white-space: nowrap; }
.x-h1-b { font-size: clamp(3rem, 4.75vw, 4.9rem); line-height: 1; margin-top: 6px; white-space: nowrap; }
.x-line { display: block; overflow: hidden; padding: .04em 0 .1em; }
.x-line-in { display: block; }
.x-hero-lede { margin: 24px 0 0; font-size: clamp(1.0625rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--soft); max-width: 30ch; text-wrap: balance; }
.x-hero-lede b { color: var(--ink); font-weight: 600; font-feature-settings: 'tnum'; }
.x-auth { width: min(100%, 380px); margin-top: 32px; 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: 720; --sh: 590px; position: relative; width: 100%; transform-origin: 50% 0; }
.x-fit { position: absolute; left: 0; top: 0; width: 720px; height: 590px; transform-origin: 0 0; perspective: 1700px; }
.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 { position: absolute; left: 50%; bottom: -52px; translate: -50% 0; display: inline-flex; width: max-content; z-index: 5; --mx: -50%; }
.x-setup.inline { position: relative; left: auto; bottom: auto; translate: none; align-self: flex-start; --mx: 0px; }
.x-setup-main, .x-setup-chev { display: inline-flex; align-items: center; height: 40px; 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: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s; }
.x-setup-main > svg, .x-setup-chev > svg { flex: none; }
.x-hero .x-setup-main > svg { display: none; }
.x-setup-main { gap: 9px; padding: 0 8px 0 15px; border-radius: 999px 0 0 999px; }
.x-setup-chev { justify-content: center; width: 38px; padding: 0; border-left: 0; border-radius: 0 999px 999px 0; }
.x-setup-main:hover, .x-setup-chev:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .32); }
.x-setup-main:active, .x-setup-chev:active { transform: scale(.97); }
.x-setup-chev svg { transition: rotate .45s 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: 6px; }
.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: -8px; transform: translate(var(--mx), var(--my)) scale(.97); transform-origin: 50% 0; transition: opacity .22s, transform .45s var(--ease), visibility 0s .45s; }
.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: 8px; 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; opacity: 0; transform: translateY(7px); transition: opacity .2s, transform .2s, background .15s; }
.x-menu-row[hidden] { display: none; }
.x-menu[data-open='true'] .x-menu-row, .x-menu[data-open='true'] .x-menu-foot a { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .5s var(--ease), background .15s; transition-delay: calc(min(var(--i), 12) * 22ms + 60ms), calc(min(var(--i), 12) * 22ms + 60ms), 0s; }
.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; opacity: 0; transform: translateY(7px); }
.x-menu-foot a:hover { background: var(--x-fill); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .x-menu, .x-menu-row, .x-menu-foot a, .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 56px; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 24px; }
.x-ico { position: relative; width: 52px; height: 52px; border-radius: 15px; 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: 26px; height: 26px; object-fit: contain; }
.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-zone { y: 24px; fill: rgba(0, 0, 0, .025); }
.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; }
.x-plot .cap { cursor: ew-resize; outline: none; }
.x-plot .cap line { stroke: var(--ink); stroke-width: 1.5; }
.x-plot .cap rect:not(.hit) { fill: var(--ink); }
.x-plot .cap path { stroke: var(--bg); stroke-width: 1.5; stroke-linecap: round; }
.x-plot .cap .hit { fill: transparent; }
.x-plot .cap:focus-visible rect:not(.hit) { stroke: var(--ink); stroke-width: 2; }
.x-plot-read { position: absolute; top: clamp(18px, 3vw, 32px); right: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; z-index: 1; }
.x-plot-read span { font-size: 11.5px; color: var(--soft); }
.x-plot-read b { font-size: 18px; font-weight: 560; letter-spacing: -.02em; }
.x-plot-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); }
/* ---------- 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-rail-wrap { position: relative; margin-top: 48px; }
.x-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100% - var(--wrap)) / 2)); padding: 8px max(24px, calc((100% - var(--wrap)) / 2)) 24px; scrollbar-width: none; cursor: grab; }
.x-rail::-webkit-scrollbar { display: none; }
.x-rail.grab { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.x-repo { flex: none; width: 320px; scroll-snap-align: start; }
.x-repo > div { height: 100%; background: var(--x-raised); }
.x-rail-nav { width: min(100% - 48px, var(--wrap)); margin: 4px auto 0; display: flex; justify-content: flex-end; gap: 10px; }
.x-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.x-way { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 28px; border-radius: 28px; background: #0a0a0a; color: #f5f5f7; text-decoration: none; }
.x-way-i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; background: color-mix(in srgb, currentColor 8%, transparent); border: 1px solid color-mix(in srgb, currentColor 14%, transparent); color: var(--ink, #f5f5f7); transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.x-way-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .x-way:hover .x-way-i { transform: translateY(-2px); background: color-mix(in srgb, currentColor 13%, transparent); border-color: color-mix(in srgb, currentColor 24%, transparent); } }
.x-way b { font-size: 24px; font-weight: 560; letter-spacing: -.025em; }
.x-way span { font-size: 15px; line-height: 1.5; color: #a1a1a6; }
.x-way em { margin-top: auto; font-style: normal; font-size: 14px; font-weight: 500; }
/* ---------- 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 { align-self: flex-start; }
.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-top: 32px; }
.x-hero-grid { grid-template-columns: 1fr; gap: 40px; }
.x-panels, .x-races, .x-plans.n3, .x-plans.n2, .x-ways { 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% - 32px, var(--wrap)); }
.x-hero-stage { --sw: 420; --sh: 726px; }
.x-fit { width: 420px; }
.x-setup { bottom: -50px; }
.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-repo { width: 280px; }
.x-plot-read { position: static; align-items: flex-start; text-align: left; margin-bottom: 8px; }
.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; }
[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(28px, 4vw, 64px); padding: 28px 24px 40px; }
.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(calc(var(--s, 1) * .2)); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); transition-delay: calc(var(--i, 0) * 3ms); }
.x-cal-grid2.on i { transform: scale(var(--s, 1)); opacity: 1; }
.x-cal-grid2.on i.sw, .x-cal-grid2.on i.hot, .x-cal-grid2:hover i { transition-delay: 0ms; transition-duration: .22s; }
.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; }
.x-cal-grid2 i.sw { filter: brightness(1.25); }
/* 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 { font-style: normal; font-weight: 300; font-size: 26px; line-height: 1; color: var(--soft); }
.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-top: 12px; font-size: var(--figure); }
.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); }
/* ---------- James 8 Nov: home in dark has light and rhythm, not one long black scroll (dark mode only; light unchanged) ---------- */
html.dark main > section.x-sec { background-image: radial-gradient(70% 45% at 50% 0%, rgba(255, 255, 255, .07), transparent 70%); }
html.dark main > section.x-sec:nth-of-type(even):not([data-room='dark']) { background-color: #141417; }
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 [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 */
@media (hover: hover) { .x-way:hover { translate: 0 -4px; } }
.x-way, .x-tile { transition: transform .3s cubic-bezier(.2, .8, .2, 1), translate .3s var(--ease), scale .15s var(--ease); }
.x-way:active { scale: .985; }
.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-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, .x-term-f a { position: relative; }
.x-badge::after, .x-phone-dl::after, .xm-tabs button::after, .x-term-f a::after { content: ''; position: absolute; inset: -12px -6px; }
footer a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
}
@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) ---------- */
.x-mcp { margin-top: 16px; gap: 18px; }
.x-mcp-lede { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--soft); max-width: 68ch; }
.x-mcp-lede code { color: var(--ink); font-size: 13px; }
.x-mcp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.x-mcp-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.x-mcp-row { display: flex; flex-direction: column; gap: 8px; }
.x-mcp-k { font: 500 13px/1 var(--sans); color: var(--soft); }
.x-mcp-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.x-mcp-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--x-raised); color: var(--soft); font: 500 13.5px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.x-mcp-seg.clients .x-mcp-chip { padding-left: 10px; }
.x-mcp-chip:hover { color: var(--ink); border-color: var(--x-e15); }
.x-mcp-chip[aria-checked='true'] { background: var(--ink); color: var(--x-on-ink); border-color: var(--ink); }
.x-mcp-i { display: grid; place-items: center; width: 18px; height: 18px; flex: none; }
.x-mcp-i svg, .x-mcp-i img { width: 18px; height: 18px; object-fit: contain; }
.x-mcp-out { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.x-mcp-hint { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--soft); }
.x-mcp-hint code { color: var(--ink); font-size: 12.5px; }
.x-mcp-code { position: relative; border-radius: 14px; background: #0b0b0c; min-width: 0; border: 1px solid rgba(255, 255, 255, .07); }
.x-mcp-code pre { margin: 0; padding: 16px 92px 16px 16px; overflow-x: auto; color: #e9e9ec; font-size: 12.5px; line-height: 1.65; white-space: pre; tab-size: 2; border-radius: 14px; }
.x-mcp-code pre:focus-visible { outline: 2px solid var(--focus, #0a0a0b); outline-offset: 2px; }
.x-mcp-code .x-copy { position: absolute; top: 10px; right: 10px; background: #1b1b1d; border-color: #2c2c2f; color: #e9e9ec; }
.x-mcp-code .x-copy:hover { color: #fff; }
.x-mcp-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.x-mcp-tool { padding: 5px 10px; border-radius: 8px; background: var(--x-raised); border: 1px solid var(--line); color: var(--soft); font-size: 12px; line-height: 1; }
.x-mcp-foot { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 4px; font-size: 13px; color: var(--soft); }
.x-mcp-foot a { color: var(--ink); text-decoration: none; font-weight: 500; }
.x-mcp-foot a:hover { text-decoration: underline; }
.x-mcp-link { border: 0; background: none; padding: 0; color: var(--ink); font: 500 13.5px/1.55 var(--sans); text-decoration: underline; cursor: pointer; }
@media (max-width: 960px) {
.x-mcp-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
.x-mcp-chip { min-height: 44px; }
.x-mcp-code pre { font-size: 12px; padding-right: 16px; padding-bottom: 54px; white-space: pre-wrap; overflow-wrap: anywhere; }
.x-mcp-code .x-copy { top: auto; bottom: 10px; }
}
/* ---------- 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; } }