/*
 * Many Hands: components
 * Built only from tokens.css. Load tokens.css first.
 */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
.mh { margin: 0; background: var(--mh-black); color: var(--mh-white); font-family: var(--mh-sans); font-size: var(--mh-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
:where(.mh) a { color: inherit; text-decoration: none; }
:where(.mh) svg { display: block; max-width: 100%; }
.mh ::selection { background: var(--mh-sky); color: var(--mh-black); }
.mh-container { width: 100%; max-width: var(--mh-container); margin: 0 auto; padding: 0 var(--mh-gutter); }
.mh-narrow { width: 100%; max-width: var(--mh-narrow); margin: 0 auto; padding: 0 var(--mh-gutter); }
.mh-section { position: relative; padding: var(--mh-section) 0; }
.mh-section--flush { padding-top: 0; }
.mh-rule { height: 1px; border: 0; margin: 0; background: var(--mh-line); }
.mh-center { text-align: center; }

/* Type */
.mh-display, .mh-h1, .mh-h2 { margin: 0; font-family: var(--mh-display); font-weight: 600; color: var(--mh-white); text-wrap: balance; }
.mh-display { font-size: var(--mh-text-display); letter-spacing: var(--mh-tracking-display); line-height: var(--mh-leading-display); }
.mh-h1 { font-size: var(--mh-text-h1); letter-spacing: var(--mh-tracking-display); line-height: 1.06; }
.mh-h2 { font-size: var(--mh-text-h2); letter-spacing: var(--mh-tracking-h); line-height: 1.1; }
.mh-h3 { margin: 0; font-family: var(--mh-display); font-size: var(--mh-text-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.mh-grey-words { color: var(--mh-dim); }
.mh-lead { margin: 0; max-width: 560px; color: var(--mh-grey); font-size: var(--mh-text-lead); line-height: 1.55; }
.mh-muted { color: var(--mh-grey); }
.mh-dim { color: var(--mh-dim); }
.mh-eyebrow { display: inline-block; font-family: var(--mh-mono); font-size: var(--mh-text-micro); color: var(--mh-dim); letter-spacing: .04em; text-transform: uppercase; }

/* Buttons */
.mh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--mh-radius); border: 1px solid var(--mh-glass-line); background: var(--mh-glass); color: var(--mh-white); font: 500 15px/1 var(--mh-sans); white-space: nowrap; cursor: pointer; transition: background var(--mh-fast) var(--mh-ease), color var(--mh-fast) var(--mh-ease), border-color var(--mh-fast) var(--mh-ease); }
.mh-btn:hover { background: rgba(255, 255, 255, .1); }
.mh-btn--white { background: var(--mh-white); border-color: var(--mh-white); color: var(--mh-black); }
.mh-btn--white:hover { background: #FFFFFF; }
.mh-btn--quiet { background: transparent; border-color: transparent; color: var(--mh-white); }
.mh-btn--quiet:hover { background: transparent; color: var(--mh-grey); }
.mh-btn--sm { height: 34px; padding: 0 13px; font-size: 14px; border-radius: var(--mh-radius-sm); }
.mh-btn--block { width: 100%; }
.mh-btn svg { width: 14px; height: 14px; }
.mh-link { color: var(--mh-white); text-decoration: underline; text-decoration-color: var(--mh-line-bright); text-underline-offset: 3px; transition: text-decoration-color var(--mh-fast) var(--mh-ease); }
.mh-link:hover { text-decoration-color: var(--mh-white); }

/* Nav */
.mh-nav { position: relative; z-index: 10; }
.mh-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.mh-nav__left { display: flex; align-items: center; gap: 36px; }
.mh-wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mh-display); font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.mh-wordmark svg { width: 22px; height: 22px; }
.mh-nav__links { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: var(--mh-grey); }
.mh-nav__links a:hover { color: var(--mh-white); }
.mh-nav__end { display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .mh-nav__links { display: none; } }
@media (max-width: 440px) { .mh-nav__end .mh-btn--quiet { display: none; } }

/* Announcement pill: tag, text, round arrow */
.mh-announce { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 4px 4px 4px 5px; border-radius: var(--mh-radius-pill); border: 1px solid var(--mh-line); background: var(--mh-panel); font-size: 14px; color: var(--mh-grey); white-space: nowrap; }
.mh-announce__tag { padding: 3px 9px; border-radius: var(--mh-radius-pill); background: var(--mh-raise); color: var(--mh-white); font-size: 12px; font-weight: 500; }
.mh-announce__go { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mh-raise); color: var(--mh-white); }
.mh-announce__go svg { width: 12px; height: 12px; }
.mh-announce__text { overflow: hidden; text-overflow: ellipsis; }

/* Hero with an out-of-focus stage behind it */
.mh-hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(56px, 9vw, 112px) 0 0; }
.mh-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--mh-glow); pointer-events: none; }
.mh-hero__body { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 820px; margin: 0 auto; text-align: center; }
.mh-hero__body .mh-lead { margin: 0 auto; }
.mh-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.mh-actions--start { justify-content: flex-start; }
.mh-stage { position: relative; margin-top: clamp(40px, 6vw, 72px); height: clamp(340px, 34vw, 440px); }
.mh-stage__blur { position: absolute; z-index: -1; inset: 0; filter: var(--mh-blur); opacity: .7; pointer-events: none; }
.mh-stage__blur .mh-ghost { background: var(--mh-line-bright); }
.mh-stage::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 45%; background: var(--mh-fade); pointer-events: none; }

