/* ==========================================================================
   WiseMind Theme 2 — main stylesheet
   Verdict-first review theme for AIWisemind.
   Tokens → base → layout → components → pages → utilities
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--ink: #14213d;
	--ink-2: #3a4763;
	--muted: #5e6b85;
	--line: #dde2eb;
	--paper: #f5f7fa;
	--surface: #ffffff;
	--surface-2: #eef1f6;
	--accent: #5b4bdb;
	--accent-ink: #ffffff;
	--accent-soft: #eceafd;

	--buy: #17875c;
	--buy-soft: #e3f4ec;
	--consider: #b7791f;
	--consider-soft: #fbf1de;
	--skip: #c23a4e;
	--skip-soft: #fbe6e9;

	--font-display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
	--font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

	--step--1: 0.8125rem;
	--step-0: 1rem;
	--step-1: 1.125rem;
	--step-2: 1.375rem;
	--step-3: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	--step-4: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px -12px rgba(20, 33, 61, .18);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 68px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #e8ecf5; --ink-2: #c0c8da; --muted: #8c98b3; --line: #26304a;
		--paper: #0d1322; --surface: #141c30; --surface-2: #1a2440;
		--accent: #8b7ff5; --accent-ink: #0d1322; --accent-soft: #221f44;
		--buy: #3cc48a; --buy-soft: #12301f; --consider: #e6b24a; --consider-soft: #33280f;
		--skip: #f06a7d; --skip-soft: #3a1820;
		--shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -16px rgba(0,0,0,.7);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--ink: #e8ecf5; --ink-2: #c0c8da; --muted: #8c98b3; --line: #26304a;
	--paper: #0d1322; --surface: #141c30; --surface-2: #1a2440;
	--accent: #8b7ff5; --accent-ink: #0d1322; --accent-soft: #221f44;
	--buy: #3cc48a; --buy-soft: #12301f; --consider: #e6b24a; --consider-soft: #33280f;
	--skip: #f06a7d; --skip-soft: #3a1820;
	--shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -16px rgba(0,0,0,.7);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 var(--step-0)/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; }
.eyebrow {
	font: 600 var(--step--1)/1.2 var(--font-mono);
	text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px; border-radius: 999px;
	border: 1px solid transparent; font-weight: 600; text-decoration: none;
	transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn svg { width: 18px; height: 18px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
	position: relative;
}
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
	background: color-mix(in srgb, var(--paper) 86%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); }
.brand-name { font: 800 1.25rem/1 var(--font-display); letter-spacing: -0.03em; }
.brand-name span { color: var(--accent); }

.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
	display: block; padding: 8px 12px; border-radius: 999px;
	text-decoration: none; font-weight: 500; color: var(--ink-2);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-trigger {
	display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 14px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted);
	min-width: 200px;
}
.search-trigger svg { width: 18px; height: 18px; }
.search-trigger kbd {
	margin-left: auto; font: 500 11px/1 var(--font-mono); padding: 4px 6px;
	border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2);
}
.cart-count {
	position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px; background: var(--accent); color: var(--accent-ink);
	font: 700 11px/20px var(--font-mono); text-align: center;
}
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (max-width: 960px) {
	.search-trigger { min-width: 0; padding: 0; width: 44px; justify-content: center; }
	.search-trigger span, .search-trigger kbd { display: none; }
	.menu-toggle { display: inline-grid; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface);
		border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { padding: 12px; font-size: var(--step-1); }
}

@media (max-width: 480px) {
	.header-inner { gap: 12px; }
	.header-actions { gap: 6px; }
	.header-actions .icon-btn, .search-trigger { width: 40px; height: 40px; min-height: 40px; }
	.brand-mark { width: 28px; height: 28px; }
	.brand-name { font-size: 1.125rem; }
}

/* ---------- Signature: score ring + verdict stamp ---------- */
.ring { --size: 120px; --stroke: 9; position: relative; width: var(--size); height: var(--size); flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: var(--stroke); }
.ring .track { stroke: var(--surface-2); }
.ring .value {
	stroke: var(--tone, var(--accent)); stroke-linecap: round;
	stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v));
	animation: ring-fill 1.1s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes ring-fill { from { stroke-dashoffset: 100; } }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-score { font: 700 calc(var(--size) * .3)/1 var(--font-mono); letter-spacing: -0.04em; }
