/* ==========================================================================
   Y2Daddy Design System (y2daddy.com)
   Ultra-fast, Zero-CLS, Dark & Light Mode Downloader UI
   ========================================================================== */

:root,
[data-theme="dark"] {
	--bg-body: #090b10;
	--bg-alt: #0d1018;
	--bg-card: #121622;
	--bg-card-hover: #171c2b;
	--bg-input: #0b0e16;
	--border-subtle: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.15);
	--text-main: #f8fafc;
	--text-muted: #94a3b8;
	--text-soft: #64748b;
	--accent: #ff3b5c;
	--accent-2: #ff6b4a;
	--accent-glow: rgba(255, 59, 92, 0.28);
	--accent-soft: rgba(255, 59, 92, 0.12);
	--emerald: #10b981;
	--emerald-soft: rgba(16, 185, 129, 0.14);
	--amber: #f59e0b;
	--violet: #8b5cf6;
	--shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
	--header-bg: rgba(9, 11, 16, 0.82);
}

[data-theme="light"] {
	--bg-body: #f8fafc;
	--bg-alt: #f1f5f9;
	--bg-card: #ffffff;
	--bg-card-hover: #f8fafc;
	--bg-input: #f1f5f9;
	--border-subtle: #e2e8f0;
	--border-strong: #cbd5e1;
	--text-main: #0f172a;
	--text-muted: #475569;
	--text-soft: #64748b;
	--accent: #e11d48;
	--accent-2: #f97316;
	--accent-glow: rgba(225, 29, 72, 0.2);
	--accent-soft: rgba(225, 29, 72, 0.09);
	--emerald: #059669;
	--emerald-soft: rgba(5, 150, 105, 0.11);
	--shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);
	--header-bg: rgba(248, 250, 252, 0.88);
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: var(--bg-body);
	color: var(--text-main);
	line-height: 1.65;
	font-size: 16px;
	overflow-x: hidden;
	transition: background-color 0.2s ease, color 0.2s ease;
}

a {
	color: inherit;
	text-decoration: none;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	background: var(--accent);
	color: #fff;
	padding: 8px 16px;
	border-radius: 8px;
	z-index: 999;
}

.skip-link:focus {
	left: 12px;
}

.container {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}

.narrow-container {
	max-width: 840px;
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--header-bg);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 68px;
	gap: 16px;
}

.brand-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}

.brand-mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px var(--accent-glow);
}

.brand-accent {
	color: var(--accent);
}

.brand-pill {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--emerald-soft);
	color: var(--emerald);
	border: 1px solid rgba(16, 185, 129, 0.25);
}

.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}

.nav-list li a {
	display: inline-block;
	padding: 8px 13px;
	border-radius: 9px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--text-muted);
	transition: color 0.15s ease, background 0.15s ease;
}

.nav-list li a:hover,
.nav-list li.current-menu-item a {
	color: var(--text-main);
	background: var(--bg-card);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.theme-toggle,
.mobile-menu-toggle {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--border-subtle);
	background: var(--bg-card);
	color: var(--text-main);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover,
.mobile-menu-toggle:hover {
	border-color: var(--border-strong);
}

[data-theme="dark"] .icon-moon {
	display: none;
}

[data-theme="light"] .icon-sun {
	display: none;
}

.mobile-menu-toggle {
	display: none;
}

/* ==========================================================================
   Downloader Hero & Input Box
   ========================================================================== */
.downloader-hero {
	position: relative;
	padding: 58px 0 64px;
	overflow: hidden;
}

.downloader-hero.is-compact {
	padding: 28px 0 42px;
}

.hero-glow {
	position: absolute;
	top: -120px;
	left: 50%;
	transform: translateX(-50%);
	width: 780px;
	height: 360px;
	background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.downloader-hero .container {
	position: relative;
	z-index: 1;
}

.hero-header {
	text-align: center;
	max-width: 820px;
	margin: 0 auto 30px;
}

.eyebrow-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	border: 1px solid rgba(255, 59, 92, 0.25);
	font-size: 0.79rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 16px;
}

.pulse-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(255, 59, 92, 0.22);
}

