/* ===========================================================================
   ArboView: the landing page (arboview.com).

   The look is the ArboRule landing ("instrument panel", decision-engine
   web/client DESIGN.md, `.lp`): petrol on the navy of the wordmark. The tokens
   are the same values as src/app.css of the desktop app.

   Rules:
   - Green shows "online" or "allowed" only. Amber is not used here.
   - --glow is for ink surfaces only. It is too pale on white.
   - The hero replay is the one signature. Keep the other parts quiet.
   =========================================================================== */

@font-face {
	font-family: 'Inter';
	src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: 'Space Grotesk';
	src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
	font-weight: 300 700;
	font-display: swap;
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
	font-weight: 100 800;
	font-display: swap;
}

:root {
	--ink: #061524;
	--ink-2: #0a1f34;
	--ink-3: #123048;
	--paper: #ffffff;
	--paper-2: #f4f9fa;
	--paper-3: #e9f0f2;

	--tide: #0a6e7c;
	--tide-lift: #0e8a9a;
	--tide-deep: #085b68;
	--tide-press: #073f49;
	--spark: #17b6cf;
	--glow: #5ae0f0;
	/* The cyan accent of a game session (src/app.css `[data-gaming]`). */
	--game: oklch(0.62 0.15 215);
	--game-lift: oklch(0.68 0.14 215);

	--ok: #14b981;

	--slate-900: #08182a;
	--slate-700: #2e4457;
	--slate-500: #5d7585;
	--slate-400: #78909d;
	--line: #dfe8ea;
	--line-ink: rgba(255, 255, 255, 0.09);
	--text-ink: #a8bfc7;
	--text-ink-2: #7e97a1;

	--display: 'Space Grotesk', 'Inter', sans-serif;
	--body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

	--wrap: 1160px;
	--r-lg: 22px;
	--r-md: 15px;
	--r-sm: 10px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--slate-900);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
::selection {
	background: var(--tide);
	color: #fff;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: var(--tide);
}
code {
	font-family: var(--mono);
	font-size: 0.9em;
}
h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 600;
	letter-spacing: -0.02em;
	margin: 0;
	text-wrap: balance;
}
h2 {
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.05;
}
h3 {
	font-size: 19px;
	letter-spacing: -0.01em;
}
.mono {
	font-family: var(--mono);
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 28px;
}
section[id] {
	scroll-margin-top: 70px;
}

/* The skip link is off the screen until it gets the focus. */
.skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--tide);
	color: #fff;
	font-weight: 550;
	text-decoration: none;
	transition: top 0.15s ease;
}
.skip:focus {
	top: 12px;
}

/* A branded focus ring on each control. On ink the ring is white. */
:focus-visible {
	outline: 2px solid var(--tide);
	outline-offset: 2px;
	border-radius: 8px;
}
.hero :focus-visible,
.final :focus-visible,
.security :focus-visible,
.nav :focus-visible,
.card-ink :focus-visible {
	outline-color: #fff;
}

/* ---- kicker: the mono label above a title ------------------------------ */
.kicker {
	display: inline-flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--slate-500);
}
.kicker::before {
	content: '';
	flex: none;
	width: 22px;
	height: 1px;
	margin-top: 0.72em;
	background: currentColor;
	opacity: 0.55;
}
.kicker.on-ink {
	color: var(--glow);
}

.dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex: none;
}
.dot.ok {
	background: var(--ok);
	box-shadow: 0 0 0 3px rgba(20, 185, 129, 0.18);
}
.dot.sp {
	background: var(--spark);
}
.dot.gl {
	background: var(--glow);
}

/* ---- buttons ------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--body);
	font-size: 14px;
	font-weight: 550;
	padding: 10px 18px;
	border-radius: 9999px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	touch-action: manipulation;
	transition:
		transform 0.14s ease,
		box-shadow 0.2s ease,
		background 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
}
.btn:active {
	transform: translateY(1px);
}
.btn-sm {
	padding: 8px 16px;
}
.btn-lg {
	font-size: 15px;
	padding: 13px 24px;
}
.btn-primary {
	color: #fff;
	background: linear-gradient(180deg, var(--tide-lift) 0%, var(--tide) 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.35) inset,
		0 8px 24px -8px rgba(10, 110, 124, 0.58);
}
.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.35) inset,
		0 12px 30px -8px rgba(10, 110, 124, 0.75);
}
.btn-primary:active {
	background: linear-gradient(180deg, var(--tide-deep) 0%, var(--tide-press) 100%);
}
.btn-onink {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.16);
}
.btn-onink:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.28);
}
.btn-quiet {
	color: var(--text-ink);
	background: transparent;
}
.btn-quiet:hover {
	color: #fff;
}
.btn .arrow {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.16s ease;
}
.btn:hover .arrow {
	transform: translateY(2px);
}

/* ===========================================================================
   NAV: ink, sticky. It is on top of the ink hero, so it starts flat and gets
   a border when the page scrolls (`.is-stuck`, main.js).
   =========================================================================== */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(6, 21, 36, 0.95);
	backdrop-filter: saturate(140%) blur(12px);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}
.nav.is-stuck {
	border-bottom-color: var(--line-ink);
}
.nav-in {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 64px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	font-family: var(--display);
	font-weight: 600;
	font-size: 19px;
	letter-spacing: -0.01em;
}
.nav-links {
	display: flex;
	gap: 22px;
	margin-right: auto;
}
.nav-links a {
	color: var(--text-ink);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.15s ease;
}
.nav-links a:hover {
	color: #fff;
}
.nav-act {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ===========================================================================
   HERO
   =========================================================================== */
.hero,
.final {
	position: relative;
	isolation: isolate;
	background: var(--ink);
	color: #fff;
	overflow: hidden;
}
.hero {
	padding: 70px 0 128px;
}
.hero::after,
.final::before {
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--tide), var(--spark), transparent);
}
.final::before {
	inset: 0 0 auto;
}
/* A fine cyan grid from one corner, as the ArboRule hero ground. */
.hero-grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.34;
	background-image:
		linear-gradient(rgba(90, 224, 240, 0.11) 1px, transparent 1px),
		linear-gradient(90deg, rgba(90, 224, 240, 0.11) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(110deg, #000, transparent 72%);
	-webkit-mask-image: linear-gradient(110deg, #000, transparent 72%);
}
/* One bloom of canopy teal behind the stage, so the replay is the lit part. */
.hero::before {
	content: '';
	position: absolute;
	z-index: -1;
	width: 760px;
	height: 620px;
	right: -120px;
	top: -60px;
	background:
		radial-gradient(closest-side, rgba(14, 138, 154, 0.42), transparent 70%) 30% 50% / 70% 70% no-repeat,
		radial-gradient(closest-side, rgba(90, 224, 240, 0.2), transparent 70%) 72% 30% / 60% 60% no-repeat;
	filter: blur(30px);
	pointer-events: none;
}
.hero-in {
	display: grid;
	grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
	gap: 56px;
	align-items: center;
}
.hero-copy {
	max-width: 540px;
}
.hero h1 {
	font-size: clamp(38px, 4.6vw, 56px);
	line-height: 1.03;
	letter-spacing: -0.035em;
	margin-top: 20px;
}
.hero h1 em,
.final h2 em {
	font-style: normal;
	background: linear-gradient(100deg, var(--glow) 10%, var(--spark) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero-sub {
	margin: 22px 0 0;
	font-size: 17.5px;
	color: var(--text-ink);
	max-width: 500px;
}
.hero-cta {
	display: flex;
	gap: 12px;
	margin-top: 30px;
	flex-wrap: wrap;
}
.hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--text-ink-2);
}
.hero-meta li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.hero-meta b {
	color: #d6e4e8;
	font-weight: 500;
}

/* ---- the stage: host screen + AI app ----------------------------------- */
.stage {
	position: relative;
	margin: 0;
	padding: 0 0 0 40px;
}
.host {
	border-radius: 18px;
	padding: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow:
		0 0 0 8px rgba(255, 255, 255, 0.02),
		0 40px 90px -40px rgba(0, 0, 0, 0.9),
		0 0 48px -30px rgba(90, 224, 240, 0.8);
}
.host-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 2px 4px 10px;
	font-size: 12px;
	color: var(--text-ink);
}
.host-label .mono:first-child {
	color: #fff;
	font-weight: 600;
}
.host-id {
	color: var(--text-ink-2);
	letter-spacing: 0.06em;
}
.host-state {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11.5px;
}

/* The host screen. The sizes inside are in em of the screen font, and the
   font follows the width of the screen (cqw), so the drawing scales as one. */
.screen {
	--px: 70%;
	--py: 42%;
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 9px;
	overflow: hidden;
	background: var(--ink-2);
	container-type: inline-size;
	font-family: var(--body);
	font-size: clamp(6px, 1.8cqw, 11px);
	line-height: 1.35;
	color: var(--slate-900);
}
.wallpaper {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 90% at 85% 110%, rgba(23, 182, 207, 0.55), transparent 60%),
		radial-gradient(80% 70% at 10% 0%, rgba(14, 138, 154, 0.45), transparent 60%),
		linear-gradient(160deg, #0b2a40, #061524 70%);
}
.screen[data-os='win'] .wallpaper {
	background:
		radial-gradient(70% 80% at 70% 60%, rgba(90, 224, 240, 0.28), transparent 65%),
		radial-gradient(60% 60% at 20% 90%, rgba(14, 138, 154, 0.45), transparent 65%),
		linear-gradient(170deg, #0f3552, #0a1f34 75%);
}
.scene {
	position: absolute;
	inset: 0;
}
.scene[hidden] {
	display: none;
}

/* A part that shows and goes away in a scenario (main.js sets `.on`). It
   keeps its place in the layout, so the pointer can aim at it before it shows. */
.screen .x {
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5em) scale(0.97);
	transition:
		opacity 0.3s ease,
		transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
		visibility 0s 0.35s;
}
.screen .x.on {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition:
		opacity 0.3s ease,
		transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
		visibility 0s;
}
.screen .press {
	transform: scale(0.94) !important;
	transition: transform 0.1s ease !important;
}

/* ---- macOS parts ---- */
.menubar {
	position: absolute;
	z-index: 2;
	inset: 0 0 auto;
	height: 6%;
	display: flex;
	align-items: center;
	gap: 1.2em;
	padding: 0 1em;
	color: rgba(255, 255, 255, 0.86);
	background: rgba(6, 21, 36, 0.4);
	backdrop-filter: blur(8px);
}
.menubar .apple {
	width: 0.9em;
	height: 0.9em;
	border-radius: 0.3em;
	background: rgba(255, 255, 255, 0.85);
}
.menubar b {
	font-weight: 650;
}
.menubar span:not(.apple) {
	opacity: 0.6;
}
.menubar i {
	margin-left: auto;
	font-style: normal;
	opacity: 0.8;
}
.dock {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 2.5%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.55em;
	padding: 0.5em 0.65em;
	border-radius: 1em;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(6px);
}
.dock i {
	position: relative;
	display: block;
	width: 2.7em;
	height: 2.7em;
	border-radius: 0.75em;
	transition: transform 0.12s ease;
}
.dock .d1 {
	background: linear-gradient(#5ae0f0, #17b6cf);
}
.dock .d2 {
	background: linear-gradient(#f4f9fa, #b9c8cf);
}
/* An envelope on the mail icon. */
.dock .d2::after {
	content: '';
	position: absolute;
	inset: 30% 22%;
	border: 0.18em solid #0a6e7c;
	border-radius: 0.2em;
	background: linear-gradient(155deg, transparent 46%, #0a6e7c 47%, #0a6e7c 53%, transparent 54%) no-repeat,
		linear-gradient(25deg, transparent 46%, #0a6e7c 47%, #0a6e7c 53%, transparent 54%) no-repeat;
	background-size: 50% 100%;
	background-position: left, right;
}
.dock .d3 {
	background: linear-gradient(#0e8a9a, #085b68);
}
.dock .d4 {
	background: linear-gradient(#e9f0f2, #c9d6dc);
}

/* ---- windows ---- */
.win {
	position: absolute;
	left: var(--l);
	top: var(--t);
	width: var(--w);
	height: var(--h);
	display: flex;
	flex-direction: column;
	border-radius: 0.8em;
	background: #fff;
	overflow: hidden;
	box-shadow:
		0 1.6em 4em -1.2em rgba(0, 0, 0, 0.7),
		0 0 0 1px rgba(0, 0, 0, 0.08);
}
.win-bar {
	flex: none;
	display: flex;
	align-items: center;
	gap: 0.8em;
	height: 2.3em;
	padding: 0 0.9em;
	font-weight: 600;
	color: var(--slate-700);
	background: #f3f6f8;
	border-bottom: 1px solid #e3eaee;
	white-space: nowrap;
}
.win.dark {
	background: #0c1a2b;
}
.win.dark .win-bar {
	background: #13263a;
	color: #c9d6dc;
	border-bottom-color: rgba(255, 255, 255, 0.08);
}
.lights {
	display: inline-flex;
	gap: 0.45em;
}
.lights i {
	width: 0.8em;
	height: 0.8em;
	border-radius: 50%;
	background: #d5dde2;
}

/* Mail */
.mail {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: 42% 1fr;
}
.mail-list {
	list-style: none;
	margin: 0;
	padding: 0.4em;
	border-right: 1px solid #edf1f4;
	overflow: hidden;
}
.mail-list li {
	display: grid;
	padding: 0.55em 0.65em;
	border-radius: 0.5em;
	transition: background 0.2s ease;
}
.mail-list b {
	font-weight: 650;
}
.mail-list span {
	color: var(--slate-500);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mail-list li.sel {
	background: var(--tide);
	color: #fff;
}
.mail-list li.sel span {
	color: #d6eef1;
}
.mail-read {
	padding: 0.9em 1em;
	display: grid;
	align-content: start;
	gap: 0.7em;
}
.mail-read b {
	font-size: 1.15em;
	font-family: var(--display);
}
.mail-read p {
	margin: 0;
	color: var(--slate-500);
}
.file-chip,
.file,
.ghost {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.45em 0.7em;
	border-radius: 0.6em;
	background: #f4f9fa;
	border: 1px solid #dfe8ea;
	font-weight: 600;
	color: var(--slate-700);
	white-space: nowrap;
	justify-self: start;
}
.file-chip i,
.file i,
.ghost i {
	flex: none;
	width: 1.1em;
	height: 1.4em;
	border-radius: 0.2em;
	background: linear-gradient(var(--tide-lift), var(--tide-deep));
}
.file-chip.lift {
	opacity: 0.4;
}
.files {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 0.5em;
	padding: 0.8em;
	transition:
		background 0.2s ease,
		box-shadow 0.2s ease;
}
.files .file {
	background: #fff;
}
.files.hot {
	background: #e6f3f5;
	box-shadow: inset 0 0 0 2px var(--tide);
}
.ghost {
	position: absolute;
	z-index: 998;
	left: var(--gx, 0);
	top: var(--gy, 0);
	opacity: 0;
	pointer-events: none;
	transform: translate(-20%, -50%) rotate(-3deg);
	box-shadow: 0 0.8em 2em -0.6em rgba(0, 0, 0, 0.55);
	transition:
		left 0.95s cubic-bezier(0.45, 0, 0.2, 1),
		top 0.95s cubic-bezier(0.45, 0, 0.2, 1),
		opacity 0.2s ease;
}
.ghost.on {
	opacity: 0.94;
}
.ghost.snap {
	transition: opacity 0.2s ease;
}

/* Lock screen */
.lock {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 7%;
	color: #fff;
	background: linear-gradient(160deg, rgba(11, 42, 64, 0.55), rgba(6, 21, 36, 0.78));
	backdrop-filter: blur(10px);
}
.lock-time {
	font-family: var(--display);
	font-size: 5.4em;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
}
.lock-date {
	margin-top: 0.4em;
	font-size: 1.2em;
	opacity: 0.8;
}
.lock-user {
	margin-top: auto;
	display: grid;
	justify-items: center;
	gap: 0.4em;
}
.avatar {
	width: 3.6em;
	height: 3.6em;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 1.15em;
	font-weight: 700;
	background: linear-gradient(#17b6cf, #0a6e7c);
}
.lock-pw {
	position: relative;
	display: flex;
	align-items: center;
	width: 30%;
	height: 2.5em;
	margin: 0.8em 0 14%;
	padding: 0 1em;
	border-radius: 1.25em;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.25);
}
.pw-dots {
	font-size: 1.1em;
	letter-spacing: 0.22em;
}
.pw-ph {
	position: absolute;
	left: 1em;
	opacity: 0.6;
}
.screen .pw-ph.x.on {
	opacity: 0.6;
}

/* ---- Windows parts ---- */
.taskbar {
	position: absolute;
	z-index: 3;
	inset: auto 0 0;
	height: 8.5%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	background: rgba(10, 31, 52, 0.88);
	backdrop-filter: blur(8px);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.taskbar i {
	position: relative;
	display: block;
	width: 2.2em;
	height: 2.2em;
	border-radius: 0.5em;
	background: rgba(255, 255, 255, 0.16);
	transition: transform 0.12s ease;
}
.taskbar .start {
	background: linear-gradient(135deg, #5ae0f0, #17b6cf);
}
.taskbar .tb-ps {
	background: #13263a;
	border: 1px solid rgba(255, 255, 255, 0.18);
}
.taskbar .tb-app {
	background: linear-gradient(#0e8a9a, #085b68);
}
/* The line under the icon of a running app. */
.taskbar .run::after {
	content: '';
	position: absolute;
	left: 30%;
	right: 30%;
	bottom: -0.35em;
	height: 0.2em;
	border-radius: 0.1em;
	background: var(--glow);
}
.clock {
	position: absolute;
	right: 4.4em;
	color: #d6e4e8;
}

/* PowerShell */
.ps {
	flex: 1;
	min-height: 0;
	padding: 0.7em 0.9em;
	font-family: var(--mono);
	font-size: 0.92em;
	line-height: 1.55;
	color: #c9d6dc;
	white-space: pre;
	overflow: hidden;
}
.ps span {
	display: block;
}
.ps .p {
	color: var(--glow);
}
.ps .g {
	color: #5ee3b0;
}

/* The app form */
.form {
	flex: 1;
	display: grid;
	grid-template-columns: auto 1fr;
	align-content: start;
	align-items: center;
	gap: 0.6em 0.9em;
	padding: 1em 1.2em;
}
.lab {
	color: var(--slate-500);
}
.inp {
	display: flex;
	align-items: center;
	height: 2.2em;
	padding: 0 0.6em;
	border: 1px solid #dfe8ea;
	border-radius: 0.45em;
	background: #fff;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}
.inp.focus {
	border-color: var(--tide);
	box-shadow: 0 0 0 0.2em rgba(10, 110, 124, 0.18);
}
.inp.focus::after {
	content: '';
	width: 1px;
	height: 1.1em;
	margin-left: 1px;
	background: var(--slate-900);
	animation: blink 1s steps(1) infinite;
}
.inp.none {
	color: var(--slate-400);
}
.btn-s {
	grid-column: 2;
	justify-self: start;
	padding: 0.5em 1.2em;
	border-radius: 0.5em;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(var(--tide-lift), var(--tide));
	transition: transform 0.12s ease;
}
.dialog {
	position: absolute;
	z-index: 4;
	left: 27%;
	top: 38%;
	width: 46%;
	display: grid;
	gap: 0.6em;
	padding: 1em 1.2em;
	border-radius: 0.8em;
	background: #fff;
	box-shadow:
		0 2em 5em -1em rgba(0, 0, 0, 0.75),
		0 0 0 1px rgba(0, 0, 0, 0.1);
}
.dialog b {
	font-family: var(--display);
}
.dialog p {
	margin: 0;
	font-family: var(--mono);
	font-size: 0.9em;
	color: #b91c1c;
}
.dialog .btn-s {
	grid-column: auto;
	justify-self: end;
}

/* Printer settings */
.prn-list {
	display: grid;
	align-content: start;
	gap: 0.5em;
	padding: 0.6em;
}
.prn {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.3em 0.7em;
	padding: 0.6em 0.7em;
	border-radius: 0.6em;
	border: 1px solid #e3eaee;
	transition:
		border-color 0.2s ease,
		background 0.2s ease;
}
.prn > i {
	width: 2em;
	height: 1.6em;
	border-radius: 0.3em;
	background: linear-gradient(#e9f0f2, #b9c8cf);
}
.prn small {
	color: var(--slate-500);
}
.prn small.bad,
.q-row small.bad {
	color: #b91c1c;
	font-weight: 600;
}
.prn small.good {
	color: #058453;
	font-weight: 600;
}
.prn.sel {
	border-color: var(--tide);
	background: #f0fafb;
}
.prn-acts {
	grid-column: 1 / -1;
	display: flex;
	gap: 0.5em;
	padding-top: 0.3em;
}
.prn-acts span {
	padding: 0.4em 0.7em;
	border-radius: 0.45em;
	border: 1px solid #cfe7eb;
	background: #fff;
	color: var(--tide-deep);
	font-weight: 600;
	transition: transform 0.12s ease;
}
.q-rows {
	position: relative;
	flex: 1;
	padding: 0.6em;
}
.q-row,
.q-empty {
	display: flex;
	justify-content: space-between;
	padding: 0.6em 0.7em;
	border-radius: 0.5em;
}
.q-row {
	background: #f6fafb;
	border: 1px solid #e3eaee;
	transition: border-color 0.2s ease;
}
.q-row.sel {
	border-color: var(--tide);
}
.q-empty {
	position: absolute;
	inset: 0.6em 0.6em auto;
	color: var(--slate-500);
}
.ctx {
	position: absolute;
	z-index: 5;
	left: var(--cx, 50%);
	top: var(--cy, 50%);
	display: grid;
	min-width: 16%;
	padding: 0.35em;
	border-radius: 0.6em;
	background: #fff;
	box-shadow:
		0 1em 3em -0.8em rgba(0, 0, 0, 0.6),
		0 0 0 1px rgba(0, 0, 0, 0.1);
}
.ctx span {
	padding: 0.4em 0.7em;
	border-radius: 0.4em;
}
.ctx span.sel {
	background: #e6f3f5;
	color: var(--tide-deep);
}
.startmenu {
	position: absolute;
	z-index: 3;
	left: 28%;
	bottom: 10.5%;
	width: 44%;
	display: grid;
	gap: 0.6em;
	padding: 0.8em;
	border-radius: 0.9em;
	color: #e6eef1;
	background: rgba(19, 38, 58, 0.97);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 1.6em 4em -1.2em rgba(0, 0, 0, 0.7);
}
.search {
	display: flex;
	align-items: center;
	height: 2.4em;
	padding: 0 1em;
	border-radius: 1.2em;
	background: rgba(255, 255, 255, 0.1);
}
.search .ph {
	position: absolute;
	opacity: 0.55;
}
.screen .search .ph.x.on {
	opacity: 0.55;
}
.res {
	display: flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.6em 0.7em;
	border-radius: 0.6em;
	background: rgba(90, 224, 240, 0.12);
}
.res i {
	flex: none;
	width: 1.8em;
	height: 1.8em;
	border-radius: 0.4em;
	background: linear-gradient(#5ae0f0, #17b6cf);
}
.res small {
	display: block;
	opacity: 0.6;
}
.toast {
	position: absolute;
	z-index: 4;
	right: 2.5%;
	bottom: 12%;
	width: 34%;
	display: grid;
	gap: 0.2em;
	padding: 0.8em 1em;
	border-radius: 0.7em;
	color: #e6eef1;
	background: rgba(19, 38, 58, 0.97);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 1.2em 3em -1em rgba(0, 0, 0, 0.7);
}
.toast span {
	opacity: 0.75;
}

/* ---- the pointer and its click ---- */
.pointer {
	position: absolute;
	z-index: 1000;
	left: var(--px);
	top: var(--py);
	width: 1.8em;
	height: 2.4em;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
	transition:
		left 0.8s cubic-bezier(0.45, 0, 0.2, 1),
		top 0.8s cubic-bezier(0.45, 0, 0.2, 1),
		transform 0.1s ease;
	transform-origin: 0 0;
}
.pointer.down {
	transform: scale(0.86);
}
.ripple {
	position: absolute;
	z-index: 999;
	left: var(--px);
	top: var(--py);
	width: 2.8em;
	height: 2.8em;
	margin: -1.4em 0 0 -1.4em;
	border-radius: 50%;
	border: 2px solid var(--glow);
	opacity: 0;
	pointer-events: none;
}
.ripple.go {
	animation: ripple 0.5s ease-out;
}
@keyframes ripple {
	from {
		opacity: 0.95;
		transform: scale(0.3);
	}
	to {
		opacity: 0;
		transform: scale(1.25);
	}
}

/* The agent badge: the same ring as src/lib/screens/AgentBadge.svelte. */
.agent-badge {
	position: absolute;
	z-index: 1001;
	right: 1.6%;
	bottom: 3%;
	width: 3.2em;
	height: 3.2em;
	border-radius: 50%;
	opacity: 0;
	transform: scale(0.6);
	transition:
		opacity 0.3s ease,
		transform 0.3s ease;
}
.screen[data-os='win'] .agent-badge {
	bottom: 0.4%;
	right: 0.8%;
	width: 2.8em;
	height: 2.8em;
}
.host:not([data-state='idle']) .agent-badge {
	opacity: 1;
	transform: none;
}
.agent-badge .ring,
.agent-badge .core {
	position: absolute;
	border-radius: 50%;
}
.agent-badge .ring {
	inset: 0;
	background: #6f8a99;
}
.agent-badge .core {
	inset: 3px;
	display: grid;
	place-items: center;
	background: rgba(6, 21, 36, 0.92);
	color: #8fa6b4;
}
.agent-badge svg {
	width: 55%;
	height: 55%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
}
.host[data-state='work'] .agent-badge .ring {
	background: conic-gradient(#5ae0f0, #17b6cf 40%, #0a6e7c 70%, transparent 85%);
	animation: turn 1.2s linear infinite;
}
.host[data-state='work'] .agent-badge .core {
	color: var(--glow);
}
@keyframes turn {
	to {
		transform: rotate(1turn);
	}
}

/* ---- the scenario switch above the stage ---- */
.scen {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
.scen-btn {
	position: relative;
	overflow: hidden;
	font: inherit;
	font-size: 12.5px;
	font-weight: 550;
	padding: 7px 14px 8px;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text-ink);
	cursor: pointer;
	transition:
		color 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}
.scen-btn:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.28);
}
.scen-btn[aria-pressed='true'] {
	color: #fff;
	border-color: rgba(90, 224, 240, 0.45);
	background: rgba(90, 224, 240, 0.1);
}
/* The progress of the scenario that runs. */
.scen-btn i {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 3px;
	height: 2px;
	border-radius: 1px;
	background: var(--glow);
	transform: scaleX(var(--p, 0));
	transform-origin: left;
	opacity: 0;
	transition: transform 0.4s ease;
}
.scen-btn[aria-pressed='true'] i {
	opacity: 1;
}

/* The AI app in front of the screen. */
.term {
	position: absolute;
	left: 0;
	bottom: -118px;
	width: min(410px, 64%);
	border-radius: 14px;
	background: rgba(10, 31, 52, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.13);
	box-shadow:
		0 30px 70px -24px rgba(0, 0, 0, 0.85),
		0 0 0 1px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
	overflow: hidden;
}
.term-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 13px;
	border-bottom: 1px solid var(--line-ink);
	font-size: 11px;
	color: var(--text-ink-2);
}
.term-mcp {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--text-ink);
}
.term-mcp .dot {
	width: 6px;
	height: 6px;
}
.term-log {
	list-style: none;
	margin: 0;
	padding: 12px 14px 14px;
	height: 236px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 7px;
	font-size: 11.5px;
	line-height: 1.5;
	color: #d6e4e8;
	mask-image: linear-gradient(180deg, transparent 0, #000 34px);
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34px);
}
.term-log li {
	animation: rise 0.28s ease both;
}
.term-log .you {
	color: #fff;
}
.term-log .you::before {
	content: '❯ ';
	color: var(--glow);
}
.term-log .call::before {
	content: '⏺ ';
	color: var(--spark);
}
.term-log .call b {
	color: var(--glow);
	font-weight: 600;
}
.term-log .call span {
	color: var(--text-ink-2);
}
.term-log .out {
	color: var(--text-ink-2);
	padding-left: 18px;
	margin-top: -5px;
}
.term-log .out::before {
	content: '⎿ ';
}
.term-log .out em {
	font-style: normal;
	color: var(--ok);
}
.term-log .say {
	color: #fff;
}
.term-log .say::before {
	content: '✻ ';
	color: var(--glow);
}
.term-log .say b {
	color: var(--glow);
	font-weight: 600;
}
.term-log .think {
	color: var(--text-ink);
}
.term-log .think::before {
	content: '✻ ';
	color: var(--text-ink-2);
}
.caret::after {
	content: '';
	display: inline-block;
	width: 7px;
	height: 13px;
	margin-left: 2px;
	vertical-align: -2px;
	background: var(--glow);
	animation: blink 1s steps(1) infinite;
}
@keyframes blink {
	50% {
		opacity: 0;
	}
}
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(5px);
	}
}
.stage-cap {
	margin: 18px 0 0 auto;
	width: calc(38% - 56px);
	min-height: 120px;
	text-align: right;
	font-size: 12.5px;
	color: var(--text-ink-2);
}
.mini-badge {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	vertical-align: -1px;
	background: conic-gradient(#5ae0f0, #17b6cf 40%, #0a6e7c 70%, transparent 85%);
	box-shadow: inset 0 0 0 3px var(--ink);
}

/* ===========================================================================
   STRIP
   =========================================================================== */
.strip {
	border-bottom: 1px solid var(--line);
}
.strip-in {
	display: grid;
	grid-template-columns: auto auto;
	justify-content: space-between;
	gap: 28px;
	padding-top: 24px;
	padding-bottom: 24px;
}
.strip-group {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}
.strip-group + .strip-group {
	border-left: 1px solid var(--line);
	padding-left: 28px;
}
.strip-label {
	flex: none;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--slate-400);
}
.strip ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--display);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--slate-700);
}

/* ===========================================================================
   SECTIONS
   =========================================================================== */
.sec {
	padding: 96px 0;
}
.sec-head {
	max-width: 660px;
	margin-bottom: 44px;
}
.sec-head h2 {
	margin-top: 16px;
}
.sec-head p:not(.kicker) {
	margin: 16px 0 0;
	font-size: 17px;
	color: var(--slate-500);
}
.card {
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--paper);
	padding: 26px;
	min-width: 0;
}
.card-ink {
	background: var(--ink-2);
	border-color: rgba(255, 255, 255, 0.08);
	color: #fff;
	box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.6);
}
.checks {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	gap: 9px;
	font-size: 14.5px;
	color: var(--slate-700);
}
.checks li {
	display: flex;
	gap: 10px;
}
.checks li::before {
	content: '';
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%230a6e7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
			center / 16px no-repeat,
		#e6f3f5;
}

/* ---- product screens --------------------------------------------------- */
/* The screens are crops of the running app (bun run dev, mock data), not
   drawings. Capture them again when the app changes. */
.shot {
	margin: 0;
	min-width: 0;
}
.shot img {
	border-radius: 16px;
	border: 1px solid var(--line);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 40px 80px -46px rgba(10, 31, 52, 0.45);
}
.shot figcaption {
	margin-top: 12px;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--slate-400);
}
.shot-narrow {
	max-width: 440px;
	justify-self: center;
}

/* ===========================================================================
   SCENES: two illustrations, the client at the left and the host at the
   right. The motion on top follows the coordinates of each image.
   =========================================================================== */
.theater {
	margin-top: 28px;
	border-radius: var(--r-lg);
	overflow: hidden;
	border: 1px solid var(--line);
	background: #fff;
	box-shadow: 0 40px 80px -60px rgba(10, 31, 52, 0.5);
}

/* ---- the game scene: an illustration with motion on top ---- */
/* The frame shows the image without most of the empty wall at the top and
   the bed at the bottom: 1672 × 780 of 1672 × 941, from y = 70. The inner
   box keeps the full image, so the motion stays on its coordinates. */
.th-photo {
	position: relative;
	aspect-ratio: 1672 / 780;
	container-type: inline-size;
	background: var(--ink);
	overflow: hidden;
}
.th-photo-in {
	position: relative;
	margin-top: -4.19%;
}
.th-photo img {
	width: 100%;
	height: auto;
}
.th-flows {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.th-flows path {
	fill: none;
}
.pk circle {
	fill: #a8f4fb;
}
/* The light ring of the PC breathes. */
.case-glow {
	fill: none;
	stroke: #5ae0f0;
	stroke-width: 7;
	opacity: 0;
	filter: url(#pk-glow);
	animation: casepulse 2.6s ease-in-out infinite;
}
@keyframes casepulse {
	50% {
		opacity: 0.55;
	}
}
.th-tag,
.th-stat {
	position: absolute;
	left: var(--x);
	top: var(--y);
	transform: translate(-50%, -100%);
	white-space: nowrap;
}
.th-tag {
	padding: 0.45em 1em;
	border-radius: 9999px;
	font-family: var(--mono);
	font-size: clamp(8px, 1cqw, 12px);
	letter-spacing: 0.04em;
	color: var(--text-ink);
	background: rgba(6, 21, 36, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(6px);
}
.th-tag b {
	color: var(--glow);
	font-weight: 600;
}
.th-tag-sm {
	padding: 0.2em 0.6em;
	font-size: clamp(8px, 0.82cqw, 11px);
	color: var(--glow);
	background: rgba(6, 21, 36, 0.55);
	border-color: rgba(90, 224, 240, 0.25);
}
.th-tag-sm.under {
	transform: translate(-50%, 0);
}
/* The statistics overlay of the session, on the laptop screen. */
.th-stat {
	padding: 0.15em 0.45em;
	border-radius: 0.3em;
	font-size: clamp(6px, 0.62cqw, 9px);
	color: var(--glow);
	background: rgba(6, 21, 36, 0.8);
	transform: translate(0, -100%) rotate(0.6deg);
}
@media (max-width: 640px) {
	.th-tag-sm,
	.th-stat {
		display: none;
	}
	.th-tag {
		padding: 0.3em 0.7em;
	}
}
@media (prefers-reduced-motion: reduce) {
	.pk,
	.pk-file,
	.pk-ask {
		display: none;
	}
}

/* ---- the kiosk scene: the update plays on both screens ----
   data-step (main.js): 0 idle, 1 drag the file onto the session, 2 send it,
   3 the kiosk updates, 4 done. */
.th-flows text {
	font-family: var(--body);
	font-weight: 600;
}
.th-flows .bar {
	fill: rgba(255, 255, 255, 0.18);
}
.th-flows .fill {
	fill: var(--glow);
	transform-box: fill-box;
	transform-origin: left;
	transform: scaleX(0);
}
.lt-file rect:first-child {
	fill: #fff;
}
.lt-file .ico {
	fill: var(--tide);
}
.lt-file text {
	font-size: 10px;
	fill: var(--slate-700);
}
.lt-file,
.lt-ptr {
	transition:
		transform 1.1s cubic-bezier(0.45, 0, 0.2, 1),
		opacity 0.3s ease;
}
.lt-ptr {
	fill: #fff;
	stroke: #061524;
	stroke-width: 1.2;
	stroke-linejoin: round;
	transform: translate(452px, 470px);
}
.th-kiosk[data-step='1'] .lt-file {
	transform: translate(150px, -4px);
}
.th-kiosk[data-step='1'] .lt-ptr {
	transform: translate(602px, 466px);
}
.th-kiosk:is([data-step='2'], [data-step='3'], [data-step='4']) .lt-file {
	transform: translate(150px, -4px);
	opacity: 0;
}
.th-kiosk:is([data-step='2'], [data-step='3'], [data-step='4']) .lt-ptr {
	transform: translate(660px, 560px);
}
.lt-send,
.lt-upd,
.lt-done,
.ks-upd,
.ks-done,
.ks-new,
.pk-file {
	opacity: 0;
	transition: opacity 0.3s ease;
}
.lt-send > rect:first-child {
	fill: rgba(6, 21, 36, 0.92);
	stroke: rgba(90, 224, 240, 0.4);
}
.lt-send text {
	font-size: 9.5px;
	fill: #fff;
}
.lt-upd > rect:first-child,
.ks-upd path {
	fill: rgba(6, 21, 36, 0.9);
}
.lt-done rect,
.ks-done rect {
	fill: #0f9b6c;
}
.lt-done text {
	font-size: 8.5px;
	fill: #fff;
}
.ks-upd text {
	font-size: 15px;
	fill: #fff;
}
.ks-done text {
	font-size: 16px;
	fill: #fff;
}
.ks-new rect {
	fill: rgba(6, 21, 36, 0.55);
	stroke: var(--glow);
	stroke-width: 2.5;
	filter: drop-shadow(0 0 6px rgba(90, 224, 240, 0.8));
}
.ks-new text {
	font-size: 13px;
	fill: #fff;
	letter-spacing: 0.08em;
}
.ks-new .sub {
	font-size: 9.5px;
	letter-spacing: 0;
	fill: var(--glow);
}
.pk-file rect {
	fill: #fff;
}
.th-kiosk[data-step='2'] .lt-send,
.th-kiosk[data-step='2'] .pk-file {
	opacity: 1;
}
.th-kiosk[data-step='2'] .lt-send .fill {
	transform: scaleX(1);
	transition: transform 1.4s linear;
}
.th-kiosk[data-step='3'] .lt-upd,
.th-kiosk[data-step='3'] .ks-upd {
	opacity: 1;
}
.th-kiosk[data-step='3'] :is(.lt-upd, .ks-upd) .fill {
	transform: scaleX(1);
	transition: transform 1.8s ease;
}
.th-kiosk[data-step='4'] .ks-new {
	opacity: 1;
}
.th-kiosk[data-step='4'] :is(.ks-done, .lt-done) {
	animation: done 2.8s ease forwards;
}
@keyframes done {
	0% {
		opacity: 0;
	}
	12%,
	62% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

/* ---- the agent scene: a file from the computer at home ----
   data-step (main.js): 0 the prompt, 1 the request goes to the agent, 2 the
   agent works on the notebook, 3 the file comes back, 4 the reply. */
.theater-agent {
	margin: 0 0 18px;
}
.th-site .pk-ask circle {
	fill: #a8f4fb;
}
.th-site .pk-ask {
	opacity: 0;
	transition: opacity 0.3s ease;
}
.th-site[data-step='1'] .pk-ask,
.th-site[data-step='3'] .pk-file {
	opacity: 1;
}
.th-flows .hl {
	fill: none;
	stroke: var(--glow);
	stroke-width: 3;
	filter: url(#pk-glow3);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.th-site[data-step='2'] .hl-folder,
.th-site[data-step='3'] .hl-doc,
.th-site[data-step='4'] .hl-reply {
	animation: hlpulse 1.2s ease-in-out infinite;
}
@keyframes hlpulse {
	0%,
	100% {
		opacity: 0.35;
	}
	50% {
		opacity: 1;
	}
}
/* The badge of the notebook turns while the agent works. Only the ring
   turns; the mask lets the sparkle of the image show in the middle. */
.site-ring {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 3.4cqw;
	height: 3.4cqw;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: conic-gradient(#5ae0f0, #17b6cf 40%, #0a6e7c 70%, transparent 85%);
	-webkit-mask: radial-gradient(closest-side, transparent 74%, #000 77%, #000 98%, transparent);
	mask: radial-gradient(closest-side, transparent 74%, #000 77%, #000 98%, transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.th-site:is([data-step='2'], [data-step='3']) .site-ring {
	opacity: 1;
	animation: spin 1.2s linear infinite;
}
@keyframes spin {
	from {
		transform: translate(-50%, -50%) rotate(0);
	}
	to {
		transform: translate(-50%, -50%) rotate(1turn);
	}
}
/* The prompt of the person, as a chat bubble above the tablet. */
.th-say {
	position: absolute;
	left: var(--x);
	top: var(--y);
	max-width: 30cqw;
	padding: 0.6em 1em;
	border-radius: 1em 1em 1em 0.3em;
	transform: translate(-50%, -100%);
	font-size: clamp(9px, 1.05cqw, 13px);
	font-weight: 550;
	line-height: 1.35;
	color: var(--slate-900);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 0.8em 2em -0.8em rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.4s ease;
}
.th-site .th-say {
	opacity: 1;
}
.th-tool,
.th-file {
	position: absolute;
	left: var(--x);
	top: var(--y);
	transform: translate(-50%, 0);
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.th-tool {
	padding: 0.35em 0.8em;
	border-radius: 0.5em;
	font-size: clamp(8px, 0.9cqw, 11.5px);
	color: var(--text-ink);
	background: rgba(6, 21, 36, 0.85);
	border: 1px solid rgba(90, 224, 240, 0.3);
}
.th-tool b {
	color: var(--glow);
	font-weight: 600;
}
.th-tool b::before {
	content: '⏺ ';
	color: var(--spark);
}
.th-file {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.45em 0.8em;
	border-radius: 0.6em;
	font-size: clamp(8.5px, 0.95cqw, 12px);
	font-weight: 600;
	color: var(--slate-900);
	background: #fff;
	box-shadow: 0 0 0 2px rgba(90, 224, 240, 0.7), 0 0.8em 2em -0.8em rgba(0, 0, 0, 0.6);
}
.th-file i {
	width: 0.9em;
	height: 1.15em;
	border-radius: 0.15em;
	background: linear-gradient(var(--tide-lift), var(--tide-deep));
}
.th-site[data-step='2'] .s2,
.th-site[data-step='3'] .s3,
.th-site[data-step='4'] .s4 {
	opacity: 1;
}
@media (max-width: 640px) {
	.th-tool,
	.th-file {
		display: none;
	}
	.th-say {
		max-width: 44cqw;
	}
}

/* ---- the text under each scene ---- */
.th-copy {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 32px;
	align-items: start;
	padding: 26px 32px 30px;
}
.th-copy h3 {
	margin-top: 10px;
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.15;
}
.th-facts {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
}
.th-facts li {
	padding-top: 12px;
	border-top: 2px solid transparent;
	border-image: linear-gradient(90deg, var(--tide), var(--spark)) 1;
	font-size: 13.5px;
	color: var(--slate-500);
}
.th-facts b {
	display: block;
	margin-bottom: 3px;
	font-family: var(--display);
	font-size: 15px;
	font-weight: 600;
	color: var(--slate-900);
}

@media (max-width: 860px) {
	.th-copy {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 22px 20px 24px;
	}
	.th-facts {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

/* ===========================================================================
   AI AGENTS
   =========================================================================== */
.agent-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: 18px;
	align-items: stretch;
}
.tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 3px;
	padding: 4px;
	border-radius: 12px;
	background: var(--paper-2);
	border: 1px solid var(--line);
}
.tabs button {
	font: inherit;
	font-size: 13.5px;
	font-weight: 550;
	padding: 7px 14px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--slate-500);
	cursor: pointer;
	transition:
		background 0.15s ease,
		color 0.15s ease;
}
.tabs button:hover {
	color: var(--slate-900);
}
.tabs button[aria-selected='true'] {
	background: #fff;
	color: var(--tide-deep);
	box-shadow: 0 1px 3px rgba(10, 31, 52, 0.12);
}
.tabpanel {
	margin: 20px 0 26px;
}
.step-label {
	margin: 0 0 8px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--slate-400);
}
.step-label code {
	text-transform: none;
	letter-spacing: 0;
	color: var(--slate-700);
}
.cmd {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 14px 14px 16px;
	border-radius: 12px;
	background: var(--ink-2);
	border: 1px solid rgba(255, 255, 255, 0.06);
}
.cmd code {
	flex: 1;
	min-width: 0;
	font-size: 12.5px;
	line-height: 1.65;
	color: #d6e4e8;
	overflow-wrap: anywhere;
}
.copy {
	flex: none;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 7px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.06);
	color: var(--glow);
	cursor: pointer;
}
.copy:hover {
	background: rgba(255, 255, 255, 0.12);
}
.copy:focus-visible {
	outline-color: #fff;
}
.step-note {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--slate-500);
}
.step-note code {
	color: var(--tide-deep);
}
.setup {
	display: flex;
	flex-direction: column;
}
.ask {
	margin-top: auto;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}
.prompts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.prompts li {
	padding: 10px 14px;
	border-radius: 11px;
	background: var(--paper-2);
	border: 1px solid var(--line);
	font-size: 14.5px;
	color: var(--slate-700);
}

.tools .kicker {
	margin-bottom: 18px;
}
.toolset {
	margin: 0;
	display: grid;
	gap: 0;
}
.toolset > div {
	padding: 13px 0;
	border-top: 1px solid var(--line-ink);
}
.toolset dt {
	font-family: var(--display);
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 9px;
}
.toolset dd {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.toolset code {
	font-size: 11.5px;
	padding: 3px 8px;
	border-radius: 6px;
	color: var(--glow);
	background: rgba(90, 224, 240, 0.08);
	border: 1px solid rgba(90, 224, 240, 0.16);
}
.toolset dd.why {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--text-ink);
}

/* The consent ladder. Each rung needs the one above it. */
.consent {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 48px;
	align-items: center;
	margin-top: 72px;
}
.consent h3 {
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.15;
}
.consent-copy > p {
	margin: 12px 0 0;
	color: var(--slate-500);
}
.ladder {
	list-style: none;
	margin: 24px 0 0;
	padding: 0 0 0 14px;
	position: relative;
	display: grid;
	gap: 14px;
}
/* The spine of the ladder: one line through the three rungs. */
.ladder::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 10px;
	bottom: 10px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--tide), var(--spark));
}
.ladder li {
	position: relative;
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 12px;
	align-items: baseline;
}
.ladder li::before {
	content: '';
	position: absolute;
	left: -15px;
	top: 6px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--tide);
}
.rung {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tide);
}
.ladder b {
	display: block;
	font-size: 15px;
	font-weight: 600;
}
.ladder small {
	display: block;
	margin-top: 2px;
	font-size: 13.5px;
	color: var(--slate-500);
}

/* ===========================================================================
   MODES: the section takes the accent of the selected mode.
   =========================================================================== */
.modes {
	--acc: var(--tide);
	--acc-lift: var(--tide-lift);
	background: var(--paper-2);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	transition: background 0.4s ease;
}
.modes[data-mode='game'] {
	--acc: var(--game);
	--acc-lift: var(--game-lift);
	background: var(--ink);
	color: #fff;
}
.modes .kicker {
	transition: color 0.3s ease;
}
.modes[data-mode='game'] .kicker {
	color: var(--glow);
}
.modes[data-mode='game'] .sec-head p:not(.kicker) {
	color: var(--text-ink);
}
.mode-switch {
	display: inline-flex;
	padding: 5px;
	gap: 4px;
	border-radius: 9999px;
	background: #fff;
	border: 1px solid var(--line);
	margin-bottom: 30px;
	transition:
		background 0.3s ease,
		border-color 0.3s ease;
}
.modes[data-mode='game'] .mode-switch {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.12);
}
.mode-switch button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 9999px;
	border: 0;
	background: transparent;
	color: var(--slate-500);
	cursor: pointer;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}
.modes[data-mode='game'] .mode-switch button {
	color: var(--text-ink);
}
.mode-switch svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.modes .mode-switch button[aria-selected='true'] {
	color: #fff;
	background: linear-gradient(180deg, var(--acc-lift), var(--acc));
	box-shadow: 0 8px 22px -10px var(--acc);
}
.mode-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
	gap: 36px;
	align-items: start;
}
.mode-panel[hidden] {
	display: none;
}
.feat {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 32px;
}
.feat li {
	padding: 18px 0 18px 16px;
	border-top: 1px solid var(--line);
	position: relative;
	font-size: 14.5px;
	color: var(--slate-500);
	animation: rise 0.35s ease both;
}
.feat li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 25px;
	width: 6px;
	height: 6px;
	border-radius: 2px;
	background: var(--acc);
}
.feat b {
	display: block;
	margin-bottom: 3px;
	font-family: var(--display);
	font-size: 16.5px;
	font-weight: 600;
	color: var(--slate-900);
}
.modes[data-mode='game'] .feat li {
	color: var(--text-ink);
	border-top-color: var(--line-ink);
}
.modes[data-mode='game'] .feat b {
	color: #fff;
}
.spec {
	border-radius: var(--r-md);
	background: var(--ink-2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	padding: 20px 20px 8px;
	position: relative;
	overflow: hidden;
}
.spec::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--acc), var(--glow));
}
.spec-head {
	margin: 0 0 12px;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-ink-2);
}
.spec dl {
	margin: 0;
}
.spec dl > div {
	display: grid;
	gap: 2px;
	padding: 11px 0;
	border-top: 1px solid var(--line-ink);
}
.spec dt {
	font-size: 12px;
	color: var(--text-ink-2);
}
.spec dd {
	margin: 0;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--glow);
}