.ring-out { font: 500 11px/1.4 var(--font-mono); color: var(--muted); }
.ring--sm { --size: 52px; --stroke: 10; }
.ring--sm .ring-score { font-size: 15px; }
.ring--sm .ring-out { display: none; }

.stamp {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px 4px 8px; border-radius: 999px;
	font: 700 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
	color: var(--tone); background: var(--tone-soft);
}
.stamp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tone-buy { --tone: var(--buy); --tone-soft: var(--buy-soft); }
.tone-consider { --tone: var(--consider); --tone-soft: var(--consider-soft); }
.tone-skip { --tone: var(--skip); --tone-soft: var(--skip-soft); }

/* Sub-score bars */
.bars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: var(--step--1); }
.bars .bar-score { font-family: var(--font-mono); font-weight: 600; }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: var(--tone, var(--accent)); animation: bar-fill 1s cubic-bezier(.2,.8,.2,1) .15s both; }
@keyframes bar-fill { from { width: 0; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--step-4); margin-top: 14px; max-width: 16ch; }
.hero-dek { font-size: var(--step-1); color: var(--ink-2); margin-top: 18px; max-width: 52ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 20px; color: var(--muted); font-size: var(--step--1); }
.byline .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 700 12px/1 var(--font-mono); }
.byline strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.verdict-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
	box-shadow: var(--shadow); padding: clamp(20px, 3vw, 28px);
	position: relative; overflow: hidden;
}
.verdict-card::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone);
}
.verdict-head { display: flex; align-items: center; gap: 20px; }
.verdict-head h2 { font-size: var(--step-2); margin-top: 8px; }
.verdict-head .eyebrow { display: block; }
.fit { display: grid; gap: 12px; margin: 22px 0; padding: 18px 0; border-block: 1px dashed var(--line); }
.fit p { display: grid; grid-template-columns: 72px 1fr; gap: 12px; font-size: var(--step--1); color: var(--ink-2); }
.fit b { font: 700 11px/1.9 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.fit .yes b { color: var(--buy); }
.fit .no b { color: var(--skip); }

/* Verdict legend */
.legend {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
	padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface); font-size: var(--step--1); color: var(--muted);
}
.legend strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: var(--step-3); margin-top: 8px; }
.section-head p { color: var(--muted); max-width: 48ch; margin-top: 8px; }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
	background: var(--surface); font-weight: 500; font-size: var(--step--1); color: var(--ink-2);
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Review cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--line) 50%, var(--ink-2)); }
.card[hidden] { display: none; }
.card.is-entering { animation: card-in .35s ease both; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }

.thumb {
	--hue: var(--accent);
	aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center;
	background:
		radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--hue) 28%, transparent) 1px, transparent 0) 0 0 / 16px 16px,
		color-mix(in srgb, var(--hue) 12%, var(--surface));
	color: var(--hue);
}
.thumb svg { width: 56px; height: 56px; opacity: .85; }
.thumb[data-cat="tech"] { --hue: #3a6ff0; }
.thumb[data-cat="courses"] { --hue: #d9486b; }
.thumb[data-cat="health"] { --hue: #1f9d6b; }
.thumb[data-cat="kitchen"] { --hue: #d07a1c; }
.thumb .ring { position: absolute; right: 14px; bottom: -26px; background: var(--surface); border-radius: 50%; padding: 4px; box-shadow: var(--shadow); --size: 60px; }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; padding-right: 64px; }
.card h3 { font-size: var(--step-2); line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { text-decoration: underline; }
.card-excerpt { color: var(--ink-2); font-size: var(--step--1); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; color: var(--muted); font: 500 12px/1.4 var(--font-mono); }

.empty-state { grid-column: 1 / -1; padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Shop ---------- */
.product-tile { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.product-tile h3 a { text-decoration: none; }
.product-tile .thumb { aspect-ratio: 1; border-radius: var(--radius-sm); }
.product-tile .thumb svg { width: 36px; height: 36px; }
.product-tile h3 { font-size: var(--step-1); }
.product-type { color: var(--muted); font-size: var(--step--1); margin-top: 4px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.price { font: 700 var(--step-1)/1 var(--font-mono); }
.price del, .price s { color: var(--muted); font-weight: 400; font-size: var(--step--1); margin-left: 6px; }
.product-tile .button {
	display: inline-flex; align-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap;
	 min-height: 40px; padding: 0 14px; font-size: var(--step--1); }
.product-tile .added_to_cart { display: block; margin-top: 6px; font-size: 12px; color: var(--accent); }

/* ---------- Newsletter ---------- */
.newsletter {
	display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
	padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--radius) + 8px);
	--nl-fg: #f5f7fa;
	background: #14213d; color: var(--nl-fg); border: 1px solid var(--line);
}
.newsletter h2 { font-size: var(--step-3); }
.newsletter p { color: color-mix(in srgb, var(--nl-fg) 72%, transparent); margin-top: 10px; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input {
	flex: 1 1 220px; min-height: 48px; padding: 0 18px; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--nl-fg) 25%, transparent); background: transparent; color: var(--nl-fg);
}
.newsletter input::placeholder { color: color-mix(in srgb, var(--nl-fg) 55%, transparent); }
.newsletter .btn-primary { min-height: 48px; }
.form-note { flex-basis: 100%; font-size: var(--step--1); min-height: 1.5em; }
.form-note.is-error { color: #ffb3bf; }
.form-note.is-ok { color: #9ae6c2; }
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); padding-block: 48px 32px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h3 { font: 600 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-about p { color: var(--muted); margin-top: 14px; max-width: 36ch; font-size: var(--step--1); }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Search dialog ---------- */
.search-dialog {
	width: min(640px, calc(100% - 32px)); max-height: min(560px, 80vh); padding: 0;
	margin: 10vh auto auto; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
	background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px -16px rgba(0,0,0,.35);
}
.search-dialog::backdrop { background: rgba(13, 19, 34, .45); backdrop-filter: blur(4px); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-field input { flex: 1; border: 0; background: none; font-size: var(--step-1); outline: none; min-width: 0; }
.search-field kbd { font: 500 11px/1 var(--font-mono); padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; max-height: 420px; }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible, .search-results a.is-active { background: var(--surface-2); outline: none; }
.search-results .r-title { font-weight: 600; }
.search-results .r-meta { font-size: var(--step--1); color: var(--muted); }
.search-results .r-score { margin-left: auto; font: 700 14px/1 var(--font-mono); color: var(--tone); }
.search-results mark { background: var(--accent-soft); color: inherit; border-radius: 3px; }
.search-empty { padding: 24px 12px; color: var(--muted); text-align: center; }

/* ---------- Toast ---------- */
.toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px);
	padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
	font-weight: 500; font-size: var(--step--1); box-shadow: var(--shadow);
	opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 40; opacity: 0; visibility: hidden;
	transition: opacity .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   Single review
   ========================================================================== */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: var(--step--1); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--ink); }

.article-head { padding-block: 32px 28px; max-width: 860px; }
.article-head h1 { font-size: var(--step-4); margin-top: 16px; }
.disclosure { margin-top: 18px; font-size: var(--step--1); color: var(--muted); padding: 10px 14px; border-left: 3px solid var(--line); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.verdict-box {
	display: grid; grid-template-columns: auto 1fr 1fr; gap: 28px; align-items: start;
	background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
	padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.verdict-box::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--tone); }
.verdict-score { display: grid; justify-items: center; gap: 12px; }
.verdict-score .ring { --size: 140px; }
.verdict-summary h2 { font-size: var(--step-2); margin-bottom: 10px; }
.verdict-summary > p { color: var(--ink-2); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.pros-cons h3 { font: 700 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.pros-cons ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: var(--step--1); }
.pros-cons li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.pros h3, .pros li::before { color: var(--buy); }
.cons h3, .cons li::before { color: var(--skip); }
.pros li::before { content: "+"; font: 700 15px/1.4 var(--font-mono); }
.cons li::before { content: "−"; font: 700 15px/1.4 var(--font-mono); }
@media (max-width: 960px) { .verdict-box { grid-template-columns: auto 1fr; } .verdict-box .bars { grid-column: 1 / -1; } }
@media (max-width: 600px) { .verdict-box { grid-template-columns: 1fr; } .verdict-score { justify-items: start; grid-template-columns: auto 1fr; align-items: center; } .pros-cons { grid-template-columns: 1fr; } }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); margin-top: 48px; align-items: start; }
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; } .article-aside { display: none; } }

.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-3); color: var(--ink); margin-top: 2em; }
.prose h3 { font-size: var(--step-2); color: var(--ink); margin-top: 1.6em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font: 500 var(--step-2)/1.4 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 8px; }




