/*
Theme Name: Credence Intel
Theme URI: https://credence-intel.com/
Author: Credence Intel
Description: Bright, interactive theme for Credence Intel: independent software comparisons with verified pricing. Pairs with the Credence Intel Core plugin (tool data, comparison widgets, partner links, SEO).
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: credence
*/

/* ---------------------------------------------------------------- Tokens */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 200 800;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 100 800;
	font-display: swap;
}

:root {
	--blue: #2563ff;
	--blue-700: #1846d1;
	--blue-900: #0f2c8a;
	--blue-100: #dbe7ff;
	--blue-50: #eef4ff;
	--coral: #ff5a5f;
	--coral-700: #e3393f;
	--coral-50: #fff0f0;
	--sun: #ffc53d;
	--sun-50: #fff8e5;
	--green: #12b76a;
	--green-700: #0b8a4f;
	--green-50: #e8f8f0;
	--ink: #0b1533;
	--ink-2: #33405f;
	--muted: #5d6987;
	--line: #dbe4f3;
	--line-2: #c7d4ea;
	--sky: #f4f8ff;
	--white: #fff;

	--grad-hero: radial-gradient(1100px 520px at 88% -10%, rgba(255, 90, 95, .55), transparent 60%), radial-gradient(700px 420px at 8% 110%, rgba(255, 197, 61, .35), transparent 60%), linear-gradient(135deg, #1846d1 0%, #2563ff 55%, #4b7bff 100%);
	--grad-cta: linear-gradient(135deg, #ff5a5f 0%, #ff7a59 100%);

	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--r-sm: 8px;
	--r: 14px;
	--r-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(11, 21, 51, .06), 0 1px 1px rgba(11, 21, 51, .04);
	--shadow: 0 10px 30px -12px rgba(15, 44, 138, .25), 0 2px 6px rgba(11, 21, 51, .05);
	--shadow-lg: 0 30px 60px -20px rgba(15, 44, 138, .35);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; }
p, ul, ol, table, figure { margin: 0 0 1.2em; }
small { font-size: .85em; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--blue-50); padding: .1em .35em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--sun); color: var(--ink); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--r-sm); }

.ci-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ci-wrap--narrow { max-width: 820px; }
.ci-section { padding: clamp(48px, 7vw, 88px) 0; }
.ci-section--sky { background: var(--sky); }
.ci-section--tight { padding: 40px 0; }
.ci-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--blue); margin-bottom: .8rem; }
.ci-eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--coral); }
.ci-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 46em; }
.ci-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.ci-section-head > div { max-width: 720px; }
.ci-section-head p { color: var(--muted); margin: 0; }
.ci-muted { color: var(--muted); }
.ci-center { text-align: center; }

/* --------------------------------------------------------------- Buttons */
.ci-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font: 700 .97rem/1 var(--font); letter-spacing: -.005em;
	padding: .95rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.ci-btn:hover { transform: translateY(-1px); }
.ci-btn:active { transform: translateY(0); }
.ci-btn--cta { background: var(--grad-cta); color: #fff; box-shadow: 0 10px 22px -10px rgba(255, 90, 95, .75); }
.ci-btn--cta:hover { color: #fff; box-shadow: 0 14px 26px -10px rgba(255, 90, 95, .9); }
.ci-btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(37, 99, 255, .8); }
.ci-btn--primary:hover { background: var(--blue-700); color: #fff; }
.ci-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.ci-btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.ci-btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
.ci-btn--light:hover { background: #fff; color: var(--blue-700); }
.ci-btn--sm { padding: .62rem 1rem; font-size: .88rem; }
.ci-btn--block { width: 100%; }
.ci-btn svg { width: 18px; height: 18px; flex: none; }

/* ----------------------------------------------------------------- Header */
.ci-topbar { background: var(--ink); color: #c9d4ee; font-size: .82rem; }
.ci-topbar .ci-wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; flex-wrap: wrap; }
.ci-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.ci-topbar a:hover { color: var(--sun); }
.ci-topbar strong { color: var(--sun); font-weight: 700; }

.ci-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(219, 228, 243, .8); }
.admin-bar .ci-header { top: 32px; }
.ci-header .ci-wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 70px; }
.ci-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: none; }
.ci-brand svg { width: 38px; height: 38px; }
.ci-brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; line-height: 1; }
.ci-brand-name span { color: var(--blue); }
.ci-brand-tag { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }

.ci-nav { margin-left: auto; }
.ci-nav ul { list-style: none; margin: 0; padding: 0; }
.ci-nav > ul { display: flex; align-items: center; gap: .25rem; }
.ci-nav li { position: relative; }
.ci-nav a { display: block; padding: .6rem .8rem; border-radius: 10px; color: var(--ink); font-weight: 650; font-size: .95rem; text-decoration: none; }
.ci-nav a:hover, .ci-nav .current-menu-item > a, .ci-nav .current-menu-ancestor > a { color: var(--blue); background: var(--blue-50); }
.ci-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.ci-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: -12px; min-width: 300px; padding: .55rem; background: #fff;
	border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.ci-nav li:hover > .sub-menu, .ci-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ci-nav .sub-menu a { padding: .6rem .75rem; font-size: .93rem; }
.menu-item-description { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.ci-header-cta { flex: none; }
.ci-nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; color: var(--ink); cursor: pointer; border-radius: 10px; }
.ci-nav-toggle:hover { background: var(--blue-50); }

@media (max-width: 1020px) {
	.ci-nav-toggle { display: inline-flex; }
	.ci-header-cta { display: none; }
	.ci-nav { position: fixed; inset: 70px 0 0 0; background: #fff; overflow-y: auto; padding: 1rem var(--gutter) 3rem; transform: translateX(100%); transition: transform .25s ease; margin: 0; }
	.admin-bar .ci-nav { top: 116px; }
	.ci-nav.is-open { transform: none; }
	.ci-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.ci-nav > ul > li { border-bottom: 1px solid var(--line); }
	.ci-nav a { padding: .9rem .25rem; font-size: 1.05rem; }
	.ci-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .75rem .75rem; min-width: 0; }
	.ci-nav .menu-item-has-children > a::after { display: none; }
	body.ci-nav-open { overflow: hidden; }
}

