/* Print Lab Cloud: design system. Warm paper light theme, deep plum dark theme, Geist type. */
@font-face {
	font-family: 'Geist';
	src: url('/fonts/Geist-Variable.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	--bg: #f8f5ef;
	--bg-glow: #efe6ff;
	--surface: #ffffff;
	--surface-2: #f4efe7;
	--ink: #1b1730;
	--ink-2: #3d3854;
	--muted: #6c6782;
	--line: #e8e0d4;
	--line-strong: #d8cfc1;
	--accent: #6443f5;
	--accent-2: #8a6cff;
	--accent-ink: #ffffff;
	--accent-soft: #eee9ff;
	--ok: #13805a;
	--ok-soft: #e1f5ea;
	--warn: #a4570a;
	--warn-soft: #fdf0dc;
	--danger: #bf2a55;
	--danger-soft: #fde6ed;
	--cyan: #20b6c9;
	--lime: #86c93f;
	--shadow: 0 1px 2px rgb(40 30 70 / 0.05), 0 8px 28px -10px rgb(40 30 70 / 0.16);
	--shadow-lg: 0 2px 6px rgb(40 30 70 / 0.06), 0 30px 60px -20px rgb(60 40 120 / 0.28);
	--radius: 20px;
	--radius-sm: 12px;
	--sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
}
/* Dark theme: follows the system unless the person picked light or dark (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--bg: #0e0c17;
		--bg-glow: #221a45;
		--surface: #181626;
		--surface-2: #201d31;
		--ink: #efecfb;
		--ink-2: #cfcae6;
		--muted: #9f99ba;
		--line: #2a2740;
		--line-strong: #3a3656;
		--accent: #8c72ff;
		--accent-2: #a995ff;
		--accent-ink: #0e0a24;
		--accent-soft: #2a2254;
		--ok: #4fd49a;
		--ok-soft: #133427;
		--warn: #f2b25a;
		--warn-soft: #3a2a12;
		--danger: #ff7aa0;
		--danger-soft: #3d1624;
		--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -12px rgb(0 0 0 / 0.6);
		--shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 30px 70px -20px rgb(0 0 0 / 0.7);
	}
}
:root[data-theme='dark'] {
	color-scheme: dark;
	--bg: #0e0c17;
	--bg-glow: #221a45;
	--surface: #181626;
	--surface-2: #201d31;
	--ink: #efecfb;
	--ink-2: #cfcae6;
	--muted: #9f99ba;
	--line: #2a2740;
	--line-strong: #3a3656;
	--accent: #8c72ff;
	--accent-2: #a995ff;
	--accent-ink: #0e0a24;
	--accent-soft: #2a2254;
	--ok: #4fd49a;
	--ok-soft: #133427;
	--warn: #f2b25a;
	--warn-soft: #3a2a12;
	--danger: #ff7aa0;
	--danger-soft: #3d1624;
	--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -12px rgb(0 0 0 / 0.6);
	--shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 30px 70px -20px rgb(0 0 0 / 0.7);
}
:root[data-theme='light'] {
	color-scheme: light;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	font: 16px/1.55 var(--sans);
	font-feature-settings: 'ss01', 'cv11';
	letter-spacing: -0.006em;
	color: var(--ink);
	background:
		radial-gradient(1200px 520px at 85% -120px, var(--bg-glow), transparent 70%), var(--bg);
	-webkit-font-smoothing: antialiased;
}
a {
	color: var(--accent);
	text-underline-offset: 3px;
}
:focus-visible {
	outline: 3px solid var(--accent-2);
	outline-offset: 2px;
	border-radius: 6px;
}
h1,
h2,
h3 {
	margin: 0;
	line-height: 1.15;
	letter-spacing: -0.03em;
	text-wrap: balance;
}
h1 {
	font-size: clamp(30px, 6vw, 42px);
	font-weight: 720;
}
h2 {
	font-size: 21px;
	font-weight: 680;
}
h3 {
	font-size: 17px;
	font-weight: 650;
	letter-spacing: -0.015em;
}
p {
	margin: 0;
	text-wrap: pretty;
}
[hidden] {
	display: none !important;
}

/* ---------- Shell ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: saturate(1.4) blur(14px);
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 1080px;
	margin: 0 auto;
	padding: 12px 20px;
}
.brand,
.nav a {
	white-space: nowrap;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-weight: 700;
	font-size: 17px;
	letter-spacing: -0.03em;
	text-decoration: none;
	margin-right: auto;
}
.brand svg {
	width: 30px;
	height: 30px;
	flex: none;
}
.brand small {
	color: var(--muted);
	font-weight: 550;
}
.nav {
	display: flex;
	gap: 4px;
}
.nav a,
.nav button {
	padding: 8px 12px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--ink-2);
	font: 550 15px var(--sans);
	text-decoration: none;
	cursor: pointer;
}
.nav a:hover,
.nav button:hover,
.nav a[aria-current='page'] {
	background: var(--surface-2);
	color: var(--ink);
}
main {
	flex: 1;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 36px 20px 64px;
}
main.wide {
	max-width: 1080px;
}
main.narrow {
	max-width: 440px;
	padding-top: 8vh;
}
.footer {
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	align-items: center;
	max-width: 1080px;
	margin: 0 auto;
	padding: 22px 20px 30px;
}
.footer a {
	color: var(--muted);
}
.footer .spacer {
	margin-right: auto;
}

/* ---------- Building blocks ---------- */
.stack {
	display: grid;
	gap: 14px;
}
.stack-lg {
	display: grid;
	gap: 22px;
}
.row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.between {
	justify-content: space-between;
}
.page-head {
	display: grid;
	gap: 8px;
	margin-bottom: 26px;
}
.eyebrow {
	color: var(--accent);
	font-size: 13px;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.lead {
	color: var(--ink-2);
	font-size: 18px;
}
.note {
	color: var(--muted);
	font-size: 15px;
}
.card {
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}
.card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}

a.link-card {
	color: inherit;
	text-decoration: none;
}
a.link-card:hover {
	border-color: var(--accent);
}
.stack.tight {
	gap: 4px;
}
.gap-top {
	margin-top: 16px;
}

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 11px 20px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(180deg, var(--accent-2), var(--accent));
	color: var(--accent-ink);
	font: 650 16px var(--sans);
	letter-spacing: -0.01em;
	text-decoration: none;
	cursor: pointer;
	box-shadow:
		0 1px 0 rgb(255 255 255 / 0.25) inset,
		0 6px 16px -6px rgb(100 67 245 / 0.6);
	transition:
		transform 0.12s,
		box-shadow 0.12s,
		opacity 0.12s;
}
.button:hover {
	transform: translateY(-1px);
}
.button:active {
	transform: translateY(1px);
}
.button:disabled {
	opacity: 0.55;
	cursor: default;
	transform: none;
}
.button.secondary {
	background: var(--surface);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line-strong);
}
.button.ghost {
	background: transparent;
	color: var(--ink-2);
	box-shadow: none;
}
.card-head .button,
.row .button {
	white-space: nowrap;
}
td.note {
	white-space: nowrap;
}
.button.small {
	min-height: 36px;
	padding: 7px 14px;
	border-radius: 11px;
	font-size: 14.5px;
}
.button.block {
	width: 100%;
}
.link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Forms */
label.field {
	display: grid;
	gap: 7px;
	font-weight: 600;
	font-size: 15px;
}
input:not([type='hidden']) {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 13px;
	background: var(--surface);
	color: var(--ink);
	font: 450 16px var(--sans);
}
input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
input.code {
	font: 650 26px var(--mono);
	letter-spacing: 0.14em;
	text-align: center;
	text-transform: uppercase;
}

