/**
 * Linkstonic — /tool/ hub page (premium layout)
 * Loaded only from tool/index.html
 */

.tool-hub {
	overflow-x: hidden;
}

/* ── Hero ── */
.tool-hero {
	position: relative;
	color: #f8fafc;
	padding-bottom: 2.5rem;
}

.tool-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 90% 60% at 50% -30%, rgba(22, 163, 74, 0.35), transparent 55%),
		radial-gradient(ellipse 60% 45% at 100% 20%, rgba(59, 130, 246, 0.12), transparent 50%),
		radial-gradient(ellipse 50% 40% at 0% 60%, rgba(22, 163, 74, 0.08), transparent 45%),
		linear-gradient(165deg, #0b1220 0%, #111827 38%, #0f172a 100%);
	z-index: 0;
}

.tool-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, #000 15%, transparent 72%);
	-webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 20%, #000 15%, transparent 72%);
	z-index: 0;
	pointer-events: none;
}

.tool-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 72rem;
	margin: 0 auto;
	padding: 6.5rem 1.5rem 2rem;
}

@media (min-width: 640px) {
	.tool-hero-inner {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

.tool-hero-breadcrumb {
	font-size: 0.8125rem;
	margin-bottom: 1.5rem;
}

.tool-hero-breadcrumb a {
	color: rgba(248, 250, 252, 0.55);
	text-decoration: none;
	transition: color 0.15s ease;
}

.tool-hero-breadcrumb a:hover {
	color: #fff;
}

.tool-hero-breadcrumb span[aria-hidden="true"] {
	margin: 0 0.5rem;
	color: rgba(248, 250, 252, 0.35);
}

.tool-hero-breadcrumb .current {
	color: rgba(248, 250, 252, 0.95);
	font-weight: 500;
}

.tool-hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(52, 211, 153, 0.95);
	margin-bottom: 1rem;
}

.tool-hero-kicker-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}

/* Override custom.css global h1 { color: #000 !important } on tool hub */
.tool-hero h1#tool-hub-title,
#tool-hub-title {
	color: #ffffff !important;
	font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.035em !important;
	line-height: 1.1 !important;
	margin: 0 0 1.25rem !important;
	max-width: 18ch;
}

@media (min-width: 768px) {
	.tool-hero h1#tool-hub-title,
	#tool-hub-title {
		max-width: 22ch;
	}
}

.tool-hero-lead {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: rgba(226, 232, 240, 0.88);
	max-width: 42rem;
	margin: 0 0 1.75rem;
}

.tool-hero-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.tool-hero-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.85rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(248, 250, 252, 0.9);
}

.tool-hero-pill em {
	font-style: normal;
	color: #6ee7b7;
	margin-right: 0.35rem;
}

.tool-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2rem;
	padding-top: 0.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-hero-stat {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.tool-hero-stat-val {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.tool-hero-stat-label {
	font-size: 0.75rem;
	color: rgba(148, 163, 184, 0.95);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tool-hero-cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: 1.75rem;
}

.tool-hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.35rem;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 700;
	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 24px rgba(22, 163, 74, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-hero-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 32px rgba(22, 163, 74, 0.45);
	color: #fff;
}

.tool-hero-cta-secondary {
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(226, 232, 240, 0.85);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	padding-bottom: 2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.tool-hero-cta-secondary:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
}

/* Sticky category nav (below hero; offset = fixed site nav height) */
.tool-cat-nav-wrap {
	position: sticky;
	top: 64px;
	z-index: 40;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	margin-top: -1px;
}

@media (min-width: 1024px) {
	.tool-cat-nav-wrap {
		top: 72px;
	}
}

.tool-cat-nav {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0.65rem 1.5rem;
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

.tool-cat-nav::-webkit-scrollbar {
	height: 4px;
}

.tool-cat-nav::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 4px;
}

.tool-cat-nav a {
	flex-shrink: 0;
	padding: 0.45rem 0.9rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(226, 232, 240, 0.75);
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tool-cat-nav a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* ── Body & category sections ── */
.tool-hub-body {
	background: #f8fafc;
}

.tool-cat-section {
	scroll-margin-top: 7rem;
}

.tool-cat-section:nth-child(even) {
	background: #f1f5f9;
}

.tool-cat-inner {
	max-width: 72rem;
	margin: 0 auto;
	padding: 3rem 1.5rem 3.5rem;
}

.tool-cat-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.tool-cat-title-row {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.tool-cat-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: linear-gradient(145deg, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0.06));
	border: 1px solid rgba(22, 163, 74, 0.2);
	color: #15803d;
}

.tool-cat-icon svg {
	width: 24px;
	height: 24px;
}

.tool-cat-title {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #0f172a;
}

.tool-cat-desc {
	margin: 0.35rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #64748b;
	max-width: 36rem;
}

.tool-cat-count {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
	padding: 0.35rem 0.65rem;
	border-radius: 8px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Tool cards grid */
.tool-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.tool-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.tool-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tool-card {
	display: flex;
	flex-direction: column;
	position: relative;
	padding: 1.35rem 1.35rem 1.25rem;
	border-radius: 1rem;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.07);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tool-card:hover {
	border-color: rgba(22, 163, 74, 0.35);
	box-shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(22, 163, 74, 0.08);
	transform: translateY(-2px);
}

.tool-card-tag {
	display: inline-block;
	align-self: flex-start;
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #16a34a;
	margin-bottom: 0.5rem;
}

.tool-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
	line-height: 1.3;
	transition: color 0.15s ease;
}

.tool-card:hover h3 {
	color: #15803d;
}

.tool-card p {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: #64748b;
	flex: 1 1 auto;
}

.tool-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(15, 23, 42, 0.06);
	font-size: 0.8125rem;
	font-weight: 700;
	color: #16a34a;
}

.tool-card-footer span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-footer span {
	transform: translateX(3px);
}

/* Hub prose sections (why / faq / cta) — spacing */
.tool-hub-prose {
	max-width: 48rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.tool-hub-cta-band {
	max-width: 72rem;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.5rem 4rem;
}
