Files
Claude 6738f13977 dark tokens: /design, /desktop, /download, /api, /sms-opt-in, /buying-specialist, /dns, /risk, /registry, /kai, /enso
- /design, /desktop, /download, /api: the shared app-page stylesheet paints the page
  white with no dark rules; each page now maps it to Hanzo's dark tokens
  (--bg, --ink, --soft, --faint, --line), as /bot and /chrome already do.
- /api, /sms-opt-in, /buying-specialist: white diagram cards, chips, phone screen and
  composer now sit on --x-raised / --card / --muted with --border edges.
- /dns, /risk, /registry: captions on ink fills (light in dark) use --primary-foreground.
- /kai: the light model card uses --muted in dark.
- /enso: the particle ring was drawn on a canvas in a fixed #0a0a0a, invisible in dark.
  It now reads --eo-ink, which only dark sets (var(--foreground)); light still draws #0a0a0a.
Every CSS rule is under html:not(.light): light mode is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
2026-11-08 14:05:13 +00:00

167 lines
14 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ---------- sms opt-in (v2) ---------- */
.xsm { --xp-accent: #525252; }
.xsm-hero { padding: clamp(40px, 6vw, 96px) 0 clamp(120px, 14vw, 220px); }
.xsm-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: 'words side' 'card side'; column-gap: clamp(40px, 7vw, 128px); align-items: start; }
.xsm-words { grid-area: words; }
.xsm-card { grid-area: card; }
.xsm-side { grid-area: side; }
.xsm-cap { margin: 16px 0 0; }
.xsm-lede { margin-top: 24px; max-width: 40ch; }
.xsm-card { position: relative; margin-top: 56px; max-width: 640px; }
.xsm-form { position: relative; display: grid; gap: 28px; }
.xsm-f { display: grid; gap: 12px; }
.xsm-f label { font: 497 16px/1.3 var(--sans); }
.xsm-f .x-input2 { width: 100%; box-sizing: border-box; height: 56px; border-radius: 12px; font: 400 21px/1 var(--mono); letter-spacing: .02em; }
.xsm-f .x-field-msg:empty { display: none; }
.xsm-parts { display: flex; flex-wrap: wrap; gap: 8px; }
.xsm-parts button { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 14px/1 var(--mono); letter-spacing: .02em; color: var(--soft); cursor: pointer; transition: color .15s, background .15s, border-color .15s, transform 90ms; }
.xsm-parts button[aria-pressed='true'] { color: #fff; background: #0a0a0a; border-color: #0a0a0a; }
@media (hover: hover) { .xsm-parts button:hover { color: #fff; background: #0a0a0a; border-color: #0a0a0a; } }
.xsm-parts button:focus-visible { outline: 2px solid var(--xp-accent); outline-offset: 2px; }
.xsm-parts button:active { transform: scale(.97); }
.xsm-agree { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 14px; cursor: pointer; }
.xsm-agree input { position: absolute; left: 0; top: 2px; width: 26px; height: 26px; margin: 0; opacity: 0; cursor: pointer; }
.xsm-box { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 2px; border-radius: 8px; border: 1.5px solid rgba(0, 0, 0, .3); background: #fff; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.xsm-agree input:checked + .xsm-box { background: var(--xp-accent); border-color: var(--xp-accent); color: #fff; }
.xsm-agree input:focus-visible + .xsm-box { outline: 2px solid var(--xp-accent); outline-offset: 3px; }
.xsm-agree:hover .xsm-box { border-color: var(--xp-accent); }
.xsm-consent { font-size: 16px; line-height: 1.65; color: var(--soft); }
.xsm-consent span { border-radius: 4px; transition: background .25s, color .25s, box-shadow .25s; }
.xsm-consent span.lit { background: rgba(82, 82, 82, .12); color: var(--ink); box-shadow: 0 0 0 3px rgba(82, 82, 82, .12); }
.xsm-go { width: 100%; height: 48px; }
.xsm-fine { margin: 0; font-size: 14px; line-height: 1.6; color: var(--faint); }
.xsm-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--xp-accent); }
.xsm-done { position: relative; display: grid; justify-items: start; gap: 18px; padding: clamp(28px, 3.2vw, 48px); border-radius: 24px; background: var(--card); outline: none; }
.xsm-done .x-tick { stroke: var(--xp-accent); }
.xsm-done p { margin: 0; max-width: 44ch; font-size: 17px; line-height: 1.55; color: var(--soft); }
/* the phone */
.xsm-side { position: sticky; top: 96px; align-self: start; display: flex; justify-content: center; }
.xsm-phone { width: min(100%, 380px); aspect-ratio: 9 / 19; padding: 12px; border-radius: 52px; background: #0a0a0a; }
.xsm-screen { position: relative; height: 100%; border-radius: 41px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.xsm-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0; font-size: 13px; font-weight: 600; }
.xsm-bar i { width: 22px; height: 10px; border-radius: 3px; border: 1.5px solid var(--ink); }
.xsm-to { display: flex; gap: 10px; align-items: baseline; margin: 18px 16px 0; padding: 0 0 12px; border-bottom: 1px solid var(--line); font-size: 14px; transition: background .25s; border-radius: 6px; }
.xsm-to.lit { background: rgba(82, 82, 82, .12); }
.xsm-to span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.xsm-to b { font: 500 14px/1.2 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xsm-from { display: flex; align-items: center; gap: 8px; margin: 18px 16px 0; font-size: 13px; font-weight: 600; border-radius: 999px; transition: background .25s; }
.xsm-from.lit { background: rgba(82, 82, 82, .12); }
.xsm-av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--xp-accent); color: #fff; }
.xsm-msgs { list-style: none; margin: 12px 16px 0; padding: 0; display: grid; gap: 8px; }
.xsm-msgs li { justify-self: start; max-width: 86%; padding: 11px 15px; border-radius: 18px 18px 18px 6px; background: var(--card); font-size: 15px; line-height: 1.35; opacity: 0; transform: translateY(14px); animation: xsm-in .4s var(--xp-ease) forwards; animation-delay: calc(.8s + var(--i) * .6s); }
.xsm-msgs.lit li { background: rgba(82, 82, 82, .14); }
.xsm-msgs.done li { animation: none; opacity: 1; transform: none; }
.xsm-msgs li.xsm-ok { animation: none; opacity: 1; background: #0a0a0a; color: #fff; transform: none; }
/* the three kinds of text arrive once and rest */
@keyframes xsm-in { to { opacity: 1; transform: none; } }
.xsm-keys { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px 28px; background: #f2f2f4; }
.xsm-keys span { display: grid; place-items: center; height: 40px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font: 600 13px/1 var(--mono); letter-spacing: .08em; transition: background .25s, color .25s, transform .25s var(--xp-ease); }
.xsm-keys.lit span { background: #0a0a0a; color: #fff; }
@media (prefers-reduced-motion: reduce) { .xsm-msgs li { animation: none; opacity: 1; transform: none; } }
/* the dark room: three kinds of text, huge */
.xsm-bubbles { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2vw, 28px); }
.xsm-bubbles li { justify-self: start; max-width: 22ch; padding: 18px 28px; border-radius: 28px 28px 28px 8px; background: #262626; color: #a3a3a3; font: 497 26px/1.15 var(--sans); letter-spacing: -.02em; transition: font-size .4s var(--xp-ease), color .4s var(--xp-ease), background .4s var(--xp-ease), padding .4s var(--xp-ease); }
.xsm-bubbles li.on { font-size: 44px; padding: 24px 36px; color: #fafafa; background: #404040; }
.xsm-bubbles li.b1 { margin-left: 8%; }
.xsm-bubbles li.b2 { margin-left: 16%; }
.xsm-big-keys { margin-top: clamp(64px, 7vw, 112px); display: grid; grid-template-columns: repeat(2, minmax(0, 220px)) 1fr; gap: 16px 24px; align-items: center; }
.xsm-big-keys span { display: grid; place-items: center; height: 64px; border-radius: 16px; background: #fafafa; color: #0a0a0a; font-size: 17px; font-weight: 606; letter-spacing: .08em; }
.xsm-big-keys .xp-lede { margin-left: 24px; }
@media (max-width: 900px) {
.xsm-hero { padding: 32px 0 88px; }
.xsm-grid { grid-template-columns: 1fr; grid-template-areas: 'words' 'card' 'side'; }
.xsm-side { position: relative; top: 0; margin-top: 40px; max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.xsm-phone { width: 280px; }
.xsm-card { margin-top: 24px; }
.xsm-bar, .xsm-to span, .xsm-from, .xsm-msgs li, .xsm-keys span { font-size: 14px; }
.xsm-bubbles li { font-size: 21px; padding: 14px 20px; }
.xsm-bubbles li.on { font-size: 32px; padding: 18px 24px; }
.xsm-bubbles li.b1, .xsm-bubbles li.b2 { margin-left: 0; }
.xsm-big-keys { grid-template-columns: 1fr 1fr; }
.xsm-big-keys span { height: 56px; font-size: 16px; }
.xsm-big-keys .xp-lede { grid-column: 1 / -1; margin-left: 0; }
}
/* STOP and HELP are real keys: hover, press, and the half of the sentence they answer lights */
.xsm-big-keys button { display: grid; place-items: center; height: 64px; border: 0; border-radius: 16px; background: #fafafa; color: #0a0a0a; font-size: 17px; font-weight: 606; letter-spacing: .08em; cursor: pointer; transition: background .15s cubic-bezier(0, 0, .2, 1), transform 90ms cubic-bezier(0, 0, .2, 1); }
@media (hover: hover) { .xsm-big-keys button:hover { background: #e4e4e7; } }
.xsm-big-keys button:active { transform: scale(.97); }
.xsm-big-keys button[aria-pressed='true'] { background: #404040; color: #fafafa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.xsm-big-keys button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 5px #000; }
.xsm-big-keys .xp-lede span { display: inline; height: auto; place-items: initial; background: none; color: inherit; font: inherit; letter-spacing: inherit; border-radius: 4px; transition: color .25s cubic-bezier(0, 0, .2, 1), background .25s; }
.xsm-big-keys .xp-lede span.lit { color: #fafafa; background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 3px rgba(255, 255, 255, .14); }
/* the phone is as tall as its texts need (no empty half) */
.xsm-phone { aspect-ratio: 9 / 15; }
/* the submit: deck hover and a press */
@media (hover: hover) { .xsm .xsm-go:not(:disabled):hover { background: #262626; } }
.xsm .xsm-go:active { transform: scale(.97); }
@media (max-width: 899px) {
/* phones: the submit comes before the consent's part-chips, so the ask sits higher */
.xsm-form > * { order: 1; }
.xsm-form > .xsm-parts { order: 5; }
.xsm-form > .xsm-fine { order: 6; }
.xsm-consent { font-size: 15px; line-height: 1.55; }
}
/* the phone answers a refused send: its To line is marked like the field (a dashed ink outline) */
.xsm-to.fail { outline: 1.5px dashed var(--ink); outline-offset: 4px; }
/* the dark strip, at rest: three texts in one row at medium size, then the keys */
.xsm-kinds { padding-block: clamp(64px, 7vw, 112px) !important; }
.xsm-bubbles { display: flex !important; flex-wrap: wrap; gap: 10px; }
.xsm-bubbles li, .xsm-bubbles li.on { margin-left: 0 !important; max-width: none; padding: 14px 20px; font-size: 17px; color: #fafafa; background: #262626; transition: none; }
.xsm-big-keys { margin-top: clamp(32px, 4vw, 56px) !important; }
@media (max-width: 899px) {
/* phones: the part-chips sit between the field and the consent they read; the handset is a short crop */
.xsm-form > .xsm-parts { order: 1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
.xsm-form > .xsm-parts::-webkit-scrollbar { display: none; }
.xsm-form > .xsm-parts { scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.xsm-parts button { scroll-snap-align: start; }
.xsm-side { -webkit-mask-image: none !important; mask-image: none !important; max-height: none !important; }
.xsm-phone { width: 250px; }
.xsm-parts button { flex: none; }
.xsm-form { gap: 16px; }
.xsm-lede { margin-top: 14px; }
.xsm-card { margin-top: 18px; }
.xsm-hero { padding-top: 20px; }
.xsm-consent { font-size: 14px; line-height: 1.5; }
.xsm-side { max-height: 45svh; }
}
/* no dead white between the form and the dark room */
.xsm-hero { padding-bottom: clamp(64px, 7vw, 112px); }
/* a refused send says why, in words, beside the submit (the number stays in the field) */
.xsm-err i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12px/1 var(--sans); font-style: normal; vertical-align: -3px; }
.xsm-err { margin: -6px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; color: var(--ink) !important; font-weight: 500;
/* an inline alert under the submit, not a box (the rest below is the old box, overridden) */
margin: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .14); background: #f5f5f5; font-size: 14px; color: #404040; }
/* the phone's live clock */
.xsm-colon { font-style: normal; transition: opacity .15s cubic-bezier(0, 0, .2, 1); }
.xsm-colon.off { opacity: .3; }
/* the dark room's sender row: who the texts come from, as on the phone (not a label over a headline) */
.xsm-sender { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 16px; font-weight: 606; color: #fafafa; }
.xsm-sender .xsm-av { background: #fafafa; color: #000; }
@media (prefers-reduced-motion: reduce) { .xsm-colon.off { opacity: 1; } }
/* desktop: the h1, the form and its submit all fit the first screen at 1470×801 */
@media (min-width: 900px) {
.xsm-hero { padding-top: clamp(32px, 3.5vw, 56px); }
.xsm-card { margin-top: 32px; }
.xsm-form { gap: 20px; }
}
/* dark: the topic chips were white; raise them on Hanzo's card, and the pressed/hovered one takes the primary fill */
html:not(.light) .xsm-parts button { background: var(--x-raised); border-color: var(--border); color: var(--muted-foreground); }
html:not(.light) .xsm-parts button[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
@media (hover: hover) { html:not(.light) .xsm-parts button:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); } }
/* dark: the phone's screen was a white #fff surface under light type; it takes Hanzo's card surface (the bezel stays black),
with muted keys, secondary bubbles, and the lit/confirmed states on the primary fill; the consent box goes on the card */
html:not(.light) .xsm-screen { background: var(--card); }
html:not(.light) .xsm-keys { background: var(--muted); }
html:not(.light) .xsm-keys span { background: var(--x-raised); border-color: var(--border); }
html:not(.light) .xsm-keys.lit span, html:not(.light) .xsm-msgs li.xsm-ok { background: var(--primary); color: var(--primary-foreground); }
html:not(.light) .xsm-msgs li { background: var(--secondary); }
html:not(.light) .xsm-msgs.lit li { background: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
html:not(.light) .xsm-phone { box-shadow: 0 0 0 1px var(--border); }
html:not(.light) .xsm-box { background: var(--x-raised); border-color: var(--border-control, var(--border)); }