/* ==========================================================================
   Protoola — Components
   Shared component library. The Protoola Tools plugin renders markup that
   consumes these classes; the plugin ships no presentation of its own.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 32px;
	border: none;
	border-radius: 50px;
	background: var(--protoola-gradient);
	color: #fff;
	font-weight: 600;
	box-shadow: 0 8px 20px -6px rgba(63, 94, 251, 0.4);
	transition: transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 16px 28px -8px rgba(63, 94, 251, 0.5);
}

.btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.btn-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	border: none;
	border-radius: 40px;
	font-size: 0.85rem;
	font-weight: 600;
	transition: opacity 0.2s, transform 0.2s, background 0.2s, color 0.2s;
}

.btn-run {
	background: var(--protoola-gradient);
	color: #fff;
}

.btn-run:hover {
	opacity: 0.92;
	transform: scale(1.02);
}

.btn-copy {
	background: var(--input-bg);
	border: 1px solid var(--card-border);
	color: var(--text-primary);
}

.btn-copy:hover {
	background: var(--protoola-brand);
	color: #fff;
}

.btn-clear {
	background: transparent;
	border: 1px solid var(--protoola-brand-2);
	color: var(--protoola-brand-2);
}

.btn-clear:hover {
	background: var(--protoola-brand-2);
	color: #fff;
}

.btn-action:disabled,
.btn-primary:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.glass-card {
	background: var(--card-bg);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid var(--card-border-soft);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-hover);
}

.card,
.info-card,
.legal-card {
	padding: 32px;
	background: var(--card-solid);
	border: 1px solid var(--card-border);
	border-radius: var(--radius-md);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.dark .card,
body.dark .info-card,
body.dark .legal-card {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card-icon {
	margin-bottom: 16px;
	font-size: 2.2rem;
}

.card h3 {
	margin-bottom: 12px;
	font-size: 1.3rem;
}

.card p {
	color: var(--text-muted);
	font-size: 0.98rem;
}

.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	margin-bottom: 48px;
}

/* Legal pages */
.legal-card {
	padding: 40px;
}

.legal-card h2 {
	margin: 28px 0 12px;
	font-size: 1.4rem;
	color: var(--text-primary);
}

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

.legal-card p,
.legal-card li {
	margin-bottom: 16px;
	color: var(--text-muted);
	font-size: 0.98rem;
}

.legal-card ul {
	margin-bottom: 16px;
	padding-left: 20px;
}

.legal-card ul li {
	margin-bottom: 6px;
	list-style: disc;
}

.content-section,
.legal-content,
.contact-section {
	padding: 56px 0;
}

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 40px;
}

.info-card {
	height: 100%;
}

.contact-form {
	padding: 32px;
	background: var(--card-solid);
	border: 1px solid var(--card-border);
	border-radius: var(--radius-md);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.dark .contact-form {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.info-card > h3,
.contact-form > h3 {
	margin-bottom: 24px;
	font-size: 1.3rem;
}

.contact-form #contactFormNotice:empty {
	display: none;
}

.info-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 24px;
}

.info-item .protoola-icon {
	padding: 12px;
	font-size: 1.4rem;
	color: var(--protoola-brand);
	background: rgba(63, 94, 251, 0.1);
	border-radius: var(--radius-sm);
	box-sizing: content-box;
}

body.dark .info-item .protoola-icon {
	color: #818cf8;
	background: rgba(129, 140, 248, 0.2);
}

.info-item h4 {
	margin-bottom: 4px;
	font-size: 1.05rem;
}

.info-item p {
	color: var(--text-muted);
	font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.btn-submit {
	width: 100%;
	padding: 14px 28px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(90deg, #3f5efb, #fc466b);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s;
}

.btn-submit:hover {
	opacity: 0.92;
}

.form-group {
	margin-bottom: 16px;
}

.form-group label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 600;
}

.form-group .field-hint {
	display: block;
	margin-top: 4px;
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--text-muted);
}

