Files
Claude 4cbacdc4ea models, enso: dark mode on Hanzo's tokens (and shared fixes found on the way)
/models and /enso (cherry-picked onto this branch from claude/owner-ga-fixes-544845, where the
conductor confirmed copycheck missing 0 live) now read in dark: the page palettes (.xmo, Launch,
Enso, ModelCards) point at @hanzo/design tokens under html:not(.light); the "Use it now" button,
the code panel's live dot, caret and tab, and the switchboard's lit pills stay white on black in
both modes, as designed. darkcheck: /enso 0; /models 4, all a sibling fill behind selected chips or
the code panel's white tab (checked by eye).

Shared fixes: the .x-band / .x-modal solid buttons and the lit lane stay #f5f5f7 on black; dark
contexts written as [data-room='dark'] or .w2-dark/.lx-dark are left alone; white chips with fixed
dark text (selected .mb-chip, the pause buttons, sheet close buttons, segmented pills) keep their
white so their text stays readable.

Bright mode: lightcheck 0 diffs on /enso /kai /iro /payments /dev /api / vs 3c802582 (/models' one
diff is the earlier "11 ยท Suites won" line). 0 console errors, no sideways scroll at 1470x801 and
375x812 in both modes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P5YBdxPteCvBL7f74SauJt
2026-11-08 11:23:40 +00:00

81 lines
7.1 KiB
CSS

