/* AICR theme — shared components. Each site sets its own tokens in site-config.php. */

:root {
	--bg: #fbfaf8;
	--surface: #ffffff;
	--surface-2: #f3f1ed;
	--text: #1a1a22;
	--muted: #5e5e6b;
	--line: #e6e3dd;
	--brand: #e8505b;
	--brand-2: #7c3aed;
	--brand-ink: #ffffff;
	--brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
	--good: #15803d;
	--warn: #b45309;
	--star: #f5a524;
	--radius: 14px;
	--radius-sm: 9px;
	--radius-pill: 999px;
	--shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 8px 24px rgba(20, 20, 40, .06);
	--shadow-lg: 0 2px 6px rgba(20, 20, 40, .08), 0 24px 60px rgba(20, 20, 40, .12);
	--font-head: Georgia, "Times New Roman", serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--head-weight: 700;
	--head-tracking: -0.02em;
	--hero-bg: linear-gradient(180deg, var(--surface-2), var(--bg));
	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 8vw, 104px);
	--header-h: 68px;
}

/* ---------- base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.gate-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: color-mix(in srgb, var(--brand) 80%, var(--text)); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); line-height: 1.15; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.block { display: block; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.eyebrow { font: 600 .78rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin: 0 0 .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 68ch; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- buttons, chips, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .72em 1.25em; border-radius: var(--radius-pill); border: 1.5px solid transparent; font: 600 .95rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); color: var(--brand-ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--sm { padding: .5em .95em; font-size: .85rem; }
.btn--lg { padding: .95em 1.6em; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }
.btn.is-done { border-color: var(--good); color: var(--good); }
.btn.is-disabled { opacity: .5; pointer-events: none; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .45em .9em; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 500 .88rem/1.2 var(--font-body); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chips--swatch .chip { display: inline-flex; align-items: center; gap: .5em; }
.chips--swatch .chip::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.chips--swatch .chip[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 2px var(--brand); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font: 600 .8rem/1.2 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; gap: 8px; }
input[type="text"], input[type="search"], input[type="email"], select, textarea { width: 100%; padding: .7em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type="range"] { width: 100%; accent-color: var(--brand); }
.toggle { display: inline-flex; align-items: center; gap: .5em; font-size: .92rem; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--brand); }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border-radius: var(--radius-pill); padding: 4px; gap: 2px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .45em 1em; border-radius: var(--radius-pill); font-size: .88rem; font-weight: 500; }
.seg input:checked + span { background: var(--surface); box-shadow: var(--shadow); color: var(--brand); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); }
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
legend { font: 600 .82rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; padding: 0; }
legend small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: .7em 1em; border: 0; background: none; font: 600 .9rem/1 var(--font-body); color: var(--muted); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- topbar & header ---------- */
.topbar { background: var(--text); color: var(--bg); font-size: .85rem; text-align: center; padding: 7px 0; }
.topbar a { color: inherit; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .04); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand__mark svg { width: 34px; height: 34px; }
.brand__name { font: 700 1.18rem/1 var(--font-head); letter-spacing: -0.01em; }
.brand__name b { color: var(--brand); font-weight: inherit; }
.brand__logo { max-height: 42px; width: auto; }
.brand__logo--footer { max-height: 48px; max-width: 220px; height: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a { display: block; padding: .55em .8em; color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: var(--radius-sm); }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--brand); }
.site-nav .menu-item-has-children > a::after { content: "▾"; font-size: .7em; margin-left: .35em; opacity: .6; }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s; }
.site-nav .menu-item-has-children:hover > .sub-menu, .site-nav .menu-item-has-children:focus-within > .sub-menu, .site-nav .is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.hero__bg { position: absolute; inset: 0; background: var(--hero-bg); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero--tool .hero__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
.hero__title { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
.hero__title em { font-style: normal; color: var(--brand); }
.hero__title .hl { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__text { font-size: 1.18rem; color: var(--muted); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; }
.hero__trust li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: .4em; }
.toppick { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 26px; box-shadow: var(--shadow-lg); }
.toppick__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.toppick__id { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.toppick__id h2 { font-size: 1.6rem; margin: 0 0 4px; }
.toppick__bars { margin: 16px 0 20px; display: grid; gap: 8px; }
.toppick__review { display: block; text-align: center; margin-top: 12px; font-size: .9rem; }

/* ---------- page heroes, crumbs ---------- */
.page-hero { padding: clamp(28px, 5vw, 60px) 0 clamp(20px, 3vw, 36px); background: var(--hero-bg); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero--center { text-align: center; }
.page-hero--center .searchform { justify-content: center; margin: 24px auto; max-width: 480px; }
.crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.disclosure { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.disclosure--small { font-size: .78rem; text-align: center; margin-top: 12px; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section--tool { background: var(--surface-2); padding-top: var(--section) !important; }
.section--tool + .section { padding-top: var(--section); }
.section__head { max-width: 720px; margin-bottom: 32px; }
.section__head p:last-child { color: var(--muted); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section__head--row h2 { margin: 0; }

/* ---------- logos, stars, flags ---------- */
.pf-logo { border-radius: calc(var(--radius) - 2px); flex-shrink: 0; object-fit: cover; }
.pf-logo--mono { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 800; color: #fff; letter-spacing: -0.02em; background: linear-gradient(135deg, hsl(var(--h) 72% 58%), hsl(calc(var(--h) + 40) 70% 42%)); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.stars { position: relative; display: inline-block; width: 86px; height: 16px; background: linear-gradient(90deg, var(--line) 0 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cg%3E%3Cpath id='s' d='M8 0l2.4 5 5.6.6-4.2 3.8 1.2 5.6L8 12.2 3 15l1.2-5.6L0 5.6 5.6 5z'/%3E%3Cuse href='%23s' x='17.5'/%3E%3Cuse href='%23s' x='35'/%3E%3Cuse href='%23s' x='52.5'/%3E%3Cuse href='%23s' x='70'/%3E%3C/g%3E%3C/svg%3E") no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cg%3E%3Cpath id='s' d='M8 0l2.4 5 5.6.6-4.2 3.8 1.2 5.6L8 12.2 3 15l1.2-5.6L0 5.6 5.6 5z'/%3E%3Cuse href='%23s' x='17.5'/%3E%3Cuse href='%23s' x='35'/%3E%3Cuse href='%23s' x='52.5'/%3E%3Cuse href='%23s' x='70'/%3E%3C/g%3E%3C/svg%3E") no-repeat; vertical-align: -2px; }
.stars__fill { position: absolute; inset: 0 auto 0 0; background: var(--star); }
.sample-flag { display: inline-block; font: 700 .66rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; padding: 4px 7px; border-radius: 5px; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); vertical-align: middle; cursor: help; }
.badge { display: inline-block; font: 700 .72rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; padding: 6px 9px; border-radius: var(--radius-pill); background: var(--brand); color: var(--brand-ink); white-space: nowrap; }
.score-pill { font: 600 1rem/1 var(--font-body); background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: var(--radius-pill); }
.score-pill strong { font-size: 1.3rem; }

/* ---------- score bars ---------- */
.scorebar { display: grid; grid-template-columns: minmax(90px, 140px) 1fr 34px; align-items: center; gap: 12px; font-size: .9rem; }
.scorebar__label { color: var(--muted); }
.scorebar__label:empty { display: none; }
.scorebar:has(.scorebar__label:empty) { grid-template-columns: 1fr 34px; }
.scorebar__track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.scorebar__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: inherit; }
.scorebar__val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- platform cards ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.pf-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pf-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.pf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pf-card[hidden] { display: none; }
.pf-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pf-card__rank { font: 800 .8rem/1 var(--font-body); width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); flex-shrink: 0; }
.pf-card__title { flex: 1; min-width: 0; }
.pf-card__title h3 { margin: 0 0 4px; font-size: 1.15rem; }
.pf-card__title h3 a { color: var(--text); text-decoration: none; }
.pf-card__title h3 a:hover { color: var(--brand); }
.pf-card__rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .9rem; }
.pf-card__tagline { color: var(--muted); font-size: .95rem; flex: 1; }
.pf-card__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.pf-card__facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pf-card__facts dd { margin: 2px 0 0; font-weight: 600; font-size: .86rem; line-height: 1.3; }
.pf-card__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-card__actions .btn--primary { flex: 1; }
.pf-card__compare { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); cursor: pointer; margin-left: auto; }
.pf-card__compare input { accent-color: var(--brand); width: 16px; height: 16px; }

/* ---------- directory & filters ---------- */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 24px; display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 10; box-shadow: var(--shadow); }
.filters__row { display: grid; grid-template-columns: 1fr 220px; gap: 12px; align-items: end; }
.filters__toggles { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.filters__count { margin-left: auto; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.directory .empty[hidden] { display: none; }
@media (max-height: 760px), (max-width: 700px) { .filters { position: static; } }

/* ---------- rankings tool ---------- */
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 34px 48px minmax(0, 1.4fr) minmax(120px, 1fr) 120px auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; transition: box-shadow .2s; }
.rank-row:first-child { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 3px var(--brand-soft); }
.rank-row:hover { box-shadow: var(--shadow); }
.rank-row__n { font: 800 1.3rem/1 var(--font-head); color: var(--muted); text-align: center; }
.rank-row:first-child .rank-row__n { color: var(--brand); }
.rank-row__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rank-row__name a { color: var(--text); text-decoration: none; font-size: 1.05rem; }
.rank-row__name > span { color: var(--muted); font-size: .86rem; }
.rank-row__name .sample-flag { align-self: flex-start; }
.rank-row__score { display: flex; align-items: center; gap: 10px; }
.rank-row__score strong { font: 800 1.25rem/1 var(--font-body); font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.rank-row__bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 9px; overflow: hidden; }
.rank-row__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s ease; }
.rank-row__price { display: flex; flex-direction: column; font-weight: 700; font-size: .95rem; }
.rank-row__price small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.rank-row__cta { display: flex; align-items: center; gap: 12px; }
.tool__more { margin: 20px 0 0; text-align: center; }

/* ---------- tool shells ---------- */
.tool { position: relative; }
.tool__panel { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 22px; box-shadow: var(--shadow); }
.tool--free, .tool--builder { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.tool--free .tool__panel, .tool--builder .tool__panel { position: sticky; top: calc(var(--header-h) + 12px); }
.tool__summary { font-weight: 600; margin-bottom: 14px; }
.match-list { display: grid; gap: 14px; }
.match-list--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.free-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.match { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.match--top { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.match__pct { position: absolute; top: 14px; right: 14px; font-size: .78rem; color: var(--muted); }
.match__pct strong { font-size: 1.15rem; color: var(--brand); }
.match__id { display: flex; gap: 12px; align-items: center; padding-right: 72px; }
.match-list--compact .match__id { padding-right: 0; }
.match__id h4 { margin: 0 0 3px; font-size: 1.08rem; font-family: var(--font-head); }
.match__id h4 a { color: var(--text); text-decoration: none; }
.match__tag { color: var(--muted); font-size: .92rem; margin: 0; }
.match__why { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.match__why li { font-size: .78rem; padding: 4px 9px; border-radius: 99px; background: var(--brand-soft); color: color-mix(in srgb, var(--brand) 75%, var(--text)); }
.match__why li::before { content: "✓ "; }
.match__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.free-note { font-size: .9rem; margin: 0; }
.free-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.free-badges li { font-size: .76rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); }
.free-badges li.is-good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }

/* quiz */
.tool--quiz { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); padding: clamp(20px, 3.4vw, 36px); box-shadow: var(--shadow-lg); }
.quiz__progress { height: 6px; background: var(--surface-2); border-radius: 9px; overflow: hidden; margin-bottom: 14px; }
.quiz__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .35s ease; }
.quiz__step { font-size: .82rem; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.quiz__title { font: var(--head-weight) clamp(1.35rem, 2.4vw, 1.75rem)/1.2 var(--font-head); letter-spacing: var(--head-tracking); color: var(--text); text-transform: none; margin-bottom: 18px; }
.quiz__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.quiz__opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); font: 600 .98rem/1.3 var(--font-body); cursor: pointer; transition: all .15s; }
.quiz__opt:hover { border-color: var(--brand); transform: translateY(-2px); }
.quiz__opt.is-picked { border-color: var(--brand); background: var(--brand-soft); }
.quiz__emoji { font-size: 1.5rem; line-height: 1; }
.quiz__nav { margin-top: 16px; min-height: 34px; }
.quiz__result-title { font-size: 1.5rem; }
.quiz__after { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }

/* builder */
.builder-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.builder-form__group { margin-bottom: 16px; }
.builder-out { display: grid; gap: 18px; }
.builder-out__h { font-size: 1.1rem; margin: 6px 0 0; }
.profile { display: grid; grid-template-columns: 200px 1fr; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 20px; box-shadow: var(--shadow-lg); }
.profile__art svg { width: 100%; border-radius: var(--radius); }
.profile__name { font-size: 1.7rem; margin: 0 0 8px; }
.profile__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.profile__tags span { font-size: .78rem; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); text-transform: capitalize; }
.profile__stats { display: grid; gap: 7px; margin-bottom: 14px; }
.profile__stats .scorebar { grid-template-columns: 94px 1fr 34px; font-size: .84rem; }
.bubble { position: relative; background: var(--brand-soft); padding: 12px 14px; border-radius: 4px 16px 16px 16px; font-size: .95rem; }
.bubble__from { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 3px; }

