/* ==========================================================================
   AIGF Network — single stylesheet for every GEO site.
   Plain CSS, no framework, no build step beyond Cecil's minifier.
   ========================================================================== */

:root {
    --c-bg: #ffffff;
    --c-bg-alt: #f6f7fb;
    --c-text: #16181d;
    --c-muted: #5b6270;
    --c-border: #e2e5ec;
    --c-accent: #6b42d9;
    --c-accent-dark: #4f2fa8;
    --c-positive: #12855a;
    --c-negative: #b3261e;
    --c-star: #f5a524;

    --radius: 10px;
    --gap: 1rem;
    --container: 1140px;
    --container-narrow: 760px;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .05);
}

.content-block { margin-block: 2.5rem; }
.content-blocks { padding-block-end: 2rem; }
.block-callout { padding: 2rem; border-radius: var(--radius); background: var(--c-bg-alt); }
.table-scroll { overflow-x: auto; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* The header is sticky, so an anchor jump (table of contents, "on this page")
   must stop below it rather than under it. The homepage adds its section bar. */
html { scroll-padding-top: 5rem; }
html:has(.section-nav) { scroll-padding-top: 8.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* A short page — an almost empty section index, the 404 — used to leave the
   footer floating in the middle of the screen with white space under it.
   The column keeps it on the bottom edge without ever overlapping content. */
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--c-accent); }
a:hover { color: var(--c-accent-dark); }

:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 2px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.2rem; }

p, ul, ol, table { margin: 0 0 1rem; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1rem;
}
.container--narrow { max-width: var(--container-narrow); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--c-accent);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header / navigation ---------- */

.site-header {
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
    position: sticky;
    top: 0;
    z-index: 20;
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--gap);
    min-height: 64px;
    flex-wrap: wrap;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--c-text);
    margin-right: auto;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--c-accent);
    color: #fff;
    font-size: .8rem;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: .5rem .75rem;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
    display: block;
    width: 18px; height: 2px;
    background: currentColor;
    position: relative;
}
.nav-toggle__bar::before { content: ""; position: absolute; top: -6px; }
.nav-toggle__bar::after { content: ""; position: absolute; top: 6px; }

.site-header__nav { flex-basis: 100%; }

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0 0 .75rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.nav__link {
    display: block;
    padding: .5rem 0;
    text-decoration: none;
    color: var(--c-text);
    font-weight: 500;
}
.nav__link:hover, .nav__link.is-current { color: var(--c-accent); }

@media (min-width: 860px) {
    .nav-toggle { display: none; }
    .site-header__nav { flex-basis: auto; }
    .nav__list { flex-direction: row; gap: 1.25rem; padding: 0; }
    /* Brand | menu | search on one line. */
    .site-header__nav { order: 2; }
    .search-toggle { order: 3; }
}

/* JS-enhanced mobile menu */
.js .site-header__nav[hidden] { display: none; }

/* ---------- search ---------- */

.search-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 40px;
    padding: .45rem .7rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text);
    text-decoration: none;
    font-weight: 500;
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] { border-color: var(--c-accent); color: var(--c-accent); }
.search-toggle svg { flex: 0 0 auto; }

/* On a phone the brand, search and menu share one line: the two buttons keep
   their words for screen readers and show only their icons. */
@media (max-width: 559px) {
    .site-header__inner { flex-wrap: wrap; gap: .5rem; }
    .brand { min-width: 0; flex: 1 1 0; }
    .brand__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .search-toggle, .nav-toggle { min-width: 44px; min-height: 44px; justify-content: center; padding: .5rem; }
    .search-toggle__label, .nav-toggle__label {
        position: absolute;
        width: 1px; height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .nav-toggle { position: relative; }
}

.search-panel {
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
    padding: .9rem 0 1rem;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
}
.search-panel[hidden] { display: none; }

.search-form { display: flex; gap: .5rem; }
.search-form__input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: .55rem .85rem;
    font: inherit;
    color: inherit;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.search-form__input:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 25%, transparent); }
