/** Editorial refinement: quiet surfaces, purposeful covers, compact product sections. */

.hero-main,
.feature-card,
.card {
	box-shadow: none;
}

.hero-main {
	min-height: 440px;
	border-radius: 12px;
	padding: 36px;
	justify-content: center;
}

.hero-main h1 {
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.hero-grid:not(:has(> .side-stack)) {
	grid-template-columns: 1fr;
}

.hero-main p {
	font-size: 16px;
}

.side-stack .feature-card {
	min-height: 0;
	border-radius: 10px;
	padding: 22px;
	gap: 12px;
}

.side-stack .feature-card h2 {
	font-size: clamp(24px, 2.2vw, 30px);
	line-height: 1.12;
	margin: 0 0 10px;
}

.newsletter-strip {
	border-radius: 10px;
	margin-bottom: 30px;
}

/* Nested editorial headings and flat product headings share an aligned rule. */
.section > .container > .section-head,
.related-posts .section-head {
	max-width: none;
	margin-inline: 0;
	display: flex;
	justify-content: space-between;
	text-align: left;
}

.section-head h2 {
	text-align: left;
}

.section-head > div .eyebrow {
	margin-bottom: 8px;
}

.section {
	padding-bottom: 48px;
}

.story-thumb {
	border-radius: 8px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	position: relative;
	background: var(--soft);
	display: block;
}

.story-thumb.has-image {
	aspect-ratio: 16 / 9;
}

.story-thumb img,
.story-thumb.has-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	display: block;
}

.editorial-cover {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	aspect-ratio: auto;
	min-height: 230px;
	padding: 22px;
	background: var(--soft);
	color: var(--ink);
	border: 1px solid var(--line);
	border-top: 3px solid var(--ink);
	transition: border-color 150ms ease;
}

.editorial-cover:hover,
.editorial-cover:focus-visible {
	border-color: var(--ink);
}

.cover-label,
.cover-footer,
.story-topic {
	font: 700 10px / 1.5 var(--sans);
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.cover-label {
	color: var(--muted);
}

.cover-subject {
	font: 700 clamp(24px, 2.35vw, 32px) / 1.14 var(--serif);
	letter-spacing: -0.035em;
}

.cover-subject > span {
	display: block;
	margin-top: 5px;
}

.cover-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--line);
	padding-top: 10px;
}

.cover-footer > span {
	background: var(--accent);
	color: var(--accent-ink);
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	font-size: 17px;
	border-radius: 50%;
}

.story-topic {
	border-top: 2px solid var(--ink);
	padding-top: 14px;
	color: var(--muted);
}

.split-feature:has(> .story-topic) {
	grid-template-columns: 1fr;
}

.split-feature > .story-topic {
	margin: 24px 28px 0;
}

.split-feature > .editorial-cover {
	margin: 24px;
}

.article-head {
	width: min(calc(100% - 48px), 1075px);
	max-width: none;
	text-align: left;
	padding: 48px 0 28px;
	border-bottom: 1px solid var(--line);
}

.article-head .eyebrow,
.article-head .byline {
	justify-content: flex-start;
}