.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.toc { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc h2 { font: 600 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--line); text-decoration: none; color: var(--muted); font-size: var(--step--1); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }

.buy-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 12px; }
.buy-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buy-card small { color: var(--muted); font-size: 12px; }
.buy-card .btn { width: 100%; }

.share { display: flex; align-items: center; gap: 8px; }
.share span { font-size: var(--step--1); color: var(--muted); margin-right: 4px; }

.author-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-box .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 700 18px/1 var(--font-mono); }
.author-box h3 { font-size: var(--step-1); }
.author-box p { color: var(--muted); font-size: var(--step--1); margin-top: 6px; }

.mobile-buy {
	display: none; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 45;
	align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
	transform: translateY(120%); transition: transform .25s ease;
}
.mobile-buy.is-visible { transform: none; }
.mobile-buy .price { font-size: var(--step-0); }
.mobile-buy .btn { margin-left: auto; min-height: 40px; }
@media (max-width: 1024px) { .mobile-buy { display: flex; } .to-top { bottom: 84px; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   WordPress layer
   ========================================================================== */

/* Admin bar offset for the sticky header */
.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-header { top: env(safe-area-inset-top, 0px); } }

/* Brand */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: auto; max-height: 44px; }
.site-footer .brand { margin-bottom: 0; }

/* Menus */
.main-nav .current-menu-item > a, .main-nav .current-menu-parent > a, .main-nav .current_page_item > a { background: var(--surface-2); color: var(--ink); }

/* Neutral tone (Amazon rating shown without a verdict) */
.tone-neutral { --tone: var(--accent); --tone-soft: var(--accent-soft); }

