/*
Theme Name: ClickProfits
Theme URI: https://clickprofits.com
Author: ClickProfits
Author URI: https://clickprofits.com
Description: A custom, two-sided affiliate-marketing information site for ClickProfits.com — built for both affiliates and merchants/affiliate managers. Refined, conservative treatment: hairline borders, restrained palette, gentle rounding.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clickprofits
*/

/* =========================================================
   0. Design tokens
   ========================================================= */
:root {
	/* Ink & neutrals — cool greys with a slight slate-blue bias (chosen, not default) */
	--ink:      #182233;
	--ink-2:    #33415c;
	--body:     #586176;
	--muted:    #8a92a6;

	--bg:       #ffffff;
	--bg-soft:  #f7f8fb;
	--bg-panel: #fbfcfe;

	/* Hairlines — the primary structural device */
	--line:     #e6e8ee;
	--line-2:   #d9dce4;

	/* One restrained primary */
	--brand:    #33507e;
	--brand-2:  #284067;
	--brand-soft:#eef2f8;

	/* Two sides — muted, grown-up accents (no gradients) */
	--aff:      #9c6626;   /* affiliate — bronze/amber (warm) */
	--aff-soft: #f7f1e8;
	--aff-line: #e7d8c3;
	--mer:      #2c6863;   /* merchant — teal (cool) */
	--mer-soft: #eaf2f0;
	--mer-line: #cde0db;

	/* Gentle rounding only */
	--radius:    8px;
	--radius-sm: 6px;
	--radius-xs: 4px;

	--shadow-sm: 0 1px 2px rgba(24, 34, 51, 0.05);
	--shadow-md: 0 8px 24px rgba(24, 34, 51, 0.07);

	--maxw: 1140px;

	--font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* =========================================================
   1. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--body);
	background: var(--bg);
	line-height: 1.6;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: var(--font);
	color: var(--ink);
	line-height: 1.14;
	margin: 0 0 0.5em;
	letter-spacing: -0.02em;
	font-weight: 700;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; height: auto; display: block; }

.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.screen-reader-text {
	position: absolute !important; clip-path: inset(50%);
	width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { left: 0; color: #fff; }

:where(a, button, input, [tabindex]):focus-visible {
	outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-xs);
}

/* =========================================================
   2. Shared components
   ========================================================= */
/* Mono kicker/eyebrow — a fine detail, not a bubble */
.eyebrow {
	display: inline-flex; align-items: center; gap: 0.5em;
	font-family: var(--mono);
	font-weight: 500; font-size: 0.72rem;
	letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--brand);
	padding: 0; margin-bottom: 1.15rem;
}
.eyebrow::before {
	content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6;
}
.eyebrow--center { justify-content: center; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); }
.section-title { font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 800; margin-bottom: 0.5em; }
.section-sub { font-size: 1.08rem; color: var(--body); margin: 0; }

/* Buttons — subtle rounding, flat fills, hairline where secondary */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	font-family: var(--font); font-weight: 600; font-size: 0.98rem; line-height: 1.1;
	padding: 13px 22px; border: 1px solid transparent; border-radius: var(--radius-sm);
	cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	text-align: center;
}
.btn--pill { border-radius: var(--radius-sm); } /* legacy hook: no longer a pill */
.btn--block { width: 100%; }

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

.btn--affiliate { background: var(--aff); color: #fff; }
.btn--affiliate:hover { background: #855420; color: #fff; }
.btn--merchant { background: var(--mer); color: #fff; }
.btn--merchant:hover { background: #235450; color: #fff; }
.btn .cp-icon { flex: none; }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--brand); border-color: var(--brand); }

/* =========================================================
   3. Header / nav
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: saturate(150%) blur(10px);
	-webkit-backdrop-filter: saturate(150%) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(24,34,51,0.04); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }

/* Logo */
.brand-wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand-mark { display: inline-flex; color: var(--ink); }
.brand-glyph { display: block; }
.brand-glyph .bg-box  { stroke: var(--ink); }
.brand-glyph .bg-line, .brand-glyph .bg-head { stroke: var(--brand); }
.brand-glyph .bg-dot  { fill: var(--ink); }
.brand-name { font-family: var(--font); font-weight: 700; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.03em; }
.brand-name__accent { color: var(--brand); }

.site-nav { margin-left: auto; }
.nav-menu { list-style: none; display: flex; gap: 0.1rem; margin: 0; padding: 0; }
.nav-menu a {
	font-family: var(--font); font-weight: 500; font-size: 0.96rem; color: var(--ink-2);
	padding: 8px 13px; border-radius: var(--radius-xs); transition: color 0.15s ease, background 0.15s ease;
}
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--ink); background: var(--bg-soft); }

