.grably-app {
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--gradient-hero);
	overflow: hidden;
}

/* Smooth collapse for hero elements when keyboard opens */
.hero-illustration,
.hero-title,
.hero-subtitle,
.platforms-row {
	transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
	overflow: hidden;
}

/* When mobile keyboard is open, collapse hero to free space for input + button.
   Only applies on mobile devices (max-width 768px) — desktop has no virtual keyboard. */
@media (max-width: 768px) {
	.grably-app.keyboard-open {
		overflow: auto;
	}

	.grably-app.keyboard-open .hero-illustration {
		max-height: 120px !important;
		margin: 1rem 0 1rem !important;
	}

	.grably-app.keyboard-open .hero-illustration img {
		max-width: 120px;
	}

	.grably-app.keyboard-open .hero-title,
	.grably-app.keyboard-open .hero-subtitle {
		max-height: 0 !important;
		opacity: 0;
		margin: 0 !important;
	}

	.grably-app.keyboard-open .grably-main {
		padding-top: 0.25rem;
		overflow: visible;
	}

	.grably-app.keyboard-open .platforms-row {
		max-height: 0 !important;
		opacity: 0;
		margin: 0 !important;
	}

	.grably-app.keyboard-open .grably-footer {
		display: none;
	}
}

.grably-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1.5rem 1rem;
	overflow: hidden;
}

.grably-card {
	width: 100%;
	max-width: 680px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-self: center;
}

/* Header — 3-column grid: Logo (left edge) | Lang (center) | Theme (right edge) */
.grably-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 1rem 2rem;
	flex-shrink: 0;
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--gradient-hero);
	position: relative;
}

.grably-header-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.grably-logo {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	background: var(--gradient-brand);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Language Switcher - centered */
.lang-switcher {
	display: flex;
	gap: 0.5rem;
	justify-self: center;
}

/* Right group: auth + theme toggle */
.header-right-group {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Auth section — right edge of 680px content area, centered in header */
.header-auth {
	position: absolute;
	right: calc(50% - 340px);
	top: 50%;
	transform: translateY(-50%);
}

.lang-btn {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.75rem;
	font-family: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	background: var(--gradient-light);
	border: 1px solid var(--glassmorphism-border);
	box-shadow: var(--shadow-inset-light);
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	backdrop-filter: var(--blur-backdrop);
	-webkit-backdrop-filter: var(--blur-backdrop);
}

.lang-btn:hover {
	color: var(--text-primary);
	transform: translateY(-1px);
	background: var(--gradient-light);
	box-shadow: var(--shadow-md);
	border-color: var(--border-medium);
}

.lang-btn:active {
	transform: translateY(1px);
	background: var(--gradient-light);
	box-shadow: var(--shadow-inset-pressed);
	border-color: var(--border-medium);
	transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn.active {
	color: var(--color-primary);
	background: var(--gradient-light);
	border: 1px solid rgba(var(--brand-blue-rgb), 0.3);
	transform: translateY(1px);
	box-shadow: var(--shadow-inset-pressed);
}

.lang-btn.active:hover {
	transform: translateY(1px);
	background: var(--gradient-light);
	box-shadow: var(--shadow-inset-pressed);
	border-color: rgba(var(--brand-blue-rgb), 0.4);
}

.lang-btn.active:active {
	transform: translateY(2px);
	background: var(--gradient-light);
	box-shadow: var(--shadow-inset-pressed);
}

/* Dark theme overrides for lang buttons */
:root[data-theme="dark"] .lang-btn {
	box-shadow: var(--shadow-inset-light);
}

:root[data-theme="dark"] .lang-btn:hover {
	box-shadow: var(--shadow-md);
}

:root[data-theme="dark"] .lang-btn:active,
:root[data-theme="dark"] .lang-btn.active {
	box-shadow: var(--shadow-inset-pressed);
}

/* Preview block: centers the inner wrap */
.hero-preview-block {
	display: flex;
	justify-content: center;
	margin-bottom: 1.25rem;
}

/* Inner wrap: hugs the image, icon + preview stacked */
.hero-preview-inner {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
}

.hero-preview-platform {
	font-size: 1.4rem;
	margin-bottom: 0.1rem;
	filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

/* Video preview */
.hero-preview {
	max-height: 250px;
}

.hero-preview-img {
	max-width: 320px;
	width: 100%;
	height: auto;
	border-radius: var(--radius-medium);
	box-shadow: var(--shadow-md);
	object-fit: cover;
}

/* Hero illustration */
.hero-illustration {
	margin-bottom: 1rem;
	max-height: 250px;
	transition: max-height 0.3s ease, margin 0.3s ease;
}

.hero-illustration img {
	max-width: 220px;
	height: auto;
	transition: max-width 0.3s ease;
}

.hero-illustration-small {
	max-height: 120px;
	margin-bottom: 0.5rem;
}

.hero-illustration-small img {
	max-width: 110px;
}

/* Hero */
.hero-title {
	font-size: clamp(1.8rem, 5vw, 2.5rem);
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
	max-height: 80px;
}

.hero-subtitle {
	font-size: 1rem;
	color: var(--text-muted);
	margin-bottom: 2rem;
	max-height: 60px;
}

/* Video title on home page (replaces hero title when preview is shown) */
.hero-video-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1.3;
	margin-bottom: 1.25rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

/* Input area */
.input-group {
	position: relative;
	margin-bottom: 1.25rem;
}

.url-input {
	width: 100%;
	padding: 1rem 1.25rem;
	font-size: 1rem;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-medium);
	background: var(--bg-surface);
	color: var(--text-primary);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: var(--shadow-xs);
}

.url-input:focus {
	border-color: rgba(var(--brand-blue-rgb), 0.4);
	box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb), 0.08);
}

.url-input::placeholder {
	color: var(--text-muted);
}

/* Quality selector */
.quality-selector {
	display: inline-flex;
	justify-content: center;
	gap: 0.75rem;
}

.quality-rows {
	text-align: center;
	margin-bottom: 1.5rem;
}

.quality-free-row {
	display: inline-flex;
	gap: 0.75rem;
	margin-right: 0.75rem;
}

.quality-paid-row {
	display: inline-flex;
	gap: 0.75rem;
}

.quality-label {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 0.75rem;
}

.quality-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.25rem;
	font-size: 0.9rem;
	font-weight: 500;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-button);
	background: var(--bg-surface);
	color: var(--text-secondary);
	cursor: pointer;
	transition: var(--transition-bounce);
	box-shadow: var(--shadow-xs);
}

