/* macOS Lens site: brand tokens, self-hosted type and the page's own pieces (the live demos).
   The layout system underneath is the taste kit (system.css, layout.css, motion.css; MIT, see
   assets/TASTE-LICENSE.txt). */

@font-face { font-family: "Urbanist"; src: url("fonts/urbanist-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --p-bg: #0b0d12; --p-surface: #13161b; --p-ink: #e8ecf2; --p-muted: #9aa0aa;
  --p-accent: #4285f4; --p-accent-ink: #0b0d12; --p-action: #4285f4; --p-action-ink: #0b0d12;
  --p-inv-bg: #e8ecf2; --p-inv-surface: #d6dae0; --p-inv-ink: #0b0d12; --p-inv-muted: #54575d;
  --p-inv-accent: #2f6fdc; --p-inv-accent-ink: #ffffff; --p-inv-action: #0b0d12; --p-inv-action-ink: #e8ecf2;
  --font-display: "Urbanist", system-ui, -apple-system, sans-serif;
  --font-text: "Urbanist", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display-weight: 560; --display-tracking: -0.03em; --display-tracking-xl: -0.04em;
  --sky: #7faeff; --g-red: #ea4335; --g-yellow: #fbbc05; --g-green: #34a853;
  --well: #0f1217;
}
body { font-weight: 450; }
a:not(.btn):not(.nav__link):not(.nav__logo) { text-underline-offset: 3px; }
.t-lead, .hero__lead { color: color-mix(in oklab, var(--ink) 82%, var(--bg)); }
kbd { font-family: var(--font-text); }
code, .mono { font-family: var(--font-mono); font-size: .9em; }

/* nav logo: the brand mark beside the name */
.nav__logo, .footer__mark { gap: 10px; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.footer__mark .brand-mark { width: 36px; height: 36px; }

/* ------------------------------------------------------------------ hero */
.hero { background: radial-gradient(60% 55% at 72% 38%, color-mix(in oklab, var(--p-accent) 18%, transparent), transparent 70%); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--s-5); font: 600 18px/1 var(--font-text); color: var(--ink); }
.hero__eyebrow img { width: 40px; height: 40px; flex: none; border-radius: 22%; box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--p-accent) 70%, transparent); }
.hero__text h1 { max-width: 11ch; }
.hero__text .hero__lead { margin-top: var(--s-5); max-width: 40ch; font-size: var(--t-lead); }
.hero__text .btn-row { margin-top: var(--s-6); }
.hero__text .cmd.cmd--hero { margin-top: var(--s-4); max-width: 34rem; align-items: center; padding: 4px 4px 4px 14px; border-radius: 12px; }
.cmd.cmd--hero pre { padding-top: 0; font-size: 13px; line-height: 20px; white-space: nowrap; word-break: normal; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.cmd.cmd--hero pre::-webkit-scrollbar { display: none; }
.cmd.cmd--hero .copy { width: 36px; height: 36px; }
.hero--split .hero__text > .hero-facts { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.hero--split .hero__media.demo { display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); position: relative; overflow: visible; background: none; border-radius: 0; }
@media (min-width: 1024px) {
  .hero--split .hero__grid { align-content: center; align-items: start; }
  .hero--split .hero__grid > .hero__media.demo { grid-column: 6 / span 7; justify-content: flex-start; height: auto; }
  /* the frozen screen and its keys as wide as the first screen's height allows, on the right line */
  .hero .demo > :is(.lx, .keys) { width: min(100%, calc((100svh - 300px) * 1.6)); margin-left: auto; }
}
@media (max-width: 1023px) {
  .hero--split .hero__media.demo { flex: none; height: auto; min-height: 0; }
}
/* a phone has no keyboard or Terminal, so the keys and the command go and the frozen screen is the demo */
@media (max-width: 639px) {
  .hero__eyebrow, .hero .keys, .hero .cmd--hero { display: none; }
  .hero__text .hero__lead { margin-top: var(--s-4); font-size: 17px; line-height: 25px; }
  .hero__text .btn-row { margin-top: var(--s-5); flex-direction: row; align-items: center; }
}
/* the marked mocks keep the page's type; the .ui base would set its own */
.ui:is(.ui-lens, .ui-well, .ui-keys) { font: inherit; color: inherit; letter-spacing: inherit; font-feature-settings: normal; }

/* ------------------------------------------------------------------ the frozen-screen demo (.lx) */
.lx { position: relative; container-type: inline-size; border-radius: 14px; padding: 6px; background: linear-gradient(#1d2129, #12151b); box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 30px 80px -30px rgba(0,0,0,.8); }
.lx__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; font-size: 1.62cqw; background: #dfe6ef; color: #1b2230; user-select: none; -webkit-user-select: none; touch-action: pan-y; isolation: isolate; outline: none; }
.lx__screen:focus-visible { box-shadow: 0 0 0 3px var(--sky); }
/* a finger scrolls the page past a demo until it taps it once */
.lx.is-engaged .lx__screen { touch-action: none; }
.lx[data-state="idle"] .lx__screen { cursor: pointer; }
.lx--mini .lx__screen { font-size: 1.9cqw; }

/* the desktop under the overlay */
.desk { position: absolute; inset: 0; background: radial-gradient(120% 90% at 10% 0%, #b9cbe6, #e9d9c9 60%, #d7c2b8); }
.desk__bar { position: absolute; inset: 0 0 auto; height: 1.9em; display: flex; align-items: center; gap: 1.3em; padding: 0 1em; font-size: .78em; font-weight: 600; color: #111; background: rgba(255,255,255,.9); }
.desk__bar b { font-weight: 700; }
.desk__bar .r { margin-left: auto; display: flex; align-items: center; gap: 1em; font-weight: 500; }
.desk__bar img { width: 1.25em; height: 1.25em; }
.win { position: absolute; border-radius: .7em; background: #fff; box-shadow: 0 1.2em 3em -1em rgba(20,30,50,.45), 0 0 0 1px rgba(0,0,0,.06); overflow: hidden; display: flex; flex-direction: column; }
.win__bar { flex: none; height: 2.2em; display: flex; align-items: center; gap: .45em; padding: 0 .9em; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; }
.win__bar i { width: .72em; height: .72em; border-radius: 50%; background: #ff5f57; }
.win__bar i:nth-child(2) { background: #febc2e; } .win__bar i:nth-child(3) { background: #28c840; }
.win__url { margin: 0 auto; padding: .2em 1.4em; border-radius: .5em; background: #fff; font-size: .78em; color: #4b5563; border: 1px solid #e5e7eb; }
.win__body { flex: 1; min-height: 0; position: relative; }

/* hero scene: a shop page */
.shop { inset: 2.9em 3.2em 2.4em 3.2em; }
.shop .win__body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2em; padding: 1.8em 2.2em; }
.shop__photo { position: relative; border-radius: .6em; overflow: hidden; background: #e9e4dc; }
.shop__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop__info { display: flex; flex-direction: column; gap: .7em; padding-top: .4em; }
.shop__brand { font-size: .8em; font-weight: 700; color: #5f6672; }
.shop__title { font-size: 1.75em; line-height: 1.15; font-weight: 650; letter-spacing: -.02em; }
.shop__price { font-size: 1.3em; font-weight: 600; }
.shop__desc { font-size: .95em; line-height: 1.5; color: #374151; }
.shop__review { margin-top: .3em; padding: .8em 1em; border-radius: .6em; background: #f4f5f7; font-size: .92em; line-height: 1.45; }
.shop__review small { display: block; margin-top: .3em; color: #5f6672; font-size: .85em; }
.shop__btn { margin-top: auto; align-self: start; padding: .6em 1.6em; border-radius: 99em; background: #1f2937; color: #fff; font-size: .9em; font-weight: 600; }
@container (max-width: 560px) {
  .lx__screen { aspect-ratio: 4 / 5; font-size: 3.1cqw; }
  .lx--mini .lx__screen { aspect-ratio: 4 / 5; font-size: 3.1cqw; }
  .shop { inset: 2.6em 1.2em 1.2em; }
  .shop .win__body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 1em; padding: 1em 1.2em; }
  .shop__desc, .shop__btn { display: none; }
  .lx[data-lens="hero"] .lx__screen { aspect-ratio: 1 / .92; }
  .lx[data-lens="hero"] .shop .win__body { grid-template-columns: .85fr 1fr; grid-template-rows: none; }
  .lx[data-lens="hero"] .shop__title { font-size: 1.5em; }
}

/* selectable words */
.w { border-radius: .18em; transition: background-color .12s; }
.w.is-sel { background: color-mix(in srgb, #4285f4 34%, transparent); box-shadow: 0 0 0 .08em color-mix(in srgb, #4285f4 34%, transparent); }
.lx:not([data-state="idle"]) [data-ent] { text-decoration: underline dotted color-mix(in srgb, #4285f4 70%, transparent); text-decoration-thickness: .12em; text-underline-offset: .2em; }
.w.is-speaking { background: #fbbc05; box-shadow: 0 0 0 .08em #fbbc05; }
[data-tr].is-translated > .tr { display: block; }
[data-tr] > .tr { display: none; }
[data-tr].is-translated > .orig { visibility: hidden; height: 0; overflow: hidden; display: block; }
.tr { color: inherit; background: color-mix(in srgb, #fff 88%, #4285f4); border-radius: .25em; box-shadow: 0 0 0 .25em color-mix(in srgb, #fff 88%, #4285f4); }

/* the overlay over the frozen screen */
.ov { --glass: rgba(34,38,46,.58); --glass-blur: blur(14px) saturate(1.7); --glass-edge: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.1); position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s; }
.lx[data-state]:not([data-state="idle"]) .ov { opacity: 1; }
.lx[data-state]:not([data-state="idle"]) .ov > * { pointer-events: auto; }
.ov__shade { position: absolute; inset: 0; background: rgba(8,12,20,.18); pointer-events: none !important; }
.ov__glow { position: absolute; inset: 0; pointer-events: none !important; border-radius: 9px; padding: .42em;
  background: conic-gradient(from 210deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: blur(.42em); opacity: .9; }
.lx.is-opening .ov__glow { animation: lx-glow 900ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes lx-glow { from { opacity: 0; transform: scale(1.04); filter: blur(1.4em); } to { opacity: .9; transform: none; filter: blur(.42em); } }
.ov__hit { position: absolute; inset: 0; cursor: crosshair; }
.ov__ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none !important; overflow: visible; }
.ov__ink path { fill: none; stroke: #fff; stroke-width: .5em; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 .35em rgba(66,133,244,.9)); transition: opacity .25s; }
.ov__ink.is-fading path { opacity: 0; }
.hole { position: absolute; border-radius: 1em; box-shadow: 0 0 0 200vmax rgba(8,12,20,.38); pointer-events: none !important; transition: left .28s cubic-bezier(.2,.8,.2,1), top .28s cubic-bezier(.2,.8,.2,1), width .28s cubic-bezier(.2,.8,.2,1), height .28s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.lx[data-state="text"] .hole, .lx[data-state="open"] .hole { opacity: 0; }
.brk { position: absolute; pointer-events: none !important; transition: left .28s cubic-bezier(.2,.8,.2,1), top .28s cubic-bezier(.2,.8,.2,1), width .28s cubic-bezier(.2,.8,.2,1), height .28s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.brk i { pointer-events: auto; touch-action: none; }
.brk i::after { content: ""; position: absolute; inset: -.9em; }
.lx.is-dragging .brk, .lx.is-dragging .hole { transition: none; }
.brk[hidden] { display: none; }
.brk i { position: absolute; width: min(2em, 34%); height: min(2em, 34%); border: .5em solid rgba(236,239,243,.86); }
.brk i:nth-child(1) { left: -.5em; top: -.5em; border-right: 0; border-bottom: 0; border-top-left-radius: 1.5em; cursor: nwse-resize; }
.brk i:nth-child(2) { right: -.5em; top: -.5em; border-left: 0; border-bottom: 0; border-top-right-radius: 1.5em; cursor: nesw-resize; }
.brk i:nth-child(3) { left: -.5em; bottom: -.5em; border-right: 0; border-top: 0; border-bottom-left-radius: 1.5em; cursor: nesw-resize; }
.brk i:nth-child(4) { right: -.5em; bottom: -.5em; border-left: 0; border-top: 0; border-bottom-right-radius: 1.5em; cursor: nwse-resize; }
.lx.is-morph .brk { animation: lx-morph 320ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes lx-morph { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }

.ov__x { position: absolute; left: 1em; top: 1em; width: 2.4em; height: 2.4em; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(32,36,44,.82); color: #fff; cursor: pointer; }
.ov__x svg { width: 42%; height: 42%; }
.ov__bar { position: absolute; left: 50%; bottom: 1.2em; transform: translateX(-50%); width: min(26em, 62%); height: 2.9em; display: flex; align-items: center; gap: .6em; padding: 0 .5em 0 1.1em; border-radius: 99em; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: #fff; box-shadow: var(--glass-edge), 0 .6em 1.6em -.4em rgba(0,0,0,.45); transition: left .3s cubic-bezier(.2,.8,.2,1); }
.lx.has-sheet .ov__bar { left: calc(50% - 9.5em); }
.ov__bar input:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; border-radius: 99em; }
.ov__bar input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: #fff; font: inherit; font-size: .95em; outline: none; }
.ov__bar input::placeholder { color: rgba(255,255,255,.72); }
.ov__bar button { flex: none; height: 2em; padding: 0 .9em; border-radius: 99em; border: 0; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: .82em; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .4em; }
.ov__bar button svg { width: 1.1em; height: 1.1em; }
.ov__hint { position: absolute; left: 50%; top: 1.2em; transform: translateX(-50%); padding: .45em 1.1em; border-radius: 99em; background: rgba(32,36,44,.88); color: #fff; font-size: .88em; font-weight: 600; white-space: nowrap; pointer-events: none !important; transition: opacity .25s; }
.lx.is-touched .ov__hint, .lx:not([data-state="open"]) .ov__hint { opacity: 0; }
.ov__chips { position: absolute; display: flex; gap: .35em; padding: .3em; border-radius: 99em; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge), 0 .5em 1.4em -.4em rgba(0,0,0,.45); transform: translate(-50%, calc(-100% - .7em)); white-space: nowrap; z-index: 3; }
.ov__chips[hidden], .ov__selchip[hidden], .ov__handle[hidden] { display: none; }
.ov__chips.is-below { transform: translate(-50%, .9em); }
.ov__chips button, .ov__selchip { height: 2.1em; padding: 0 .85em; border-radius: 99em; border: 0; background: transparent; color: #fff; font: inherit; font-size: .84em; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .4em; }
.ov__chips button:hover, .ov__chips button:focus-visible { background: rgba(255,255,255,.14); outline: none; }
.ov__chips button.is-act { background: #4285f4; color: #0b0d12; }
.ov__chips svg, .ov__selchip svg { width: 1.15em; height: 1.15em; }
.ov__selchip { position: absolute; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transform: translate(-50%, .7em); box-shadow: var(--glass-edge), 0 .5em 1.4em -.4em rgba(0,0,0,.45); z-index: 3; }
.ov__selchip:hover, .ov__selchip:focus-visible { background: #2b313c; outline: none; }
.ov__selchip.is-above { transform: translate(-50%, calc(-100% - .7em)); }
.ov__handle { position: absolute; width: 1.15em; height: 1.15em; background: #4285f4; border-radius: 0 50% 50% 50%; cursor: ew-resize; touch-action: none; z-index: 3; }
.ov__handle::after { content: ""; position: absolute; inset: -.8em; }
.ov__handle--a { border-radius: 50% 0 50% 50%; transform: translateX(-100%); }
.ov__toast { position: absolute; left: 50%; bottom: 4.9em; transform: translate(-50%, .4em); padding: .5em 1.1em; border-radius: 99em; background: #fff; color: #111; font-size: .86em; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none !important; white-space: nowrap; z-index: 5; box-shadow: 0 .5em 1.4em -.4em rgba(0,0,0,.45); }
/* the wake pill: a closed demo opens again with a click or the shortcut */
.lx__wake { position: absolute; left: 50%; bottom: 1.4em; transform: translateX(-50%); z-index: 3; display: none; align-items: center; gap: .3em; height: 2.7em; padding: 0 1.1em 0 .5em; border-radius: 99em; border: 0; background: rgba(32,36,44,.92); color: #fff; font: inherit; font-size: .9em; font-weight: 600; cursor: pointer; box-shadow: 0 .6em 1.6em -.4em rgba(0,0,0,.5); }
.lx[data-state="idle"] .lx__wake { display: inline-flex; }
.lx__wake kbd { display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; border-radius: .45em; background: rgba(255,255,255,.16); font: inherit; }
.lx__wake span { margin-left: .35em; }
.ov__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* the results sheet */
.sheet { position: absolute; top: .8em; right: .8em; bottom: .8em; width: 19em; border-radius: 1.2em; background: #fff; color: #1f2328; box-shadow: 0 1em 3em -1em rgba(0,0,0,.55); display: flex; flex-direction: column; overflow: hidden; transform: translateX(calc(100% + 1.2em)); transition: transform .38s cubic-bezier(.2,.8,.2,1); z-index: 4; }
.lx.has-sheet .sheet { transform: none; }
.sheet__head { display: flex; align-items: center; gap: .7em; padding: .9em 1em .7em; border-bottom: 1px solid #edf0f3; }
.sheet__thumb { width: 2.6em; height: 2.6em; border-radius: .5em; background: #e9e4dc center / cover; flex: none; }
.sheet__q { min-width: 0; flex: 1; font-size: .86em; line-height: 1.3; }
.sheet__q b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__q span { display: block; color: #5f6773; }
.sheet__foot { flex: none; padding: .7em 1em .9em; border-top: 1px solid #edf0f3; }
.sheet__open { width: 100%; justify-content: center; height: 2.3em; padding: 0 .8em; border: 1px solid #dfe3e8; border-radius: 99em; background: #fff; color: #1f2328; font: inherit; font-size: .78em; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .35em; }
.sheet__open svg { width: 1.1em; height: 1.1em; }
.sheet__body { flex: 1; overflow: hidden; padding: .9em 1em; display: grid; align-content: start; gap: .8em; }
.sheet__label { font-size: .8em; font-weight: 650; color: #5f6773; }
.sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.res { position: relative; display: grid; gap: .3em; font-size: .78em; line-height: 1.25; }
.res::before { content: ""; aspect-ratio: 1; }
.res__img { position: absolute; inset: 0 0 auto 0; display: block; aspect-ratio: 1; border-radius: .6em; overflow: hidden; background: #ece7df center / cover no-repeat; }
/* only the leather sling takes the colour: the tinted copy is masked to it */
.res__img::after { content: ""; position: absolute; inset: 0; background: inherit; filter: var(--f, none); -webkit-mask: url(demo/chair-mask.png) center / cover no-repeat; mask: url(demo/chair-mask.png) center / cover no-repeat; transition: filter .35s; }
.res b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res span { color: #5f6773; }
.res em { font-style: normal; font-weight: 650; }
.sheet__list { display: grid; gap: .8em; }
.sheet__item { display: grid; gap: .15em; font-size: .8em; line-height: 1.35; padding-bottom: .7em; border-bottom: 1px solid #edf0f3; }
.sheet__item span { color: #1a7f37; font-size: .9em; }
.sheet__item b { color: #1a4fd6; font-weight: 600; }
.sheet__item p { color: #4b5563; }
.sheet__empty { font-size: .86em; line-height: 1.45; color: #4b5563; }
.sheet.is-loading .sheet__body > * { opacity: .35; transition: opacity .15s; }
@container (max-width: 560px) {
  .sheet { top: auto; left: .6em; right: .6em; bottom: .6em; width: auto; height: 58%; transform: translateY(calc(100% + 1em)); }
  .lx.has-sheet .ov__bar { left: 50%; opacity: 0; pointer-events: none; }
  .sheet__grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .res b, .res span:not(.res__img) { display: none; }
}

/* the shortcut keys under the hero demo */
.keys { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.keybtn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 8px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--ink) 38%, transparent); background: transparent; color: var(--ink); font: 500 15px/1 var(--font-text); cursor: pointer; transition: border-color var(--dur), background-color var(--dur); }
.keybtn:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); border-color: color-mix(in oklab, var(--ink) 60%, transparent); }
.keybtn kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; background: #1e232c; box-shadow: inset 0 -2px 0 rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); font: 600 15px/1 var(--font-text); color: var(--ink); transition: transform .08s, background-color .08s; }
.keybtn kbd + kbd { margin-left: -4px; }
.keybtn kbd + span { margin-left: 4px; }
.keys__hint { display: none; align-items: center; gap: 6px; margin-left: auto; color: var(--sky); font: 500 15px/1 var(--font-text); }
.keys__hint svg { width: 16px; height: 16px; }
@media (min-width: 1024px) { .keys { align-items: center; } .keys__hint { display: inline-flex; } }
.keybtn.is-down kbd { transform: translateY(2px); background: var(--p-accent); color: #0b0d12; box-shadow: none; }

/* ------------------------------------------------------------------ the reel */
.reel { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.reel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 639px) { .reel video { aspect-ratio: 4 / 5; } }
.reel__pause { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(11,13,18,.82); color: #fff; cursor: pointer; }
.reel__pause svg { width: 14px; height: 14px; }
.reel__pause .i-play { display: none; }
.reel__pause[aria-pressed="true"] .i-play { display: block; }
.reel__pause[aria-pressed="true"] .i-pause { display: none; }
.watch { align-items: start; }
.chapters { margin: 0; padding: 0; list-style: none; display: grid; }
.chapters[hidden] { display: none; }
.chapters:not([hidden]) + .watch__note { margin-top: var(--s-4); }
.chapters button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 16px; padding: 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: 500 17px/1.3 var(--font-text); text-align: left; cursor: pointer; transition: color var(--dur); }
.chapters li:last-child button { border-bottom: 1px solid var(--line); }
.chapters button span { min-width: 2.6em; font: 500 14px/1 var(--font-mono); color: var(--muted); }
.chapters button:hover, .chapters button[aria-current="true"] { color: var(--sky); }
.watch__note { margin-top: 0; max-width: 36ch; color: var(--muted); font-size: var(--t-small); }
@media (max-width: 1023px) { .watch .reel { margin-top: var(--s-5); } }
@media (max-width: 639px) { .chapters { display: none; } .chapters + .watch__note { margin-top: 0; } .watch .reel { margin-top: var(--s-4); } }

/* ------------------------------------------------------------------ text tour */
.tour__head { margin-bottom: var(--s-6); align-items: end; }
.tour__head > .tabs { display: flex; }
@media (min-width: 1024px) { .lx--mini { width: min(100%, calc((100svh - 330px) * 1.6)); } }
.tour__panels { position: relative; }
.tour__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
@media (min-width: 1024px) {
  .tour__panel { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .tour__panel { align-items: start; }
  .tour__panel > .tour__copy { grid-column: 1 / span 5; grid-row: 1; }
  .tour__panel > .lx { grid-column: 6 / span 7; grid-row: 1; }
}
.tour__copy h3 { font: 600 var(--t-card)/1.3 var(--font-text); letter-spacing: 0; }
.tour__copy p { margin-top: var(--s-3); max-width: 36ch; }
.tour__copy .mono { display: inline-block; margin-top: var(--s-4); color: var(--muted); font-size: 14px; }
.tour .tab kbd { font: inherit; }
.tab[aria-selected="true"] { background: var(--p-action); border-color: var(--p-action); color: var(--p-action-ink); }
.m-tab-ind { background: var(--p-action); }

/* mini scenes */
.call { inset: 1.2em 1.2em 1.2em 3.4em; background: #1d2027; color: #e9edf3; }
.call .win__bar { background: #262a33; border-color: #30353f; }
.call .win__url { background: #1d2027; border-color: #30353f; color: #aab2bf; }
.call .win__body { display: grid; grid-template-columns: 1fr 9em; gap: .8em; padding: .8em; }
.slide { border-radius: .5em; background: #f7f7f2; color: #1d2433; padding: 1.8em 2.2em 4.2em; display: flex; flex-direction: column; justify-content: center; gap: 1.1em; }
.slide__h { font-size: 2em; font-weight: 700; letter-spacing: -.02em; }
.slide p { font-size: 1.2em; line-height: 1.5; }
.slide .big { margin-top: 1.1em; font-family: var(--font-mono); font-size: 1.45em; padding: .5em .8em; border-radius: .4em; background: #e9ece4; align-self: start; }
.slide .big [data-pick] { white-space: nowrap; }
.tiles { display: grid; gap: .6em; }
.tile { border-radius: .5em; background: #2c313b; display: grid; place-items: end start; padding: .5em; font-size: .78em; color: #cdd3dd; }
.tile:nth-child(1) { background: linear-gradient(160deg, #3b4b63, #252b36); }
.tile:nth-child(2) { background: linear-gradient(160deg, #5a4639, #2a2622); }
.tile:nth-child(3) { background: linear-gradient(160deg, #364e45, #212825); }

.menu { position: absolute; inset: 0; background: #2a2420; display: grid; place-items: center; }
.menu__card { width: 62%; height: 88%; background: #f6efe2; color: #2b2118; border-radius: .3em; padding: 1.6em 2em; box-shadow: 0 1em 2em -1em rgba(0,0,0,.6); transform: rotate(-1.2deg); display: flex; flex-direction: column; gap: .75em; font-family: Georgia, "Times New Roman", serif; }
.menu__h { font-size: 1.5em; font-weight: 400; text-align: center; letter-spacing: .02em; }
.menu__card .sub { text-align: center; font-size: .82em; color: #7a6650; margin-top: -.4em; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: .2em 1em; }
.dish b { font-weight: 700; font-size: 1em; }
.dish p { grid-column: 1; font-size: .85em; color: #5b4a3a; line-height: 1.35; }
.dish i { grid-row: 1; grid-column: 2; font-style: normal; font-weight: 700; }

.article { inset: 1.2em 3em; }
.article .win__body { padding: 1.6em 2.4em; display: flex; flex-direction: column; gap: .8em; }
.article__h { font-size: 1.55em; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; font-family: Georgia, serif; }
.article .by { font-size: .82em; color: #5f6672; }
.article p { font-size: 1em; line-height: 1.6; color: #273142; font-family: Georgia, serif; }

.mail { inset: 1.2em 3em; }
.mail .win__body { padding: 1.4em 2.2em; display: flex; flex-direction: column; gap: .7em; font-size: .98em; line-height: 1.5; color: #273142; }
.mail .from { display: flex; gap: .8em; align-items: center; padding-bottom: .7em; border-bottom: 1px solid #eef0f3; }
.mail .from i { width: 2.4em; height: 2.4em; border-radius: 50%; background: #c9d8f0; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #2c4a7a; }
.mail .from b { display: block; }
.mail .from span { font-size: .85em; color: #5f6672; }
.mail__h { font-size: 1.3em; font-weight: 650; }
.mail dl { display: grid; grid-template-columns: max-content 1fr; gap: .25em 1.2em; margin: 0; }
.mail dt { color: #5f6672; }
.mail dd { margin: 0; }

@container (max-width: 560px) {
  .call .win__body { grid-template-columns: 1fr; }
  .tiles { display: none; }
  .menu__card { width: 88%; }
  .article, .mail { inset: 1em; }
  .article .win__body, .mail .win__body { padding: 1em 1.2em; }
}

/* ------------------------------------------------------------------ capability cards */
.caps { display: grid; gap: var(--card-gap); row-gap: max(var(--card-gap), 48px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .caps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .tour__head > .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); } .tour__head > .tabs .tab { flex: none; } }
.cap { display: grid; grid-template-rows: auto auto 1fr; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-5); border-radius: var(--r-lg); background: var(--p-surface); box-shadow: inset 0 0 0 1px var(--line); }
.cap h3 { font: 600 var(--t-card)/1.3 var(--font-text); letter-spacing: 0; padding: 0 var(--s-3); margin-top: var(--s-2); }
.cap p { padding: 0 var(--s-3); color: color-mix(in oklab, var(--ink) 80%, var(--bg)); }
.well { position: relative; height: 168px; border-radius: calc(var(--r-lg) - 6px); background: var(--well); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); --m-cycle: 3.2s; }
.well * { animation-play-state: paused; }
.cap:is(:hover, :focus-within) .well *, .well.is-live * { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .well * { animation: none !important; } }
@media (min-width: 1024px) { .well { height: 136px; } }
/* a phone lists the cards as rows: the well, drawn at 300 x 200 and zoomed to 120 x 80, beside its words */
@media (max-width: 639px) {
  .cap { grid-template-columns: minmax(0, 1fr) 120px; grid-template-rows: auto 1fr; column-gap: var(--s-4); row-gap: 4px; padding: var(--s-3); align-items: start; }
  .cap > .well { grid-column: 2; grid-row: 1 / span 2; width: 300px; height: 200px; zoom: .4; border-radius: 30px; }
  .cap h3, .cap p { grid-column: 1; padding: 0; margin: 0; }
  .cap p { font-size: var(--t-small); line-height: 1.45; }
}

/* well 1: pinch to zoom */
.w-zoom__pic { position: absolute; inset: 0; display: grid; place-items: center; transform-origin: 50% 50%; animation: wz var(--m-cycle) cubic-bezier(.65,0,.35,1) infinite; }
.w-zoom__pic span { font: 600 9px/1.3 var(--font-text); color: #c9d2e0; width: 110px; }
.w-zoom__pic span b { color: #fff; }
.w-zoom__dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 6px rgba(255,255,255,.15); left: 50%; top: 50%; animation: wzd var(--m-cycle) cubic-bezier(.65,0,.35,1) infinite; }
.w-zoom__dot + .w-zoom__dot { animation-name: wzd2; }
@keyframes wz { 0%, 12% { transform: scale(1); } 55%, 88% { transform: scale(2.2); } 100% { transform: scale(1); } }
@keyframes wzd { 0%, 12% { transform: translate(-14px, -6px); opacity: 1; } 55% { transform: translate(-56px, -26px); opacity: 1; } 65%, 100% { transform: translate(-56px, -26px); opacity: 0; } }
@keyframes wzd2 { 0%, 12% { transform: translate(8px, 6px); opacity: 1; } 55% { transform: translate(50px, 26px); opacity: 1; } 65%, 100% { transform: translate(50px, 26px); opacity: 0; } }
/* well 2: brackets move and resize */
.w-brk { position: absolute; left: 30%; top: 22%; width: 40%; height: 56%; animation: wb var(--m-cycle) cubic-bezier(.65,0,.35,1) infinite; }
.w-brk i { position: absolute; width: 16px; height: 16px; border: 4px solid rgba(236,239,243,.86); }
.w-brk i:nth-child(1) { left: -4px; top: -4px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.w-brk i:nth-child(2) { right: -4px; top: -4px; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.w-brk i:nth-child(3) { left: -4px; bottom: -4px; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.w-brk i:nth-child(4) { right: -4px; bottom: -4px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.w-brk__obj { position: absolute; left: 22%; top: 30%; width: 22%; height: 46%; border-radius: 40% 40% 12px 12px; background: linear-gradient(#4b6a9b, #2d4366); }
.w-brk__obj + .w-brk__obj { left: 58%; top: 40%; width: 18%; height: 36%; border-radius: 50%; background: linear-gradient(#a8743d, #6d4a25); }
@keyframes wb { 0%, 15% { left: 18%; top: 24%; width: 30%; height: 56%; } 45%, 60% { left: 18%; top: 24%; width: 62%; height: 56%; } 85%, 100% { left: 54%; top: 34%; width: 26%; height: 46%; } }
/* well 3: select text chip */
.w-chip__box { position: absolute; left: 14%; top: 16%; width: 72%; height: 48%; border-radius: 10px; box-shadow: 0 0 0 2px #fff; display: grid; align-content: center; gap: 6px; padding: 0 14px; }
.w-chip__box i { height: 7px; border-radius: 4px; background: #5b6472; }
.w-chip__box i:nth-child(2) { width: 80%; } .w-chip__box i:nth-child(3) { width: 60%; }
.w-chip__pill { position: absolute; left: 50%; top: 72%; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: #2a2f39; color: #fff; font: 600 12px/1 var(--font-text); white-space: nowrap; animation: wc var(--m-cycle) linear infinite; }
.w-chip__box i { animation: wci var(--m-cycle) linear infinite; }
@keyframes wc { 0%, 20% { opacity: 0; transform: translate(-50%, 6px); } 30%, 100% { opacity: 1; transform: translate(-50%, 0); } }
@keyframes wci { 0%, 45% { background: #5b6472; } 55%, 100% { background: #4285f4; } }
/* well 4: all text selected */
.w-all { position: absolute; inset: 22px 26px; display: grid; gap: 8px; align-content: start; }
.w-all i { height: 8px; border-radius: 4px; background: #5b6472; animation: wa var(--m-cycle) linear infinite; }
.w-all i:nth-child(2) { width: 86%; animation-delay: .06s; } .w-all i:nth-child(3) { width: 92%; animation-delay: .12s; }
.w-all i:nth-child(4) { width: 70%; animation-delay: .18s; } .w-all i:nth-child(5) { width: 40%; animation-delay: .24s; }
.w-all__keys { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 4px; }
.w-all__keys kbd { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #1e232c; box-shadow: inset 0 -2px 0 rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); font: 600 12px/1 var(--font-text); color: #e8ecf2; animation: wk var(--m-cycle) linear infinite; }
@keyframes wa { 0%, 22% { background: #5b6472; } 30%, 100% { background: #4285f4; } }
@keyframes wk { 0%, 12% { transform: none; } 15%, 22% { transform: translateY(2px); background: #4285f4; color: #0b0d12; } 26%, 100% { transform: none; } }
/* well 5: menu bar */
.w-bar { position: absolute; inset: 0 0 auto; height: 26px; background: #1c2027; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 14px; color: #c9d0db; font: 600 11px/1 var(--font-text); }
.w-bar img { width: 16px; height: 16px; }
.w-menu { position: absolute; right: 30px; top: 32px; width: 190px; border-radius: 10px; background: #252a33; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06); padding: 5px; font: 500 12px/1 var(--font-text); color: #e8ecf2; transform-origin: 85% 0; animation: wm var(--m-cycle) cubic-bezier(.2,.8,.2,1) infinite; }
.w-menu div { display: flex; justify-content: space-between; padding: 7px 9px; border-radius: 6px; }
.w-menu div:first-child { background: #4285f4; color: #0b0d12; }
.w-menu span { opacity: .75; }
.w-menu__sep { display: block; height: 1px; margin: 4px 6px; background: rgba(255,255,255,.1); }
@keyframes wm { 0%, 15% { opacity: 0; transform: scale(.96); } 25%, 100% { opacity: 1; transform: none; } }
/* well 6: open in browser with the image */
.w-tab { position: absolute; left: 50%; top: 50%; width: 210px; transform: translate(-50%, -50%); border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 12px 30px -12px rgba(0,0,0,.7); }
.w-tab__bar { height: 20px; background: #eef0f3; display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.w-tab__bar i { width: 6px; height: 6px; border-radius: 50%; background: #c5cad3; }
.w-tab__body { display: flex; gap: 10px; align-items: center; padding: 12px; }
.w-tab__img { width: 54px; height: 54px; border-radius: 8px; background: #e9e4dc center / cover; animation: wt var(--m-cycle) cubic-bezier(.2,.8,.2,1) infinite; }
.w-tab__lines { flex: 1; display: grid; gap: 6px; }
.w-tab__lines i { height: 7px; border-radius: 4px; background: #d7dce3; }
.w-tab__lines i:nth-child(2) { width: 70%; } .w-tab__lines i:nth-child(3) { width: 50%; background: #c4d7f8; }
@keyframes wt { 0%, 15% { transform: translate(-90px, 40px) scale(.6); opacity: 0; } 40%, 100% { transform: none; opacity: 1; } }

/* ------------------------------------------------------------------ privacy */
.priv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--card-gap); }
@media (max-width: 767px) { .priv { grid-template-columns: minmax(0, 1fr); } }
.priv__col { border-radius: var(--r-lg); padding: var(--s-6); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: grid; align-content: start; gap: var(--s-4); }
.priv__col h3 { display: flex; align-items: center; gap: 12px; font: 600 var(--t-card)/1.3 var(--font-text); letter-spacing: 0; }
.priv__col h3 svg { width: 28px; height: 28px; flex: none; }
.priv__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.priv__col li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s-4); }
.priv__col li span { color: var(--muted); font-size: var(--t-small); text-align: right; }
.priv__note { margin-top: var(--s-5); max-width: 70ch; }
@media (max-width: 639px) {
  .priv__col { padding: var(--s-5) var(--s-4); gap: var(--s-3); }
  .priv__col li { padding: 9px 0; }
  .priv__note { margin-top: var(--s-4); font-size: var(--t-small); }
}

/* ------------------------------------------------------------------ install */
.inst { display: flex; flex-direction: column; min-width: 0; }
.inst > .tabs { margin-bottom: var(--s-4); }
.inst__panel { display: grid; gap: var(--s-3); }
.inst__panel p { color: color-mix(in oklab, var(--ink) 80%, var(--bg)); max-width: 56ch; }
.inst__panel .btn-row { margin-top: var(--s-2); }
.cmd { position: relative; display: flex; align-items: flex-start; gap: var(--s-3); padding: 12px 12px 12px 16px; border-radius: 12px; background: #07090c; box-shadow: inset 0 0 0 1px var(--line); }
.cmd pre { flex: 1; min-width: 0; margin: 0; padding-top: 6px; font: 500 14px/1.6 var(--font-mono); color: #d6deea; white-space: pre-wrap; word-break: break-all; }
.cmd pre .p { color: var(--sky); user-select: none; }
.copy { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--ink) 38%, transparent); background: transparent; color: var(--ink); cursor: pointer; transition: border-color var(--d-fast, .15s), color var(--d-fast, .15s); }
.copy svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy .i-done, .copy[data-done] .i-copy { visibility: hidden; }
.copy[data-done] .i-done { visibility: visible; }
.copy:hover { border-color: var(--sky); }
.copy[data-done] { color: var(--sky); border-color: var(--sky); }
@media (max-width: 639px) { .copy { width: 44px; height: 44px; } }
.first__h { margin-top: var(--s-6); font: 600 var(--t-card)/1.3 var(--font-text); letter-spacing: 0; }
.first-run { margin: var(--s-2) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.first-run li { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.first-run b { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.first-run span { padding-left: 32px; text-wrap: pretty; color: color-mix(in oklab, var(--ink) 80%, var(--bg)); }
.first-run b i, .sys__n { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--p-action); color: var(--p-action-ink); font: 700 12px/1 var(--font-text); font-style: normal; }
.inst__shot { align-self: stretch; display: grid; align-items: center; }
@media (max-width: 1023px) { .inst__shot { margin-top: var(--s-7); } }

/* the System Settings mock: Privacy & Security in dark mode */
.sys { display: grid; grid-template-columns: 36% minmax(0, 1fr); border-radius: 14px; overflow: hidden; background: #1f1f21; color: #e5e5e7; font: 500 14px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; letter-spacing: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 70px -30px rgba(0,0,0,.85); }
.sys b { flex: none; width: 20px; height: 20px; border-radius: 5px; background: var(--c); }
.sys__side { display: grid; align-content: start; gap: 2px; padding: 14px 10px 18px; background: #29292b; border-right: 1px solid rgba(0,0,0,.4); }
.sys__side > span { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 7px; color: #d8d8da; }
.sys__side > .is-on { background: #0a5fd1; color: #fff; }
.sys__lights { display: flex; gap: 8px; padding: 2px 6px 14px; }
.sys__lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.sys__lights i:nth-child(2) { background: #febc2e; } .sys__lights i:nth-child(3) { background: #28c840; }
.sys__side > .sys__search { height: 30px; margin-bottom: 8px; background: rgba(255,255,255,.07); color: #a1a1a6; }
.sys__main { padding: 22px 22px 26px; display: grid; align-content: start; gap: 12px; }
.sys__h { font-size: 17px; font-weight: 700; color: #f2f2f4; margin-bottom: 4px; }
.sys__group { border-radius: 10px; background: #2b2b2e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.sys__row, .sys__app { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; }
.sys__row + .sys__row, .sys__app { border-top: 1px solid rgba(255,255,255,.07); }
.sys__row em { margin-left: auto; font-style: normal; color: #a1a1a6; }
.sys__app { padding-left: 44px; }
.sys__app img { width: 22px; height: 22px; border-radius: 5px; }
.sys__app .sys__n { margin-left: auto; }
.sys__toggle { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #0a84ff; }
.sys__toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.sys__label { margin-top: 6px; font-size: 13px; font-weight: 700; color: #a1a1a6; }
.sys__blocked { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; }
.sys__blocked p { flex: 1 1 100%; color: #d8d8da; }
.sys__blocked .sys__n { margin-left: auto; }
.sys__btn { padding: 4px 12px; border-radius: 7px; font-size: 13px; line-height: 17px; background: #5a5a5e; color: #fff; font-weight: 600; box-shadow: 0 0 0 3px color-mix(in oklab, #0a84ff 55%, transparent); }

/* a phone shows the main pane only: the switch and the button */
@media (max-width: 639px) {
  .inst__shot { margin-top: var(--s-6); }
  .sys.ui { grid-template-columns: minmax(0, 1fr); font-size: 13px; }
  .sys__side, .sys__row:not(:nth-child(3)) { display: none; }
  .sys__main { padding: 16px 14px 18px; gap: 10px; }
  .sys__row + .sys__row { border-top: 0; }
}

/* ------------------------------------------------------------------ faq + close */
.faq a, .priv__note a, .inst__card a:not(.btn), .first-run a { color: var(--sky); }
/* step 1's Settings link sits in a span, outside the running-text link rule (p a); same look */
.first-run a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); transition: text-decoration-color .2s; }
.first-run a:hover { text-decoration-color: currentColor; }
/* the system sizes the word for a short name; ours is ten characters plus the mark (about 6.2em), so it is capped to the wrap */
.close__word { display: flex; align-items: center; gap: .18em; line-height: 1.02; font-size: min(clamp(56px, 14.5vw, 216px), calc(min(100vw - 2 * var(--gut), var(--container)) / 6.4)); }
.close__word img { width: .78em; height: .78em; flex: none; }
.footer__legal small { color: var(--muted); font-size: 13px; display: block; }
.coffee { display: inline-flex; align-items: center; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .lx.is-opening .ov__glow, .lx.is-morph .brk { animation: none; }
  .sheet, .hole, .brk, .ov__bar { transition: none; }
}

.nav__link[aria-current="location"]::after { content: ""; position: absolute; left: var(--s-2); right: var(--s-2); bottom: -2px; height: 2px; border-radius: 2px; background: currentColor; }
.nav.is-open .nav__link[aria-current="location"]::after { left: 0; right: auto; width: 24px; bottom: 10px; }
@media (max-width: 479px) { .nav__cta-x { display: none; } }
html[data-buttons="pill"] .btn--secondary { background: transparent; border-color: color-mix(in oklab, var(--ink) 38%, transparent); }
html[data-buttons="pill"] .btn--secondary:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); border-color: color-mix(in oklab, var(--ink) 60%, transparent); }

/* Buy Me a Coffee: the service's own yellow and black, drawn here (no widget script, no remote image), and one
   step smaller than Download (36 against 44) so Download stays the page's main action */
.bmc { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; height: var(--btn-h-sm); padding: 0 14px 0 11px;
  border-radius: var(--r-btn); background: #ffdd00; color: #000; font: 600 14px/1 var(--font-text); white-space: nowrap;
  transition: background-color var(--dur) var(--ease); }
.bmc:hover { background: #f0cf00; }
.bmc:active { transform: translateY(1px) scale(.985); }
.bmc__cup { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* a laptop bar has no room for the words beside GitHub and Download for Mac: the cup alone, named by its label */
@media (min-width: 1024px) and (max-width: 1439px) {
  .nav__actions > .bmc { width: var(--btn-h-sm); padding: 0; }
  .nav__actions > .bmc .bmc__x { display: none; }
}
/* and on the smallest laptops Download drops "for Mac", so the group stays clear of the centred words */
@media (min-width: 1024px) and (max-width: 1139px) { .nav__actions .nav__cta-x { display: none; } }
@media (max-width: 1023px) {
  /* a tablet bar keeps the cup beside Download; a phone bar has room for Download and the menu button only */
  .nav:not(.is-open) .nav__actions > a.bmc { display: inline-flex; width: 44px; height: 44px; padding: 0; }
  .nav:not(.is-open) .nav__actions > a.bmc .bmc__x { display: none; }
  /* the open sheet: Download across the foot, then Buy me a coffee and GitHub side by side */
  .nav.is-open .nav__actions { grid-template-columns: 1fr 1fr; }
  .nav.is-open .nav__actions > .btn--primary { grid-column: 1 / -1; }
  .nav.is-open .nav__actions > .bmc { order: 1; height: var(--btn-h); font-size: 15px; }
}
@media (max-width: 639px) { .nav:not(.is-open) .nav__actions > a.bmc { display: none; } }
/* the support line at the foot of Install */
.support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6);
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.support p { margin: 0; text-wrap: pretty; }
/* side by side, Install is one fixed screen already full on its left: the line takes the foot of the
   right column, under the Settings mock (now at the column's top), so the section grows by nothing */
@media (min-width: 1024px) {
  #install .inst, #install .inst__shot, #install .support { grid-row: 2; }
  #install .inst__shot { align-self: start; }
  #install .support { grid-column: 7 / -1; align-self: end; flex-wrap: nowrap; margin-top: 0; padding-top: var(--s-4); }
  #install .support p { flex: 1 1 auto; min-width: 0; }
  #install .support .muted { display: block; }
}

/* a short screen. Under 900 tall the rhythm tightens (one screen still, with room under the last row);
   under 830 (1440x780, 1366x768, 1280x720, a tablet or a phone on its side) a section that still cannot
   hold its content grows past the screen rather than lay it over the next one. */
@media (min-width: 640px) and (max-height: 899px) {
  :root { --padt: 104px; --padb: 56px; --hgap: 32px; --hpadb: 40px; }
}
@media (min-width: 640px) and (max-height: 829px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
  }
  :where(main > :is(section, .section):not(.hero, .section--hero), footer.closing) { display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
/* the hero likewise, there and on a tablet (768x1024 stacks words and picture taller than the screen):
   at least the first screen, taller only when its content needs it */
@media (min-width: 640px) and (max-height: 829px), (min-width: 640px) and (max-width: 1279px) {
  main > :is(.hero, .section--hero) { height: auto; min-height: 100vh; min-height: 100svh; }
  main > :is(.hero, .section--hero):has(> :is(.wrap, .container)) { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; }
  main > :is(.hero, .section--hero) > :is(.wrap, .container) { height: auto; }
}

/* ------------------------------------------------------------------ gatekeeper tip
   shown when a DMG link is clicked: how to get past macOS's "Not Opened" dialog. It never blocks the
   download; it sits in a corner until closed. The two chips mimic the dialog's own buttons. */
.gk { position: fixed; z-index: 60; right: var(--gut); bottom: 24px; width: min(388px, calc(100vw - 2 * var(--gut)));
  padding: var(--s-5) var(--s-5) var(--s-4); border-radius: var(--r-lg); background: var(--p-surface); color: var(--p-ink);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--p-ink) 14%, transparent), 0 24px 60px -18px rgba(0,0,0,.7);
  font: 400 var(--t-small)/1.5 var(--font-text); }
.gk__h { margin: 0 32px var(--s-3) 0; font: 600 var(--t-body)/1.35 var(--font-text); text-wrap: balance; }
.gk__x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--p-muted); cursor: pointer; }
.gk__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.gk__x:hover { color: var(--p-ink); background: color-mix(in oklab, var(--p-ink) 8%, transparent); }
.gk__steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.gk__steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.gk__steps i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--p-action);
  color: var(--p-action-ink); font: 700 12px/1 var(--font-text); font-style: normal; }
.gk__steps span { padding-top: 1px; text-wrap: pretty; color: color-mix(in oklab, var(--p-ink) 84%, var(--p-bg)); }
.gk__steps b { color: var(--p-ink); font-weight: 600; }
.gk__b { display: inline-block; padding: 0 9px; border-radius: 6px; background: #4b4f57; color: #fff !important; font-weight: 600;
  line-height: 1.55; box-shadow: 0 0 0 2px var(--sky); white-space: nowrap; margin: 0 3px 0 2px; }
.gk__b--trash { background: #2f6fd8; box-shadow: none; opacity: .72; }
.gk__open { margin-top: var(--s-4); }
.gk__alt { margin: var(--s-3) 0 0; color: var(--p-muted); }
.gk__alt a { color: var(--p-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--p-ink) 40%, transparent); }
.gk__alt a:hover { text-decoration-color: var(--sky); }
.gk :focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (max-width: 639px) {
  .gk { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: var(--s-4) var(--s-4) var(--s-3); }
  .gk__x { width: 44px; height: 44px; top: 4px; right: 4px; }
  .gk__open { width: 100%; }
}