/* Hero variants */
.hero h1 a { text-decoration: none; }
.hero h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.hero-grid.is-single { grid-template-columns: 1fr; }
.hero-grid.is-single h1 { max-width: 22ch; }
.hero-image { display: block; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow); }
.hero-image img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.score-source { color: var(--muted); font-size: var(--step--1); margin-top: 4px; }
.verdict-price { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.verdict-card .bars { margin-top: 4px; }
.verdict-card .fit:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

/* Legend */
.legend p { flex: 1 1 320px; }
.legend ul { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; margin: 0; padding: 0; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }

/* Cards with featured images */
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb[data-cat="general"] { --hue: var(--accent); }
.thumb .ring { z-index: 1; }
.card-meta { flex-wrap: wrap; }
.card-foot time { font: inherit; }
.filter-empty-link { color: var(--accent); margin-left: 6px; }

/* Verdict box variants */
.verdict-box { grid-template-columns: auto minmax(0, 1fr); }
.verdict-box.has-bars { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr); }
.verdict-box.no-score { grid-template-columns: minmax(0, 1fr); }
.verdict-box.no-score.has-bars { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.verdict-score-text { display: grid; justify-items: center; gap: 6px; text-align: center; }
.verdict-box .fit { margin: 16px 0 0; }
@media (max-width: 960px) {
	.verdict-box.has-bars { grid-template-columns: auto minmax(0, 1fr); }
	.verdict-box.has-bars .bars { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.verdict-box, .verdict-box.has-bars, .verdict-box.no-score.has-bars { grid-template-columns: minmax(0, 1fr); }
	.verdict-score-text { justify-items: start; text-align: left; }
}

/* Article */
.article-layout { margin-top: 40px; }
.article-layout:only-child, .article-layout > .article-main:only-child { grid-column: 1 / -1; }
.article-main { min-width: 0; }
.article-image { margin: 0 0 32px; }
.article-image img { width: 100%; height: auto; border-radius: var(--radius); }
.article-image figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 8px; }
.byline a { text-decoration: none; }
.byline a:hover strong { text-decoration: underline; }
.page-article .article-head { margin-inline: auto; max-width: 70ch; }
.page-article .prose, .page-article .article-image { margin-inline: auto; }
.page-article .article-image { max-width: 70ch; }
.buy-product { font-weight: 600; font-size: var(--step--1); }
.buy-card .stamp { flex-shrink: 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.post-tags a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: var(--step--1); color: var(--ink-2); }
.post-tags a:hover { border-color: var(--ink-2); }
.share { margin-top: 32px; }
.author-box .avatar-img { width: 56px; height: 56px; border-radius: 50%; }
.author-box h2 { font-size: var(--step-1); }
.author-box h2 a { text-decoration: none; }
.page-links { margin-top: 24px; display: flex; gap: 8px; font-weight: 600; }

/* Prose: WordPress content and blocks */
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose img { height: auto; border-radius: var(--radius-sm); }
.prose figure { margin-inline: 0; }
.prose .wp-element-caption, .prose .wp-caption-text { font-size: var(--step--1); color: var(--muted); margin-top: 8px; text-align: left; }
.prose code { font-family: var(--font-mono); font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.prose pre { font-family: var(--font-mono); font-size: var(--step--1); padding: 16px; border-radius: var(--radius); background: var(--surface-2); overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose .wp-block-pullquote { border: 0; padding: 0; text-align: left; }
.prose .wp-block-pullquote blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.prose .wp-block-pullquote p { font: 500 var(--step-2)/1.4 var(--font-display); color: var(--ink); }
.prose cite, .prose .wp-block-quote cite { display: block; margin-top: 8px; font: 500 var(--step--1)/1.4 var(--font-body); color: var(--muted); font-style: normal; }
.prose .wp-block-button__link, .prose .wp-block-file__button {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
	background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.prose .is-style-outline .wp-block-button__link { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignwide, .prose .alignfull { max-width: none; }
.prose .wp-block-embed iframe { max-width: 100%; }
.prose::after { content: ""; display: table; clear: both; }
.sticky .card-meta::after { content: "★"; color: var(--accent); margin-left: auto; }

/* Tables: default, Comparison and Specs block styles */
.prose .wp-block-table, .compare-content .wp-block-table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose thead th, .prose thead td { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--line); }

.wp-block-table.is-style-wm-compare, .wp-block-table.is-style-wm-specs {
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow-x: auto;
}
.wp-block-table.is-style-wm-compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--step--1); }
.wp-block-table.is-style-wm-compare th, .wp-block-table.is-style-wm-compare td { padding: 14px 18px; text-align: left; border: 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.wp-block-table.is-style-wm-compare thead th, .wp-block-table.is-style-wm-compare thead td { font: 700 var(--step-1)/1.25 var(--font-display); color: var(--ink); vertical-align: bottom; }
.wp-block-table.is-style-wm-compare tbody td { font-family: var(--font-mono); color: var(--ink); }
.wp-block-table.is-style-wm-compare tbody td:first-child { font: 600 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); width: 22%; }
.wp-block-table.is-style-wm-compare tr > :nth-child(2) { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.wp-block-table.is-style-wm-compare thead tr > :nth-child(2) { box-shadow: inset 0 3px 0 var(--accent); }
.wp-block-table.is-style-wm-compare tr:last-child > * { border-bottom: 0; }
.wp-block-table.is-style-wm-compare figcaption, .wp-block-table.is-style-wm-specs figcaption { padding: 10px 16px; margin: 0; border-top: 1px solid var(--line); }

.wp-block-table.is-style-wm-specs table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.wp-block-table.is-style-wm-specs th, .wp-block-table.is-style-wm-specs td { text-align: left; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); }
.wp-block-table.is-style-wm-specs tr > :first-child { width: 38%; font: 600 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wp-block-table.is-style-wm-specs tr > :last-child { font-family: var(--font-mono); color: var(--ink); }
.wp-block-table.is-style-wm-specs tr:last-child > * { border-bottom: 0; }

/* Callout group style */
.is-style-wm-callout { padding: 16px 20px 16px 52px !important; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); position: relative; }
.is-style-wm-callout::before {
	content: "i"; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; border-radius: 50%;
	border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 700 12px/1 var(--font-mono);
}
.is-style-wm-callout > * + * { margin-top: .6em; }

/* FAQ (Details block) */
.prose details { border-bottom: 1px solid var(--line); }
.prose details + details { margin-top: 0; }
.prose summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; color: var(--ink); }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; font: 500 20px/1 var(--font-mono); color: var(--muted); transition: transform .2s ease; }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details > :not(summary) { padding-bottom: 16px; margin-top: 0; }

