Skip to content
← Public packages

@kentcdodds/invisible-software

Invisible software: a phone-only step-through demo plus a chart of AI agent benchmark progress.

FollowForkOpen app

src/c/lib.css

163 lines · 12.9 KB · CSS
Raw
@font-face { font-family: 'Bricolage Grotesque'; src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2'); font-weight: 200 800; }
@font-face { font-family: 'Wix Madefor Text'; src: url('fonts/wix-madefor-text-latin.woff2') format('woff2'); font-weight: 400 800; }
@font-face { font-family: 'Inter'; src: url('fonts/inter/InterVariable.woff2') format('woff2'); font-weight: 100 900; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono/JetBrainsMono-Regular.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2') format('woff2'); font-weight: 600; }
@font-face { font-family: 'Koala Emoji'; src: url('fonts/noto-emoji/koala.woff2') format('woff2'); unicode-range: U+1F428; }

:root {
	--kody-green: oklch(0.54 0.18 145);
	--kody-green-text: oklch(0.455 0.17 145);
	--kody-bg: oklch(0.93 0.004 250);
	--kody-surface: oklch(0.975 0.002 250);
	--kody-text: oklch(0.22 0.012 260);
	--kody-muted: oklch(0.44 0.014 260);
	--kody-border: oklch(0.84 0.008 250);
	--cf-orange: #f6821f;
	--display: 'Bricolage Grotesque', system-ui, sans-serif;
	--body: 'Wix Madefor Text', system-ui, sans-serif;
	--ios: 'Inter', system-ui, sans-serif;
	/* Victoria's app brand */
	--vc-ink: #1c2230;
	--vc-cream: #f7f3ec;
	--vc-brass: #b0813f;
	--vc-brass-soft: #f1e5d1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
*, *::before, *::after { animation-play-state: paused !important; }
.slide {
	position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: hidden;
	font-family: var(--body);
	color: var(--kody-text);
	background: var(--kody-bg);
	-webkit-font-smoothing: antialiased;
}
.stage-pattern {
	position: absolute; inset: 0;
	background: url('assets/kody-pattern.webp') right -120px center / 1100px auto no-repeat;
	opacity: 0.55;
	mask-image: linear-gradient(90deg, transparent 48%, #000 85%);
}
.stage-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 50%, rgb(0 0 0 / 0.06)); pointer-events: none; }

/* Brand bug, bottom-left on every clip */
.bug { position: absolute; left: 72px; top: 56px; z-index: 5; display: flex; align-items: center; gap: 14px; font: 700 30px/1 var(--display); letter-spacing: -0.01em; }
.bug img { width: 46px; height: 46px; }
.bug span.dom { font: 500 22px/1 var(--body); color: var(--kody-muted); margin-left: 6px; }

/* Captions */
.caption { position: absolute; left: 150px; top: 50%; width: 760px; transform: translateY(-50%); }
.cap { position: absolute; left: 0; top: 0; width: 100%; transform: translateY(-50%); opacity: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 650 22px/1 var(--display); color: var(--kody-green-text); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 22px; }
.kicker::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--kody-green); }
.headline { font: 750 76px/1.02 var(--display); letter-spacing: -0.025em; }
.headline em { font-style: normal; color: var(--kody-green-text); }
.sub { margin-top: 24px; font: 450 30px/1.4 var(--body); color: var(--kody-muted); max-width: 680px; }

@keyframes capIn { from { opacity: 0; transform: translateY(calc(-50% + 30px)); filter: blur(6px); } to { opacity: 1; transform: translateY(-50%); filter: blur(0); } }
@keyframes capOut { from { opacity: 1; transform: translateY(-50%); } to { opacity: 0; transform: translateY(calc(-50% - 24px)); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }

/* ---------- iPhone ---------- */
.phone {
	position: absolute; width: 417px; height: 876px; border-radius: 68px;
	background: #1b1c1f; padding: 12px;
	box-shadow: 0 0 0 2px #3a3c41, 0 0 0 5px #121315, 0 50px 90px -20px rgb(20 30 40 / 0.45), 0 20px 40px -10px rgb(20 30 40 / 0.3);
	transform-origin: center;
}
.phone::before, .phone::after { content: ''; position: absolute; width: 5px; background: #2a2b2f; border-radius: 3px; }
.phone::before { left: -7px; top: 180px; height: 64px; box-shadow: 0 86px 0 #2a2b2f; }
.phone::after { right: -7px; top: 220px; height: 100px; }
.screen { position: relative; width: 393px; height: 852px; border-radius: 56px; overflow: hidden; background: #fff; font-family: var(--ios); isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); }
.island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; background: #000; border-radius: 20px; z-index: 50; }
.statusbar { position: absolute; left: 0; right: 0; top: 0; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 6px 34px 0 50px; z-index: 40; color: #000; font: 600 17px/1 var(--ios); }
.statusbar.light { color: #fff; }
.statusbar svg { fill: currentColor; }
.sb-right { display: flex; gap: 6px; align-items: center; }
.home-ind { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #000; z-index: 45; }
.home-ind.light { background: #fff; }

/* ---------- Safari ---------- */
.safari { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; }
.safari-top { padding: 54px 12px 8px; background: rgb(248 248 250 / 0.94); border-bottom: 0.5px solid rgb(0 0 0 / 0.12); z-index: 30; position: relative; }
.url-pill { position: relative; height: 44px; border-radius: 13px; background: rgb(118 118 128 / 0.12); display: flex; align-items: center; padding: 0 14px; color: #000; overflow: hidden; }
.aa { font: 600 17px/1 var(--ios); letter-spacing: -0.02em; }
.aa small { font-size: 12px; }
.url-wrap { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; font: 500 17px/1 var(--ios); letter-spacing: -0.01em; white-space: nowrap; }
.url-lock svg { fill: #6b6b70; display: block; }
.url-reload { color: #000; display: flex; }
.url-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #0a84ff; border-radius: 2px; }
.safari-body { position: relative; flex: 1; overflow: hidden; }
.safari-bottom { height: 84px; padding: 10px 26px 30px; display: flex; justify-content: space-between; align-items: center; color: #0a84ff; background: rgb(248 248 250 / 0.94); border-top: 0.5px solid rgb(0 0 0 / 0.12); z-index: 30; position: relative; }
.safari-bottom .dim { color: #c4c4c8; }
.safari-bottom svg { display: block; }

/* ---------- Lock screen ---------- */
.lock { position: absolute; inset: 0; color: #fff; background:
	radial-gradient(120% 70% at 20% 10%, #f3b184 0%, transparent 55%),
	radial-gradient(90% 60% at 90% 30%, #c9566e 0%, transparent 60%),
	radial-gradient(120% 80% at 50% 100%, #2b1d4d 0%, transparent 70%),
	linear-gradient(170deg, #e48a6a, #7a3a6e 55%, #22193f); }
.lock-date { position: absolute; top: 92px; width: 100%; text-align: center; font: 600 21px/1 var(--ios); opacity: 0.92; }
.lock-time { position: absolute; top: 116px; width: 100%; text-align: center; font: 700 108px/1 var(--ios); letter-spacing: -0.03em; opacity: 0.95; }
.lock-btn { position: absolute; bottom: 52px; width: 50px; height: 50px; border-radius: 50%; background: rgb(255 255 255 / 0.18); backdrop-filter: blur(10px); display: grid; place-items: center; color: #fff; }
.lock-btn svg { fill: currentColor; }
.lock-btn.l { left: 46px; } .lock-btn.r { right: 46px; }

.notif { position: absolute; left: 10px; right: 10px; border-radius: 24px; padding: 14px 16px 15px; background: rgb(245 245 247 / 0.78); backdrop-filter: blur(24px) saturate(1.6); color: #000; display: grid; grid-template-columns: 40px 1fr; gap: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.18); }
.notif .app-ic { width: 40px; height: 40px; border-radius: 10px; }
.notif .n-head { display: flex; justify-content: space-between; font: 600 15.5px/1.2 var(--ios); }
.notif .n-head time { font-weight: 400; color: rgb(60 60 67 / 0.6); font-size: 14px; }
.notif .n-body { font: 400 15.5px/1.3 var(--ios); margin-top: 2px; letter-spacing: -0.01em; }
.notif-actions { position: absolute; left: 10px; right: 10px; border-radius: 18px; overflow: hidden; background: rgb(245 245 247 / 0.8); backdrop-filter: blur(24px); color: #000; font: 400 17px/1 var(--ios); }
.notif-actions div { padding: 15px 18px; border-top: 0.5px solid rgb(60 60 67 / 0.25); display: flex; justify-content: space-between; }
.notif-actions div:first-child { border-top: 0; }

/* Grok Bot app icon */
.gb-icon { background: linear-gradient(145deg, #2c2c33, #0d0d10); display: grid; place-items: center; }
.gb-icon img { width: 70%; height: 70%; filter: invert(1); }

/* ---------- Grok Bot chat (modeled on Kent's screenshots) ---------- */
.chat { position: absolute; inset: 0; background: #fff; font-family: var(--ios); }
.chat-head { position: absolute; top: 54px; left: 0; right: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 5; background: linear-gradient(#fff 70%, rgb(255 255 255 / 0)); }
.round-btn { width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgb(0 0 0 / 0.12), 0 0 0 0.5px rgb(0 0 0 / 0.06); display: grid; place-items: center; color: #000; }
.round-btn svg { fill: currentColor; }
/* The chevron is a stroked glyph: no fill (a fill turned it into a solid wedge), iOS size, nudged left to sit optically centered. */
.round-btn.back svg { fill: none; width: 12px; height: 20px; margin-left: -3px; stroke-width: 2.8; }
.head-pill { position: absolute; left: 72px; height: 48px; padding: 0 18px 0 6px; border-radius: 24px; background: #fff; box-shadow: 0 1px 6px rgb(0 0 0 / 0.12), 0 0 0 0.5px rgb(0 0 0 / 0.06); display: flex; align-items: center; gap: 10px; font: 600 19px/1 var(--ios); }
.head-pill .av { width: 38px; height: 38px; border-radius: 50%; }
.msgs { position: absolute; left: 0; right: 0; bottom: 104px; padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 300px; padding: 12px 16px; border-radius: 22px; font: 400 17.5px/1.32 var(--ios); letter-spacing: -0.01em; }
.msg.bot { align-self: flex-start; background: #f0f0f2; color: #111; }
.msg.me { align-self: flex-end; background: #111; color: #fff; }
.sys { align-self: center; display: flex; align-items: center; gap: 8px; color: #8a8a8e; font: 500 14.5px/1 var(--ios); padding: 4px 0; }
.sys .stack { display: flex; }
.sys .stack > * { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -7px; }
.sys .stack > *:first-child { margin-left: 0; }
.typing { align-self: flex-start; background: #f0f0f2; border-radius: 22px; padding: 15px 18px; display: flex; gap: 5px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: #9a9aa0; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.composer { position: absolute; left: 0; right: 0; bottom: 30px; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.composer .plus { width: 50px; height: 50px; flex: none; }
.composer .field { flex: 1; height: 54px; border-radius: 27px; background: #fff; box-shadow: 0 1px 6px rgb(0 0 0 / 0.12), 0 0 0 0.5px rgb(0 0 0 / 0.06); display: flex; align-items: center; padding: 0 6px 0 18px; gap: 10px; font: 400 18px/1 var(--ios); }
.composer .ph { color: #a0a0a5; flex: 1; white-space: nowrap; overflow: hidden; }
.composer .typed { color: #000; flex: 1; white-space: nowrap; overflow: hidden; }
.composer .mic { color: #a0a0a5; display: flex; }
.composer .go { width: 42px; height: 42px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; }
.composer .go svg { fill: currentColor; }

.caret::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: #0a84ff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Touch indicator */
.tap { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgb(255 255 255 / 0.55); border: 3px solid rgb(0 0 0 / 0.25); box-shadow: 0 4px 16px rgb(0 0 0 / 0.25); z-index: 100; opacity: 0; pointer-events: none; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.5); } 25% { opacity: 1; transform: scale(1); } 45% { transform: scale(0.82); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }

/* Shared avatars */
.av-img { border-radius: 50%; object-fit: cover; display: block; }
.mono { border-radius: 50%; display: grid; place-items: center; color: #fff; font: 600 15px/1 var(--ios); }