.site-header__actions { display: flex; align-items: center; }
.site-header__actions .btn { padding: 10px 18px; font-size: 0.92rem; }
.nav-toggle { display: none; }

/* =========================================================
   4. Hero
   ========================================================= */
.hero { position: relative; padding: clamp(3.2rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--bg); }
.hero__glow { display: none; } /* retired the gradient blooms */
.hero__inner { position: relative; z-index: 1; text-align: center; }

.hero__title { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; margin: 0 auto 0.4em; max-width: 17ch; letter-spacing: -0.03em; }
.hero__title-grad { color: var(--brand); -webkit-text-fill-color: currentColor; }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--body); max-width: 60ch; margin: 0 auto 2rem; }
.hero__lede strong { color: var(--ink); font-weight: 600; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: clamp(2.5rem, 6vw, 3.8rem); }
.hero__ctas .btn { min-width: 210px; padding: 14px 26px; }

/* Hero visual — two fine-lined dashboard cards */
.hero__visual { position: relative; max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.8rem, 2.5vw, 1.4rem); align-items: stretch; }
.panel { position: relative; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: left; min-height: 168px; box-shadow: var(--shadow-sm); }
.panel--warm, .panel--cool { transform: none; }
.panel__head { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.1rem; }
.panel__head .dot { width: 8px; height: 8px; border-radius: 2px; }
.panel--warm .dot { background: var(--aff); }
.panel--cool .dot { background: var(--mer); }
.bar { height: 10px; border-radius: 3px; margin-bottom: 10px; border: 1px solid var(--line); }
.bar--80 { width: 80%; } .bar--60 { width: 58%; } .bar--70 { width: 70%; } .bar--90 { width: 90%; }
.panel--warm .bar { background: var(--aff-soft); border-color: var(--aff-line); }
.panel--cool .bar { background: var(--mer-soft); border-color: var(--mer-line); }
.chip {
	position: absolute; bottom: -14px; right: 16px; background: #fff; border: 1px solid var(--line-2);
	border-radius: var(--radius-sm); padding: 7px 12px; font-family: var(--mono); font-weight: 500;
	font-size: 0.74rem; color: var(--ink); box-shadow: var(--shadow-sm);
	display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; letter-spacing: 0.02em;
}
.chip--warm { left: 16px; right: auto; }
.chip .spark { color: var(--brand); }
.chip--warm .spark { color: var(--aff); }
.chip--cool .spark { color: var(--mer); }

.hero__seam { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }
.seam-badge {
	background: #fff; color: var(--ink); border: 1px solid var(--line-2);
	font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.04em;
	padding: 8px 13px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); white-space: nowrap;
}

/* =========================================================
   5. Trust strip
   ========================================================= */
