/* SaaS Agencies — design system mapped from the Claude Design "Agency Directory" project.
   Fonts: Space Grotesk (display) + DM Sans (body). Accent: #2f6fe4. */

:root {
	--sa-ink: #0f1117;
	--sa-body: #4b5563;
	--sa-muted: #6b7280;
	--sa-accent: #2f6fe4;
	--sa-accent-dark: #1d55c2;
	--sa-accent-tint: #e8f0fd;
	--sa-accent-wash: #f6f9ff;
	--sa-verified-bg: #e6f6ee;
	--sa-verified-fg: #1e7a4d;
	--sa-bg: #ffffff;
	--sa-card: #ffffff;
	--sa-card-alt: #fafbfc;
	--sa-border: #e2e5ea;
	--sa-divider: #eceef2;
	--sa-input-border: #d6dae2;
	--sa-radius: 16px;
	--sa-radius-sm: 10px;
	--sa-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
	--sa-font: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--sa-shadow: 0 12px 32px rgba(15, 17, 23, .06);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--sa-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--sa-body);
	background: var(--sa-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--sa-display);
	color: var(--sa-ink);
	line-height: 1.15;
	margin-top: 0;
	font-weight: 700;
	letter-spacing: -.02em;
}
a { color: var(--sa-accent); text-decoration: none; }
a:hover { color: var(--sa-accent-dark); }
img { max-width: 100%; height: auto; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.container--narrow { max-width: 776px; }
.section { padding: 56px 0; }
.section__title { font-size: 28px; letter-spacing: -.02em; margin-bottom: 24px; }

/* Buttons */
.btn {
	display: inline-block;
	padding: 13px 22px;
	border-radius: 12px;
	font: 600 15px var(--sa-font);
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none !important;
	line-height: 1.2;
}
.btn--primary { background: var(--sa-accent); color: #fff; }
.btn--primary:hover { background: var(--sa-accent-dark); color: #fff; }
.btn--dark { background: var(--sa-ink); color: #fff; border-radius: 10px; padding: 11px 18px; font-size: 14px; }
.btn--dark:hover { background: #1f2430; color: #fff; }
.btn--outline { background: #fff; color: var(--sa-ink); border-color: var(--sa-ink); }
.btn--outline:hover { background: var(--sa-ink); color: #fff; }
.btn--light { background: #fff; color: var(--sa-ink); }

/* Header */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--sa-divider);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: 72px;
}
.site-logo {
	font-family: var(--sa-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--sa-ink) !important;
	text-decoration: none !important;
	display: flex;
	align-items: center;
	gap: 8px;
}
.site-logo__mark {
	width: 22px;
	height: 22px;
	background: var(--sa-accent);
	border-radius: 6px;
	display: inline-block;
	flex-shrink: 0;
}
.site-nav { flex: 1; }
.site-nav__list, .site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--sa-body); font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: var(--sa-ink); }
.site-header__cta { flex-shrink: 0; }

/* Badges & chips */
.badge {
	display: inline-block;
	font: 600 11px var(--sa-font);
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 5px 9px;
	border-radius: 6px;
	line-height: 1.2;
}
.badge--featured { background: var(--sa-accent); color: #fff; }
.badge--verified { background: var(--sa-verified-bg); color: var(--sa-verified-fg); }

.chip {
	display: inline-block;
	border: 1px solid var(--sa-border);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--sa-body);
	background: #fff;
	text-decoration: none !important;
}
.chip:hover { border-color: var(--sa-accent); color: var(--sa-accent); }
.chip--static:hover { border-color: var(--sa-border); color: var(--sa-body); }
.chip--tag { border-radius: 6px; font-size: 12px; padding: 4px 8px; }
.chip-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Sort pills row (category/archive) */
.sort-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sort-row__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
	font-size: 13px;
	font-weight: 500;
	border: 1px solid var(--sa-border);
	border-radius: 999px;
	padding: 6px 12px;
	color: var(--sa-body);
	background: #fff;
}
.pill--active { background: var(--sa-ink); color: #fff; border-color: var(--sa-ink); }
.sort-row__count { font-size: 13px; color: var(--sa-muted); }

/* Hero (split, Hero A) */
.hero { background: #fff; padding: 80px 0 64px; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero__eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sa-accent);
}
.hero__title {
	font-size: 60px;
	line-height: 1.02;
	letter-spacing: -.03em;
	margin: 0;
	text-wrap: pretty;
}
.hero__subtitle { font-size: 18px; line-height: 1.55; color: var(--sa-body); max-width: 480px; margin: 0; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__search {
	display: flex;
	background: #fff;
	border: 1.5px solid var(--sa-input-border);
	border-radius: 14px;
	padding: 6px;
	gap: 6px;
	max-width: 540px;
	box-shadow: 0 8px 24px rgba(15, 17, 23, .06);
}
.hero__search input[type="search"] {
	flex: 1;
	border: 0;
	outline: 0;
	padding: 0 14px;
	font: 400 15px var(--sa-font);
	background: transparent;
	min-width: 0;
}
.hero__search .btn { border-radius: 10px; padding: 14px 22px; }
.hero__chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Animated hero demo (9s loop): type query → press search → results drop in
   → featured card highlights → cursor clicks → toast. From the Agencyfind design. */
@keyframes hdType{0%,4%{width:0}22%,100%{width:100%}}
@keyframes hdCaret{0%,24%{opacity:1}25%,100%{opacity:0}}
@keyframes hdCursor{0%,20%{transform:translate(180px,190px);opacity:0}24%{opacity:1}30%,36%{transform:translate(318px,86px)}52%{transform:translate(318px,86px)}62%,80%{transform:translate(150px,214px)}90%{opacity:1}96%,100%{transform:translate(180px,190px);opacity:0}}
@keyframes hdPress{0%,31%{transform:scale(1);background:#2f6fe4}33%{transform:scale(.94);background:#1d55c2}36%,100%{transform:scale(1);background:#2f6fe4}}
@keyframes hdRipple{0%,32%{transform:scale(.2);opacity:.7}44%,100%{transform:scale(1);opacity:0}}
@keyframes hdRipple2{0%,64%{transform:scale(.2);opacity:.7}76%,100%{transform:scale(1);opacity:0}}
@keyframes hdCard1{0%,36%{opacity:0;transform:translateY(18px)}42%,92%{opacity:1;transform:translateY(0)}96%,100%{opacity:0;transform:translateY(0)}}
@keyframes hdCard2{0%,40%{opacity:0;transform:translateY(18px)}46%,92%{opacity:1;transform:translateY(0)}96%,100%{opacity:0;transform:translateY(0)}}
@keyframes hdCard3{0%,44%{opacity:0;transform:translateY(18px)}50%,92%{opacity:1;transform:translateY(0)}96%,100%{opacity:0;transform:translateY(0)}}
@keyframes hdSelect{0%,64%{border-color:#e2e5ea;box-shadow:none}68%,92%{border-color:#2f6fe4;box-shadow:0 8px 24px rgba(47,111,228,.18)}96%,100%{border-color:#e2e5ea;box-shadow:none}}
@keyframes hdToast{0%,68%{opacity:0;transform:translateY(8px)}72%,90%{opacity:1;transform:translateY(0)}94%,100%{opacity:0;transform:translateY(0)}}
@keyframes hdFilter{0%,46%{background:#fff;color:#4b5563}50%,92%{background:#0f1117;color:#fff}96%,100%{background:#fff;color:#4b5563}}

.hero-demo {
	background: #f3f4f7;
	border-radius: 24px;
	padding: 28px;
	min-height: 520px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hero-demo__stage { width: 400px; max-width: 100%; position: relative; color: var(--sa-ink); }
.hero-demo__app {
	background: #fff;
	border-radius: 20px;
	padding: 18px;
	box-shadow: 0 20px 50px rgba(15, 17, 23, .10);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.hero-demo__search {
	display: flex;
	border: 1.5px solid var(--sa-input-border);
	border-radius: 12px;
	padding: 5px;
	gap: 6px;
	align-items: center;
}
.hero-demo__query {
	flex: 1;
	padding: 0 10px;
	font-size: 14px;
	display: flex;
	align-items: center;
	height: 36px;
	overflow: hidden;
	min-width: 0;
}
.hero-demo__type {
	display: inline-block;
	white-space: nowrap;
	overflow: hidden;
	animation: hdType 9s steps(26) infinite;
}
.hero-demo__caret {
	width: 1.5px;
	height: 16px;
	background: var(--sa-ink);
	margin-left: 1px;
	animation: hdCaret 9s steps(1) infinite;
}
.hero-demo__btn-wrap { position: relative; }
.hero-demo__btn {
	background: var(--sa-accent);
	color: #fff;
	border-radius: 8px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	animation: hdPress 9s cubic-bezier(.4, 0, .2, 1) infinite;
}
.hero-demo__ripple {
	position: absolute;
	inset: -8px;
	border-radius: 14px;
	border: 2px solid var(--sa-accent);
	pointer-events: none;
	animation: hdRipple 9s cubic-bezier(.4, 0, .2, 1) infinite;
}
.hero-demo__pills { display: flex; gap: 6px; }
.hero-demo__pill {
	font-size: 11px;
	font-weight: 500;
	border: 1px solid var(--sa-border);
	border-radius: 999px;
	padding: 4px 9px;
	color: var(--sa-body);
	background: #fff;
}
.hero-demo__pill--filter { animation: hdFilter 9s cubic-bezier(.4, 0, .2, 1) infinite; }
.hero-demo__card {
	display: flex;
	gap: 12px;
	align-items: center;
	background: #fff;
	border: 1.5px solid var(--sa-border);
	border-radius: 14px;
	padding: 12px 14px;
}
.hero-demo__card--1 { animation: hdCard1 9s cubic-bezier(.4, 0, .2, 1) infinite; }
.hero-demo__card--2 { animation: hdCard2 9s cubic-bezier(.4, 0, .2, 1) infinite; }
.hero-demo__card--3 { animation: hdCard3 9s cubic-bezier(.4, 0, .2, 1) infinite; }
.hero-demo__card--featured { animation: hdCard1 9s cubic-bezier(.4, 0, .2, 1) infinite, hdSelect 9s ease infinite; }
.hero-demo__logo { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: inline-block; }
.hero-demo__card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hero-demo__card-title { font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.hero-demo__badge {
	background: var(--sa-accent);
	color: #fff;
	font: 600 9px var(--sa-font);
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 3px 6px;
	border-radius: 4px;
}
.hero-demo__card-sub { font-size: 12px; color: var(--sa-muted); }
.hero-demo__rating { font-size: 12px; font-weight: 600; }
.hero-demo__toast {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: -22px;
	background: var(--sa-ink);
	color: #fff;
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 13px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	animation: hdToast 9s cubic-bezier(.4, 0, .2, 1) infinite;
}
.hero-demo__toast-note { color: #9db8f0; font-weight: 600; }
.hero-demo__cursor {
	position: absolute;
	left: 0;
	top: 0;
	width: 40px;
	height: 40px;
	pointer-events: none;
	animation: hdCursor 9s cubic-bezier(.5, 0, .3, 1) infinite;
}
.hero-demo__cursor svg { position: absolute; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.hero-demo__cursor-ripple {
	position: absolute;
	left: -10px;
	top: -10px;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: rgba(47, 111, 228, .35);
	animation: hdRipple2 9s cubic-bezier(.4, 0, .2, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
	.hero-demo *, .hero-demo { animation: none !important; }
	.hero-demo__type { width: auto; }
	.hero-demo__caret, .hero-demo__cursor, .hero-demo__ripple, .hero-demo__toast { display: none; }
}

/* Section headers with "All →" link */
.section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.section__head .section__title { margin-bottom: 0; }
.section__more { font-size: 14px; font-weight: 600; }

/* Category grid */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--sa-border);
	border-radius: 14px;
	padding: 18px 20px;
	text-decoration: none !important;
	transition: border-color .15s;
}
.category-card:hover { border-color: var(--sa-accent); }
.category-card__name { font-weight: 600; font-size: 15px; color: var(--sa-ink); }
.category-card__count { font-size: 13px; color: var(--sa-muted); white-space: nowrap; }

/* Agency cards (homepage featured / related) */
.agency-grid, .featured-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agency-card {
	position: relative;
	background: var(--sa-card-alt);
	border: 1px solid var(--sa-border);
	border-radius: 18px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.agency-card--featured { border: 1px solid var(--sa-accent); background: var(--sa-accent-wash); }
.agency-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.agency-card__logo img {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	object-fit: cover;
	display: block;
}
.agency-card__logo-fallback {
	width: 52px; height: 52px;
	display: flex; align-items: center; justify-content: center;
	background: var(--sa-ink);
	color: #fff;
	border-radius: 14px;
	font-family: var(--sa-display);
	font-weight: 700;
	font-size: 20px;
}
.agency-card__logo-fallback--large { width: 88px; height: 88px; border-radius: 22px; font-size: 34px; }
.agency-card__name { font-family: var(--sa-display); font-weight: 700; font-size: 19px; margin: 0; letter-spacing: -.01em; }
.agency-card__name a { color: var(--sa-ink); }
.agency-card__meta { font-size: 13px; color: var(--sa-muted); margin: 4px 0 0; }
.agency-card__tagline { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sa-body); }
.agency-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.agency-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 10px;
	border-top: 1px solid var(--sa-divider);
	margin-top: auto;
	font-size: 13px;
}
.agency-card__link { font-size: 13px; font-weight: 600; }

/* Agency list rows (category + archive pages) */
.agency-list { display: flex; flex-direction: column; gap: 18px; }
.agency-row {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 20px;
	border: 1px solid var(--sa-border);
	background: #fff;
	border-radius: 16px;
	padding: 22px;
	align-items: start;
}
.agency-row--featured { border-color: var(--sa-accent); background: var(--sa-accent-wash); }
.agency-row__logo img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; display: block; }
.agency-row__logo .agency-card__logo-fallback { width: 64px; height: 64px; border-radius: 16px; font-size: 24px; }
.agency-row__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.agency-row__title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.agency-row__name { font-family: var(--sa-display); font-weight: 700; font-size: 20px; margin: 0; letter-spacing: -.01em; }
.agency-row__name a { color: var(--sa-ink); }
.agency-row__blurb { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sa-body); max-width: 560px; }
.agency-row__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.agency-row__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	font-size: 13px;
	color: var(--sa-muted);
	text-align: right;
}
.agency-row__aside .btn { margin-top: 8px; padding: 9px 16px; font-size: 13px; border-radius: 10px; }

/* Page head / breadcrumb */
.page-head { background: #fff; border-bottom: 1px solid var(--sa-divider); padding: 40px 0 24px; }
.page-head__title { font-size: 44px; letter-spacing: -.03em; margin-bottom: 10px; }
.page-head__description { color: var(--sa-body); font-size: 16px; max-width: 640px; margin: 0; }
.page-head__count { color: var(--sa-muted); font-size: 14px; margin: 10px 0 0; }
.breadcrumb { font-size: 13px; color: var(--sa-muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--sa-muted); }
.breadcrumb a:hover { color: var(--sa-ink); }
.breadcrumb span:last-child { color: var(--sa-ink); }

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-step { border: 1px solid var(--sa-border); border-radius: 18px; padding: 26px; background: #fff; }
.how-step__num {
	display: inline-flex; width: 28px; height: 28px;
	align-items: center; justify-content: center;
	background: var(--sa-ink); color: #fff;
	border-radius: 999px;
	font: 600 13px var(--sa-display);
	margin-bottom: 12px;
}
.how-step h3 { font-size: 17px; margin-bottom: 6px; }
.how-step p { margin: 0; color: var(--sa-body); font-size: 14px; line-height: 1.55; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
	background: #fff;
	border: 1px solid var(--sa-border);
	border-radius: 18px;
	overflow: hidden;
	padding: 0 0 20px;
	display: flex; flex-direction: column; gap: 10px;
}
.post-card__image img { display: block; width: 100%; height: 180px; object-fit: cover; }
.post-card__title { font-size: 18px; margin: 8px 20px 0; letter-spacing: -.01em; }
.post-card__title a { color: var(--sa-ink); }
.post-card__excerpt { margin: 0 20px; color: var(--sa-body); font-size: 14px; line-height: 1.5; }
.post-card__date { margin: 0 20px; color: var(--sa-muted); font-size: 13px; }

.post-single__content { padding: 8px 0 24px; }
.post-single__content h2 { font-size: 24px; letter-spacing: -.02em; }
.post-single__content p { font-size: 16px; line-height: 1.65; }
.post-single__content blockquote {
	margin: 24px 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--sa-accent);
	color: var(--sa-ink);
	font-weight: 500;
}
.post-single__hero img { border-radius: 18px; margin-top: 28px; }
.post-single__meta { color: var(--sa-muted); font-size: 14px; }

/* Agency profile */
.agency-profile__head { padding: 32px 0 28px; border-bottom: 0; }
.agency-profile__head-inner { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.agency-profile__logo img { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; display: block; }
.agency-profile__titles { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 10px; }
.agency-profile__name-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.agency-profile__name { margin: 0; font-size: 40px; letter-spacing: -.03em; }
.agency-profile__tagline { color: var(--sa-body); font-size: 17px; line-height: 1.5; margin: 0; }
.agency-profile__meta-row { display: flex; gap: 20px; font-size: 14px; color: var(--sa-muted); flex-wrap: wrap; }
.agency-profile__columns { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.agency-profile__about { max-width: 680px; display: flex; flex-direction: column; gap: 14px; }
.agency-profile__about h2, .agency-profile__about h3 { font-size: 24px; letter-spacing: -.02em; margin: 24px 0 0; }
.agency-profile__about p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--sa-body); }
.agency-profile__sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.agency-profile__cta-card {
	border: 1px solid var(--sa-border);
	border-radius: 18px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-shadow: var(--sa-shadow);
	background: #fff;
}
.agency-profile__cta-label { font-size: 13px; color: var(--sa-muted); }
.agency-profile__cta-price { font-family: var(--sa-display); font-weight: 700; font-size: 26px; color: var(--sa-ink); }
.agency-profile__cta-card .btn { text-align: center; }
.agency-profile__facts {
	border: 1px solid var(--sa-border);
	border-radius: 18px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 14px;
	background: #fff;
}
.agency-profile__facts h3 { font-size: 15px; margin: 0 0 2px; }
.agency-profile__facts dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.agency-profile__fact { display: flex; justify-content: space-between; gap: 12px; }
.agency-profile__fact dt { color: var(--sa-muted); }
.agency-profile__fact dd { margin: 0; font-weight: 500; color: var(--sa-ink); text-align: right; }
.agency-profile__social { display: flex; gap: 14px; padding-top: 6px; border-top: 1px solid var(--sa-divider); font-size: 14px; font-weight: 500; }

/* Submit page */
.submit-layout { display: grid; grid-template-columns: 400px 1fr; gap: 80px; align-items: start; }
.submit-pitch { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 24px; }
.submit-pitch__eyebrow {
	font-size: 13px; font-weight: 600; letter-spacing: .08em;
	text-transform: uppercase; color: var(--sa-accent);
}
.submit-pitch__title { font-size: 48px; line-height: 1.02; letter-spacing: -.03em; margin: 0; text-wrap: pretty; }
.submit-pitch__text { font-size: 17px; line-height: 1.55; color: var(--sa-body); margin: 0; }
.submit-pitch__steps { display: flex; flex-direction: column; gap: 12px; }
.submit-pitch__step { display: flex; gap: 14px; align-items: center; font-size: 15px; font-weight: 500; color: var(--sa-muted); }
.submit-pitch__step-num {
	width: 28px; height: 28px; border-radius: 999px;
	background: var(--sa-divider); color: var(--sa-muted);
	display: flex; align-items: center; justify-content: center;
	font: 600 13px var(--sa-display);
	flex-shrink: 0;
}
.submit-pitch__step--active { color: var(--sa-ink); }
.submit-pitch__step--active .submit-pitch__step-num { background: var(--sa-ink); color: #fff; }

/* CTA band + cards */
.cta-band { background: var(--sa-ink); border-radius: 24px; margin: 0 48px 72px; }
.cta-band .container { padding: 0 48px; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 48px; }
.cta-band h2 { color: #fff; margin: 0; font-size: 28px; letter-spacing: -.02em; }
.cta-card {
	background: var(--sa-accent-wash);
	border: 1px solid var(--sa-accent-tint);
	border-radius: 18px;
	padding: 28px;
	text-align: center;
	margin-bottom: 48px;
}
.cta-card h3 { font-size: 20px; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--sa-divider); margin-top: 40px; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 48px 48px 24px; font-size: 14px; }
.site-footer__brand p { color: var(--sa-muted); font-size: 14px; max-width: 320px; }
.site-footer h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--sa-muted); font-family: var(--sa-font); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--sa-body); }
.site-footer a:hover { color: var(--sa-ink); }
.site-logo--footer { color: var(--sa-ink); }
.site-footer__legal {
	border-top: 1px solid var(--sa-divider);
	padding-top: 18px; padding-bottom: 24px;
	font-size: 13px; color: var(--sa-muted);
}

/* Misc */
.pagination { margin-top: 36px; text-align: center; font-size: 14px; }
.pagination .page-numbers {
	display: inline-block;
	border: 1px solid var(--sa-border);
	border-radius: 10px;
	padding: 8px 14px;
	margin: 0 3px;
	color: var(--sa-body);
	font-weight: 500;
}
.pagination .page-numbers.current { background: var(--sa-ink); color: #fff; border-color: var(--sa-ink); }
.listing-empty { text-align: center; color: var(--sa-muted); padding: 40px 0; }
.search-form { display: flex; gap: 6px; max-width: 480px; margin: 16px auto; border: 1.5px solid var(--sa-input-border); border-radius: 14px; padding: 6px; }
.search-form input[type="search"] { flex: 1; padding: 0 14px; border: 0; outline: 0; font: 400 15px var(--sa-font); min-width: 0; }
.search-form .btn { border-radius: 10px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.submit-section__content { margin-bottom: 24px; }
.submit-section__content:empty { display: none; }

/* Responsive */
@media (max-width: 1080px) {
	.container { padding: 0 24px; }
	.category-grid { grid-template-columns: repeat(2, 1fr); }
	.agency-grid, .featured-strip, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.hero__inner { grid-template-columns: 1fr; gap: 40px; }
	.hero-demo { max-width: 520px; }
	.submit-layout { grid-template-columns: 1fr; gap: 40px; }
	.submit-pitch { position: static; }
	.agency-profile__columns { grid-template-columns: 1fr; }
	.agency-profile__sidebar { position: static; }
	.cta-band { margin: 0 24px 56px; }
}

@media (max-width: 700px) {
	.hero { padding: 44px 0 36px; }
	.hero__title { font-size: 38px; }
	.hero-demo { min-height: 0; padding: 20px; }
	.hero-demo__stage { margin-bottom: 24px; }
	.page-head__title { font-size: 30px; }
	.agency-profile__name { font-size: 30px; }
	.submit-pitch__title { font-size: 32px; }
	.category-grid, .agency-grid, .featured-strip, .post-grid, .how-grid { grid-template-columns: 1fr; }
	.agency-row { grid-template-columns: 44px 1fr; }
	.agency-row__logo img, .agency-row__logo .agency-card__logo-fallback { width: 44px; height: 44px; border-radius: 12px; font-size: 17px; }
	.agency-row__aside { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
	.agency-row__aside .btn { margin-top: 0; }
	.site-header__inner { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 12px; }
	.site-nav { order: 3; width: 100%; }
	.site-nav__list, .site-nav ul { gap: 18px; flex-wrap: wrap; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.cta-band { margin: 0 16px 40px; }
	.cta-band__inner { padding: 28px; }
	.hero__search { flex-direction: column; }
	.hero__search .btn { width: 100%; }
	.hero__search input[type="search"] { padding: 12px 14px; }
}

/* ------------------------------------------------------------------ */
/* Category page editorial copy (intro + FAQ) and website screenshots   */
/* ------------------------------------------------------------------ */

.cat-intro {
	margin: 20px 0 0;
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.cat-intro p {
	margin: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--sa-body);
}
.cat-intro h2 {
	font-size: 20px;
	letter-spacing: -.02em;
	margin: 14px 0 0;
}
.cat-intro ul {
	margin: 0;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.cat-intro li {
	font-size: 15px;
	line-height: 1.65;
	color: var(--sa-body);
}
.cat-intro strong { color: var(--sa-ink); }

.cat-faq-section { padding-top: 8px; }
.cat-faq {
	margin-top: 18px;
	max-width: 820px;
	border-top: 1px solid var(--sa-divider);
}
.cat-faq__item {
	border-bottom: 1px solid var(--sa-divider);
	padding: 16px 0;
}
.cat-faq__q {
	cursor: pointer;
	font-family: var(--sa-display);
	font-weight: 600;
	font-size: 17px;
	color: var(--sa-ink);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: baseline;
}
.cat-faq__q::-webkit-details-marker { display: none; }
.cat-faq__q::after {
	content: "+";
	color: var(--sa-muted);
	font-size: 20px;
	line-height: 1;
}
.cat-faq__item[open] .cat-faq__q::after { content: "–"; }
.cat-faq__a p {
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--sa-body);
	max-width: 68ch;
}

/* Website screenshot preview on the agency profile */
.agency-profile__preview {
	margin: 8px 0 0;
	border: 1px solid var(--sa-border);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
}
.agency-profile__preview img {
	display: block;
	width: 100%;
	height: auto;
}
.agency-profile__preview figcaption {
	font-size: 13px;
	color: var(--sa-muted);
	padding: 10px 14px;
	border-top: 1px solid var(--sa-divider);
}

/* Screenshot thumbnails read better with a hairline frame than as bare tiles */
.agency-row__logo img,
.agency-card__logo img,
.agency-profile__logo img {
	border: 1px solid var(--sa-border);
	background: #fff;
	object-position: top center;
}

@media (max-width: 900px) {
	.cat-intro { margin-top: 16px; }
}
