/* Team of Monkeys: B2B Reddit Ads agency pages (home, pricing, about) */

.agency-band {
	padding: 110px 50px;
	background: var(--bg-section);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.agency-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.agency-eyebrow {
	display: block;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 12px;
	margin-bottom: 18px;
}

.agency-band h2 {
	font-size: 42px;
	letter-spacing: -1.5px;
	margin-bottom: 20px;
	max-width: 820px;
}

.agency-band p.agency-lead {
	color: var(--text-muted);
	font-size: 17px;
	line-height: 1.85;
	max-width: 820px;
	margin-bottom: 22px;
}

/* Industry cards */
.industry-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 45px;
}

.industry-card {
	padding: 28px 26px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.industry-card:hover {
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.05);
	transform: translateY(-4px);
}

.industry-card h3 {
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--text-light);
}

.industry-card p {
	color: var(--text-muted);
	font-size: 14.5px;
	line-height: 1.7;
}

/* Numbered steps */
.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	margin-top: 45px;
}

.step {
	padding: 28px 26px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
}

.step-num {
	font-family: 'Courier New', Courier, monospace;
	font-size: 12px;
	letter-spacing: 2.5px;
	color: var(--accent);
	text-transform: uppercase;
	margin-bottom: 14px;
}

.step h3 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--text-light);
}

.step p {
	color: var(--text-muted);
	font-size: 14.5px;
	line-height: 1.7;
}

/* Closing call to action */
.cta-band {
	padding: 100px 50px;
	background: linear-gradient(135deg, rgba(255, 51, 102, 0.14), rgba(255, 51, 102, 0.03)), var(--bg-section);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	text-align: center;
}

.cta-band h2 {
	font-size: 40px;
	letter-spacing: -1.5px;
	margin-bottom: 18px;
}

.cta-band p {
	color: var(--text-muted);
	font-size: 17px;
	line-height: 1.8;
	max-width: 640px;
	margin: 0 auto 36px;
}

/* Pricing plans */
.plan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 28px;
	margin-top: 45px;
}

.plan-card {
	padding: 38px 34px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
}

.plan-card.is-featured {
	border-color: var(--accent);
	background: rgba(255, 51, 102, 0.05);
}

.plan-name {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--text-light);
}

.plan-tagline {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 26px;
}

.plan-fee {
	font-size: 56px;
	font-weight: 900;
	line-height: 1;
	color: var(--accent);
	margin-bottom: 10px;
}

.plan-fee-unit {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--text-muted);
	margin-bottom: 26px;
}

.plan-equiv {
	padding: 16px 18px;
	background: rgba(255, 255, 255, 0.03);
	border-left: 3px solid var(--accent);
	font-size: 14.5px;
	line-height: 1.7;
	color: #cfcfcf;
	margin-bottom: 26px;
}

.plan-list {
	list-style: none;
	margin: 0;
}

.plan-list li {
	color: var(--text-muted);
	font-size: 14.5px;
	line-height: 1.7;
	padding: 9px 0 9px 24px;
	position: relative;
}

.plan-list li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	color: var(--accent);
}

/* Worked example strip */
.math-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	margin: 30px 0 10px;
}

.math-cell {
	padding: 22px 20px;
	background: #0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
}

.math-label {
	font-family: 'Courier New', Courier, monospace;
	font-size: 11.5px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 10px;
}

.math-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-light);
	margin-bottom: 6px;
}

.math-note {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--text-muted);
}

/* ── Chart: where a total budget goes ── */
.chart-card {
	background: #0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 34px 32px 30px;
	margin-top: 45px;
	color: #ffffff;
}

.chart-card h3 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #ffffff;
}

.chart-sub {
	font-size: 14px;
	line-height: 1.7;
	color: #c3c2b7;
	margin-bottom: 24px;
}

.chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin-bottom: 28px;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13.5px;
	color: #c3c2b7;
}

.legend-swatch {
	width: 14px;
	height: 14px;
	border-radius: 2px;
	flex-shrink: 0;
}