/* Feedback */
.notice {
	flex-wrap: wrap;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	background: var(--accent-soft);
	color: var(--ink);
}
/* A sentence (with links) flows as text; flex is for notices with buttons. */
p.notice {
	display: block;
}
.notice.ok {
	background: var(--ok-soft);
}
.notice.warn {
	background: var(--warn-soft);
}
.ok {
	color: var(--ok);
}
.error {
	color: var(--danger);
	font-weight: 550;
}
.error:empty,
.status:empty {
	display: none;
}
.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.pill::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.8;
}
.pill.ok {
	background: var(--ok-soft);
	color: var(--ok);
}
.pill.warn {
	background: var(--warn-soft);
	color: var(--warn);
}
.pill.accent {
	background: var(--accent-soft);
	color: var(--accent);
}

/* Lists and tables */
.list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}
.list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}
.list li:first-child {
	border-top: 0;
}
.list .grow {
	flex: 1;
	min-width: 0;
}
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
td {
	padding: 10px 4px;
	border-top: 1px solid var(--line);
}
tr:first-child td {
	border-top: 0;
}
.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}
.num.plus {
	color: var(--ok);
}
.num.minus {
	color: var(--danger);
}

/* ---------- Account ---------- */
.balance {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.balance strong {
	font-size: 44px;
	font-weight: 720;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}
.packs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 16px;
}
.pack {
	display: grid;
	gap: 2px;
	justify-items: center;
	padding: 14px 8px;
	border: 1px solid var(--line-strong);
	border-radius: 16px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	cursor: pointer;
	transition:
		border-color 0.12s,
		transform 0.12s;
}
.pack:hover {
	border-color: var(--accent);
	transform: translateY(-1px);
}
.pack strong {
	font-size: 22px;
	letter-spacing: -0.02em;
}
.pack span {
	color: var(--muted);
	font-size: 14px;
}
.plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 16px;
}
.plan-option {
	position: relative;
	display: grid;
	gap: 2px;
	padding: 16px;
	border: 1px solid var(--line-strong);
	border-radius: 16px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.plan-option:hover {
	border-color: var(--accent);
}
.plan-option strong {
	font-size: 20px;
	letter-spacing: -0.02em;
}
.plan-option .save {
	position: absolute;
	top: -10px;
	right: 12px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 12px;
	font-weight: 650;
}
.features {
	display: grid;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	color: var(--ink-2);
}
.features li {
	display: flex;
	gap: 10px;
}
.features li::before {
	content: '✓';
	color: var(--ok);
	font-weight: 700;
}
.device-dot {
	width: 10px;
	height: 10px;
	flex: none;
	border-radius: 50%;
	background: var(--line-strong);
}
.device-dot.on {
	background: var(--ok);
	box-shadow: 0 0 0 4px var(--ok-soft);
}

/* ---------- Print requests (phone) ---------- */
.req {
	display: grid;
	gap: 14px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--surface);
	box-shadow: var(--shadow);
}
.req-head {
	display: flex;
	align-items: center;
	gap: 12px;
}
.avatar {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff8fb1, #ffb86b);
	color: #fff;
	font-weight: 750;
	font-size: 18px;
}
.req-head .who {
	flex: 1;
	min-width: 0;
	font-size: 15px;
	color: var(--muted);
}
.req-head .who strong {
	display: block;
	color: var(--ink);
	font-size: 17px;
}
.thumb {
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 40%, var(--surface), var(--surface-2)), var(--surface-2);
	display: grid;
	place-items: center;
	color: var(--muted);
	font-size: 40px;
}
.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: 50% 52%;
}
.req h2 {
	font-size: 22px;
}
.bubble {
	justify-self: start;
	max-width: 100%;
	padding: 10px 14px;
	border-radius: 18px 18px 18px 6px;
	background: var(--accent-soft);
	font-size: 17px;
}
.facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--ink-2);
	font-size: 14px;
	font-weight: 550;
}
.swatch {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
}
.answer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.answered {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.answered li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	font-size: 15px;
}
.answered .grow {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.empty {
	display: grid;
	gap: 10px;
	justify-items: center;
	padding: 44px 20px;
	border: 1.5px dashed var(--line-strong);
	border-radius: 24px;
	text-align: center;
	color: var(--muted);
}
.empty .big {
	font-size: 40px;
}

/* Grid children may not widen the page on phones. */
.stack,
.stack-lg,
.grid-2 > * {
	min-width: 0;
}

/* ---------- Link a computer ---------- */
.steps {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.share-list {
	display: grid;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.share-list li {
	display: flex;
	gap: 10px;
}
.share-list .icon {
	flex: none;
	width: 26px;
	text-align: center;
}

/* ---------- Landing ---------- */
.hero {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 48px;
	align-items: center;
	padding: 24px 0 56px;
}
.hero h1 {
	font-size: clamp(38px, 6.4vw, 62px);
	line-height: 1.02;
	letter-spacing: -0.045em;
}
.hero h1 em {
	font-style: normal;
	background: linear-gradient(100deg, var(--accent), #e0569a 55%, #f59e2c);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero .lead {
	max-width: 34ch;
	margin-top: 18px;
	font-size: 19px;
}
.hero .row {
	margin-top: 28px;
}
.notif {
	display: flex;
	gap: 10px;
	padding: 12px;
	border-radius: 18px;
	background: rgb(255 255 255 / 0.9);
	color: #1b1730;
	font-size: 13.5px;
	line-height: 1.35;
	box-shadow: 0 10px 20px -10px rgb(0 0 0 / 0.5);
}
.notif svg {
	width: 34px;
	height: 34px;
	flex: none;
}
.notif strong {
	display: block;
	font-size: 14px;
}
.section {
	padding: 56px 0;
	border-top: 1px solid var(--line);
}
.section > .page-head {
	max-width: 620px;
}
.how {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.how .card {
	display: grid;
	gap: 10px;
}
.how .n {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 750;
}
.privacy {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.privacy .card ul {
	display: grid;
	gap: 8px;
	margin: 12px 0 0;
	padding-left: 20px;
	color: var(--ink-2);
}
.pricing {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	align-items: stretch;
}
.price-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.price-card.featured {
	border: 2px solid var(--accent);
	box-shadow: var(--shadow-lg);
}
.price {
	font-size: 34px;
	font-weight: 750;
	letter-spacing: -0.04em;
}
.price small {
	color: var(--muted);
	font-size: 16px;
	font-weight: 550;
	letter-spacing: 0;
}
.price-card .features {
	flex: 1;
}
.faq {
	display: grid;
	gap: 10px;
}
.faq details {
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
}
.faq summary {
	font-weight: 650;
	cursor: pointer;
}
.faq details p {
	margin-top: 10px;
	color: var(--ink-2);
}

/* ---------- Legal text ---------- */
.prose {
	display: grid;
	gap: 14px;
	color: var(--ink-2);
}
.prose h2 {
	margin-top: 18px;
	color: var(--ink);
}
.prose ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding-left: 20px;
}
.prose dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 18px;
	margin: 0;
}
.prose dt {
	color: var(--muted);
}
.prose dd {
	margin: 0;
	color: var(--ink);
}

@media (max-width: 860px) {
	.hero {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.how,
	.pricing,
	.privacy {
		grid-template-columns: 1fr;
	}
	.phone {
		transform: none;
	}
}
@media (max-width: 520px) {
	main {
		padding: 24px 16px 48px;
	}
	.topbar-inner {
		padding: 10px 16px;
	}
	.brand small,
	.nav .optional {
		display: none;
	}
	.packs {
		gap: 8px;
	}
	.pack {
		padding: 12px 4px;
	}
	.pack strong {
		font-size: 19px;
	}
	.pack span {
		font-size: 13px;
	}
	.plans {
		grid-template-columns: 1fr;
	}
	.card {
		padding: 18px;
	}
	.prose dl {
		grid-template-columns: 1fr;
	}
}
@media (prefers-reduced-motion: reduce) {
	.button,
	.pack {
		transition: none;
	}
}
.notice .grow {
	flex: 1;
	min-width: 12ch;
}

.sent-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: var(--accent-soft);
	font-size: 30px;
}

/* Loading placeholders and the answered state */
.skeleton {
	gap: 14px;
}
.sk {
	border-radius: 12px;
	background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2));
	background-size: 200% 100%;
	animation: shimmer 1.4s ease-in-out infinite;
}
.sk-head {
	width: 55%;
	height: 42px;
	border-radius: 21px;
}
.sk-pic {
	aspect-ratio: 4 / 3;
	border-radius: 18px;
}
.sk-line {
	height: 18px;
}
.sk-line.short {
	width: 40%;
}
@keyframes shimmer {
	to {
		background-position: -200% 0;
	}
}
.req.sending {
	opacity: 0.75;
}
.req.done {
	border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
	background: var(--ok-soft);
	animation: settle 0.35s ease-out;
}
.done-panel {
	display: grid;
	gap: 6px;
	justify-items: center;
	padding: 18px 8px;
	text-align: center;
}
.done-panel strong {
	font-size: 20px;
}
.done-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ok);
	color: var(--surface);
	font-size: 28px;
	font-weight: 800;
}
@keyframes settle {
	from {
		transform: scale(0.97);
		opacity: 0.6;
	}
}
@media (prefers-reduced-motion: reduce) {
	.sk,
	.req.done {
		animation: none;
	}
}