.trust { padding: clamp(1.6rem, 3vw, 2.2rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 2rem; }
.trust__label { font-family: var(--mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.trust__items { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 0; padding: 0; }
.trust__items li { display: flex; align-items: center; gap: 0.55rem; color: var(--body); font-size: 0.96rem; }
.trust__items strong { color: var(--ink); font-weight: 600; }
.trust__ic { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--brand); background: #fff; }
.trust__items li:nth-child(1) .trust__ic { color: var(--aff); border-color: var(--aff-line); background: var(--aff-soft); }
.trust__items li:nth-child(3) .trust__ic { color: var(--mer); border-color: var(--mer-line); background: var(--mer-soft); }

/* =========================================================
   6. The Split
   ========================================================= */
.split { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.split__grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: clamp(1rem, 3vw, 1.8rem); }
.track { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); position: relative; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.track::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0; }
.track--warm::before { background: var(--aff); }
.track--cool::before { background: var(--mer); }

.track__badge {
	display: inline-flex; align-self: flex-start; font-family: var(--mono); font-weight: 500;
	font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px;
	border-radius: var(--radius-xs); margin-bottom: 1.1rem; border: 1px solid transparent;
}
.track--warm .track__badge { color: var(--aff); background: var(--aff-soft); border-color: var(--aff-line); }
.track--cool .track__badge { color: var(--mer); background: var(--mer-soft); border-color: var(--mer-line); }

.track__title { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; }
.track__desc { color: var(--body); font-size: 1rem; }
.track__list { list-style: none; margin: 0.4rem 0 1.6rem; padding: 0; }
.track__list li { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: 0.98rem; }
.track__list li:last-child { border-bottom: 0; }
.track__list li .cp-icon { flex: none; }
.track--warm .track__list li .cp-icon { color: var(--aff); }
.track--cool .track__list li .cp-icon { color: var(--mer); }
.track .btn { margin-top: auto; }

/* Center divider + mono badge */
.split__center { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 0.25rem; }
.split__emblem {
	width: auto; height: auto; border-radius: var(--radius-xs); border: 1px solid var(--line-2);
	background: #fff; display: grid; place-items: center; color: var(--muted);
	font-family: var(--mono); font-weight: 500; font-size: 0.62rem; line-height: 1.25; padding: 8px 6px;
	text-align: center; text-transform: uppercase; letter-spacing: 0.08em; box-shadow: var(--shadow-sm);
}
.split__line { flex: 1; width: 1px; background: var(--line-2); margin-top: 8px; }

/* =========================================================
   7. Pillars
   ========================================================= */
.pillars { padding: clamp(3.2rem, 7vw, 5.5rem) 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.4rem); }
.pillar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 1.9rem); transition: border-color 0.18s ease; }
.pillar-card:hover { border-color: var(--line-2); }
.pillar-card__icon { width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); display: grid; place-items: center; font-size: 1.15rem; margin-bottom: 1rem; color: var(--ink-2); }
.icon--guides { color: var(--aff); border-color: var(--aff-line); background: var(--aff-soft); }
.icon--explain { color: var(--brand); border-color: var(--line-2); background: var(--brand-soft); }
.icon--reviews { color: var(--mer); border-color: var(--mer-line); background: var(--mer-soft); }
.pillar-card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 0.4em; }
.pillar-card p { color: var(--body); font-size: 0.96rem; }
.pillar-card__link { font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.04em; }

/* =========================================================
   8. Authority
   ========================================================= */
.authority { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.authority__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.authority__text .section-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
.authority__text p { font-size: 1.06rem; }
.authority__cards { display: flex; flex-direction: column; gap: 0.8rem; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.3rem; display: flex; flex-direction: column; gap: 2px; }
.mini-card__k { font-family: var(--font); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.mini-card__v { color: var(--body); font-size: 0.92rem; }

/* =========================================================
   9. Final CTA
   ========================================================= */
.final-cta { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.final-cta__card { position: relative; overflow: hidden; background: var(--ink); border-radius: var(--radius); padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.5rem, 4vw, 3rem); text-align: center; color: #fff; border: 1px solid var(--ink); }
.final-cta__glow { display: none; }
.final-cta__card h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
.final-cta__card p { color: rgba(255,255,255,0.72); max-width: 52ch; margin: 0 auto 1.8rem; font-size: 1.05rem; }
.final-cta__btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.final-cta__btns .btn { min-width: 200px; }

/* =========================================================
   10. Footer
   ========================================================= */
.site-footer { background: var(--bg-soft); color: var(--body); border-top: 1px solid var(--line); padding: clamp(2.8rem, 5vw, 4rem) 0 1.8rem; }
.site-footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.site-footer__tagline { margin-top: 0.9rem; max-width: 42ch; color: var(--body); font-size: 0.94rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col h3 { color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--body); font-size: 0.94rem; }
.footer-col a:hover { color: var(--brand); }

.site-footer__disclosure { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.site-footer__disclosure p { margin: 0; font-size: 0.84rem; color: var(--muted); max-width: 92ch; }
.site-footer__disclosure strong { color: var(--ink-2); }

.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding-top: 1.5rem; }
.site-footer__bottom p { margin: 0; font-size: 0.84rem; color: var(--muted); }
.site-footer__meta { font-family: var(--mono); letter-spacing: 0.04em; }

/* =========================================================
   11. Generic content (pages / posts / blog)
   ========================================================= */
.page-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2.2rem); text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
.entry { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5rem); }
.entry .container { max-width: 720px; }
.entry-content { font-size: 1.1rem; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.entry-content a:hover { text-decoration-color: var(--brand); }
.entry-content img { border-radius: var(--radius); border: 1px solid var(--line); margin: 1.5em 0; }
.entry-content blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 3px solid var(--brand); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.entry-meta { color: var(--muted); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.03em; margin-bottom: 1.5rem; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; padding: clamp(2rem,5vw,3.2rem) 0; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .18s ease; display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--line-2); }
.post-card__thumb { aspect-ratio: 16/9; background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.post-card__body h2 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.4em; }
.post-card__body h2 a { color: var(--ink); }
.post-card__body h2 a:hover { color: var(--brand); }
.post-card__excerpt { color: var(--body); font-size: 0.95rem; margin-bottom: 1rem; }
.post-card__more { margin-top: auto; font-family: var(--mono); font-weight: 500; font-size: 0.8rem; }

.pagination { display: flex; gap: 0.4rem; justify-content: center; padding: 1rem 0 3rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: 0.85rem; color: var(--ink-2); }
.pagination .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* =========================================================
   11b. Inner pages (Affiliates / Merchants / Guides / Reviews / About / Disclosure)
   ========================================================= */
.cp-icon { flex: none; vertical-align: middle; }

/* Page hero (section landings) */
.page-lead { padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); }
.page-lead__inner { max-width: 760px; }
.page-lead h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.35em; }
.page-lead__sub { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--body); margin: 0; max-width: 62ch; }
.page-lead--aff .eyebrow { color: var(--aff); }
.page-lead--mer .eyebrow { color: var(--mer); }