.search-form__button { flex: 0 0 auto; }
.search-box__status { margin: .6rem 0 0; font-size: .875rem; color: var(--c-muted); }
.search-box__status:empty { display: none; }
.search-results { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.search-results[hidden] { display: none; }
.search-result {
    display: block;
    padding: .7rem .9rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    text-decoration: none;
    color: var(--c-text);
}
.search-result:hover, .search-result:focus-visible { border-color: var(--c-accent); }
.search-result__section { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted); }
.search-result__title { display: block; font-weight: 600; color: var(--c-accent); }
.search-result__text { display: block; font-size: .875rem; color: var(--c-muted); }
.search-result mark { background: color-mix(in srgb, var(--c-star) 35%, transparent); color: inherit; border-radius: 2px; }
.search-page .search-box { margin: 1.25rem 0 2rem; }

/* ---------- sticky "on this page" bar (homepage) ---------- */

.section-nav {
    position: sticky;
    top: var(--header-height, 65px);
    z-index: 15;
    background: color-mix(in srgb, var(--c-bg) 94%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-border);
}
.section-nav__list {
    list-style: none;
    display: flex;
    gap: .35rem;
    margin: 0;
    padding: .5rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.section-nav__list::-webkit-scrollbar { display: none; }
.section-nav__link {
    display: block;
    white-space: nowrap;
    padding: .35rem .8rem;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--c-muted);
}
.section-nav__link:hover { color: var(--c-accent); background: var(--c-bg-alt); }
.section-nav__link.is-active { color: var(--c-on-accent, #fff); background: var(--c-accent); }

/* ---------- back to top ---------- */

.to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 25;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-on-accent, #fff);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .22);
    animation: to-top-in .2s ease-out;
}
.to-top:hover { background: var(--c-accent-dark); color: var(--c-on-accent, #fff); }
.to-top[hidden] { display: none; }
@keyframes to-top-in { from { opacity: 0; transform: translateY(8px); } }
/* Clear the review's sticky offer bar on a phone. */
@media (max-width: 720px) { .page--review .to-top { bottom: calc(var(--sticky-cta-height, 7rem) + .75rem); } }
@media print { .to-top { display: none; } }

/* ---------- breadcrumbs ---------- */

.breadcrumbs { border-bottom: 1px solid var(--c-border); background: var(--c-bg-alt); }
.breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
    padding: .6rem 0;
    font-size: .875rem;
    color: var(--c-muted);
}
.breadcrumbs__item + .breadcrumbs__item::before { content: "›"; margin-right: .35rem; color: var(--c-muted); }

/* ---------- layout blocks ---------- */

.main { display: block; flex: 1 0 auto; }
.section { padding: 2.5rem 0; }
.section--alt { background: var(--c-bg-alt); }
.section__title { margin-bottom: 1.25rem; }

.hero { padding: 2.5rem 0 1.5rem; background: var(--c-bg-alt); }
.hero__text { font-size: 1.1rem; color: var(--c-muted); }
.hero__actions { margin-top: 1rem; }

.article { padding: 1.75rem 0 3rem; }
.article__intro { font-size: 1.1rem; color: var(--c-muted); }
.article__meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1rem 0; }

.page-meta { margin: 0; font-size: .875rem; color: var(--c-muted); }

.byline { display: flex; align-items: center; gap: .6rem; font-size: .875rem; color: var(--c-muted); }
.byline__avatar { border-radius: 50%; }
.byline__text { margin: 0; }
.byline__name { font-weight: 600; color: var(--c-text); }
.byline__role::before, .byline__reviewer::before { content: " · "; }

.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose blockquote {
    margin: 1.5rem 0;
    padding: .75rem 1rem;
    border-left: 4px solid var(--c-accent);
    background: var(--c-bg-alt);
}

/* ---------- disclosure ---------- */

.disclosure {
    font-size: .8125rem;
    color: var(--c-muted);
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: .6rem .8rem;
}
.disclosure--footer { background: none; border: 0; padding: 0 0 1rem; }

/* ---------- buttons ---------- */

.btn {
    display: inline-block;
    padding: .7rem 1.15rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}
.btn--primary { background: var(--c-accent); color: var(--c-on-accent, #fff); }
.btn--primary:hover { background: var(--c-accent-dark); color: var(--c-on-accent, #fff); }
.btn--ghost { border-color: var(--c-border); color: var(--c-text); background: #fff; }
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn--small { padding: .45rem .8rem; font-size: .875rem; }

/* ---------- rating ---------- */

/* 'position: relative' keeps the .visually-hidden label (absolutely positioned)
   anchored here instead of against the page, which would add horizontal overflow. */
.rating { position: relative; display: inline-flex; align-items: center; gap: .4rem; }
.rating__stars {
    position: relative;
    display: inline-block;
    width: 84px; height: 16px;
    background: linear-gradient(var(--c-border), var(--c-border));
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 16.8px);
    mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 16.8px);
}
.rating__track { fill: var(--c-border); }
.rating__stars-fill { fill: var(--c-star); }
.rating__value { font-weight: 700; font-size: .9rem; }

/* ---------- product card ---------- */

.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
    position: relative;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: #fff;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}
.product-card__rank {
    position: absolute;
    top: -12px; left: 1.25rem;
    background: var(--c-accent);
    color: #fff;
    border-radius: 999px;
    min-width: 28px; height: 28px;
    display: grid; place-items: center;
    font-size: .8rem; font-weight: 700;
}
.product-card__head { display: flex; gap: 1rem; align-items: flex-start; }
/* Uploaded logos are not all square — a wide banner and a tall mark would
   otherwise give their cards different heights. A fixed box sized by
   object-fit keeps every card on the same line without distorting anything. */
.product-card__logo { border-radius: 12px; flex: 0 0 auto; width: 72px; height: 72px; object-fit: contain; }
.product-card__name { margin: 0 0 .25rem; }
.product-card__badge { margin: 0 0 .25rem; font-size: .8rem; color: var(--c-accent); font-weight: 600; }
.product-card__highlight { color: var(--c-muted); margin-top: .75rem; }
.product-card__features { margin: .75rem 0; padding-left: 1.1rem; }
.product-card__meta {
    display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
    margin: 1rem 0; padding: .75rem 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    font-size: .9rem;
}
.product-card__meta dt { color: var(--c-muted); font-size: .8rem; }
.product-card__meta dd { margin: 0; font-weight: 600; }
.product-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.product-card--compact { box-shadow: none; }

/* ---------- pros & cons ---------- */

.pros-cons { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
@media (min-width: 720px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons__col { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1rem; }
.pros-cons__title { margin: 0 0 .5rem; font-size: 1rem; }
.pros-cons__col--pros .pros-cons__title { color: var(--c-positive); }
.pros-cons__col--cons .pros-cons__title { color: var(--c-negative); }
.pros-cons__list { margin: 0; padding-left: 1.1rem; }

/* ---------- verdict ---------- */

.verdict {
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-accent);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--c-bg-alt);
}
.verdict__title { margin-top: 0; font-size: 1.1rem; }

/* ---------- tables ---------- */

/* Wide tables scroll inside this box. It must be a containing block so that
   screen-reader-only labels inside the table cannot widen the page itself. */
.table-wrap { position: relative; overflow-x: auto; margin: 1.5rem 0; }
.ranking-table, .comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    min-width: 560px;
}
.ranking-table th, .ranking-table td,
.comparison-table th, .comparison-table td {
    padding: .7rem .6rem;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
    vertical-align: middle;
}
.ranking-table thead th, .comparison-table thead th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--c-muted);
}
.ranking-table__rank { font-weight: 700; width: 3rem; }

/* A table cell has to stay a table cell. 'display: flex' here took the row
   heading out of the table's row model, so it no longer stretched to the row
   height and its bottom border sat a few pixels above every other column.
   Inline layout puts the logo beside the name without leaving the grid. */
.ranking-table__product img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: .5rem;
}
.ranking-table__cta { text-align: right; }
.comparison-table__features { margin: 0; padding-left: 1rem; font-size: .875rem; }