/* ------------------------------------------------------------- Page heads */
.ci-hero { position: relative; color: #fff; background: var(--grad-hero); overflow: hidden; isolation: isolate; }
.ci-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); z-index: -1; }
.ci-hero h1, .ci-hero h2 { color: #fff; }
.ci-hero .ci-eyebrow { color: var(--sun); }
.ci-hero .ci-eyebrow::before { background: var(--sun); }
.ci-hero .ci-lede { color: rgba(255, 255, 255, .9); }
.ci-hero a:not(.ci-btn) { color: #fff; }

.ci-home-hero .ci-wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(56px, 8vw, 104px); }
.ci-home-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.04; }
.ci-home-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--sun), #ffd97a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ci-hero-media { position: relative; }
.ci-hero-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; transform: rotate(1.2deg); border: 6px solid rgba(255, 255, 255, .9); }
.ci-hero-badge { position: absolute; background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: .8rem 1rem; font-size: .85rem; font-weight: 650; display: flex; align-items: center; gap: .65rem; }
.ci-hero-badge strong { display: block; font-size: 1.25rem; line-height: 1.1; font-weight: 800; }
.ci-hero-badge span.ci-dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ci-hero-badge--a { left: -22px; bottom: 26px; }
.ci-hero-badge--b { right: -14px; top: 22px; }
.ci-hero-badge--a .ci-dot { background: var(--green-50); color: var(--green-700); }
.ci-hero-badge--b .ci-dot { background: var(--sun-50); color: #a66f00; }
.ci-hero-badge svg { width: 20px; height: 20px; }
.ci-hero-credit { position: absolute; right: 8px; bottom: -26px; font-size: .7rem; color: rgba(255,255,255,.75); }
.ci-hero-credit a { color: rgba(255,255,255,.9) !important; }

@media (max-width: 900px) {
	.ci-home-hero .ci-wrap { grid-template-columns: 1fr; }
	.ci-hero-media { max-width: 560px; }
	.ci-hero-badge--a { left: 8px; }
	.ci-hero-badge--b { right: 8px; }
}

/* Search in hero */
.ci-search { position: relative; margin: 1.8rem 0 1rem; max-width: 580px; }
.ci-search input { width: 100%; font: 600 1.02rem var(--font); color: var(--ink); padding: 1.05rem 1.2rem 1.05rem 3.1rem; border-radius: 999px; border: 0; background: #fff; box-shadow: 0 18px 40px -16px rgba(11, 21, 51, .55); }
.ci-search input::placeholder { color: #8a94ad; font-weight: 500; }
.ci-search > svg { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--blue); pointer-events: none; }
.ci-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 20; overflow: hidden; display: none; color: var(--ink); }
.ci-search-results.is-open { display: block; }
.ci-search-results a { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.ci-search-results a:first-child { border-top: 0; }
.ci-search-results a:hover, .ci-search-results a.is-active { background: var(--blue-50); }
.ci-search-results img { width: 28px; height: 28px; border-radius: 8px; }
.ci-search-results small { display: block; color: var(--muted); font-weight: 500; }
.ci-search-results .ci-search-empty { padding: .9rem 1rem; color: var(--muted); }
.ci-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ci-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; font-size: .86rem; font-weight: 650; text-decoration: none; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.ci-chip:hover { background: #fff; color: var(--blue-700) !important; }

/* Inner page header */
.ci-pagehead { position: relative; color: #fff; background: var(--grad-hero); overflow: hidden; isolation: isolate; }
.ci-pagehead::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 85%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 85%); z-index: -1; }
.ci-pagehead .ci-wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2.5rem; align-items: center; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 72px); }
.ci-pagehead--noimg .ci-wrap { grid-template-columns: 1fr; max-width: 920px; }
.ci-pagehead h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.ci-pagehead .ci-eyebrow { color: var(--sun); }
.ci-pagehead .ci-eyebrow::before { background: var(--sun); }
.ci-pagehead .ci-lede { color: rgba(255, 255, 255, .92); }
.ci-pagehead-media img { border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 5px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-lg); }
.ci-pagehead-media figcaption { font-size: .7rem; color: rgba(255,255,255,.75); margin-top: .5rem; text-align: right; }
.ci-pagehead-media figcaption a { color: rgba(255,255,255,.9); }
.ci-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.2rem; font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
.ci-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.ci-meta svg { width: 16px; height: 16px; }
.ci-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.1rem; padding: 0; font-size: .82rem; font-weight: 600; }
.ci-crumbs li { color: rgba(255, 255, 255, .78); }
.ci-crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.ci-crumbs a { color: #fff; text-decoration: none; }
.ci-crumbs a:hover { text-decoration: underline; }
@media (max-width: 860px) {
	.ci-pagehead .ci-wrap { grid-template-columns: 1fr; }
	.ci-pagehead-media { display: none; }
}

/* --------------------------------------------------------- Article layout */
.ci-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(32px, 5vw, 56px); padding-bottom: 80px; }
.ci-layout-article-notoc .ci-article-wrap, .ci-article-wrap--full { grid-template-columns: minmax(0, 1fr); }
.ci-prose { min-width: 0; }
.ci-prose > * { max-width: 760px; }
.ci-prose > .ci-wide, .ci-prose > .ci-tools, .ci-prose > .ci-table-wrap, .ci-prose > .ci-calc, .ci-prose > .ci-finder, .ci-prose > .ci-grid, .ci-prose > .ci-callout, .ci-prose > .ci-plans { max-width: none; }
.ci-prose h2 { margin-top: 2.4em; padding-top: .2em; }
.ci-prose h2:first-child { margin-top: 0; }
.ci-prose h3 { margin-top: 1.8em; }
.ci-prose ul, .ci-prose ol { padding-left: 1.3em; }
.ci-prose li { margin-bottom: .45em; }
.ci-prose li::marker { color: var(--blue); font-weight: 700; }
.ci-prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--blue); background: var(--blue-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.ci-toc { position: sticky; top: 96px; align-self: start; font-size: .92rem; }
.ci-toc-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: .7rem; }
.ci-toc ol { list-style: none; margin: 0 0 1.5rem; padding: 0; border-left: 2px solid var(--line); }
.ci-toc li a { display: block; padding: .38rem 0 .38rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-weight: 600; line-height: 1.35; }
.ci-toc li a:hover { color: var(--blue); }
.ci-toc li a.is-active { color: var(--blue); border-left-color: var(--blue); }
.ci-toc-cta { background: var(--sky); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; font-size: .88rem; color: var(--ink-2); }
.ci-toc-cta strong { display: block; color: var(--ink); margin-bottom: .25rem; }
@media (max-width: 1020px) {
	.ci-article-wrap { grid-template-columns: minmax(0, 1fr); }
	.ci-toc { display: none; }
}