/* ===========================================================================
   BROWSER: a browser window and a phone show the web app. The path under
   them shows that the video goes from the host to the browser.
   =========================================================================== */
.web-stage {
	position: relative;
	margin: 0 0 96px;
	padding-right: 9%;
}
.bw {
	margin: 0;
	min-width: 0;
	border-radius: 14px;
	overflow: hidden;
	background: var(--ink);
	border: 1px solid rgba(10, 31, 52, 0.18);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.05),
		0 50px 90px -50px rgba(10, 31, 52, 0.55);
}
.bw img {
	display: block;
	width: 100%;
	height: auto;
}
.bw-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	background: #e9eef2;
	border-bottom: 1px solid #d5dde3;
}
.bw-dots {
	display: flex;
	gap: 6px;
	flex: none;
}
.bw-dots i {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #c5ced6;
}
.bw-url {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 1;
	min-width: 0;
	max-width: 520px;
	margin: 0 auto;
	padding: 5px 12px;
	border-radius: 9999px;
	background: #fff;
	font-size: 12px;
	color: var(--slate-700);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bw-url svg {
	flex: none;
	width: 13px;
	height: 13px;
	fill: none;
	stroke: var(--tide);
	stroke-width: 1.5;
	stroke-linecap: round;
}
.bw-chip {
	flex: none;
	padding: 4px 10px;
	border-radius: 9999px;
	background: #e6f3f5;
	border: 1px solid rgba(10, 110, 124, 0.25);
	font-size: 11px;
	color: var(--tide-deep);
}
.phone {
	position: absolute;
	right: 0;
	bottom: -64px;
	width: 34%;
	margin: 0;
}
.phone img {
	display: block;
	width: 100%;
	height: auto;
	border: 9px solid #0b0f14;
	border-radius: 30px;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.08) inset,
		0 40px 70px -30px rgba(6, 21, 36, 0.7);
}
.phone figcaption {
	margin-top: 10px;
	text-align: center;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--slate-400);
}
.web-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-top: 32px;
}
.web-cta p {
	margin: 0;
	font-size: 13.5px;
	color: var(--slate-400);
}
.path {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 22px;
	padding: 34px 32px;
	border-radius: var(--r-lg);
	background: var(--ink);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.node {
	display: grid;
	justify-items: center;
	gap: 6px;
	text-align: center;
	font-size: 14px;
}
.node small {
	font-size: 11px;
	color: var(--text-ink-2);
}
.node-ico {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(90, 224, 240, 0.08);
	border: 1px solid rgba(90, 224, 240, 0.22);
}
.node-ico svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: var(--glow);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.link {
	position: relative;
	display: grid;
	gap: 8px;
	justify-items: center;
	min-width: 0;
}
.wire {
	position: relative;
	width: 100%;
	height: 2px;
}
.wire.direct {
	background: linear-gradient(90deg, var(--tide), var(--spark), var(--tide));
}
.wire.relay {
	margin-top: 22px;
	height: 0;
	border-top: 2px dashed rgba(168, 191, 199, 0.35);
	width: 80%;
}
.wire-label {
	font-size: 11px;
	color: var(--text-ink);
}
.relay-box {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: -18px;
	padding: 5px 12px;
	border-radius: 9999px;
	background: var(--ink-2);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 11px;
	color: var(--text-ink);
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pkt {
	position: absolute;
	top: -3px;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--glow);
	box-shadow: 0 0 12px var(--glow);
	animation: flow 2.4s linear infinite;
}
.pkt:nth-child(2) {
	animation-delay: 0.8s;
}
.pkt:nth-child(3) {
	animation-delay: 1.6s;
}
@keyframes flow {
	from {
		left: 0;
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	to {
		left: calc(100% - 8px);
		opacity: 0;
	}
}
.net-facts {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.net-facts li {
	padding: 18px 20px;
	border-radius: var(--r-md);
	border: 1px solid var(--line);
	background: var(--paper-2);
}
.net-facts b {
	display: block;
	font-size: 12.5px;
	color: var(--tide-deep);
	margin-bottom: 6px;
}
.net-facts span {
	font-size: 14px;
	color: var(--slate-500);
}

/* ===========================================================================
   SECURITY (ink)
   =========================================================================== */
.security {
	background: var(--ink);
	color: #fff;
	position: relative;
}
.security .sec-head p:not(.kicker) {
	color: var(--text-ink);
}
.sec-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--line-ink);
	border-left: 1px solid var(--line-ink);
}
.sec-grid article {
	padding: 26px 26px 28px;
	border-right: 1px solid var(--line-ink);
	border-bottom: 1px solid var(--line-ink);
}
.sec-grid h3 {
	font-size: 17px;
}
.sec-grid h3::before {
	content: '';
	display: block;
	width: 22px;
	height: 2px;
	margin-bottom: 14px;
	background: linear-gradient(90deg, var(--tide), var(--spark));
}
.sec-grid p {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--text-ink);
}
.sec-grid code {
	color: var(--glow);
}