/* Section scaffolding for inner pages */
.section { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head--left { text-align: left; margin-inline: 0; max-width: 60ch; }

/* Roadmap — a genuine ordered learning path, so the numbering carries meaning */
.roadmap { display: flex; flex-direction: column; gap: 0; max-width: 820px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); position: relative; }
.step:last-child { border-bottom: 0; }
.step__marker { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step__num { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 0.9rem; color: var(--ink); background: #fff; }
.roadmap--aff .step__num { color: var(--aff); border-color: var(--aff-line); background: var(--aff-soft); }
.roadmap--mer .step__num { color: var(--mer); border-color: var(--mer-line); background: var(--mer-soft); }
.step__body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3em; display: flex; align-items: center; gap: 0.5rem; }
.step__body p { color: var(--body); font-size: 0.98rem; margin: 0 0 0.6rem; }
.step__link { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.03em; display: inline-flex; align-items: center; gap: 0.35rem; }
.roadmap--aff .step__body h3 .cp-icon { color: var(--aff); }
.roadmap--mer .step__body h3 .cp-icon { color: var(--mer); }

/* Card grids — guides library, reviews index, cornerstone lists */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.topic-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; transition: border-color 0.18s ease; }
.topic-card:hover { border-color: var(--line-2); }
.topic-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.2rem; }
.topic-card__icon { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); display: grid; place-items: center; color: var(--ink-2); }
.topic-card--aff .topic-card__icon { color: var(--aff); border-color: var(--aff-line); background: var(--aff-soft); }
.topic-card--mer .topic-card__icon { color: var(--mer); border-color: var(--mer-line); background: var(--mer-soft); }
.topic-card h3 { font-size: 1.12rem; font-weight: 700; margin: 0; }
.topic-card p { color: var(--body); font-size: 0.94rem; margin: 0; flex: 1; }
.topic-card__foot { margin-top: 0.4rem; }

/* Small mono status tag */
.tag { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--mono); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius-xs); border: 1px solid var(--line-2); color: var(--muted); background: #fff; white-space: nowrap; }
.tag--aff { color: var(--aff); border-color: var(--aff-line); background: var(--aff-soft); }
.tag--mer { color: var(--mer); border-color: var(--mer-line); background: var(--mer-soft); }
.tag--soon { color: var(--muted); }
.tag--live { color: var(--brand); border-color: #c7d4e8; background: var(--brand-soft); }

/* Cross-link band — jump to the other side */
.crosslink { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--bg-soft); }
.crosslink__text { display: flex; align-items: center; gap: 0.9rem; }
.crosslink__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; border: 1px solid var(--line-2); background: #fff; flex: none; }
.crosslink--to-mer .crosslink__icon { color: var(--mer); border-color: var(--mer-line); background: var(--mer-soft); }
.crosslink--to-aff .crosslink__icon { color: var(--aff); border-color: var(--aff-line); background: var(--aff-soft); }
.crosslink__text h3 { margin: 0 0 0.15em; font-size: 1.15rem; }
.crosslink__text p { margin: 0; color: var(--body); font-size: 0.95rem; }