.quality-option:hover {
	transform: translateY(-1px);
	border-color: var(--color-primary);
	box-shadow: var(--shadow-sm);
}

.quality-option.selected {
	background: var(--gradient-brand);
	color: var(--text-inverse);
	border-color: transparent;
	box-shadow: var(--shadow-md);
}

/* (removed — replaced by .header-auth and theme toggle in grid) */

.header-auth-btn {
	padding: 0.4rem 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-button);
	background: var(--bg-surface);
	color: var(--text-primary);
	cursor: pointer;
	transition: var(--transition-smooth);
	white-space: nowrap;
}

.header-auth-btn:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

/* User avatar in header */
.header-user {
	position: relative;
}

@keyframes avatar-ring-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.header-avatar {
	position: relative;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bg-surface);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	color: var(--text-secondary);
	cursor: pointer;
	transition: color 0.3s ease, transform 0.3s ease;
	z-index: 1;
}

.header-avatar::before {
	content: '';
	position: absolute;
	inset: -1.5px;
	border-radius: 50%;
	background: conic-gradient(
		from 0deg,
		#667eea, #764ba2, #f093fb, #667eea
	);
	z-index: -1;
	animation: avatar-ring-spin 4s linear infinite;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.header-avatar::after {
	content: '';
	position: absolute;
	inset: 1px;
	border-radius: 50%;
	background: var(--bg-surface);
	z-index: -1;
}

.header-avatar:hover {
	transform: scale(1.1);
	color: var(--text-primary);
}

.header-avatar:hover::before {
	opacity: 1;
}

.header-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 0.5rem;
	background: var(--bg-surface);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-medium);
	box-shadow: var(--shadow-lg);
	min-width: 160px;
	z-index: 200;
	overflow: hidden;
}

.header-dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.7rem 1rem;
	font-size: 0.85rem;
	color: var(--text-primary);
	background: none;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease;
	text-align: left;
}

.header-dropdown-item:hover {
	background: var(--bg-secondary);
}

