/* ═══════════════════════════════════════════════════════════════
   Substack Archiver  ·  style.css
   Font: Fraunces  ·  Base color: #cc5500  ·  Frosted Glass
═══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
	--brand: #cc5500;
	--brand-hover: #e06218;
	--brand-dark: #a84400;
	--brand-tint: rgba(255, 244, 238, 0.7);
	--brand-mid: #f2d5c0;

	--bg: #f2e5d4;
	--surface: rgba(255, 255, 255, 0.56);
	--text: #1c1208;
	--muted: #7a5f4a;
	--border: #e8d3c0;
	--border-glass: rgba(255, 255, 255, 0.48);

	--ok: #2d7a3a;
	--ok-bg: rgba(232, 245, 233, 0.72);
	--err: #b0281e;
	--err-bg: rgba(253, 236, 234, 0.72);
	--warn: #7a5800;
	--warn-bg: rgba(255, 248, 225, 0.72);

	--font: "Fraunces", Georgia, serif;
	--r: 14px;
	--r-sm: 8px;
	--shadow: 0 4px 28px rgba(120, 48, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
	--shadow-lg: 0 8px 40px rgba(120, 48, 0, 0.2);
	--t: 0.18s ease;
}

/* ── Reset ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html {
	font-size: 16px;
	scroll-behavior: smooth;
	overflow-x: hidden;
}
body {
	font-family: var(--font);
	color: var(--text);
	line-height: 1.65;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	/* Rich warm gradient background — the "scene" behind the glass */
	background:
		radial-gradient(ellipse at 15% 0%, rgba(204, 85, 0, 0.2) 0%, transparent 52%),
		radial-gradient(ellipse at 88% 85%, rgba(230, 120, 40, 0.16) 0%, transparent 48%),
		radial-gradient(ellipse at 55% 50%, rgba(255, 200, 130, 0.1) 0%, transparent 40%), #f0e0cc;
	background-attachment: fixed;
}
a {
	color: inherit;
	text-decoration: none;
}

/* ── Header ─────────────────────────────────────────────────── */
header {
	position: relative;
	background: rgba(190, 65, 0, 0.8);
	backdrop-filter: blur(22px) saturate(180%);
	-webkit-backdrop-filter: blur(22px) saturate(180%);
	color: #fff;
	padding: 1.25rem 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
	pointer-events: none;
}

.header-inner {
	position: relative;
	z-index: 1;
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

header {
	position: relative;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.logo-mark {
	width: 38px;
	height: 38px;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
}

.logo-text {
	font-size: 1.75rem;
	font-weight: 700;
	font-style: italic;
	letter-spacing: -0.02em;
	line-height: 1;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
	white-space: nowrap;
}

.logo-text span {
	font-style: normal;
	font-weight: 300;
	opacity: 0.88;
}

.tagline {
	font-size: 0.9375rem;
	font-weight: 300;
	font-style: italic;
	opacity: 0.82;
}

/* ── Main / Page Grid ───────────────────────────────────────── */
main {
	flex: 1;
	padding: 1.75rem 1.25rem 2.5rem;
}

.page-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 1.5rem;
	align-items: start;
}

/* ── Cards (Frosted Glass) ───────────────────────────────────── */
.card {
	background: rgba(255, 255, 255, 0.56);
	backdrop-filter: blur(20px) saturate(160%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	border-radius: var(--r);
	border: 1px solid rgba(255, 255, 255, 0.5);
	padding: 1.5rem;
	box-shadow:
		0 4px 28px rgba(120, 48, 0, 0.11),
		inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ── Tool Column ─────────────────────────────────────────────── */
.tool-col {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* ── Tool Card ───────────────────────────────────────────────── */
.tool-card {
	display: flex;
	flex-direction: column;
	gap: 1.375rem;
}

/* ── Field Groups ────────────────────────────────────────────── */
.field-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.field-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--brand);
}

.field-hint {
	font-size: 0.8125rem;
	color: var(--muted);
	font-style: italic;
	margin-top: -0.125rem;
}

/* ── Step Badge ──────────────────────────────────────────────── */
.step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0;
	flex-shrink: 0;
}

.step-badge.ok {
	background: var(--ok);
}
/* .anim class — visual style only; animation driven by JS spinner */
.step-badge.anim {
	background: var(--brand);
}

/* ── Textarea ────────────────────────────────────────────────── */
#url-input {
	width: 100%;
	font-family: var(--font);
	font-size: 0.9375rem;
	color: var(--text);
	background: rgba(255, 255, 255, 0.48);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1.5px solid rgba(200, 160, 130, 0.55);
	border-radius: var(--r-sm);
	padding: 0.75rem 0.875rem;
	resize: vertical;
	line-height: 1.6;
	transition:
		border-color var(--t),
		box-shadow var(--t),
		background var(--t);
}

