Files
site/app/system.css
zeekay 8bd6079d6d Header: no sound toggle
The owner asked for the speaker beside the language switcher to go; the
phone menu's copy goes with it, and with them the toggle itself.

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
2026-11-09 07:05:07 -08:00

331 lines
29 KiB
CSS

/* Hanzo's shared system: tokens, component states, the ask bar, accessibility. Loaded once by app/layout.jsx, after
globals.css and before any page CSS, so a page rule always wins over these defaults.
HOW TO USE (full list in docs/build-notes/review/SYSTEM.md):
- Colour: the grey and silver deck only (0 UI hues). Use var(--hz-50 … --hz-950), the silvers, or the room tokens
var(--room-bg / -surface / -ink / -soft / -faint / -line / -fill). Put data-room="dark" on a dark section and every
room token (and the focus ring, and solid buttons) flips for it. Colour comes only from Hanzo's own media.
- Motion: var(--ease-out-expo / --ease-calm / --ease-soft / --ease-in) and var(--dur-press … --dur-reveal); the same
values live in lib/motion.js for Motion. Animate transform, opacity, clip-path and filter only.
- States: .x-btn, .x-arrow, .x-link, .x-card, .x-tablist, .x-table, .x-skel answer hover, press, focus, loading
(aria-busy="true"), disabled (disabled or aria-disabled="true") and selected (aria-pressed / aria-selected /
aria-current / data-selected). Nothing fades on hover, nothing jumps.
- Utilities: .x-tnum (tabular figures), .x-cv (skip off-screen rendering), .x-vh (visually hidden), .x-ratio. */
/* ---------- fonts: no visible swap ----------
Zen and Zen Mono load with font-display: block and are preloaded (app/layout.jsx), so text paints once, in Zen. If a
very slow network ever outlasts the block period, these metric-matched stand-ins (measured in Chromium against Zen:
width 104.5%, ascent 101%, descent 30%) take the same box, so the swap moves nothing. */
@font-face { font-family: 'Zen Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'); size-adjust: 104.51%; ascent-override: 96.64%; descent-override: 28.71%; line-gap-override: 0%; }
@font-face { font-family: 'Zen Mono Fallback'; src: local('Courier New'), local('CourierNewPSMT'), local('Liberation Mono'); size-adjust: 99.98%; ascent-override: 101.02%; descent-override: 30.01%; line-gap-override: 0%; }
/* ---------- the brand deck: greys and silvers ---------- */
:root {
--hz-black: #000; --hz-950: #0a0a0b; --hz-900: #141416; --hz-850: #1c1c1e; --hz-800: #2c2c2e; --hz-700: #3a3a3c;
--hz-600: #48484a; --hz-500: #6e6e73; --hz-400: #86868b; --hz-300: #a1a1a6; --hz-200: #c7c7cc; --hz-150: #d2d2d7;
--hz-100: #e8e8ed; --hz-50: #f5f5f7; --hz-white: #fff;
--silver-hi: #f4f4f6; --silver: #d4d5d9; --silver-lo: #9b9ca2; --silver-deep: #5d5e63;
/* a brushed-metal surface for an object (a chip, a medal, a hairline), never for text */
--silver-sheen: linear-gradient(135deg, #f4f4f6 0%, #c9cacf 38%, #eeeef0 55%, #a7a8ae 100%);
--silver-edge: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08));
/* the room you are in (light by default; [data-room=dark] flips it) */
--room-bg: #fff; --room-surface: #f5f5f7; --room-raised: #fff;
--room-ink: #0a0a0b; --room-soft: #6e6e73; --room-faint: #86868b;
--room-line: rgba(0, 0, 0, .08); --room-line-strong: rgba(0, 0, 0, .16);
--room-fill: rgba(0, 0, 0, .04); --room-fill-strong: rgba(0, 0, 0, .08);
--focus: #0a0a0b;
--btn-solid-bg: var(--ink, #0a0a0a); --btn-solid-ink: #fff; --btn-solid-hover: #2c2c2e;
/* motion (lib/motion.js holds the same numbers for Motion) */
--ease-out-expo: cubic-bezier(.16, 1, .3, 1); --ease-calm: cubic-bezier(.33, 1, .68, 1);
--ease-soft: cubic-bezier(.22, 1, .36, 1); --ease-in: cubic-bezier(.7, 0, .84, 0);
--dur-press: .1s; --dur-hover: .2s; --dur-exit: .25s; --dur-fade: .4s; --dur-enter: .6s; --dur-reveal: 1.1s;
/* type (BRIEF-v3 §6) */
--fs-display: clamp(48px, 8.7vw, 128px); --fs-h2: clamp(32px, 4.5vw, 56px); --fs-lede: clamp(19px, 1.8vw, 24px);
--fs-body: 17px; --fs-chrome: 13px; --fs-figure: clamp(56px, 6.5vw, 96px);
--lh-display: 1.02; --lh-h2: 1.07; --lh-lede: 1.33; --lh-body: 1.47;
/* space and shape */
--side: clamp(24px, 3.45vw, 72px); --air: clamp(120px, 15vw, 240px); --hit: 44px; --row: 56px;
--x-radius-card: 28px; --x-radius-pill: 999px; --x-radius-sm: 12px;
--shadow-1: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 1px rgba(0, 0, 0, .04);
--shadow-2: 0 24px 48px -28px rgba(0, 0, 0, .28);
--shadow-pop: 0 40px 100px -30px rgba(0, 0, 0, .35);
/* the sticky header's height: use top: var(--x-top) for your own sticky parts */
--x-top: 60px;
/* layers */
--x-z-ask: 70; --x-z-sheet: 985; --x-z-skip: 2147483001;
}
/* dark mode: the page's room is Hanzo's dark, from @hanzo/design's tokens (Hanzo's own :not(.light) selector); a
[data-room=light] section follows the page into the dark, and [data-room=dark] stays as it is */
html:not(.light), html:not(.light) [data-room=light] {
--room-bg: var(--background); --room-surface: var(--muted); --room-raised: var(--card);
--room-ink: var(--foreground); --room-soft: var(--muted-foreground); --room-faint: var(--text-tertiary);
--room-line: var(--border); --room-line-strong: var(--border-strong);
--room-fill: var(--glass); --room-fill-strong: var(--glass-strong);
--focus: var(--ring);
--btn-solid-bg: var(--primary); --btn-solid-ink: var(--primary-foreground); --btn-solid-hover: var(--primary-hover);
}
[data-room=dark] {
--room-bg: #0a0a0b; --room-surface: #141416; --room-raised: #1c1c1e;
--room-ink: #f5f5f7; --room-soft: #a1a1a6; --room-faint: #86868b;
--room-line: rgba(255, 255, 255, .14); --room-line-strong: rgba(255, 255, 255, .26);
--room-fill: rgba(255, 255, 255, .06); --room-fill-strong: rgba(255, 255, 255, .12);
--focus: #f5f5f7;
--btn-solid-bg: #f5f5f7; --btn-solid-ink: #0a0a0b; --btn-solid-hover: #fff;
}
[data-room=light] {
--room-bg: #fff; --room-surface: #f5f5f7; --room-raised: #fff;
--room-ink: #0a0a0b; --room-soft: #6e6e73; --room-faint: #86868b;
--room-line: rgba(0, 0, 0, .08); --room-line-strong: rgba(0, 0, 0, .16);
--room-fill: rgba(0, 0, 0, .04); --room-fill-strong: rgba(0, 0, 0, .08);
--focus: #0a0a0b;
--btn-solid-bg: #0a0a0b; --btn-solid-ink: #fff; --btn-solid-hover: #2c2c2e;
}
/* ---------- scrolling: anchors and focused elements never land under the header ---------- */
html { scroll-padding-top: calc(var(--x-top) + 16px); }
html.lenis, html.lenis body { scroll-snap-type: none !important; } /* hanzo.css proximity snap fights Lenis */
/* ---------- focus: one ring, in the room's ink ---------- */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
header[data-x-dark='true'] { --focus: #f5f5f7; }
/* Hanzo's atomic classes (_outlineWidth-0px …) would hide the ring in its header and on ported pages */
header[data-slot=masthead] :focus-visible, main.x-ported :focus-visible, footer :focus-visible { outline: 2px solid var(--focus) !important; outline-offset: 2px !important; }
/* after a page change focus lands on the h1 (components/Chrome.jsx): no ring for that programmatic landing */
main h1[tabindex='-1']:focus { outline: none; }
/* ---------- skip link: the first tab stop ---------- */
.x-skip { position: fixed; left: 12px; top: 10px; z-index: var(--x-z-skip); padding: 12px 18px; border-radius: var(--x-radius-pill); background: var(--hz-950); color: #fff; font: 500 14px/1 var(--sans); text-decoration: none; transform: translateY(-160%); transition: transform var(--dur-hover) var(--ease-calm); }
.x-skip:focus, .x-skip:focus-visible { transform: none; outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--hz-950); }
main:focus, .x-main-mark:focus { outline: none; }
.x-main-mark { height: 0; scroll-margin-top: 72px; }
/* ---------- buttons (.x-btn, Btn, Go) ---------- */
.x-btn { position: relative; transition: background-color var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), transform var(--dur-press) var(--ease-out-expo), box-shadow var(--dur-hover) var(--ease-soft); -webkit-tap-highlight-color: transparent; }
/* hover on an outline button: a grey veil darkens light buttons and lifts dark ones, whatever colours a page gave them */
@media (hover: hover) { .x-btn:not(.solid):hover { box-shadow: inset 0 0 0 100vmax rgba(128, 128, 128, .1); } }
.x-btn.solid { background-color: var(--btn-solid-bg); border-color: var(--btn-solid-bg); color: var(--btn-solid-ink); }
@media (hover: hover) { .x-btn.solid:hover { background-color: var(--btn-solid-hover); border-color: var(--btn-solid-hover); } }
.x-btn:active { transform: scale(.98); transition-duration: 0s; }
/* selected: the choice you made reads inverted, not tinted */
.x-btn[aria-pressed='true'], .x-btn[aria-current='page'], .x-btn[data-selected] { background-color: var(--room-ink); border-color: var(--room-ink); color: var(--room-bg); }
/* loading: the label keeps its width and a ring turns in its place */
.x-btn[aria-busy='true'] { color: transparent !important; pointer-events: none; }
.x-btn[aria-busy='true']::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 1.6px solid currentColor; border-color: var(--room-ink) transparent var(--room-ink) var(--room-ink); animation: x-turn .7s linear infinite; }
.x-btn.solid[aria-busy='true']::after { border-color: var(--btn-solid-ink) transparent var(--btn-solid-ink) var(--btn-solid-ink); }
/* disabled: quiet, still legible, no hover or press */
.x-btn:disabled, .x-btn[aria-disabled='true'] { cursor: not-allowed; background-color: var(--room-fill); border-color: transparent; color: var(--room-faint); transform: none; box-shadow: none; }
.x-btn.solid:disabled, .x-btn.solid[aria-disabled='true'] { background-color: var(--room-fill-strong); color: var(--room-soft); }
@keyframes x-turn { to { transform: rotate(1turn); } }
/* round icon buttons, copy chips, the arrow link */
.x-round, .x-copy, .x-replay { transition: background-color var(--dur-hover) var(--ease-soft), border-color var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), transform var(--dur-press) var(--ease-out-expo); }
@media (hover: hover) { .x-round:hover, .x-copy:hover { box-shadow: inset 0 0 0 100vmax rgba(128, 128, 128, .1); } }
.x-round:active, .x-copy:active, .x-replay:active { transform: scale(.94); transition-duration: 0s; }
.x-round:disabled, .x-round[aria-disabled='true'] { opacity: .4; cursor: not-allowed; transform: none; }
.x-arrow { transition: transform var(--dur-press) var(--ease-out-expo); }
.x-arrow:active { transform: translateY(1px); }
.x-arrow[aria-disabled='true'] { color: var(--room-faint); pointer-events: none; }
/* ---------- text links ---------- */
/* .x-link: an underline that draws in from the left on hover, and stays for the page you are on */
.x-link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out-expo), color var(--dur-hover); padding-bottom: 1px; }
@media (hover: hover) { .x-link:hover { background-size: 100% 1px; } }
.x-link:focus-visible, .x-link[aria-current='page'] { background-size: 100% 1px; }
.x-link:active { transform: translateY(1px); display: inline-block; }
.x-link[aria-disabled='true'] { color: var(--room-faint); pointer-events: none; }
/* ---------- cards ---------- */
/* .x-card on any <a>, <button> or <article>: hairline, lift on hover, give on press, ring when chosen */
.x-card { position: relative; display: block; border-radius: var(--x-radius-card); background: var(--room-surface); border: 1px solid var(--room-line); color: var(--room-ink); text-decoration: none; transition: transform .25s var(--ease-out-expo), border-color var(--dur-hover) var(--ease-soft), box-shadow .25s var(--ease-out-expo), background-color var(--dur-hover) var(--ease-soft); -webkit-tap-highlight-color: transparent; }
.x-card:is(a, button) { cursor: pointer; }
.x-card:is(button) { font: inherit; text-align: inherit; width: 100%; }
@media (hover: hover) and (pointer: fine) {
.x-card:is(a, button, [tabindex]):hover { transform: translateY(-5px); border-color: var(--room-line-strong); }
:not([data-room=dark]) > .x-card:is(a, button, [tabindex]):hover { box-shadow: var(--shadow-2); }
}
.x-card:is(a, button, [tabindex]):active { transform: translateY(-2px) scale(.98); transition-duration: var(--dur-press); }
.x-card:focus-visible { outline-offset: 4px; }
.x-card[aria-selected='true'], .x-card[aria-current='page'], .x-card[data-selected] { border-color: var(--room-ink); box-shadow: 0 0 0 1px var(--room-ink); }
.x-card[aria-busy='true'] { pointer-events: none; }
.x-card[aria-disabled='true'] { opacity: .5; pointer-events: none; }
.x-card.inv { background: var(--room-ink); color: var(--room-bg); border-color: var(--room-ink); } /* the one odd tile (Von Restorff): inverted, never coloured */
/* ---------- tabs (kit <Tabs>) ---------- */
.x-tablist { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--x-radius-pill); background: var(--room-fill); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.x-tablist::-webkit-scrollbar { display: none; }
.x-tab { position: relative; flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: var(--x-radius-pill); background: none; color: var(--room-soft); font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: color var(--dur-hover) var(--ease-soft), transform var(--dur-press) var(--ease-out-expo); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .x-tab:hover { color: var(--room-ink); } }
.x-tab:active { transform: scale(.97); transition-duration: 0s; }
.x-tab[aria-selected='true'] { color: var(--room-ink); }
.x-tab:disabled, .x-tab[aria-disabled='true'] { color: var(--room-faint); opacity: .5; cursor: not-allowed; }
.x-tab:focus-visible { outline-offset: -2px; }
.x-tab-t { position: relative; z-index: 1; }
.x-tab-pill { position: absolute; inset: 0; border-radius: inherit; background: var(--room-raised); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04); }
[data-room=dark] .x-tab-pill { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.x-tablist.lg .x-tab { height: 44px; padding: 0 20px; font-size: 15px; }
@media (pointer: coarse) { .x-tab { min-height: 44px; } }
/* ---------- touch: 44 px targets for small controls, without moving a pixel ---------- */
@media (pointer: coarse) {
.x-btn.sm, .x-copy, .x-round, .x-replay, .x-arrow, .x-link { position: relative; touch-action: manipulation; }
.x-btn.sm::before, .x-copy::before, .x-replay::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
}
[role=tabpanel]:focus-visible { outline-offset: 8px; border-radius: 16px; }
/* ---------- sheets (kit <Sheet>) ---------- */
.x-sheet2-wrap { position: fixed; inset: 0; z-index: var(--x-z-sheet); display: flex; justify-content: flex-end; }
.x-sheet2-scrim { position: absolute; inset: 0; background: rgba(10, 10, 11, .42); }
.x-sheet2 { position: relative; width: min(560px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--room-bg); color: var(--room-ink); box-shadow: -40px 0 100px -40px rgba(0, 0, 0, .4); overscroll-behavior: contain; }
.x-sheet2.wide { width: min(880px, 100%); }
.x-sheet2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 16px; }
.x-sheet2-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 560; letter-spacing: -.025em; line-height: 1.1; }
.x-sheet2-kick { display: block; margin: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--room-faint); }
.x-sheet2-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--room-line); background: var(--room-raised); color: var(--room-ink); display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur-hover), transform var(--dur-press) var(--ease-out-expo); }
@media (hover: hover) { .x-sheet2-x:hover { background: var(--room-fill-strong); } }
.x-sheet2-x:active { transform: scale(.94); }
.x-sheet2-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 28px 40px; overscroll-behavior: contain; }
@media (max-width: 700px) {
.x-sheet2-wrap { align-items: flex-end; }
.x-sheet2, .x-sheet2.wide { width: 100%; height: auto; max-height: 88svh; border-radius: 22px 22px 0 0; box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, .4); padding-bottom: env(safe-area-inset-bottom); }
.x-sheet2-head { padding: 8px 20px 12px; }
.x-sheet2-body { padding: 0 20px 28px; }
}
/* ---------- tables ---------- */
/* <div class="x-table-wrap"><table class="x-table">… mark the subject column's cells with data-subject */
.x-table-wrap { position: relative; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.x-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.4; color: var(--room-ink); font-feature-settings: 'tnum'; }
.x-table caption { caption-side: bottom; padding-top: 14px; text-align: left; font-size: 12.5px; color: var(--room-faint); }
.x-table th, .x-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--room-line); white-space: nowrap; }
.x-table thead th { position: sticky; top: 0; z-index: 2; background: var(--room-bg); font: 500 12.5px/1.2 var(--sans); color: var(--room-soft); }
.x-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--room-bg); font-weight: 500; }
.x-table thead th:first-child { left: 0; z-index: 3; }
.x-table td.num, .x-table th.num { text-align: right; }
.x-table [data-subject] { background-color: var(--room-fill); font-weight: 600; }
.x-table thead [data-subject] { color: var(--room-ink); }
.x-table tbody tr { transition: background-color var(--dur-hover) var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .x-table tbody tr:hover > * { background-color: var(--room-fill); } .x-table tbody tr:hover > [data-subject] { background-color: var(--room-fill-strong); } }
.x-table tr[aria-selected='true'] > *, .x-table tr[data-selected] > * { background-color: var(--room-fill-strong); }
.x-table .x-gap { color: var(--room-faint); } /* an honest gap: "—" where a model has no score */
/* ---------- loading, empty, error ---------- */
/* .x-skel: a fixed-height placeholder that holds the exact box the content will take (no shift when it arrives) */
.x-skel { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--room-fill-strong); }
.x-skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--room-fill-strong), transparent); transform: translateX(-100%); animation: x-shimmer 1.4s var(--ease-soft) infinite; }
.x-skel-line { height: 1em; margin: .35em 0; border-radius: 6px; }
@keyframes x-shimmer { to { transform: translateX(100%); } }
.x-state { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(28px, 4vw, 48px); border-radius: var(--x-radius-card); border: 1px dashed var(--room-line-strong); color: var(--room-ink); }
.x-state.center { align-items: center; text-align: center; }
.x-state-t { margin: 0; font-size: 19px; font-weight: 560; letter-spacing: -.015em; }
.x-state-d { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.5; color: var(--room-soft); }
.x-state.error { border-style: solid; }
.x-state .x-state-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--room-fill-strong); color: var(--room-soft); }
/* ---------- Cta sizes ---------- */
.x-btn.lg { height: 52px; padding: 0 28px; font-size: 16px; }
/* ---------- CodeBlock ---------- */
.x-codeblock { margin: 0; border-radius: 16px; background: #0a0a0b; color: #e8e8ed; border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.x-codeblock-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 8px 6px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 12px/1 var(--mono); color: #a1a1a6; }
.x-codeblock .x-copy { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #d2d2d7; height: 32px; }
.x-codeblock pre { margin: 0; padding: 16px; overflow: auto; overscroll-behavior: contain; font: 400 13.5px/1.65 var(--mono); tab-size: 2; white-space: pre; }
.x-codeblock pre:focus-visible { outline-offset: -3px; }
.x-codeblock-l.c { color: #86868b; }
.x-codeblock-p { color: #6e6e73; user-select: none; -webkit-user-select: none; }
/* ---------- Stat ---------- */
.x-stat { display: flex; flex-direction: column; gap: 8px; }
.x-stat-v { display: inline-block; font-size: var(--fs-figure); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; color: var(--room-ink); }
.x-stat-l { font-size: 15px; color: var(--room-soft); }
.x-stat-n { font-size: 12.5px; color: var(--room-faint); }
/* ---------- forms (Hanzo's own fields, not browser defaults) ---------- */
.x-field { display: flex; flex-direction: column; gap: 8px; }
.x-field > label, .x-field-l { font-size: 13px; font-weight: 500; color: var(--room-soft); }
.x-input2 { height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--room-line-strong); background: var(--room-raised); color: var(--room-ink); font: 400 16px/1.2 var(--sans); transition: border-color var(--dur-hover), box-shadow var(--dur-hover); -webkit-appearance: none; appearance: none; }
textarea.x-input2 { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.x-input2::placeholder { color: var(--room-faint); }
@media (hover: hover) { .x-input2:hover { border-color: var(--room-soft); } }
.x-input2:focus-visible { outline: none; border-color: var(--room-ink); box-shadow: 0 0 0 1px var(--room-ink); }
.x-input2[aria-invalid='true'] { border-color: var(--room-ink); border-style: dashed; }
.x-input2:disabled { background: var(--room-fill); color: var(--room-faint); cursor: not-allowed; }
.x-field-msg { font-size: 13px; color: var(--room-soft); min-height: 1.3em; }
/* ---------- cookie notice: Reject all and Accept all at equal weight ---------- */
.x-cookie .x-cookie-more { border-color: transparent; background: none; color: var(--soft); }
@media (max-width: 640px) { .x-cookie div { flex-wrap: wrap; } .x-cookie .x-btn { flex: 1; } .x-cookie .x-cookie-more { flex-basis: 100%; } }
/* ---------- Hanzo's footer: the "Privacy choices" toggle icon in ink, not blue (0 UI hues, MASTER 3.1) ---------- */
footer a[href='#choices'] svg path[fill='#0072CE'] { fill: currentColor; }
footer a[href='#choices'] svg path:not([fill='#0072CE']) { fill: var(--background, #fff); }
/* ---------- utilities ---------- */
.x-tnum { font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }
.x-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* long sections far below the fold skip layout and paint until they near the screen; give the expected height */
.x-cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.x-ratio { position: relative; aspect-ratio: var(--ratio, 16 / 9); overflow: hidden; }
.x-ratio > img, .x-ratio > video, .x-ratio > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.x-media { display: block; max-width: 100%; height: auto; background: var(--room-fill); }
/* ---------- Hanzo's header: its ask is the one solid ask at every width (MASTER 3.2 rule 6); it never fades.
On desktop it carries the page's own ask after the hero (components/Ask.jsx), and is an outline only while the
hero's own solid ask is on screen. ---------- */
header[data-slot=masthead] a[data-x-ask], header[data-slot=masthead] a[href='https://hanzo.ai/signup'] { transition: background-color var(--dur-hover) var(--ease-soft), color var(--dur-hover) var(--ease-soft), box-shadow var(--dur-hover) var(--ease-soft), transform var(--dur-press) var(--ease-out-expo); }
html[data-ask=quiet] header[data-slot=masthead] a[data-x-ask] { background-color: transparent; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border, rgba(0, 0, 0, .14)); }
header[data-slot=masthead] a[data-x-ask] { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { header[data-slot=masthead] a[data-x-ask]:hover, header[data-slot=masthead] a[href='https://hanzo.ai/signup']:hover { opacity: 1 !important; background-color: color-mix(in srgb, var(--foreground) 84%, var(--background)); } }
header[data-slot=masthead] a[data-x-ask]:active, header[data-slot=masthead] :is(button, a):active { transform: scale(.97); }
/* ---------- header menus: the stage (a preview of the link under the pointer) and the phone sheet ---------- */
.x-nav-panel { display: flex; align-items: stretch; background: var(--x-raised); } /* opaque: nothing of the page shows through */
.x-nav-grid { flex: 1; min-width: 0; }
.x-nav-stage { display: none; }
@media (min-width: 1240px) {
.x-nav-stage { position: relative; display: flex; flex-direction: column; justify-content: flex-end; flex: none; width: 320px; margin: 20px 24px 28px 0; padding: 22px; border-radius: 20px; background: var(--hz-50); color: var(--hz-950); overflow: hidden; }
.x-nav-sigil { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(10, 10, 11, .22); }
.x-nav-stage-t { position: relative; display: flex; flex-direction: column; gap: 6px; }
.x-nav-stage-t b { font-size: 20px; font-weight: 560; letter-spacing: -.02em; line-height: 1.15; }
.x-nav-stage-t p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--hz-500); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.x-nav-stage-t span { font: 500 11.5px/1.2 var(--mono); color: var(--hz-400); overflow-wrap: anywhere; }
/* dark mode: the menu's feature card on Hanzo's dark muted surface */
html:not(.light) .x-nav-stage { background: var(--muted); color: var(--foreground); }
html:not(.light) .x-nav-stage-t p { color: var(--muted-foreground); } html:not(.light) .x-nav-stage-t span { color: var(--text-tertiary); }
}
.x-sheet { display: flex; flex-direction: column; height: 100dvh; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); }
.x-sheet-top { display: flex; align-items: center; gap: 4px; height: 68px; flex: none; }
.x-sheet-home { font: 600 21px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); text-decoration: none; margin-right: auto; }
.x-sheet-s { width: 44px; height: 44px; margin-right: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--x-raised); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.x-sheet-x { top: 12px !important; width: 44px !important; height: 44px !important; }
.x-sheet-list { flex: 1 0 auto; }
.x-sheet-b { min-height: 56px; }
.x-sheet-foot { flex: none; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.x-sheet-lh { margin: 0 0 -4px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.x-sheet-login { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.x-sheet-login a { display: flex; flex-direction: column; gap: 3px; min-height: 56px; justify-content: center; padding: 10px 14px; border-radius: 14px; background: var(--hz-50); color: var(--ink); text-decoration: none; }
.x-sheet-login b { font-size: 15px; font-weight: 560; }
.x-sheet-login span { font-size: 12.5px; color: var(--soft); }
.x-sheet-ask { width: 100%; }
/* ---------- sound toggle (components/Sound.jsx): in Hanzo's header, before the language button ---------- */
/* ---------- the phone ask (components/Ask.jsx): slim and quiet, phones only, only where it covers nothing ---------- */
.x-ask { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: var(--x-z-ask); height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-radius: var(--x-radius-pill); background: var(--room-raised); color: var(--room-ink); border: 1px solid var(--room-line); box-shadow: 0 10px 28px -16px rgba(0, 0, 0, .35); font: 500 15px/1 var(--sans); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.x-ask[data-tone=dark] { background: #171717; color: #fafafa; border-color: rgba(255, 255, 255, .14); }
.x-ask i { font-style: normal; transition: transform var(--dur-hover) var(--ease-out-expo); }
.x-ask:active { transform: scale(.98); }
.x-ask:active i { transform: translateX(3px); }
@media (min-width: 701px) { .x-ask { display: none; } }
/* ---------- reduced motion: final states, no travel ---------- */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
.x-skel::after { display: none; }
.x-btn[aria-busy='true']::after { animation: x-turn 1.6s linear infinite !important; } /* a loading ring is information, not decoration */
}