/* copy boxes & lab */
.copybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.copybox__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; }
.copybox__text { margin: 0; padding: 14px; white-space: pre-wrap; word-break: break-word; font: .88rem/1.6 var(--font-mono); max-height: 360px; overflow: auto; }
.copybox--neg .copybox__text { color: var(--muted); }
.lab__top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.lab__top .tabs { margin-bottom: 0; flex: 1; }
.lab__tools { display: flex; gap: 14px; align-items: center; padding-bottom: 8px; }
.lab__presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.lab__presets[hidden] { display: none; }
.lab__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 16px; }
.lab-form { display: grid; gap: 12px; }
.lab-form .field[hidden] { display: none; }
.lab-out { display: grid; gap: 14px; }
.lab__meta { font-size: .8rem; color: var(--muted); margin: -4px 0 0; font-family: var(--font-mono); }

/* ---------- compare ---------- */
.compare__pickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: .94rem; }
.compare-table thead th { vertical-align: bottom; position: sticky; top: 0; background: var(--surface); }
.compare-table thead th .pf-logo { margin-bottom: 8px; }
.compare-table thead th a { color: var(--text); text-decoration: none; font: 700 1.05rem/1.2 var(--font-head); display: block; margin-bottom: 4px; }
.compare-table tbody th { width: 170px; color: var(--muted); font-weight: 600; font-size: .86rem; }
.compare-table td.is-best { background: color-mix(in srgb, var(--good) 8%, transparent); }
.compare-table td.is-best::after { content: "Best"; display: inline-block; margin-left: 8px; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--good); }
.compare-table td.is-best:has(.scorebar)::after { display: none; }
.compare-table td.is-best .scorebar__val { color: var(--good); }
.compare-table__overall td strong { font-size: 1.3rem; margin-right: 6px; }
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--text); color: var(--bg); padding: 10px 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); }
.compare-tray__inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.compare-tray__label { font-weight: 700; font-size: .9rem; }
.compare-tray__items { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.tray-chip { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .14); font-size: .84rem; }
.compare-tray .btn--ghost { color: var(--bg); border-color: rgba(255, 255, 255, .3); }

