/* HoloTouch's website, in the interface's own language (src/holotouch/theme.py): cream and ink carry
   the page, and colour marks what a hand is doing. Sky is the left hand, coral the right, butter
   is progress, mint is done and running, lilac opens further. */

@font-face { font-family: Fredoka; src: url(fonts/Fredoka.ttf) format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Figtree; src: url(fonts/Figtree.ttf) format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(fonts/DMMono-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(fonts/DMMono-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }

:root {
    --cream: #FBF3E4;
    --paper: #FFFCF5;
    --sunk: #F2E6CF;
    --line: #E6D8BD;
    --muted: #B8AC96;
    --ink: #1E1B2E;
    --ink-raised: #2C2842;
    --ink-mid: #3A3552;
    --ink-soft: #5A5470;
    --ledge: #0E0C18;
    --coral: #FF6B5C;
    --sky: #4AA8FF;
    --mint: #3DD6A3;
    --butter: #FFD35A;
    --lilac: #B69CFF;
    --lilac-deep: #6341C9;
    /* Over the desktop every shape pairs cream with ink, so it reads on light and dark windows. */
    --keyline: 0 0 0 2px var(--cream), 0 0 0 3.5px rgba(30, 27, 46, 0.8);
    --float: 0 8px 18px rgba(30, 27, 46, 0.28);
    --display: Fredoka, ui-rounded, system-ui, sans-serif;
    --body: Figtree, system-ui, sans-serif;
    --mono: "DM Mono", ui-monospace, monospace;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 400 16.5px/1.55 var(--body);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(44px, 9vw, 88px); line-height: 1.04; }
h2 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; }
h3 { font-size: 20px; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 1128px; margin: 0 auto; padding: 0 24px; }
.lead { font-size: clamp(17.5px, 2vw, 20px); line-height: 1.5; color: var(--ink-mid); text-wrap: pretty; }
.fine { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.figure { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---------- the hand ---------- */
.hand { --tone: var(--coral); }
.hand--left { --tone: var(--sky); }
.hand--plain { --tone: var(--cream); }
.hand__ink { fill: none; stroke: var(--ink); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.hand__palm-ink { fill: var(--ink); stroke: var(--ink); stroke-width: 5; }
.hand__tone { fill: none; stroke: var(--tone); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.hand__palm { fill: var(--tone); }
.hand__dot { fill: var(--cream); stroke: var(--ink); stroke-width: 2.5; }

/* ---------- buttons: each rests on a ledge and sinks onto it when pressed ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 48px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 999px;
    background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 var(--ink);
    font: 600 17px/1 var(--display); text-decoration: none; cursor: pointer;
    transition: transform 60ms, box-shadow 60ms, background 120ms;
}
.btn:hover { background: var(--cream); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn--main { background: var(--ink); color: var(--cream); box-shadow: 0 4px 0 var(--ledge); }
.btn--main:hover { background: var(--ink-raised); }
.btn--main:active { box-shadow: 0 0 0 var(--ledge); }
.btn--small { height: 44px; padding: 0 18px; font-size: 16px; }

.chip {
    display: inline-block; padding: 6px 15px; border-radius: 999px;
    background: var(--ink); color: var(--cream); font: 500 16px/1.3 var(--display);
}
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 22px; }

/* A track of tabs: the one that is on is ink. */
.tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--sunk); }
.tabs--wrap { flex-wrap: wrap; border-radius: 26px; }
.tabs button {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 17px;
    border: 0; border-radius: 999px; background: transparent; color: var(--ink-mid);
    font: 600 16px/1 var(--display); white-space: nowrap; cursor: pointer; transition: background 120ms, color 120ms;
}
.tabs button:hover { background: var(--line); color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

/* The marker's shape says the family as well as its colour does. */
.mark { flex: none; width: 11px; height: 11px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--lilac); }
.mark--pointer { border-radius: 3px; background: var(--butter); }
.mark--system { border-radius: 3px; background: var(--mint); rotate: 45deg; }
[aria-pressed="true"] > .mark { border-color: var(--cream); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: var(--cream); border-bottom: 1.5px solid transparent; transition: border-color 150ms; }
.nav.is-scrolled { border-color: var(--line); }
.nav__row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 600 23px/1 var(--display); text-decoration: none; }
.brand svg { width: 40px; height: 40px; margin-left: -6px; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { padding: 10px 12px; border-radius: 999px; font-weight: 600; font-size: 15.5px; color: var(--ink-mid); text-decoration: none; }
.nav__links a:hover { background: var(--sunk); color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 48px 0 40px; text-align: center; }
.hero h1 { margin-top: 22px; }
.hero .lead { max-width: 640px; margin: 24px auto 0; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* The word the hand has hold of: a held window's frame, and the pinched cursor on it. */
.held {
    position: relative; display: inline-block; margin: 0 0.2em 0 0.06em; padding: 0 0.16em 0.04em;
    border: 0.075em solid var(--coral); border-radius: 0.26em; box-shadow: var(--keyline);
    background: var(--paper); rotate: -2.5deg; animation: carry 5s ease-in-out infinite;
}
.held .cur { left: calc(100% - 4px); top: calc(100% - 2px); --d: 48px; --dot: 26px; }
@keyframes carry { 0%, 100% { translate: 0 0; } 50% { translate: 0.05em -0.07em; } }

/* The ring cursor of the overlay. */
.cur { position: absolute; left: 0; top: 0; display: block; width: 0; height: 0; --d: 56px; --dot: 0px; --tone: var(--coral); }
.cur--l { --tone: var(--sky); }
.cur--idle { --d: 44px; opacity: 0.7; }
.cur__ring {
    position: absolute; left: calc(var(--d) / -2); top: calc(var(--d) / -2); width: var(--d); height: var(--d);
    display: grid; place-items: center; border: 5px solid var(--tone); border-radius: 50%;
    box-shadow: var(--keyline), inset 0 0 0 2px var(--cream);
}
.cur.is-pinching .cur__ring { background: var(--cream); box-shadow: var(--keyline), 0 6px 14px rgba(30, 27, 46, 0.3); }
.cur__dot { display: block; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--tone); }
.cur__tag {
    position: absolute; top: calc(var(--d) / 2 - 14px); width: 22px; height: 22px; display: grid; place-items: center;
    background: var(--tone); box-shadow: var(--keyline); color: var(--ink); font: 700 13px/1 var(--display);
}
.cur--r .cur__tag { left: calc(var(--d) / 2 - 12px); border-radius: 4px 50% 50% 50%; }
.cur--l .cur__tag { right: calc(var(--d) / 2 - 12px); border-radius: 50% 4px 50% 50%; }

/* The stand-in desktop. Its contents are kept grey, so the five accents only ever mean HoloTouch. */
.desk-frame { margin-top: 56px; border: 2.5px solid var(--ink); border-radius: 28px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; background: #3C4A5E; }
.desk { position: relative; aspect-ratio: 880 / 560; overflow: hidden; text-align: left; }
.desk__inner {
    position: absolute; left: 0; top: 0; width: 880px; height: 560px; transform-origin: 0 0; overflow: hidden;
    background: radial-gradient(circle 280px at 90px 610px, #445470 99%, transparent 100%),
                radial-gradient(circle 250px at 800px -60px, #445470 99%, transparent 100%), #3C4A5E;
    font: 600 12px/1 var(--body); color: #3D4350;
}
.desk__bar { position: absolute; inset: 0 0 auto 0; height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; background: #20242E; color: #C9CDD6; }
.desk__pips { display: flex; gap: 4px; }
.desk__pips i { width: 22px; height: 14px; border: 1.5px solid #566074; border-radius: 4px; }
.desk__pips i.on { background: #566074; }
.desk__name { display: flex; align-items: center; gap: 7px; }
.desk__name i { width: 13px; height: 13px; border: 3px solid #C9CDD6; border-radius: 50%; }

.win { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #FFFFFF; box-shadow: 0 14px 32px rgba(12, 16, 24, 0.32); }
.win__bar { flex: none; height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; background: #DFE2E8; white-space: nowrap; }
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #AEB5C2; }
.win__url { flex: none; padding: 6px 10px; background: #F4F5F8; border-bottom: 1px solid #E3E6EC; }
.win__url span { display: block; padding: 5px 11px; border: 1px solid #DCE0E7; border-radius: 999px; background: #FFFFFF; font-weight: 500; }
.win__page { display: flex; flex-direction: column; gap: 11px; padding: 20px 24px; }
.win__page i { flex: none; height: 9px; border-radius: 5px; background: #E3E6EC; }
.win__page i.win__heading { height: 15px; border-radius: 8px; background: #C9CED8; }
.win__page i.win__heading:not(:first-child) { margin-top: 10px; }
.win__files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 4px; padding: 14px 10px; font-weight: 500; text-align: center; }
.win__files span { display: grid; justify-items: center; gap: 4px; }
.win__files svg { width: 36px; fill: #9DB0C9; }
.win--terminal { background: #1C1F26; box-shadow: 0 18px 40px rgba(12, 16, 24, 0.4); transform-origin: 50% 40%; opacity: 0; }
.win--terminal .win__bar { background: #2A2E38; color: #C3C9D5; }
.win--terminal .win__dots i { background: #4A5162; }
.win__term { display: flex; flex-direction: column; gap: 11px; padding: 16px; font: 400 12.5px/1 var(--mono); color: #C3C9D5; }
.win__term i { height: 9px; border-radius: 5px; background: #2E333E; }

/* The overlay on it. */
.ov { position: absolute; inset: 0; pointer-events: none; font-family: var(--display); color: var(--ink); }
.ov > * { position: absolute; left: 0; top: 0; }
.ov-frame {
    border: 2.5px solid rgba(251, 243, 228, 0.92); border-radius: 15px; opacity: 0;
    box-shadow: 0 0 0 1.5px rgba(30, 27, 46, 0.55), inset 0 0 0 1.5px rgba(30, 27, 46, 0.55);
    transition: opacity 150ms, border-color 120ms, border-width 120ms;
}
.ov-frame.is-on { opacity: 1; }
.ov-frame.is-held { border: 5px solid var(--coral); border-radius: 14px; box-shadow: var(--keyline); }
.ov-frame i { position: absolute; width: 26px; height: 26px; border: 0 solid var(--coral); transition: opacity 120ms; }
.ov-frame i:nth-child(1) { left: -8.5px; top: -8.5px; border-width: 5px 0 0 5px; border-top-left-radius: 16px; }
.ov-frame i:nth-child(2) { right: -8.5px; top: -8.5px; border-width: 5px 5px 0 0; border-top-right-radius: 16px; }
.ov-frame i:nth-child(3) { left: -8.5px; bottom: -8.5px; border-width: 0 0 5px 5px; border-bottom-left-radius: 16px; }
.ov-frame i:nth-child(4) { right: -8.5px; bottom: -8.5px; border-width: 0 5px 5px 0; border-bottom-right-radius: 16px; }
.ov-frame.is-held i { opacity: 0; }
.ov-ghost { border: 2px dashed rgba(251, 243, 228, 0.9); border-radius: 12px; outline: 1.5px dashed rgba(30, 27, 46, 0.5); opacity: 0; transition: opacity 150ms; }
.ov-ghost.is-on { opacity: 1; }
.ov-grip { width: 0; height: 0; }
.ov-grip::before {
    content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--coral); box-shadow: var(--keyline); opacity: 0; scale: 0.3; transition: opacity 120ms, scale 300ms var(--spring);
}
.ov-grip--l::before { background: var(--sky); }
.ov-grip.is-on::before { opacity: 1; scale: 1; }
.ov-chip {
    padding: 5px 13px; border-radius: 999px; background: rgba(30, 27, 46, 0.92); box-shadow: 0 0 0 1.5px rgba(251, 243, 228, 0.7);
    color: var(--cream); font: 500 16px/1.3 var(--display); white-space: nowrap;
}
.ov-size { opacity: 0; transition: opacity 120ms; }
.ov-size.is-on { opacity: 1; }
.ov-pulse { width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 4px solid var(--mint); border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(30, 27, 46, 0.6), inset 0 0 0 1.5px rgba(30, 27, 46, 0.6); }

.ov-hold { width: 0; height: 0; }
.ov-hold svg { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; overflow: visible; fill: none; }
.ov-hold__ink { stroke: rgba(30, 27, 46, 0.55); stroke-width: 13; }
.ov-hold__track { stroke: var(--cream); stroke-width: 9; opacity: 0.5; }
.ov-hold__arc { stroke: var(--butter); stroke-width: 9; stroke-linecap: round; }
.ov-hold.is-done .ov-hold__arc { stroke: var(--mint); }
.ov-hold .ov-chip { position: absolute; left: 0; top: 62px; translate: -50% 0; }

.pie { width: 0; height: 0; }
.pie__lines { position: absolute; left: -170px; top: -170px; width: 340px; height: 340px; overflow: visible; fill: none; }
.pie__orbit-ink { stroke: rgba(30, 27, 46, 0.28); stroke-width: 5; }
.pie__orbit { stroke: rgba(251, 243, 228, 0.75); stroke-width: 2; }
.pie__aim { transition: transform 180ms cubic-bezier(0.3, 1.3, 0.6, 1), opacity 120ms; }
.pie__wedge-ink { fill: rgba(255, 107, 92, 0.22); stroke: rgba(30, 27, 46, 0.4); stroke-width: 4; stroke-linejoin: round; }
.pie__wedge { stroke: var(--cream); stroke-width: 2; stroke-linejoin: round; }
.pie__arc-key { stroke: var(--cream); stroke-width: 11; stroke-linecap: round; }
.pie__arc { stroke: var(--coral); stroke-width: 7; stroke-linecap: round; }
.petal { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; }
.petal__face {
    width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: var(--cream);
    box-shadow: 0 0 0 2px rgba(30, 27, 46, 0.85), var(--float); transition: scale 200ms var(--spring), background 120ms;
}
.petal__disc { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--butter); transition: background 120ms; }
.petal__face--lilac .petal__disc { background: var(--lilac); }
.petal__face--mint .petal__disc { background: var(--mint); }
.petal svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.petal.is-aimed { z-index: 1; }
.petal.is-aimed .petal__face { scale: 1.22; background: var(--coral); box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px rgba(30, 27, 46, 0.85), 0 12px 24px rgba(30, 27, 46, 0.35); }
.petal.is-aimed .petal__disc { background: var(--cream); }
.petal.is-picked .petal__face { scale: 1.42; }
.pie__seed {
    position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 4px solid var(--coral); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--cream), 0 10px 22px rgba(30, 27, 46, 0.35);
    color: var(--cream); text-align: center;
}
.pie__word { font: 600 16px/1.1 var(--display); }
.pie__hint { font: 500 11.5px/1.1 var(--display); color: #FFC2BA; }

/* What the hands are doing, under the desktop. */
.now { display: flex; align-items: center; gap: 20px; margin-top: 22px; padding: 14px 16px 14px 18px; border: 1.5px solid var(--line); border-radius: 22px; background: var(--paper); text-align: left; }
.now__hands { flex: none; display: flex; gap: 2px; }
.now__hands .figure { width: 64px; height: 64px; transition: opacity 200ms; }
.now__hands .figure.is-away { opacity: 0.22; }
.now__text { flex: 1; min-width: 0; }
.now__title { font: 600 21px/1.2 var(--display); }
.now__pose { margin-top: 1px; font-weight: 700; font-size: 14.5px; color: var(--ink-mid); }
.now__how { font-size: 15px; line-height: 1.4; color: var(--ink-mid); }
.now__controls { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
#desk-toggle { min-width: 112px; margin-bottom: 4px; }
#desk-toggle[aria-pressed="true"] .icon--play, #desk-toggle[aria-pressed="false"] .icon--pause { display: none; }

/* ---------- sections ---------- */
.band { padding: 72px 0; }
.band__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 32px; }

.goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.goal { padding: 20px 20px 22px; }
.goal__hand { width: 84px; height: 84px; margin: -4px 0 6px -8px; }
.goal p { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink-mid); }
.aside { margin-top: 30px; font: 500 clamp(19px, 2.4vw, 24px)/1.35 var(--display); color: var(--ink-mid); }

/* The gesture guide: one card a gesture, as in the control panel. */
.gestures { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; margin-top: 22px; }
.gcard { padding: 10px 10px 16px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--paper); transition: border-color 120ms, box-shadow 120ms; }
.gcard:hover { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.gcard h3 { margin: 12px 6px 3px; font-size: 19px; }
.gcard__pose { display: flex; align-items: center; gap: 7px; margin: 0 6px; font-weight: 700; font-size: 14px; color: var(--ink-mid); }
.gcard p { margin: 5px 6px 0; font-size: 14.5px; line-height: 1.42; color: var(--ink-mid); }

.stage { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--sunk); transition: background 150ms; }
.gcard:hover .stage { background: var(--butter); }
.st-pane { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.st-ink { fill: var(--ink); }
.st-butter { fill: var(--butter); }
.st-lilac { fill: var(--lilac); }
.st-mint { fill: var(--mint); }
.st-bar { fill: var(--ink); opacity: 0.35; }
.st-bud { stroke: var(--ink); stroke-width: 2; }
.st-ring { fill: none; stroke: rgba(30, 27, 46, 0.2); }
.st-arc { fill: none; stroke: var(--butter); stroke-linecap: round; }
.gcard:hover .st-arc { stroke: var(--paper); }
.st-ripple { fill: none; stroke: var(--ink); stroke-width: 3; }
.st-icon { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.st-chin { fill: var(--paper); stroke: var(--ink); stroke-width: 3.5; }
.st-caret { fill: var(--coral); }
.st-tile { fill: transparent; stroke: var(--ink); stroke-width: 2.5; }
.st-tile.is-taken { fill: var(--paper); }
.st-tile.is-done { fill: var(--mint); }
.st-letter { font: 600 19px var(--display); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }

/* Hand shapes. */
.shapes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.shapes__well { display: grid; justify-items: center; gap: 8px; padding: 28px 24px 24px; border-radius: 28px; background: var(--sunk); }
.shapes__hand { width: min(100%, 320px); aspect-ratio: 1; }
.shapes__text { display: grid; gap: 16px; }
.shapes__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pill {
    height: 44px; padding: 0 17px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink);
    font: 600 16px/1 var(--display); cursor: pointer; transition: background 120ms, color 120ms;
}
.pill:hover { background: var(--sunk); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.shapes__note { min-height: 3.1em; font-size: 17.5px; line-height: 1.5; }

/* The overlay, on ink. */
.band--ink { background: var(--ink); color: var(--cream); }
.band--ink .lead { color: #E3DACB; }
.states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.state h3 { margin-top: 12px; }
.state p { margin-top: 3px; font-size: 15px; line-height: 1.45; color: #E3DACB; }
/* Every tile is half light window, half dark. */
.tile { position: relative; height: 128px; border-radius: 18px; overflow: hidden; background: linear-gradient(90deg, #F4F5F7 50%, #0F1116 50%); }
.tile .cur { left: 50%; top: 50%; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 9px 18px 9px 10px; border-radius: 999px; background: var(--ink-raised); font-size: 15.5px; color: #E3DACB; }
.legend i { flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px var(--cream); }
.legend b { margin-right: -5px; font: 600 16.5px var(--display); color: var(--cream); }

/* How it works. */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { padding: 20px 20px 22px; }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); font: 600 19px/1 var(--display); }
.step__sub { margin-top: 2px; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.step p { margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--ink-mid); }
.facts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; margin-top: 44px; }
.checks { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px var(--ink); }
.check .icon { width: 15px; height: 15px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 0; }
.stats dt { font: 600 clamp(40px, 5vw, 56px)/1 var(--display); }
.stats dd { margin: 2px 0 0; font-weight: 600; color: var(--ink-soft); }

/* Get started. */
.start { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.start__text { display: grid; gap: 14px; }
.start__text h3 { margin-top: 14px; }
.needs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.needs li { display: flex; gap: 12px; }
.needs li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 1.5px var(--ink); }
.needs li:nth-child(2)::before { background: var(--sky); }
.needs li:nth-child(3)::before { background: var(--butter); }
.term { border-radius: 22px; background: var(--ink); color: var(--cream); box-shadow: 0 6px 0 var(--ledge); overflow: hidden; }
.term__bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; background: var(--ink-raised); font: 600 16px var(--display); }
.term__copy { height: 44px; padding: 0 18px; border: 2px solid var(--cream); border-radius: 999px; background: transparent; color: var(--cream); font: 600 15.5px/1 var(--display); cursor: pointer; }
.term__copy:hover { background: var(--ink-mid); }
.term pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font: 400 14.5px/1.75 var(--mono); }
.term__p { color: var(--butter); user-select: none; }
.commands { display: grid; gap: 0; margin: 26px 0 0; }
.commands > div { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-top: 1.5px solid var(--line); }
.commands dt { font-weight: 500; }
.commands dd { margin: 0; font-size: 15.5px; color: var(--ink-mid); }

.foot { margin-top: 24px; padding: 40px 0 48px; background: var(--ink); color: #E3DACB; font-size: 15px; }
.foot__row { display: grid; gap: 10px; }
.foot .brand { color: var(--cream); }
.foot a { color: var(--cream); }

/* ---------- narrower screens ---------- */
@media (max-width: 980px) {
    .goals, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shapes, .start, .facts { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .now { flex-wrap: wrap; }
    .now__controls { flex-basis: 100%; justify-content: space-between; }
}
@media (max-width: 760px) {
    .nav__links { display: none; }
    .nav__row { justify-content: space-between; }
    .states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .band { padding: 52px 0; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 16px; }
    .hero { padding-top: 28px; }
    .desk-frame { margin-top: 40px; border-radius: 18px; }
    .goals, .steps { grid-template-columns: minmax(0, 1fr); }
    .gestures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gcard { padding: 8px 8px 12px; border-radius: 16px; }
    .gcard h3 { margin: 10px 3px 3px; font-size: 16.5px; }
    .gcard__pose, .gcard p { margin-left: 3px; margin-right: 3px; font-size: 13.5px; }
    .now { gap: 12px; padding: 12px; }
    .now__hands .figure { width: 52px; height: 52px; }
    .now__controls .tabs button { padding: 0 12px; font-size: 15px; }
    .held .cur { scale: 0.8; }
    .commands > div { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .held { animation: none; }
    * { transition-duration: 1ms !important; }
}