/* Landing: real screens */
.hero-visual {
	position: relative;
	justify-self: center;
	width: min(320px, 100%);
}
.phone {
	width: 100%;
	padding: 10px;
	border-radius: 46px;
	background: #16131f;
	box-shadow: var(--shadow-lg);
	transform: rotate(2deg);
}
.phone img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 36px;
}
.notif.floating {
	position: absolute;
	top: 64px;
	left: -56px;
	width: 290px;
	border: 1px solid rgb(0 0 0 / 0.04);
	animation: drop-in 0.7s 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.showcase {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}
.tablet {
	margin: 0;
}
.tablet img {
	display: block;
	width: 100%;
	height: auto;
	padding: 9px;
	border-radius: 26px;
	background: #16131f;
	box-shadow: var(--shadow-lg);
}
.tablet figcaption {
	margin-top: 12px;
	color: var(--muted);
	font-weight: 550;
	text-align: center;
}
.hero > div:first-child > * {
	animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero > div:first-child > :nth-child(2) {
	animation-delay: 0.06s;
}
.hero > div:first-child > :nth-child(3) {
	animation-delay: 0.12s;
}
.hero > div:first-child > :nth-child(4) {
	animation-delay: 0.18s;
}
.hero-visual .phone {
	animation: rise 0.8s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise {
	from {
		opacity: 0;
		translate: 0 14px;
	}
}
@keyframes drop-in {
	from {
		opacity: 0;
		translate: 0 -18px;
		scale: 0.96;
	}
}
@media (max-width: 860px) {
	.showcase {
		grid-template-columns: 1fr;
	}
	.notif.floating {
		left: -12px;
		width: 260px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.hero > div:first-child > *,
	.hero-visual .phone,
	.notif.floating {
		animation: none;
	}
}

/* ================= App shell (signed-in pages) ================= */
@view-transition {
	navigation: auto;
}
body.app main {
	padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.tabbar {
	display: none;
}
.chevron {
	color: var(--muted);
	font-size: 28px;
	line-height: 1;
}
.app-head h1 {
	font-size: clamp(32px, 7vw, 40px);
}
@media (max-width: 720px) {
	body.app .topbar .nav {
		display: none;
	}
	body.app .topbar-inner {
		padding-top: max(10px, env(safe-area-inset-top));
	}
	body.app .footer {
		display: none;
	}
	.tabbar {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 20;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		padding: 6px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom))
			max(8px, env(safe-area-inset-left));
		border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
		background: color-mix(in srgb, var(--surface) 86%, transparent);
		backdrop-filter: saturate(1.5) blur(18px);
		view-transition-name: tabbar;
	}
	.tabbar a {
		position: relative;
		display: grid;
		justify-items: center;
		gap: 2px;
		padding: 6px 0 4px;
		border-radius: 14px;
		color: var(--muted);
		font-size: 11.5px;
		font-weight: 600;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
	}
	.tabbar a[aria-current='page'] {
		color: var(--accent);
	}
	.tabbar a[aria-current='page'] svg {
		stroke-width: 2.2;
	}
	.tabbar a:active {
		background: var(--surface-2);
	}
	.tab-badge {
		position: absolute;
		top: 2px;
		left: calc(50% + 6px);
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		border-radius: 9px;
		background: #e5484d;
		color: #fff;
		font-size: 11px;
		font-weight: 700;
		line-height: 18px;
		text-align: center;
		box-shadow: 0 0 0 2px var(--surface);
	}
}
.nav .tab-badge {
	display: none;
}

/* Segmented controls (theme, tabs) */
.segmented {
	display: inline-grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 4px;
	padding: 4px;
	border-radius: 14px;
	background: var(--surface-2);
}
.segmented button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding: 6px 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--ink-2);
	font: 600 15px var(--sans);
	cursor: pointer;
}
.segmented button[aria-pressed='true'],
.segmented button[aria-selected='true'] {
	background: var(--surface);
	color: var(--ink);
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}
.segmented .count:empty {
	display: none;
}
.segmented .count {
	min-width: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 12px;
	line-height: 20px;
}
.toolbar {
	display: grid;
	gap: 12px;
}
.toolbar .tabs {
	width: 100%;
}
.kid-filter,
.quick {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	margin: 0 -2px;
	padding: 2px;
}
.kid-filter::-webkit-scrollbar,
.quick::-webkit-scrollbar {
	display: none;
}
.chip-button {
	flex: none;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink-2);
	font: 600 14px var(--sans);
	white-space: nowrap;
	cursor: pointer;
}
.chip-button[aria-pressed='true'] {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent);
}