/* ===========================================================================
   HELP SOMEONE
   =========================================================================== */
.help-in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}
.help-copy h2 {
	margin-top: 16px;
}
.help-copy > p:not(.kicker) {
	margin: 16px 0 0;
	font-size: 16.5px;
	color: var(--slate-500);
}
.help-copy b,
.help-guest b {
	color: var(--slate-900);
	font-weight: 600;
}
.hand-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}
.hand-steps li {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 12px;
}
.hand-steps li > span {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e6f3f5;
	color: var(--tide);
	font-size: 12px;
	font-weight: 600;
}
.hand-steps b {
	display: block;
	font-size: 15px;
	color: var(--slate-900);
}
.hand-steps small {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	color: var(--slate-500);
}
.handoff {
	display: grid;
	grid-template-columns: minmax(0, 0.34fr) 150px minmax(0, 1fr);
	align-items: center;
	margin-top: 56px;
}
.hand-app img {
	width: 100%;
	height: auto;
}
.hand-web figcaption,
.hand-app figcaption {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--slate-400);
}
.hand-web figcaption {
	padding: 12px 14px;
	background: var(--paper);
	border-top: 1px solid var(--line);
}
.hand-wire {
	position: relative;
	height: 2px;
	margin: 0 -2px;
	background: linear-gradient(90deg, var(--tide), var(--spark));
}
.hand-wire::after {
	content: '';
	position: absolute;
	right: -1px;
	top: -4px;
	border: 5px solid transparent;
	border-left: 7px solid var(--spark);
	border-right: 0;
}
.hand-link {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	border-radius: 9999px;
	background: var(--paper);
	border: 1px solid rgba(10, 110, 124, 0.3);
	font-size: 11px;
	color: var(--tide-deep);
	white-space: nowrap;
}
.hand-link svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: var(--tide);
	stroke-width: 1.6;
	stroke-linecap: round;
}
.help-guest {
	max-width: 760px;
	margin: 40px 0 0;
	font-size: 15px;
	color: var(--slate-500);
}
.link-demo {
	margin-top: 24px;
	padding: 14px 16px;
	border-radius: var(--r-md);
	border: 1px solid var(--line);
	background: var(--paper-2);
}
.link-demo code {
	display: block;
	font-size: 13px;
	color: var(--slate-700);
	overflow-wrap: anywhere;
}
.link-demo code span {
	color: var(--tide);
	font-weight: 600;
	background: #e6f3f5;
	border-radius: 4px;
	padding: 0 3px;
}
.link-demo p {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--slate-500);
}