#url-input:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.68);
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(204, 85, 0, 0.14);
}

#url-input::placeholder {
	color: #b09080;
	font-style: italic;
}

.url-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.url-count {
	font-size: 0.8125rem;
	color: var(--muted);
	font-style: italic;
}

/* ── Format Pills ────────────────────────────────────────────── */
.format-pills {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pill-option {
	cursor: pointer;
}
.pill-option input[type="radio"] {
	display: none;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4375rem 0.875rem;
	border-radius: 99px;
	border: 1.5px solid rgba(200, 160, 130, 0.5);
	background: rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-family: var(--font);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
	transition: all var(--t);
	white-space: nowrap;
	user-select: none;
}

.pill svg {
	flex-shrink: 0;
}

.pill-option input:checked + .pill {
	border-color: var(--brand);
	background: var(--brand);
	color: #fff;
	box-shadow: 0 2px 12px rgba(204, 85, 0, 0.3);
}

.pill:hover {
	border-color: var(--brand-hover);
	color: var(--brand);
	background: rgba(255, 255, 255, 0.65);
}

.pill-option input:checked + .pill:hover {
	color: #fff;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
	font-family: var(--font);
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: var(--brand);
	border: none;
	border-radius: var(--r-sm);
	padding: 0.8125rem 2rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	box-shadow:
		0 3px 16px rgba(204, 85, 0, 0.32),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transition:
		background var(--t),
		box-shadow var(--t),
		transform var(--t);
}

.btn-primary:hover:not(:disabled) {
	background: var(--brand-hover);
	box-shadow:
		0 6px 24px rgba(204, 85, 0, 0.42),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
	transform: translateY(0);
}

.btn-primary:disabled {
	opacity: 0.58;
	cursor: not-allowed;
	transform: none;
}

.btn-ghost {
	font-family: var(--font);
	font-size: 0.8125rem;
	color: var(--muted);
	background: rgba(255, 255, 255, 0.42);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(200, 160, 130, 0.45);
	border-radius: var(--r-sm);
	padding: 0.3125rem 0.75rem;
	cursor: pointer;
	transition:
		color var(--t),
		border-color var(--t),
		background var(--t);
}

.btn-ghost:hover {
	color: var(--brand);
	border-color: var(--brand);
	background: rgba(255, 244, 238, 0.65);
}

.btn-download {
	font-family: var(--font);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--brand);
	background: rgba(255, 244, 238, 0.65);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1.5px solid rgba(204, 85, 0, 0.45);
	border-radius: var(--r-sm);
	padding: 0.4rem 1rem;
	cursor: pointer;
	transition:
		background var(--t),
		color var(--t),
		border-color var(--t);
	white-space: nowrap;
}

.btn-download:hover {
	background: var(--brand);
	color: #fff;
	border-color: var(--brand);
}

/* ── Progress ────────────────────────────────────────────────── */
.progress-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.875rem;
}

.progress-pct {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--brand);
}

.progress-bar-track {
	height: 6px;
	background: rgba(242, 213, 192, 0.6);
	border-radius: 99px;
	overflow: hidden;
	margin-bottom: 1rem;
}

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