/* A table written in Markdown, or built with the CMS table block, carries no
   class of its own — it is styled through the box it lands in so that editors
   get the same table as the engine's own. */
.prose table, .table-scroll table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    margin: 1.5rem 0;
}
.prose th, .prose td,
.table-scroll th, .table-scroll td {
    padding: .7rem .6rem;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
    vertical-align: top;
}
.prose thead th, .table-scroll thead th {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--c-muted);
}
.prose caption, .table-scroll caption {
    caption-side: top;
    text-align: left;
    font-weight: 600;
    padding-bottom: .5rem;
}

/* Markdown tables have no scroll box around them, so the table itself becomes
   the scroller once the column text stops fitting. */
@media (max-width: 720px) {
    .prose table {
        display: block;
        width: max-content;
        max-width: 100%;
        overflow-x: auto;
    }
}

/* Keep the decision and its action visible when a comparison cannot fit.
   Native lists/details are also the fallback without container-query support. */
.product-overview { container-type: inline-size; }
.product-overview__table { display: none; }
.product-summaries { display: grid; gap: 1rem; list-style: none; margin: 1.5rem 0; padding: 0; }
.product-summary { min-width: 0; padding: 1rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); }
.product-summary__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.product-summary__name { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.product-summary__rank { color: var(--c-accent); }
.product-summary__facts { display: grid; gap: .5rem; margin: 1rem 0; }
.product-summary__facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .75rem; }
.product-summary__facts dt { color: var(--c-muted); font-size: .875rem; }
.product-summary__facts dd { margin: 0; overflow-wrap: anywhere; }
.product-summary__features { margin: .5rem 0; }
.product-summary__features summary { padding: .7rem 0; cursor: pointer; }
.product-summary__features ul { padding-left: 1.25rem; }
.product-summary__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.product-summary__actions .btn { flex: 1 1 10rem; min-height: 44px; overflow-wrap: anywhere; }
@container (min-width: 640px) {
    .product-summaries { display: none; }
    .product-overview__table { display: block; }
}

