/* TabbyDeck site. The page is a desk: warm charcoal, the deck's own keycap colours, and the tabby's ginger. */
:root {
  --desk: #191613;
  --desk-2: #211d19;
  --cap: #25221f;
  --cap-edge: #141210;
  --line: #3a332d;
  --text: #f1e9dd;
  --muted: #b3a797;
  --amber: #f5a524;
  --amber-ink: #2a1a00;
  --ginger: #e59a43;
  --stripe: #b4651f;
  --blue: #1d4ed8;
  --violet: #3b2a4d;
  --green: #14532d;
  --red: #a30000;
  --font: "Figtree", system-ui, "Segoe UI", sans-serif;
  --spring: cubic-bezier(.34, 1.45, .5, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--desk); color: var(--text);
  font: 400 18px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 14px var(--gut);
  background: rgba(25, 22, 19, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.mark { width: 28px; height: 28px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 16px; }
.nav a, .gh { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover, .gh:hover { color: var(--text); }
.gh { display: flex; align-items: center; gap: 8px; font-size: 16px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.gh svg { font-size: 18px; }

/* Buttons are keycaps: a lip underneath, and they go down when pressed. */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px 16px; border-radius: 14px; font-weight: 650; font-size: 18px; text-decoration: none;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.btn svg { font-size: 20px; }
.btn.primary { background: var(--amber); color: var(--amber-ink); box-shadow: 0 5px 0 #b06f05, 0 14px 30px -12px rgba(0, 0, 0, .6); }
.btn.ghost { background: var(--cap); color: var(--text); box-shadow: 0 5px 0 var(--cap-edge); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-2px); }
.btn.primary:hover { box-shadow: 0 7px 0 #b06f05, 0 18px 34px -12px rgba(0, 0, 0, .65); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b06f05; }

.h2 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.02em; font-weight: 700; margin: 0 0 18px; max-width: 18ch; text-wrap: balance; }
.sub { color: var(--muted); max-width: 60ch; margin: 0; font-size: 19px; }
section { padding: clamp(72px, 11vw, 150px) var(--gut); }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero-title { font-size: clamp(46px, 8.6vw, 128px); line-height: .92; letter-spacing: -.025em; font-weight: 750; margin: 0 0 28px; }
.hero-title .line { display: block; }
.hero-title .ch { display: inline-block; transform-origin: 50% 100%; }
.js .hero-title .ch { opacity: 0; transform: translateY(.5em) rotateX(-70deg); animation: rise .7s var(--spring) forwards; animation-delay: calc(var(--i) * 18ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-copy { max-width: 1240px; }
.lede { font-size: clamp(19px, 1.7vw, 23px); color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.js .lede, .js .hero .ctas { opacity: 0; animation: fadein .8s var(--ease) .75s forwards; }
.js .hero .ctas { animation-delay: .9s; }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; }
.ver { color: var(--muted); font-size: 15px; }

/* The stage: a tablet you can press, and the PC it drives. */
.stage { position: relative; margin-top: clamp(48px, 7vw, 90px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(40px, 1fr) minmax(0, 7fr); align-items: center; perspective: 1600px; }
.tablet { position: relative; background: #0f0d0b; border-radius: 30px; padding: 16px 18px 22px; border: 1px solid #332d27;
  box-shadow: 0 0 0 7px #2b2621, 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
  transform: rotateY(var(--ry, 10deg)) rotateX(var(--rx, 4deg)); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.tablet-bar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 2px 4px 12px; color: var(--muted); }
.tablet-bar > span:first-child { color: var(--text); font-weight: 600; }
.hint { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); transition: opacity .4s; }
.hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
@keyframes blink { 50% { opacity: .2; } }
.deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(7px, 1vw, 12px); }

.key { --bg: var(--cap); --fg: var(--text); --lip: color-mix(in srgb, var(--bg) 50%, #000); position: relative; aspect-ratio: 1; border: 0; border-radius: clamp(10px, 1.3vw, 16px); background: var(--bg); color: var(--fg);
  font: 600 clamp(10px, 1vw, 14px)/1.1 var(--font); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7%; padding: 6px; cursor: pointer;
  box-shadow: 0 5px 0 var(--lip), 0 8px 16px -6px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .14s var(--spring), box-shadow .14s var(--ease), background-color .25s, color .25s; -webkit-tap-highlight-color: transparent; user-select: none; }
.key svg { font-size: clamp(18px, 2.2vw, 30px); transition: transform .3s var(--spring); }
.key:hover svg { transform: scale(1.08); }
.key.down { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip), 0 2px 6px -2px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05); }
.key .val { position: absolute; top: 7%; left: 9%; font-size: .85em; font-weight: 700; }
.key.lit::after { content: ""; position: absolute; top: 8%; right: 8%; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.key .ripple { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 0 var(--glow, rgba(245, 165, 36, .7)); animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { box-shadow: 0 0 0 14px rgba(245, 165, 36, 0); } }
.js .deck:not(.in) .key { opacity: 0; }
.deck.in .key { animation: drop .6s var(--spring) backwards; animation-delay: calc(var(--i) * 45ms + 500ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-40px) scale(.8); } }

.finger { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: rgba(241, 233, 221, .3); border: 2px solid rgba(241, 233, 221, .7); pointer-events: none; z-index: 5;
  transform: translate(-50%, -50%) scale(1); transition: left .7s var(--ease), top .7s var(--ease), opacity .4s, transform .15s; opacity: 0; }
.finger.tap { transform: translate(-50%, -50%) scale(.75); }

.confirm { position: absolute; inset: 0; border-radius: 30px; background: rgba(15, 13, 11, .86); display: grid; place-content: center; text-align: center; gap: 16px; animation: fadein .25s var(--ease); z-index: 4; }
.confirm p { margin: 0; font-size: 20px; font-weight: 600; }
.confirm div { display: flex; gap: 10px; justify-content: center; }
.confirm button { font: 600 16px var(--font); padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--cap); color: var(--text); cursor: pointer; }
.confirm .danger { background: var(--amber); color: var(--amber-ink); border-color: transparent; }

.beam { position: relative; height: 100%; display: flex; align-items: center; }
.beam-line { width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); animation: march 1s linear infinite; }
@keyframes march { to { background-position: 16px 0; } }
.packet { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--amber)); pointer-events: none; z-index: 6; margin: -7px 0 0 -7px; }

.monitor { transform: rotateY(-6deg); transform-origin: left center; }
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 10px solid #0e0c0a; background: #000; box-shadow: 0 0 0 1px #332d27, 0 40px 80px -30px rgba(0, 0, 0, .8); font-size: clamp(8px, 1vw, 13px); }
.stand { width: 16%; height: 34px; margin: 0 auto; background: linear-gradient(#2b2621, #1d1916); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.wall { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 85% 110%, #e59a43 0%, transparent 55%),
  radial-gradient(90% 80% at 0% 0%, #3b2a4d 0%, transparent 60%),
  radial-gradient(70% 70% at 60% 30%, #1e3a5f 0%, transparent 70%), #1a1512; transition: filter .5s; }
.win { position: absolute; background: rgba(30, 27, 24, .94); border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; box-shadow: 0 20px 40px -15px #000; overflow: hidden; }
.win-bar { height: 2.2em; display: flex; align-items: center; gap: .5em; padding: 0 .9em; background: rgba(255, 255, 255, .04); font-size: .9em; color: var(--muted); }
.win-bar i { width: .7em; height: .7em; border-radius: 50%; background: #4a423b; }
.win-bar span { margin-left: .5em; }
.editor-win { left: 8%; top: 9%; width: 56%; height: 64%; }
.code { padding: 1.2em 1.4em; display: grid; gap: .9em; }
.code b { display: block; height: .6em; width: var(--w); border-radius: 4px; background: var(--c, #6b6158); opacity: .8; }
.calc { right: 7%; top: 13%; width: 25%; padding-bottom: .8em; transform: scale(.7) translateY(20px); opacity: 0; transition: transform .35s var(--spring), opacity .2s; }
.calc.show { transform: none; opacity: 1; }
.calc-out { font-size: 2.2em; font-weight: 600; text-align: right; padding: .3em .5em; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35em; padding: 0 .6em; }
.calc-keys i { height: 1.6em; border-radius: 4px; background: #3a332d; }
.calc-keys .eq { background: var(--amber); }
.flyout { position: absolute; left: 50%; bottom: 14%; display: flex; align-items: center; gap: 1em; padding: .9em 1.3em; background: rgba(32, 29, 26, .96); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px;
  transform: translate(-50%, 30px); opacity: 0; transition: transform .35s var(--spring), opacity .2s; min-width: 38%; }
.flyout.show { transform: translate(-50%, 0); opacity: 1; }
.flyout svg { font-size: 1.6em; }
.fly-bar { flex: 1; height: .45em; background: #4a423b; border-radius: 9px; overflow: hidden; }
.fly-bar span { display: block; height: 100%; width: 50%; background: var(--amber); transition: width .35s var(--ease); }
.flyout b { width: 2em; text-align: right; }
.media { position: absolute; right: 3%; bottom: 13%; display: flex; align-items: center; gap: .9em; padding: .8em; width: 36%; background: rgba(32, 29, 26, .96); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px;
  transform: translateX(120%); transition: transform .5s var(--spring); }
.media.show { transform: none; }
.media .cover { width: 3.4em; height: 3.4em; border-radius: 6px; background: conic-gradient(from 200deg, #e59a43, #3b2a4d, #1d4ed8, #e59a43); flex: none; }
.media.show .cover { animation: spin 6s linear infinite; border-radius: 50%; }
@keyframes spin { to { transform: rotate(1turn); } }
.media div { display: grid; flex: 1; min-width: 0; }
.media span { color: var(--muted); }
.media svg { font-size: 1.4em; color: var(--amber); }
.toast { position: absolute; right: 3%; top: 5%; display: flex; gap: .9em; align-items: center; padding: .8em 1.2em; background: rgba(32, 29, 26, .96); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px;
  transform: translateX(130%); transition: transform .45s var(--spring); }
.toast.show { transform: none; }
.toast svg { font-size: 1.6em; color: #93c5fd; }
.toast div { display: grid; }
.toast span { color: var(--muted); }
.snip { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; pointer-events: none; }
.snip span { position: absolute; left: 22%; top: 24%; width: 0; height: 0; border: 2px solid #fff; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); }
.snip.show { opacity: 1; }
.snip.show span { animation: lasso 1s var(--ease) forwards; }
@keyframes lasso { to { width: 44%; height: 42%; } }
.night { position: absolute; inset: 0; background: #ff8a1f; mix-blend-mode: multiply; opacity: 0; transition: opacity .8s; pointer-events: none; }
.night.show { opacity: .42; }
.dim { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .5s; pointer-events: none; }
.lockscreen { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .3em; background: radial-gradient(80% 80% at 50% 30%, #3b2a4d, #120f0d); opacity: 0; transition: opacity .4s; pointer-events: none; }
.lockscreen b { font-size: 5em; font-weight: 300; letter-spacing: -.03em; }
.lockscreen.show { opacity: 1; }
.off { position: absolute; inset: 0; background: #000; display: grid; place-content: center; opacity: 0; pointer-events: none; transition: opacity .7s; color: #57504a; }
.off.show { opacity: 1; }
.off span { opacity: 0; transition: opacity .5s 1s; }
.off.show span { opacity: 1; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3em; display: flex; align-items: center; padding: 0 1em; background: rgba(28, 25, 22, .92); border-top: 1px solid rgba(255, 255, 255, .06); }
.tb-apps { display: flex; gap: .6em; margin: 0 auto; }
.tb-apps i { width: 1.8em; height: 1.8em; border-radius: 5px; background: #4a423b; position: relative; }
.tb-apps .tb-start { background: #60a5fa; }
.tb-apps .on::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -.4em; height: .2em; border-radius: 1em; background: var(--amber); }
.tray { position: absolute; right: 1em; display: flex; gap: .8em; align-items: center; color: #ddd3c6; }
.tray svg { font-size: 1.25em; transition: color .3s, transform .3s var(--spring); }
.tray .bt { opacity: .35; }
.tray .on { opacity: 1; color: #93c5fd; transform: scale(1.2); }
.tray .warn { color: #f87171; transform: scale(1.2); }

/* Features: one big key on the left becomes each feature as you scroll. */
.features { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sticky-col { position: sticky; top: 22vh; display: grid; justify-items: center; }
.bigkey { --bg: var(--amber); --fg: var(--amber-ink); --lip: #b06f05; width: min(100%, 360px); aspect-ratio: 1; border-radius: 22%; background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%; font-weight: 700; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -.01em;
  box-shadow: 0 16px 0 var(--lip), 0 40px 60px -20px rgba(0, 0, 0, .8), inset 0 2px 0 rgba(255, 255, 255, .12);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .2s var(--spring); }
.bigkey svg { width: 30%; height: 30%; transition: transform .5s var(--spring); }
.bigkey.swap { transform: translateY(12px); box-shadow: 0 4px 0 var(--lip), 0 20px 30px -20px rgba(0, 0, 0, .8), inset 0 2px 0 rgba(255, 255, 255, .12); }
.bigkey.swap svg { transform: scale(.6) rotate(-12deg); }
.bigkey span { text-align: center; padding: 0 8%; }
.bigkey-shadow { width: 70%; height: 30px; margin-top: 18px; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }
.flist { list-style: none; margin: 56px 0 0; padding: 0; }
.flist li { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 30px 0; border-top: 1px solid var(--line); opacity: .38; transition: opacity .4s; }
.flist li.active { opacity: 1; }
.flist .mini { grid-row: span 2; width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--bg); color: var(--fg); font-size: 24px; box-shadow: 0 4px 0 var(--lip); }
.flist h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.015em; font-weight: 700; }
.flist p { margin: 0; color: var(--muted); max-width: 54ch; }

/* Decks */
.d-head { display: grid; gap: 0; margin-bottom: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.tab { display: inline-flex; align-items: center; gap: 10px; font: 650 17px var(--font); padding: 12px 20px; border-radius: 14px; border: 0; cursor: pointer; background: var(--cap); color: var(--muted);
  box-shadow: 0 5px 0 var(--cap-edge); transition: transform .14s var(--spring), box-shadow .14s, background-color .25s, color .25s; }
.tab svg { font-size: 20px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--amber); color: var(--amber-ink); box-shadow: 0 1px 0 #b06f05; transform: translateY(4px); }
.d-desc { color: var(--muted); margin: 0 0 28px; min-height: 3.1em; max-width: 70ch; }
.dgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(6px, 1vw, 12px); perspective: 1200px; background: #0f0d0b; padding: clamp(10px, 2vw, 24px); border-radius: 26px; box-shadow: 0 0 0 7px #2b2621, 0 40px 80px -40px #000; }
.dgrid .key { font-size: clamp(8px, .95vw, 13px); }
.dgrid .key.flip-out { animation: flipout .28s var(--ease) forwards; animation-delay: calc(var(--i) * 12ms); }
.dgrid .key.flip-in { animation: flipin .5s var(--spring) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes flipout { to { transform: rotateX(90deg); opacity: 0; } }
@keyframes flipin { from { transform: rotateX(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.dgrid .gap { visibility: hidden; }
.d-note { color: var(--muted); max-width: 64ch; margin: 28px 0 0; }

/* Real screenshots */
.real { overflow: hidden; }
.shots { display: grid; grid-template-columns: 1.6fr .55fr 1.6fr; gap: clamp(14px, 2.4vw, 32px); align-items: center; margin-top: 44px; }
.shot { margin: 0; will-change: transform; }
.shot img { border-radius: 18px; border: 8px solid #0f0d0b; box-shadow: 0 0 0 1px #332d27, 0 30px 60px -25px #000; }
.shot.s-ph img { border-radius: 26px; }
.shot figcaption { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* Setup: a real sequence, so it is numbered. */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.steps li { counter-increment: s; position: relative; padding-top: 86px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 28px;
  background: var(--cap); color: var(--amber); box-shadow: 0 6px 0 var(--cap-edge); }
.steps li::after { content: ""; position: absolute; top: 30px; left: 76px; right: -12px; height: 2px; background: var(--line); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .9s var(--ease); }
.steps li:last-child::after { display: none; }
.steps.in li::after { --p: 1; }
.steps.in li:nth-child(2)::after { transition-delay: .25s; }
.steps.in li:nth-child(3)::after { transition-delay: .5s; }
.steps h3 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }
.pair { display: flex; gap: 6px; margin-top: 20px; }
.pair span { width: 36px; height: 46px; border-radius: 9px; background: var(--cap); display: grid; place-items: center; font-size: 24px; font-weight: 700; color: var(--amber); box-shadow: inset 0 0 0 1px var(--line); }
.pair span.typed { animation: pop .35s var(--spring); }
.pair.ok span { background: #14532d; color: #bbf7d0; box-shadow: none; transition: background-color .3s, color .3s; }
@keyframes pop { from { transform: scale(.6); } }
.setup-tip { margin: 48px 0 0; color: var(--muted); }

/* Private */
.private { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; background: var(--desk-2); }
.plist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; font-size: 19px; }
.plist li { padding-left: 34px; position: relative; max-width: 50ch; }
.plist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 5px; background: var(--amber); box-shadow: 0 3px 0 #b06f05; }
.net { width: 100%; height: auto; overflow: visible; }
.net text { fill: var(--muted); font: 600 15px var(--font); }
.net .lbl { fill: var(--text); }
.strike { stroke-dasharray: 170; stroke-dashoffset: 170; transition: stroke-dashoffset .8s var(--ease) .3s; }
.private.in .strike { stroke-dashoffset: 0; }

/* Download */
.download { text-align: center; display: grid; justify-items: center; padding-bottom: clamp(60px, 8vw, 110px); }
.dl-title { font-size: clamp(46px, 8vw, 116px); line-height: .92; letter-spacing: -.025em; font-weight: 750; margin: 0 0 24px; max-width: 12ch; text-wrap: balance; }
.download .sub { margin-bottom: 36px; }
.download .ctas { justify-content: center; }
.unsigned { color: var(--muted); font-size: 15px; max-width: 58ch; margin: 26px 0 0; }

/* Footer, with the cat on its floor */
.foot { border-top: 1px solid var(--line); }
.cat-floor { position: relative; height: 70px; margin: 0 var(--gut); cursor: default; }
.cat { position: absolute; bottom: 0; left: 70%; width: 96px; height: 67px; transition-property: left; transition-timing-function: linear; }
.cat svg { width: 100%; height: 100%; overflow: visible; }
.cat .tail { transform-origin: 52px 47px; animation: swish 2.4s ease-in-out infinite; }
@keyframes swish { 50% { transform: rotate(-10deg); } }
.cat .leg-a { animation: step .32s linear infinite; transform-origin: center 36px; transform-box: fill-box; }
.cat .leg-b { animation: step .32s linear infinite reverse; transform-origin: center 36px; transform-box: fill-box; }
@keyframes step { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(-16deg); } }
.cat .breath { animation: breath 3s ease-in-out infinite; transform-origin: 40px 54px; }
@keyframes breath { 50% { transform: scaleY(.94); } }
.zz { position: absolute; right: 2px; top: -6px; font-weight: 700; color: var(--muted); animation: zz 2.4s ease-in-out infinite; }
@keyframes zz { from { opacity: 0; transform: translate(0, 6px); } 40% { opacity: 1; } to { opacity: 0; transform: translate(10px, -14px); } }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding: 22px var(--gut) 36px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.foot-row p { margin: 0; max-width: 62ch; }

/* Scroll reveals for section headings: one gentle rise. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .gh { margin-left: auto; }
  .stage { grid-template-columns: 1fr; gap: 0; perspective: none; }
  .tablet { transform: none; max-width: 520px; width: 100%; justify-self: center; }
  .beam { height: 56px; justify-content: center; }
  .beam-line { width: 2px; height: 100%; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 16px); }
  .monitor { transform: none; }
  .key { font-size: clamp(10px, 2.6vw, 14px); }
  .key svg { font-size: clamp(20px, 5.4vw, 30px); }
  .features { grid-template-columns: 1fr; }
  .sticky-col { display: none; }
  .flist li { opacity: 1; }
  .dgrid { grid-template-columns: repeat(4, 1fr); }
  .dgrid .key { font-size: clamp(9px, 2.5vw, 13px); }
  .dgrid .key svg { font-size: clamp(16px, 4.8vw, 26px); }
  .shots { grid-template-columns: 1fr 1fr; }
  .shot.s-ph { grid-row: span 2; order: 2; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps li::after { display: none; }
  .private { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .gh span { display: none; }
  .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .shot.s-ph { grid-row: auto; max-width: 60%; justify-self: center; }
  .tablet { padding: 12px 12px 16px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .tablet, .monitor { transform: none; }
}

/* Wide screens: copy on the left, the PC on the right with the tablet in front of it, all above the fold. */
@media (min-width: 1100px) {
  .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: center; min-height: calc(100vh - 70px); padding-top: 24px; padding-bottom: 64px; }
  .hero-title { font-size: clamp(48px, 5.2vw, 88px); line-height: .98; }
  .stage { margin-top: 0; grid-template-columns: 1fr; grid-template-rows: auto; padding-bottom: 12%; }
  .stage > * { grid-area: 1 / 1; }
  .beam { display: none; }
  .monitor { justify-self: end; width: 86%; align-self: start; }
  .tablet { z-index: 2; justify-self: start; align-self: end; width: 54%; margin-bottom: -16%; }
}
.dgrid { max-width: 1120px; }
.confirm[hidden] { display: none; }
.hero-title { text-wrap: balance; }
.hero-title .line { display: inline; }

/* Coming soon: the Android, iPhone and iPad apps. An amber panel so it reads as news, not fine print. */
.soon { display: flex; align-items: center; gap: 16px; margin: 30px 0 0; padding: 16px 20px 16px 16px; max-width: 34rem; border-radius: 18px; text-align: left;
  background: rgba(245, 165, 36, .09); border: 1px solid rgba(245, 165, 36, .45); }
.soon p { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.soon b { color: var(--text); font-weight: 700; }
.soon-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-size: 13px; font-weight: 700; }
.soon-icons { display: flex; gap: 4px; flex: none; padding: 12px; border-radius: 14px; background: var(--amber); color: var(--amber-ink); font-size: 24px; box-shadow: 0 4px 0 #b06f05; }
.js .hero .soon { opacity: 0; animation: fadein .8s var(--ease) 1.05s forwards; }
.download .soon { margin-top: 34px; }

/* Releases page: a timeline, newest first. Each version is a keycap on the line. */
.nav a[aria-current="page"] { color: var(--text); }
.rel-head { padding-bottom: 32px; }
.rel-title { font-size: clamp(48px, 7vw, 96px); line-height: .98; letter-spacing: -.025em; font-weight: 750; margin: 0 0 20px; }
.timeline { --p: 0; list-style: none; margin: 0; padding: 0 var(--gut) clamp(72px, 10vw, 140px); position: relative; max-width: 1100px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: calc(var(--gut) + 37px); top: 40px; bottom: clamp(72px, 10vw, 140px); width: 2px; background: var(--line); }
.timeline::after { background: var(--amber); transform-origin: top; transform: scaleY(var(--p)); }
.release { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding-bottom: clamp(56px, 7vw, 96px); }
.rel-cap { position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-weight: 800; font-size: 24px; background: var(--cap); color: var(--text); box-shadow: 0 6px 0 var(--cap-edge), 0 14px 24px -10px #000; }
.release:first-child .rel-cap { background: var(--amber); color: var(--amber-ink); box-shadow: 0 6px 0 #b06f05, 0 14px 24px -10px #000; }
.js .release .rel-cap { transform: translateY(-24px) scale(.8); opacity: 0; transition: transform .6s var(--spring), opacity .4s; }
.js .release .rel-body { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease) .1s, transform .7s var(--ease) .1s; }
.js .release.in .rel-cap, .js .release.in .rel-body { opacity: 1; transform: none; }
.rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 10px; }
.rel-meta h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; line-height: 1.1; }
.rel-meta time { color: var(--muted); font-size: 16px; }
.tag { font-size: 14px; font-weight: 650; padding: 4px 11px; border-radius: 999px; background: var(--cap); color: var(--muted); border: 1px solid var(--line); }
.tag.latest { background: var(--amber); color: var(--amber-ink); border-color: transparent; }
.rel-sum { font-size: 20px; color: var(--text); max-width: 60ch; margin: 16px 0 22px; }
.hl { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hl li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 12px; background: var(--cap); font-size: 15px; font-weight: 600; box-shadow: 0 3px 0 var(--cap-edge); }
.hl svg { font-size: 18px; color: var(--amber); }
.groups { border-top: 1px solid var(--line); margin-bottom: 28px; }
.groups details { border-bottom: 1px solid var(--line); }
.groups summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; font-weight: 700; font-size: 19px; }
.groups summary::-webkit-details-marker { display: none; }
.groups summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.groups details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.groups ul { margin: 0; padding: 0 0 20px 22px; display: grid; gap: 10px; color: var(--muted); max-width: 70ch; }
.groups li::marker { color: var(--amber); }
.groups details[open] ul { animation: fadein .35s var(--ease); }
.btn.small { padding: 11px 18px 12px; font-size: 16px; border-radius: 12px; }
@media (max-width: 560px) {
  .release { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
  .rel-cap { width: 52px; height: 52px; border-radius: 15px; font-size: 18px; }
  .timeline::before, .timeline::after { left: calc(var(--gut) + 25px); top: 30px; }
}

/* Key styles: the same eight keys, redrawn in each of the app's six styles. */
.styles { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.st-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.st-pick button { font: 650 16px var(--font); padding: 10px 16px; border-radius: 12px; border: 0; cursor: pointer; background: var(--cap); color: var(--muted); box-shadow: 0 4px 0 var(--cap-edge); transition: transform .14s var(--spring), box-shadow .14s, background-color .25s, color .25s; }
.st-pick button:hover { color: var(--text); }
.st-pick button[aria-checked="true"] { background: var(--amber); color: var(--amber-ink); box-shadow: 0 1px 0 #b06f05; transform: translateY(3px); }
.st-desc { color: var(--text); margin: 22px 0 0; min-height: 3em; max-width: 46ch; }
.st-cat { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 16px; margin: 26px 0 0; max-width: 48ch; }
.st-cat svg { font-size: 20px; color: var(--ginger); margin-top: 2px; }
.st-stage { position: relative; background: #0f0d0b; border-radius: 28px; padding: clamp(18px, 3vw, 36px); box-shadow: 0 0 0 7px #2b2621, 0 40px 80px -40px #000; overflow: hidden; }
.st-deck { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 18px); }
.st-deck .key { --key-rgb: 37, 34, 31; --fg-rgb: 241, 233, 221; font-size: clamp(10px, 1.1vw, 15px); cursor: default; z-index: 1;
  transition: box-shadow .6s var(--ease), background-color .6s var(--ease), transform .3s var(--spring); }
.st-deck .key.down { transform: translateY(4px); }
.st-deck::before { content: ""; position: absolute; inset: 10% 8%; pointer-events: none; opacity: 0; transition: opacity .6s; filter: blur(30px);
  background: radial-gradient(closest-side at 28% 35%, rgba(245, 165, 36, .32), transparent), radial-gradient(closest-side at 74% 68%, rgba(124, 92, 255, .3), transparent); }
.st-deck.ks-glass::before { opacity: 1; }
.ks-sunken .key { background-image: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.06) 45%, rgba(255,255,255,.04) 100%);
  box-shadow: inset 0 5px 10px rgba(0,0,0,.72), inset 0 1px 2px rgba(0,0,0,.6), inset 0 -1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.09), 0 -1px 0 rgba(0,0,0,.5); }
.ks-sunken .key.down { transform: scale(.975); box-shadow: inset 0 8px 18px rgba(0,0,0,.85), inset 0 1px 3px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.07); }
.ks-soft .key { background-image: linear-gradient(145deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.02) 50%, rgba(0,0,0,.22) 100%);
  box-shadow: -6px -6px 14px rgba(255,255,255,.08), 8px 9px 18px rgba(0,0,0,.75), inset 1px 1px 0 rgba(255,255,255,.09), inset -1px -1px 0 rgba(0,0,0,.3); }
.ks-soft .key.down { transform: scale(.98); box-shadow: -1px -1px 3px rgba(255,255,255,.04), 1px 2px 4px rgba(0,0,0,.4), inset 5px 6px 12px rgba(0,0,0,.65), inset -4px -4px 10px rgba(255,255,255,.07); }
.ks-glass .key { background-color: rgba(var(--key-rgb), .34); background-image: linear-gradient(165deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.05) 38%, rgba(255,255,255,0) 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 0 0 1px rgba(255,255,255,.13), inset 0 -14px 22px -8px rgba(var(--fg-rgb), .22), 0 10px 22px -6px rgba(0,0,0,.5); }
.ks-glass .key.down { transform: scale(.97); background-color: rgba(var(--key-rgb), .5); }
.ks-pad .key { background-image: radial-gradient(ellipse 80% 55% at 50% 118%, rgba(var(--fg-rgb), .3), rgba(var(--fg-rgb), 0));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 -2px 0 rgba(var(--fg-rgb), .6), 0 2px 0 rgba(0,0,0,.35); }
.ks-pad .key.down { transform: scale(.97); background-image: radial-gradient(ellipse 110% 90% at 50% 100%, rgba(var(--fg-rgb), .55), rgba(var(--fg-rgb), .08)); box-shadow: inset 0 0 0 1px rgba(var(--fg-rgb), .55), inset 0 -2px 0 rgba(var(--fg-rgb), .9); }
.ks-outline .key { background-color: rgba(var(--key-rgb), .16); box-shadow: inset 0 0 0 1.5px rgba(var(--fg-rgb), .36); }
.ks-outline .key.down { transform: scale(.97); background-color: rgba(var(--fg-rgb), .14); box-shadow: inset 0 0 0 2px rgba(var(--fg-rgb), .85); }

/* Stats: the editor's Stats page, drawn on the site. */
.stats { background: var(--desk-2); }
.sx-copy { max-width: 720px; margin-bottom: 44px; }
.sx-copy .soon-tag { margin-bottom: 18px; }
.sx-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.sx-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: inherit; }
.sx-card, .sx-panel { background: var(--desk); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.sx-card { display: grid; gap: 4px; }
.sx-card svg { font-size: 22px; color: var(--amber); margin-bottom: 8px; }
.sx-card b { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sx-card span { color: var(--muted); font-size: 15px; }
.sx-panel h3 { margin: 0 0 18px; font-size: 17px; font-weight: 700; }
.sx-week { grid-column: span 4; }
.sx-panel:not(.sx-week):not(.sx-badges) { grid-column: span 2; }
.sx-badges { grid-column: span 4; }
.sx-bars { height: 210px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; }
.sx-bars div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.sx-bars span { width: 100%; max-width: 46px; height: calc(var(--h) * 82%); border-radius: 8px 8px 4px 4px; background: #4a423b; transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--spring); }
.sx-bars .peak span { background: var(--amber); }
.sx-bars i { font-style: normal; color: var(--muted); font-size: 13px; }
.sx-board.in .sx-bars span { transform: none; }
.sx-board.in .sx-bars div:nth-child(2) span { transition-delay: .07s; }
.sx-board.in .sx-bars div:nth-child(3) span { transition-delay: .14s; }
.sx-board.in .sx-bars div:nth-child(4) span { transition-delay: .21s; }
.sx-board.in .sx-bars div:nth-child(5) span { transition-delay: .28s; }
.sx-board.in .sx-bars div:nth-child(6) span { transition-delay: .35s; }
.sx-board.in .sx-bars div:nth-child(7) span { transition-delay: .42s; }
.sx-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sx-rank li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 15px; }
.sx-rank li::after { content: ""; grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--amber); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .3s; width: calc(var(--w) * 100%); }
.sx-rank.apps li::after { background: #60a5fa; }
.sx-board.in .sx-rank li::after { transform: none; }
.sx-rank b { font-variant-numeric: tabular-nums; }
.sx-badges ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sx-badges li { display: flex; gap: 12px; align-items: center; }
.sx-badges .bd { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--c); background: var(--cap); box-shadow: inset 0 0 0 2px var(--c); transform: scale(0); transition: transform .5s var(--spring); }
.sx-board.in .sx-badges .bd { transform: none; }
.sx-board.in .sx-badges li:nth-child(1) .bd { transition-delay: .5s; }
.sx-board.in .sx-badges li:nth-child(2) .bd { transition-delay: .62s; }
.sx-board.in .sx-badges li:nth-child(3) .bd { transition-delay: .74s; }
.sx-board.in .sx-badges li:nth-child(4) .bd { transition-delay: .86s; }
.sx-badges div { display: grid; font-size: 15px; }
.sx-badges div span { color: var(--muted); font-size: 14px; }
@media (max-width: 960px) {
  .styles { grid-template-columns: 1fr; }
  .sx-board { grid-template-columns: 1fr 1fr; }
  .sx-cards { grid-template-columns: 1fr; }
  .sx-week, .sx-badges { grid-column: 1 / -1; }
  .sx-panel:not(.sx-week):not(.sx-badges) { grid-column: span 1; }
}
@media (max-width: 560px) {
  .sx-board { grid-template-columns: 1fr; }
  .sx-panel:not(.sx-week):not(.sx-badges) { grid-column: 1 / -1; }
  .sx-badges ul { grid-template-columns: 1fr; }
  .st-deck { gap: 8px; }
  .st-deck .key { font-size: 10px; }
}