.header-dropdown-item.danger {
	color: #e74c3c;
}

.header-dropdown-item.danger i {
	color: #e74c3c;
}

.header-dropdown-item.danger:hover {
	background: rgba(231, 76, 60, 0.08);
}

.header-dropdown-item i {
	font-size: 0.8rem;
	color: var(--text-muted);
	width: 16px;
	text-align: center;
}

:root[data-theme="dark"] .header-auth-btn {
	background: var(--bg-secondary);
	border-color: var(--border-medium);
}

:root[data-theme="dark"] .header-dropdown {
	background: var(--bg-elevated);
	border-color: var(--border-medium);
}

:root[data-theme="dark"] .header-dropdown-item:hover {
	background: var(--bg-tertiary);
}

/* Quality locked (paid) */
.quality-option.quality-locked {
	position: relative;
	color: var(--text-muted);
	border-style: dashed;
	gap: 0.3rem;
}

.quality-option.quality-locked:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
	border-style: solid;
}

.quality-lock-icon {
	font-size: 0.6rem;
}

/* Main scroll mode for non-home views */
.grably-main-scroll {
	overflow-y: auto;
	align-items: flex-start;
}

/* Buttons - content-button pattern from alexbic.net */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.75rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	border: 1px solid transparent;
	border-radius: var(--radius-button);
	background: var(--gradient-brand);
	color: var(--text-inverse);
	cursor: pointer;
	transition: var(--transition-bounce);
	box-shadow: var(--shadow-md);
	text-decoration: none;
	letter-spacing: 0.01em;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-primary:active {
	transform: translateY(0);
	box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Secondary button */
.btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-button);
	background: var(--bg-secondary);
	color: var(--text-primary);
	cursor: pointer;
	transition: var(--transition-bounce);
}

.btn-secondary:hover {
	background: var(--bg-elevated);
	border-color: var(--border-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

/* Link button */
.btn-link {
	display: inline-flex;
	align-items: center;
	background: transparent;
	border: none;
	color: var(--color-primary);
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	margin-top: 1rem;
	padding: 0.5rem 1rem;
	transition: var(--transition-bounce);
}

.btn-link:hover {
	color: var(--color-secondary);
	text-decoration: underline;
}

/* Progress */
.progress-section {
	padding: 2rem 0;
}

.progress-text {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.progress-bar-container {
	width: 100%;
	height: 8px;
	background: var(--bg-tertiary);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.progress-bar-fill {
	height: 100%;
	background: var(--gradient-brand);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.progress-percent {
	font-size: 0.85rem;
	color: var(--text-muted);
}

.progress-hint {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-top: 1rem;
	line-height: 1.5;
	text-align: center;
}

.btn-cancel {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.75rem;
	padding: 0.4rem 0;
	font-size: 0.8rem;
	color: var(--text-muted);
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.btn-cancel:hover {
	color: #e74c3c;
}

.btn-cancel i {
	font-size: 0.7rem;
}

/* Done state */
.done-section {
	padding: 1rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.done-thumbnail {
	width: 100%;
	max-width: 320px;
	border-radius: var(--radius-medium, 12px);
	margin-bottom: 1rem;
	box-shadow: var(--shadow-md);
}

.done-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
	word-break: break-word;
	line-height: 1.4;
}

.done-meta {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 1.5rem;
}

.done-meta span {
	margin: 0 0.25rem;
}

.btn-download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 2.5rem;
	font-size: 1rem;
	font-weight: 600;
	border: 1px solid transparent;
	border-radius: var(--radius-button);
	background: var(--color-success);
	color: #fff;
	cursor: pointer;
	transition: var(--transition-bounce);
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
}

.btn-download:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(52, 199, 89, 0.4);
}

.btn-download:active {
	transform: translateY(0);
	box-shadow: var(--shadow-sm);
}

.expiry-hint {
	font-size: 0.75rem;
	color: var(--text-muted);
	opacity: 0.7;
	margin-top: 0.75rem;
}

.btn-back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 2rem;
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-muted);
	background: none;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-button, 8px);
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-back:hover {
	color: var(--text-primary);
	border-color: var(--border-medium);
	background: var(--bg-secondary);
}

.btn-back i {
	font-size: 0.75rem;
}

.done-logo {
	margin-top: auto;
	padding-top: 1.5rem;
}

.done-logo img {
	max-width: 140px;
	height: auto;
}

/* Error */
.error-section {
	padding: 1.5rem 0;
}

.error-icon {
	font-size: 2rem;
	color: var(--color-error);
	margin-bottom: 0.75rem;
}

.error-message {
	font-size: 0.95rem;
	color: var(--color-error);
	margin-bottom: 1.25rem;
}

/* Deferred download — friendly service-down screen */
.deferred-section {
	padding: 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.deferred-oops {
	font-size: clamp(2.5rem, 7vw, 3.5rem);
	font-weight: 800;
	background: var(--gradient-brand);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.5rem;
	line-height: 1.1;
}

.deferred-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 1rem;
	line-height: 1.4;
}

.deferred-text {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.deferred-card {
	padding: 1.25rem 1.5rem;
	border-radius: var(--radius-large, 16px);
	background: var(--bg-surface);
	border: 1px solid rgba(var(--brand-blue-rgb), 0.15);
	box-shadow: 0 4px 24px rgba(var(--brand-blue-rgb), 0.08);
	margin-bottom: 1.5rem;
}

.deferred-hint {
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--text-secondary);
	margin-bottom: 1rem;
}

.deferred-input-row {
	display: flex;
	gap: 0.5rem;
}

.deferred-email-input {
	flex: 1;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-medium);
	background: var(--bg-primary);
	color: var(--text-primary);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deferred-email-input:focus {
	border-color: rgba(var(--brand-blue-rgb), 0.4);
	box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb), 0.08);
}