.protoola-field,
.form-control,
.tool-block textarea,
.tool-block select,
.tool-block input[type='text'],
.tool-block input[type='url'],
.tool-block input[type='email'],
.tool-block input[type='number'],
.tool-block input[type='search'],
.tool-block input[type='password'],
.tool-block input[type='file'],
.contact-form textarea,
.contact-form select,
.contact-form input[type='text'],
.contact-form input[type='email'] {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--card-border);
	border-radius: 14px;
	background: var(--input-bg);
	color: var(--text-primary);
	font-family: inherit;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.protoola-field:focus,
.form-control:focus,
.tool-block textarea:focus,
.tool-block select:focus,
.tool-block input:focus,
.contact-form textarea:focus,
.contact-form input:focus {
	border-color: var(--protoola-brand);
	box-shadow: 0 0 0 3px rgba(63, 94, 251, 0.12);
}

.tool-block textarea,
.contact-form textarea {
	min-height: 100px;
	resize: vertical;
}

.tool-block input[type='color'] {
	width: 64px;
	height: 42px;
	padding: 2px;
	border: 1px solid var(--card-border);
	border-radius: var(--radius-sm);
	background: var(--input-bg);
	cursor: pointer;
}

.tool-block input[type='range'] {
	width: 100%;
	accent-color: var(--protoola-brand);
}

.field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	padding: 60px 0 80px;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(63, 94, 251, 0.08) 0%, rgba(252, 70, 107, 0.05) 100%);
	border-radius: 0 0 60px 60px;
}

.hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	text-align: center;
}

.hero h1 {
	font-size: clamp(2.4rem, 7vw, 4.6rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -1px;
	animation: fadeInUp 0.8s ease-out;
}

.hero p {
	max-width: 620px;
	color: var(--text-secondary);
	font-size: 1.2rem;
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

.search-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	width: 100%;
	max-width: 640px;
	margin-top: 8px;
	animation: fadeInUp 0.8s ease-out 0.4s both;
}

.search-bar input {
	flex: 2 1 260px;
	padding: 18px 24px;
	border: 1px solid var(--card-border);
	border-radius: 60px;
	background: var(--input-bg);
	color: var(--text-primary);
	font-size: 1rem;
	outline: none;
	box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.06);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
	border-color: var(--protoola-brand);
	box-shadow: 0 8px 28px -10px rgba(63, 94, 251, 0.25);
}

.search-bar .btn-primary {
	padding: 16px 40px;
}

.stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px 56px;
	margin-top: 24px;
	animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
	text-align: center;
}

.stat-item strong {
	display: block;
	font-size: 1.8rem;
	font-weight: 700;
}