/* AIWisemind Helper product cards sit inside prose; keep them from inheriting prose link colour */
.prose [class*="aiwm-"] a { color: inherit; }

/* Page heads: archives, search, 404 */
.page-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 760px; }
.page-head h1 { font-size: var(--step-4); }
.page-head p, .archive-description { color: var(--ink-2); font-size: var(--step-1); }
.page-head .search-form { margin-top: 8px; }
.archive-section, .wc-content { padding-top: clamp(32px, 5vw, 56px); }

.search-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.search-form input {
	flex: 1 1 220px; min-height: 48px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface);
}
.search-form .btn { min-height: 48px; }
.empty-state h2 { font-size: var(--step-2); color: var(--ink); margin-bottom: 8px; }
.empty-state .search-form { margin: 16px auto 0; justify-content: center; }
.search-results .r-all { color: var(--accent); font-weight: 600; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface); text-decoration: none; font: 600 var(--step--1)/1 var(--font-mono);
}
.pagination .page-numbers svg { width: 18px; height: 18px; }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink-2); }
.pagination .dots { border: 0; background: none; }

/* Comments */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-size: var(--step-2); margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 20px; }
.comment-list .children { list-style: none; margin: 16px 0 0; padding-left: 24px; border-left: 2px solid var(--line); display: grid; gap: 16px; }
.comment-body { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--step--1); color: var(--muted); margin-bottom: 8px; }
.comment-author { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { color: var(--ink-2); }
.comment-content > * + * { margin-top: .6em; }
.reply a { font-size: var(--step--1); font-weight: 600; color: var(--accent); }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; margin: 0; }

/* Footer menus */
.footer-grid nav h2 { font: 600 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-grid .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* Newsletter spacing and embedded forms */
.newsletter-section { margin-top: clamp(24px, 4vw, 48px); }
.newsletter-embed { color: var(--nl-fg); }
.newsletter-embed input[type="email"], .newsletter-embed input[type="text"] { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--nl-fg) 25%, transparent); background: transparent; color: var(--nl-fg); }

/* Homepage comparison page content */
.compare-content > * + * { margin-top: 1em; }

/* Hide the browser's own clear button in search fields; Esc and the dialog handle that. */
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