.deferred-email-input::placeholder {
	color: var(--text-muted);
}

.deferred-btn {
	width: auto;
	white-space: nowrap;
	padding: 0.75rem 1.5rem;
	font-size: 0.85rem;
}

.deferred-error {
	font-size: 0.8rem;
	color: var(--color-error);
	margin-top: 0.75rem;
}

.deferred-sending {
	padding: 2rem 0;
	font-size: 2rem;
	background: var(--gradient-brand);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.deferred-card-success {
	border-color: rgba(52, 199, 89, 0.2);
	box-shadow: 0 4px 24px rgba(52, 199, 89, 0.08);
}

.deferred-success-icon {
	font-size: 2rem;
	color: var(--color-success);
	margin-bottom: 0.75rem;
}

.deferred-success-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

/* Games section */
.deferred-games-hint {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 1rem;
}

.games-slider {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	padding: 4px;
}

.game-tile {
	flex: 0 0 auto;
	width: 90px;
	height: 90px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	border-radius: var(--radius-medium);
	background: var(--bg-surface);
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-xs);
	cursor: pointer;
	transition: var(--transition-bounce);
	color: var(--text-secondary);
	font-size: 0.75rem;
	font-weight: 500;
}

.game-tile i {
	font-size: 1.4rem;
	background: var(--gradient-brand);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.game-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: rgba(var(--brand-blue-rgb), 0.3);
}

.game-tile:active {
	transform: translateY(0);
	box-shadow: var(--shadow-xs);
}

/* Logo at bottom of deferred section */
.deferred-logo {
	margin-top: auto;
	padding-top: 1rem;
}

.deferred-logo img {
	max-width: 140px;
	height: auto;
}

/* Terms checkbox */
.terms-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-bottom: 0.75rem;
	cursor: pointer;
	justify-content: center;
}

.terms-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--color-primary);
	cursor: pointer;
	flex-shrink: 0;
}

.terms-checkbox a {
	color: var(--color-primary);
	text-decoration: none;
}

.terms-checkbox a:hover {
	text-decoration: underline;
}

.quality-option.quality-locked.disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Landing content section */
.landing-section {
	max-width: 800px;
	margin: 0 auto;
	padding: 3rem 1.5rem 2rem;
}

.landing-heading {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
	color: var(--text-primary);
	margin-bottom: 2rem;
}

/* Steps */
.landing-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 4rem;
}

.landing-step {
	text-align: center;
	position: relative;
}

.landing-step-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--bg-surface);
	border: 2px solid var(--border-light);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 1.2rem;
	color: var(--color-primary);
}

.landing-step-num {
	position: absolute;
	top: -4px;
	right: calc(50% - 36px);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--gradient-brand);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.landing-step h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.landing-step p {
	font-size: 0.85rem;
	color: var(--text-muted);
	line-height: 1.5;
}