/* ===========================================================================
   CLOSE
   =========================================================================== */
.final {
	padding: 92px 0;
}
.final-in {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 56px;
	align-items: center;
}
.final h2 {
	margin-top: 16px;
	font-size: clamp(32px, 4.2vw, 50px);
}
.final-note {
	margin: 18px 0 0;
	font-size: 13.5px;
	color: var(--text-ink-2);
}
.recipe {
	border-radius: var(--r-lg);
	background: var(--ink-2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 22px 24px 10px;
	box-shadow: 0 0 46px -30px rgba(90, 224, 240, 0.8);
}
.recipe-head {
	margin: 0 0 6px;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-ink-2);
}
.recipe ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
.recipe li {
	display: grid;
	grid-template-columns: 30px 1fr;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid var(--line-ink);
	min-width: 0;
}
.recipe li:first-child {
	border-top: 0;
}
.recipe li > span {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--glow);
	border: 1px solid rgba(90, 224, 240, 0.3);
}
.recipe li div {
	min-width: 0;
}
.recipe b {
	display: block;
	font-weight: 600;
}
.recipe small {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: var(--text-ink);
}
.recipe code {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--glow);
	overflow-wrap: anywhere;
}

/* ---- footer ------------------------------------------------------------- */
.foot {
	background: var(--ink);
	color: var(--text-ink-2);
	border-top: 1px solid var(--line-ink);
	font-size: 13.5px;
}
.foot-in {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-top: 26px;
	padding-bottom: 26px;
}
.foot .brand {
	font-size: 16px;
}
.foot nav {
	display: flex;
	gap: 20px;
	margin-right: auto;
}
.foot nav a {
	color: var(--text-ink);
	text-decoration: none;
}
.foot nav a:hover {
	color: #fff;
}
.foot p {
	margin: 0;
}