.article-head h1 {
	max-width: 920px;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.article-head .dek {
	font-size: 18px;
	margin: 0 0 22px;
	max-width: 760px;
}

.avatar,
.author-photo {
	color: var(--ink);
}

.article-layout {
	padding-top: 32px;
}

/* The search itself is the homepage's primary visual. */
.product-hero {
	padding: 64px 0 42px;
}

.hero-kicker {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 11px;
}

.product-hero h1 {
	font-size: clamp(36px, 5.8vw, 68px);
	line-height: 1.08;
	letter-spacing: -0.045em;
	max-width: 780px;
	text-wrap: balance;
}

.hero-emphasis {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 5px;
	text-underline-offset: 7px;
}

.hero-sub {
	max-width: 670px;
	font-size: 17px;
	line-height: 1.65;
}

.product-search {
	max-width: 820px;
	border: 1px solid var(--ink);
	border-radius: 12px;
	box-shadow: 0 6px 0 var(--soft);
}

.product-search:focus-within {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

.product-search button {
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: 7px;
}

.product-stage,
.product-section {
	scroll-margin-top: 90px;
}

.chip {
	background: transparent;
	font-weight: 600;
}

.product-section {
	padding: 46px 0;
}

.seekde-intro {
	padding: 38px 0 46px;
}

.seekde-intro__grid {
	gap: 24px 52px;
}

.seekde-intro__heading {
	font-size: clamp(26px, 2.8vw, 34px);
}

.seekde-intro__body {
	font-size: 16px;
}

.product-section .section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
	gap: 10px 36px;
	align-items: end;
	text-align: left;
}

.product-section .section-head > .eyebrow {
	grid-column: 1 / -1;
	grid-row: auto;
	margin: 0;
	width: auto;
	flex-direction: row;
	justify-self: start;
	align-items: center;
}

.product-section .section-head h2 {
	grid-column: 1;
	grid-row: auto;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.14;
	text-align: left;
}

.product-section .section-head p {
	grid-column: 2;
	grid-row: auto;
	text-align: left;
}

.product-section .section-head:not(:has(> p)) h2 {
	grid-column: 1 / -1;
}

.product-section .feature-card {
	min-height: 0;
	display: block;
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 12px 22px 12px 0;
}

.product-section .feature-card .num {
	width: auto;
	height: auto;
	display: block;
	border-radius: 0;
	background: transparent;
	color: var(--muted);
	font: 500 15px / 1.3 var(--sans);
	margin: 0 0 18px;
}

.product-section .feature-card h3 {
	font-size: 18px;
	margin: 0 0 10px;
}

.product-section .feature-card p {
	font-size: 15px;
	line-height: 1.65;
}

#features .feature-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 40px;
}

#features .feature-card {
	border-bottom: 1px solid var(--line);
	padding: 22px 0;
}

#features .feature-card .num {
	display: none;
}

.compare {
	border: 0;
	border-radius: 0;
	padding: 0;
	background: transparent;
}

.compare td:last-child,
.compare th:last-child {
	background: var(--paper);
}

.blog-bridge {
	border: 0;
	border-radius: 0;
	border-top: 2px solid var(--ink);
	padding: 28px 0 0;
	background: transparent;
	gap: 40px;
}

.final-cta {
	border-radius: 12px;
	padding: 36px;
}

.final-cta .eyebrow {
	color: inherit;
}

.final-cta h2 {
	font-size: clamp(28px, 3.4vw, 42px);
}

@media (max-width: 768px) {
	.hero-main { min-height: 0; padding: 26px; }
	.article-head { padding-top: 32px; }
	.product-section .section-head { grid-template-columns: minmax(0, 1fr); }
	.product-section .section-head p { grid-column: 1; }
	.product-section { padding: 32px 0; }
	.product-hero { padding-top: 40px; }
	.hero-sub { font-size: 16px; }
	.blog-bridge { gap: 24px; }
	.final-cta { padding: 28px 20px; }
}

@media (max-width: 720px) {
	.queryline { flex-direction: column; align-items: flex-start; gap: 12px; }
	.queryline h2 { font-size: 28px; line-height: 1.15; }
	.container { width: calc(100% - 36px); }
	.article-head { width: calc(100% - 36px); }
	#features .feature-grid { grid-template-columns: minmax(0, 1fr); }
	#how-it-works .feature-card { border-bottom: 1px solid var(--line); padding: 16px 0 22px; }
	#how-it-works .feature-card .num { margin-bottom: 10px; }
	.editorial-cover { min-height: 210px; }
	.section > .container > .section-head { align-items: flex-start; }
}

/* ==========================================================================
   Editorial Hero Refinements
   ========================================================================== */
.hero-eyebrow {
	letter-spacing: 0.08em;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 11.5px;
}

.hero-topics {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	position: absolute;
	bottom: 36px;
	right: 36px;
	z-index: 2;
}

.hero-topics span {
	font-family: var(--sans);
	font-size: 10.5px;
	font-weight: 750;
	letter-spacing: 0.08em;
	color: #9ea39f;
	text-transform: uppercase;
}

