/**
 * Amplifi Tools — directory + single-tool styling.
 *
 * Loaded site-wide (see inc/tools.php for why) but every rule is scoped to
 * .amplifi-tools or .amplifi-tool-single, so it is inert on every other page.
 *
 * Written as plain CSS on purpose: the theme's Tailwind build is generated
 * on-server from a scan of the PHP files, so a template that leans on
 * utilities absent from the current main.css renders unstyled until someone
 * remembers to rebuild. This file has no such dependency.
 */

/* ---------------------------------------------------------------- shared */

.amplifi-tools,
.amplifi-tool-single {
	--tool-accent: #78ea78;
	--tool-accent-rgb: 120, 234, 120;
}

.amplifi-tools .tools-wrap,
.amplifi-tool-single .tools-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.amplifi-tools .tools-hero,
.amplifi-tool-single .tools-hero {
	position: relative;
	padding: 170px 0 56px;
	overflow: hidden;
}

@media (max-width: 780px) {
	.amplifi-tools .tools-hero,
	.amplifi-tool-single .tools-hero {
		padding: 140px 0 40px;
	}
}

.amplifi-tools .tools-hero::before,
.amplifi-tool-single .tools-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(60% 50% at 50% 0%, rgba(var(--tool-accent-rgb), 0.13) 0%, rgba(0, 0, 0, 0) 70%);
}

.amplifi-tools .tools-hero > *,
.amplifi-tool-single .tools-hero > * {
	position: relative;
}

.tools-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tool-accent);
	margin-bottom: 26px;
}

.tools-eyebrow .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tool-accent);
	box-shadow: 0 0 8px rgba(var(--tool-accent-rgb), 0.7);
	flex-shrink: 0;
}

.tools-title {
	font-size: clamp(2.4rem, 6vw, 4rem);
	font-weight: 300;
	line-height: 1.02;
	letter-spacing: -0.04em;
	color: #fff;
	margin: 0;
}

.tools-title .accent {
	color: var(--tool-accent);
}

.tools-lede {
	max-width: 640px;
	margin: 26px 0 0;
	font-size: 1.08rem;
	line-height: 1.7;
	color: #b9b9b9;
}

/* ------------------------------------------------------- filter chip row */

.tools-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 38px 0 0;
}

.tools-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.02);
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tools-chip:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.06);
}

.tools-chip.is-active {
	color: #000;
	background: var(--tool-accent);
	border-color: var(--tool-accent);
}

.tools-chip .count {
	font-size: 11px;
	opacity: 0.65;
}

/* ------------------------------------------------------------- card grid */

.tools-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	padding: 46px 0 90px;
}

@media (max-width: 1000px) {
	.tools-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 660px) {
	.tools-grid {
		grid-template-columns: 1fr;
		gap: 18px;
		padding-bottom: 64px;
	}
}

.tool-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 236px;
	padding: 26px;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(255, 255, 255, 0.02);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	isolation: isolate;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Cards may lift on hover. Buttons may not — house rule. */
.tool-card:hover {
	transform: translateY(-6px);
	border-color: rgba(var(--tool-accent-rgb), 0.42);
	box-shadow: 0 24px 60px -32px rgba(var(--tool-accent-rgb), 0.55);
}

.tool-card::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 0;
	background: var(--tool-accent);
	transition: width 0.35s ease;
	z-index: 3;
}

.tool-card:hover::before {
	width: 100%;
}

.tool-mesh {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(var(--tool-accent-rgb), 0.16) 0%, rgba(0, 0, 0, 0) 62%),
		radial-gradient(90% 70% at 0% 100%, rgba(var(--tool-accent-rgb), 0.07) 0%, rgba(0, 0, 0, 0) 60%);
}

.tool-mesh::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.5;
	background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
	background-size: 15px 15px;
}

/* Watermark: a soft corner hint only. Verified 2026-09-02 — at 122px/0.075
   the icon's hard edges cut across the meta row and read as a rendering
   artifact rather than texture, so it is smaller, fainter, and bled further
   off the corner. */
.tool-watermark {
	position: absolute;
	right: -26px;
	bottom: -30px;
	z-index: 1;
	font-size: 104px;
	line-height: 1;
	color: rgba(var(--tool-accent-rgb), 0.05);
	pointer-events: none;
}

.tool-card > *:not(.tool-mesh):not(.tool-watermark) {
	position: relative;
	z-index: 2;
}

.tool-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.tool-cat {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	color: var(--tool-accent);
}

.tool-oss-flag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(var(--tool-accent-rgb), 0.3);
	background: rgba(var(--tool-accent-rgb), 0.07);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--tool-accent);
	white-space: nowrap;
}

.tool-card-name {
	font-size: 1.42rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: #fff;
	margin: 0;
	transition: color 0.25s ease;
}

.tool-card:hover .tool-card-name {
	color: var(--tool-accent);
}

.tool-card-tagline {
	margin: 11px 0 0;
	font-size: 0.94rem;
	line-height: 1.6;
	color: #9a9a9a;
}

.tool-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 20px;
	font-size: 12px;
	color: #6f6f6f;
}

.tool-card-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.tool-card-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tool-card-go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tool-accent);
	font-weight: 600;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	white-space: nowrap;
}

.tool-card:hover .tool-card-go {
	opacity: 1;
	transform: translateX(0);
}