/* Windows and panels */
.mh-window { position: relative; border-radius: var(--mh-radius-lg); border: var(--mh-border); background: var(--mh-panel); box-shadow: var(--mh-shadow), var(--mh-highlight); overflow: hidden; }
.mh-window__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; padding: 0 14px; border-bottom: var(--mh-border); font-size: 13px; color: var(--mh-grey); }
.mh-window__body { padding: 16px; }
.mh-panel { border-radius: var(--mh-radius-lg); border: var(--mh-border); background: var(--mh-panel); box-shadow: var(--mh-highlight); }
.mh-ghost { border-radius: var(--mh-radius); background: var(--mh-raise); }
.mh-ghost--line { height: 10px; border-radius: var(--mh-radius-pill); background: var(--mh-line-bright); }

/* People: cursors, avatars and presence. Pick a person with --coral, --sky, --lime, --violet or --amber */
.mh-who--coral { --who: var(--mh-coral); }
.mh-who--sky { --who: var(--mh-sky); }
.mh-who--lime { --who: var(--mh-lime); }
.mh-who--violet { --who: var(--mh-violet); }
.mh-who--amber { --who: var(--mh-amber); }
.mh-cursor { position: absolute; z-index: 3; display: flex; align-items: flex-start; gap: 0; color: var(--who, var(--mh-sky)); pointer-events: none; animation: mh-drift var(--mh-drift) var(--mh-ease) infinite alternate; }
.mh-cursor svg { width: 18px; height: 18px; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.mh-cursor path { fill: currentColor; stroke: var(--mh-black); stroke-width: 1.2; stroke-linejoin: round; }
.mh-cursor__flag { margin: 14px 0 0 -2px; padding: 3px 8px; border-radius: 4px 999px 999px 999px; background: var(--who, var(--mh-sky)); color: var(--mh-black); font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; box-shadow: var(--mh-shadow-flag); }
.mh-cursor--slow { animation-duration: 11s; }
.mh-cursor--still { animation: none; }
@keyframes mh-drift { 0% { transform: translate(0, 0); } 50% { transform: translate(14px, 8px); } 100% { transform: translate(-6px, 16px); } }
@media (prefers-reduced-motion: reduce) { .mh-cursor { animation: none; } }
.mh-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mh-raise); color: var(--who, var(--mh-white)); box-shadow: 0 0 0 2px var(--mh-panel), 0 0 0 3.5px var(--who, var(--mh-line-bright)); font-size: 12px; font-weight: 600; flex: none; }
.mh-avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.mh-avatars { display: inline-flex; }
.mh-avatars { gap: 4px; }
.mh-live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mh-grey); white-space: nowrap; }
.mh-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--who, var(--mh-lime)); box-shadow: 0 0 0 3px rgba(181, 230, 92, .15); }
.mh-selected { outline: 1.5px solid var(--who, var(--mh-sky)); outline-offset: 2px; }

/* Badges */
.mh-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--mh-radius-sm); border: var(--mh-border); background: var(--mh-raise); font-family: var(--mh-mono); font-size: 11px; color: var(--mh-grey); white-space: nowrap; }
.mh-badge--white { background: var(--mh-white); border-color: var(--mh-white); color: var(--mh-black); }