.side-stack .feature-card .card-top-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tool-identifier {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 750;
	color: var(--ink);
	letter-spacing: -0.01em;
}

.tool-badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	display: inline-block;
	flex-shrink: 0;
}

.tool-badge-dot.otterly {
	background: #ff5722;
}

.tool-badge-dot.semrush {
	background: #ff642d;
}

.tool-badge-dot.peec {
	background: #7c4dff;
}

.tool-badge-dot.comparison {
	background: #3b82f6;
}

.side-stack .feature-card .card-main-content {
	flex-grow: 1;
}

.side-stack .feature-card .story-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	font-size: 12.5px;
	color: var(--muted);
	border-top: 1px solid var(--line);
	padding-top: 12px;
	margin-top: 12px;
}

.side-stack .feature-card .meta-details {
	display: flex;
	align-items: center;
	gap: 8px;
}

.side-stack .feature-card .meta-arrow {
	font-size: 16px;
	line-height: 1;
	color: var(--ink);
	transition: transform 150ms ease;
}

@media (prefers-reduced-motion: no-preference) {
	.side-stack .feature-card:hover .meta-arrow {
		transform: translateX(3px);
	}
}

/* ==========================================================================
   Editorial Browse by Category Section
   ========================================================================== */
.category-browse-section {
	padding: 44px 0 34px;
}

.category-browse-section .section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-bottom: 2px solid var(--ink);
	padding-bottom: 14px;
	margin-bottom: 24px;
	gap: 24px;
	width: 100%;
}

.category-browse-section .section-head > div .eyebrow {
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 11px;
	color: var(--muted);
	margin-bottom: 6px;
}

.category-browse-section .section-head h2 {
	font: 700 clamp(30px, 3.2vw, 42px) / 1.1 var(--serif);
	letter-spacing: -0.04em;
	margin: 0;
	color: var(--ink);
}

.category-browse-section .section-head a {
	font-size: 13.5px;
	font-weight: 750;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
	padding-bottom: 4px;
	transition: opacity 150ms ease;
}

.category-browse-section .section-head a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.category-card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px 18px;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--ink);
	min-height: 180px;
	min-width: 0;
	position: relative;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.category-card:hover {
	border-color: var(--ink);
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

@media (prefers-reduced-motion: no-preference) {
	.category-card:hover {
		transform: translateY(-1px);
	}
}

.category-card:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	border-color: var(--ink);
}

.category-card__icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--accent);
	color: #121712;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	flex-shrink: 0;
}

.category-card__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.category-card__title {
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 750;
	line-height: 1.22;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
	color: var(--ink);
}

.category-card__desc {
	font-family: var(--sans);
	font-size: 13px;
	line-height: 1.45;
	color: var(--muted);
	margin: 0 0 16px;
	flex-grow: 1;
}

.category-card__count {
	font-family: var(--sans);
	font-size: 12.5px;
	font-weight: 650;
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
	transition: color 150ms ease;
}

.category-card:hover .category-card__count {
	color: var(--ink);
}

/* Category grid responsive breakpoints */
@media (max-width: 1024px) {
	.category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
	.category-browse-section {
		padding: 34px 0 24px;
	}
}

@media (max-width: 767.98px) {
	.category-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.category-card {
		padding: 16px 16px;
		min-height: auto;
	}
	.category-browse-section .section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.category-browse-section .section-head a {
		padding-bottom: 0;
	}
}

/* ==========================================================================
   Crawler Rendering Spectrum Component (.crawler-spectrum-block)
   ========================================================================== */

.crawler-spectrum-block {
	background: #fdfdfb;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 24px 30px;
	margin: 32px 0 40px;
	box-sizing: border-box;
	width: 100%;
}

.crawler-spectrum-kicker {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink);
	margin-bottom: 22px;
}

/* Horizontal Spectrum Track */
.crawler-spectrum-track-container {
	margin-bottom: 28px;
}