.log-list {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	max-height: 200px;
	overflow-y: auto;
	padding-right: 0.25rem;
}

.log-list::-webkit-scrollbar {
	width: 4px;
}
.log-list::-webkit-scrollbar-thumb {
	background: rgba(200, 160, 130, 0.4);
	border-radius: 99px;
}

.log-item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.8125rem;
	padding: 0.4375rem 0.75rem;
	border-radius: var(--r-sm);
	line-height: 1.4;
	word-break: break-all;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.log-icon {
	flex-shrink: 0;
	margin-top: 0.05em;
}
.log-item.pending {
	background: rgba(245, 242, 240, 0.65);
	color: var(--muted);
}
.log-item.loading {
	background: var(--warn-bg);
	color: var(--warn);
}
.log-item.success {
	background: var(--ok-bg);
	color: var(--ok);
}
.log-item.error {
	background: var(--err-bg);
	color: var(--err);
}

.spinner {
	display: inline-block;
	width: 13px;
	height: 13px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
	flex-shrink: 0;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── Results ─────────────────────────────────────────────────── */
.results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

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

.result-item {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 0.9375rem 1rem;
	border: 1px solid rgba(200, 160, 130, 0.38);
	border-radius: var(--r-sm);
	background: rgba(255, 255, 255, 0.42);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition:
		border-color var(--t),
		background var(--t),
		box-shadow var(--t);
}

.result-item:hover {
	border-color: rgba(204, 85, 0, 0.5);
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 2px 12px rgba(204, 85, 0, 0.1);
}

.result-icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	background: var(--brand-tint);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--brand);
	font-size: 1rem;
}

.result-info {
	flex: 1;
	min-width: 0;
}

.result-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 0.2rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.result-meta {
	font-size: 0.8125rem;
	color: var(--muted);
	font-style: italic;
}

.result-actions {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
	align-items: center;
}

/* ══════════════════════════════════════════════════════════════
   CREATOR COLUMN
══════════════════════════════════════════════════════════════ */
.creator-col {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: sticky;
	top: 1.5rem;
}

/* Creator Card */
.creator-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
}

.creator-avatar {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 3px 12px rgba(204, 85, 0, 0.25);
	border: 2px solid rgba(255, 255, 255, 0.65);
	display: block;
}

/* Clickable avatar link */
.creator-avatar-link {
	display: block;
	flex-shrink: 0;
	border-radius: 50%;
	transition: opacity var(--t);
}

.creator-avatar-link:hover {
	opacity: 0.82;
}

/* Clickable name + bio area */
.creator-info-link {
	display: block;
	text-decoration: none;
	border-radius: var(--r-sm);
	padding: 0.25rem 0.375rem;
	margin: -0.25rem -0.375rem;
	transition: background var(--t);
}

.creator-info-link:hover {
	background: rgba(255, 244, 238, 0.6);
}

.creator-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 0.2rem;
	transition: color var(--t);
}

.creator-info-link:hover .creator-name {
	color: var(--brand);
}

.creator-bio {
	font-size: 0.8125rem;
	color: var(--muted);
	font-style: italic;
	line-height: 1.4;
}