@media (hover: none) {
	.tool-card-go {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------ empty state */

.tools-empty {
	padding: 60px 0 110px;
	text-align: center;
	color: #7d7d7d;
}

.tools-empty i {
	font-size: 46px;
	color: rgba(255, 255, 255, 0.16);
	margin-bottom: 18px;
	display: block;
}

/* ------------------------------------------------- single tool: hero head */

.amplifi-tool-single .tool-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #8a8a8a;
	text-decoration: none;
	margin-bottom: 26px;
	transition: color 0.2s ease;
}

.amplifi-tool-single .tool-back:hover {
	color: var(--tool-accent);
}

.tool-head {
	display: flex;
	align-items: flex-start;
	gap: 22px;
	flex-wrap: wrap;
}

.tool-mark {
	flex-shrink: 0;
	width: 66px;
	height: 66px;
	border-radius: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 27px;
	color: var(--tool-accent);
	border: 1px solid rgba(var(--tool-accent-rgb), 0.28);
	background: rgba(var(--tool-accent-rgb), 0.07);
}

.tool-head-text {
	flex: 1 1 320px;
	min-width: 0;
}

.tool-name {
	font-size: clamp(2.1rem, 5vw, 3.15rem);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.035em;
	color: #fff;
	margin: 0;
}

.tool-tagline {
	margin: 14px 0 0;
	font-size: 1.13rem;
	line-height: 1.65;
	color: #b9b9b9;
	max-width: 620px;
}

.tool-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
	margin-top: 30px;
}

/* Buttons: colour/border changes only on hover. No transform — house rule. */
.tool-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 26px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* The primary action stays MINT on every tool page, deliberately NOT the
   category accent. Site-wide, mint is amplifi's action colour; a coral or
   lavender primary button reads as a warning state and breaks the CTA
   language shared with every other page. The accent still carries category
   identity through the eyebrow, icon, card hover, rail, and list markers. */
.tool-btn-primary {
	background: #78ea78;
	color: #000;
}

.tool-btn-primary:hover {
	background: #fff;
}

.tool-btn-ghost {
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.tool-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------- single tool: layout */

.tool-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 316px;
	gap: 54px;
	padding: 8px 0 96px;
	align-items: start;
}

@media (max-width: 940px) {
	.tool-body {
		grid-template-columns: 1fr;
		gap: 40px;
		padding-bottom: 68px;
	}
}

/* --------------------------------------------------- single tool: content */

.tool-prose {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #c6c6c6;
}

.tool-prose > *:first-child {
	margin-top: 0;
}

.tool-prose h2 {
	font-size: 1.72rem;
	font-weight: 300;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 52px 0 18px;
	line-height: 1.25;
}

.tool-prose h3 {
	font-size: 1.24rem;
	font-weight: 500;
	color: #fff;
	margin: 38px 0 14px;
	line-height: 1.3;
}

.tool-prose p {
	margin: 0 0 20px;
}

.tool-prose ul,
.tool-prose ol {
	margin: 0 0 22px;
	padding-left: 22px;
}

.tool-prose ul {
	list-style: disc;
}

.tool-prose ol {
	list-style: decimal;
}

.tool-prose li {
	margin: 0 0 10px;
	padding-left: 4px;
}

.tool-prose li::marker {
	color: var(--tool-accent);
}

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

.tool-prose strong {
	color: #fff;
	font-weight: 600;
}

.tool-prose code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.88em;
	padding: 2px 7px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.07);
	color: var(--tool-accent);
}

.tool-prose blockquote {
	margin: 30px 0;
	padding: 4px 0 4px 22px;
	border-left: 2px solid rgba(var(--tool-accent-rgb), 0.5);
	color: #dcdcdc;
	font-size: 1.1rem;
}

.tool-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin: 30px 0;
}

.tool-prose hr {
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin: 44px 0;
}

/* "Our take" pull-out */
.tool-take {
	margin: 0 0 44px;
	padding: 26px 28px;
	border-radius: 16px;
	border: 1px solid rgba(var(--tool-accent-rgb), 0.22);
	background: rgba(var(--tool-accent-rgb), 0.045);
}

.tool-take-label {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tool-accent);
	margin-bottom: 12px;
}

.tool-take p {
	margin: 0;
	font-size: 1.06rem;
	line-height: 1.72;
	color: #dcdcdc;
}

/* ------------------------------------------------------ single tool: rail */

.tool-rail {
	position: sticky;
	top: 108px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (max-width: 940px) {
	.tool-rail {
		position: static;
	}
}

.tool-panel {
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(255, 255, 255, 0.02);
	padding: 22px 24px;
}

.tool-panel-title {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #7a7a7a;
	margin: 0 0 16px;
}

.tool-spec {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 13.5px;
}

.tool-spec:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.tool-spec dt {
	color: #7f7f7f;
	white-space: nowrap;
	margin: 0;
}

.tool-spec dd {
	color: #eaeaea;
	font-weight: 500;
	text-align: right;
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.tool-spec dd .sub {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: #6d6d6d;
	margin-top: 3px;
}

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

.tool-link {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 0;
	font-size: 14px;
	color: #d2d2d2;
	text-decoration: none;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	transition: color 0.2s ease;
}

.tool-link:first-child {
	border-top: 0;
}

.tool-link i:first-child {
	width: 17px;
	text-align: center;
	color: var(--tool-accent);
}

.tool-link .ext {
	margin-left: auto;
	font-size: 11px;
	color: #5f5f5f;
	transition: color 0.2s ease;
}

.tool-link:hover {
	color: var(--tool-accent);
}

.tool-link:hover .ext {
	color: var(--tool-accent);
}

/* Verified-on stamp: every figure on the page carries its window. */
.tool-stamp {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 11.5px;
	line-height: 1.55;
	color: #6d6d6d;
	padding: 15px 18px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.015);
}

.tool-stamp i {
	color: #5c5c5c;
	margin-top: 2px;
}

/* --------------------------------------------------- single tool: related */

.tool-more {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 56px 0 96px;
}

.tool-more-title {
	font-size: 1.5rem;
	font-weight: 300;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 28px;
}

.tool-more .tools-grid {
	padding: 0;
}