/* v2 type, space and material for the Business 2 pages (w2- prefix). Usage: import '../../v2/Scale.css' (or via any
w2 component) and use the classes below. JAMES.md: 0 UI hues, so --acc is ink (silver in a dark room); colour comes
only from Hanzo's own media. No eyebrow above any headline: .w2-kicker is a mono meta line that sits below or beside.
Values: Display 128/96/80 (56/48 phone), Headline 56/36, Title 28, Lede 24/21, Body 19/17, meta mono 13. */
.w2 { --acc: #0a0a0b; --acc-ink: #fff; --faint: #6e6e73; --soft: #48484a; --shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 60px -24px rgba(0, 0, 0, .22), 0 60px 140px -60px rgba(0, 0, 0, .18); }
.w2-wrap { width: min(100% - 48px, 1440px); margin-inline: auto; }
.w2-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.w2-sec { position: relative; padding: clamp(120px, 15vw, 240px) 0; }
.w2-sec.tight { padding: clamp(96px, 10vw, 160px) 0; }
.w2-display { margin: 0; font-size: clamp(56px, 8.9vw, 128px); font-weight: 600; line-height: .92; letter-spacing: -.05em; text-wrap: balance; }
.w2-display.m { font-size: clamp(48px, 6.67vw, 96px); }
.w2-display.s { font-size: clamp(44px, 5.6vw, 80px); }
.w2-headline { margin: 0; font-size: clamp(36px, 3.9vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -.042em; text-wrap: balance; max-width: 18ch; }
.w2-title { margin: 0; font-size: clamp(22px, 1.95vw, 28px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.w2-lede { margin: 0; font-size: clamp(19px, 1.67vw, 24px); line-height: 1.42; letter-spacing: -.012em; color: var(--soft); max-width: 46ch; text-wrap: pretty; }
.w2-body { margin: 0; font-size: clamp(17px, 1.32vw, 19px); line-height: 1.6; color: var(--soft); max-width: 64ch; text-wrap: pretty; }
.w2-body + .w2-body { margin-top: 1em; }
.w2-body strong, .w2-body em, .w2-lede strong { color: var(--ink); font-weight: 560; font-style: normal; }
.w2-body a, .w2-lede a { color: var(--ink); text-underline-offset: 3px; }
.w2-kicker { margin: 0; font: 500 13px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.w2-kicker.acc { color: var(--ink); }
.w2-fig { font-family: var(--mono); font-feature-settings: 'tnum'; font-weight: 400; letter-spacing: -.04em; }
/* material: hero objects 28px, cards 16px, hairlines, soft long shadows (no glass) */
.w2-object { border-radius: 28px; background: var(--x-raised); box-shadow: var(--shadow); border: 1px solid rgba(0, 0, 0, .06); }
.w2-card { border-radius: 16px; background: var(--card); border: 1px solid rgba(0, 0, 0, .04); }
.w2-rule { height: 1px; background: var(--line); border: 0; margin: 0; }
/* the one dark room */
.w2-dark { background: #050506; color: #f5f5f7; --soft: #a1a1a6; --faint: #86868b; --line: rgba(255, 255, 255, .1); --card: #111113; --acc: #f5f5f7; --acc-ink: #0a0a0b; }
.w2-dark :is(h1, h2, h3, h4) { color: #f5f5f7; }
.w2-dark .w2-object { background: #0e0e10; border-color: rgba(255, 255, 255, .08); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9); }
/* the primary button: ink pill, magnetic in the page */
.w2-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 30px; border: 0; border-radius: 999px; background: #0a0a0b; color: #fff; font: 500 17px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: background var(--dur-hover, .2s) var(--ease), transform var(--dur-press, .1s) var(--ease); touch-action: manipulation; }
.w2-cta i { font-style: normal; transition: transform .3s var(--ease); }
.w2-cta:active { transform: scale(.98); }
.w2-cta.acc { background: #0a0a0b; color: #fff; }
.w2-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .16); color: var(--ink); font: 500 17px/1 var(--sans); text-decoration: none; background: transparent; cursor: pointer; transition: border-color var(--dur-hover, .2s), background var(--dur-hover, .2s), transform var(--dur-press, .1s) var(--ease); touch-action: manipulation; }
.w2-ghost:active { transform: scale(.98); }
@media (hover: hover) {
.w2-cta:hover { background: #2c2c2e; }
.w2-cta:hover i { transform: translateX(3px); }
.w2-ghost:hover { border-color: var(--ink); background: rgba(0, 0, 0, .04); }
.w2-dark .w2-cta:hover { background: #fff; }
.w2-dark .w2-ghost:hover { border-color: #f5f5f7; background: rgba(255, 255, 255, .06); }
}
.w2-cta[disabled], .w2-ghost[disabled] { opacity: .35; cursor: default; transform: none; }
.w2-dark .w2-cta, .w2-dark .w2-cta.acc { background: #f5f5f7; color: #0a0a0b; }
.w2-dark .w2-ghost { color: #f5f5f7; border-color: rgba(255, 255, 255, .24); }
.w2-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font: 500 13px/1 var(--mono); letter-spacing: .02em; white-space: nowrap; background: var(--card); color: var(--ink); }
.w2-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.w2-pill.live { background: #0a0a0b; color: #fff; }
.w2-pill.dev { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.w2-pill.dev::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
@media (max-width: 900px) {
.w2-wrap { width: min(100% - 32px, 1440px); }
.w2-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.w2-grid > * { grid-column: 1 / -1 !important; }
.w2-sec { padding: 120px 0; }
.w2-sec.tight { padding: 88px 0; }
.w2-kicker, .w2-pill { font-size: 14px; }
/* phone floor: no readable text under 14px (decorative, aria-hidden product UI excepted) */
.w2 .w2-pin-meta, .w2 .w2-oc-k, .w2 .x-copy-t, .w2 .cf-code-k, .w2 .cf-paste-k { font-size: 14px; }
.w2-cta, .w2-ghost { height: 52px; }
}
/* pause control for a self-running demo (WCAG 2.2.2): icon only, 44px */
.w2-pause { position: absolute; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0a0a0b; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 16px -8px rgba(0, 0, 0, .3); cursor: pointer; transition: transform var(--dur-press, .1s) var(--ease), background .2s; }
.w2-pause:active { transform: scale(.94); }
@media (hover: hover) { .w2-pause:hover { background: var(--x-raised); } }
.w2-dark .w2-pause { background: rgba(28, 28, 30, .92); color: #f5f5f7; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
/* a selected segment or filter is a white thumb on a grey track (never a second solid button) */
.w2-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: #ececf0; }
.w2-seg > button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--soft); font: 500 15px/1 var(--sans); cursor: pointer; transition: background .25s var(--ease), color .25s, box-shadow .25s; }
.w2-seg > button[aria-selected='true'], .w2-seg > button[aria-checked='true'], .w2-seg > button[aria-pressed='true'] { background: #fff; color: #0a0a0b; box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .06); }