Files

194 lines
18 KiB
CSS

/* /contact-sales (prefix xcs-). Hanzo's deck only (MASTER.md 3.1): the neutral ramp, Book 497 headings, 48px buttons,
56px fields with 16px text, ease curves and no springs, flat surfaces (a fill or a hairline, never both with a shadow).
Tokens come from components/pages/company/deck.css on .vc. */
.xcs { overflow-x: clip; }
.xcs ::selection { background: rgba(0, 0, 0, .1); }
.xcs :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px #fff; }
.xcs .xcs-round:active, .xcs-size:active, .xcs-pick:active, .xcs-send:active { transform: scale(.98); }
/* Utility entries, 0.4s (MASTER 4.5), in CSS so JS off still shows every word; held while the arrival curtain is up */
.xcs-in { animation: xcs-in .4s var(--e-em) .3s both; }
.xcs-up { animation: xcs-up .4s var(--e-em) .15s both; }
html.x-arriving .xcs-in, html.x-arriving .xcs-up { animation-play-state: paused; }
@keyframes xcs-in { from { opacity: 0; } }
@keyframes xcs-up { from { opacity: 0; transform: translateY(24px); } }
/* 1. the question, one at a time, on a card set into a grey contour field that answers the form */
.xcs-hero { padding: 88px 0 64px; }
.xcs-hero-g { align-items: start; row-gap: 40px; }
.xcs-copy { grid-column: 1 / 7; grid-row: 1; align-self: end; display: flex; flex-direction: column; gap: 28px; }
.xcs-more { grid-column: 1 / 7; grid-row: 2; display: flex; flex-direction: column; gap: 24px; }
.xcs-routes { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 520px; }
.xcs-route { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 17px; }
.xcs-route .xcs-rv { display: inline-flex; font-weight: 606; transition: transform var(--d-base) var(--e-io); }
.xcs-route .xcs-rl { display: inline-block; color: var(--ink2); transition: color var(--d-fast) var(--e-out), transform var(--d-base) var(--e-em); }
@media (hover: hover) { .xcs-route:hover .xcs-rv { transform: translateX(-6px); } .xcs-route:hover .xcs-rl { color: var(--ink); transform: translateX(6px); } }
.xcs-alt { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink2); max-width: 520px; }
.xcs-ai { font-weight: 606; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; transition: text-underline-offset var(--d-base) var(--e-out); }
@media (hover: hover) { .xcs-ai:hover { text-decoration-thickness: 2px; text-underline-offset: 6px; } }
.xcs-ai:active { transform: translateY(1px); }
/* the stage fills the hero's height, so the contour field shows around and below a card sized to its one question */
.xcs-stagewrap { grid-column: 7 / 13; grid-row: 1 / span 2; align-self: stretch; position: relative; padding: 40px 40px 40px clamp(72px, 9vw, 116px); border-radius: 28px; overflow: hidden; background: var(--quiet); }
.xcs-field { position: absolute; inset: 0; }
/* the field in ink: its lines draw at 16-38% (the focus line 90%), so on the quiet fill they read as live grey contours */
.xcs-sigil { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); }
/* page-local rest sizes (James: h1 near 52px, section headings near 26px; one big thing per screen) */
.xcs .xcs-copy .vc-display { font-size: clamp(40px, 3.6vw, 52px); line-height: 1.04; }
.xcs-card { position: relative; background: #fff; border-radius: 24px; box-shadow: none; padding: clamp(27px, 2.6vw, 36px); display: flex; flex-direction: column; scroll-margin: 88px 0 96px; }
.xcs-form { flex: 1; display: flex; flex-direction: column; }
.xcs-top { display: flex; align-items: center; }
.xcs-progress { flex: 1; display: block; height: 3px; border-radius: 3px; background: #ededed; overflow: hidden; }
.xcs-progress b { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; }
/* the stage is the height of the step on screen (JS eases it, 300ms ease-emphasis); the others lie over it, faded */
.xcs-stage { position: relative; display: block; margin-top: 27px; }
.xcs-step { position: absolute; inset: 0 0 auto 0; }
.xcs-step.on { position: relative; }
/* the demo's typed answer: drawn over the empty first field, never its value (aria-hidden, no pointer) */
.xcs-ghost { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; padding: 0 17px; font: 400 16px/1.5 var(--sans); color: var(--ink); pointer-events: none; white-space: nowrap; overflow: hidden; }
.xcs-chips li.xcs-demo-chip { color: var(--ink2); }
.xcs-step label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; cursor: text; }
.xcs-q { font-size: clamp(24px, 2vw, 28px); font-weight: 497; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.xcs-choose { font-size: 17px; color: var(--muted); }
.xcs-bang { display: inline-grid; color: var(--ink); }
/* fields: 56px, 16px text, a quiet fill; focus is the one ring (2px ink with a white halo), drawn inside so nothing doubles */
.xcs-step input, .xcs-step textarea { display: block; width: 100%; height: 56px; margin-top: 17px; padding: 0 17px; border: 0; border-radius: 12px; background: var(--quiet); font: 400 16px/1.5 var(--sans); color: var(--ink); caret-color: var(--ink); outline: none; resize: none; box-shadow: none; transition: box-shadow var(--d-fast) var(--e-out); }
.xcs-step textarea { height: auto; min-height: 104px; padding: 15px 17px; }
.xcs .xcs-step input:focus-visible, .xcs .xcs-step textarea:focus-visible, .xcs-step input:focus, .xcs-step textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.xcs-step.bad input, .xcs-step.bad textarea { box-shadow: inset 0 0 0 2px var(--ink); }
.xcs-sizes { display: flex; flex-wrap: wrap; gap: 6.5px; margin-top: 17px; }
.xcs-size { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 17px; border-radius: 999px; border: 1px solid var(--line); font-size: 16px; color: var(--ink2); cursor: pointer; transition: background var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out), transform var(--d-press) var(--e-out); }
@media (hover: hover) { .xcs-size:hover { color: var(--ink); border-color: rgba(0, 0, 0, .3); } }
.xcs-size input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.xcs-size:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.xcs-size.on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* the five inclusions on the last step: one row of numerals; the one you point at reads out below in Hanzo's words */
.xcs-picks { display: flex; gap: 6.5px; margin-top: 10.5px; }
.xcs-pick { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); background: #fff; color: var(--ink2); font: 500 13px/1 var(--mono); cursor: pointer; transition: background var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out), transform var(--d-press) var(--e-out); }
@media (hover: hover) { .xcs-pick:hover { border-color: var(--ink); color: var(--ink); } }
.xcs-pick.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.xcs-peek { margin: 10.5px 0 0; min-height: 2.8em; font-size: 16px; line-height: 1.4; color: var(--ink2); }
.xcs-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.xcs-fail { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; font-size: 16px; color: var(--ink); }
.xcs-fail a { font-weight: 606; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.xcs-acts { display: flex; align-items: center; gap: 10.5px; margin-top: auto; padding-top: 17px; }
.xcs-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.xcs-chips li { display: inline-block; height: 32px; padding: 0 12px; border-radius: 6px; background: var(--quiet); font: 400 14px/32px var(--sans); color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xcs-btns { flex: none; display: flex; gap: 10px; }
.xcs-round { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); background: #fff; color: var(--ink); cursor: pointer; transition: background var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out), transform var(--d-press) var(--e-out); }
@media (hover: hover) { .xcs-round:hover { border-color: rgba(0, 0, 0, .4); } .xcs-round.solid:hover { background: #262626; } }
.xcs-round.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
/* the submit: its own button, solid ink in every state; while sending, the label keeps its width and a white ring turns */
.xcs-send { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 27px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 606 16px/1 var(--sans); cursor: pointer; transition: background var(--d-fast) var(--e-out), transform var(--d-press) var(--e-out); }
@media (hover: hover) { .xcs-send:hover { background: #262626; } }
.xcs-send[aria-busy='true'] { cursor: progress; background: var(--ink); }
.xcs-hide { visibility: hidden; }
.xcs-ring { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2.4px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: xcs-spin .75s linear infinite; }
@keyframes xcs-spin { to { transform: rotate(360deg); } }
.xcs-sent { margin: auto 0; display: flex; flex-direction: column; gap: 24px; outline: none; }
.xcs-sent-i { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: #fff; }
.xcs .xcs-sent-t { max-width: 20ch; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
/* 2. what Enterprise includes: a plain list (no pinned scene), numerals at a 64px rest; it grows in from your last
pointer point (contact-sales/enter.css) and an added numeral stamps into ink */
.xcs .xcs-inc-h .vc-headline { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.08; letter-spacing: -.025em; }
.xcs-inc-h { grid-column: 1 / 5; align-self: start; display: flex; flex-direction: column; gap: 20px; }
.xcs-inc-l { grid-column: 5 / 13; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
/* every row presses (.98, 90ms) and a click or tap on it adds it; on a press the numeral inks at once */
.xcs-inc-l li { cursor: pointer; -webkit-tap-highlight-color: transparent; transform-origin: 50% 50%; transition: transform var(--d-press) var(--e-out); }
.xcs-inc-l li:active { transform: scale(.98); }
.xcs-inc-l li:active .xcs-inc-n { color: var(--ink); transition-duration: var(--d-press); }
.xcs-inc-l li { display: grid; grid-template-columns: clamp(96px, 9vw, 132px) minmax(0, 1fr); align-items: center; gap: 27px; padding: 24px 0; border-top: 1px solid var(--line); }
.xcs-inc-x { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 27px; }
.xcs-inc-n { display: inline-block; font: 220 64px/.9 var(--sans); letter-spacing: -.03em; color: #d4d4d4; transform-origin: 0 100%; transition: color var(--d-slow) var(--e-out), transform var(--d-slower) var(--e-em); }
.xcs-inc-l li.lit .xcs-inc-n { color: var(--muted); transform: translateX(10px); }
.xcs-inc-l li.on .xcs-inc-n { color: var(--ink); }
.xcs-inc-t { font-size: clamp(21px, 1.8vw, 26px); font-weight: 497; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.xcs-inc-l .xcs-round[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.xcs-g { display: grid; place-items: center; }
.xcs-chips .xcs-stamp { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
/* 3. the launches Hanzo built: their names as a type rail whose speed answers the scroll; pause, hover or focus holds it */
.xcs-logos { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.xcs-logos-h { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.xcs-rail { overflow: hidden; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.xcs-track { display: flex; width: max-content; will-change: transform; }
.xcs-logo { flex: none; position: relative; display: flex; align-items: center; height: clamp(96px, 9vw, 128px); padding: 0 clamp(28px, 3vw, 44px); color: var(--ink); text-decoration: none; }
/* a small grey dot between names (drawn, not typed) */
.xcs-logo::after { content: ''; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #d4d4d4; }
.xcs-logo img { display: block; height: clamp(28px, 2.6vw, 40px); width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1) brightness(.2); opacity: .55; transition: transform var(--d-base) var(--e-em), opacity var(--d-base) var(--e-out); }
@media (hover: hover) { .xcs-logo:hover img { opacity: 1; transform: translateY(-4px); } }
.xcs-logo:focus-visible img { opacity: 1; }
.xcs-logo:active img { transform: translateY(1px); }
.xcs-logo span { display: inline-block; font: 497 clamp(28px, 2.8vw, 40px)/1 var(--sans); letter-spacing: -.03em; color: var(--muted); white-space: nowrap; transition: transform var(--d-base) var(--e-em), color var(--d-base) var(--e-out); }
@media (hover: hover) { .xcs-logo:hover span { color: var(--ink); transform: translateY(-4px); } }
.xcs-logo:focus-visible span { color: var(--ink); }
.xcs-logo:active span { transform: translateY(1px); }
@media (min-width: 900px) {
/* the hero card is the stage's height for every step, so its button never moves; chips share one line and shrink */
.xcs-card { min-height: 0; }
/* the chips keep their own reserved row above the buttons, so the card's height never changes as answers arrive */
.xcs-acts { flex-wrap: wrap; row-gap: 17px; }
.xcs-acts .xcs-chips { flex: 1 0 100%; min-height: 32px; flex-wrap: nowrap; overflow: hidden; }
.xcs-acts .xcs-chips li { flex: 0 1 auto; min-width: 0; }
.xcs-btns { margin-left: auto; }
}
@media (max-width: 899px) {
.xcs-hero { padding: 88px 0 48px; min-height: 0; }
.xcs-hero-g { row-gap: 28px; }
.xcs-copy, .xcs-stagewrap, .xcs-more { grid-row: auto; }
.xcs-copy { gap: 20px; }
.xcs-ai { display: inline-flex; align-items: center; min-height: 44px; }
.xcs-stagewrap { margin-inline: -20px; padding: 40px 16px 16px; border-radius: 0; }
.xcs-card { padding: 24px 20px; border-radius: 24px; }
.xcs-stage { margin-top: 24px; }
.xcs-q { font-size: 24px; }
.xcs-picks { gap: 6px; }
/* the chips get their own row above the buttons, reserved from the start, so a chip landing (the demo's too) moves nothing */
.xcs-acts { flex-wrap: wrap; row-gap: 12px; }
.xcs-chips { flex-basis: 100%; min-height: 32px; }
.xcs-btns { margin-left: auto; }
.xcs-inc-h { position: static; margin-bottom: 24px; }
.xcs-inc-l li { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
.xcs-inc-t { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
.xcs-in, .xcs-up { animation: none; }
.xcs-track { flex-wrap: wrap; justify-content: center; width: auto; transform: none !important; }
.xcs-logo::after { display: none; }
.xcs-rail { -webkit-mask-image: none; mask-image: none; }
.xcs-ring { animation-duration: 2s; }
}
/* dark mode (docs/DARK-MODE.md): Hanzo's default; light is html.light, so every rule here sits under html:not(.light)
and bright mode is untouched. The deck tokens (shadowed on .vc) take Hanzo's dark tokens through our --x- aliases,
which resolve on <html>; white surfaces and black alphas follow; ink fills keep their text on --x-on-ink. */
html:not(.light) .xcs { --ink: var(--foreground); --ink2: var(--muted-foreground); --muted: var(--faint); --quiet: var(--x-fill); --card: var(--x-fill); --tile: var(--x-knob); --line: var(--x-e10); }
html:not(.light) .xcs ::selection { background: var(--x-knob); }
html:not(.light) .xcs :focus-visible { box-shadow: 0 0 0 5px var(--bg); }
html:not(.light) .xcs-card { background: var(--x-raised); }
html:not(.light) .xcs-progress { background: var(--x-knob); }
html:not(.light) .xcs-step input, html:not(.light) .xcs-step textarea { background: var(--x-fill); }
html:not(.light) .xcs-step:not(.bad) input:not(:focus), html:not(.light) .xcs-step:not(.bad) textarea:not(:focus) { box-shadow: inset 0 0 0 1px var(--x-e15); }
@media (hover: hover) { html:not(.light) .xcs-size:hover { border-color: var(--x-e15); } }
html:not(.light) .xcs-size.on, html:not(.light) .xcs-pick.on, html:not(.light) .xcs-round.solid, html:not(.light) .xcs-send, html:not(.light) .xcs-sent-i, html:not(.light) .xcs-inc-l .xcs-round[aria-pressed='true'] { color: var(--x-on-ink); }
html:not(.light) .xcs-pick, html:not(.light) .xcs-round { border-color: var(--x-e15); background: var(--x-raised); }
html:not(.light) .xcs-pick.on, html:not(.light) .xcs-round.solid, html:not(.light) .xcs-inc-l .xcs-round[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); }
@media (hover: hover) {
html:not(.light) .xcs-round:hover { border-color: var(--ink2); }
html:not(.light) .xcs-round.solid:hover, html:not(.light) .xcs-send:hover { background: var(--muted-foreground); }
}
html:not(.light) .xcs-ring { border-color: var(--x-e15); border-top-color: var(--x-on-ink); }
html:not(.light) .xcs-inc-n { color: var(--white-30); }
html:not(.light) .xcs-logo::after { background: var(--x-knob); }
html:not(.light) .xcs-inc-l li.lit .xcs-inc-n { color: var(--muted); }
html:not(.light) .xcs-inc-l li.on .xcs-inc-n { color: var(--ink); }
/* the alert mark's "!" is drawn white on an ink disc: in dark it takes the text-on-ink colour */
html:not(.light) .xcs-bang path, html:not(.light) .xcs-fail svg path { stroke: var(--x-on-ink); }
/* Hanzo's customer logos are dark artwork: in dark they are drawn light, at the same quiet weight */
html:not(.light) .xcs-logo img { filter: grayscale(1) brightness(0) invert(1); opacity: .5; }
@media (hover: hover) { html:not(.light) .xcs-logo:hover img { opacity: 1; } }
html:not(.light) .xcs-logo:focus-visible img { opacity: 1; }
/* the shared Band's solid ask fills with --x-fill (#171717 in dark) under black type; here it keeps Hanzo's primary */
html:not(.light) .xcs .x-band .x-btn.solid { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }