:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --positive: #16a34a;
    --warning: #d97706;
    --border: #e2e8f0;
    --soft-blue: #eff6ff;
    --soft-green: #ecfdf5;
    --soft-amber: #fffbeb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg) url("/assets/generated/background-pattern-web.png") top center / min(1600px, 180vw) auto no-repeat;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

main,
section,
.site-header,
.site-footer {
    max-width: 100vw;
    overflow-x: clip;
}

a {
    color: var(--primary);
    text-decoration: none;
}

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

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

h1,
h2,
h3 {
    line-height: 1.15;
    margin: 0 0 0.7rem;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    max-width: 920px;
    overflow-wrap: anywhere;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1rem;
    overflow-wrap: anywhere;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

th,
td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--text);
    font-size: 0.9rem;
    background: #f1f5f9;
}

.wrap {
    width: min(1160px, calc(100vw - 2rem));
    margin: 0 auto;
}

.narrow {
    width: min(840px, calc(100vw - 2rem));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-logo {
    display: block;
    width: 176px;
    height: auto;
    object-fit: contain;
}

.locale-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.locale-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #fff;
}

.brand-mark,
.logo-placeholder,
.category-icon {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    font-weight: 800;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.primary-nav a {
    color: var(--muted);
    font-weight: 650;
    font-size: 0.95rem;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    color: var(--text);
    font-weight: 700;
}

.hero,
.page-hero {
    padding: 5rem 0 3.5rem;
    background:
        radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.12), transparent 28rem),
        radial-gradient(circle at 12% 0%, rgba(22, 163, 74, 0.08), transparent 22rem),
        linear-gradient(180deg, #fff, var(--bg));
}

.hero-grid,
.product-hero,
.split,
.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.hero-grid > *,
.product-hero > *,
.split > *,
.two-column > *,
.category-hero-grid > *,
.comparison-hero-grid > *,
.editorial-grid > * {
    min-width: 0;
}

.lede {
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    max-width: 760px;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-note {
    max-width: 650px;
    margin-top: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 750;
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.button.secondary {
    background: var(--surface);
    color: var(--primary);
}

.dashboard-visual,
.hero-asset-card,
.product-visual-panel,
.category-hero-art,
.panel,
.product-card,
.score-card,
.rank-card,
.disclosure,
.verdict-box,
.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-visual {
    padding: 1rem;
}

.hero-asset-card {
    padding: 0.7rem;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #f8fbff);
    transform: rotate(1deg);
}

.hero-asset-card img {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.visual-row,
.visual-metrics {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.visual-row.strong {
    background: var(--soft-blue);
    border-radius: 6px;
}

.visual-metrics {
    border-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.section {
    padding: 4rem 0;
}

.section.alt {
    background: #fff;
    border-block: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-head p {
    max-width: 560px;
    color: var(--muted);
}

.card-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.category-card,
.product-card,
.panel,
.score-card,
.disclosure,
.verdict-box {
    padding: 1.2rem;
}

.category-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    min-height: 100%;
    overflow: hidden;
    color: var(--text);
}

.category-art {
    display: grid;
    place-items: center;
    margin: -0.15rem -0.15rem 1rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 1rem;
}

.category-art img,
.category-hero-art img,
.category-card .category-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-media img,
.product-visual-panel > img,
.rank-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-grid,
.comparison-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
    gap: 2rem;
    align-items: center;
}

.category-hero-art {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 1.2rem;
    background: #fff;
}

.category-hero-art img {
    border-radius: 8px;
    object-fit: contain;
}

.category-card p,
.product-card p,
.score-card p,
.panel p,
.small {
    color: var(--muted);
}

.product-card h3 a,
.text-link {
    color: var(--text);
}

.text-link {
    font-weight: 700;
}

.product-card-head {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1rem;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card-actions {
    display: grid;
    gap: 0.6rem;
    margin-top: auto;
}

.product-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f8fafc;
    margin-bottom: 1rem;
}

.product-visual-panel {
    position: relative;
    overflow: hidden;
    padding: 0.75rem;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.product-visual-panel > img {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
}

.score-card.overlay {
    margin-top: 1rem;
    box-shadow: none;
}

.score-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

.score-bar {
    height: 0.6rem;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin: 0.55rem 0 1rem;
}

.score-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--positive));
}

.mini-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.mini-facts div {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.55rem;
}

.mini-facts dt {
    color: var(--muted);
    font-size: 0.75rem;
}

.mini-facts dd {
    margin: 0;
    font-weight: 700;
    font-size: 0.85rem;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.rich-text > * + * {
    margin-top: 1rem;
}

.comparison-copy {
    margin: 1.25rem 0 1.75rem;
    max-width: 900px;
}

.comparison-copy h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    margin-top: 1.45rem;
}

.positive {
    background: var(--soft-green);
}

.warning {
    background: var(--soft-amber);
}

.disclosure {
    border-left: 4px solid var(--primary);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(22, 163, 74, 0.04)),
        var(--surface);
}

.verdict-box {
    background: var(--soft-blue);
}

.link-list {
    display: grid;
    gap: 0.75rem;
}

.trust-links,
.trust-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.trust-links a,
.trust-links-row a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
}

