/* ========================================
   Stick Me On Your iPad — 2026 Edition
   ======================================== */

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--color-bg: #0f1117;
	--color-surface: #1a1d27;
	--color-surface-hover: #242736;
	--color-primary: #3b82f6;
	--color-primary-glow: rgba(59, 130, 246, 0.3);
	--color-accent: #8b5cf6;
	--color-accent-glow: rgba(139, 92, 246, 0.25);
	--color-sold: #ef4444;
	--color-sold-dim: rgba(239, 68, 68, 0.15);
	--color-text: #e2e8f0;
	--color-text-dim: #94a3b8;
	--color-text-muted: #475569;
	--color-success: #22c55e;
	--font-body: 'Inter', system-ui, -apple-system, sans-serif;
	--font-display: 'Fredoka', 'Inter', sans-serif;
	--radius: 12px;
	--radius-sm: 8px;
	--radius-xs: 4px;
}

html {
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
	min-height: 100vh;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: #60a5fa;
	text-decoration: underline;
}

strong {
	font-weight: 600;
}

img {
	display: block;
	max-width: 100%;
}

/* ---- Layout ---- */

.wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 2rem;
}

/* ---- Split Layout ---- */

.split-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
	min-height: calc(100vh - 10rem);
}

.info-col {
	position: sticky;
	top: 2rem;
	padding-top: 2rem;
}

.ipad-col {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: 2rem;
}

/* ---- Hero ---- */

.hero {
	margin-bottom: 1.5rem;
}

.tagline {
	font-family: var(--font-display);
	font-size: 1.25rem;
	color: var(--color-text-dim);
	margin-bottom: 0.15rem;
}

h1 {
	font-family: var(--font-display);
	font-size: clamp(3.5rem, 6vw, 5.5rem);
	font-weight: 600;
	letter-spacing: -2px;
	line-height: 1;
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 1rem;
}

.intro {
	font-size: 1rem;
	color: var(--color-text-dim);
	line-height: 1.7;
}

.intro .dimmed {
	color: var(--color-text-muted);
	font-size: 0.9em;
}

/* ---- How it works ---- */

.how-it-works {
	padding: 1.5rem 0;
}

h2 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--color-text);
}

.steps {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.step {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	background: var(--color-surface);
	border-radius: var(--radius);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-num {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	color: white;
	font-weight: 700;
	font-size: 0.8rem;
}

.step p {
	font-size: 0.9rem;
	color: var(--color-text-dim);
	line-height: 1.5;
}

/* ---- iPad Pro Back (Space Black aluminium) ---- */

.ipad-frame {
	position: relative;
	background: linear-gradient(160deg, #3a3a3e 0%, #2c2c2f 20%, #323235 50%, #28282b 80%, #232326 100%);
	border-radius: 22px;
	padding: 24px;
	box-shadow:
		/* chamfered edge highlight */
		0 0 0 1px rgba(255, 255, 255, 0.12),
		inset 0 0 0 1px rgba(255, 255, 255, 0.05),
		/* top edge catch light */
		inset 0 1px 0 rgba(255, 255, 255, 0.15),
		/* depth shadow */
		0 25px 60px -10px rgba(0, 0, 0, 0.7),
		0 10px 20px -5px rgba(0, 0, 0, 0.4);
	max-width: 100%;
}

/* Brushed aluminium texture */
.ipad-frame::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 22px;
	background: repeating-linear-gradient(
		90deg,
		transparent,
		transparent 1px,
		rgba(255, 255, 255, 0.015) 1px,
		rgba(255, 255, 255, 0.015) 2px
	);
	pointer-events: none;
	z-index: 0;
}

/* Camera bump — iPad Pro square module with rounded corners */
.camera-bump {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(145deg, #2a2a2d, #1e1e21);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 2px 6px rgba(0, 0, 0, 0.4);
	z-index: 3;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 7px;
}

/* Camera lenses */
.camera-bump .lens {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #3a3a4a 0%, #1a1a22 45%, #0d0d12 100%);
	box-shadow:
		0 0 0 1.5px #444,
		inset 0 1px 1px rgba(255, 255, 255, 0.15),
		0 0 3px rgba(0, 0, 0, 0.5);
}

/* LiDAR scanner — smaller, different look */
.camera-bump .lidar {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, #1a1a2e 0%, #0a0a14 100%);
	box-shadow:
		0 0 0 1.5px #3a3a3a,
		inset 0 0 2px rgba(80, 80, 120, 0.3);
}

/* Flash */
.camera-bump .flash {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, #e8e4d0 0%, #c4b896 60%, #a09070 100%);
	box-shadow:
		0 0 0 1px #555,
		inset 0 0 2px rgba(255, 255, 255, 0.3);
}

.ipad-screen {
	background: rgba(0, 0, 0, 0.06);
	border-radius: 6px;
	padding: 10px;
	overflow: hidden;
	position: relative;
	z-index: 1;
}

#stickers {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 2px;
	width: fit-content;
	position: relative;
	z-index: 0;
}

.spot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background: var(--color-surface);
	border-radius: var(--radius-xs);
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--color-text-muted);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s ease;
	overflow: hidden;
	user-select: none;
}