/* Subscribe Banner */
.subscribe-banner {
	display: flex;
	flex-direction: column;
	background: rgba(190, 62, 0, 0.82);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	border-radius: var(--r);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	text-decoration: none;
	overflow: hidden;
	transition:
		background var(--t),
		transform var(--t),
		box-shadow var(--t);
	box-shadow:
		0 4px 20px rgba(204, 85, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.subscribe-banner:hover {
	background: rgba(210, 80, 0, 0.88);
	transform: translateY(-2px);
	box-shadow:
		0 8px 28px rgba(204, 85, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Hero area: image + absolutely-positioned logo */
.subscribe-banner-hero {
	position: relative;
}

/* Featured landscape banner image */
.subscribe-banner-img {
	width: 100%;
	display: block;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	object-position: center;
}

/* Logo pinned to bottom-left corner of the hero image */
.sub-icon {
	position: absolute;
	left: 1rem;
	bottom: -22px;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.30);
	border: 2px solid rgba(255, 255, 255, 0.55);
}

.sub-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Text body below the image, padded to clear the overlapping logo */
.subscribe-banner-body {
	padding: 1.75rem 1.25rem 1rem 1.25rem;
}

.sub-text {
	display: flex;
	flex-direction: column;
	gap: 0rem;
}

.sub-text strong {
	font-size: 0.9375rem;
	font-weight: 700;
	font-style: italic;
}

.sub-text span {
	font-size: 0.8125rem;
	opacity: 0.88;
	font-style: italic;
}

.sub-desc {
	font-size: 0.78rem;
	line-height: 1.45;
	opacity: 0.82;
	font-style: normal;
	margin: 0.2rem 0 0.25rem;
}

/* Ko-fi Button */
.kofi-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.56);
	backdrop-filter: blur(16px) saturate(150%);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: var(--r);
	color: var(--text);
	font-family: var(--font);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition:
		border-color var(--t),
		color var(--t),
		background var(--t),
		transform var(--t),
		box-shadow var(--t);
	box-shadow:
		0 4px 28px rgba(120, 48, 0, 0.11),
		inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.kofi-btn svg {
	color: #e03030;
}

.kofi-btn:hover {
	border-color: rgba(224, 48, 48, 0.55);
	color: #e03030;
	background: rgba(255, 248, 248, 0.72);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(180, 30, 30, 0.15);
}

/* Social Icon Buttons */
.social-links {
	display: flex;
	flex-direction: row;
	gap: 0.625rem;
}

.social-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: rgba(255, 255, 255, 0.52);
	backdrop-filter: blur(14px) saturate(150%);
	border: 1px solid var(--border-glass);
	border-radius: 50%;
	color: var(--text);
	transition: all var(--t);
}

.social-icon-btn:hover {
	background: rgba(255, 255, 255, 0.72);
	color: var(--brand);
	border-color: var(--brand-tint);
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(120, 48, 0, 0.1);
}

/* ── Trivia Card ────────────────────────────────────────────── */
.trivia-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 250, 245, 0.45) 100%);
	border-left: 3px solid var(--brand);
}

.trivia-text {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--text);
	font-style: italic;
	margin: 0 0 1rem 0;
}

.trivia-actions {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 0.75rem;
}

.trivia-btn {
	display: inline-flex;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.5rem 1rem;
	color: var(--brand);
	border-radius: var(--r-sm);
	transition: all var(--t);
}

.trivia-btn:hover {
	background: var(--brand-tint);
	color: var(--brand-dark);
}

.trivia-footnote {
	display: none;
}

.btn-trivia-refresh {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: rgba(255, 255, 255, 0.4);
	border: 1px solid var(--border-glass);
	border-radius: var(--r-sm);
	color: var(--brand);
	cursor: pointer;
	transition: all var(--t);
}

.btn-trivia-refresh:hover {
	background: rgba(255, 255, 255, 0.6);
	border-color: var(--brand);
	box-shadow: 0 2px 8px rgba(120, 48, 0, 0.08);
}

.btn-trivia-refresh.spinning svg {
	animation: spin-ccw 0.6s ease-in-out;
}

@keyframes spin-ccw {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(-360deg);
	}
}
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.48);
	border-radius: var(--r-sm);
	color: var(--muted);
	text-decoration: none;
	flex-shrink: 0;
	transition:
		background var(--t),
		border-color var(--t),
		color var(--t),
		transform var(--t),
		box-shadow var(--t);
	box-shadow:
		0 2px 12px rgba(120, 48, 0, 0.09),
		inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.social-icon-btn:hover {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(204, 85, 0, 0.3);
}

.social-icon-btn svg {
	display: block;
}

