/* Macify site. Tokens mirror DESIGN.md. */
:root {
  --canvas: #000;
  --tile-1: #0a0a0b;
  --tile-2: #141416;
  --tile-3: #1c1c1f;
  --ink: #f5f5f7;
  --ink-muted: #a1a1a6;
  --ink-faint: #6e6e73;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --link: #2997ff;
  --focus: #0071e3;
  --parchment: #f5f5f7;
  --ink-light: #1d1d1f;
  --ink-light-muted: #6e6e73;
  --link-light: #0066cc;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Segoe UI Symbol", "Apple Symbols", monospace;

  --r-sm: 8px; --r-md: 12px; --r-key: 14px; --r-lg: 24px; --r-xl: 32px;
  --section: clamp(67px, 9.8vw, 126px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --product-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-strong);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
kbd { font: 500 .85em var(--mono); padding: .1em .45em; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--tile-2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
section[id], main[id] { scroll-margin-top: 48px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #000; padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 16px; }

/* Layout */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.section { padding: var(--section) 0; position: relative; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.tile { background: var(--tile-1); }
.light { background: var(--parchment); color: var(--ink-light); color-scheme: light; }

/* Type */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.hero-title { font-weight: 600; font-size: clamp(48px, 8vw, 104px); line-height: 1; letter-spacing: -0.045em; }
.display { font-weight: 600; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.04em; }
.lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: var(--ink-muted); max-width: 640px; margin: 24px auto 0; }
.light .lead { color: var(--ink-light-muted); }
.footnote { margin-top: 56px; color: var(--ink-faint); font-size: 14px; }
.glyph { font-family: var(--mono); font-weight: 400; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 24px; border-radius: 999px;
  background: var(--ink); color: #000; font-size: 17px; letter-spacing: -0.01em;
  transition: transform .12s var(--ease), background .2s var(--ease);
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(.96); }
.btn-sm { min-height: 28px; padding: 5px 14px; font-size: 13px; }
.btn-lg { min-height: 52px; padding: 14px 32px; width: 100%; }
.btn-dark { background: var(--ink-light); color: #fff; }
.btn-dark:hover { background: #000; }
.link { color: var(--link); font-size: 17px; display: inline-flex; align-items: center; gap: 4px; }
.link::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .25s var(--ease); }
.link:hover::after { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Hero CTA: a light that orbits the pill, a magnetic pull, and an arrow that leans in */
.btn-glow {
  --fill: #e4e4e9;
  position: relative; gap: 10px; padding: 12px 22px 12px 26px; font-weight: 500;
  background: transparent; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .25);
  translate: var(--mx, 0px) var(--my, 0px);
  transition: transform .12s var(--ease), translate .5s var(--spring), box-shadow .4s var(--ease);
}
.btn-glow:hover { background: transparent; --fill: #f1f1f4; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 16px 44px -10px rgba(255, 255, 255, .4); }
/* Both layers sit at z -1 inside the pill (the magnet translate makes it a stacking context): halo first, fill over it. */
.btn-glow::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--a), transparent 0 55%, rgba(255, 255, 255, .9) 72%, rgba(41, 151, 255, .6) 80%, transparent 92%);
  filter: blur(7px); opacity: .75; animation: rim 4s linear infinite, lightOn 1.2s var(--ease) 3.2s both;
  transition: opacity .4s var(--ease), inset .4s var(--ease);
}
.btn-glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%) no-repeat,
    radial-gradient(70px 44px at var(--hx, 50%) var(--hy, 50%), rgba(41, 151, 255, .14), transparent 70%),
    linear-gradient(180deg, #fff, var(--fill));
  background-size: 250% 100%, 100% 100%, 100% 100%; background-position: 150% 0, 0 0, 0 0;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .12);
  animation: ctaShine 6s var(--ease) 4s infinite;
}
@keyframes ctaShine { 0% { background-position: 150% 0, 0 0, 0 0; } 25%, 100% { background-position: -50% 0, 0 0, 0 0; } }
.btn-glow > * { position: relative; z-index: 1; }
.btn-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--spring); }
.btn-arrow path:first-child { stroke-dasharray: 10; stroke-dashoffset: 10; transition: stroke-dashoffset .4s var(--ease); }
.btn-glow:hover::before { opacity: 1; inset: -5px; }
.btn-glow:hover .btn-arrow { transform: translateX(3px); }
.btn-glow:hover .btn-arrow path:first-child { stroke-dashoffset: 0; }
.cta-row { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* Nav: full width at the top, then it gathers into a floating glass island */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: center; padding: 0 0; transition: padding .6s var(--ease); animation: navIn 1s var(--ease) .1s both; }
@keyframes navIn { from { opacity: 0; translate: 0 -16px; } }
/* Top state: a soft fade and hairline so the bar reads as one edge, gone once the island forms */
.nav::before { content: ""; position: absolute; inset: 0 0 auto; height: 56px; background: linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .35)); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); box-shadow: inset 0 -1px 0 var(--line); transition: opacity .5s var(--ease); pointer-events: none; }
.nav.scrolled::before { opacity: 0; }
.nav-inner {
  position: relative; width: 100%; max-width: 1200px; height: 56px; padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  border-radius: 0; background: transparent; box-shadow: 0 0 0 1px transparent;
  transition: max-width .7s var(--ease), height .6s var(--ease), padding .6s var(--ease), border-radius .7s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.scrolled { padding-top: 12px; }
.nav.scrolled .nav-inner {
  max-width: 860px; height: 50px; padding: 0 6px 0 18px; border-radius: 999px;
  background: rgba(20, 20, 23, .78); -webkit-backdrop-filter: saturate(180%) blur(48px); backdrop-filter: saturate(180%) blur(48px);
  box-shadow: 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 50px -18px rgba(0, 0, 0, .9);
}
.nav.hidden .nav-inner { translate: 0 -90px; }
.nav-inner { transition-property: max-width, height, padding, border-radius, background, box-shadow, translate; }
.nav-progress { position: absolute; left: 26px; right: 26px; bottom: 0; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .7)); transform-origin: left; transform: scaleX(var(--prog, 0)); opacity: 0; transition: opacity .4s var(--ease); }
.nav.scrolled .nav-progress { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.brand .mark { transition: transform .8s var(--spring); }
.brand:hover .mark { transform: rotate(90deg) scale(1.1); }
.mark { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mark-lg { width: 44px; height: 44px; stroke-width: 1.6; }
.nav-links { position: relative; display: flex; gap: 2px; font-size: 13px; color: var(--ink-muted); }
.nav-links a { position: relative; z-index: 1; padding: 8px 12px; border-radius: 999px; transition: color .25s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-pill { position: absolute; top: 0; left: 0; height: 100%; width: var(--pw, 0px); transform: translateX(var(--px, 0px)); border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); opacity: var(--po, 0); transition: transform .5s var(--spring), width .5s var(--spring), opacity .3s var(--ease); pointer-events: none; }
.nav-right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-buy { position: relative; overflow: hidden; min-height: 32px; padding: 4px 4px 4px 14px; gap: 8px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .08); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform .12s var(--ease), background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.nav-buy:hover { background: rgba(255, 255, 255, .16); }
.nav-buy .nav-price { font: 500 11px var(--mono); padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--ink-muted); transition: background .3s var(--ease), color .3s var(--ease); }
.nav.scrolled .nav-buy { background: var(--ink); color: #000; box-shadow: none; }
.nav.scrolled .nav-buy:hover { background: #fff; }
.nav.scrolled .nav-buy .nav-price { background: rgba(0, 0, 0, .08); color: #000; }
.nav-buy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .9) 50%, transparent 65%); translate: -120% 0; animation: navShine 5s var(--ease) 3s infinite; mix-blend-mode: overlay; pointer-events: none; }
@keyframes navShine { 0% { translate: -120% 0; } 30%, 100% { translate: 120% 0; } }
.nav.scrolled .nav-buy:hover .nav-price { background: rgba(0, 0, 0, .14); }
.nav-menu { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.nav-menu i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--spring), top .45s var(--spring); }
.nav-menu i:first-child { top: 16px; }
.nav-menu i:last-child { top: 23px; }
.nav-menu[aria-expanded="true"] i:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-menu[aria-expanded="true"] i:last-child { top: 19.5px; transform: rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); display: flex; flex-direction: column; justify-content: center; padding: 96px 28px 48px; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet a:not(.btn) { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.25; opacity: 0; translate: 0 20px; transition: opacity .5s var(--ease), translate .6s var(--ease); transition-delay: calc(var(--i) * 50ms); }
.sheet .btn { margin-top: 32px; align-self: flex-start; opacity: 0; translate: 0 20px; transition: opacity .5s var(--ease) .3s, translate .6s var(--ease) .3s; }
.sheet.open a { opacity: 1; translate: 0 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Keycap: the product */
.keycap {
  --size: 64px;
  position: relative; display: grid; place-items: center;
  width: var(--size); height: var(--size);
  border-radius: var(--r-key);
  background: linear-gradient(180deg, #26262a 0%, var(--tile-3) 55%, #161618 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -2px 0 rgba(0, 0, 0, .5), var(--product-shadow);
  font: 500 13px/1 var(--mono); color: var(--ink);
  transition: transform .14s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  user-select: none;
}
.keycap.lit, .key.lit {
  background: linear-gradient(180deg, #ffffff 0%, #ececef 100%);
  color: #000;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 0 32px rgba(255, 255, 255, .28), 0 0 0 1px rgba(255, 255, 255, .6);
}
.keycap.pressed, .key.lit { transform: translateY(2px); }

.legend { position: absolute; transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
.legend-mac { opacity: 0; transform: translateY(14px); filter: blur(4px); display: grid; justify-items: center; gap: 4px; }
.legend-mac b { font-weight: 400; }
.mac .legend-win { opacity: 0; transform: translateY(-14px); filter: blur(4px); }
.mac .legend-mac { opacity: 1; transform: none; filter: none; }

/* Hero: one key under a spotlight, like a product shot. The stage holds while you scroll: the key comes closer, flies into its place as alt, and a keyboard builds around it. JS sets the phase variables (--cp, --s1, --fly, --build, --land, --tilt, --s2) from 0 to 1. */
.hero { position: relative; height: 340svh; }
.hero-stage {
  position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 24px 32px; text-align: center;
}
.hero-light {
  position: absolute; left: 50%; top: 0; width: min(1200px, 160vw); height: 85%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(42% 70% at 50% 0%, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035) 50%, transparent 78%);
  opacity: calc(1 - var(--tilt, 0) * .45); animation: lightOn 2.6s var(--ease) .15s both;
}
@keyframes lightOn { from { opacity: 0; } }

.hk-wrap {
  --k: clamp(150px, min(22vw, 27vh), 240px);
  position: relative; width: var(--k); height: var(--k); perspective: 900px; flex: none; z-index: 3;
  animation: hkIn 2s var(--ease) .35s both, float 6s ease-in-out 2.4s infinite;
}
@keyframes hkIn { from { opacity: 0; translate: 0 48px; scale: .9; } }
.hk {
  position: absolute; inset: 0; border-radius: 21%; cursor: pointer;
  background: radial-gradient(130% 100% at 50% 0%, #313136 0%, #1c1c20 48%, #111113 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .15), inset 0 -2px 4px rgba(0, 0, 0, .55),
    0 calc(var(--k) * .045) 0 #09090a, 0 calc(var(--k) * .045) 0 1px rgba(255, 255, 255, .05),
    0 calc(var(--k) * .22) calc(var(--k) * .3) calc(var(--k) * -.08) rgba(0, 0, 0, .95);
  transform: rotateX(calc((14deg - var(--ty, 0) * 18deg) * (1 - var(--fly, 0)))) rotateY(calc(var(--tx, 0) * 24deg * (1 - var(--fly, 0)))) translateY(var(--press, 0px));
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), translate .75s var(--spring);
}
/* The dish: a key's top is slightly concave, so it reads darker at the top edge. */
.hk::before { content: ""; position: absolute; inset: 7%; border-radius: 17%; background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .035)); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .05); }
/* Studio light that slides across the face as the key turns. */
.hk::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(70% 55% at calc(50% + var(--tx, 0) * 90%) calc(18% + var(--ty, 0) * 70%), rgba(255, 255, 255, .13), transparent 70%); }
.hk.down { --press: calc(var(--k) * .035); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .12), inset 0 -2px 4px rgba(0, 0, 0, .55), 0 calc(var(--k) * .01) 0 #09090a, 0 calc(var(--k) * .01) 0 1px rgba(255, 255, 255, .05), 0 calc(var(--k) * .12) calc(var(--k) * .2) calc(var(--k) * -.08) rgba(0, 0, 0, .95); }

.hk > span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-family: var(--mono); line-height: 1; transition: opacity .7s var(--ease), translate 1s var(--ease), filter .7s var(--ease), text-shadow .3s var(--ease); }
.hk-alt { font-size: calc(var(--k) * .16); font-weight: 500; color: rgba(245, 245, 247, .62); }
.hk-cmd { font-size: calc(var(--k) * .34); color: var(--ink); opacity: 0; translate: 0 22%; filter: blur(10px); text-shadow: 0 0 calc(var(--k) * .12) rgba(255, 255, 255, .3); }
.hk-word { place-items: end center !important; padding-bottom: 17%; font-size: calc(var(--k) * .068); font-weight: 500; letter-spacing: .06em; color: var(--ink-muted); opacity: 0; translate: 0 8px; transition-delay: .3s !important; }
.hk.cmd .hk-alt { opacity: 0; translate: 0 -24%; filter: blur(10px); }
.hk.cmd .hk-cmd { opacity: 1; translate: 0 -6%; filter: none; }
.hk.cmd .hk-word { opacity: 1; translate: 0 0; }
.hk.down .hk-cmd { text-shadow: 0 0 calc(var(--k) * .2) rgba(255, 255, 255, .7); }
.hk-sheen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.hk-sheen::before { content: ""; position: absolute; inset: -30%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .16) 50%, transparent 58%); translate: -100% 0; animation: sheen 1.6s var(--ease) 1.1s forwards; }
@keyframes sheen { to { translate: 100% 0; } }
/* Backlight spilling onto the desk, brighter once the key is ⌘ and when it is pressed. */
.hk-floor { position: absolute; left: -70%; right: -70%; top: 78%; height: 70%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, .13), transparent); opacity: .35; transition: opacity 1.2s var(--ease); }
.hk-wrap:has(.cmd) .hk-floor { opacity: 1; }
.hk-wrap:has(.down) .hk-floor { opacity: 1.6; transition-duration: .12s; }

.hk-hint { height: 18px; margin-top: clamp(22px, 4.5vh, 44px); font: 500 13px/18px var(--mono); color: var(--ink-faint); opacity: calc(1 - var(--cp, 0) * 2); animation: lightOn 1s var(--ease) 3.2s both; }
.hk-hint span { display: inline-flex; gap: 6px; align-items: center; animation: rise .45s var(--ease); }
.hk-hint b { font-weight: 500; color: var(--ink); }
.hk-hint em { font: 400 15px/18px var(--sans); color: var(--ink-muted); margin-left: 10px; }

.hero-copy { position: relative; z-index: 2; margin-top: clamp(16px, 3vh, 32px); transform: translateY(calc(var(--cp, 0) * -70px)); opacity: calc(1 - var(--cp, 0)); }
.hero .hero-title { font-size: clamp(44px, min(7vw, 9.5vh), 96px); text-wrap: balance; }
.hero .lead { margin-top: 18px; max-width: 560px; text-wrap: balance; }
.hero .cta-row { margin-top: 30px; }
.hero-title .word { display: inline-block; opacity: 0; translate: 0 .3em; animation: wordUp 1.3s var(--ease) forwards; animation-delay: calc(1.75s + var(--w) * 110ms); }
@keyframes wordUp { to { opacity: 1; translate: 0 0; } }
.hero-in { opacity: 0; translate: 0 14px; animation: heroIn 1.2s var(--ease) forwards; animation-delay: var(--t, 0s); }
@keyframes heroIn { to { opacity: 1; translate: 0 0; } }
/* The idle key floats; the drift fades out as the scroll story takes over. */
@keyframes float { 50% { translate: 0 calc(-9px * (1 - var(--cp, 0))); } }
.hk:hover:not(.down) { --press: calc(var(--k) * -.025); }
.hk:hover .hk-cmd { text-shadow: 0 0 calc(var(--k) * .16) rgba(255, 255, 255, .55); }
.hk.down::after { background: radial-gradient(70% 60% at 50% 40%, rgba(255, 255, 255, .2), transparent 70%); }

/* The second key of a shortcut slides out from behind ⌘, and the pair centers itself. */
.hk-mate { inset: 0 auto auto calc(var(--k) * 1.14); width: var(--k); height: var(--k); opacity: 0; scale: .82; translate: calc(var(--k) * -1.14) 0; pointer-events: none; transition: transform .14s var(--ease), box-shadow .14s var(--ease), opacity .35s var(--ease), translate .75s var(--spring), scale .75s var(--spring); }
.hk-mate > span { font-size: calc(var(--k) * .26); color: var(--ink); }
.hk-mate.word > span { font-size: calc(var(--k) * .13); }
.pair .hk-mate { opacity: 1; scale: 1; translate: calc(var(--k) * -.57) 0; pointer-events: auto; }
.pair #hero-key { translate: calc(var(--k) * -.57) 0; }
.hk-mate.down > span { text-shadow: 0 0 calc(var(--k) * .14) rgba(255, 255, 255, .6); }

/* A ring of light that runs across the desk from a pressed key. */
.hk-ripple { position: absolute; z-index: -1; left: calc(50% + var(--rx, 0px)); top: 96%; width: calc(var(--k) * 1.2); height: calc(var(--k) * .32); translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); box-shadow: 0 0 24px rgba(255, 255, 255, .12), inset 0 0 18px rgba(255, 255, 255, .08); pointer-events: none; animation: ripple 1.3s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes ripple { from { scale: .55; opacity: 1; } to { scale: 2.6; opacity: 0; } }
.hero-beam {
  position: absolute; left: 50%; top: -6%; width: min(1000px, 150vw); height: 96%; translate: -50% 0; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 163deg, rgba(255, 255, 255, .05) 180deg, transparent 197deg);
  -webkit-mask-image: linear-gradient(180deg, #000 15%, transparent 88%); mask-image: linear-gradient(180deg, #000 15%, transparent 88%);
  opacity: calc(1 - var(--tilt, 0)); transform-origin: 50% 0;
  animation: lightOn 3s var(--ease) .5s both, beam 8s ease-in-out 3.5s infinite;
}
@keyframes beam { 50% { scale: 1.12 1; } }
.past .hero-copy { pointer-events: none; }

.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 1px; height: 48px; translate: -50% 0; overflow: hidden; background: rgba(255, 255, 255, .1); opacity: calc(1 - var(--cp, 0) * 4); animation: lightOn 1.2s var(--ease) 3.6s both; }
.scroll-cue i { position: absolute; inset: 0; background: linear-gradient(transparent, var(--ink)); translate: 0 -100%; animation: cue 2.4s var(--ease) 4s infinite; }
@keyframes cue { 70%, 100% { translate: 0 100%; } }

.hero-say { position: absolute; left: 0; right: 0; padding: 0 24px; text-align: center; pointer-events: none; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.say-1 { top: 66%; font-size: clamp(32px, 4.4vw, 60px); opacity: var(--s1, 0); transform: translateY(calc((1 - var(--s1, 0)) * 28px)); }

/* The keyboard that builds around the key. Each key flies in from depth, nearest to alt first (--dly). */
.hero-deck { position: absolute; left: 50%; top: 40%; width: min(860px, 92vw, (76svh - 230px) * 2); translate: -50% -50%; perspective: 1400px; pointer-events: none; }
.hero-deck .keyboard {
  max-width: none; transform-origin: 50% 70%; transform-style: preserve-3d;
  transform: rotateX(calc(var(--tilt, 0) * 26deg)) scale(calc(1 + var(--tilt, 0) * .05));
  background: rgba(5, 5, 6, var(--build, 0));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, calc(var(--build, 0) * .1)), 0 70px 120px -30px rgba(0, 0, 0, calc(var(--build, 0) * .9));
}
.hero-deck .krow { transform-style: preserve-3d; }
.hero-deck .key {
  --l: clamp(0, (var(--build, 0) - var(--dly, 0) * .55) / .45, 1);
  opacity: var(--l); transform: translate3d(0, calc((1 - var(--l)) * 40px), calc((1 - var(--l)) * -520px));
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.hero-deck .key .key { opacity: 1; transform: none; }
.hero-deck .hero-alt {
  opacity: var(--land, 0); transform: none; color: var(--ink);
  background: linear-gradient(180deg, #2e2e33, #1b1b1e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 34px rgba(255, 255, 255, .16);
}
.hero-deck .hero-alt > em { text-shadow: 0 0 12px rgba(255, 255, 255, .6); }
.hero-deck .hero-alt.lit { background: linear-gradient(180deg, #fff, #e8e8ec); color: #000; box-shadow: 0 0 44px rgba(255, 255, 255, .5); }
.say-2 { top: calc(100% + clamp(20px, 4vh, 48px)); font-size: clamp(30px, 3.8vw, 52px); opacity: var(--s2, 0); transform: translateY(calc((1 - var(--s2, 0)) * 28px)); }
.say-2 span { color: var(--ink-faint); }
.say-keys { height: 22px; margin-top: 22px; font: 500 15px/22px var(--mono); letter-spacing: 0; color: var(--ink-muted); }
.say-keys span { display: inline-flex; gap: 8px; animation: rise .45s var(--ease); }
.say-keys b { font-weight: 500; color: var(--ink); }
.say-keys em { font-style: normal; margin-left: 10px; }

/* The three keys */
.trio { display: flex; justify-content: center; gap: clamp(24px, 6vw, 72px); margin-top: 72px; }
.trio-item { display: grid; justify-items: center; gap: 20px; }
.keycap-md { --size: clamp(84px, 11vw, 120px); font-size: 15px; }
.keycap-md .legend-win { left: 14%; top: 14%; }
.keycap-md .legend-mac b { font-size: clamp(32px, 4.4vw, 48px); }
.trio figcaption { display: grid; gap: 2px; }
.trio figcaption b { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.trio figcaption span { color: var(--ink-faint); font-size: 14px; }

/* Readout */
.readout { text-align: center; margin: 64px auto 40px; min-height: 140px; }
.readout-keys { display: flex; gap: 8px; justify-content: center; }
.chipkey {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: 8px; background: var(--tile-3); border: 1px solid var(--line-strong);
  font: 500 14px/1 var(--mono); color: var(--ink);
}
.chipkey.wide { padding: 0 14px; }
.readout .chipkey { min-width: 48px; height: 48px; font-size: 20px; border-radius: 12px; animation: pop .45s var(--spring); }
.readout-name { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; margin-top: 20px; }
.readout-sends { font: 400 13px var(--mono); color: var(--ink-faint); margin-top: 8px; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* Keyboard */
.keyboard {
  --gap: clamp(3px, .6vw, 7px);
  max-width: 920px; margin: 0 auto; padding: clamp(10px, 1.6vw, 20px);
  background: #050506; border-radius: clamp(14px, 2vw, 24px);
  box-shadow: var(--product-shadow);
  display: grid; gap: var(--gap);
}
.krow { display: flex; gap: var(--gap); aspect-ratio: 15 / 1.05; }
.key {
  flex: var(--u, 1) 1 0; min-width: 0;
  position: relative; border-radius: clamp(4px, .7vw, 9px);
  background: linear-gradient(180deg, #1f1f22, #18181a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .6);
  font: 500 clamp(7px, 1.05vw, 12px)/1 var(--mono); color: var(--ink-muted);
  transition: transform .1s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.key > span { position: absolute; left: 12%; top: 16%; }
.key > em { position: absolute; right: 12%; bottom: 14%; font-style: normal; font-size: 1.2em; color: var(--ink); }
.key.lit > em { color: #000; }
.key.split { background: none; box-shadow: none; display: grid; grid-template-rows: 1fr 1fr; gap: 2px; }
.key.split .key > span { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.key.dim { color: var(--ink-faint); }

/* Chips */
.chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 40px auto 0; max-width: 980px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px 8px 10px;
  border-radius: 999px; background: var(--tile-2); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-muted); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .12s var(--ease);
}
.chip .g { font: 500 13px var(--mono); color: var(--ink); background: var(--tile-3); padding: 5px 9px; border-radius: 999px; transition: inherit; }
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: #000; border-color: var(--ink); }
.chip[aria-pressed="true"] .g { background: rgba(0, 0, 0, .08); color: #000; }

/* Screen frame (tiling + trackpad) */
.screen { margin: 64px auto 0; max-width: 980px; padding: 10px; border-radius: var(--r-xl); background: #050506; box-shadow: var(--product-shadow); }
.screen-inner { position: relative; aspect-ratio: 16 / 10; border-radius: calc(var(--r-xl) - 10px); overflow: hidden; display: flex; flex-direction: column; }
.wallpaper { position: absolute; inset: 0; background:
  radial-gradient(60% 80% at 20% 10%, #24324a 0%, transparent 60%),
  radial-gradient(50% 70% at 85% 90%, #3a2a3f 0%, transparent 60%),
  #0d0f14; }
.work { position: relative; flex: 1; }
.taskbar { position: relative; height: 7%; min-height: 22px; background: rgba(20, 20, 24, .7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: flex; justify-content: center; align-items: center; gap: 1.2%; border-top: 1px solid var(--line); }
.taskbar i { width: 2.2%; aspect-ratio: 1; border-radius: 22%; background: rgba(255, 255, 255, .18); }
.taskbar i:first-child { background: rgba(255, 255, 255, .5); }

.win {
  position: absolute; left: calc(var(--l, 14) * 1% + 6px); top: calc(var(--t, 10) * 1% + 6px);
  width: calc(var(--w, 56) * 1% - 12px); height: calc(var(--h, 70) * 1% - 12px);
  border-radius: var(--r-md); background: rgba(28, 28, 32, .92); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7);
  overflow: hidden; display: flex; flex-direction: column;
  transition: left .7s var(--spring), top .7s var(--spring), width .7s var(--spring), height .7s var(--spring);
}
.win-bar { height: 30px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; font-size: 12px; color: var(--ink-muted); border-bottom: 1px solid var(--line); }
.win-bar span { margin-right: auto; }
.win-bar i { width: 9px; height: 1.5px; background: var(--ink-faint); }
.win-bar i:nth-child(3) { height: 9px; background: none; border: 1.5px solid var(--ink-faint); width: 9px; border-radius: 2px; }
.win-bar i:nth-child(4) { background: none; position: relative; }
.win-bar i:nth-child(4)::before, .win-bar i:nth-child(4)::after { content: ""; position: absolute; inset: 0; background: var(--ink-faint); transform: rotate(45deg); }
.win-bar i:nth-child(4)::after { transform: rotate(-45deg); }
.win-body { padding: 18px; display: grid; gap: 10px; align-content: start; }
.win-body b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.win-body b:first-child { width: 40%; height: 12px; background: rgba(255, 255, 255, .16); }
.win-body b.short { width: 60%; }
.ghost {
  position: absolute; left: calc(var(--l, 0) * 1% + 6px); top: calc(var(--t, 0) * 1% + 6px);
  width: calc(var(--w, 0) * 1% - 12px); height: calc(var(--h, 0) * 1% - 12px);
  border-radius: var(--r-md); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
  opacity: 0; transition: opacity .25s var(--ease);
}
.ghost.show { opacity: 1; }

/* Dock, menu bar and Control Center */
.mbar { position: relative; z-index: 2; height: 5.5%; min-height: 20px; display: flex; align-items: center; gap: 18px; padding: 0 14px; font-size: 12px; color: var(--ink); background: rgba(20, 20, 24, .55); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.mbar b { font-weight: 600; }
.mbar-dim { color: var(--ink-muted); }
.mbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--ink-muted); }
.mbar-status { display: flex; gap: 10px; padding: 2px 8px; border-radius: 6px; font-family: var(--mono); transition: background .25s var(--ease); }
.mbar-status.on { background: rgba(255, 255, 255, .16); color: var(--ink); }
.mbar-status i { font-style: normal; }
.mbar-status:not(.on):hover { background: rgba(255, 255, 255, .1); }
.dock-win { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.dock-win.gone { opacity: 0; transform: scale(.96); pointer-events: none; }
.dock-win { --l: 10; --t: 6; --w: 52; --h: 66; }
.cc {
  position: absolute; right: 1.5%; top: 2%; width: min(300px, 36%); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  border-radius: 18px; background: rgba(28, 28, 32, .78); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right; transition: opacity .3s var(--ease), transform .4s var(--spring); pointer-events: none;
}
.cc.open { opacity: 1; transform: none; pointer-events: auto; }
.cc-tile { text-align: left; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 11px; min-width: 0; }
.cc-tile:hover { background: rgba(255, 255, 255, .12); }
.cc-tile b { font-weight: 600; display: block; }
.cc-tile small { color: var(--ink-faint); font-size: 10px; }
.cc-4 { grid-column: span 2; display: grid; gap: 6px; }
.cc-dot { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); font: 500 11px var(--mono); transition: background .25s var(--ease); }
.cc-dot.on { background: var(--link); }
.cc-slider { cursor: pointer; touch-action: none; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.cc-slider i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--ink); }
.cc-dot.live { position: relative; }
.cc-dot.live::after { content: ""; position: absolute; right: -1px; top: -1px; width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 2px #2a2a2f; }
/* Wi-Fi and Bluetooth lists open in place between the tiles and the sliders */
.cc-list { grid-column: span 2; display: grid; grid-template-rows: 0fr; margin-block: -4px; transition: grid-template-rows .4s var(--ease), margin .4s var(--ease); }
.cc-list.open { grid-template-rows: 1fr; margin-block: 0; }
.cc-rows { min-height: 0; overflow: hidden; display: grid; gap: 2px; align-content: start; }
.cc-cap { padding: 2px 8px 4px; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.cc-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 11px; color: var(--ink-muted); transition: background .25s var(--ease); }
.cc-row b { font-weight: 600; color: var(--ink); }
.cc-row small { margin-left: auto; font-size: 10px; color: var(--ink-faint); }
.cc-row.on small { color: #34c759; }
.cc-row:hover { background: rgba(255, 255, 255, .1); }
.mdock {
  --size: clamp(22px, 4.2vw, 44px);
  position: absolute; z-index: 2; left: 50%; bottom: 2.5%; transform: translateX(-50%); display: flex; align-items: flex-end; gap: calc(var(--size) * .18);
  height: var(--size); padding: calc(var(--size) * .16); box-sizing: content-box; border-radius: calc(var(--size) * .42);
  background: rgba(40, 40, 46, .45); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.dk {
  --s: 1; position: relative; flex: none; width: calc(var(--size) * var(--s)); aspect-ratio: 1; display: grid; place-items: center; cursor: pointer;
  border-radius: 24%; background: linear-gradient(180deg, #3a3a40, #232328); border: 1px solid rgba(255, 255, 255, .12);
  font: 500 calc(var(--size) * .38 * var(--s)) / 1 var(--mono); color: var(--ink); transition: width .12s linear, font-size .12s linear;
}
.dk svg { width: 62%; height: 62%; }
.dk.run::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--size) * -.14); width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--ink-muted); }
.dk.bounce { animation: dockbounce .7s var(--ease) 2; }
@keyframes dockbounce { 50% { transform: translateY(-60%); } }
.dk-sep { flex: none; align-self: stretch; width: 1px; background: var(--line-strong); }
.dk-menu {
  position: absolute; z-index: 3; transform: translateX(-50%); min-width: 150px; padding: 5px; display: grid; gap: 1px; font-size: 12px;
  border-radius: 10px; background: rgba(28, 28, 32, .9); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, .7);
}
.dk-menu[hidden] { display: none; }
.dk-menu button { position: relative; padding: 5px 10px 5px 22px; border-radius: 6px; text-align: left; }
.dk-menu button:hover, .dk-menu button:focus-visible { background: var(--link); outline: none; }
.dk-menu [aria-checked="true"]::before { content: "✓"; position: absolute; left: 7px; }
.dk-cap { padding: 3px 10px 3px 22px; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.screen-hint { margin-top: 20px; text-align: center; font: 12px var(--mono); letter-spacing: .04em; color: var(--ink-faint); }

/* Spotlight */
.spot { margin: 64px auto 0; max-width: 680px; border-radius: var(--r-lg); background: rgba(28, 28, 32, .82); border: 1px solid var(--line-strong); box-shadow: var(--product-shadow); overflow: hidden; text-align: left; }
.spot-bar { display: flex; align-items: center; gap: 14px; padding: 20px 22px; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.02em; border-bottom: 1px solid var(--line); min-height: 76px; }
.spot-bar svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--link); margin-left: 1px; animation: blink 1.1s steps(1) infinite; vertical-align: text-bottom; }
@keyframes blink { 50% { opacity: 0; } }
.spot-results { padding: 10px; min-height: 196px; }
.spot-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-md); color: var(--ink-muted); font-size: 15px; animation: rise .5s var(--ease) both; }
.spot-row:nth-child(2) { animation-delay: .06s; }
.spot-row:nth-child(3) { animation-delay: .12s; }
.spot-row.top { background: rgba(255, 255, 255, .08); color: var(--ink); }
.spot-row .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--tile-3); border: 1px solid var(--line); font: 500 18px var(--mono); color: var(--ink); }
.spot-row .txt { display: grid; gap: 2px; min-width: 0; }
.spot-row .txt b { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.spot-row .txt small { font-size: 13px; color: var(--ink-faint); }
.spot-row .tag { margin-left: auto; font: 400 12px var(--mono); color: var(--ink-faint); white-space: nowrap; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* The real thing: alt + Space opens Spotlight over the page. It reuses the demo's .spot look. */
.sl { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-content: start; padding: 18vh 16px 0; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: slFade .25s var(--ease); }
.sl[hidden] { display: none; }
@keyframes slFade { from { opacity: 0; } }
.sl .spot { margin: 0; width: min(680px, 100%); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); animation: rise .3s var(--ease); }
#spot { cursor: pointer; }
.sl .spot-bar { cursor: text; }
.sl .spot-results { min-height: 0; max-height: 50vh; overflow: hidden auto; }
.sl .spot-row { animation: none; cursor: pointer; }
.sl-input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0; color: var(--ink); font: inherit; letter-spacing: inherit; caret-color: var(--link); }
.sl-input::placeholder { color: var(--ink-faint); }
.sl-hint { padding: 14px 12px; font-size: 14px; color: var(--ink-faint); }

/* Trackpad */
.pad-stage { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 64px; }
.screen-sm { margin: 0; max-width: none; }
.pad-win { --l: 8; --t: 10; --w: 50; --h: 64; transition: none; }
.pad { aspect-ratio: 1.45; border-radius: var(--r-xl); background: linear-gradient(180deg, #1a1a1d, #131315); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--product-shadow); position: relative; overflow: hidden; }
.fingers { position: absolute; left: 12%; top: 58%; display: flex; gap: 14px; align-items: flex-end; }
.fingers i { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12)); box-shadow: 0 0 24px rgba(255, 255, 255, .2); }
.fingers i:nth-child(2) { transform: translateY(-10px); }
.pad-stage.play .fingers { animation: fingers 4.8s var(--ease) infinite; }
.pad-stage.play .pad-win { animation: dragwin 4.8s var(--ease) infinite; }
@keyframes fingers {
  0%, 8% { opacity: 0; transform: translate(0, 0) scale(1.15); }
  16% { opacity: 1; transform: translate(0, 0) scale(1); }
  58% { opacity: 1; transform: translate(80%, -160%) scale(1); }
  68%, 100% { opacity: 0; transform: translate(80%, -160%) scale(1.15); }
}
@keyframes dragwin {
  0%, 16% { transform: translate(0, 0); }
  58%, 82% { transform: translate(70%, 18%); }
  100% { transform: translate(0, 0); }
}
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 72px; }
.rail-dots { display: none; }
.facts li { display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.facts b { font-weight: 600; letter-spacing: -0.02em; }
.facts span { color: var(--ink-muted); font-size: 15px; }

/* Drawn gestures: the pill and ink on the screen, the same stroke under a finger on the pad */
.ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ink polyline { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .5)); }
.screen .ink polyline { stroke-width: 4; }
.draw-pill { position: absolute; z-index: 2; left: 50%; top: 6%; translate: -50% -8px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(20, 20, 24, .82); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease), translate .4s var(--spring); }
.draw-pill.show { opacity: 1; translate: -50% 0; }
.draw-pill i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .7); transition: background .25s, box-shadow .25s; }
.draw-pill.ok i { background: #34c759; box-shadow: 0 0 10px #34c759; }
.draw-pill.no i { background: #ff453a; box-shadow: 0 0 10px #ff453a; }
.draw-pill em { font: 400 12px var(--mono); color: var(--ink-faint); }
.dd { position: absolute; left: calc(var(--x, 50) * 1%); top: calc(var(--y, 50) * 1%); width: 34px; height: 34px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12)); box-shadow: 0 0 24px rgba(255, 255, 255, .2); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.dd svg { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); rotate: -90deg; }
.dd circle { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: 113; }
.dd-a { --x: 42; --y: 60; }
.dd-b { --x: 56; --y: 50; }
.draw-pad.holding .dd-a, .draw-pad.holding .dd-b, .draw-pad.drawing .dd-pen { opacity: 1; }
.draw-pad.holding .dd circle { stroke-dashoffset: 0; transition: stroke-dashoffset 2s linear; }
.pad-hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 12px var(--mono); color: var(--ink-faint); opacity: 0; transition: opacity .3s; pointer-events: none; }
.draw-pad.drawable { cursor: crosshair; touch-action: none; }
.draw-pad.drawable .pad-hint { opacity: 1; }
.draw-pad.holding .pad-hint, .draw-pad.drawing .pad-hint { opacity: 0; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-top: 72px; }
.card { min-width: 0; background: var(--tile-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-top: 28px; }
.card p { font-size: 15px; color: var(--ink-muted); margin-top: 8px; }
.demo { height: 168px; border-radius: 16px; background: var(--tile-1); border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
.keycap-sm { --size: 56px; font-size: 18px; }
.keycap-sm.wide { width: 112px; font-size: 13px; }

.demo-accent { align-content: center; gap: 14px; }
.accent-pop { display: flex; gap: 4px; padding: 6px; border-radius: 12px; background: var(--tile-3); border: 1px solid var(--line-strong); }
.accent-pop span { width: 36px; height: 48px; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 8px; font-size: 19px; line-height: 1; transition: background .25s, color .25s; }
.accent-pop span::after { content: attr(data-n); font: 9px/1 var(--mono); color: var(--ink-faint); }
.accent-pop span.on { background: var(--link); color: #fff; }
.accent-pop span.on::after { color: rgba(255, 255, 255, .7); }

.shot-area { position: absolute; left: 22%; top: 22%; width: 42%; height: 46%; border: 1.5px dashed rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .05); border-radius: 4px; transform-origin: top left; }
.shot-thumb { position: absolute; right: 14px; bottom: 14px; width: 64px; height: 42px; border-radius: 6px; background: var(--tile-3); border: 1.5px solid rgba(255, 255, 255, .8); box-shadow: 0 10px 24px rgba(0, 0, 0, .6); }
.shot-keys { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 4px; }
.in-view .shot-area { animation: shot 3.6s var(--ease) infinite; }
.in-view .shot-thumb { animation: thumb 3.6s var(--ease) infinite; }
@keyframes shot { 0%, 10% { transform: scale(0); opacity: 1; } 45% { transform: scale(1); opacity: 1; } 55%, 100% { transform: scale(1); opacity: 0; } }
@keyframes thumb { 0%, 52% { transform: translateX(120px); } 62%, 92% { transform: none; } 100% { transform: translateX(120px); } }

.demo-type { font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; justify-content: center; }
.demo-type .caret { height: 1.1em; }

.files { display: flex; gap: 14px; }
.files i { width: 36px; height: 44px; border-radius: 6px; background: var(--tile-3); border: 1px solid var(--line-strong); }
.files i.sel { outline: 2px solid var(--link); outline-offset: 3px; }
.look-card { position: absolute; inset: 22px 30%; border-radius: 12px; background: #e9e9ee; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.4); }
.demo-look .chipkey { position: absolute; bottom: 14px; }
.in-view .look-card { animation: look 3.2s var(--spring) infinite; }
@keyframes look { 0%, 30% { opacity: 0; transform: scale(.4); } 42%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: scale(.4); } }

.in-view .hold { animation: hold 2.8s var(--ease) infinite; }
@keyframes hold { 0%, 20% { transform: none; } 30%, 80% { transform: translateY(2px); background: #fff; color: #000; box-shadow: 0 0 32px rgba(255, 255, 255, .3); } 90%, 100% { transform: none; } }

/* Finder keys: each row presses in turn */
.demo-keys { grid-template-columns: 1fr; align-content: center; justify-items: start; padding: 0 24px; gap: 8px; font-size: 13px; color: var(--ink-faint); }
.demo-keys .frow { display: flex; align-items: center; gap: 4px; padding: 3px 10px 3px 3px; border-radius: 9px; transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--spring); }
.demo-keys .chipkey { min-width: 24px; height: 24px; font-size: 12px; padding: 0 6px; border-radius: 6px; transition: background .2s, color .2s, transform .15s var(--ease), box-shadow .3s; }
.demo-keys .chipkey:last-of-type { margin-right: 6px; }
.demo-keys .frow.on { background: rgba(255, 255, 255, .06); color: var(--ink); transform: translateX(6px); }
.demo-keys .frow.on .chipkey { background: #fff; color: #000; transform: translateY(1px); box-shadow: 0 0 18px rgba(255, 255, 255, .3); }

/* Remap: caps lock pressed, a pulse travels, esc answers */
.demo-remap { display: flex; align-items: center; justify-content: center; gap: 12px; }
.remap-wire { position: relative; width: 44px; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: visible; }
.remap-wire i { position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; opacity: 0; }
.in-view .remap-from { animation: remapFrom 2.8s var(--ease) infinite; }
.in-view .remap-wire i { animation: remapWire 2.8s var(--ease) infinite; }
.in-view .remap-to { animation: remapTo 2.8s var(--ease) infinite; }
@keyframes remapFrom { 0%, 8% { transform: none; } 14%, 26% { transform: translateY(3px); background: #fff; color: #000; box-shadow: 0 0 30px rgba(255, 255, 255, .3); } 34%, 100% { transform: none; } }
@keyframes remapWire { 0%, 22% { left: 0; opacity: 0; } 26% { opacity: 1; } 46% { left: 100%; opacity: 1; } 50%, 100% { left: 100%; opacity: 0; } }
@keyframes remapTo { 0%, 44% { transform: none; } 50% { transform: translateY(3px) scale(1.08); background: #fff; color: #000; box-shadow: 0 0 36px rgba(255, 255, 255, .4); } 72% { transform: none; background: #fff; color: #000; } 86%, 100% { transform: none; } }

/* Text replacement: typed, then swapped in place */
.demo-replace { display: grid; place-content: center; justify-items: center; gap: 14px; }
.demo-replace .field { min-width: 220px; padding: 12px 16px; border-radius: 12px; background: var(--tile-3); border: 1px solid var(--line-strong); font-size: 18px; letter-spacing: -0.01em; text-align: left; white-space: nowrap; }
.demo-replace .field mark { background: rgba(41, 151, 255, .3); color: var(--ink); border-radius: 4px; padding: 0 2px; animation: rise .4s var(--spring); }
.rep-rule { font: 12px var(--mono); color: var(--ink-faint); }
.rep-rule b { font-weight: 500; color: var(--ink-muted); }

/* Hot corners: the pointer visits a corner, the windows respond */
.demo-corners { align-content: center; }
.mini-screen { width: 62%; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px solid var(--line-strong); position: relative; background: radial-gradient(70% 90% at 20% 10%, #1b2436 0%, transparent 60%), #0d0f14; overflow: visible; }
.mw { position: absolute; border-radius: 4px; background: rgba(40, 40, 46, .95); border: 1px solid var(--line-strong); }
.mw.w1 { left: 8%; top: 12%; width: 46%; height: 52%; }
.mw.w2 { left: 34%; top: 26%; width: 50%; height: 56%; }
.mw.w3 { left: 18%; top: 40%; width: 36%; height: 42%; }
.cursor { position: absolute; left: 60%; top: 55%; width: 13px; height: 16px; fill: #fff; stroke: #000; stroke-width: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.corner { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .0); }
.corner.tl { left: -7px; top: -7px; }
.corner.br { right: -7px; bottom: -7px; }
.corner-tag { position: absolute; bottom: 10px; font: 11px var(--mono); color: var(--ink-muted); opacity: 0; transition: opacity .3s; }
.corner-tag.show { opacity: 1; }
.in-view .cursor { animation: cur 7s var(--ease) infinite; }
.in-view .corner.tl { animation: cornerFlash 7s ease-out infinite; }
.in-view .corner.br { animation: cornerFlash 7s ease-out 3.5s infinite; }
.in-view .mw.w1 { animation: w1 7s var(--ease) infinite; }
.in-view .mw.w2 { animation: w2 7s var(--ease) infinite; }
.in-view .mw.w3 { animation: w3 7s var(--ease) infinite; }
@keyframes cur { 0% { left: 60%; top: 55%; } 16%, 40% { left: -2%; top: -3%; } 50% { left: 55%; top: 50%; } 66%, 88% { left: 98%; top: 95%; } 100% { left: 60%; top: 55%; } }
@keyframes cornerFlash { 0%, 15% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); background: rgba(255, 255, 255, 0); } 17% { background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 32% { background: rgba(255, 255, 255, 0); box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); } 100% { background: rgba(255, 255, 255, 0); } }
@keyframes w1 { 0%, 17% { left: 8%; top: 12%; width: 46%; height: 52%; } 24%, 40% { left: 4%; top: 8%; width: 28%; height: 36%; } 48%, 68% { left: 8%; top: 12%; width: 46%; height: 52%; } 74%, 88% { left: -40%; top: -50%; width: 46%; height: 52%; opacity: .2; } 96%, 100% { left: 8%; top: 12%; width: 46%; height: 52%; opacity: 1; } }
@keyframes w2 { 0%, 17% { left: 34%; top: 26%; width: 50%; height: 56%; } 24%, 40% { left: 36%; top: 8%; width: 28%; height: 36%; } 48%, 68% { left: 34%; top: 26%; width: 50%; height: 56%; } 74%, 88% { left: 110%; top: -40%; width: 50%; height: 56%; opacity: .2; } 96%, 100% { left: 34%; top: 26%; width: 50%; height: 56%; opacity: 1; } }
@keyframes w3 { 0%, 17% { left: 18%; top: 40%; width: 36%; height: 42%; } 24%, 40% { left: 68%; top: 8%; width: 28%; height: 36%; } 48%, 68% { left: 18%; top: 40%; width: 36%; height: 42%; } 74%, 88% { left: 10%; top: 120%; width: 36%; height: 42%; opacity: .2; } 96%, 100% { left: 18%; top: 40%; width: 36%; height: 42%; opacity: 1; } }

/* Knows your apps: focus moves between apps */
.demo-apps, .demo-guides { grid-template-columns: 1fr; align-content: center; justify-items: center; gap: 10px; }
.app-pill { display: inline-flex; gap: 10px; align-items: center; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--tile-3); border: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--spring), box-shadow .4s var(--ease); }
.app-pill em { font-style: normal; font: 400 12px var(--mono); color: var(--ink-faint); transition: color .4s; }
.app-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); transition: background .4s, box-shadow .4s; }
.app-pill.on { background: var(--ink); color: #000; transform: scale(1.06); box-shadow: 0 0 30px rgba(255, 255, 255, .15); }
.app-pill.on em { color: #555; }
.app-pill.on .dot { background: #34c759; box-shadow: 0 0 8px #34c759; }

/* Hold ⌘Q to quit, and ⌘W closing a window that ignores Ctrl+W */
.demo-quit { align-content: center; gap: 16px; }
.quit-bubble { position: relative; overflow: hidden; padding: 9px 16px; border-radius: 12px; background: rgb(32, 32, 36); border: 1px solid var(--line-strong); font-size: 13px; }
.quit-bubble i { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: #fff; transform-origin: left; transform: scaleX(0); }
.quit-keys { display: flex; gap: 6px; }
.quit-keys .chipkey { min-width: 36px; height: 36px; font-size: 16px; }
.demo-close .quit-keys { position: absolute; bottom: 12px; left: 50%; translate: -50% 0; }
.close-win { --l: 14; --t: 6; --w: 72; --h: 62; transition: none; }
.close-win .win-bar { height: 26px; }
.close-win .win-body { padding: 12px; }
.in-view .quit-bubble i { animation: quitBar 3.6s linear infinite; }
.in-view .demo-quit .chipkey, .in-view .demo-close .chipkey { animation: keyHold 3.6s var(--ease) infinite; }
.in-view .close-win { animation: closeWin 3.6s var(--ease) infinite; }
@keyframes keyHold { 0%, 10% { transform: none; } 16%, 24% { transform: translateY(2px); background: #fff; color: #000; box-shadow: 0 0 24px rgba(255, 255, 255, .3); } 32%, 100% { transform: none; } }
@keyframes quitBar { 0%, 14% { transform: scaleX(0); opacity: 1; } 26% { transform: scaleX(1); opacity: 1; } 34% { transform: scaleX(1); opacity: 0; } 100% { transform: scaleX(0); opacity: 0; } }
@keyframes closeWin { 0%, 22% { opacity: 1; transform: none; } 28%, 52% { opacity: 0; transform: scale(.9); } 64%, 100% { opacity: 1; transform: none; } }

/* Custom shortcuts: a shortcut editor that fills itself in */
.span-6 { grid-column: span 6; }
.card-wide { flex-direction: row; align-items: center; gap: 40px; }
.card-wide .demo { min-width: 0; flex: 1.2; height: auto; min-height: 220px; padding: 22px; }
.card-wide .card-text { flex: 1; }
.card-wide h3 { margin-top: 0; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; }
.card-wide p { font-size: 16px; }
.demo-custom { grid-template-columns: minmax(0, 1fr); }
.cs-panel { min-width: 0; width: 100%; max-width: 460px; display: grid; gap: 4px; padding: 8px; border-radius: 14px; background: rgba(28, 28, 32, .9); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -20px #000; }
.cs-row { min-width: 0; display: flex; align-items: center; gap: 14px; min-height: 42px; padding: 6px 10px; border-radius: 9px; font-size: 14px; }
.cs-row + .cs-row { border-top: 1px solid var(--line); border-radius: 0; }
.cs-label { width: 64px; flex: none; font: 11px var(--mono); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.cs-keys { display: flex; gap: 4px; min-height: 28px; align-items: center; }
.cs-keys .chipkey { min-width: 28px; height: 28px; animation: pop .4s var(--spring); }
.cs-rec { font-style: normal; color: #ff6961; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.cs-rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff453a; animation: recBlink 1s ease-in-out infinite; }
@keyframes recBlink { 50% { opacity: .25; } }
.cs-seg { position: relative; min-width: 0; flex: 0 1 auto; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tile-1); overflow-x: auto; scrollbar-width: none; }
.cs-seg i { font-style: normal; font-size: 12px; padding: 4px 10px; border-radius: 999px; color: var(--ink-faint); white-space: nowrap; transition: background .35s var(--ease), color .35s var(--ease); }
.cs-seg i.on { background: var(--ink); color: #000; }
.cs-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); white-space: nowrap; }
.cs-where { font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-muted); transition: all .35s var(--ease); }
.cs-saved { margin-left: auto; font-size: 12px; color: #34c759; display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .4s var(--spring); }
.cs-saved::before { content: "✓"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #34c759; color: #000; font-size: 10px; font-weight: 700; }
.cs-saved.show { opacity: 1; transform: none; }

/* App screenshots */
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tile-2); border: 1px solid var(--line); margin-top: 40px; }
.segmented button { padding: 8px 20px; min-height: 36px; border-radius: 999px; font-size: 14px; color: var(--ink-muted); transition: background .3s var(--ease), color .3s var(--ease); }
.segmented button[aria-selected="true"] { background: var(--ink); color: #000; }
.app-frame { position: relative; margin-top: 56px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--product-shadow); aspect-ratio: 16 / 10; transform: scale(var(--s, 1)); transform-origin: center top; }
.app-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.app-frame img.on { opacity: 1; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.trust h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.trust p { color: var(--ink-muted); margin-top: 8px; font-size: 15px; }

/* Pricing: a license card you can hold, and the way to get it */
#pricing { overflow: clip; }
.light .eyebrow { color: var(--ink-light-muted); margin-bottom: 18px; }
.price-stage { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1080px; margin-top: 56px; }
.license-wrap { position: relative; perspective: 1200px; display: grid; place-items: center; padding: 20px 0 48px; }
.license {
  position: relative; width: min(100%, 470px); aspect-ratio: 1.586; transform-style: preserve-3d; cursor: grab;
  transform: rotateX(var(--lrx, 0deg)) rotateY(calc(var(--lry, 0deg) + var(--flip, 0deg)));
  transition: transform .7s var(--ease);
  animation: float 6s ease-in-out infinite;
}
.license.flipped { --flip: 180deg; transition: transform 1.2s var(--spring); }
@keyframes float { 50% { translate: 0 -12px; } }
.license-face {
  position: absolute; inset: 0; border-radius: clamp(16px, 2vw, 24px); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; justify-content: space-between; text-align: left; color: #f5f5f7;
  background: radial-gradient(130% 100% at 0% 0%, #2c2c31 0%, #0d0d10 52%, #000 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .55), 0 18px 30px -18px rgba(0, 0, 0, .5);
}
.license-back { transform: rotateY(180deg); justify-content: center; gap: 18px; }
.lic-top, .lic-bottom { display: flex; justify-content: space-between; align-items: center; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 245, 247, .55); }
.lic-top .mark { width: 30px; height: 30px; color: #fff; stroke-width: 1.6; }
.lic-key { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: linear-gradient(180deg, #fff, #dcdce2); color: #000; font: 22px var(--mono); box-shadow: 0 2px 0 #9a9aa2, 0 0 30px rgba(255, 255, 255, .2); }
.lic-name { font-size: clamp(34px, 4.8vw, 56px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.lic-name small { display: block; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 245, 247, .5); margin-top: 10px; }
.lic-bottom b { font: 300 34px/1 var(--sans); color: #fff; letter-spacing: 0; text-transform: none; }
.lic-thanks { font-size: clamp(34px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; }
.lic-sheen {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgba(255, 255, 255, .24), transparent 42%),
    linear-gradient(115deg, transparent 28%, rgba(130, 190, 255, .16) 42%, rgba(255, 170, 230, .12) 52%, rgba(170, 255, 210, .10) 60%, transparent 72%);
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--hx, 50%) var(--hy, 50%);
}
.license-shadow { position: absolute; bottom: 14px; left: 18%; right: 18%; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .28); filter: blur(14px); animation: shadowFloat 6s ease-in-out infinite; }
@keyframes shadowFloat { 50% { scale: .86; opacity: .6; } }
.license-hint { position: absolute; bottom: 0; font: 11px var(--mono); color: var(--ink-light-muted); letter-spacing: .04em; }

.price-card { position: relative; background: #fff; border-radius: var(--r-lg); padding: 36px; border: 1px solid rgba(0, 0, 0, .07); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .35); text-align: left; }
.price-card.celebrate { animation: celebrate .9s var(--spring); }
@keyframes celebrate { 30% { transform: scale(1.02); } }
.price-head { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.price-head h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.price-head p { color: var(--ink-light-muted); font-size: 14px; }
.price { margin-left: auto; text-align: right; display: grid; justify-items: end; }
.price-num { font-size: 64px; font-weight: 600; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.price small { font: 400 12px var(--mono); color: var(--ink-light-muted); margin-top: 8px; }
.price-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.price-tags span { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--parchment); color: var(--ink-light); border: 1px solid rgba(0, 0, 0, .06); }
.price-tags s { color: var(--ink-light-muted); }
.checks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .7s var(--spring); transition-delay: calc(.35s + var(--i, 0) * 90ms); }
.checks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; scale: 0; transition: scale .5s var(--spring); transition-delay: calc(.45s + var(--i, 0) * 90ms); background: var(--ink-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.price-card.in .checks li { opacity: 1; transform: none; }
.price-card.in .checks li::before { scale: 1; }
.sparks { position: absolute; left: -60px; top: -60px; width: calc(100% + 120px); height: calc(100% + 120px); pointer-events: none; z-index: 3; }

/* Swipe to buy */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.swipe {
  --x: 0px; --p: 0; --lean: 0px; --thumb: 56px;
  position: relative; height: 64px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 50%, #2a2a2e, #111113 60%);
  color: #fff; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6), 0 14px 30px -16px rgba(0, 0, 0, .6);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: grab;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .2s var(--ease);
}
/* A slow light that runs round the rim */
.swipe::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 62%, rgba(255, 255, 255, .85) 75%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rim 4.5s linear infinite;
}
@keyframes rim { to { --a: 360deg; } }
.swipe:hover { transform: translateY(-1px); }
.swipe.dragging { cursor: grabbing; transform: none; }
.swipe.armed { box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6), 0 0 0 4px rgba(0, 102, 204, .18), 0 18px 40px -16px rgba(0, 102, 204, .55); }
.swipe-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--x) + var(--thumb) + 8px); border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, calc(.08 + var(--p) * .26)));
  box-shadow: 14px 0 34px -8px rgba(255, 255, 255, calc(var(--p) * .5));
}
.swipe-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding-left: var(--thumb); font-size: 17px; letter-spacing: -0.01em; pointer-events: none;
  opacity: calc(1 - var(--p) * 1.4);
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--x) + 70px), #000 calc(var(--x) + 150px)); mask-image: linear-gradient(90deg, transparent calc(var(--x) + 70px), #000 calc(var(--x) + 150px));
}
.shine {
  background: linear-gradient(90deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .4) 38%, #fff 50%, rgba(255, 255, 255, .4) 62%, rgba(255, 255, 255, .4) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 2.6s linear infinite;
}
@keyframes shine { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.chev { display: inline-flex; font: 18px/1 var(--mono); }
.chev i { font-style: normal; opacity: .2; animation: chev 1.6s ease-in-out infinite; }
.chev i:nth-child(2) { animation-delay: .15s; }
.chev i:nth-child(3) { animation-delay: .3s; }
@keyframes chev { 30% { opacity: 1; translate: 3px 0; } 60% { opacity: .2; translate: 0 0; } }
.swipe-goal { position: absolute; right: 8px; top: 8px; bottom: 8px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px; font: 500 14px var(--mono); color: rgba(255, 255, 255, calc(.3 + var(--p) * .7)); border: 1px dashed rgba(255, 255, 255, calc(.15 + var(--p) * .45)); transform: scale(calc(1 + var(--p) * .06)); transition: background .3s, color .3s; pointer-events: none; }
.swipe.armed .swipe-goal { background: rgba(255, 255, 255, .14); border-style: solid; }
.swipe-thumb {
  position: absolute; z-index: 3; left: 4px; top: 4px; width: var(--thumb); height: var(--thumb); border-radius: 999px; overflow: hidden;
  background: linear-gradient(180deg, #fff, #e9e9ee); color: var(--ink-light);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45), 0 0 calc(var(--p) * 40px) rgba(255, 255, 255, calc(var(--p) * .7)), inset 0 -2px 0 rgba(0, 0, 0, .08);
  transform: translateX(calc(var(--x) + var(--lean))) scale(var(--ts, 1));
}
.swipe:not(.dragging) .swipe-thumb, .swipe:not(.dragging) .swipe-fill { transition: transform .7s var(--spring), width .7s var(--spring), box-shadow .4s var(--ease); }
.swipe.dragging .swipe-thumb { --ts: 1.06; transition: transform .08s linear; }
.swipe-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); animation: halo 2.4s ease-out infinite; pointer-events: none; }
.swipe.dragging .swipe-thumb::after, .swipe.done .swipe-thumb::after { animation: none; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }
.swipe-arrow { position: absolute; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: translateX(calc(var(--p) * 4px)); transition: opacity .3s var(--ease), transform .4s var(--spring); }
.swipe:not(.dragging):not(.done):not(:hover) .swipe-thumb { animation: nudge 3.4s var(--ease) 1.4s infinite; }
@keyframes nudge { 0%, 70%, 100% { translate: 0; } 78% { translate: 12px; } 86% { translate: 0; } 92% { translate: 5px; } }
.swipe-ok { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 16px; font-weight: 500; opacity: 0; transform: scale(.85); transition: opacity .3s var(--ease), transform .5s var(--spring); }
.swipe-check { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; background: var(--ink-light); border-radius: 50%; padding: 3px; }
.swipe-check path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .5s var(--ease) .35s; }
.spin { width: 14px; height: 14px; border: 2px solid rgba(0, 0, 0, .15); border-top-color: var(--ink-light); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.swipe.done { cursor: default; background: #000; }
.swipe.done .swipe-thumb { width: calc(100% - 8px); transform: translateX(0); transition: width .75s var(--spring), transform .75s var(--spring), box-shadow .5s; box-shadow: 0 0 40px rgba(255, 255, 255, .35); }
.swipe.done .swipe-arrow { opacity: 0; transform: translateX(16px) scale(.5); }
.swipe.done .swipe-ok { opacity: 1; transform: none; transition-delay: .25s; }
.swipe.done .swipe-check path { stroke-dashoffset: 0; }
.swipe.done .swipe-label, .swipe.done .swipe-goal { opacity: 0; }
.swipe:focus-visible { outline: 2px solid var(--link-light); outline-offset: 4px; }

.fine { font-size: 12px; color: var(--ink-light-muted); margin-top: 16px; text-align: center; line-height: 1.5; }
.light :focus-visible { outline-color: var(--link-light); }

/* FAQ */
.faq { margin-top: 64px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 48px 28px 0; position: relative; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; font: 300 28px/1 var(--sans); color: var(--ink-muted); transform: translateY(-50%); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--ink-muted); padding: 0 48px 28px 0; max-width: 760px; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
html { interpolate-size: allow-keywords; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--ink-muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { color: var(--ink); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }
.legal { margin-top: 32px; font-size: 12px; color: var(--ink-faint); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 60; transform: translateX(-50%); padding: 14px 22px; border-radius: 999px; background: rgba(28, 28, 32, .9); color: var(--ink); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 15px; animation: rise .4s var(--ease); }

/* Responsive */
@media (max-width: 1068px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-6 { grid-column: span 2; }
}
@media (max-width: 834px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav.scrolled .nav-inner { max-width: calc(100% - 24px); }
  .card-wide { flex-direction: column; align-items: stretch; gap: 0; }
  .card-wide .card-text h3 { margin-top: 28px; }
  .price-stage { grid-template-columns: 1fr; justify-items: center; }
  .license-wrap { width: 100%; max-width: 470px; } /* centered grid items shrink-wrap, and the card sizes off this */
  .price-card { width: 100%; max-width: 520px; }
  .pad-stage { grid-template-columns: 1fr; }
  .pad { max-width: 420px; width: 100%; margin: 0 auto; }
  .facts, .trust { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 734px) {
  .wrap, .wrap-wide, .nav-inner { padding: 0 16px; }
  .nav.scrolled .nav-inner { padding: 0 4px 0 16px; }
  .nav-buy .nav-price { display: none; }
  .nav-buy { padding: 4px 14px; }
  .span-6 { grid-column: span 1; }
  .cs-label { width: 50px; }
  .price-num { font-size: 52px; }
  .demo-replace .field { min-width: 0; font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 0 16px 4px; margin-left: -16px; margin-right: -16px; scroll-snap-type: x mandatory; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
  .win-bar { height: 22px; font-size: 10px; }
  .win-body { padding: 10px; gap: 6px; }
  .screen { padding: 6px; border-radius: 20px; }
  .screen-inner { border-radius: 14px; }
  .app-frame { border-radius: 16px; }
  .price-card { padding: 28px 24px; }
  .faq summary { font-size: 18px; }
  .fingers i, .dd { width: 26px; height: 26px; }
  .draw-pill { font-size: 11px; padding: 6px 12px 6px 10px; }
  .draw-pill em { display: none; }
  .mbar { gap: 10px; font-size: 9px; padding: 0 8px; }
  .mbar-dim, .mbar-right > span:last-child { display: none; }
  .cc { width: 64%; padding: 6px; gap: 5px; border-radius: 12px; }
  .cc-tile { padding: 5px; font-size: 9px; gap: 5px; }
  .cc-tile small { display: none; }
  .cc-dot { width: 18px; height: 18px; font-size: 9px; }
  .cc-row { padding: 3px 6px; font-size: 9px; }
  .cc-row small { font-size: 8px; }
  .cc-row:nth-child(4) { display: none; }
  .cc-4 { display: none; }

  /* Phones: long stacks become swipe rails. The next card peeks in, dots below say where you are. */
  .bento, .facts, .trust { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; padding: 0 16px 8px; }
  .bento::-webkit-scrollbar, .facts::-webkit-scrollbar, .trust::-webkit-scrollbar { display: none; }
  .bento > *, .facts > li, .trust > * { flex: 0 0 84%; scroll-snap-align: start; scroll-snap-stop: always; }
  .bento { margin-top: 48px; align-items: stretch; }
  .bento .demo { height: 188px; }
  .facts { margin: 40px -16px 0; }
  .facts > li { flex-basis: 72%; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--tile-2); align-content: start; }
  .trust > * { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--tile-2); }
  /* Inside a rail a card reveals in place; a vertical offset would spill out of the scroller. */
  .bento > .reveal, .trust > .reveal { transform: scale(.96); }
  .bento > .reveal.in, .trust > .reveal.in { transform: none; }
  .rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
  .rail-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width .4s var(--spring), background .3s var(--ease); }
  .rail-dots i.on { width: 18px; background: var(--ink); }

  /* Sections breathe less on a phone. */
  .display { font-size: clamp(34px, 10vw, 40px); }
  .lead { font-size: 17px; margin-top: 16px; }
  .footnote { margin-top: 32px; }
  .trio { margin-top: 48px; }
  .screen, .spot { margin-top: 40px; }
  .readout { margin: 40px auto 24px; min-height: 120px; }
  /* Too small to read on a phone; the readout's big keycaps and the chips carry the demo. */
  #keyboard-demo { display: none; }

  /* Trackpad stages: a smaller pad under the screen, like the laptop it is. */
  .pad-stage { margin-top: 40px; gap: 20px; }
  .pad { max-width: 230px; }
  .pad-hint { font-size: 11px; }

  /* Hero: a shorter story, and the camera comes in close on the keyboard so the keys read. */
  .hero { height: 250svh; }
  .hero-deck { --dw: 175vw; width: var(--dw); left: calc(50% - var(--dw) * .3); top: 36%; translate: 0 -50%; }
  .hero-deck .keyboard { --gap: 5px; padding: 12px; border-radius: 18px; }
  .hero-deck .key { border-radius: 7px; font-size: 10px; }
  /* The deck is wider than the screen, so pin the line under it back to the viewport. */
  .say-2 { left: calc(var(--dw) * .3 - 50vw); right: auto; width: 100vw; font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-title .word, .hero-in { opacity: 1; translate: none; }
  .hero { height: auto; }
  .hero-stage { position: relative; }
  .hero-deck, .hero-say, .scroll-cue, .hero-beam { display: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