.spot:hover:not(.sold):not(.invisible) {
	background: var(--color-surface-hover);
	color: var(--color-text-dim);
	text-decoration: none;
	transform: scale(1.05);
	box-shadow: 0 0 12px var(--color-primary-glow);
}

.spot.selected {
	background: var(--color-primary);
	color: white;
	text-decoration: none;
	box-shadow: 0 0 16px var(--color-primary-glow);
	transform: scale(1.08);
}

.spot.sold {
	background: var(--color-sold-dim);
	cursor: pointer;
	opacity: 0.85;
}

.spot.sold:hover {
	opacity: 1;
	transform: scale(1.05);
}

.spot.sold img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.spot.invisible {
	visibility: hidden;
	pointer-events: none;
}

/* ---- Checkout ---- */

.checkout {
	padding: 1rem 0 0;
}

.selection-info {
	background: var(--color-surface);
	border-radius: var(--radius);
	padding: 1.25rem;
	margin-bottom: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-tag {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 600;
	color: var(--color-primary);
	line-height: 1.2;
}

.price-tag span {
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--color-text-dim);
	display: block;
	margin-top: 0.15rem;
}

.selected-spots {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.your-picks {
	font-size: 0.85rem;
	color: var(--color-text-dim);
	margin-bottom: 0.5rem;
}

.your-picks span {
	color: var(--color-text-muted);
	font-style: italic;
}

#picks-display {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	min-height: 1.5rem;
}

.pick-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	padding: 0 0.4rem;
	background: var(--color-accent);
	color: white;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 6px;
	animation: chipIn 0.2s ease;
}

@keyframes chipIn {
	from { transform: scale(0.7); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.total {
	margin-top: 0.75rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--color-success);
}

#checkout-btn {
	width: 100%;
	padding: 0.9rem 2rem;
	font-family: var(--font-body);
	font-size: 1.05rem;
	font-weight: 600;
	color: white;
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}

#checkout-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px var(--color-primary-glow);
}

#checkout-btn:active {
	transform: translateY(0);
}

.shake {
	animation: shake 0.4s ease;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-6px); }
	40% { transform: translateX(6px); }
	60% { transform: translateX(-4px); }
	80% { transform: translateX(4px); }
}

.payment-note {
	font-size: 0.8rem;
	color: var(--color-text-muted);
	margin-top: 0.6rem;
	text-align: center;
}

/* ---- Footer ---- */

.footer {
	text-align: center;
	padding: 2.5rem 0 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	margin-top: 2rem;
}

.footer p {
	font-size: 0.85rem;
	color: var(--color-text-dim);
	margin-bottom: 0.5rem;
}

.footer .credit {
	color: var(--color-text-muted);
	font-size: 0.8rem;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
	.split-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.info-col {
		position: static;
		padding-top: 0;
		text-align: center;
	}

	.hero {
		text-align: center;
	}

	.ipad-col {
		padding-top: 0;
	}

	.steps {
		max-width: 500px;
		margin: 0 auto;
	}

	.checkout {
		max-width: 500px;
		margin: 0 auto;
	}

	h2 {
		text-align: center;
	}
}

@media (max-width: 500px) {
	.wrapper {
		padding: 1.25rem 1rem;
	}

	.ipad-frame {
		border-radius: 16px;
		padding: 14px;
	}

	.camera-bump {
		width: 36px;
		height: 36px;
		border-radius: 10px;
		padding: 5px;
		gap: 3px;
		top: 9px;
		left: 9px;
	}

	.camera-bump .lens,
	.camera-bump .lidar,
	.camera-bump .flash {
		width: 10px;
		height: 10px;
	}

	.ipad-screen {
		padding: 6px;
		border-radius: 6px;
	}

	.spot {
		width: 36px;
		height: 36px;
		font-size: 0.6rem;
	}

	#stickers {
		gap: 1px;
	}
}

@media (max-width: 360px) {
	.spot {
		width: 30px;
		height: 30px;
		font-size: 0.55rem;
	}

	.ipad-frame {
		padding: 10px;
		border-radius: 12px;
	}

	.camera-bump {
		width: 30px;
		height: 30px;
		border-radius: 8px;
		padding: 4px;
		gap: 2px;
		top: 7px;
		left: 7px;
	}

	.camera-bump .lens,
	.camera-bump .lidar,
	.camera-bump .flash {
		width: 8px;
		height: 8px;
	}
}