.stat-item span {
	color: var(--text-secondary);
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   Horizontal scroll rails (categories, features)
   -------------------------------------------------------------------------- */
.categories-wrapper,
.features-wrapper {
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
	padding: 8px 4px 20px;
	overflow-x: auto;
	overflow-y: visible;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.features-wrapper {
	gap: 20px;
}

.categories-wrapper::-webkit-scrollbar,
.features-wrapper::-webkit-scrollbar {
	height: 6px;
}

.categories-wrapper::-webkit-scrollbar-thumb,
.features-wrapper::-webkit-scrollbar-thumb {
	background: var(--protoola-brand);
	border-radius: 20px;
}

.categories-grid,
.features-grid {
	display: flex;
	flex-wrap: nowrap;
	flex-shrink: 0;
	gap: 16px;
}

.features-grid {
	gap: 20px;
}

.category-card,
.feature-item {
	flex: 0 0 140px;
	padding: 18px 10px;
	text-align: center;
	background: var(--card-bg);
	backdrop-filter: blur(6px);
	border: 1px solid var(--card-border-soft);
	border-radius: 24px;
	box-shadow: var(--shadow);
	transition: transform 0.25s, box-shadow 0.25s;
}

.feature-item {
	flex: 0 0 180px;
	padding: 20px 14px;
}

.category-card:hover,
.feature-item:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: var(--shadow-hover);
}

.category-card .protoola-icon,
.feature-item .protoola-icon {
	margin-bottom: 6px;
	font-size: 2.2rem;
	color: var(--protoola-brand);
	transition: transform 0.3s;
}

.feature-item:hover .protoola-icon {
	transform: scale(1.1) rotate(-5deg);
}

.category-card h4 {
	margin-top: 4px;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: -0.2px;
}

.category-card p {
	margin-top: 2px;
	font-size: 0.7rem;
	color: var(--text-secondary);
}

.feature-item h4 {
	margin-bottom: 4px;
	font-size: 0.95rem;
	font-weight: 600;
}

.feature-item p {
	font-size: 0.8rem;
	line-height: 1.3;
	color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Categories rail (horizontal scroll)

   Ported from the original main.js runtime injection. Colours resolve from
   the token layer, so the duplicated body.dark rules are no longer needed.
   -------------------------------------------------------------------------- */
.categories-scroll-section {
	padding: 48px 0 36px;
}

.categories-scroll-header {
	margin-bottom: 28px;
	text-align: center;
}

.categories-scroll-header h2 {
	font-size: 2.2rem;
	font-weight: 700;
	letter-spacing: -0.5px;
	color: var(--text-primary);
}

.categories-scroll-header p {
	max-width: 600px;
	margin: 8px auto 0;
	font-size: 1rem;
	color: var(--text-muted);
}

.categories-scroll-wrapper {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 6px 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--protoola-brand) transparent;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 1200px) {
	.categories-scroll-wrapper {
		justify-content: flex-start;
	}
}

.categories-scroll-wrapper::-webkit-scrollbar {
	height: 6px;
}

.categories-scroll-wrapper::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.04);
	border-radius: 10px;
}

body.dark .categories-scroll-wrapper::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
}

.categories-scroll-wrapper::-webkit-scrollbar-thumb {
	background: var(--protoola-gradient);
	border-radius: 10px;
}

.cat-scroll-card {
	display: flex;
	flex: 0 0 155px;
	min-width: 155px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 14px;
	background: var(--card-solid);
	border: 1px solid var(--card-border);
	border-radius: 20px;
	box-shadow: var(--shadow);
	color: var(--text-primary);
	text-align: center;
	text-decoration: none;
	scroll-snap-align: start;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.25s, box-shadow 0.25s;
}

.cat-scroll-card:hover {
	transform: translateY(-6px);
	border-color: rgba(63, 94, 251, 0.5);
	box-shadow: 0 16px 36px rgba(63, 94, 251, 0.18);
}

.cat-scroll-card .protoola-icon {
	width: 2.2rem;
	height: 2.2rem;
	margin-bottom: 12px;
	fill: url(#protoolaIconGradient) var(--protoola-brand);
	transition: transform 0.25s ease;
}

.cat-scroll-card:hover .protoola-icon {
	transform: scale(1.12);
}

.cat-scroll-card h4 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	white-space: nowrap;
}

.cat-scroll-card p {
	margin: 4px 0 0;
	font-size: 0.78rem;
	color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Tool cards (grids)
   -------------------------------------------------------------------------- */
.tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 24px;
}

.tool-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 18px;
	background: var(--card-bg);
	backdrop-filter: blur(4px);
	border: 1px solid var(--card-border-soft);
	border-radius: 28px;
	box-shadow: var(--shadow);
	transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
	transform: translateY(-8px) scale(1.01);
	box-shadow: var(--shadow-hover);
}

.tool-card .tool-icon {
	font-size: 2rem;
	line-height: 1;
}

.tool-card .tool-icon .protoola-icon {
	font-size: 2rem;
	color: var(--protoola-brand);
}

.tool-card h4 {
	font-size: 1rem;
	font-weight: 600;
}

.tool-card p {
	flex: 1;
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.tool-card .actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
}

