/* ── Section headings ── */
.tools-section {
	margin-bottom: 8px;
}

.tools-section-title {
	font-size: 22px;
	font-weight: 700;
	color: #2c3e50;
	margin: 32px 0 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid #eef4f8;
	position: relative;
}

.tools-section-title:first-of-type {
	margin-top: 0;
}

.tools-section-title::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 52px;
	height: 2px;
	background: linear-gradient(90deg, #3ebfea, #5fd4f8);
	border-radius: 2px;
}

.tools-section .row {
	display: flex;
	flex-wrap: wrap;
}

.tools-section .row > [class*="col-"] {
	display: flex;
	margin-bottom: 28px;
}

/* ── Tool cards ── */
.tool-card {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	border: 1px solid #e8edf2;
	border-radius: 14px;
	padding: 0;
	margin-bottom: 0;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(15, 35, 55, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tool-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #3ebfea, #5fd4f8);
	opacity: 1;
	transition: height 0.25s ease;
}

.tool-card--marketing::before {
	background: linear-gradient(90deg, #a855f7, #c084fc);
}

.tool-card--fitness::before {
	background: linear-gradient(90deg, #10b981, #34d399);
}

.tool-card--business::before {
	background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.tool-card--startup::before {
	background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.tool-card:hover {
	transform: translateY(-4px);
	border-color: #d4edf8;
	box-shadow: 0 12px 32px rgba(62, 191, 234, 0.14);
}

.tool-card:hover::before {
	height: 5px;
}

.tool-card-inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 28px 28px 24px;
}

.tool-card .tool-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	font-size: 24px;
	color: #3ebfea;
	background: linear-gradient(135deg, #eef9fd 0%, #d4f1fc 100%);
	margin-bottom: 18px;
	box-shadow: 0 2px 8px rgba(62, 191, 234, 0.12);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool-card--marketing .tool-icon {
	color: #9333ea;
	background: linear-gradient(135deg, #f5f0ff 0%, #ede4ff 100%);
	box-shadow: 0 2px 8px rgba(147, 51, 234, 0.1);
}

.tool-card--fitness .tool-icon {
	color: #059669;
	background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
	box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
}

.tool-card--business .tool-icon {
	color: #d97706;
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	box-shadow: 0 2px 8px rgba(217, 119, 6, 0.1);
}

.tool-card:hover .tool-icon {
	transform: scale(1.05);
}

.tool-category-label {
	display: inline-block;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 1.2px;
	color: #3ebfea;
	font-weight: 700;
	margin-bottom: 10px;
	padding: 4px 10px;
	background: #eef9fd;
	border-radius: 20px;
}

.tool-card--marketing .tool-category-label {
	color: #9333ea;
	background: #f5f0ff;
}

.tool-card--fitness .tool-category-label {
	color: #059669;
	background: #ecfdf5;
}

.tool-card--business .tool-category-label {
	color: #d97706;
	background: #fffbeb;
}

.tool-card--startup .tool-icon {
	color: #0284c7;
	background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}

.tool-card--startup .tool-category-label {
	color: #0284c7;
	background: #e0f2fe;
}

.tool-card h3 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.3;
}

.tool-card-desc {
	flex: 1;
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.65;
	color: #64748b;
}

.tool-card-footer {
	padding: 0 28px 28px;
	margin-top: auto;
}

.tool-card .btn {
	margin-top: 0;
	border-radius: 8px;
	padding: 10px 22px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.3px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(46, 204, 113, 0.35);
}

.tool-card .btn::after {
	content: ' \2192';
	font-size: 13px;
	opacity: 0.85;
}

.tool-coming-soon {
	opacity: 0.7;
}

.tool-coming-soon:hover {
	transform: none;
	box-shadow: 0 4px 20px rgba(15, 35, 55, 0.06);
}

.tool-coming-soon .badge {
	background: #94a3b8;
	font-size: 10px;
	padding: 4px 8px;
	border-radius: 10px;
	vertical-align: middle;
	margin-left: 6px;
}

/* ── Calculator pages ── */
.tool-calculator-card {
	background: #fff;
	border: 1px solid #e8edf2;
	border-radius: 14px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 4px 20px rgba(15, 35, 55, 0.05);
}

.tool-result-box {
	background: linear-gradient(180deg, #f8fcfe 0%, #f0f9fc 100%);
	border: 1px solid #d4edf8;
	border-radius: 12px;
	padding: 24px;
	margin-top: 20px;
}

.tool-result-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #e8f4f8;
}

.tool-result-row:last-child {
	border-bottom: none;
	font-weight: 700;
	font-size: 18px;
	color: #2c3e50;
}

.tool-result-label {
	color: #666;
}

.tool-result-value {
	font-weight: 600;
	color: #2c3e50;
}

.tool-example-box {
	background: #fafbfc;
	border-left: 4px solid #3ebfea;
	border-radius: 0 8px 8px 0;
	padding: 16px 20px;
	margin-top: 24px;
}

.tool-disclaimer {
	font-size: 13px;
	color: #888;
	margin-top: 16px;
}

.tool-mode-toggle {
	margin-bottom: 20px;
}

.tool-mode-toggle label {
	font-weight: normal;
	margin-right: 20px;
	cursor: pointer;
}

.tool-milestone-table {
	width: 100%;
	margin-top: 16px;
	border-collapse: collapse;
}

.tool-milestone-table th,
.tool-milestone-table td {
	padding: 8px 12px;
	border-bottom: 1px solid #e8f4f8;
	text-align: left;
}

.tool-milestone-table th {
	color: #666;
	font-weight: 600;
}

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

.tool-milestone-goal td {
	font-weight: 700;
	color: #2c3e50;
}

.tool-post-output {
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 20px;
	white-space: pre-wrap;
	font-size: 15px;
	line-height: 1.6;
	color: #2c3e50;
	min-height: 160px;
}

.tool-post-actions {
	margin-top: 16px;
}

.tool-post-actions .btn {
	margin-right: 8px;
	margin-bottom: 8px;
}

.tool-copy-status {
	font-size: 13px;
	color: #3ebfea;
	margin-top: 10px;
}

.tool-checklist-progress {
	background: #fff;
	border: 1px solid #e8edf2;
	border-radius: 14px;
	padding: 24px 28px;
	margin-bottom: 24px;
	box-shadow: 0 4px 20px rgba(15, 35, 55, 0.05);
}

.tool-checklist-progress-bar {
	height: 10px;
	background: #e8f4f8;
	border-radius: 999px;
	overflow: hidden;
	margin: 12px 0 8px;
}

.tool-checklist-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #3ebfea, #2ecc71);
	border-radius: 999px;
	transition: width 0.3s ease;
	width: 0;
}

.tool-checklist-progress-text {
	font-size: 14px;
	color: #64748b;
}

.tool-checklist-section {
	background: #fff;
	border: 1px solid #e8edf2;
	border-radius: 14px;
	padding: 24px 28px;
	margin-bottom: 20px;
	box-shadow: 0 4px 20px rgba(15, 35, 55, 0.04);
}

.tool-checklist-section h3 {
	margin: 0 0 16px;
	font-size: 18px;
	color: #1e293b;
}

.tool-checklist-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
}

.tool-checklist-item:last-child {
	border-bottom: none;
}

.tool-checklist-item input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	cursor: pointer;
	flex-shrink: 0;
}

.tool-checklist-item.is-done label {
	color: #94a3b8;
	text-decoration: line-through;
}

.tool-checklist-item label {
	font-weight: normal;
	margin: 0;
	cursor: pointer;
	line-height: 1.5;
	color: #334155;
}

.tool-checklist-actions {
	margin-bottom: 24px;
}

.tool-checklist-actions .btn {
	margin-right: 8px;
	margin-bottom: 8px;
}

.tool-result-breakdown {
	margin-top: 16px;
}

.tool-result-breakdown table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tool-result-breakdown th,
.tool-result-breakdown td {
	padding: 8px 0;
	border-bottom: 1px solid #e8f4f8;
	text-align: left;
}

.tool-result-breakdown th {
	color: #64748b;
	font-weight: 600;
}

.tool-result-breakdown td:last-child {
	text-align: right;
	font-weight: 600;
}

@media print {
	.navbar,
	footer,
	.tool-checklist-actions,
	.gray-container,
	.margintop20,
	.inner-head,
	.btn,
	.modal {
		display: none !important;
	}

	.tool-checklist-section {
		break-inside: avoid;
		box-shadow: none;
		border: 1px solid #ddd;
	}
}

@media (max-width: 767px) {
	.tools-section .row {
		display: block;
	}

	.tools-section .row > [class*="col-"] {
		display: block;
	}

	.tool-card-inner {
		padding: 22px 20px 18px;
	}

	.tool-card-footer {
		padding: 0 20px 22px;
	}
}