.swatch-spend { background: #3987e5; }
.swatch-fee { background: #ff3366; }

.bar-row {
	display: grid;
	grid-template-columns: 148px 1fr;
	align-items: center;
	gap: 18px;
	margin-bottom: 26px;
}

.bar-label {
	font-size: 13.5px;
	line-height: 1.5;
	color: #ffffff;
	text-align: right;
}

.bar-label span {
	display: block;
	font-size: 12px;
	color: #898781;
	margin-top: 3px;
}

.bar-track {
	display: flex;
	gap: 2px;
	height: 24px;
	background:
		repeating-linear-gradient(to right, #2c2c2a 0 1px, transparent 1px 25%);
	background-size: 100% 100%;
}

.seg {
	height: 100%;
	display: flex;
	align-items: center;
	padding: 0 9px;
	cursor: default;
}

.seg:focus {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.seg:last-child {
	border-radius: 0 4px 4px 0;
}

.seg-spend { background: #3987e5; }
.seg-fee { background: #ff3366; }

.seg-label {
	font-size: 12px;
	font-weight: 700;
	color: #0b0b0b;
	white-space: nowrap;
}

.chart-axis {
	display: grid;
	grid-template-columns: 148px 1fr;
	gap: 18px;
	margin-top: 4px;
}

.axis-ticks {
	position: relative;
	height: 20px;
	border-top: 1px solid #383835;
	padding-top: 6px;
}

.axis-tick {
	position: absolute;
	top: 6px;
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
	color: #898781;
	transform: translateX(-50%);
	white-space: nowrap;
}

.axis-tick:first-child { transform: none; }
.axis-tick:last-child { transform: translateX(-100%); }

.chart-tip {
	position: fixed;
	z-index: 2000;
	pointer-events: none;
	background: #000000;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 6px;
	padding: 10px 13px;
	font-size: 13px;
	line-height: 1.5;
	color: #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.15s ease;
	max-width: 260px;
}

.chart-tip.is-visible { opacity: 1; }

.chart-tip .tip-value {
	font-size: 16px;
	font-weight: 700;
	display: block;
}

.chart-tip .tip-name {
	color: #c3c2b7;
	font-size: 12.5px;
}

/* Table twin */
.table-scroll {
	overflow-x: auto;
	max-width: 100%;
}

.table-view {
	width: 100%;
	border-collapse: collapse;
	margin-top: 34px;
	font-size: 14px;
}

.table-view caption {
	text-align: left;
	font-size: 13px;
	color: #898781;
	padding-bottom: 12px;
}

.table-view th,
.table-view td {
	text-align: right;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-variant-numeric: tabular-nums;
}

.table-view th:first-child,
.table-view td:first-child {
	text-align: left;
	font-variant-numeric: normal;
}

.table-view thead th {
	color: #ffffff;
	font-weight: 700;
	border-bottom-color: #383835;
}

.table-view tbody td {
	color: #c3c2b7;
}

.pricing-note {
	color: var(--text-muted);
	font-size: 14.5px;
	line-height: 1.8;
	max-width: 820px;
	margin-top: 34px;
}

@media (max-width: 900px) {
	.agency-band,
	.cta-band {
		padding: 70px 24px;
	}

	/* The base three-column rule is declared after the template's own mobile
	   override, so it wins there and the grid never collapses. Restate it here. */
	.feature-highlights {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.agency-band h2,
	.cta-band h2 {
		font-size: 31px;
	}

	.chart-card {
		padding: 26px 20px 24px;
	}

	.bar-row,
	.chart-axis {
		grid-template-columns: 108px 1fr;
		gap: 12px;
	}
}

@media (max-width: 760px) {
	.seg-label {
		display: none;
	}

	/* Drop the quarter ticks so the remaining labels never collide */
	.axis-tick.tick-quarter {
		display: none;
	}

	.table-view {
		min-width: 520px;
	}
}