/* ── Tooltips ────────────────────────────────────────────────── */
/*
  Usage: add data-tooltip="your text" to any element.
  The bubble slides up smoothly on hover with a short delay
  so it doesn't flash on accidental mouse-overs.
*/
[data-tooltip] {
	position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
	pointer-events: none;
	position: absolute;
	left: 50%;
	opacity: 0;
	z-index: 500;
	/* out state: invisible + shifted down slightly */
	transform: translateX(-50%) translateY(6px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

/* Bubble */
[data-tooltip]::after {
	content: attr(data-tooltip);
	bottom: calc(100% + 13px);
	background: rgba(20, 10, 4, 0.88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	color: #fff;
	font-family: "Fraunces", Georgia, serif;
	font-size: 0.8rem;
	font-weight: 400;
	line-height: 1.5;
	padding: 0.6rem 0.875rem;
	border-radius: 10px;
	border-top: 3px solid var(--brand);
	width: max-content;
	max-width: 200px;
	text-align: left;
	white-space: normal;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

/* Down-pointing arrow */
[data-tooltip]::before {
	content: "";
	bottom: calc(100% + 7px);
	border: 6px solid transparent;
	border-top-color: rgba(20, 10, 4, 0.88);
}

/* Hover: slide up into place */
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	/* tiny delay so accidental mouse-overs don't flash the tip */
	transition-delay: 0.25s;
}

/* ── Toast Notifications ─────────────────────────────────────── */
#toast-container {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	pointer-events: none;
}

.toast {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	background: rgba(22, 12, 4, 0.84);
	backdrop-filter: blur(20px) saturate(160%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	color: #fff;
	font-family: var(--font);
	font-size: 0.875rem;
	font-weight: 400;
	padding: 0.7rem 1.125rem;
	border-radius: 10px;
	border-left: 3px solid var(--brand);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
	pointer-events: auto;
	/* entrance animation — starts hidden + shifted down */
	transform: translateY(14px) scale(0.97);
	opacity: 0;
	transition:
		transform 0.22s ease,
		opacity 0.22s ease;
	max-width: 280px;
}

.toast.show {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.toast-icon {
	font-size: 0.9rem;
	flex-shrink: 0;
	line-height: 1;
}

.toast.success {
	border-left-color: #3a9e4a;
}
.toast.error {
	border-left-color: #c0321e;
}
.toast.info {
	border-left-color: var(--brand);
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
	text-align: center;
	padding: 1.25rem;
	font-size: 0.8125rem;
	font-style: italic;
	color: var(--muted);
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.38);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

footer a {
	color: var(--brand);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 780px) {
	.page-grid {
		grid-template-columns: 1fr;
	}

	.creator-col {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.875rem;
	}

	/* Creator card and subscribe banner each span full width */
	.creator-card,
	.subscribe-banner {
		grid-column: 1 / -1;
	}

	/* Ko-fi and social icons sit side-by-side in the middle row */
	.kofi-btn {
		align-self: center;
	}

	.social-links {
		flex-direction: row;
		flex-wrap: wrap;
		align-self: center;
	}
}

@media (max-width: 480px) {
	header {
		padding: 1rem 1.25rem;
	}
	.logo-text {
		font-size: 1.5rem;
	}
	.tagline {
		display: none;
	}

	.creator-col {
		grid-template-columns: 1fr;
	}

	.format-pills {
		gap: 0.375rem;
	}
	.pill {
		padding: 0.375rem 0.75rem;
		font-size: 0.8125rem;
	}

	#toast-container {
		bottom: 1rem;
		right: 1rem;
		left: 1rem;
	}

	.toast {
		max-width: 100%;
	}
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
	header,
	footer,
	.creator-col,
	.tool-card,
	.action-row,
	#progress-section,
	.results-header,
	.result-actions {
		display: none !important;
	}
	body {
		background: #fff;
	}
	.page-grid {
		grid-template-columns: 1fr;
	}
}