/* ---------- CTA ---------- */

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 2rem 0;
    background: var(--c-bg-alt);
}
.cta__title { margin: 0 0 .25rem; font-size: 1.15rem; }
.cta__text { margin: 0; color: var(--c-muted); }
.cta__note { margin: .5rem 0 0; font-size: .75rem; color: var(--c-muted); max-width: 42ch; }

/* ---------- FAQ ---------- */

.faq { margin: 2.5rem 0; }
.faq__item {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    margin-bottom: .5rem;
    background: #fff;
}
.faq__question {
    cursor: pointer;
    padding: .85rem 1rem;
    font-weight: 600;
    list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: "+"; float: right; color: var(--c-accent); }
.faq__item[open] .faq__question::after { content: "–"; }
.faq__answer { padding: 0 1rem 1rem; }
.faq__answer > :last-child { margin-bottom: 0; }

/* ---------- TOC / related / lists ---------- */

.toc {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--c-bg-alt);
}
.toc__title { font-size: 1rem; margin: 0 0 .5rem; }
.toc ol, .toc ul { margin: 0; padding-left: 1.1rem; }

/* ---------- articles ---------- */

.article__kicker { margin: 0 0 .75rem; }
.kicker {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    color: var(--c-muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
}
.kicker:hover { border-color: var(--c-accent); color: var(--c-accent); }

.article-group { margin: 2rem 0; }
.article-group__title { font-size: 1.25rem; margin-bottom: .75rem; }

/* Product cards named by an article or a guide, laid out under the text. */
.article-products, .guide-products { display: grid; gap: 1rem; margin: 2rem 0 0; }
@media (min-width: 720px) {
    .article-products, .guide-products { grid-template-columns: repeat(2, 1fr); }
}

.related { margin: 2.5rem 0 0; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.link-list--cards li {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    background: #fff;
}
.link-list__excerpt, .related__excerpt {
    display: block;
    font-size: .875rem;
    color: var(--c-muted);
}
.related__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--c-border);
    background: var(--c-bg-alt);
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: .9rem;
}

/* Social profiles. Text pills until there are accounts worth putting a brand
   mark on; swapping in icons is a change inside social-links.twig alone. */
.social-links { margin-top: 1rem; }
.social-links__list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.social-links__link {
    display: inline-block;
    padding: .35rem .75rem;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-text);
    text-decoration: none;
    font-size: .8125rem;
    min-height: 32px;
}
.social-links__link:hover { border-color: var(--c-accent); color: var(--c-accent); }
.site-footer .nav__list { flex-direction: row; flex-wrap: wrap; gap: 1rem; padding: 0; }
.site-footer__meta { color: var(--c-muted); margin: 1rem 0 0; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ---------- featured image ---------- */

.article__image { margin: 1.5rem 0; }
.article__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}
.article__image figcaption {
    margin-top: .5rem;
    font-size: .875rem;
    color: var(--c-muted);
}

/* On the homepage the image is decoration, not the subject — capped so the
   ranking cards stay within reach of the first screen. */
.article__image--hero img { max-height: 380px; object-fit: cover; }

/* ==========================================================================
   Product hero — the first screen of a review.
   A reader arriving from search decides in seconds: the visual, the score, the
   price and the button all sit above the fold, and the prose starts below.
   ========================================================================== */

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: stretch;
    margin: 1.5rem 0 1rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--c-border);
    border-radius: calc(var(--radius) * 1.6);
    background: var(--c-bg);
    box-shadow: var(--shadow);
}

.product-hero__visual {
    position: relative;
    overflow: hidden;
    align-self: center;
    border-radius: var(--radius);
    background: var(--c-bg-alt);
}

/* Screenshots arrive in whatever shape the vendor's page happens to be, so the
   frame follows the image rather than cropping its headline off. The engine
   wraps them in <picture>, which is inline and would otherwise leave a strip of
   background under every screenshot. */
.product-hero__visual picture,
.product-card__shot picture { display: block; }

.product-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
}

/* No screenshot yet: a branded panel rather than an empty frame. */
.product-hero__visual--fallback {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background:
        radial-gradient(120% 120% at 15% 10%, color-mix(in srgb, var(--c-accent) 28%, #fff) 0%, transparent 60%),
        linear-gradient(135deg, color-mix(in srgb, var(--c-accent) 88%, #000) 0%, var(--c-accent) 100%);
}

.product-hero__monogram {
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    opacity: .92;
    letter-spacing: -.03em;
}

.product-hero__body {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    justify-content: center;
}

.product-hero__kicker {
    margin: 0;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-accent);
}

.product-hero__head { display: flex; align-items: center; gap: .7rem; margin: 0; }
.product-hero__logo { border-radius: 12px; flex: 0 0 auto; width: 56px; height: 56px; object-fit: contain; }
.product-hero__name { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.product-hero__tagline { margin: 0; color: var(--c-muted); font-size: 1.05rem; }
.product-hero__actions { margin-top: .4rem; }
.product-hero__official { margin: 0; font-size: .875rem; color: var(--c-muted); }
.product-hero__official a { color: inherit; }

.btn--lg {
    padding: .95rem 1.6rem;
    font-size: 1.05rem;
    width: 100%;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--c-accent) 35%, transparent);
}
.btn--lg::after { content: " \2192"; }

/* The facts a reader checks before reading a word. */
.fact-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .6rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.fact-chip {
    padding: .7rem .9rem;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--c-accent) 7%, var(--c-bg-alt));
}

.fact-chip__label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.fact-chip__value { display: block; font-weight: 600; margin-top: .15rem; }

@media (max-width: 720px) {
    .product-hero { grid-template-columns: 1fr; }
    .product-hero__visual { min-height: 180px; }
}

/* Ranking cards carry the product's own screen: the ranking is where most
   readers arrive from search, and a picture of the app outsells a list. */
.product-card__shot {
    margin: -1.25rem -1.25rem 1rem;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    background: var(--c-bg-alt);
}
.product-card__shot img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; object-position: top center; }

/* The offer stays reachable on a phone, where the hero scrolls away fast. */
.sticky-cta {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    padding: .6rem .9rem;
    background: color-mix(in srgb, var(--c-bg) 92%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -4px 16px rgba(16, 24, 40, .08);
}
.sticky-cta__notice { grid-column: 1 / -1; margin: 0; font-size: .75rem; line-height: 1.4; color: var(--c-muted); }
.sticky-cta__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sticky-cta__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta__rating { font-size: .8rem; color: var(--c-muted); }
.sticky-cta .btn { max-width: 55vw; overflow-wrap: anywhere; }

@media (max-width: 720px) {
    .sticky-cta { display: grid; padding-bottom: max(.6rem, env(safe-area-inset-bottom)); }
    .page--review { padding-bottom: 12rem; }
}

@media print { .sticky-cta { display: none; } }

/* ==========================================================================
   Homepage comparison: filter bar, table on wide screens, cards on narrow.
   Without JavaScript the filter bar stays hidden and every row is shown.
   ========================================================================== */

.compare { container-type: inline-size; }

.compare-tools {
    display: grid;
    gap: .75rem;
    margin: 0 0 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg-alt);
}
.compare-tools[hidden] { display: none; }
.compare-tools__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; border: 0; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 40px;
    padding: .35rem .85rem;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-bg);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}
.chip input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--c-accent); }
.chip:has(input:checked) { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 10%, var(--c-bg)); color: var(--c-accent-dark); }
.chip:has(input:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.compare-tools__selects { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem .9rem; }
.compare-tools__field { display: grid; gap: .2rem; font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--c-muted); }
.compare-tools__field select {
    min-height: 40px;
    min-width: 9rem;
    padding: .4rem .6rem;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--c-text);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.compare-tools__status { margin: 0; font-size: .85rem; color: var(--c-muted); }
.compare-tools__status:empty { display: none; }
@container (max-width: 559.98px) {
    .compare-tools { padding: .75rem; gap: .6rem; }
    .chip { min-height: 36px; padding: .3rem .65rem; font-size: .85rem; }
    .compare-tools__selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .compare-tools__field select { min-width: 0; width: 100%; }
    .compare-tools__selects .btn { min-height: 40px; }
}

.compare__table { display: none; margin: 0; }
.compare__cards { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
@container (min-width: 900px) {
    .compare__table { display: block; }
    .compare__cards { display: none; }
}
@container (min-width: 560px) and (max-width: 899.98px) {
    .compare__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare-table th, .compare-table td {
    padding: .75rem .5rem;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
    vertical-align: middle;
}
.compare-table thead th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-muted);
    white-space: nowrap;
}
.compare-table__rank { font-weight: 700; width: 2.5rem; }
.compare-table__product { min-width: 13rem; }
.compare-table__product img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; margin-right: .6rem; float: left; }
.compare-table__name { display: block; overflow: hidden; }
.compare-table__name a { font-weight: 700; color: var(--c-text); text-decoration-color: color-mix(in srgb, var(--c-accent) 45%, transparent); text-underline-offset: 3px; }
.compare-table__name a:hover { color: var(--c-accent); }
.compare-table__badge { display: block; font-size: .8rem; font-weight: 500; color: var(--c-muted); }
.compare-table__price { white-space: nowrap; }
.compare-table__platforms { font-size: .85rem; color: var(--c-muted); }
.compare-table__cta { text-align: right; white-space: nowrap; }
.compare-table__review { display: block; margin-top: .3rem; font-size: .8rem; }
.compare-table tbody tr:hover { background: var(--c-bg-alt); }