/* ---- the reveal on scroll (main.js adds `.in`) -------------------------- */
.js .reveal {
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity 0.6s ease,
		transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.in {
	opacity: 1;
	transform: none;
}

/* ===========================================================================
   NARROW LAYOUTS
   =========================================================================== */
@media (max-width: 1080px) {
	.nav-links {
		display: none;
	}
	.nav-act {
		margin-left: auto;
	}
}
@media (max-width: 980px) {
	.hero-in,
	.agent-grid,
	.consent,
	.help-in,
	.final-in {
		grid-template-columns: 1fr;
	}
	.hero {
		padding-top: 48px;
	}
	.stage {
		padding-left: 0;
		margin-top: 8px;
	}
	.strip-in {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.strip-group + .strip-group {
		border-left: 0;
		padding-left: 0;
	}
	.mode-panel {
		grid-template-columns: 1fr;
	}
	.sec-grid {
		grid-template-columns: 1fr 1fr;
	}
	.net-facts {
		grid-template-columns: 1fr;
	}
	.help-in {
		gap: 32px;
	}
	/* The app card and the browser go one under the other. */
	.handoff {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 0;
	}
	.hand-app {
		max-width: 300px;
	}
	.hand-web {
		justify-self: stretch;
	}
	.hand-wire {
		width: 2px;
		height: 64px;
		margin: 8px 0;
		background: linear-gradient(180deg, var(--tide), var(--spark));
	}
	.hand-wire::after {
		right: auto;
		top: auto;
		left: -4px;
		bottom: -1px;
		border: 5px solid transparent;
		border-top: 7px solid var(--spark);
		border-bottom: 0;
	}
}
@media (max-width: 640px) {
	.wrap {
		padding: 0 20px;
	}
	.sec {
		padding: 72px 0;
	}
	.btn-quiet {
		display: none;
	}
	.hero {
		padding-bottom: 64px;
	}
	.scen {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.scen-btn {
		flex: none;
		padding: 6px 11px 7px;
		font-size: 12px;
	}
	.kicker {
		font-size: 11px;
		letter-spacing: 0.12em;
	}
	.card {
		padding: 18px;
	}
	.tabs {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.tabs button {
		flex: none;
	}
	.wire.relay {
		display: none;
	}
	.relay-box {
		margin-top: 6px;
		white-space: normal;
		text-align: center;
		border-radius: 14px;
	}
	.hero-cta .btn {
		flex: 1 1 100%;
	}
	/* The AI app goes under the screen, not in front of it. */
	.term {
		position: relative;
		left: auto;
		bottom: auto;
		width: 100%;
		margin-top: -18px;
	}
	.term-log {
		height: 210px;
	}
	.stage-cap {
		margin-top: 14px;
		width: auto;
		min-height: 0;
		text-align: left;
	}
	.host-state {
		display: none;
	}
	.feat {
		grid-template-columns: 1fr;
	}
	.sec-grid {
		grid-template-columns: 1fr;
	}
	.path {
		grid-template-columns: 1fr;
		justify-items: center;
		padding: 26px 18px;
	}
	.link {
		width: 100%;
	}
	.web-stage {
		padding-right: 0;
		margin-bottom: 32px;
	}
	.phone {
		position: relative;
		bottom: auto;
		width: 78%;
		margin: -36px auto 0;
	}
	.bw-chip {
		display: none;
	}
	.mode-switch button {
		padding: 9px 14px;
		font-size: 14px;
	}
	.ladder li {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.foot-in {
		flex-wrap: wrap;
	}
	.strip-group {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.pkt {
		display: none;
	}
	.js .reveal {
		opacity: 1;
		transform: none;
	}
}