/* ------------------------------------------------------------------ Tables */
.ci-table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.ci-table-wrap table { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sky); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 800; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafcff; }
td.ci-num, th.ci-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
caption { caption-side: bottom; text-align: left; padding: .7rem 1rem; font-size: .8rem; color: var(--muted); }
.ci-table-best td { background: var(--green-50) !important; }

/* ------------------------------------------------------------ Badges/tags */
.ci-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 750; line-height: 1; padding: .38rem .6rem; border-radius: 999px; white-space: nowrap; }
.ci-badge--free { background: var(--green-50); color: var(--green-700); }
.ci-badge--trial { background: var(--sun-50); color: #8a5a00; }
.ci-badge--paid { background: var(--coral-50); color: var(--coral-700); }
.ci-badge--blue { background: var(--blue-50); color: var(--blue-700); }
.ci-badge--ink { background: var(--ink); color: #fff; }
.ci-badge svg { width: 13px; height: 13px; }
.ci-src { font-size: .78rem; color: var(--muted); }
.ci-src a { color: var(--muted); }
.ci-checked { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 650; color: var(--green-700); }
.ci-checked svg { width: 14px; height: 14px; }

/* --------------------------------------------------------- Callouts/notes */
.ci-disclosure { display: flex; gap: .8rem; align-items: flex-start; background: var(--sun-50); border: 1px solid #ffe3a0; border-radius: var(--r); padding: .9rem 1.1rem; font-size: .9rem; color: #5b4300; margin: 0 0 2rem; max-width: none !important; }
.ci-disclosure svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: #b07a00; }
.ci-disclosure a { color: #5b4300; font-weight: 700; }
.ci-callout { border-radius: var(--r); padding: 1.3rem 1.4rem; margin: 1.8rem 0; background: var(--blue-50); border: 1px solid var(--blue-100); }
.ci-callout > :last-child { margin-bottom: 0; }
.ci-callout h3, .ci-callout h4 { margin-top: 0; }
.ci-callout--green { background: var(--green-50); border-color: #bfe9d4; }
.ci-callout--coral { background: var(--coral-50); border-color: #ffd0d1; }
.ci-callout--sun { background: var(--sun-50); border-color: #ffe3a0; }
.ci-quick { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .7rem; }
.ci-quick li { position: relative; padding-left: 2rem; margin: 0; }
.ci-quick li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.ci-note { font-size: .86rem; color: var(--muted); }

/* --------------------------------------------------------------- Figures */
.ci-figure { margin: 2rem 0; }
.ci-figure img { border-radius: var(--r); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ci-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.ci-credit, .ci-credit a { color: var(--muted); }

/* ----------------------------------------------------------- Card grids */
.ci-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ci-grid--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.ci-grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ci-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; color: var(--ink); text-decoration: none; }
a.ci-card:hover, .ci-card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); color: var(--ink); }
.ci-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-50); }
.ci-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.ci-card:hover .ci-card-img img { transform: scale(1.05); }
.ci-card-body { padding: 1.2rem 1.3rem 1.35rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.ci-card-body h3 { margin: 0; font-size: 1.12rem; }
.ci-card-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.ci-card-foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .85rem; font-weight: 700; color: var(--blue); }
.ci-card-foot .ci-arrow { transition: transform .15s; }
a.ci-card:hover .ci-arrow { transform: translateX(4px); }
.ci-card-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.ci-card-logos { display: flex; margin-top: .3rem; }
.ci-card-logos img { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #fff; background: #fff; margin-right: -6px; box-shadow: var(--shadow-sm); }

/* Category tiles (home) */
.ci-cat { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 230px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.ci-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .45s ease; }
.ci-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 21, 51, 0) 20%, rgba(11, 21, 51, .88) 100%); }
.ci-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: #fff; }
.ci-cat:hover img { transform: scale(1.06); }
.ci-cat-body { padding: 1.2rem 1.3rem; width: 100%; }
.ci-cat-body h3 { color: #fff; margin: 0 0 .2rem; font-size: 1.2rem; }
.ci-cat-body p { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .85); }
.ci-cat-count { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); font-weight: 800; font-size: .75rem; padding: .35rem .65rem; border-radius: 999px; }
.ci-cat-free { position: absolute; top: 14px; right: 14px; background: var(--green); color: #fff; font-weight: 800; font-size: .72rem; padding: .35rem .6rem; border-radius: 999px; }

/* Stat strip */
.ci-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -48px; position: relative; z-index: 3; }
.ci-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.ci-stat strong { display: block; font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--blue); font-variant-numeric: tabular-nums; }
.ci-stat:nth-child(2) strong { color: var(--green); }
.ci-stat:nth-child(3) strong { color: var(--coral); }
.ci-stat:nth-child(4) strong { color: #d99a00; }
.ci-stat span { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
@media (max-width: 860px) { .ci-stats { grid-template-columns: repeat(2, 1fr); } }

/* Trust strip */
.ci-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ci-trust-item { display: flex; gap: 1rem; align-items: flex-start; }
.ci-trust-item .ci-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--blue-50); color: var(--blue); }
.ci-trust-item:nth-child(2) .ci-ico { background: var(--coral-50); color: var(--coral); }
.ci-trust-item:nth-child(3) .ci-ico { background: var(--green-50); color: var(--green); }
.ci-trust-item svg { width: 24px; height: 24px; }
.ci-trust-item h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.ci-trust-item p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .ci-trust { grid-template-columns: 1fr; } }