.hero-title {
	margin: 0 0 14px;
	font-size: clamp(1.9rem, 4.3vw, 3.05rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.hero-subtitle {
	margin: 0 auto 22px;
	max-width: 670px;
	color: var(--text-muted);
	font-size: 1.05rem;
}

.tool-switcher-pills,
.category-filter-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.mode-pill {
	padding: 7px 15px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	background: var(--bg-card);
	color: var(--text-muted);
	border: 1px solid var(--border-subtle);
	transition: all 0.16s ease;
}

.mode-pill:hover {
	color: var(--text-main);
	border-color: var(--border-strong);
}

.mode-pill.is-active {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	border-color: transparent;
	box-shadow: 0 6px 18px var(--accent-glow);
}

/* Main Downloader Card */
.downloader-card {
	max-width: 900px;
	margin: 0 auto;
	background: var(--bg-card);
	border: 1px solid var(--border-strong);
	border-radius: 20px;
	padding: 22px;
	box-shadow: var(--shadow-card);
}

.downloader-form {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

.input-shell {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--bg-input);
	border: 1.5px solid var(--border-strong);
	border-radius: 14px;
	padding: 6px 8px 6px 16px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-shell:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.input-icon {
	color: var(--text-soft);
	display: inline-flex;
	flex-shrink: 0;
}

.url-input {
	flex: 1;
	width: 100%;
	min-width: 0;
	border: none;
	background: transparent;
	color: var(--text-main);
	font-family: inherit;
	font-size: 1rem;
	padding: 10px 4px;
	outline: none;
}

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

.btn-ghost-util {
	background: transparent;
	border: none;
	color: var(--text-muted);
	font-size: 1rem;
	padding: 6px 8px;
	cursor: pointer;
	border-radius: 8px;
}

.btn-ghost-util:hover {
	background: var(--bg-card);
	color: var(--text-main);
}

.btn-paste {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bg-card);
	color: var(--text-main);
	border: 1px solid var(--border-subtle);
	border-radius: 10px;
	padding: 9px 13px;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-paste:hover {
	border-color: var(--border-strong);
	background: var(--bg-card-hover);
}

.btn-submit-dl {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 26px;
	border: none;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 10px 24px var(--accent-glow);
	transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-submit-dl:hover {
	transform: translateY(-1px);
	filter: brightness(1.06);
}

.btn-submit-dl:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

.trust-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-top: 14px;
	font-size: 0.82rem;
	color: var(--text-muted);
}

.ok-dot {
	color: var(--emerald);
	margin-right: 4px;
}

/* Status Banner */
.status-banner {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 0.92rem;
	font-weight: 500;
}

.status-banner.is-error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: #fca5a5;
}

[data-theme="light"] .status-banner.is-error {
	color: #b91c1c;
}

.status-banner.is-success {
	background: var(--emerald-soft);
	border: 1px solid rgba(16, 185, 129, 0.35);
	color: var(--emerald);
}

/* Skeleton Loader */
.loading-skeleton {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 22px;
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--border-subtle);
}

.skel-media,
.skel-line,
.skel-row {
	background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-card-hover) 50%, var(--bg-input) 75%);
	background-size: 200% 100%;
	animation: y2dShimmer 1.3s infinite linear;
	border-radius: 12px;
}

.skel-media {
	height: 165px;
}

.skel-lines {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.skel-line {
	height: 18px;
}

.skel-line.w-80 { width: 80%; }
.skel-line.w-50 { width: 50%; }

.skel-row {
	height: 46px;
}

@keyframes y2dShimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ==========================================================================
   Live Results Panel
   ========================================================================== */
.results-panel {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--border-subtle);
}

.results-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	align-items: start;
}