/* Logos row */
.mh-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; color: var(--mh-dim); font-family: var(--mh-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.mh-logos span { white-space: nowrap; }

/* Feature cards */
.mh-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.mh-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .mh-grid, .mh-grid--2 { grid-template-columns: 1fr; } }
.mh-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--mh-radius-lg); border: var(--mh-border); background: var(--mh-panel); box-shadow: var(--mh-highlight); overflow: hidden; }
.mh-card p { margin: 0; color: var(--mh-grey); font-size: 15px; }
.mh-card__art { position: relative; height: 170px; margin: -8px -8px 8px; border-radius: var(--mh-radius); background: var(--mh-black); border: var(--mh-border); overflow: hidden; }
.mh-section-head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin-bottom: 48px; }
.mh-section-head--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }

/* Stats */
.mh-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--mh-border); }
.mh-stat { padding: 28px 24px 0 0; }
.mh-stat__num { font-family: var(--mh-display); font-weight: 600; font-size: clamp(32px, 4vw, 48px); letter-spacing: var(--mh-tracking-display); line-height: 1; }
.mh-stat__label { margin-top: 8px; color: var(--mh-grey); font-size: 14px; }
@media (max-width: 700px) { .mh-stats { grid-template-columns: repeat(2, 1fr); row-gap: 8px; } }

/* Quote */
.mh-quote { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.mh-quote blockquote { margin: 0; font-family: var(--mh-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; line-height: 1.3; }
.mh-quote figcaption { display: flex; align-items: center; gap: 12px; color: var(--mh-grey); font-size: 14px; }
.mh-quote figcaption strong { display: block; color: var(--mh-white); font-weight: 500; }

/* CTA */
.mh-cta { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: clamp(56px, 8vw, 96px) 24px; border-radius: var(--mh-radius-lg); border: var(--mh-border); background: var(--mh-panel); text-align: center; }
.mh-cta::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--mh-glow); }

/* Pricing */
.mh-toggle { display: inline-flex; padding: 3px; border-radius: var(--mh-radius); border: var(--mh-border); background: var(--mh-panel); }
.mh-toggle button { height: 32px; padding: 0 14px; border: 0; border-radius: var(--mh-radius-sm); background: transparent; color: var(--mh-grey); font: 500 14px/1 var(--mh-sans); cursor: pointer; white-space: nowrap; }
.mh-toggle button[aria-pressed="true"] { background: var(--mh-raise); color: var(--mh-white); box-shadow: var(--mh-highlight); }
.mh-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 960px) { .mh-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.mh-plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: var(--mh-radius-lg); border: var(--mh-border); background: var(--mh-panel); box-shadow: var(--mh-highlight); }
.mh-plan--featured { border-color: var(--mh-line-bright); background: var(--mh-raise); }
.mh-plan__price { display: flex; align-items: baseline; gap: 6px; }
.mh-plan__amount { font-family: var(--mh-display); font-weight: 600; font-size: 46px; letter-spacing: var(--mh-tracking-display); line-height: 1; }
.mh-plan__per { color: var(--mh-grey); font-size: 14px; }
.mh-plan p { margin: 0; color: var(--mh-grey); font-size: 15px; }
.mh-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--mh-grey); }
.mh-list li { display: flex; gap: 10px; align-items: flex-start; }
.mh-list li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 4px; background: var(--mh-white); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.mh-table-wrap { overflow-x: auto; border-radius: var(--mh-radius-lg); border: var(--mh-border); }
.mh-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.mh-table th, .mh-table td { padding: 14px 18px; border-bottom: var(--mh-border); text-align: left; }
.mh-table thead th { font-family: var(--mh-mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--mh-dim); background: var(--mh-panel); }
.mh-table td { color: var(--mh-grey); }
.mh-table td:first-child { color: var(--mh-white); }
.mh-table tr:last-child td { border-bottom: 0; }
.mh-faq { display: grid; gap: 0; border-top: var(--mh-border); }
.mh-faq details { border-bottom: var(--mh-border); padding: 18px 0; }
.mh-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }
.mh-faq summary::after { content: "+"; color: var(--mh-dim); }
.mh-faq details[open] summary::after { content: "\2212"; }
.mh-faq p { margin: 10px 0 0; color: var(--mh-grey); font-size: 15px; }

