Files

400 lines
36 KiB
CSS

/* Help article (prefix xhp-), on Hanzo's deck: calm and precise, neutrals only, no dark room, deck sizes and motion
tokens. The settings panel is a flat quiet tile (no shadow, no outline); only the drawn app window inside it is outlined. */
.xhp {
--ink: #0a0a0a; --body: #262626; --muted: #525252; --quiet: #737373; --hair: rgba(0, 0, 0, .1);
--tile: #f5f5f5; --tile-2: #ededed; --track: #d4d4d4;
--d-press: 90ms; --d-fast: 150ms; --d-base: 300ms; --d-slow: 400ms; --d-slower: 500ms;
--e-out: cubic-bezier(0, 0, .2, 1); --e-io: cubic-bezier(.4, 0, .2, 1); --e-em: cubic-bezier(.16, 1, .3, 1);
--gutter: clamp(16px, 4vw, 32px); --pad: clamp(72px, 11vw, 188px);
padding: clamp(44px, 6vw, 96px) 0 0;
}
.xhp-g { width: min(100% - 2 * var(--gutter), 1152px); margin-inline: auto; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); column-gap: 17px; align-items: start; }
.xhp-hero { grid-column: 1 / span 8; grid-row: 1; }
/* the panel stops 56px short of the closing band (its margin box is what sticky keeps inside the grid) */
.xhp-aside { grid-column: 9 / span 5; grid-row: 1 / span 2; align-self: start; position: sticky; top: calc(var(--x-top, 60px) + 27px); max-height: calc(100svh - var(--x-top, 60px) - 59px); margin-bottom: 56px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; border-radius: 24px; }
.xhp-doc { grid-column: 1 / span 7; grid-row: 2; padding-bottom: clamp(72px, 8vw, 116px); }
/* the breadcrumb, the question, the answer in one line, the topic under it, and the index */
.xhp-crumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.xhp-crumb li { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; }
/* the separator trails the item before it, so a wrapped line never starts with a lone slash */
.xhp-crumb li:not(:last-child)::after { content: '/'; margin-left: 10px; color: var(--quiet); }
.xhp-crumb li[aria-current] span { display: inline-block; padding: 12px 0; line-height: 1.45; }
.xhp-crumb a { color: var(--ink); text-decoration: underline; text-decoration-color: light-dark(rgba(0, 0, 0, .3), var(--border-selected)); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-underline-offset var(--d-fast) var(--e-out), text-decoration-color var(--d-fast) var(--e-out); }
.xhp-h1 { margin: 27px 0 0; max-width: 18ch; font-size: 52px; font-weight: 497; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
/* the question cuts into its line from the first paint (CSS, no wait for scripts); it starts mostly in view, never an empty slot */
.xhp-h1-in { animation: xhp-cut 700ms var(--e-em) 40ms both; }
@keyframes xhp-cut { from { transform: translateY(38%); } }
.xhp-lede { margin: 27px 0 0; max-width: 44ch; font-size: 21px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.xhp-kick { margin: 17px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
.xhp-toc { margin-top: 72px; max-width: 64ch; }
.xhp-toc-h { margin: 0 0 10px; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
.xhp-toc ol { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair); }
/* the hairlines sit on the text column; only the hover fill reaches past it */
.xhp-toc li { border-top: 1px solid var(--hair); }
.xhp-toc a { display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; min-height: 48px; margin: 0 -10px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 16px; transition: background-color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out); }
.xhp-toc a .x-mono { font-size: 12px; color: var(--quiet); transition: color var(--d-fast) var(--e-out); }
.xhp-toc a span:nth-child(2) { transition: transform var(--d-base) var(--e-out); }
.xhp-toc-go { opacity: 0; transform: translateY(-6px); transition: opacity var(--d-fast) var(--e-out), transform var(--d-base) var(--e-em); }
.xhp-toc a:focus-visible .x-mono { color: var(--ink); }
.xhp-toc a:focus-visible .xhp-toc-go { opacity: 1; transform: none; }
.xhp-toc a:active { transform: translateY(1px); transition-duration: var(--d-press); }
/* the document */
.xhp-sec { padding-top: clamp(56px, 6vw, 88px); scroll-margin-top: 27px; outline: none; }
.xhp-h2 { position: relative; margin: 0 0 27px; padding-left: 44px; font-size: 26px; font-weight: 497; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.xhp-sec-n { position: absolute; left: 0; top: .55em; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--quiet); }
.xhp-p { margin: 0 0 17px; max-width: 62ch; font-size: 16px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.xhp-p strong, .xhp-flow strong { font-weight: 606; color: var(--ink); }
.xhp-a { display: inline; margin: 0 -2px; padding: 0 2px; border-radius: 4px; color: var(--ink); text-decoration: underline; text-decoration-color: light-dark(rgba(0, 0, 0, .35), var(--border-selected)); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-underline-offset var(--d-fast) var(--e-out), text-decoration-color var(--d-fast) var(--e-out), background-color var(--d-fast) var(--e-out); }
.xhp-a:active { text-decoration-thickness: 2px; }
.xhp-h3 { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
.xhp-ol { margin: 0 0 17px; padding-left: 1.4em; font-size: 16px; line-height: 1.65; }
/* a platform's steps: an outlined card; each step shows itself in the panel */
.xhp-flows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 27px; }
.xhp-flow { padding: 10px; border-radius: 16px; background: var(--tile); transition: background-color var(--d-base) var(--e-out); }
.xhp-flow .xhp-h3 { margin: 0 0 4px; }
/* the platform heading fits one line: 11px mono capitals with tighter tracking (never shortened) */
.xhp-flow .xhp-h3 { font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
.xhp-flow-tab { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--quiet); font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; transition: color var(--d-fast) var(--e-out), background-color var(--d-fast) var(--e-out); }
.xhp-flow-tab::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; transition: background-color var(--d-base) var(--e-out); }
.xhp-flow[data-on] .xhp-flow-tab { color: var(--ink); }
.xhp-flow[data-on] .xhp-flow-tab::before { background: var(--ink); }
.xhp-flow-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.xhp-flow ol { list-style: none; margin: 0; padding: 0; }
.xhp-flow li button { display: grid; grid-template-columns: 32px 1fr; align-items: baseline; width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: 16px/1.45 var(--sans); text-align: left; cursor: pointer; transition: background-color var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out); }
.xhp-flow li[data-on] button { color: var(--ink); background: var(--x-knob); }
.xhp-step-n { font-size: 12px; color: var(--quiet); transition: color var(--d-fast) var(--e-out); }
.xhp-flow li[data-on] .xhp-step-n { color: var(--ink); }
.xhp-flow li button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.xhp-flow li button:active, .xhp-seg button:active, .xhp-try-b:active, .xhp-flow-tab:active { transform: scale(.98); transition-duration: var(--d-press); }
/* lists: what changes (ink dashes) and what does not (bold lead | answer) */
.xhp-ul { list-style: none; margin: 0 0 17px; padding: 0; max-width: 62ch; border-bottom: 1px solid var(--hair); }
.xhp-ul li { position: relative; padding: 17px 0 17px 27px; border-top: 1px solid var(--hair); font-size: 16px; line-height: 1.6; color: var(--body); transition: background-color var(--d-base) var(--e-out); }
.xhp-ul li::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--e-io) calc(var(--i, 0) * 120ms); }
.xhp-sec[data-seen] .xhp-ul li::after { transform: scaleX(1); }
.xhp-ul li::before { content: ''; position: absolute; left: 0; top: 29px; width: 12px; height: 1px; background: var(--ink); }
/* the rows' fill reaches 10px past the text, but every hairline sits on the text column edge */
.xhp-ul.leads { margin-inline: -10px; max-width: calc(62ch + 20px); border-bottom: 0; background: linear-gradient(var(--hair), var(--hair)) 10px 100% / calc(100% - 20px) 1px no-repeat; }
.xhp-ul.leads li { display: grid; grid-template-columns: minmax(0, 15ch) minmax(0, 1fr); gap: 17px; padding-inline: 10px; border-top: 0; border-radius: 8px; background-image: linear-gradient(var(--hair), var(--hair)); background-position: 10px 0; background-size: calc(100% - 20px) 1px; background-repeat: no-repeat; }
.xhp-ul.leads li::after { left: 10px; right: 10px; }
.xhp-ul.leads li[data-on] { background-color: var(--tile); }
.xhp-ul.leads li::before { display: none; }
.xhp-lead { font-size: 16px; font-weight: 606; line-height: 1.5; color: var(--ink); }
/* the panel: Hanzo's settings, drawn on a flat quiet tile; the hand walks the steps */
.xhp-panel { border-radius: 24px; background: var(--tile); overflow: hidden; }
.xhp-panel-bar { display: flex; align-items: center; gap: 6px; padding: 10px; }
.xhp-pause { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out); }
.xhp-pause:active { transform: scale(.98); transition-duration: var(--d-press); }
.xhp-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.xhp-pause[aria-pressed='true'] { background: var(--tile-2); }
.xhp-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--tile-2); max-width: 100%; }
.xhp-seg button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background-color var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out); }
.xhp-seg button[aria-checked='true'] { background: var(--x-knob); color: var(--ink); }
.xhp-seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.xhp-stage { position: relative; height: clamp(240px, min(24vw, 32svh), 320px); overflow: hidden; touch-action: pan-y; }
.xhp-screen { position: absolute; inset: 0 10px; font-size: 13px; color: var(--ink); }
.xhp-app, .xhp-set { position: absolute; inset: 0; overflow: hidden; border-radius: 16px; background: var(--x-raised); box-shadow: 0 0 0 1px var(--hair); }
.xhp-top { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px; border-bottom: 1px solid var(--hair); }
.xhp-dots { display: flex; gap: 6px; }
.xhp-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--tile-2); }
.xhp-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tile-2); color: light-dark(#404040, var(--muted-foreground)); }
.xhp-chat { display: flex; flex-direction: column; gap: 12px; padding: 17px 16px; }
.xhp-chat i, .xhp-menu i, .xhp-nav i, .xhp-skel i { display: block; height: 8px; border-radius: 4px; background: var(--tile-2); }
.xhp-chat { overflow: hidden; }
.xhp-chat i { max-width: 100%; }
.xhp-chat i:nth-child(1) { width: 62%; } .xhp-chat i:nth-child(2) { width: 44%; } .xhp-chat i:nth-child(3) { width: 78%; } .xhp-chat i:nth-child(4) { width: 56%; }
.xhp-chat i.me { align-self: flex-end; background: var(--track); }
.xhp-menu { position: absolute; top: 48px; right: 10px; width: 168px; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: var(--x-raised); box-shadow: 0 0 0 1px var(--hair), 0 24px 60px -16px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(-6px); transition: opacity var(--d-base) var(--e-em), transform var(--d-base) var(--e-em); pointer-events: none; }
.xhp-menu i { width: 70%; margin: 3px 8px; }
.xhp-item { display: block; padding: 6px 8px; border-radius: 8px; font-weight: 500; }
.xhp-screen[data-level='1'] .xhp-menu { opacity: 1; transform: none; }
.xhp-screen[data-level='1'] .xhp-menu .xhp-item { background: var(--tile); }
/* the next screen slides in opaque over the last one (300ms ease-emphasis): a slide, never a cross-fade, so two frames
never show through each other */
.xhp-set { display: grid; grid-template-columns: 38% 1fr; grid-template-rows: auto 1fr; transform: translateX(calc(100% + 12px)); visibility: hidden; transition: transform var(--d-base) var(--e-em), visibility 0s linear var(--d-base); pointer-events: none; }
.xhp-screen[data-level='2'] .xhp-set, .xhp-screen[data-level='3'] .xhp-set { transform: none; visibility: visible; transition: transform var(--d-base) var(--e-em), visibility 0s; pointer-events: auto; }
.xhp-set-h { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--hair); font-size: 14px; font-weight: 606; }
.xhp-nav { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-right: 1px solid var(--hair); }
.xhp-nav i { width: 64%; margin: 4px 8px; }
.xhp-nav .xhp-item { transition: background-color var(--d-base) var(--e-out); }
.xhp-nav .xhp-item[data-on] { background: var(--tile); }
.xhp-pane { padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.xhp-pane > * { opacity: 0; transform: translateY(6px); transition: opacity var(--d-base) var(--e-em), transform var(--d-base) var(--e-em); }
.xhp-screen[data-level='3'] .xhp-pane > * { opacity: 1; transform: none; }
.xhp-pane-h { margin: 0; font-size: 14px; font-weight: 606; }
.xhp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.xhp-row-t { font-weight: 500; line-height: 1.3; }
/* 01's scene: the setting itself, its row lit */
.xhp-row { border-radius: 6px; transition: background-color var(--d-base) var(--e-out); }
.xhp-row[data-on] { background: var(--tile); box-shadow: -8px 0 0 var(--tile), 8px 0 0 var(--tile); border-color: transparent; }
.xhp-skel { display: flex; justify-content: space-between; gap: 17px; }
.xhp-skel i:first-child { width: 58%; } .xhp-skel i:last-child { width: 18%; }
.xhp-sw { flex: none; position: relative; display: inline-block; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: var(--track); cursor: pointer; transition: background-color var(--d-base) var(--e-out); }
.xhp-sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: light-dark(#fff, var(--foreground)); transition: transform var(--d-base) var(--e-em); }
.xhp-sw[data-on] { background: var(--ink); }
.xhp-sw[data-on] i { transform: translateX(18px); }
.xhp-after { position: absolute; inset: 0 10px; width: calc(100% - 20px); height: 100%; padding: 17px; border-radius: 16px; background: var(--x-raised); box-shadow: 0 0 0 1px var(--hair); color: var(--ink); }
/* 04: the ledger of what the switch leaves alone, a cut over the screen (opaque, never a cross-fade) */
.xhp-ledger { position: absolute; inset: 0 10px; display: flex; flex-direction: column; gap: 6px; padding: 14px 17px; border-radius: 16px; background: var(--x-raised); box-shadow: 0 0 0 1px var(--hair); color: var(--ink); font-size: 14px; overflow: hidden; }
.xhp-ledger-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.xhp-ledger ul { list-style: none; margin: 0; padding: 0; display: grid; }
.xhp-ledger li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 8px; margin: 0 -8px; border-bottom: 1px solid var(--hair); border-radius: 6px; color: var(--muted); transition: background-color var(--d-base) var(--e-out), color var(--d-base) var(--e-out); }
.xhp-ledger li svg { flex: none; color: var(--quiet); transition: color var(--d-base) var(--e-out); }
.xhp-ledger li[data-on] { background: var(--tile); color: var(--ink); border-color: transparent; }
.xhp-ledger li[data-on] svg { color: var(--ink); }
.xhp-ledger .xhp-sw { cursor: default; }
.xhp-ledger-mini { position: relative; inset: auto; }
/* 01 on a phone: the switch alone, turning on once (the settings screen is drawn only in the demo at the top) */
.xhp-chip { display: flex; align-items: center; justify-content: space-between; gap: 17px; min-height: 64px; padding: 0 17px; border-radius: 16px; background: var(--tile); font-size: 16px; color: var(--ink); }
.xhp-chip .xhp-sw { cursor: default; }
.xhp-skel { padding: 4px 6px; margin: 0 -6px; border-radius: 6px; transition: background-color var(--d-base) var(--e-out); }
.xhp-skel[data-on] { background: var(--tile); }
.xhp-skel i { transition: background-color var(--d-base) var(--e-out); }
.xhp-skel[data-on] i:first-child { background: #a3a3a3; }
.xhp-hand { transition: opacity var(--d-base) var(--e-out); position: absolute; z-index: 5; top: 0; left: 0; margin: -2px 0 0 -2px; pointer-events: none; opacity: 0; }
.xhp-stage[data-mode='walk'] .xhp-hand[data-placed] { opacity: 1; }
.xhp-hand svg { display: block; }
/* a touch screen: a fingertip mark, not an arrow */
.xhp-tap { display: block; width: 22px; height: 22px; margin: -9px 0 0 -9px; border-radius: 50%; background: light-dark(rgba(10, 10, 10, .18), var(--glass-strong)); box-shadow: 0 0 0 1.5px light-dark(#0a0a0a, var(--foreground)), 0 0 0 3px light-dark(#fff, var(--background)); }
.xhp-hand[data-touch] .xhp-ring { left: -15px; top: -15px; }
.xhp-ring { position: absolute; left: -14px; top: -14px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); }
/* the phone: the same screens in a handset; the menu rises as a sheet, settings and the pane slide in turn */
.xhp-screen[data-device='phone'] { left: 50%; right: auto; width: 160px; transform: translateX(-50%); overflow: hidden; border-radius: 28px; padding: 6px; background: #0a0a0a; }
.xhp-screen[data-device='phone'] .xhp-app, .xhp-screen[data-device='phone'] .xhp-set { inset: 6px; border-radius: 22px; box-shadow: none; }
.xhp-screen[data-device='phone'] .xhp-dots { visibility: hidden; }
.xhp-screen[data-device='phone'] .xhp-menu { top: auto; bottom: 0; left: 0; right: 0; width: auto; border-radius: 16px 16px 22px 22px; box-shadow: 0 0 0 1px var(--hair); transform: translateY(100%); }
.xhp-screen[data-device='phone'][data-level='1'] .xhp-menu { transform: none; }
.xhp-screen[data-device='phone'] .xhp-set { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.xhp-screen[data-device='phone'] .xhp-nav { grid-row: 2; grid-column: 1; border: 0; }
.xhp-screen[data-device='phone'] .xhp-pane { grid-row: 2; grid-column: 1; background: var(--x-raised); transform: translateX(100%); transition: transform var(--d-slow) var(--e-em); }
.xhp-screen[data-device='phone'][data-level='3'] .xhp-pane { transform: none; }
.xhp-screen[data-device='phone'] .xhp-row { flex-direction: column; align-items: flex-start; }
.xhp-cap { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 17px; font-size: 14px; }
.xhp-cap-n { flex: none; font-size: 12px; color: var(--muted); }
/* two lines are always reserved, so a wrapping step never moves the card */
.xhp-cap-t { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 2.9em; line-height: 1.45; animation: xhp-in var(--d-base) var(--e-em); }
@keyframes xhp-in { from { opacity: 0; transform: translateY(6px); } }
/* the walk's last step, shown instead of the current one only by the reduced-motion rule below */
.xhp-cap-last { display: none !important; }
.xhp-cap-dots { display: flex; gap: 4px; }
.xhp-cap-dots i { width: 16px; height: 2px; border-radius: 2px; background: var(--track); transition: background-color var(--d-base) var(--e-out); }
.xhp-cap-dots i[data-on] { background: var(--ink); }
.xhp-try { padding: 10px 17px 17px; border-top: 1px solid var(--hair); }
.xhp-try-b { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 606 16px/1.3 var(--sans); text-align: left; cursor: pointer; transition: transform var(--d-fast) var(--e-out); }
.xhp-try-b:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }
.xhp-means { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.xhp-means p { margin: 0; }
/* Hanzo's on/off pair, always both, at one height; the half that holds now is in ink */
.xhp-pair span { color: var(--quiet); transition: color var(--d-base) var(--e-out); }
.xhp-pair span[data-cur] { color: var(--ink); }
.xhp-saved:not([data-show]) { visibility: hidden; }
.xhp-means-on, .xhp-means ul { animation: xhp-in var(--d-base) var(--e-em); }
.xhp-means-k { margin: 0 0 6px !important; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.xhp-means ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.xhp-means li { position: relative; padding-left: 17px; }
.xhp-means li::before { content: ''; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--ink); }
.xhp-saved { display: flex; align-items: center; gap: 8px; margin: 10px 0 0 !important; color: var(--ink); font-weight: 500; }
.xhp-saved .x-tick { flex: none; stroke: var(--ink); }
/* the close: the page's own last section, set as a quiet room that runs into the footer */
.xhp-close { margin-top: 0; background: var(--tile); }
.xhp-close .xhp-end { width: min(100% - 2 * var(--gutter), 1152px); margin-inline: auto; padding: clamp(72px, 8vw, 116px) 0; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); column-gap: 17px; align-items: end; }
.xhp-end .xhp-h2 { grid-column: 1 / span 5; margin: 0; font-size: 26px; }
.xhp-end .xhp-p { grid-column: 6 / span 8; margin: 0; max-width: 44ch; font-size: 21px; line-height: 1.5; color: var(--muted); }
.xhp-end .xhp-a { color: var(--ink); }
/* the next step: back to the help center, an ink row whose arrow travels on hover */
.xhp-next { grid-column: 6 / span 8; display: inline-flex; align-items: center; justify-content: space-between; gap: 17px; max-width: 44ch; min-height: 56px; margin-top: 27px; padding: 0 20px; border-radius: 999px; background: var(--x-raised); color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; transition: background-color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out); }
.xhp-next svg { transition: transform var(--d-base) var(--e-em); }
.xhp-next:active { transform: scale(.98); transition-duration: var(--d-press); }
.xhp-next:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* the phone's inline stages for 03 and 04 (the panel is beside the text only on wide screens) */
.xhp-mini { display: none; }
.xhp-mini .xhp-after { inset: 0; width: 100%; }
.xhp-mini-pane { flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--x-raised); box-shadow: 0 0 0 1px var(--hair); font-size: 13px; color: var(--ink); }
.xhp-mini-pane .xhp-row { flex-direction: row; }
.xhp-mini-pane .xhp-sw { cursor: default; }
@media (hover: hover) {
.xhp-toc a:hover { background: var(--tile); }
.xhp-a:hover { text-decoration-color: var(--ink); background: light-dark(rgba(0, 0, 0, .05), var(--glass)); }
.xhp-crumb a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; color: light-dark(#000, var(--text-primary)); }
.xhp-next:hover { background: var(--tile-2); }
.xhp-next:hover svg { transform: translateX(4px); }
.xhp-flow-tab:hover { color: var(--ink); background: light-dark(rgba(0, 0, 0, .04), var(--glass)); }
.xhp-ul li:hover { background-color: var(--tile); }
.xhp-crumb a:hover, .xhp-a:hover { text-underline-offset: 5px; }
.xhp-toc a:hover .x-mono { color: var(--ink); }
.xhp-toc a:hover span:nth-child(2) { transform: translateX(6px); }
.xhp-toc a:hover .xhp-toc-go { opacity: 1; transform: none; }
.xhp-close .xhp-a:hover { background: light-dark(rgba(0, 0, 0, .06), var(--glass-strong)); }
.xhp-flow li button:hover { color: var(--ink); background: var(--x-knob); }
.xhp-seg button:hover:not([aria-checked='true']) { color: var(--ink); background: light-dark(rgba(0, 0, 0, .05), var(--glass)); }
.xhp-pause:hover { background: var(--tile-2); }
/* the switch under the picture answers the pointer: its track darkens one step */
.xhp-try-b:hover .xhp-sw { background: #a3a3a3; }
.xhp-try-b:hover .xhp-sw[data-on] { background: light-dark(#262626, var(--primary-hover)); }
}
/* until the page is live both platforms are drawn: wide screens show the web and desktop app, phones the phone's own,
so "On mobile" is chosen from the first paint and nothing flips when the scripts arrive */
@media (min-width: 900px) {
.xhp[data-pre] .xhp-screen[data-pf='mobile'], .xhp[data-pre] .xhp-cap[data-pf='mobile'] { display: none; }
}
@media (max-width: 899px) {
.xhp[data-pre] .xhp-screen[data-pf='other'], .xhp[data-pre] .xhp-cap[data-pf='other'] { display: none; }
.xhp[data-pre] .xhp-seg button[data-pf='other'] { background: none; color: var(--muted); }
.xhp[data-pre] .xhp-seg button[data-pf='mobile'] { background: var(--x-knob); color: var(--ink); }
.xhp[data-pre] .xhp-flow[data-pf='other'] ol { display: none; }
.xhp[data-pre] .xhp-flow[data-pf='mobile'] ol { display: block; }
.xhp[data-pre] .xhp-flow[data-pf='other'] .xhp-flow-tab { background: none; color: var(--quiet); }
.xhp[data-pre] .xhp-flow[data-pf='mobile'] .xhp-flow-tab { background: var(--x-knob); color: var(--ink); }
.xhp[data-pre] .xhp-flow[data-pf='mobile'] li:first-child button { color: var(--ink); background: var(--x-knob); }
.xhp[data-pre] .xhp-flow[data-pf='mobile'] li:first-child .xhp-step-n { color: var(--ink); }
}
@media (max-width: 1199px) and (min-width: 900px) {
.xhp-flows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
.xhp { padding: 27px 0 0; } /* the closing band runs straight into the footer */
.xhp-g { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
/* the question, then the live panel, then the index and the document */
.xhp-hero { display: contents; }
.xhp-hero > *, .xhp-aside, .xhp-doc { grid-column: 1; grid-row: auto; }
/* the topic line stays with the lede it belongs to, never stranded between the demo and the index */
.xhp-crumb { order: 0; } .xhp-h1 { order: 1; } .xhp-lede { order: 2; } .xhp-kick { order: 3; } .xhp-aside { order: 4; } .xhp-toc { order: 5; } .xhp-doc { order: 6; }
.xhp-crumb ol { font-size: 13px; }
/* the h1 says the title right below, so the phone breadcrumb ends on the topic, with no trailing slash */
.xhp-crumb li[aria-current] { display: none; }
.xhp-crumb li:nth-last-child(2)::after { content: none; }
.xhp-crumb li:not(:first-child) { min-height: 32px; } /* only the link needs the 44px target */
.xhp-aside { position: relative; top: auto; margin-top: 27px; max-height: none; overflow: visible; }
.xhp-kick { margin-top: 10px; }
/* the two platforms' steps: their headings become tabs, one list at a time */
/* the longer platform takes the room it needs, the shorter one its own width, so neither label wraps */
.xhp-flows { grid-template-columns: minmax(0, 1fr) auto !important; gap: 0 6px; padding: 6px; border-radius: 16px; background: var(--tile); }
.xhp-flow { display: contents; }
.xhp-flow .xhp-h3 { grid-row: 1; min-width: 0; margin: 0 0 6px; }
.xhp-flow:nth-child(1) .xhp-h3 { grid-column: 1; } .xhp-flow:nth-child(2) .xhp-h3 { grid-column: 2; }
.xhp-flow .xhp-h3 { white-space: nowrap; }
.xhp-flow-tab { display: block; height: 100%; min-height: 44px; padding: 8px 10px; font: 500 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; text-align: center; white-space: nowrap; }
.xhp-flow[data-on] .xhp-flow-tab { background: var(--x-knob); }
.xhp-flow-tab::before { display: none; }
.xhp-flow ol { grid-row: 2; grid-column: 1 / -1; }
.xhp-flow:not([data-on]) ol { display: none; }
.xhp-close .xhp-end { grid-template-columns: minmax(0, 1fr); row-gap: 17px; padding: 72px 0; }
.xhp-end .xhp-h2, .xhp-end .xhp-p, .xhp-next { grid-column: 1; }
.xhp-next { margin-top: 10px; }
.xhp-mini { display: block; position: relative; height: 196px; margin: 0 0 27px; }
.xhp-mini.xhp-mini-auto { height: auto; }
.xhp-end .xhp-h2 { font-size: 26px; }
.xhp-end .xhp-p { font-size: 17px; }
/* phone: the rows' hairlines and their fill share one edge (the text column) */
.xhp-ul.leads { margin-inline: 0; max-width: none; background-position: 0 100%; background-size: 100% 1px; }
.xhp-ul.leads li { padding-inline: 0; border-radius: 0; background-position: 0 0; background-size: 100% 1px; }
.xhp-ul.leads li::after { left: 0; right: 0; }
.xhp-h1 { margin-top: 10px; font-size: 32px; line-height: 1.05; }
.xhp-lede { font-size: 17px; margin-top: 17px; }
.xhp-toc { margin-top: 44px; }
.xhp-panel { border-radius: 20px; }
.xhp-seg { display: flex; flex: 1; min-width: 0; }
/* both tabs fit on one line in Hanzo's full words: each takes its own width, tighter type and padding (never shortened) */
.xhp-seg button { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 8px; font-size: 13px; letter-spacing: -.01em; white-space: nowrap; }
/* the pause control sits in the stage's free corner (still first in the DOM), so the tabs have the bar's whole width */
.xhp-panel { position: relative; }
.xhp-pause { position: absolute; z-index: 6; left: 10px; top: 72px; background: var(--tile); }
.xhp-panel-bar { padding: 10px; }
/* the demo card stays near 60% of the screen; the handset is tall enough that its switch always shows whole */
.xhp-stage { height: 204px; }
.xhp-screen[data-device='phone'] .xhp-set-h { padding: 8px 10px; font-size: 13px; }
.xhp-screen[data-device='phone'] .xhp-pane { padding: 8px 10px; gap: 6px; }
.xhp-screen[data-device='phone'] .xhp-row { gap: 6px; padding: 6px 0; }
.xhp-screen[data-device='phone'] .xhp-row-t { font-size: 12px; line-height: 1.25; }
.xhp-screen[data-device='phone'] .xhp-pane-h { font-size: 13px; }
.xhp-cap { min-height: 0; padding: 6px 14px; }
.xhp-try { padding: 6px 14px 12px; }
.xhp-means { margin-top: 2px; font-size: 13px; }
.xhp-set { grid-template-columns: 40% 1fr; }
.xhp-sec { padding-top: 56px; }
.xhp-doc { padding-bottom: 72px; }
.xhp-h2 { padding-left: 36px; }
.xhp-ul.leads li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.xhp-ul li::before { top: 28px; }
}
@media (max-width: 359px) {
.xhp-cap-t { min-height: 4.35em; } /* the narrowest phones: a step can take three lines */
/* the narrowest phones: Hanzo's two full labels still share one row, in tighter type and padding (never shortened);
pause stays in the stage's corner, never on a row of its own */
.xhp-panel-bar { padding: 8px 6px; }
.xhp-seg { gap: 0; padding: 3px; }
.xhp-seg button { padding: 0 6px; font-size: 12px; letter-spacing: -.02em; }
.xhp-pause { top: 70px; }
.xhp-stage { height: 196px; }
.xhp-flow-tab { padding: 8px 8px; font-size: 12.5px; letter-spacing: -.01em; }
}
@media (prefers-reduced-motion: reduce) {
.xhp-hand { display: none; }
.xhp-menu, .xhp-set, .xhp-pane, .xhp-pane > *, .xhp-sw, .xhp-sw i, .xhp-ul li::after { transition: none !important; }
.xhp-ul li::after { transform: none; }
.xhp-cap-t, .xhp-means-on, .xhp-means ul, .xhp-after, .xhp-h1-in { animation: none; }
.xhp-toc-go, .xhp-toc a { transition: none; }
/* at rest (nothing pressed yet) the walk shows its last screen, by CSS alone: the Privacy pane with the setting, the
caption on the last step, every dot on. The scripts never change state for this, so nothing flips at hydration. */
.xhp-panel[data-rest] .xhp-menu { opacity: 0; }
.xhp-panel[data-rest] .xhp-set { transform: none; visibility: visible; }
.xhp-panel[data-rest] .xhp-pane > * { opacity: 1; transform: none; }
.xhp-panel[data-rest] .xhp-screen[data-device='phone'] .xhp-pane { transform: none; }
.xhp-panel[data-rest] .xhp-nav .xhp-item { background: var(--tile); }
.xhp-panel[data-rest] .xhp-cap-now { display: none; }
.xhp-panel[data-rest] .xhp-cap-n.xhp-cap-last { display: inline !important; }
.xhp-panel[data-rest] .xhp-cap-t.xhp-cap-last { display: flex !important; }
.xhp-panel[data-rest] .xhp-cap-dots[data-walk] i { background: var(--ink); }
}
/* 8 Nov (review round 6): the panel shows, the text says. One switch at a time (the panel's own steps aside while 01's
scene shows the setting); 04's rows are the checklist themselves; the phone mock clips inside its bezel; the demo
switch answers the pointer; the close reads as one unit */
.xhp-try[data-away] { display: none; } /* the panel sits in the sticky aside, so its height changing never moves the text */
/* the rows tick themselves on phones only: on the desktop the panel's ledger beside them already ticks them */
.xhp-row-tick { display: none; }
@media (max-width: 899px) { .xhp-row-tick { display: block; } .xhp-ul.leads li:has(.xhp-row-tick) { grid-template-columns: minmax(0, 15ch) minmax(0, 1fr) 16px; } }
.xhp-row-tick { align-self: start; margin-top: 5px; color: var(--ink); opacity: .2; transition: opacity var(--d-base) var(--e-out); }
.xhp-ul.leads li[data-on] .xhp-row-tick { opacity: 1; }
.xhp-screen[data-device='phone'] .xhp-set, .xhp-screen[data-device='phone'] .xhp-app { overflow: hidden; clip-path: inset(0 round 22px); }
@media (hover: hover) {
.xhp-screen .xhp-sw[data-t]:hover { background: #a3a3a3; }
.xhp-screen .xhp-sw[data-t][data-on]:hover { background: light-dark(#262626, var(--primary-hover)); }
.xhp-screen .xhp-sw[data-t]:hover i { transform: translateX(2px); }
.xhp-screen .xhp-sw[data-t][data-on]:hover i { transform: translateX(16px); }
}
.xhp-close .xhp-end .xhp-h2 { grid-row: 1 / span 2; align-self: end; }
@media (max-width: 899px) { .xhp-close .xhp-end .xhp-h2 { grid-row: auto; } }
@media (prefers-reduced-motion: reduce) { .xhp-row-tick { transition: none; } }
.xhp-screen .xhp-sw[data-t] { transition: background-color var(--d-base) var(--e-out), transform var(--d-fast) var(--e-out); }
.xhp-screen .xhp-sw[data-t]:active { transform: scale(.94); }
/* dark (docs/DARK-MODE.md): the article's own tokens point at Hanzo's dark ones. The page names its grey text --muted, which
hides Hanzo's --muted fill inside .xhp, so the parent hands that fill down first as --xhp-fill. */
html:not(.light) :has(> .xhp) { --xhp-fill: var(--muted); }
html:not(.light) .xhp {
--ink: var(--foreground); --body: var(--text-secondary); --muted: var(--muted-foreground); --quiet: var(--text-tertiary); --hair: var(--border);
--tile: var(--xhp-fill); --tile-2: var(--secondary); --track: var(--secondary-hover);
}
/* a switch that is on is Hanzo's primary pairing: the light fill, its knob in the primary's own foreground */
html:not(.light) .xhp-sw[data-on] { color: var(--primary-foreground); }
html:not(.light) .xhp-sw[data-on] i { background: currentColor; }
/* the drawn switch and conversations in section 03 (Motion writes their fills as attributes, which CSS outranks): the switch
off, its knob in ink, the ones before the marker filled in ink, the ones after hollow */
html:not(.light) .xhp-after rect { fill: var(--secondary-hover); }
html:not(.light) .xhp-after circle[r='10'] { fill: var(--foreground); }
html:not(.light) .xhp-after circle[r='9'] { stroke: var(--foreground); fill: var(--x-raised); }
html:not(.light) .xhp-after circle[r='9'][fill='#0a0a0a'] { fill: var(--foreground); }
/* inside the drawn windows (Hanzo's card, the same grey as the panel) a lit row or a skeleton bar takes the next rung up,
and the platform switch's chosen pill sits one rung above its track */
html:not(.light) .xhp-screen { --tile: var(--secondary); --tile-2: var(--secondary-hover); }
html:not(.light) .xhp-seg button[aria-checked='true'], html:not(.light) .xhp[data-pre] .xhp-seg button[data-pf='mobile'] { background: var(--secondary-hover); }