.video-preview-card {
	background: var(--bg-input);
	border: 1px solid var(--border-subtle);
	border-radius: 14px;
	overflow: hidden;
}

.thumb-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

.thumb-frame.is-shorts {
	aspect-ratio: 9 / 13;
	max-height: 290px;
}

.thumb-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.badge-type {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 9px;
	border-radius: 6px;
	background: rgba(9, 11, 16, 0.82);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	backdrop-filter: blur(4px);
}

.badge-type.is-shorts-badge {
	background: var(--accent);
}

.badge-duration {
	position: absolute;
	bottom: 10px;
	right: 10px;
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.75rem;
}

.video-meta-info {
	padding: 14px 16px;
}

.video-title {
	margin: 0 0 6px;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.video-author {
	margin: 0 0 12px;
	font-size: 0.83rem;
	color: var(--text-muted);
}

.btn-reset-link {
	width: 100%;
	padding: 8px 12px;
	border-radius: 9px;
	border: 1px solid var(--border-subtle);
	background: var(--bg-card);
	color: var(--text-muted);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
}

.btn-reset-link:hover {
	color: var(--text-main);
	border-color: var(--border-strong);
}

/* Format Tabs & Rows */
.format-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--border-subtle);
	padding-bottom: 12px;
}

.format-tab {
	flex: 1;
	padding: 9px 12px;
	border-radius: 10px;
	border: 1px solid var(--border-subtle);
	background: var(--bg-input);
	color: var(--text-muted);
	font-family: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}

.format-tab.is-active {
	background: var(--accent-soft);
	color: var(--accent);
	border-color: var(--accent);
}

.prepare-progress {
	margin-bottom: 14px;
	padding: 12px 14px;
	background: var(--bg-input);
	border: 1px solid var(--accent);
	border-radius: 12px;
}

.progress-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.84rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.progress-badge {
	font-size: 0.72rem;
	color: var(--emerald);
	background: var(--emerald-soft);
	padding: 2px 8px;
	border-radius: 999px;
}

.progress-track {
	height: 6px;
	border-radius: 999px;
	background: var(--border-subtle);
	overflow: hidden;
}

.progress-bar-fill {
	width: 45%;
	height: 100%;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	border-radius: 999px;
	animation: y2dIndeterminate 1.1s infinite ease-in-out;
}

@keyframes y2dIndeterminate {
	0% { transform: translateX(-80%); width: 35%; }
	50% { width: 65%; }
	100% { transform: translateX(220%); width: 35%; }
}

.engine-notice {
	margin-bottom: 14px;
	padding: 12px 15px;
	border-radius: 11px;
	background: rgba(245, 158, 11, 0.11);
	border: 1px solid rgba(245, 158, 11, 0.35);
	font-size: 0.85rem;
	color: var(--text-main);
}

.format-list {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.format-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 14px;
	background: var(--bg-input);
	border: 1px solid var(--border-subtle);
	border-radius: 12px;
	transition: border-color 0.15s ease;
}

.format-row:hover {
	border-color: var(--border-strong);
}

.format-info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
}

.format-quality {
	font-weight: 700;
	font-size: 0.95rem;
}

.format-ext {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.74rem;
	padding: 2px 7px;
	border-radius: 6px;
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	color: var(--text-muted);
}

.format-badge {
	font-size: 0.73rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--emerald-soft);
	color: var(--emerald);
}

.format-size {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.8rem;
	color: var(--text-muted);
}

.btn-dl-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 9px;
	border: none;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-dl-row:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.btn-dl-row:disabled {
	opacity: 0.6;
	cursor: wait;
}

.thumb-download-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.thumb-dl-card {
	background: var(--bg-input);
	border: 1px solid var(--border-subtle);
	border-radius: 12px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
}

.thumb-dl-meta strong {
	display: block;
	font-size: 0.9rem;
}