/* Request cards, app style: picture edge to edge with the kid on top of it */
#waiting .req:not(.skeleton):not(.done) {
	padding: 0;
	gap: 0;
	overflow: hidden;
}
.req-media {
	position: relative;
}
.req-media .thumb {
	display: grid;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	cursor: zoom-in;
}
.req-media .thumb:disabled {
	cursor: default;
}
.who-chip {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 14px 5px 5px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 14px -6px rgb(0 0 0 / 0.35);
	font-size: 13px;
	color: var(--muted);
	pointer-events: none;
}
.who-chip .avatar {
	width: 34px;
	height: 34px;
	font-size: 15px;
}
.who-chip strong {
	display: block;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.2;
}
.req-body {
	display: grid;
	gap: 14px;
	padding: 18px;
}
.req-body input {
	min-height: 46px;
}
.answer .button {
	min-height: 52px;
}
.answered li .avatar {
	width: 36px;
	height: 36px;
	font-size: 15px;
}
.answered li .grow {
	display: grid;
	white-space: normal;
}
.answered li .grow .note {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.answered .empty-row {
	justify-content: center;
	padding: 28px;
	border-style: dashed;
}

/* Full-screen picture */
.viewer {
	width: min(720px, 100vw);
	max-width: none;
	max-height: 100dvh;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 24px;
	background: var(--surface);
	color: var(--ink);
	overflow: hidden;
}
.viewer::backdrop {
	background: rgb(10 8 20 / 0.72);
	backdrop-filter: blur(6px);
}
.viewer img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80dvh;
	object-fit: contain;
	background: #eef1f5;
}
.viewer-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
}
@media (max-width: 720px) {
	.viewer {
		width: 100vw;
		margin: auto 0 0;
		border-radius: 24px 24px 0 0;
	}
}

