/* SaaS Directory Hub — design system */
.sdh, .sdh-logo {
	--sdh-bg: #f7f7fb;
	--sdh-surface: #ffffff;
	--sdh-ink: #12121a;
	--sdh-ink-2: #4a4a5a;
	--sdh-muted: #6b6b7b;
	--sdh-line: #e6e6ef;
	--sdh-brand: #5b4bff;
	--sdh-brand-2: #7c3aed;
	--sdh-brand-ink: #ffffff;
	--sdh-accent: #00b386;
	--sdh-warn: #b45309;
	--sdh-danger: #c2410c;
	--sdh-radius: 14px;
	--sdh-shadow: 0 1px 2px rgba(18,18,26,.04), 0 4px 16px rgba(18,18,26,.06);
	--sdh-shadow-h: 0 2px 4px rgba(18,18,26,.06), 0 12px 32px rgba(91,75,255,.14);
}
@media (prefers-color-scheme: dark) {
	.sdh-dark-auto .sdh { --sdh-bg:#0e0e14; --sdh-surface:#17171f; --sdh-ink:#f2f2f7; --sdh-ink-2:#c9c9d6; --sdh-muted:#9a9aab; --sdh-line:#2a2a36; }
}
.sdh-main { background: var(--sdh-bg, #f7f7fb); }
.sdh { color: var(--sdh-ink); font-family: inherit; line-height: 1.6; background: var(--sdh-bg); padding-bottom: 48px; }
.sdh *, .sdh *::before, .sdh *::after { box-sizing: border-box; }
.sdh a { color: var(--sdh-brand); text-decoration: none; }
.sdh a:hover { text-decoration: underline; }
.sdh h1, .sdh h2, .sdh h3 { color: var(--sdh-ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
.sdh h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
.sdh h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
.sdh h3 { font-size: 1.05rem; font-weight: 700; }
.sdh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sdh-wrap--narrow { max-width: 900px; }
.sdh .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Hero */
.sdh-hero { background: radial-gradient(1200px 500px at 15% -10%, rgba(124,58,237,.18), transparent 60%), radial-gradient(900px 500px at 100% 0%, rgba(0,179,134,.14), transparent 60%), var(--sdh-bg); padding: 64px 0 40px; text-align: center; }
.sdh-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sdh-brand); background: rgba(91,75,255,.08); border: 1px solid rgba(91,75,255,.2); padding: 4px 12px; border-radius: 999px; margin: 0 0 16px; }
.sdh-hero h1 { max-width: 880px; margin: 0 auto 14px; background: linear-gradient(120deg, var(--sdh-ink) 30%, var(--sdh-brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sdh-hero__lead { max-width: 680px; margin: 0 auto 28px; color: var(--sdh-ink-2); font-size: 1.1rem; }
.sdh-search { display: flex; gap: 8px; max-width: 760px; margin: 0 auto; background: var(--sdh-surface); padding: 8px; border-radius: 16px; box-shadow: var(--sdh-shadow-h); border: 1px solid var(--sdh-line); }
.sdh-search input, .sdh-search select { border: 0; background: transparent; font-size: 1rem; padding: 10px 12px; color: var(--sdh-ink); min-width: 0; }
.sdh-search input { flex: 1; outline: none; }
.sdh-search select { border-left: 1px solid var(--sdh-line); max-width: 220px; }
.sdh-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--sdh-muted); font-size: .95rem; }
.sdh-stats strong { color: var(--sdh-ink); font-size: 1.1rem; }

/* Buttons + pills */
.sdh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(135deg, var(--sdh-brand), var(--sdh-brand-2)); color: var(--sdh-brand-ink) !important; border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease; }
.sdh-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(91,75,255,.3); }
.sdh-btn--lg { padding: 12px 20px; font-size: 1rem; }
.sdh-btn--ghost { background: transparent; color: var(--sdh-ink) !important; border: 1px solid var(--sdh-line); }
.sdh-btn--ghost:hover { border-color: var(--sdh-brand); box-shadow: none; }
.sdh-pill, .sdh-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f0f0f7; color: var(--sdh-ink-2); text-decoration: none !important; }
.sdh-pill--completely_free { background: #dcfce7; color: #166534; }
.sdh-pill--free_plan { background: #dbeafe; color: #1e40af; }
.sdh-pill--freemium { background: #ede9fe; color: #5b21b6; }
.sdh-pill--free_trial { background: #fef3c7; color: #92400e; }
.sdh-pill--discount { background: #fee2e2; color: #b91c1c; }
.sdh-pill--expired, .sdh-badge--expired { background: #e5e7eb; color: #374151; }
.sdh-badge--verified { background: #d1fae5; color: #065f46; }
.sdh-badge--partial { background: #fef3c7; color: #92400e; }
.sdh-badge--unverified { background: #fee2e2; color: #991b1b; }

/* Logos */
.sdh-logo { --s: 44px; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: calc(var(--s) * .26); background: #fff; border: 1px solid var(--sdh-line, #e6e6ef); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; vertical-align: middle; }
.sdh-logo img { width: 72%; height: 72%; object-fit: contain; display: block; }
.sdh-logo--dark { background: #1c1c28; border-color: #1c1c28; }
.sdh-logo--fallback { background: linear-gradient(135deg, hsl(var(--h,250) 70% 58%), hsl(calc(var(--h,250) + 40) 70% 48%)); color: #fff; font-weight: 800; font-size: calc(var(--s) * .44); border: 0; }

/* Cards */
.sdh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.sdh-card { background: var(--sdh-surface); border: 1px solid var(--sdh-line); border-radius: var(--sdh-radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sdh-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; min-width: 0; }
.sdh-card:hover { transform: translateY(-3px); box-shadow: var(--sdh-shadow-h); border-color: rgba(91,75,255,.35); }
.sdh-card.is-featured { border-color: rgba(124,58,237,.45); background: linear-gradient(180deg, rgba(124,58,237,.05), var(--sdh-surface) 40%); }
.sdh-card__head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sdh-card__titles { min-width: 0; }
.sdh-card__title { margin: 0 !important; font-size: 1.05rem !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdh-card__title a { color: var(--sdh-ink) !important; }
.sdh-card__cat { font-size: .8rem; color: var(--sdh-muted); }
.sdh-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.sdh-card__desc { margin: 0; color: var(--sdh-ink-2); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.sdh-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.sdh-price { font-size: 1.3rem; font-weight: 800; color: var(--sdh-ink); }
.sdh-price small { font-size: .75rem; font-weight: 600; color: var(--sdh-muted); }
.sdh-was { color: var(--sdh-muted); }
.sdh-renew { font-size: .82rem; color: var(--sdh-warn); font-weight: 600; }
.sdh-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--sdh-line); padding-top: 12px; margin-top: 2px; }
.sdh-card__checked { font-size: .72rem; color: var(--sdh-muted); line-height: 1.3; }
.sdh-card__actions { display: flex; gap: 6px; }
.sdh-card__actions .sdh-btn { padding: 6px 11px; font-size: .82rem; }

/* Pillars */
.sdh-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 8px 0 40px; }
.sdh-pillar { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; color: #fff !important; text-decoration: none !important; min-height: 180px; box-shadow: var(--sdh-shadow); transition: transform .18s ease; }
.sdh-pillar:hover { transform: translateY(-3px); }
.sdh-pillar--tools { background: linear-gradient(140deg, #5b4bff, #8b5cf6); }
.sdh-pillar--deals { background: linear-gradient(140deg, #e11d48, #f97316); }
.sdh-pillar--templates { background: linear-gradient(140deg, #0ea5e9, #6366f1); }
.sdh-pillar--hosting { background: linear-gradient(140deg, #059669, #0d9488); }
.sdh-pillar__title { font-size: 1.2rem; font-weight: 800; }
.sdh-pillar__text { opacity: .92; font-size: .92rem; flex: 1; }
.sdh-pillar__cta { font-weight: 700; }

/* Sections + chips */
.sdh-block { margin: 40px 0; }
.sdh-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sdh-block__head h2 { margin: 0; }
.sdh-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.sdh-chips a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--sdh-line); border-radius: 999px; background: var(--sdh-surface); color: var(--sdh-ink-2) !important; font-size: .87rem; text-decoration: none !important; }
.sdh-chips a span { color: var(--sdh-muted); font-size: .78rem; }
.sdh-chips a:hover, .sdh-chips a.is-active { border-color: var(--sdh-brand); color: var(--sdh-brand) !important; background: rgba(91,75,255,.06); }
.sdh-chips--modes { margin: 0 0 12px; }

/* Archive header + filters */
.sdh-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 20px 0 0; margin: 0 0 12px; font-size: .85rem; color: var(--sdh-muted); }
.sdh-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sdh-line); }
.sdh-head { padding: 12px 0 20px; }
.sdh-lead { color: var(--sdh-ink-2); font-size: 1.05rem; max-width: 820px; margin: 0 0 12px; }
.sdh-meta { color: var(--sdh-muted); font-size: .9rem; }
.sdh-filters { display: flex; flex-wrap: wrap; gap: 8px; background: var(--sdh-surface); border: 1px solid var(--sdh-line); padding: 10px; border-radius: 14px; box-shadow: var(--sdh-shadow); margin-bottom: 16px; position: sticky; top: 8px; z-index: 5; }
.sdh-filters input, .sdh-filters select { border: 1px solid var(--sdh-line); border-radius: 10px; padding: 8px 10px; font-size: .92rem; background: var(--sdh-surface); color: var(--sdh-ink); min-width: 0; }
.sdh-filters input { flex: 1 1 220px; }
.sdh-count { color: var(--sdh-muted); font-size: .9rem; margin: 0 0 12px; }
.sdh-note { background: rgba(91,75,255,.06); border: 1px solid rgba(91,75,255,.18); border-radius: 12px; padding: 10px 14px; font-size: .9rem; color: var(--sdh-ink-2); }
.sdh-empty { padding: 32px; text-align: center; color: var(--sdh-muted); background: var(--sdh-surface); border: 1px dashed var(--sdh-line); border-radius: var(--sdh-radius); }
.sdh-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 28px 0; justify-content: center; }
.sdh-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--sdh-line); border-radius: 10px; background: var(--sdh-surface); }
.sdh-pagination .current { background: var(--sdh-brand); color: #fff; border-color: var(--sdh-brand); }

/* Single */
.sdh-alert { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.sdh-single__head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--sdh-surface); border: 1px solid var(--sdh-line); border-radius: 20px; padding: 24px; box-shadow: var(--sdh-shadow); margin-bottom: 24px; }
.sdh-single__head h1 { margin-bottom: 4px; }
.sdh-single__head .sdh-lead { margin-bottom: 10px; }
.sdh-single__cta { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sdh-single__cta small { color: var(--sdh-muted); font-size: .75rem; }
.sdh-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sdh-single__main > section { background: var(--sdh-surface); border: 1px solid var(--sdh-line); border-radius: var(--sdh-radius); padding: 22px; margin-bottom: 18px; }
.sdh-single__side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.sdh-box { background: var(--sdh-surface); border: 1px solid var(--sdh-line); border-radius: var(--sdh-radius); padding: 18px; box-shadow: var(--sdh-shadow); }
.sdh-box h2 { font-size: 1.05rem; }
.sdh-answer { border-left: 4px solid var(--sdh-accent) !important; }
.sdh-answer h2 { font-size: 1.15rem; }
.sdh-answer p { margin: 0 0 6px; font-size: 1.02rem; }
.sdh-shot { margin: 0 0 18px; border-radius: var(--sdh-radius); overflow: hidden; border: 1px solid var(--sdh-line); aspect-ratio: 1200 / 630; background: #fff; }
.sdh-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sdh-facts { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sdh-facts th, .sdh-facts td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--sdh-line); vertical-align: top; }
.sdh-facts th { color: var(--sdh-muted); font-weight: 600; width: 46%; padding-right: 10px; }
.sdh-facts small { color: var(--sdh-muted); }
.sdh-nv { color: var(--sdh-muted); font-style: italic; }
.sdh-sources dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 10px; font-size: .9rem; }
.sdh-sources dt { color: var(--sdh-muted); }
.sdh-sources dd { margin: 0; word-break: break-word; }
.sdh-small { font-size: .82rem; color: var(--sdh-muted); }
.sdh-checks, .sdh-crosses { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sdh-checks li, .sdh-crosses li { padding-left: 26px; position: relative; }
.sdh-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--sdh-accent); font-weight: 800; }
.sdh-crosses li::before { content: "–"; position: absolute; left: 4px; color: var(--sdh-danger); font-weight: 800; }
.sdh-faq details { border-bottom: 1px solid var(--sdh-line); padding: 10px 0; }
.sdh-faq summary { cursor: pointer; font-weight: 600; }
.sdh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sdh-related-links ul { padding-left: 18px; }
.sdh-disclosure { font-size: .82rem; color: var(--sdh-muted); border-top: 1px solid var(--sdh-line); padding-top: 14px; margin-top: 32px; }

/* Tables */
.sdh-table-wrap { overflow-x: auto; border: 1px solid var(--sdh-line); border-radius: var(--sdh-radius); background: var(--sdh-surface); box-shadow: var(--sdh-shadow); margin: 16px 0; }
.sdh-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sdh-table th, .sdh-table td { padding: 10px 12px; border-bottom: 1px solid var(--sdh-line); text-align: left; white-space: nowrap; }
.sdh-table thead th { background: #fafafe; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--sdh-muted); position: sticky; top: 0; }
.sdh-table tbody tr:hover { background: rgba(91,75,255,.03); }
.sdh-table small { color: var(--sdh-muted); white-space: normal; }
.sdh-provider { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--sdh-ink) !important; }

/* Guides + trust */
.sdh-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sdh-guide-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--sdh-surface); border: 1px solid var(--sdh-line); border-radius: var(--sdh-radius); color: var(--sdh-ink-2) !important; text-decoration: none !important; box-shadow: var(--sdh-shadow); transition: border-color .15s ease; }
.sdh-guide-card strong { color: var(--sdh-ink); font-size: 1.02rem; }
.sdh-guide-card:hover { border-color: var(--sdh-brand); }
.sdh-guide .sdh-prose { font-size: 1.05rem; }
.sdh-prose p { margin: 0 0 1em; }
.sdh-more { font-weight: 600; }
.sdh-trust { background: var(--sdh-surface); border: 1px solid var(--sdh-line); border-radius: 20px; padding: 28px; margin: 48px 0 0; }
.sdh-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.sdh-trust__grid p { color: var(--sdh-ink-2); font-size: .93rem; margin: 0; }

@media (max-width: 900px) {
	.sdh-single__grid { grid-template-columns: 1fr; }
	.sdh-single__side { position: static; }
	.sdh-single__head { grid-template-columns: auto 1fr; }
	.sdh-single__cta { grid-column: 1 / -1; align-items: stretch; }
	.sdh-two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.sdh-wrap { padding: 0 16px; }
	.sdh-hero { padding: 40px 0 28px; }
	.sdh-search { flex-direction: column; }
	.sdh-search select { border-left: 0; border-top: 1px solid var(--sdh-line); max-width: none; }
	.sdh-filters { position: static; }
	.sdh-filters select, .sdh-filters .sdh-btn { flex: 1 1 45%; }
	.sdh-grid { grid-template-columns: 1fr; }
	.sdh-single__head { padding: 18px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.sdh-card, .sdh-btn, .sdh-pillar { transition: none; }
	.sdh-card:hover, .sdh-pillar:hover, .sdh-btn:hover { transform: none; }
}

/* Pagination: always a single horizontal row, whatever list styles the theme applies. */
.sdh .sdh-pagination ul.page-numbers { display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; list-style: none !important; margin: 32px 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; width: auto !important; }
.sdh .sdh-pagination ul.page-numbers > li { display: inline-flex !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; list-style: none !important; }
.sdh .sdh-pagination ul.page-numbers > li::before, .sdh .sdh-pagination ul.page-numbers > li::marker { content: none !important; }
.sdh .sdh-pagination .page-numbers:not(ul) { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 999px; white-space: nowrap; text-decoration: none; }