/* Features */
.landing-features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	margin-bottom: 4rem;
}

.landing-feature {
	display: flex;
	gap: 1rem;
	padding: 1.25rem;
	background: var(--bg-surface);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-large);
}

.landing-feature > i {
	font-size: 1.25rem;
	color: var(--color-primary);
	flex-shrink: 0;
	margin-top: 0.15rem;
}

.landing-feature h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.landing-feature p {
	font-size: 0.85rem;
	color: var(--text-muted);
	line-height: 1.4;
}

/* Platforms */
.landing-platforms {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.landing-platform {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	min-width: 80px;
	flex: 0 1 auto;
}

.landing-platform i {
	font-size: 2.5rem;
	transition: transform 0.2s;
}

.landing-platform:hover i {
	transform: scale(1.1);
}

.landing-platform span {
	font-size: 0.85rem;
	color: var(--text-secondary);
	font-weight: 500;
}

.landing-platform .coming-star {
	color: var(--color-primary);
	font-weight: 700;
}

.landing-coming-soon {
	text-align: center;
	font-size: 0.8rem;
	color: var(--color-primary);
	margin-top: 1rem;
	margin-bottom: 2rem;
	font-weight: 500;
}

@media (max-width: 640px) {
	.landing-steps {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.landing-features {
		grid-template-columns: 1fr;
	}
	.landing-heading {
		font-size: 1.25rem;
	}
}

/* Dark theme */
:root[data-theme="dark"] .deferred-card {
	background: var(--bg-surface);
	border-color: rgba(var(--brand-blue-rgb), 0.25);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .deferred-email-input {
	background: var(--bg-secondary);
	border-color: var(--border-medium);
}

:root[data-theme="dark"] .deferred-card-success {
	border-color: rgba(52, 199, 89, 0.3);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .game-tile {
	background: var(--bg-elevated, var(--bg-surface));
	border-color: var(--border-medium);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

:root[data-theme="dark"] .game-tile:hover {
	border-color: rgba(var(--brand-blue-rgb), 0.5);
	box-shadow: 0 4px 16px rgba(var(--brand-blue-rgb), 0.15);
}


/* Pickup floating button */
.pickup-btn {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	border: none;
	border-radius: 50px;
	background: var(--color-success);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 24px rgba(52, 199, 89, 0.4);
	z-index: 1000;
	animation: pickup-pulse 2s ease-in-out infinite;
}

.pickup-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 32px rgba(52, 199, 89, 0.5);
}

.pickup-btn:active {
	transform: scale(0.98);
}

.pickup-btn i {
	font-size: 1.1rem;
}

@keyframes pickup-pulse {
	0%, 100% { box-shadow: 0 6px 24px rgba(52, 199, 89, 0.4); }
	50% { box-shadow: 0 6px 32px rgba(52, 199, 89, 0.6); }
}

.pickup-enter {
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pickup-enter-start {
	opacity: 0;
	transform: translateY(20px) scale(0.9);
}
.pickup-enter-end {
	opacity: 1;
	transform: translateY(0) scale(1);
}

@media (max-width: 480px) {
	.pickup-btn {
		bottom: 1rem;
		right: 1rem;
		left: 1rem;
		justify-content: center;
	}
}

/* Platforms */
.platforms-row {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 2.5rem;
	flex-wrap: wrap;
	max-height: 80px;
}

.platform-icon {
	font-size: 1.25rem;
	color: var(--text-muted);
	opacity: 0.5;
	transition: var(--transition-bounce);
}

.platform-icon:hover {
	opacity: 1;
	color: var(--color-primary);
	transform: translateY(-2px);
}

.platform-icon.detected {
	opacity: 1;
	transform: scale(1.3);
}

/* Brand colors for detected platform icons */
.platform-icon.detected.fa-youtube { color: #FF0000; filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.4)); }
.platform-icon.detected.fa-tiktok { color: #000; filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3)); }
.platform-icon.detected.fa-vimeo-v { color: #1AB7EA; filter: drop-shadow(0 0 6px rgba(26, 183, 234, 0.4)); }
.platform-icon.detected.fa-play-circle { color: #00AAFF; filter: drop-shadow(0 0 6px rgba(0, 170, 255, 0.4)); }

:root[data-theme="dark"] .platform-icon.detected.fa-tiktok { color: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3)); }

/* Footer */
.grably-footer {
	text-align: center;
	padding: 1rem 2rem;
	border-top: 1px solid var(--border-light);
	flex-shrink: 0;
}

.footer-nav {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 0.5rem;
}

.footer-nav a {
	font-size: 0.8rem;
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-nav a:hover {
	color: var(--color-primary);
}

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

.footer-copy a {
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-copy a:hover {
	color: var(--color-primary);
}

/* Dark theme specifics */
:root[data-theme="dark"] .hero-illustration img {
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

:root[data-theme="dark"] .quality-option {
	background: var(--bg-surface);
	border-color: var(--border-light);
	color: var(--text-secondary);
}

:root[data-theme="dark"] .quality-option:hover {
	border-color: var(--color-primary);
	color: var(--text-primary);
}

:root[data-theme="dark"] .quality-option.selected {
	background: var(--gradient-brand);
	color: #fff;
	border-color: transparent;
}

:root[data-theme="dark"] .btn-secondary {
	background: var(--bg-secondary);
	border-color: var(--border-medium);
}

:root[data-theme="dark"] .btn-secondary:hover {
	background: var(--bg-elevated);
	border-color: var(--border-dark);
}

/* ========================================================================= */
/* ===================== RESPONSIVE ======================================= */
/* ========================================================================= */

@media (max-width: 768px) {
	.hero-illustration img {
		max-width: 180px;
	}

	.grably-header {
		padding: 0.75rem 1.25rem;
	}

	.grably-header-center {
		gap: 0.75rem;
	}

	.header-auth {
		position: static;
		transform: none;
	}

	.grably-main {
		padding: 1rem 1.25rem 2rem;
	}

	.hero-subtitle {
		margin-bottom: 1.5rem;
	}

	.btn-primary,
	.btn-download {
		padding: 0.65rem 1.25rem;
		font-size: 0.9rem;
	}

	.quality-option {
		padding: 0.45rem 1rem;
		font-size: 0.85rem;
	}

	.platforms-row {
		gap: 1.25rem;
		margin-top: 2rem;
	}
}

@media (max-width: 480px) {
	.hero-illustration img {
		max-width: 140px;
	}

	.hero-preview-img {
		max-width: 240px;
	}

	.grably-header {
		padding: 0.75rem 1rem;
	}

	.grably-main {
		padding: 0.5rem 1rem 0.5rem;
	}

	.lang-btn {
		width: 32px;
		height: 32px;
		font-size: 0.7rem;
	}

	.url-input {
		font-size: 0.9rem;
		padding: 0.85rem 1rem;
	}

	.hero-subtitle {
		font-size: 0.9rem;
		margin-bottom: 1.25rem;
	}

	.btn-primary,
	.btn-download {
		padding: 0.6rem 1rem;
		font-size: 0.85rem;
	}

	.quality-free-row {
		display: flex;
		justify-content: center;
		margin-right: 0;
		margin-bottom: 0.5rem;
	}

	.quality-paid-row {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 0.4rem;
	}

	.quality-option {
		padding: 0.35rem 0.75rem;
		font-size: 0.75rem;
	}

	.platforms-row {
		gap: 1rem;
		margin-top: 1.5rem;
	}

	.platform-icon {
		font-size: 1.1rem;
	}

	.grably-footer {
		padding: 0.5rem 1rem;
		font-size: 0.75rem;
	}

	.deferred-oops {
		font-size: clamp(2rem, 6vw, 2.5rem);
	}

	.game-tile {
		width: 75px;
		height: 75px;
	}

	.game-tile i {
		font-size: 1.2rem;
	}

	.deferred-card {
		padding: 1rem;
	}

	.deferred-logo img {
		max-width: 100px;
	}
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	.btn-primary,
	.btn-secondary,
	.btn-download,
	.btn-link,
	.quality-option,
	.lang-btn,
	.platform-icon {
		transition: none !important;
	}

	.btn-primary:hover,
	.btn-download:hover,
	.quality-option:hover,
	.platform-icon:hover {
		transform: none !important;
	}
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-download:focus-visible,
.btn-link:focus-visible,
.quality-option:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.lang-btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}