/* Pull to refresh */
.ptr {
	--pull: 0px;
	display: grid;
	place-items: center;
	height: var(--pull);
	overflow: hidden;
	transition: height 0.2s;
}
.ptr span {
	width: 26px;
	height: 26px;
	border: 3px solid var(--line-strong);
	border-top-color: var(--accent);
	border-radius: 50%;
	opacity: var(--progress, 0);
	transform: rotate(calc(var(--progress, 0) * 270deg));
}
.ptr.ready span {
	border-color: var(--accent);
}
.ptr.spinning {
	height: 52px;
}
.ptr.spinning span {
	opacity: 1;
	animation: spin 0.8s linear infinite;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Computers */
.device-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--accent);
}
.note .device-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	vertical-align: 1px;
}
ul.list.card {
	padding-top: 4px;
	padding-bottom: 4px;
}

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
	.ptr,
	.ptr.spinning span {
		transition: none;
		animation: none;
	}
}

.viewer .viewer-frame {
	overflow: hidden;
	background: #eef1f5;
}
.viewer img {
	transform-origin: 50% 52%;
}
/* Desktop: picture on the left, details on the right. */
@media (min-width: 721px) {
	#waiting .req:not(.skeleton):not(.done) {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		align-items: stretch;
	}
	#waiting .req-media .thumb {
		height: 100%;
		min-height: 260px;
	}
	#waiting .req-media .thumb img {
		height: 100%;
	}
}