/* Prose (about, disclosure, guides intro) */
.prose { max-width: 720px; }
.prose p { font-size: 1.08rem; color: var(--body); }
.prose h2 { font-size: 1.5rem; font-weight: 800; margin-top: 1.8em; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--ink); }

/* Author card (about) */
.author-card { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: #fff; }
.author-card__badge { width: 84px; height: 84px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-soft); display: grid; place-items: center; color: var(--brand); }
.author-card__meta h3 { margin: 0 0 0.2em; font-size: 1.2rem; }
.author-card__meta p { margin: 0; color: var(--body); font-size: 0.95rem; }
.author-card__roles { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }

/* Credential row (about) */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cred { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; background: #fff; }
.cred__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 0.8rem; }
.cred--aff .cred__icon { color: var(--aff); border-color: var(--aff-line); background: var(--aff-soft); }
.cred--mid .cred__icon { color: var(--brand); border-color: #c7d4e8; background: var(--brand-soft); }
.cred--mer .cred__icon { color: var(--mer); border-color: var(--mer-line); background: var(--mer-soft); }
.cred h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.cred p { color: var(--body); font-size: 0.92rem; margin: 0; }

@media (max-width: 720px) {
	.creds { grid-template-columns: 1fr; }
	.author-card { grid-template-columns: 1fr; text-align: left; }
}

/* ---- Article (single guide) ---- */
.article { padding: 0 0 clamp(3rem, 7vw, 5rem); }
.article__head { padding: clamp(2.4rem, 6vw, 4rem) 0 clamp(1.4rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.article__head .container { max-width: 780px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .cp-icon { color: var(--line-2); flex: none; }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); }
.article__cat { display: inline-flex; align-items: center; gap: 0.4rem; }
.article__title { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; margin: 0.4em 0 0.35em; }
.article__standfirst { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-2); margin: 0 0 1.4rem; max-width: 60ch; line-height: 1.5; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--muted); }
.article__meta .sep { opacity: 0.5; }
.article__meta .cp-icon { color: var(--ink-2); }
.article__body { padding-top: clamp(1.6rem, 4vw, 2.6rem); }
.article__body .container { max-width: 720px; }

.prose h2 { display: flex; align-items: baseline; gap: 0.55rem; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6em; }
.prose ol { padding-left: 1.2rem; }
.prose ol li { margin-bottom: 0.55rem; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--brand); }
/* Links styled as buttons must keep their button colours in ALL states (override .prose a,
   which otherwise forces the navy link colour so text only appears on hover). */
.prose a.btn { text-decoration: none; }
.prose a.btn--primary,   .prose a.btn--primary:hover,
.prose a.btn--affiliate, .prose a.btn--affiliate:hover,
.prose a.btn--merchant,  .prose a.btn--merchant:hover { color: #fff; }
.prose a.btn--ghost { color: var(--ink); }
.prose a.btn--ghost:hover { color: var(--brand); }

/* Callout / tip box */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; background: var(--bg-soft); margin: 1.8em 0; }
.callout__icon { color: var(--brand); margin-top: 2px; }
.callout--aff .callout__icon { color: var(--aff); }
.callout--mer .callout__icon { color: var(--mer); }
.callout p { margin: 0; font-size: 0.98rem; }
.callout p + p { margin-top: 0.5em; }

/* Figure / diagram */
.figure { margin: 2em 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.figure__body { padding: clamp(1.2rem, 3vw, 1.8rem); }
.figure figcaption { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.03em; color: var(--muted); padding: 0.7rem 1.1rem; border-top: 1px solid var(--line); background: var(--bg-soft); }

/* Flow diagram (click -> payout) */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.5rem; }
.flow__step { flex: 1 1 120px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem; background: var(--bg-soft); display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.flow__step .cp-icon { color: var(--brand); }
.flow__step b { font-size: 0.9rem; color: var(--ink); font-weight: 700; }
.flow__step span { font-size: 0.8rem; color: var(--body); }
.flow__arrow { display: grid; place-items: center; color: var(--line-2); flex: 0 0 auto; }

/* FAQ */
.faq { margin-top: 1.4em; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq__q { font-size: 1.12rem; font-weight: 700; color: var(--ink); margin: 0 0 0.4em; }
.faq__a { margin: 0; color: var(--body); font-size: 1rem; }

/* Author box */
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 2.4em 0 0; background: var(--bg-soft); }
.author-box__badge { width: 72px; height: 72px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--brand); }
.author-box__k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.3em; }
.author-box h3 { font-size: 1.15rem; margin: 0 0 0.3em; }
.author-box p { margin: 0; font-size: 0.95rem; color: var(--body); }
.author-box__roles { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }

/* Related guides */
.related { margin-top: 2.4em; }
.related__head { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }

@media (max-width: 560px) {
	.author-box { grid-template-columns: 1fr; }
	.flow__arrow { transform: rotate(90deg); }
}

/* ---- Software review layout ---- */
.review__hero { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); margin: 1.8em 0 2em; background: var(--bg-panel); display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; }
.review__scorebox { text-align: center; border-right: 1px solid var(--line); padding-right: 1.4rem; }
.review__score { font-family: var(--font); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.review__score span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.review__scorelabel { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }
.review__verdict h2 { font-size: 1.15rem; margin: 0 0 0.3em; }
.review__verdict p { margin: 0; font-size: 0.96rem; color: var(--body); }
.review__bestfor { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); border: 1px solid #c7d4e8; background: var(--brand-soft); border-radius: var(--radius-xs); padding: 4px 9px; }
.review__cta { display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; }

/* Rating dots (out of 5) */
.rating { display: inline-flex; gap: 3px; vertical-align: middle; }
.rating b { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); display: inline-block; }
.rating b.off { background: var(--line-2); }

/* Criteria scores */
.scores { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.8em 0; }
.score { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.8rem 1rem; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); }
.score:last-child { border-bottom: 0; }
.score__label { font-weight: 600; color: var(--ink); font-size: 0.96rem; }
.score__num { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }

/* Pros & cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8em 0; }
.proscons__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.proscons__col h3 { font-size: 1rem; margin: 0 0 0.7rem; display: flex; align-items: center; gap: 0.4rem; }
.proscons__col ul { list-style: none; margin: 0; padding: 0; }
.proscons__col li { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.4rem 0; font-size: 0.95rem; color: var(--ink-2); }
.proscons__col li .cp-icon { flex: none; margin-top: 2px; }
.pros h3 { color: var(--mer); } .pros li .cp-icon { color: var(--mer); }
.cons h3 { color: var(--aff-ink, #b3245e); } .cons li .cp-icon { color: #b3245e; }

/* At-a-glance spec */
.glance { border: 1px solid var(--line); border-radius: var(--radius); margin: 1.8em 0; overflow: hidden; }
.glance dl { margin: 0; display: grid; grid-template-columns: 1fr 2fr; }
.glance dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.glance dd { margin: 0; padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.95rem; }
.glance dl > dt:last-of-type, .glance dl > dd:last-of-type { border-bottom: 0; }

/* Comparison table (reviews hub) */
.cmp-wrap { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 640px; }
.cmp th, .cmp td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td strong { color: var(--ink); }

@media (max-width: 640px) {
	.review__hero { grid-template-columns: 1fr; text-align: left; }
	.review__scorebox { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 1rem; display: flex; align-items: baseline; gap: 0.6rem; justify-content: flex-start; }
	.proscons { grid-template-columns: 1fr; }
	.glance dl { grid-template-columns: 1fr; }
	.glance dd { border-bottom: 1px solid var(--line-2); }
}

/* =========================================================
   12. Responsive
   ========================================================= */
@media (max-width: 900px) {
	.authority__inner { grid-template-columns: 1fr; }
	.site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
	.site-nav, .site-header__actions { display: none; }
	.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; justify-content: center; margin-left: auto; width: 42px; height: 42px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; padding: 0 11px; }
	.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }
	body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	body.nav-open .site-nav { display: block; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 0.8rem clamp(1.1rem, 4vw, 2rem); }
	body.nav-open .nav-menu { flex-direction: column; gap: 0.1rem; }
	body.nav-open .nav-menu a { display: block; padding: 11px 12px; }

	.split__grid { grid-template-columns: 1fr; }
	.split__center { flex-direction: row; padding: 0.4rem 0; }
	.split__line { width: 100%; height: 1px; margin: 0 0 0 12px; }
	.pillars__grid { grid-template-columns: 1fr; }
	.hero__ctas .btn { min-width: 0; flex: 1; }
}
@media (max-width: 560px) {
	.hero__visual { grid-template-columns: 1fr; gap: 1.6rem; }
	.hero__seam { display: none; }
	.trust__inner { flex-direction: column; align-items: flex-start; }
	.final-cta__btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