.link-list a {
    padding: 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
}

.ranked-list {
    display: grid;
    gap: 1rem;
}

.rank-card {
    display: grid;
    grid-template-columns: auto minmax(160px, 240px) minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
}

.rank-number {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--soft-blue);
    color: var(--primary-dark);
    font-weight: 850;
}

.score-card strong {
    display: block;
    font-size: 2.5rem;
}

.rank-art {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f8fafc;
}

.feature-panel {
    padding: 1.4rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.trust-copy {
    max-width: 640px;
}

.fit-box {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 0.8rem;
}

.fit-box strong {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fit-box.positive {
    background: var(--soft-green);
}

.fit-box.caution {
    background: var(--soft-amber);
}

.sticky-card {
    position: sticky;
    top: 92px;
}

.hero-verdict {
    align-self: stretch;
}

.score-card.compact strong {
    font-size: 1.5rem;
}

.breadcrumbs {
    padding-top: 1.2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--muted);
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 800;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3rem 0;
}

.site-footer a {
    display: block;
    color: #dbeafe;
    margin-bottom: 0.5rem;
}

.site-footer h2 {
    color: #fff;
    font-size: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-brand .brand-logo {
    width: 154px;
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .primary-nav {
        position: absolute;
        inset: 72px 1rem auto 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .hero-grid,
    .product-hero,
    .split,
    .two-column,
    .editorial-grid,
    .category-hero-grid,
    .comparison-hero-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .rank-card {
        grid-template-columns: 1fr;
    }

    .hero-asset-card {
        transform: none;
    }

    .sticky-card {
        position: static;
    }
}

@media (max-width: 560px) {
    .wrap,
    .narrow {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        padding-inline: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .page-hero .wrap,
    .section .wrap,
    .breadcrumbs.wrap {
        padding-inline: 0;
    }

    .hero-grid,
    .product-hero,
    .split,
    .two-column,
    .editorial-grid,
    .category-hero-grid,
    .comparison-hero-grid {
        display: block;
    }

    h1 {
        font-size: clamp(1.35rem, 8vw, 1.8rem);
        max-width: 100%;
    }

    .lede {
        font-size: 0.98rem;
        max-width: 100%;
    }

    main,
    section,
    .site-header,
    .site-footer {
        overflow-x: hidden;
    }

    h1,
    h2,
    h3,
    p,
    li,
    .lede,
    .rich-text,
    .comparison-copy,
    .hero-note {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .card,
    .product-card,
    .rank-card,
    .verdict-box,
    .disclosure,
    .feature-panel,
    .table-wrap {
        max-width: 100%;
        min-width: 0;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero,
    .page-hero {
        padding: 3rem 0 2rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .mini-facts {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        width: 148px;
    }

    .nav-toggle {
        width: 44px;
        height: 40px;
        padding: 0;
        font-size: 0;
    }

    .nav-toggle::before {
        content: "\2630";
        font-size: 1.25rem;
        line-height: 1;
    }

    th,
    td {
        padding: 0.8rem;
        min-width: 160px;
    }
}