/* Download */
.downloads {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.os-card {
	display: grid;
	gap: 12px;
	align-content: start;
}
.os-card.detected {
	border: 2px solid var(--accent);
	box-shadow: var(--shadow-lg);
	order: -1;
}
.os-head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.os-head .pill {
	margin-left: auto;
}
.os-icon {
	font-size: 28px;
}
.hero-small {
	margin-top: 12px;
}
code {
	padding: 1px 6px;
	border-radius: 6px;
	background: var(--surface-2);
	font: 0.92em var(--mono);
}
@media (max-width: 860px) {
	.downloads {
		grid-template-columns: 1fr;
	}
}

/* Landing: the app itself */
.hero-app {
	grid-template-columns: 0.95fr 1.05fr;
}
.hero-stack {
	width: 100%;
	position: relative;
}
.window {
	margin: 0;
	overflow: hidden;
	border: 1px solid #2a2740;
	border-radius: 14px;
	background: #0c1018;
	box-shadow: var(--shadow-lg);
}
.window-bar {
	display: flex;
	gap: 6px;
	padding: 9px 12px;
	background: #151a26;
}
.window-bar i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #3a4256;
}
.window img {
	display: block;
	width: 100%;
	height: auto;
}
.phone.phone-small {
	position: absolute;
	right: -18px;
	bottom: -40px;
	width: 34%;
	padding: 6px;
	border-radius: 28px;
}
.phone.phone-small img {
	border-radius: 22px;
}
.features-list {
	display: grid;
	gap: 72px;
}
.feature {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: 48px;
	align-items: center;
}
.feature.reverse {
	grid-template-columns: 1.2fr 0.8fr;
}
.feature.reverse .feature-text {
	order: 2;
}
.feature-text {
	display: grid;
	gap: 12px;
}
.feature-text h2 {
	font-size: clamp(26px, 3.4vw, 34px);
	letter-spacing: -0.035em;
}
.ai-cards {
	margin-top: 64px;
}
.steps-inline {
	display: grid;
	gap: 8px;
	margin: 4px 0 8px;
	padding-left: 20px;
	color: var(--ink-2);
}
@media (max-width: 860px) {
	.hero-app,
	.feature,
	.feature.reverse {
		grid-template-columns: 1fr;
	}
	.feature.reverse .feature-text {
		order: 0;
	}
	.phone.phone-small {
		right: 6px;
		bottom: -26px;
		width: 30%;
	}
	.hero-stack {
		margin-bottom: 26px;
	}
}

