@font-face { font-family: "Geist"; src: url("/__ps/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/__ps/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@property --beam-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; } /* for the toolbar: a shadow root can't register it */
/* Home: the website as a project in clickroom. The hero fills the window; scrolling zooms out to
   every page, as All pages does (.ovwWorld in overview.css). --z is the zoom, --p how far out. */
.hero { display: flex; flex-direction: column; height: 100%; min-height: 100dvh; box-sizing: border-box; background: var(--bg); }
.js .hero { min-height: 0; }
body[data-page="home"] { cursor: url("/__ps/setup/pointer.svg") 1 1, auto; } /* the plane from the logo */
.hHead { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 0; padding: 20px 28px; }
.hBrand { position: relative; justify-self: start; display: flex; align-items: center; gap: 10px; }
.hNav { display: flex; gap: 4px; }
.hHead .signin { justify-self: end; }
.hNav a, .hHead .signin { padding: 4px 10px; border-radius: 8px; color: var(--ink-2); font-size: 15px; text-decoration: none; transition: background .12s, color .12s; }
.hNav a:hover, .hHead .signin:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.hHead a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hMain { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: safe center; max-width: none; margin: 0; padding: 0 24px 120px; text-align: center; }
.hMain h1 { max-width: 900px; margin: 0; font-size: clamp(34px, 5.6vw, 68px); line-height: 1.06; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.hMain .lead { max-width: 640px; margin: 22px 0 0; font-size: clamp(16px, 1.6vw, 19px); text-wrap: pretty; }
.hActs { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; }
.hActs .btn { display: flex; align-items: center; height: 46px; box-sizing: border-box; padding: 0 22px; border-radius: 10px; font-size: 16px; }
.hActs .btn:hover { background: #4338ca; }
.npx { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 7px 0 16px; border: 1px solid #ffffff1f; border-radius: 10px; background: #18181b; color: #e4e4e7; font: 500 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; transition: transform .15s; }
.npx b { color: #a3e635; font-weight: 500; }
.npx .cp { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; box-sizing: border-box; border-radius: 7px; background: #ffffff1a; color: #fff; font: 600 12px/1 ui-sans-serif, system-ui, sans-serif; transition: background .2s, color .2s; }
.npx:hover .cp { background: #ffffff33; }
.npx:active { transform: scale(.97); }
.npx svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hMain .note { margin: 12px 0 0; font-size: 14px; }

/* Without scripts: the hero, then the pages as plain links. */
.tile:not(.tHome) { display: inline-block; margin: 8px 12px; }
.tHome .tOpen, .hFoot { display: none; }
.hFoot { font-size: 13px; }

.js .track { height: 350dvh; }
.js .view { position: sticky; top: 0; height: 100dvh; overflow: clip; background: var(--bg); } /* the hero's own, so a phone's address bar folding away shows no edge */
.js .view.all { background: #eeeef0; }
.js .world { position: absolute; left: 0; top: 0; transform-origin: 0 0; --z: 1; --p: 0; will-change: transform; }
.js .tile { position: absolute; display: block; margin: 0; width: 100vw; height: 100dvh; background: var(--bg); box-shadow: 0 0 0 calc(1px / var(--z)) var(--line); }
.js .tile:not(.tHome), .js .tOpen { visibility: hidden; }
.js .moved .tile, .js .moved .tOpen { visibility: visible; }
.js .tile iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: var(--bg); pointer-events: none; }
.js .tOpen { display: block; position: absolute; inset: 0; color: var(--ink); text-decoration: none; pointer-events: none; }
.js .zoomed .tOpen { pointer-events: auto; cursor: pointer; }
.js .zoomed .tile:hover { box-shadow: 0 0 0 calc(2px / var(--z)) var(--accent); }
.js .tOpen:focus-visible { outline: calc(3px / var(--z)) solid var(--accent); outline-offset: calc(2px / var(--z)); }
.js .tName { transition: opacity .3s; position: absolute; left: 0; bottom: 100%; padding-bottom: 6px; transform-origin: 0 100%; transform: scale(calc(1 / var(--z))); font: 600 14px/18px ui-sans-serif, system-ui, -apple-system, sans-serif; white-space: nowrap; opacity: var(--p); }
.js .leaving .tName { opacity: 0; transition: opacity .15s; }
.js .hFoot { display: block; margin: 0; padding: 0; border: 0; position: absolute; left: 50%; bottom: 68px; width: min(760px, calc(100% - 32px)); transform: translateX(-50%); color: var(--ink-2); text-align: center; line-height: 1.4; visibility: hidden; opacity: 0; transition: opacity .2s; }
.js .view.done .hFoot { visibility: visible; opacity: 1; }
@media (prefers-color-scheme: dark) { .js .view.all { background: #101012; } }
@media (max-width: 640px) {
  .hHead { grid-template-columns: 1fr auto; gap: 4px 0; padding: 12px 14px 4px 18px; }
  /* Fingers: the links get room, not bigger type. */
  .hNav a, .hHead .signin { padding: 10px 12px; }
  .hMain { padding: 0 20px 110px; }
  .hMain .note { text-wrap: balance; }
  .suCap p { text-wrap: balance; }
  .suBody { font-size: 13px; }
  .suLink { display: flex; flex-wrap: wrap; }
  .suLink .u { order: 3; width: 100%; padding-left: 2ch; }
  .hNav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 640px) { .js .hFoot { font-size: 11.5px; bottom: 62px; } }

/* The line of dots behind an animated cursor (drawTrails() in home.js). Multiplied, so text stays on top of it. */
.trail { display: none; }
.js .trail { display: block; position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: multiply; }
.js .view.all .trail { visibility: hidden; }
@media (prefers-color-scheme: dark) { .js .trail { mix-blend-mode: normal; } }

/* The story's people: cursors, pins and comments, moved by the scroll (home.js). */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.story { display: none; }
.js .story:not([hidden]) { display: block; position: absolute; inset: 0; overflow: clip; pointer-events: none; font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, sans-serif; }
.stCue { position: absolute; left: 50%; bottom: 72px; display: flex; align-items: center; gap: 4px; transform: translateX(-50%); color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.stCue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stCur { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.stCur svg { display: block; width: 22px; height: 22px; fill: var(--c); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 2px 3px #0004); }
.stCur span { position: absolute; left: 16px; top: 18px; padding: 2px 8px; border-radius: 99px 99px 99px 4px; background: var(--c); color: #fff; font: 650 12px/18px ui-sans-serif, system-ui, sans-serif; white-space: nowrap; }
.stPin { position: absolute; width: 26px; height: 26px; margin: -26px 0 0 -2px; border-radius: 50% 50% 50% 4px; background: var(--c); color: #fff; font: 700 12px/26px ui-sans-serif, system-ui, sans-serif; text-align: center; box-shadow: 0 4px 12px -2px #0005; transform-origin: 2px 26px; transform: scale(0); }
.stPin.done { background: #16a34a; }
.stBub { position: absolute; left: 0; top: 0; box-sizing: border-box; width: 240px; padding: 10px 12px; border-radius: 12px; background: var(--bg); color: var(--ink); box-shadow: 0 16px 40px -10px #0005, 0 0 0 1px #0000000f; opacity: 0; will-change: transform, opacity; }
.stHead { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.stTag { padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 10.5px; font-weight: 700; }
.stText { margin-top: 4px; }
.stText.typing::after { content: ''; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--ink); }
/* The terminal: it grows out of the npx clickroom button (tellGrow() in home.js), the room going dark around it. */
.setup { display: none; }
.js .setup:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; color: #fff; }
.suBack { position: absolute; inset: 0; background: #0f0f12; opacity: 0; }
.suCap { position: absolute; left: 20px; right: 20px; text-align: center; opacity: 0; will-change: transform, opacity; }
.suCap h2 { margin: 0; color: #fff; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.suCap p { margin: 10px 0 0; color: #a1a1aa; font-size: 15px; }
.suTerm { position: absolute; box-sizing: border-box; overflow: hidden; background: #18181b; will-change: transform, opacity; }
.suTerm .termBar { overflow: hidden; }
.suBody { color: #e4e4e7; font: 500 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.suBody b { color: #fff; font-weight: 600; }
.suCmd b { color: #a3e635; font-weight: 500; }
.suBody .ok { color: #4ade80; } .suBody .u { color: #a5b4fc; text-decoration: underline; text-underline-offset: 3px; } .suBody .d { color: #71717a; }
.suLine { opacity: 0; white-space: pre-wrap; }
.suCopy { position: absolute; right: 7px; top: 7px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: #ffffff1a; color: #fff; }
.suCopy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.js .view.all .setup, .js .view.all .story { visibility: hidden !important; }
.js .view.all .npx { visibility: visible !important; }

/* The checkout: someone's own website, so nothing of clickroom's look. It fades in over the terminal.
   v1 is rough on purpose; the fixes (fx1 to fx8 on .co, home.js) build it up to the finished page, after
   Figma's Checkout and Accounts UI Kit (33787:1193), with some of its parts left out. */
.shop { display: none; }
.js .shop:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: #eeeef0; }
@media (prefers-color-scheme: dark) { .js .shop:not([hidden]) { background: #101012; } }
.js .view.all .shop { visibility: hidden !important; }
.js .story.shopFx { z-index: 5; }
.shopFx .stCur svg { width: 17px; height: 17px; }
.shopFx .stCur span { left: 12px; top: 14px; padding: 1px 6px; font-size: 11px; line-height: 16px; }
.co { --ink: #000; --mute: rgb(0 0 0 / .56); --line: #dedede; --blue: #005bd3; --tint: #eff5ff; --side: #f5f5f5; --w: min(1000px, calc(100vw - 48px)); --move: .6s cubic-bezier(.45, 0, .2, 1); position: absolute; inset: 0; overflow: hidden; transform-origin: 0 0; background: #fff; color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.co.measure, .co.measure * { transition: none !important; }
.co b { color: inherit; }
.coIn { position: relative; box-sizing: border-box; width: var(--w); margin: 0 auto; transform-origin: 50% 0; transform: translate(calc(var(--q, 0) * -192px), calc(var(--y, 0) * 1px)) scale(var(--s, 1)); }
/* The grey side, full height and out to the window's edge; it moves along with the page. */
.coSideBg { position: absolute; top: 0; bottom: 0; right: -200px; left: calc(var(--edge, 0) * 1px); background: var(--side); box-shadow: inset 1px 0 0 var(--line); opacity: 0; transform: translateX(calc((1 - var(--q, 0)) * var(--shift, 0) * 1px)); transition: opacity .7s; }
.fx3 .coSideBg { opacity: 1; }
.coHead { position: relative; display: flex; align-items: center; justify-content: space-between; height: 58px; margin-bottom: 18px; }
.coHead::before { content: ''; position: absolute; left: -100vw; right: -100vw; top: -40px; bottom: 0; z-index: -1; background: #fff; box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity .5s; }
.fx4 .coHead::before { opacity: 1; }
.coBrand { font-size: 15px; font-weight: 400; transform-origin: 0 50%; transition: font-size var(--move), font-weight var(--move); }
.fx4 .coBrand { font-size: 21px; font-weight: 600; }
.coBag { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .5s; }
.fx4 .coBag { opacity: 1; }
.coCols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.coSec + .coSec { margin-top: 16px; }
.coForm h2 { margin: 0 0 8px; color: inherit; font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.coFast { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--move), opacity var(--move); }
.coFast > * { min-height: 0; overflow: hidden; }
.fx7 .coFast { grid-template-rows: 1fr; opacity: 1; }
.coFastTop { margin: 0 0 8px; color: var(--mute); text-align: center; }
.coFastIn { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.coFastIn span { display: grid; place-items: center; height: 42px; border-radius: 8px; background: #5a31f4; color: #fff; font-weight: 600; }
.coFastIn span:nth-child(2) { background: #000; }
.coFastIn span:nth-child(3) { background: #ffc439; color: #000; }
.coOr { display: flex; align-items: center; gap: 14px; margin: 12px 0 14px; color: var(--mute); font-size: 12.5px; }
.coOr::before, .coOr::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.coField { box-sizing: border-box; height: 46px; margin-bottom: 8px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 8px; line-height: 1.4; background: #fff; white-space: nowrap; overflow: hidden; }
.coField small { display: block; color: var(--mute); font-size: 11.5px; line-height: 1.3; }
.coTwo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.coWide { grid-template-columns: 2fr 1fr; }
.coCard { grid-template-columns: 1.7fr .8fr 1fr; }
.coOpt { display: flex; align-items: center; height: 44px; padding: 0 11px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); border-radius: 8px; white-space: nowrap; overflow: hidden; }
.coOpt > i { flex: none; width: 18px; height: 18px; margin-right: 10px; border-radius: 50%; box-shadow: inset 0 0 0 5px var(--blue); }
.coShipTo { display: grid; grid-template-columns: 1fr 0fr; margin-bottom: 8px; transition: grid-template-columns var(--move); }
.coShipTo > * { min-width: 0; }
.coShipTo .coOpt { background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background .5s, box-shadow .5s; }
.coShipTo .coOpt > i { width: 0; margin: 0; transition: width var(--move), margin var(--move); }
.coShipTo .coOpt + .coOpt { padding: 0; box-shadow: none; }
.fx6 .coShipTo { grid-template-columns: 1fr 1fr; gap: 8px; }
.fx6 .coShipTo .on { background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); }
.fx6 .coShipTo .coOpt > i { width: 18px; margin-right: 10px; }
.fx6 .coShipTo .coOpt + .coOpt { padding: 0 11px; box-shadow: inset 0 0 0 1px var(--line); }
.fx6 .coShipTo .coOpt + .coOpt > i { box-shadow: inset 0 0 0 1px #c9c9c9; }
.coCardBox { border-radius: 8px; transition: background .5s, box-shadow .5s, padding var(--move); }
.coCardHead { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--move), opacity var(--move); }
.coCardHead > * { min-height: 0; overflow: hidden; }
.fx5 .coCardHead { grid-template-rows: 1fr; opacity: 1; }
.coCard { transition: padding var(--move); }
.fx5 .coCardBox { background: var(--side); box-shadow: inset 0 0 0 1px var(--line); }
.fx5 .coCard { padding: 11px 11px 3px; }
.coPay { display: grid; place-items: center; width: 110px; height: 36px; margin-top: 10px; border-radius: 6px; background: #e4e4e4; color: #5c5c5c; transition: width var(--move), height var(--move), background .5s, color .5s, font-size .5s; }
.fx1 .coPay { width: 100%; height: 50px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 600; }
.co .coForm { display: block; } /* pages.css has the same names for How it works' checkout */
.co .coSum { position: relative; box-sizing: border-box; width: auto; margin: 0; padding: 14px 16px; border: 0; background: none; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .7s; }
.co.fx3 .coSum { box-shadow: inset 0 0 0 1px transparent; }
.coItem { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.coName { flex: 1; } .coName small { display: block; color: var(--mute); font-size: 12px; line-height: 1.3; }
.coPic { position: relative; flex: none; width: 0; height: 34px; margin-right: -12px; transition: width var(--move), height var(--move), margin var(--move); }
.coPic img { display: block; box-sizing: border-box; width: 100%; height: 100%; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
.coPic > :not(em) { opacity: 0; transition: opacity .4s; }
.fx8 .coPic > :not(em) { opacity: 1; }
.coPic em { position: absolute; right: -7px; top: -7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #000; color: #fff; font-size: 11.5px; font-style: normal; opacity: 0; transition: opacity .4s; }
.fx8 .coPic { width: 52px; height: 52px; margin-right: 0; }
.fx8 .coPic em { opacity: 1; }
.coCode { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 12px 0; }
.coCodeIn { box-sizing: border-box; display: flex; align-items: center; flex: none; width: 100%; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--mute); }
.coCode u { color: var(--blue); }
.fx2 .coCode { flex-direction: row; align-items: stretch; gap: 8px; }
.fx2 .coCodeIn { flex: 1; width: auto; }
.fx2 .coCode u { display: grid; place-items: center; flex: none; width: 66px; border-radius: 8px; background: #ededed; color: var(--mute); font-weight: 600; text-decoration: none; }
.coRow { display: flex; justify-content: space-between; padding: 2px 0; }
.coTotal { align-items: baseline; margin-top: 8px; font-weight: 600; transition: font-size var(--move); }
.coTotal small { display: none; margin-right: 8px; color: var(--mute); font-size: 12px; font-weight: 400; }
.fx3 .coTotal { font-size: 21px; }
.fx3 .coTotal small { display: inline; }
@media (min-width: 1100px) { .co { --w: min(1000px, calc(100vw - 432px)); } }
@media (min-width: 1100px) and (max-width: 1400px) { .coCols { gap: 40px; } }
@media (max-width: 759px) {
  .co { --w: calc(100vw - 32px); }
  .coSideBg { display: none; }
  .coCols { grid-template-columns: 1fr; gap: 12px; }
  .coSum { order: -1; }
  .coForm > :not(.coPay, .coSecShip), .coSecShip > :not(.coShipTo) { display: none; }
  .co.fx3 .coSum { background: var(--side); }
}

/* The variants: the same page, only the grey side differs (templates in home.html). */
#wall .co { opacity: 0; will-change: transform; }
.sPhotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sPhotos figure { margin: 0; }
.sPhotos img { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }
.sPhotos figcaption { margin-top: 6px; font-size: 13px; line-height: 1.3; }
.sPhotos figcaption b { display: block; font-weight: 600; }
.sHero { display: block; width: 100%; height: clamp(150px, 30vh, 240px); border-radius: 12px; object-fit: cover; object-position: 50% 45%; }
.sHeroName { display: flex; justify-content: space-between; margin: 10px 0 4px; font-size: 16px; font-weight: 600; }
.sHeroName small { display: block; color: var(--mute); font-size: 12px; font-weight: 400; }
.co .sBigTotal { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.co.fx3 .sBigTotal { font-size: 28px; }
.sHead { margin: 0 0 10px; color: inherit; font-size: 21px; font-weight: 600; }
.sLine { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.sLine i { flex: 1; border-bottom: 1px dotted #bdbdbd; }
.sFree { color: #2f7d5b; font-weight: 600; }
.sCodeLink { margin: 8px 0; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.sNote { margin: 10px 0 0; color: var(--mute); font-size: 12.5px; }
@media (max-width: 380px) {
  .suBody { font-size: 12px; }
  .hMain h1 { font-size: 30px; }
  .hMain .lead { margin-top: 14px; font-size: 15px; }
  .hActs { flex-wrap: nowrap; gap: 8px; margin-top: 20px; }
  .hActs .btn { padding: 0 14px; white-space: nowrap; }
  .npx { padding: 0 14px; }
  .npx .cp { display: none; }
}
/* Little height: small phones, and any phone held sideways. */
@media (max-height: 640px) {
  .stCue { display: none; }
  .hMain .note { display: none; }
  .hMain { padding-bottom: 72px; }
}
@media (max-height: 480px) {
  .hHead { padding-top: 6px; padding-bottom: 0; }
  .hMain h1 { font-size: 28px; max-width: 640px; }
  .hMain .lead { display: none; }
  .hActs { margin-top: 14px; }
  .suCap h2 { font-size: 22px; }
  .suCap p { display: none; }
}
/* Phones and tablets: blending the whole window every frame, and keeping every copy on its own layer,
   costs more than they give there. */
@media (pointer: coarse) {
  .js .trail { mix-blend-mode: normal; }
  #wall .co { will-change: auto; }
}