.tool-card .use-btn {
	padding: 5px 16px;
	border: 1px solid var(--protoola-brand);
	border-radius: 40px;
	background: transparent;
	color: var(--protoola-brand);
	font-size: 0.75rem;
	font-weight: 600;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.tool-card .use-btn:hover {
	background: var(--protoola-brand);
	color: #fff;
	transform: scale(1.05);
}

/* Hub / category selector cards */
.hub-section {
	padding: 40px 0 20px;
}

.hub-title {
	margin-bottom: 20px;
	font-size: 1.6rem;
	font-weight: 700;
	text-align: center;
}

.cards-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.tool-select-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	background: var(--card-bg);
	border: 1px solid var(--card-border-soft);
	border-radius: 20px;
	box-shadow: var(--shadow);
	color: inherit;
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.tool-select-card:hover {
	transform: translateY(-6px) scale(1.02);
	border-color: var(--protoola-brand);
	box-shadow: var(--shadow-hover);
}

.tool-select-card .card-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tool-select-card .card-head .protoola-icon {
	font-size: 1.8rem;
	color: var(--protoola-brand);
}

.tool-select-card h3 {
	font-size: 1.05rem;
	font-weight: 600;
}

.tool-select-card p {
	flex: 1;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--text-secondary);
}

.tool-select-card .card-badge {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--protoola-brand);
}

/* --------------------------------------------------------------------------
   Tool block (single tool surface)
   -------------------------------------------------------------------------- */
.tool-block {
	padding: 32px;
	margin-bottom: 40px;
	scroll-margin-top: calc(var(--nav-height) + 28px);
	background: var(--card-bg);
	border: 1px solid var(--card-border-soft);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform 0.3s, box-shadow 0.3s;
}

.tool-block:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}

.tool-block.highlighted {
	border: 2px solid var(--protoola-brand);
	box-shadow: 0 0 30px rgba(63, 94, 251, 0.25);
}

.tool-block-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.tool-block-header .protoola-icon {
	font-size: 2.2rem;
	color: var(--protoola-brand);
}

.tool-block-header h1,
.tool-block-header h2 {
	font-size: 1.6rem;
	font-weight: 700;
}

.tool-intro {
	margin-bottom: 18px;
	color: var(--text-secondary);
	font-size: 0.95rem;
}

/* Result surface */
.result-box {
	display: none;
	padding: 18px;
	margin-top: 18px;
	background: var(--input-bg);
	border: 1px solid var(--card-border);
	border-radius: var(--radius-md);
	word-break: break-word;
}

.result-box.active {
	display: block;
	animation: fadeIn 0.4s ease;
}

.result-title {
	margin-bottom: 8px;
	color: var(--protoola-brand);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
}

.result-box pre {
	white-space: pre-wrap;
	word-break: break-word;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88rem;
}

.preview-box {
	padding: 24px;
	margin-top: 16px;
	background: var(--input-bg);
	border: 1px solid var(--card-border);
	border-radius: var(--radius-md);
}

/* Inline notices (replaces alert()) */
.tool-notice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 14px;
	margin-top: 14px;
	border-radius: var(--radius-sm);
	font-size: 0.88rem;
}

.tool-notice-error {
	background: rgba(252, 70, 107, 0.1);
	color: #d81b52;
}

.tool-notice-success {
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
}

.tool-notice-info {
	background: var(--protoola-brand-soft);
	color: var(--protoola-brand);
}

body.dark .tool-notice-error {
	color: #ff8fab;
}

body.dark .tool-notice-success {
	color: #6ee7b7;
}

body.dark .tool-notice-info {
	color: #a5b4fc;
}

/* Method disclosure — used where a tool estimates rather than measures */
.tool-method-note {
	display: block;
	padding: 12px 16px;
	margin-top: 16px;
	border-left: 3px solid var(--protoola-brand);
	background: var(--protoola-brand-soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Long-form article content
   -------------------------------------------------------------------------- */
.article-content {
	padding-top: 24px;
	margin-top: 32px;
	border-top: 1px dashed var(--card-border);
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--text-secondary);
}

.article-content h2,
.article-content h3 {
	margin: 16px 0 8px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-primary);
}