.crawler-spectrum-track {
	position: relative;
	width: 100%;
	height: 2.5px;
	border-radius: 9999px;
	background: linear-gradient(to right, #78c330 0%, #8ed638 25%, #cfcfc8 50%, #b8a6f2 75%, #9b82e2 100%);
}

.spectrum-node {
	position: absolute;
	top: 50%;
	border-radius: 50%;
	box-sizing: border-box;
}

.node-full {
	left: 0;
	transform: translateY(-50%);
	width: 13px;
	height: 13px;
	background: #78c330;
	box-shadow: 0 0 0 4px rgba(120, 195, 48, 0.28);
}

.node-partial {
	left: 50%;
	transform: translate(-50%, -50%);
	width: 13px;
	height: 13px;
	background: #ffffff;
	border: 2px solid #555555;
}

.node-raw {
	right: 0;
	left: auto;
	transform: translateY(-50%);
	width: 13px;
	height: 13px;
	background: #9b82e2;
	box-shadow: 0 0 0 4px rgba(155, 130, 226, 0.32);
}

.crawler-spectrum-labels {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-top: 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 11.5px;
	line-height: 1.35;
	color: var(--ink);
}

.spectrum-label-left {
	text-align: left;
}

.spectrum-label-center {
	text-align: center;
}

.spectrum-label-right {
	text-align: right;
}

.spectrum-br-mobile {
	display: none;
}

/* 3-Column Card Grid */
.crawler-spectrum-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}

.crawler-spectrum-card {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 20px 18px 20px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.crawler-spectrum-card-header {
	min-height: 54px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.article-body .spectrum-card-title,
.article-body h3.spectrum-card-title,
.crawler-spectrum-block .spectrum-card-title,
.crawler-spectrum-card h3 {
	font-family: var(--serif) !important;
	font-size: clamp(14.5px, 1.2vw, 16px) !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.02em !important;
	color: var(--ink) !important;
	margin: 0 0 5px 0 !important;
	white-space: normal !important;
	text-wrap: balance;
	word-break: normal;
	overflow-wrap: normal;
}

.spectrum-card-kicker {
	display: block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
}

.spectrum-card-divider {
	height: 1px;
	background: var(--line);
	margin-bottom: 15px;
	border: none;
}

/* Badges */
.spectrum-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-bottom: 16px;
}

.spectrum-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 9999px;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.badge-lime {
	background: #eef8df;
	color: #1a2908;
}

.badge-purple {
	background: #f3effd;
	color: #241d50;
}

.badge-icon {
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
}

/* Bullets */
.spectrum-card-bullets {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.spectrum-card-bullets li {
	position: relative;
	padding-left: 14px !important;
	margin-bottom: 0 !important;
	font-family: var(--sans);
	font-size: 13px;
	line-height: 1.44;
	color: var(--ink);
}

.spectrum-card-bullets li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	width: 5.5px;
	height: 5.5px;
	border-radius: 50%;
}

.bullets-lime li::before {
	background-color: #78c330;
}

.bullets-purple li::before {
	background-color: #9b82e2;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.crawler-spectrum-block {
		padding: 22px 16px 24px;
		margin: 24px 0 32px;
	}
	.crawler-spectrum-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.crawler-spectrum-card {
		padding: 18px 16px;
	}
	.article-body .spectrum-card-title,
	.article-body h3.spectrum-card-title,
	.crawler-spectrum-block .spectrum-card-title,
	.crawler-spectrum-card h3 {
		white-space: normal !important;
		font-size: 19px !important;
	}
	.spectrum-br-mobile {
		display: block;
	}
	.crawler-spectrum-labels {
		font-size: 10.5px;
		line-height: 1.25;
	}
}

/* Dark mode support */
html[data-theme="dark"] .crawler-spectrum-block {
	background: var(--paper);
	border-color: var(--line);
}
html[data-theme="dark"] .crawler-spectrum-card {
	background: var(--soft);
	border-color: var(--line);
}
html[data-theme="dark"] .badge-lime {
	background: rgba(184, 255, 67, 0.15);
	color: #d6ff7a;
}
html[data-theme="dark"] .badge-purple {
	background: rgba(111, 100, 255, 0.2);
	color: #cec9ff;
}
html[data-theme="dark"] .node-partial {
	background: var(--paper);
	border-color: var(--muted);
}