/* CTA band */
.ci-band { border-radius: var(--r-lg); background: var(--grad-hero); color: #fff; padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center; box-shadow: var(--shadow-lg); }
.ci-band h2, .ci-band h3 { color: #fff; margin: 0 0 .4rem; }
.ci-band p { margin: 0; color: rgba(255, 255, 255, .9); }
.ci-band .ci-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
@media (max-width: 760px) { .ci-band { grid-template-columns: 1fr; } }

/* FAQ */
.ci-faq { display: grid; gap: .7rem; max-width: 820px; }
.ci-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 1.2rem; transition: border-color .15s, box-shadow .15s; }
.ci-faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.ci-faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; font-weight: 750; position: relative; }
.ci-faq summary::-webkit-details-marker { display: none; }
.ci-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 800; font-size: 1.1rem; transition: transform .2s; }
.ci-faq details[open] summary::after { content: "–"; background: var(--blue); color: #fff; }
.ci-faq details > div { padding: 0 0 1.1rem; color: var(--ink-2); }
.ci-faq details > div > :last-child { margin-bottom: 0; }

/* Posts/archive */
.ci-archive { padding: 48px 0 80px; }
.ci-pagination { margin-top: 2.5rem; display: flex; gap: .4rem; justify-content: center; }
.ci-pagination .page-numbers { padding: .55rem .95rem; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.ci-pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 404 / search */
.ci-404 { text-align: center; padding: 100px 0; }
.ci-404 h1 { font-size: clamp(3rem, 10vw, 7rem); color: var(--blue); margin: 0; }
.searchform { display: flex; gap: .5rem; max-width: 520px; margin: 1.5rem auto 0; }
.searchform input[type="search"] { flex: 1; font: 500 1rem var(--font); padding: .85rem 1.1rem; border-radius: 999px; border: 2px solid var(--line-2); }
.searchform input[type="search"]:focus { border-color: var(--blue); outline: none; }

/* ----------------------------------------------------------------- Footer */
.ci-footer { background: var(--ink); color: #b9c5e2; padding: 72px 0 32px; font-size: .92rem; margin-top: 0; position: relative; overflow: hidden; }
.ci-footer::before { content: ""; position: absolute; top: -200px; right: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 255, .45), transparent 65%); }
.ci-footer .ci-wrap { position: relative; }
.ci-footer a { color: #e3e9f8; text-decoration: none; }
.ci-footer a:hover { color: var(--sun); }
.ci-footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ci-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1rem; }
.ci-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ci-footer .ci-brand { color: #fff; }
.ci-footer .ci-brand-tag { color: #9aa8c9; }
.ci-footer-disclaimer { font-size: .82rem; color: #8f9cbd; margin: 1.8rem 0 1rem; max-width: 70em; }
.ci-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; color: #8f9cbd; }
@media (max-width: 900px) { .ci-footer-top { grid-template-columns: 1fr 1fr; } .ci-footer-top > div:first-child { grid-column: 1 / -1; } }

/* Reveal animation */
@media (prefers-reduced-motion: no-preference) {
	.ci-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
	.ci-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Back to top */
.ci-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 40; }
.ci-top.is-visible { opacity: 1; visibility: visible; }
.ci-top svg { width: 20px; height: 20px; }
body.ci-compare-open .ci-top { bottom: 96px; }

/* Utility */
.ci-mt-0 { margin-top: 0 !important; }
.ci-mb-0 { margin-bottom: 0 !important; }
.ci-flex { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* Disclosure on full-width (landing) pages sits inside the content width. */
.ci-landing > .ci-disclosure { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 20px auto 0; }
@media (max-width: 1240px) { .ci-landing > .ci-disclosure { margin-left: var(--gutter); margin-right: var(--gutter); } }
.home .ci-landing > .ci-disclosure { margin-bottom: 20px; }
.ci-nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 640px) {
	.ci-topbar { font-size: .74rem; }
	.ci-topbar .ci-wrap > span:last-child { display: none; }
	.ci-disclosure { font-size: .8rem; line-height: 1.5; padding: .65rem .85rem; gap: .55rem; }
	.ci-disclosure svg { width: 16px; height: 16px; }
	.ci-hero-badge { font-size: .75rem; padding: .55rem .7rem; }
	.ci-hero-badge strong { font-size: 1rem; }
	.ci-hero-badge span.ci-dot { width: 30px; height: 30px; }
	.ci-tools-grid { grid-template-columns: 1fr; }
	.ci-toolbar { padding: .65rem; }
}
@media (max-width: 1020px) {
	/* backdrop-filter would make the header the containing block for the fixed menu panel. */
	.ci-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.ci-nav { visibility: hidden; top: 0; padding-top: 86px; z-index: -1; transition: transform .25s ease, visibility .25s; }
	.ci-nav.is-open { visibility: visible; }
	.admin-bar .ci-nav { top: 0; padding-top: 132px; }
	.ci-nav-toggle, .ci-brand { position: relative; z-index: 2; }
}
@media (max-width: 1020px) {
	/* Fade instead of slide: an off-screen fixed panel widens the mobile layout viewport. */
	.ci-nav { transform: none; opacity: 0; transition: opacity .2s ease, visibility .2s; }
	.ci-nav.is-open { opacity: 1; }
}
html, body { overflow-x: clip; }
/* Keep wide tables from widening the mobile layout viewport (they scroll inside the wrapper). */
.ci-table-wrap { contain: paint; }
.ci-tool-badges .ci-badge, .ci-cta-box .ci-badge { white-space: normal; line-height: 1.25; }
@media (max-width: 1020px) {
	.ci-nav { z-index: 1; background: #fff; }
	.ci-header .ci-brand, .ci-header .ci-nav-toggle { z-index: 3; }
}
@media (max-width: 1020px) {
	.ci-nav, .admin-bar .ci-nav { padding-top: .5rem; bottom: 0; border-top: 1px solid var(--line); }
}