/* Article */
.mh-article-head { display: flex; flex-direction: column; gap: 20px; padding-top: clamp(56px, 8vw, 96px); padding-bottom: 40px; }
.mh-byline { display: flex; align-items: center; gap: 12px; color: var(--mh-grey); font-size: 14px; }
.mh-byline strong { color: var(--mh-white); font-weight: 500; }
.mh-prose { font-size: 17px; line-height: 1.75; color: var(--mh-grey); }
.mh-prose > * { margin: 0; }
.mh-prose > * + * { margin-top: 1.2em; }
.mh-prose > h2 { margin-top: 2em; font-family: var(--mh-display); font-size: 26px; font-weight: 600; letter-spacing: var(--mh-tracking-h); line-height: 1.25; color: var(--mh-white); }
.mh-prose > h2 + * { margin-top: .6em; }
.mh-prose > blockquote, .mh-prose > figure { margin-top: 1.8em; }
.mh-prose > blockquote + *, .mh-prose > figure + * { margin-top: 1.8em; }
.mh-prose strong { color: var(--mh-white); font-weight: 500; }
.mh-prose a { color: var(--mh-white); text-decoration: underline; text-decoration-color: var(--mh-line-bright); text-underline-offset: 3px; }
.mh-prose ul { padding-left: 1.2em; }
.mh-prose li + li { margin-top: .4em; }
.mh-prose blockquote { padding: 4px 0 4px 20px; border-left: 2px solid var(--mh-white); font-family: var(--mh-display); font-size: 22px; font-weight: 500; letter-spacing: -.015em; line-height: 1.4; color: var(--mh-white); }
.mh-prose code { padding: 2px 6px; border-radius: 4px; background: var(--mh-raise); font-family: var(--mh-mono); font-size: .86em; color: var(--mh-white); }
.mh-figure { margin: 2em 0 0; }
.mh-figure figcaption { margin-top: 10px; font-family: var(--mh-mono); font-size: 12px; color: var(--mh-dim); }

/* Forms */
.mh-form { display: grid; gap: 16px; }
.mh-field { display: grid; gap: 7px; }
.mh-label { font-size: 14px; font-weight: 500; color: var(--mh-white); }
.mh-hint { font-size: 13px; color: var(--mh-dim); }
.mh-input, .mh-select { width: 100%; height: 42px; padding: 0 13px; border-radius: var(--mh-radius); border: 1px solid var(--mh-line-bright); background: var(--mh-black); color: var(--mh-white); font: 400 15px/1 var(--mh-sans); transition: border-color var(--mh-fast) var(--mh-ease), box-shadow var(--mh-fast) var(--mh-ease); }
.mh-input::placeholder { color: var(--mh-dim); }
.mh-input:focus, .mh-select:focus { outline: none; border-color: var(--mh-grey); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.mh-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mh-grey); }
.mh-check input { margin: 3px 0 0; accent-color: var(--mh-white); }
.mh-divider { display: flex; align-items: center; gap: 12px; font-family: var(--mh-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--mh-dim); }
.mh-divider::before, .mh-divider::after { content: ""; flex: 1; height: 1px; background: var(--mh-line); }
.mh-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.mh-auth__side { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px; border-right: var(--mh-border); background: var(--mh-panel); }
.mh-auth__main { display: flex; flex-direction: column; justify-content: center; padding: 48px var(--mh-gutter); }
.mh-auth__box { width: 100%; max-width: 400px; margin: 0 auto; display: grid; gap: 24px; }
@media (max-width: 900px) { .mh-auth { grid-template-columns: 1fr; } .mh-auth__side { display: none; } }

/* Footer */
.mh-footer { padding: 56px 0 40px; border-top: var(--mh-border); font-size: 14px; color: var(--mh-grey); }
.mh-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.mh-footer h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--mh-white); }
.mh-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mh-footer a:hover { color: var(--mh-white); }
.mh-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; color: var(--mh-dim); font-size: 13px; }
@media (max-width: 760px) { .mh-footer__grid { grid-template-columns: 1fr 1fr; } }

/* Motion */
.mh-rise { animation: mh-rise 900ms var(--mh-ease) both; }
.mh-rise--2 { animation-delay: 120ms; }
.mh-rise--3 { animation-delay: 240ms; }
@keyframes mh-rise { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .mh-rise { animation: none; } }