/* ---------- review page ---------- */
.review-hero { background: var(--hero-bg); border-bottom: 1px solid var(--line); padding: clamp(24px, 4vw, 48px) 0; }
.review-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.review-hero__id { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.review-hero__id h1 { margin: 0 0 6px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.review-hero__tagline { color: var(--muted); font-size: 1.1rem; margin: 0; }
.review-hero__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list a { display: block; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: .82rem; color: var(--text); text-decoration: none; }
.tag-list a:hover { border-color: var(--brand); color: var(--brand); }
.cta-box { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 22px; box-shadow: var(--shadow-lg); position: sticky; top: calc(var(--header-h) + 16px); }
.cta-box__facts { margin: 0 0 18px; display: grid; gap: 10px; }
.cta-box__facts div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.cta-box__facts dt { color: var(--muted); }
.cta-box__facts dd { margin: 0; font-weight: 600; text-align: right; }
.review-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 40px; padding-bottom: 0; }
.review-body__main > section { margin-bottom: 36px; }
.verdict { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.verdict h2 { font-size: 1.25rem; }
.verdict p { margin: 0; font-size: 1.08rem; }
.scores { display: grid; gap: 10px; }
.scores h2 { font-size: 1.5rem; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proscons__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.proscons__col h2 { font-size: 1.1rem; }
.proscons__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.proscons__col li { padding-left: 26px; position: relative; font-size: .95rem; }
.proscons__col--pro li::before { content: "+"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.proscons__col--con li::before { content: "–"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, #dc2626 13%, transparent); color: #dc2626; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.callout { background: var(--surface-2); border-radius: var(--radius); padding: 18px 22px; }
.callout h2 { font-size: 1.1rem; }
.callout p { margin: 0; }
.review-body__cta { text-align: center; padding: 20px 0; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.side-box h2 { font-size: 1.1rem; }
.mini-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.mini-list li { display: flex; align-items: center; gap: 10px; }
.mini-list a { flex: 1; color: var(--text); font-weight: 600; text-decoration: none; }
.mini-list__score { font-weight: 700; color: var(--muted); white-space: nowrap; }
.mini-list__score small { font-weight: 500; opacity: .75; }
.top-picks { margin: 32px 0; }
.top-picks .pf-grid { margin-top: 16px; }
.partner-note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--brand); padding: 4px 0 4px 10px; margin: 8px 0 16px; }
.badge--partner { background: var(--text); color: var(--bg); }
.pf-card__best { margin: 0 0 12px; padding-left: 18px; font-size: .9rem; }
.pf-card__best li { margin: 2px 0; }
.partner-box { background: var(--surface-2); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; }
.partner-box h2 { font-size: 1.15rem; margin: 8px 0; }
.partner-box ul { margin: 0 0 8px; padding-left: 20px; }
.partner-box__label { margin: 0; }
.pf-card__score-link { font-size: .85rem; color: var(--muted); }
.rank-row__score .badge--partner { white-space: nowrap; }
.mini-list__partner { font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- prose ---------- */
.prose { font-size: 1.06rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 3px solid var(--brand); color: var(--muted); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.prose img { border-radius: var(--radius); }
.outline-note { background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9rem; font-weight: 600; }
.page-content { padding-bottom: var(--section); }
.home-copy { padding-bottom: var(--section); }

/* ---------- categories, vs, method, stats, faq, final ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: all .2s; position: relative; overflow: hidden; }
.cat-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: hsl(var(--h) 80% 60% / .12); transition: transform .3s; }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.cat-tile:hover::after { transform: scale(1.4); }
.cat-tile__icon { font-size: 1.6rem; }
.cat-tile__name { font: var(--head-weight) 1.12rem/1.2 var(--font-head); }
.cat-tile__desc { font-size: .88rem; color: var(--muted); flex: 1; }
.cat-tile__count { font-size: .78rem; font-weight: 700; color: var(--brand); }
.vs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.vs-card { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; flex-wrap: wrap; transition: all .2s; }
.vs-card:hover { border-color: var(--brand); color: var(--text); }
.vs-card__vs { font: 800 .75rem/1 var(--font-body); text-transform: uppercase; color: var(--muted); }
.vs-card__names { flex-basis: 100%; font-size: .92rem; }
.method { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.method__copy p { color: var(--muted); font-size: 1.08rem; }
.method__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.method__list li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.method__list strong { display: block; margin-bottom: 4px; }
.method__list span:not(.method__n) { font-size: .9rem; color: var(--muted); }
.method__n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--brand-soft); color: var(--brand); }
.stats { padding: 0 0 var(--section); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats__grid > div { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stats__grid strong { display: block; font: 800 clamp(1.8rem, 3.5vw, 2.6rem)/1 var(--font-head); color: var(--brand); margin-bottom: 6px; }
.stats__grid span { font-size: .88rem; color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq__item summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; font-size: 1.04rem; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 18px; margin: 0; }
.final-cta { text-align: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: calc(var(--radius) + 12px); padding: clamp(40px, 6vw, 72px) var(--gutter); }
.final-cta h2 { color: #fff; }
.final-cta p { opacity: .9; font-size: 1.1rem; max-width: 52ch; margin: 0 auto 24px; }
.final-cta .btn--primary { background: #fff; color: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.final-cta .btn--primary:hover { background: #fff; color: #000; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding-bottom: var(--section); }
.section .post-grid { padding-bottom: 0; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card__media img, .post-card__ph { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; }
.post-card__ph { background: radial-gradient(circle at 25% 30%, hsl(var(--h) 80% 70% / .7), transparent 55%), radial-gradient(circle at 80% 70%, hsl(calc(var(--h) + 90) 75% 60% / .6), transparent 50%), var(--surface-2); }
.post-card__body { padding: 20px; }
.post-card__meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.post-card__title { font-size: 1.22rem; }
.post-card__title a { color: var(--text); text-decoration: none; }
.post-card__title a:hover { color: var(--brand); }
.post-card__body p:last-child { color: var(--muted); font-size: .94rem; margin: 0; }
.article__meta { color: var(--muted); font-size: .92rem; }
.article__media img { border-radius: var(--radius); margin-bottom: 32px; }
.article__picks { padding: 40px var(--gutter); }
.nav-links { display: flex; gap: 8px; justify-content: center; padding-bottom: var(--section); }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.page-numbers.current { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.searchform { display: flex; gap: 8px; }
.comments { padding: 40px 0 var(--section); }
.comment-list { list-style: none; padding: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: var(--section); font-size: .93rem; }
.section:last-of-type + .site-footer, .home-copy + .site-footer { margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__about p { color: var(--muted); max-width: 40ch; margin-top: 14px; }
.site-footer__title { font: 700 .8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer__list a { color: var(--text); text-decoration: none; }
.site-footer__list a:hover { color: var(--brand); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.site-footer__bottom p { margin: 0; }
.legal-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.legal-links a { color: var(--muted); }
.disclosure--footer { font-size: .82rem; }
body:has(.compare-tray:not([hidden])) .site-footer { padding-bottom: 90px; }

/* ---------- age gate ---------- */
.agegate { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: color-mix(in srgb, var(--bg) 70%, rgba(0, 0, 0, .6)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.agegate[hidden] { display: none; }
.agegate__box { width: 100%; max-width: 440px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 10px); padding: 36px 28px; box-shadow: var(--shadow-lg); }
.agegate__mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 1.2rem/1 var(--font-body); color: var(--brand-ink); background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.agegate__box h2 { font-size: 1.7rem; }
.agegate__box p { color: var(--muted); }
.agegate__actions { display: grid; gap: 10px; margin: 22px 0 12px; }
.agegate__small { font-size: .8rem; }

/* ---------- dark scheme support ---------- */
.scheme-dark .site-header.is-scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.scheme-dark .topbar { background: var(--brand); color: var(--brand-ink); }
.scheme-dark .compare-tray { background: var(--surface); color: var(--text); border-top: 1px solid var(--line); }
.scheme-dark .compare-tray .btn--ghost { color: var(--text); border-color: var(--line); }
.scheme-dark .score-pill { background: var(--brand); color: var(--brand-ink); }
.scheme-dark .proscons__col--con li::before { color: #f87171; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.rank-row { grid-template-columns: 30px 44px minmax(0, 1fr) 110px auto; }
	.rank-row__price { display: none; }
	.tool--free, .tool--builder, .lab__grid { grid-template-columns: 1fr; }
	.tool--free .tool__panel, .tool--builder .tool__panel { position: static; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 20px var(--gutter) 40px; gap: 16px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
	.nav-open .site-nav { transform: none; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 0 14px; background: transparent; }
	.site-nav .is-open > .sub-menu { display: block; }
	.hero__grid, .hero--tool .hero__grid, .review-hero__grid, .review-body, .method { grid-template-columns: 1fr; }
	.cta-box, .side-box { position: static; }
	.method__list { grid-template-columns: 1fr; }
	.stats__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
	body { font-size: 16px; }
	.rank-row { grid-template-columns: 28px 40px minmax(0, 1fr); gap: 10px 12px; padding: 14px; }
	.rank-row .pf-logo { width: 40px !important; height: 40px !important; }
	.rank-row__score { grid-column: 2 / -1; }
	.rank-row__cta { grid-column: 1 / -1; justify-content: space-between; }
	.rank-row__cta .btn { flex: 1; }
	.filters__row, .compare__pickers, .builder-form__row, .proscons { grid-template-columns: 1fr; }
	.profile { grid-template-columns: 1fr; }
	.profile__art { max-width: 180px; }
	.pf-grid, .free-list, .post-grid, .match-list--compact { grid-template-columns: 1fr; }
	.section__head--row { flex-direction: column; align-items: start; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.hero__actions .btn { flex: 1; }
	.scorebar { grid-template-columns: 100px 1fr 30px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* hero "stack": centred copy with a full-width tool underneath */
.hero--stack .hero__grid { grid-template-columns: 1fr; gap: 36px; }
.hero--stack .hero__copy { text-align: center; max-width: 820px; margin: 0 auto; }
.hero--stack .hero__text { margin-left: auto; margin-right: auto; }
.hero--stack .hero__actions, .hero--stack .hero__trust { justify-content: center; }
.hero--stack .hero__actions { margin-bottom: 16px; }
.hero--tool .hero__copy { padding-top: 24px; }

/* Author avatar + author box */
.article__avatar { display: inline-block; vertical-align: middle; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; margin-right: .35em; }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 48px 0 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box__img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__body p { margin: 0; }
.author-box__label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.author-box__name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin-top: 2px !important; }
.author-box__name a { color: var(--text); text-decoration: none; }
.author-box__role { color: var(--muted); font-size: .92rem; }
.author-box__bio { margin-top: 10px !important; font-size: .97rem; }
@media (max-width: 560px) { .author-box { flex-direction: column; align-items: center; text-align: center; } }

/* ==========================================================================
   1.5.6 — tighter desktop spacing, and nothing wider than a phone screen
   ========================================================================== */

/* Desktop rhythm: sections were up to 104px apart (above AND below). */
:root { --section: clamp(32px, 4.2vw, 60px); }
.hero { padding: clamp(24px, 3.6vw, 52px) 0 clamp(28px, 3.8vw, 56px); }
.hero__actions { margin: 20px 0 16px; }
.hero__grid { gap: clamp(24px, 3.5vw, 48px); }
.section__head { margin-bottom: 20px; }
.section__head h2 { margin-bottom: 6px; }
.section__head p { margin: 0; }
.stats { padding-bottom: var(--section); }
.site-footer { padding: 44px 0 24px; }
.top-picks { margin: 24px 0; }
.review-body { padding-top: 28px; gap: 36px; }
.verdict, .scores, .proscons, .callout, .partner-box { margin-bottom: 20px; }

/* Mobile: the page itself never scrolls sideways. */
html, body { max-width: 100%; overflow-x: clip; }
main, .wrap, .review-body > *, .review-hero__main, .prose, .pf-card, .side-box, .cta-box { min-width: 0; }

/* Grids shrink with narrow columns instead of forcing a 320px minimum. */
.pf-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.pf-grid--3, .vs-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.free-list { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.post-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.quiz__opts { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.match-list--compact { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }

/* Review and guide text: long words wrap, wide tables scroll inside their own box. */
.prose { overflow-wrap: break-word; }
.prose .wp-block-table, .prose figure:has(> table) { margin: 1.5em 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .wp-block-table table, .prose figure > table { margin: 0; }
.prose > table { display: block; max-width: 100%; overflow-x: auto; }
.prose pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.prose iframe, .prose video, .prose embed, .prose object { max-width: 100%; }
.prose a { overflow-wrap: anywhere; }
.rank-math-toc-block nav ul, .wp-block-rank-math-toc-block nav ul { padding-left: 18px; }

@media (max-width: 700px) {
	.btn, .link-arrow { white-space: normal; text-align: center; }
	.badge { white-space: normal; }
	.hero__title { font-size: clamp(1.85rem, 8vw, 2.4rem); overflow-wrap: break-word; }
	.hero__text { font-size: 1.04rem; }
	.hero__trust { gap: 6px 14px; }
	.section__head { margin-bottom: 16px; }
	.pf-card { padding: 16px; }
	.pf-card__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; }
	.pf-card__facts dd { overflow-wrap: anywhere; }
	.pf-card__compare { margin-left: 0; }
	.review-hero__id { flex-wrap: wrap; gap: 12px; }
	.review-hero__id h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
	.cta-box, .side-box { padding: 16px; }
	.cta-box__facts div { flex-wrap: wrap; }
	.cta-box__facts dd { text-align: left; }
	.stats__grid { gap: 10px; }
	.stats__grid > div { padding: 16px 8px; }
	.rank-row__name, .rank-row__price { min-width: 0; overflow-wrap: anywhere; }
	.scorebar { grid-template-columns: minmax(0, 96px) minmax(0, 1fr) 30px; gap: 8px; }
	.compare-tray .wrap { flex-wrap: wrap; }
	.prose { font-size: 1rem; }
	.prose th, .prose td { padding: 8px; font-size: .88rem; }
	.prose h2 { font-size: 1.35rem; }
	.method__list, .stats__grid, .cat-grid { min-width: 0; }
}
.rank-row [hidden], .toppick [hidden] { display: none !important; }
@media (max-width: 700px) {
	.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cat-tile { padding: 14px; gap: 4px; }
	.cat-tile h3 { font-size: 1rem; }
	.cat-tile p { font-size: .82rem; line-height: 1.35; }
}

/* 1.6.0 — review header summary, in-review sign-up boxes, back-to-top */
.hero-summary { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.hero-summary__label { margin: 0 0 6px; }
.hero-summary__title { font-size: 1.15rem; margin: 0 0 8px; }
.hero-summary ul { margin: 0 0 8px; padding-left: 20px; }
.hero-summary li { margin: 2px 0; }
.hero-summary p:last-child { margin-bottom: 0; }
.review-hero__grid { align-items: stretch; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.inline-cta__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inline-cta__text strong { font-size: 1.05rem; }
.inline-cta__text span { font-size: .9rem; color: var(--muted); }
.prose .inline-cta .btn { text-decoration: none; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand); color: var(--brand-ink); font: 700 1.3rem/1 var(--font-body); text-decoration: none; box-shadow: var(--shadow-lg); transition: transform .15s, bottom .2s; }
.to-top:hover { transform: translateY(-2px); color: var(--brand-ink); }
.to-top[hidden] { display: none; }
.to-top--raised { bottom: 84px; }
@media (max-width: 700px) {
	.inline-cta { flex-direction: column; align-items: stretch; text-align: center; }
	.to-top { right: 12px; bottom: 12px; width: 42px; height: 42px; }
	.to-top--raised { bottom: 96px; }
}

/* 1.6.3 — review sidebar offer cards (base) */
.side-box--offers { position: static; padding: 14px; }
.offers__eyebrow { margin: 2px 4px 10px; font: 700 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; }
.offer__top { display: flex; justify-content: space-between; align-items: center; }
.offer__rank { font: 800 .8rem/1 var(--font-body); padding: 5px 9px; border-radius: 99px; background: var(--text); color: var(--bg); }
.offer__score { font: 800 1rem/1 var(--font-body); font-variant-numeric: tabular-nums; }
.offer__score small { font-weight: 500; color: var(--muted); }
.offer__label { margin: 0; font: 700 .7rem/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.offer__id { display: flex; gap: 10px; align-items: flex-start; }
.offer__id .pf-logo, .offer__id img { flex-shrink: 0; border-radius: 10px; }
.offer__copy { min-width: 0; }
.offer__copy h3 { margin: 0 0 2px; font-size: 1rem; }
.offer__copy h3 a { color: var(--text); text-decoration: none; }
.offer__copy p { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.offer__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.offer__facts div { background: var(--surface-2); border-radius: 8px; padding: 6px 8px; min-width: 0; }
.offer__facts dt { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.offer__facts dd { margin: 1px 0 0; font-size: .78rem; font-weight: 600; overflow-wrap: anywhere; }
.offer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.offer__actions .btn { padding: .55em .6em; font-size: .8rem; white-space: nowrap; }
.offers__how { margin: 10px 4px 0; font-size: .78rem; text-align: center; }
.offers__how a { color: var(--muted); }

/* Best AI Companion — editorial: clean white cards, serif names, dark rank tag. */
.site-bestaicompanion .offer { box-shadow: var(--shadow); }
.site-bestaicompanion .offer__copy h3 { font-family: var(--font-head); font-size: 1.08rem; }

/* Free AI Companion — compact: no card borders, divider lines, free access highlighted. */
.site-freeaicompanion .offers { gap: 0; }
.site-freeaicompanion .offer { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 14px 4px; }
.site-freeaicompanion .offer:last-child { border-bottom: 0; }
.site-freeaicompanion .offer__rank { background: var(--brand); color: var(--brand-ink); }
.site-freeaicompanion .offer__facts div:last-child { background: color-mix(in srgb, var(--good, #16a34a) 14%, transparent); }

/* My Best AI GF — soft: pastel tint, rounded, gradient top edge. */
.site-mybestaigf .offer { border-radius: 18px; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 22%, var(--line)); position: relative; overflow: hidden; padding-top: 15px; }
.site-mybestaigf .offer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2, var(--brand))); }
.site-mybestaigf .offer__rank { background: var(--brand); color: var(--brand-ink); }
.site-mybestaigf .offer__actions .btn { border-radius: 99px; }

/* Your AI Girlfriend — dark panel with light cards. */
.site-youraigirlfriend .side-box--offers { background: var(--text); border-color: var(--text); }
.site-youraigirlfriend .offers__eyebrow { color: var(--bg); opacity: .8; }
.site-youraigirlfriend .offer { border: 0; }
.site-youraigirlfriend .offer__rank { background: var(--brand); color: var(--brand-ink); }
.site-youraigirlfriend .offers__how a { color: var(--bg); opacity: .75; }

/* Your Best AI GF — data style: big rank number, monospace score, square corners. */
.site-yourbestaigf .offer { border-radius: 6px; border-left: 3px solid var(--brand); }
.site-yourbestaigf .offer__rank { background: none; color: var(--brand); padding: 0; font: 800 1.35rem/1 var(--font-mono, monospace); }
.site-yourbestaigf .offer__score { font-family: var(--font-mono, monospace); }
.site-yourbestaigf .offer__facts div, .site-yourbestaigf .offer__actions .btn { border-radius: 4px; }

/* 1.6.7 — scores pending */
.score-soon { display: inline-block; font: 600 .78rem/1 var(--font-body); padding: 5px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); white-space: nowrap; }
.scorebar .score-soon { justify-self: start; }
.score-pending-note { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); }
.site-youraigirlfriend .side-box--offers .score-soon { background: transparent; color: var(--muted); }

/* 1.6.11 — header logo never pushes the menu button off small screens */
@media (max-width: 960px) {
	.site-header__inner { gap: 12px; }
	.site-header .brand { flex-shrink: 1; min-width: 0; max-width: calc(100% - 60px); }
	.site-header .brand__logo { max-width: 100%; height: auto; max-height: 40px; object-fit: contain; object-position: left center; }
	.nav-toggle { flex-shrink: 0; }
}

/* ---------- Screenshots ---------- */
.shots { margin: 2rem 0; }
.shots__title { margin: 0 0 .9rem; }
.shots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.shots__item { margin: 0; }
.shots__link { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(127,127,127,.25); background: rgba(127,127,127,.08); cursor: zoom-in; }
.shots__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .25s ease; }
.shots__link:hover .shots__img, .shots__link:focus-visible .shots__img { transform: scale(1.03); }
.shots__item figcaption { font-size: .85rem; opacity: .8; margin-top: .4rem; line-height: 1.4; }
.prose .shots__img { border-radius: 0; }
.shots-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 3rem 3.5rem; }
.shots-lb[hidden] { display: none; }
.shots-lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.shots-lb__fig img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; border-radius: 6px; }
.shots-lb__fig figcaption { color: #fff; margin-top: .75rem; text-align: center; font-size: .95rem; }
.shots-lb__close, .shots-lb__nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 28px; line-height: 44px; cursor: pointer; padding: 0; }
.shots-lb__close { top: 1rem; right: 1rem; }
.shots-lb__prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.shots-lb__next { right: .75rem; top: 50%; transform: translateY(-50%); }
.shots-lb__close:hover, .shots-lb__nav:hover { background: rgba(255,255,255,.25); }
@media (max-width: 600px) {
	.shots__grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
	.shots-lb { padding: 3.5rem .5rem; }
	.shots-lb__nav { top: auto; bottom: 1rem; transform: none; }
}

/* Screenshots spread through the review (1.6.16) */
.shots-inline { margin: 1.4em 0 1.7em; }
.shots-inline__item { margin: 0; }
.shots-inline__item .shots__link { display: block; width: fit-content; max-width: 100%; margin: 0 auto; }
.shots-inline__img { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; margin: 0 auto; transition: transform .25s ease; }
.prose .shots-inline__img { border-radius: 0; }
.shots__link:hover .shots-inline__img, .shots__link:focus-visible .shots-inline__img { transform: scale(1.02); }
.shots-inline--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; align-items: start; }
.shots-inline--grid .shots__link { width: auto; }
.shots-inline--grid .shots-inline__img { width: 100%; max-height: none; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.shots-inline__item figcaption { font-size: .85rem; opacity: .8; margin-top: .45rem; text-align: center; line-height: 1.4; }

/* Cookie consent (1.6.17) */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 990; display: flex; justify-content: center; pointer-events: none; }
.cc[hidden] { display: none; }
.cc__inner { pointer-events: auto; width: 100%; max-width: 880px; display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: 0 18px 50px rgba(0, 0, 0, .22); }
.cc__text { flex: 1; margin: 0; font-size: .9rem; line-height: 1.5; }
.cc__text strong { margin-right: .3em; }
.cc__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cc__btn { min-width: 110px; }
.cc-reopen { display: inline-block; margin-top: 8px; padding: 0; background: none; border: 0; color: inherit; font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; opacity: .8; cursor: pointer; }
.cc-reopen:hover { opacity: 1; }
@media (max-width: 640px) {
	.cc { left: 10px; right: 10px; bottom: 10px; }
	.cc__inner { flex-direction: column; align-items: stretch; gap: 12px; }
	.cc__btn { flex: 1; }
}