.article-content h4 {
	margin: 12px 0 6px;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--text-primary);
}

.article-content p {
	margin-bottom: 12px;
}

.article-content ul,
.article-content ol {
	margin-bottom: 12px;
	padding-left: 20px;
}

.article-content ul li {
	margin-bottom: 4px;
	list-style: disc;
}

.article-content ol li {
	margin-bottom: 4px;
	list-style: decimal;
}

.article-content a {
	color: var(--protoola-brand);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-section {
	width: 100%;
	padding: 56px 0;
}

.faq-header {
	margin-bottom: 36px;
	text-align: center;
}

.faq-header h2 {
	margin-bottom: 10px;
	font-size: 2.2rem;
	font-weight: 700;
	letter-spacing: -0.5px;
	color: var(--text-primary);
}

.faq-header p {
	max-width: 640px;
	margin: 0 auto;
	font-size: 1.05rem;
	color: var(--text-muted);
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 780px;
	margin: 0 auto;
}

.faq-item {
	overflow: hidden;
	background: var(--card-bg);
	backdrop-filter: blur(4px);
	border: 1px solid var(--card-border-soft);
	border-radius: 20px;
	box-shadow: var(--shadow);
	transition: box-shadow 0.3s;
}

.faq-item:hover {
	box-shadow: var(--shadow-hover);
}

.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 20px 28px;
	background: transparent;
	color: var(--text-primary);
	font-size: 1.05rem;
	font-weight: 600;
	text-align: left;
	transition: background 0.2s;
}

.faq-question:hover {
	background: rgba(63, 94, 251, 0.05);
}

.faq-question .protoola-icon {
	flex-shrink: 0;
	font-size: 1rem;
	color: var(--protoola-brand);
	transition: transform 0.3s;
}

.faq-item.active .faq-question .protoola-icon {
	transform: rotate(180deg);
}

.faq-answer {
	max-height: 0;
	padding: 0 28px;
	overflow: hidden;
	line-height: 1.6;
	color: var(--text-secondary);
	transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
	max-height: 600px;
	padding: 4px 28px 24px;
}

/* Compact FAQ inside tool blocks */
.faq-block {
	padding: 16px 20px;
	margin-top: 20px;
	background: rgba(63, 94, 251, 0.03);
	border-radius: var(--radius-md);
}

.faq-block h4 {
	margin-bottom: 10px;
	color: var(--protoola-brand);
}

.faq-qa {
	margin-bottom: 12px;
}

.faq-qa strong {
	display: block;
	margin-bottom: 2px;
	color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 28px;
}

.testimonial-card {
	padding: 28px 24px;
	background: var(--card-bg);
	backdrop-filter: blur(4px);
	border: 1px solid var(--card-border-soft);
	border-radius: 28px;
	box-shadow: var(--shadow);
	transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
	transform: translateY(-4px) scale(1.01);
	box-shadow: var(--shadow-hover);
}

.testimonial-card .stars {
	margin-bottom: 8px;
	color: #f5b342;
}

.testimonial-card p {
	font-style: italic;
	color: var(--text-secondary);
}

.testimonial-card .author {
	margin-top: 12px;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta-section {
	padding: 60px 40px;
	background: linear-gradient(135deg, rgba(63, 94, 251, 0.08), rgba(252, 70, 107, 0.06));
	border-radius: 40px;
	text-align: center;
	transition: transform 0.3s, box-shadow 0.3s;
}

.cta-section:hover {
	transform: scale(1.005);
	box-shadow: 0 20px 60px -20px rgba(63, 94, 251, 0.15);
}

.cta-section h2 {
	font-size: 2rem;
}

.cta-section p {
	max-width: 500px;
	margin: 12px auto 24px;
	color: var(--text-secondary);
}

.cta-form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	max-width: 500px;
	margin: 0 auto;
}