.thumb-dl-meta span {
	font-size: 0.78rem;
	color: var(--text-muted);
	font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Content Sections, Suite Cards, Comparison Table & FAQs
   ========================================================================== */
.section-block {
	padding: 68px 0;
}

.section-alt {
	background: var(--bg-alt);
	border-top: 1px solid var(--border-subtle);
	border-bottom: 1px solid var(--border-subtle);
}

.section-head {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 40px;
}

.section-head-inline {
	text-align: left;
	max-width: none;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}

.section-kicker {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	margin-bottom: 8px;
}

.section-title {
	margin: 0 0 10px;
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.22;
}

.section-sub {
	margin: 0;
	color: var(--text-muted);
}

.suite-grid,
.benefits-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.suite-card,
.benefit-box,
.step-card,
.guide-card {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: 16px;
	padding: 24px;
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.suite-card:hover,
.guide-card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
}

.suite-icon {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	margin-bottom: 14px;
	background: var(--accent-soft);
}

.suite-card h3,
.benefit-box h3,
.step-card h3 {
	margin: 0 0 8px;
	font-size: 1.08rem;
	font-weight: 700;
}

.suite-card p,
.benefit-box p,
.step-card p {
	margin: 0 0 14px;
	font-size: 0.92rem;
	color: var(--text-muted);
}

.benefit-box p,
.step-card p {
	margin-bottom: 0;
}

.suite-cta {
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--accent);
}

/* 3-Step Cards */
.steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.step-num {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

/* Comparison Table */
.compare-table-wrap {
	max-width: 860px;
	margin: 0 auto;
	overflow-x: auto;
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: 16px;
}

.compare-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.compare-table th,
.compare-table td {
	padding: 16px 20px;
	border-bottom: 1px solid var(--border-subtle);
	font-size: 0.94rem;
}

.compare-table tr:last-child td {
	border-bottom: none;
}

.compare-table th {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
}

.compare-table .col-highlight {
	background: var(--accent-soft);
}

.yes-pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--emerald-soft);
	color: var(--emerald);
	font-weight: 700;
	font-size: 0.82rem;
}

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

/* FAQ Accordion */
.faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.faq-item {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: 14px;
	overflow: hidden;
}

.faq-question {
	list-style: none;
	padding: 18px 22px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.faq-question::-webkit-details-marker {
	display: none;
}

.faq-chevron {
	font-size: 1.3rem;
	color: var(--accent);
	transition: transform 0.18s ease;
}

.faq-item[open] .faq-chevron {
	transform: rotate(45deg);
}

.faq-answer {
	padding: 0 22px 18px;
	color: var(--text-muted);
	font-size: 0.95rem;
}

.faq-answer p {
	margin: 0;
}

/* Guides & Blog */
.guides-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.guide-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.guide-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.78rem;
	margin-bottom: 12px;
}

.guide-cat-pill {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 700;
}

.guide-read-time {
	color: var(--text-soft);
}

.guide-card-title {
	margin: 0 0 10px;
	font-size: 1.1rem;
	line-height: 1.38;
}

.guide-card-excerpt {
	margin: 0 0 16px;
	color: var(--text-muted);
	font-size: 0.92rem;
	flex: 1;
}

.guide-read-link {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--accent);
}

.btn-outline-sm {
	padding: 9px 16px;
	border-radius: 10px;
	border: 1px solid var(--border-strong);
	font-size: 0.88rem;
	font-weight: 700;
	white-space: nowrap;
}

.btn-outline-sm:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* Single Article & Legal Pages */
.page-banner,
.article-header {
	padding: 48px 0 36px;
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border-subtle);
}

.page-banner {
	text-align: center;
}

.banner-title,
.article-title {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 3.6vw, 2.5rem);
	font-weight: 800;
	line-height: 1.2;
}

.banner-sub {
	margin: 0 auto 20px;
	max-width: 640px;
	color: var(--text-muted);
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.84rem;
	color: var(--text-muted);
	margin-bottom: 14px;
}