/* Owner stats */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
}
.stat {
	font-size: 1.9rem;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

/* Printer progress on the requests screen (only from computers sharing it) */
.printer-card {
	display: grid;
	gap: 10px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--surface);
	box-shadow: var(--shadow);
}
.printer-top {
	display: flex;
	align-items: center;
	gap: 12px;
}
.printer-top .grow {
	display: grid;
	min-width: 0;
}
.printer-top .grow strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.printer-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: var(--accent-soft);
	font-size: 1.3rem;
	flex: none;
}
.printer-card.is-finished .printer-icon {
	background: var(--ok-soft);
}
.printer-card.is-failed .printer-icon {
	background: var(--danger-soft);
}
.progress {
	height: 10px;
	border-radius: 999px;
	background: var(--surface-2);
	overflow: hidden;
}
.progress > span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	transition: width 0.6s ease;
}
.printer-card.is-paused .progress > span {
	background: var(--warn);
}

/* Shop */
.shop-balance {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 28px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
}
.page-head.tight {
	margin-bottom: 4px;
}
.page-head.tight h2 {
	margin: 0;
}
.shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
}
.shop-card {
	display: grid;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease;
}
.shop-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}
.shop-card img,
.shop-figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--surface-2);
}
.shop-card-body {
	display: grid;
	gap: 6px;
	padding: 14px 16px 16px;
	justify-items: start;
}
.price-tag {
	font-size: 0.95rem;
	color: var(--muted);
}
.price-tag strong {
	color: var(--ink);
	font-size: 1.1rem;
}
.price-big {
	margin: 0;
	font-size: 1rem;
	color: var(--muted);
}
.price-big strong {
	font-size: 2rem;
	color: var(--ink);
}
.shop-item {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
.shop-figure {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
}
.back {
	margin: 0 0 16px;
}
@media (max-width: 760px) {
	.shop-item {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