.cta-form input {
	flex: 2 1 200px;
	padding: 14px 20px;
	border: 1px solid var(--card-border);
	border-radius: 60px;
	background: var(--input-bg);
	color: var(--text-primary);
	font-size: 1rem;
	outline: none;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.cta-form input:focus {
	border-color: var(--protoola-brand);
	box-shadow: 0 0 0 4px rgba(63, 94, 251, 0.1);
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--card-solid);
	border: 1px solid var(--card-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
	transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-hover);
}

.post-card .post-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card .post-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 20px;
}

.post-card h2 {
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.35;
}

.post-meta {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.post-excerpt {
	flex: 1;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.entry-content {
	max-width: 780px;
	margin: 0 auto;
	font-size: 1.02rem;
	line-height: 1.75;
}

.entry-content > * + * {
	margin-top: 1.1em;
}

.entry-content h2 {
	margin-top: 1.8em;
	font-size: 1.7rem;
	font-weight: 700;
}

.entry-content h3 {
	margin-top: 1.5em;
	font-size: 1.3rem;
	font-weight: 700;
}

.entry-content ul,
.entry-content ol {
	padding-left: 24px;
}

.entry-content ul li {
	list-style: disc;
}

.entry-content ol li {
	list-style: decimal;
}

.entry-content a {
	color: var(--protoola-brand);
	text-decoration: underline;
}

.entry-content blockquote {
	padding: 4px 20px;
	border-left: 3px solid var(--protoola-brand);
	color: var(--text-secondary);
	font-style: italic;
}

.entry-content img {
	border-radius: var(--radius-md);
}

.entry-content code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--bg-surface-alt);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

.entry-content pre {
	padding: 18px;
	overflow-x: auto;
	background: var(--bg-surface-alt);
	border-radius: var(--radius-md);
}

.protoola-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
}

.protoola-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--card-border);
	border-radius: 40px;
	background: var(--card-solid);
	font-size: 0.9rem;
	font-weight: 600;
	transition: background 0.2s, color 0.2s;
}

.protoola-pagination .page-numbers:hover,
.protoola-pagination .page-numbers.current {
	background: var(--protoola-gradient);
	border-color: transparent;
	color: #fff;
}

/* --------------------------------------------------------------------------
   404 / empty states
   -------------------------------------------------------------------------- */
.protoola-empty {
	padding: 80px 0;
	text-align: center;
}

.protoola-empty h1 {
	font-size: clamp(3rem, 12vw, 7rem);
	font-weight: 700;
	line-height: 1;
}

.protoola-empty p {
	max-width: 520px;
	margin: 16px auto 28px;
	color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.tool-block {
		padding: 24px 20px;
	}
}

@media (max-width: 860px) {
	.hero {
		padding: 40px 0 50px;
	}

	.cta-section {
		padding: 40px 20px;
	}
}

@media (max-width: 768px) {
	.grid-2,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.legal-card {
		padding: 28px 22px;
	}
}

@media (max-width: 600px) {
	.category-card {
		flex: 0 0 110px;
	}

	.feature-item {
		flex: 0 0 140px;
	}
}

@media (max-width: 480px) {
	.stats {
		gap: 16px;
	}

	.search-bar input {
		flex: 1 1 100%;
	}

	.search-bar .btn-primary {
		width: 100%;
		justify-content: center;
	}

	.category-card {
		flex: 0 0 120px;
		padding: 14px 8px;
	}

	.category-card .protoola-icon {
		font-size: 1.8rem;
	}

	.category-card h4 {
		font-size: 0.8rem;
	}

	.feature-item {
		flex: 0 0 150px;
		padding: 16px 10px;
	}

	.feature-item .protoola-icon {
		font-size: 1.6rem;
	}

	.feature-item h4 {
		font-size: 0.85rem;
	}

	.cta-section h2 {
		font-size: 1.6rem;
	}

	.faq-question {
		padding: 16px 20px;
		font-size: 0.95rem;
	}

	.faq-answer {
		font-size: 0.9rem;
	}

	.tool-block {
		padding: 20px 16px;
	}

	.btn-group {
		width: 100%;
	}

	.btn-action {
		flex: 1 1 auto;
		justify-content: center;
	}
}