.breadcrumbs a:hover {
	color: var(--accent);
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.86rem;
	color: var(--text-muted);
}

.article-layout {
	display: grid;
	grid-template-columns: 1fr 330px;
	gap: 28px;
	padding: 44px 20px 68px;
	align-items: start;
}

.prose-card {
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	border-radius: 18px;
	padding: 32px;
}

.prose-card h2 {
	margin: 28px 0 12px;
	font-size: 1.4rem;
}

.prose-card h2:first-child {
	margin-top: 0;
}

.prose-card p,
.prose-card li {
	color: var(--text-muted);
	font-size: 1.01rem;
}

.prose-card a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose-card code {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.88em;
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--bg-input);
	color: var(--text-main);
}

.sticky-cta-box {
	position: sticky;
	top: 88px;
	background: var(--bg-card);
	border: 1px solid var(--border-strong);
	border-radius: 18px;
	padding: 24px;
}

.sticky-cta-box h3 {
	margin: 0 0 8px;
}

.sticky-cta-box p {
	margin: 0 0 16px;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.sidebar-tool-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sidebar-sublink {
	padding: 9px 12px;
	border-radius: 9px;
	background: var(--bg-input);
	border: 1px solid var(--border-subtle);
	font-size: 0.86rem;
	font-weight: 600;
}

.sidebar-sublink:hover {
	border-color: var(--accent);
}

/* Clean Static Sponsor Slot */
.clean-sponsor-slot {
	max-width: 900px;
	margin: 22px auto 0;
	padding: 14px;
	border-radius: 12px;
	background: var(--bg-card);
	border: 1px dashed var(--border-strong);
	text-align: center;
	min-height: 96px;
}

.sponsor-label {
	display: block;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-soft);
	margin-bottom: 6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--bg-alt);
	border-top: 1px solid var(--border-subtle);
	padding: 58px 0 32px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 38px;
	border-bottom: 1px solid var(--border-subtle);
}

.footer-desc {
	color: var(--text-muted);
	font-size: 0.92rem;
	margin: 12px 0 16px;
	max-width: 320px;
}

.trust-badges-mini {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mini-badge {
	font-size: 0.74rem;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--bg-card);
	border: 1px solid var(--border-subtle);
	color: var(--text-muted);
}

.footer-heading {
	margin: 0 0 14px;
	font-size: 0.92rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.footer-links a {
	font-size: 0.9rem;
	color: var(--text-muted);
}

.footer-links a:hover {
	color: var(--accent);
}

.footer-bottom {
	padding-top: 24px;
	text-align: center;
	font-size: 0.84rem;
	color: var(--text-muted);
}

.footer-bottom p {
	margin: 4px 0;
}

.footer-disclaimer {
	font-size: 0.78rem;
	color: var(--text-soft);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
	.suite-grid,
	.benefits-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.guides-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.article-layout {
		grid-template-columns: 1fr;
	}
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
	.mobile-menu-toggle {
		display: inline-flex;
	}
	.main-nav {
		display: none;
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		background: var(--bg-card);
		border-bottom: 1px solid var(--border-strong);
		padding: 14px 20px;
	}
	.main-nav.is-open {
		display: block;
	}
	.nav-list {
		flex-direction: column;
		align-items: stretch;
	}
}

@media (max-width: 760px) {
	.downloader-hero {
		padding: 36px 0 46px;
	}
	.downloader-card {
		padding: 16px;
	}
	.downloader-form {
		flex-direction: column;
	}
	.btn-submit-dl {
		width: 100%;
		justify-content: center;
	}
	.results-grid,
	.loading-skeleton {
		grid-template-columns: 1fr;
	}
	.steps-grid,
	.suite-grid,
	.benefits-grid,
	.guides-grid,
	.thumb-download-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}
	.section-head-inline {
		flex-direction: column;
		align-items: flex-start;
	}
}