.flag { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: .8rem; font-weight: 700; line-height: 1; }
.flag--yes { color: var(--c-positive); background: color-mix(in srgb, var(--c-positive) 12%, transparent); }
.flag--no { color: var(--c-muted); background: var(--c-bg-alt); }

.compare-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    box-shadow: var(--shadow);
}
.compare-card__head { display: flex; align-items: center; gap: .75rem; }
.compare-card__logo { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; flex: 0 0 auto; }
.compare-card__name { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.compare-card__name a { color: var(--c-text); }
.compare-card__rank { color: var(--c-accent); }
.compare-card__badge { margin: .6rem 0 0; font-size: .85rem; font-weight: 600; color: var(--c-accent); }
.compare-card__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; margin: .9rem 0; }
.compare-card__facts > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--c-border); }
.compare-card__facts > div:last-child { grid-column: 1 / -1; }
.compare-card__facts dt { font-size: .8rem; color: var(--c-muted); }
.compare-card__facts dd { margin: 0; font-size: .875rem; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.compare-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.compare-card__actions .btn { flex: 1 1 9rem; min-height: 44px; overflow-wrap: anywhere; }

.compare__empty { padding: 1.5rem; text-align: center; border: 1px dashed var(--c-border); border-radius: var(--radius); color: var(--c-muted); }
.compare__empty[hidden] { display: none; }
[data-compare-item][hidden] { display: none; }

/* ---------- mini cards: similar apps, 404 ---------- */

.mini-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.mini-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .6rem .9rem;
    align-items: center;
    padding: .9rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
}
.mini-card__logo { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.mini-card__name { margin: 0; font-weight: 700; font-size: 1.05rem; }
.mini-card__name a { color: var(--c-text); }
.mini-card__name a:hover { color: var(--c-accent); }
.mini-card__rank { color: var(--c-accent); }
.mini-card__text { margin: .15rem 0 0; font-size: .85rem; color: var(--c-muted); }
.mini-card__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.mini-card__actions .btn { flex: 1 1 8rem; min-height: 40px; }
.mini-card__offer { background: none; border-color: var(--c-border); color: var(--c-muted); }
.mini-card__offer:hover { border-color: var(--c-accent); color: var(--c-accent); }
@media (min-width: 640px) {
    .mini-card { grid-template-columns: auto minmax(0, 1fr) auto; }
    .mini-card__actions { grid-column: auto; flex-direction: column; }
    .mini-card__actions .btn { flex: 0 0 auto; }
}

.similar { margin: 2.5rem 0 0; }
.similar__title { margin-bottom: 1rem; }

/* ---------- 404 ---------- */

.not-found__text { font-size: 1.1rem; color: var(--c-muted); }
.not-found .search-box { margin: 1.5rem 0 2rem; }
.not-found__title { font-size: 1.25rem; margin: 0 0 .9rem; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }

/* ---------- site map ---------- */

.site-map__grid { display: grid; gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
@media (min-width: 760px) {
    .site-map__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-map__group--wide { grid-column: 1 / -1; }
    .site-map__group--wide .site-map__list { columns: 2; column-gap: 2.5rem; }
}
.site-map__title { font-size: 1.2rem; padding-bottom: .4rem; border-bottom: 2px solid var(--c-border); }
.site-map__title a { color: inherit; }
.site-map__subtitle { font-size: .95rem; margin: 1rem 0 .4rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.site-map__list { list-style: none; margin: 0; padding: 0; }
.site-map__list li { break-inside: avoid; padding: .3rem 0; }
.site-map__list li::before { content: "›"; margin-right: .5rem; color: var(--c-muted); }

/* Theme tokens */
:root {
  --c-accent: #6b42d9;
  --c-accent-dark: color-mix(in srgb, #6b42d9 76%, #000);
  --radius: 10px;
  --container-narrow: 760px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
