:root {
    --accent: #2b6cb0;
    --accent-dark: #1e4d80;
    --dark: #0e1418;
    --bg: #ffffff;
    --bg-soft: #f4f6f8;
    --border: #e1e6eb;
    --text: #0a0e12;
    --muted: rgba(0,0,0,.55);
    --rhythm: 80px;
    --radius: 4px;
    --shadow: none;
    --font-head: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --hue-shift: 0deg;
}

/* Base Reset & Variables */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--dark);
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 1em;
}

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

a:hover {
    text-decoration: underline;
}

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

ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

strong {
    font-weight: 600;
}

/* Section Rhythm Pattern: soft-base */
body > .block {
    background-color: var(--bg-soft);
}
body > .lead {
    background-color: var(--bg);
} /* Hero on regular background */
body > .block:nth-child(even):not(.block-cta) {
    background-color: var(--bg-soft);
} /* Even blocks on soft background */
body > .block:nth-child(odd):not(.block-cta) {
    background-color: var(--bg);
} /* Odd blocks on regular background */
body > .block-cta { /* Specific styles for CTA block */
    background-color: var(--bg);
}

/* Card Style: outlined */
.edit-big, .proc-card, .qa-item, .brand-head, .alt-card, .guide-card, .content-score > div {
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: none;
    border-radius: var(--radius);
}

/* General Layout */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.block {
    padding: var(--rhythm) 0;
}

/* Header (nav) */
.nav {
    background-color: var(--bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-head);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.nav-logo:hover {
    text-decoration: none;
    color: var(--accent-dark);
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-toggle {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--dark);
    display: none; /* Hidden on desktop */
}

/* Hero Section (lead) */
.lead {
    padding: calc(var(--rhythm) * 1.2) 0;
    text-align: center;
}

.lead h1 {
    font-size: 3em;
    margin-bottom: 0.4em;
    color: var(--dark);
}

.lead-sub {
    font-size: 1.25em;
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto 2em auto;
}

.lead-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2em;
    flex-wrap: wrap;
}

.lead-tag {
    background-color: var(--bg-soft);
    color: var(--text);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
}

.lead-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.9em;
    color: var(--muted);
    margin-bottom: 20px;
    text-align: left;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    font-weight: 500;
    color: var(--text);
}

/* Trust Bar */
.stats {
    background-color: var(--dark);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.stats > .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 3em;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-lbl {
    font-size: 1.1em;
    color: rgba(255,255,255,.8);
}

/* Comparison Table (rank-wrap) */
.rank-wrap {
    overflow-x: auto;
    width: 100%;
}

.rank {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg);
    margin-bottom: 1em;
    min-width: 700px;
}

.rank th, .rank td {
    padding: 15px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.rank th {
    background-color: var(--bg-soft);
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.rank tr:nth-child(even) {
    background-color: var(--bg-soft);
}

.rank-name-con {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius);
}

.rank-name {
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
}

.rank-name:hover {
    color: var(--accent);
    text-decoration: none;
}

.rank-badge {
    background-color: var(--accent);
    color: #fff;
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: var(--radius);
    margin-left: 10px;
    white-space: nowrap;
}

/* Stars Rating */
.stars {
    color: #FFC107; /* Gold color for stars */
    font-size: 1.2em;
}

.rank td .stars,
.content-score .stars,
.top-pick .stars {
    margin-right: 5px;
}

.rank td > span,
.top-pick-rating > span {
    display: inline-block;
    vertical-align: middle;
    font-size: 0.9em;
    color: var(--text);
}

/* Editor's Pick (top-pick) */
.top-pick {
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.top-pick-content {
    max-width: 700px;
}

.top-pick .rank-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.top-pick h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.top-pick p {
    color: var(--muted);
    margin-bottom: 15px;
}

.top-pick ul {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.top-pick li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95em;
    color: var(--text);
}

.top-pick li i {
    color: var(--accent);
    margin-top: 4px;
}

.top-pick-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Brand Pages & Content */
.content h2, .content h3, .content h4 {
    margin-top: 1em;
    margin-bottom: 0.7em;
}

.content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1em;
}

.content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.5em;
    color: var(--text);
}

.content ul li i {
    position: absolute;
    left: 0;
    top: 0.25em;
    color: var(--accent);
}

.brand-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.brand-head-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius);
}

.brand-head-cap {
    font-size: 1.1em;
    color: var(--muted);
}

.brand-head-cap a {
    color: var(--dark);
    font-weight: 600;
}

.brand-head-cap a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.content-score {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: var(--rhythm);
}

.content-score-block {
    text-align: center;
    padding: 20px;
}

.content-score-block h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--dark);
}

.content-score-block .stars {
    font-size: 1.5em;
    margin-right: 5px;
}

.content-score-block span {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text);
}

.big-cta {
    display: block;
    width: fit-content;
    margin: 40px auto;
    padding: 15px 30px;
    font-size: 1.1em;
}

.content-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: var(--rhythm);
}

.content-pros-cons h3 {
    color: var(--dark);
    margin-bottom: 1em;
}

.content-pros-cons i.fas.fa-check {
    color: #28a745; /* Green for pros */
}

.content-pros-cons i.fas.fa-times {
    color: #dc3545; /* Red for cons */
}

/* Alternatives */
.alt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.alt-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    text-align: left;
}

.alt-card .rank-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.alt-card h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.alt-card p {
    color: var(--muted);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Methodology (proc-grid) */
.proc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.proc-card {
    padding: 30px;
    text-align: center;
}

.proc-num {
    font-family: var(--font-head);
    font-size: 3em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
    line-height: 1;
}

.proc-card h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.proc-card p {
    color: var(--muted);
}

/* Guides (guide-grid) */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.guide-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.guide-card h3 {
    margin-bottom: 10px;
    min-height: 2.4em; /* Ensure consistent height for titles */
}

.guide-card h3 a {
    color: var(--dark);
    text-decoration: none;
}

.guide-card h3 a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.guide-card p {
    color: var(--muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ (qa-item-wrap) */
.qa-item-wrap {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.qa-item {
    margin-bottom: 15px;
    background-color: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.qa-q {
    padding: 18px 25px;
    background-color: var(--bg-soft);
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-bottom: 1px solid var(--border);
}

.qa-q i {
    transition: transform 0.3s ease;
}

.qa-q.open i {
    transform: rotate(180deg);
}

.qa-a {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: var(--bg);
    color: var(--muted);
}

.qa-a.open {
    padding: 15px 25px;
    max-height: 500px; /* Large enough to cover content */
}

.qa-a p:last-child {
    margin-bottom: 0;
}

/* Call to Action (block-cta) */
.block-cta {
    background-color: var(--bg);
    padding: var(--rhythm) 0;
    text-align: center;
}

.block-cta h2 {
    font-size: 2.5em;
    color: var(--dark);
    margin-bottom: 0.5em;
}

.block-cta p {
    font-size: 1.1em;
    color: var(--muted);
    margin-bottom: 2em;
}

/* Footer (foot) */
.foot {
    background-color: var(--dark);
    color: rgba(255,255,255,.7);
    padding-top: var(--rhythm);
}

.foot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.foot-col {
    display: flex;
    flex-direction: column;
}

.foot-col h4 {
    color: #fff;
    margin-bottom: 15px;
}

.foot-col a, .foot-col p {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.foot-col a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.foot .nav-logo {
    color: #fff;
    margin-bottom: 20px;
}

.foot i {
    margin-right: 5px;
}

.foot-bottom {
    padding: 20px 0;
    font-size: 0.85em;
    text-align: center;
}

.foot-bottom .container {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
}

/* Risk Strip (risk-bar) */
.risk-bar {
    background-color: #f8c3c7; /* A subtle red tone */
    color: #a42c34;
    padding: 15px 0;
    font-size: 0.9em;
    text-align: center;
}

.risk-bar p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.risk-bar a {
    color: #7c2128;
    text-decoration: underline;
    font-weight: 600;
}

.risk-bar a:hover {
    color: #a42c34;
}

/* Buttons (cta) */
.cta, .cta-acc, .cta-out {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1em;
}

.cta-acc {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.cta-acc:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    text-decoration: none;
}

.cta-out {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.cta-out:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.cta-acc i, .cta-out i {
    margin-left: 8px;
}

/* Editor Info & inline logo */
.editor-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
}

.editor-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-head);
    font-size: 2.2em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.editor-info h3 {
    margin-bottom: 5px;
}

.editor-role {
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 15px;
}

.editor-bio {
    color: var(--text);
    line-height: 1.7;
}

.mini-logo {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin: -3px 5px 0 5px;
    object-fit: contain;
    border-radius: var(--radius);
}

/* Cookie Banner (consent) */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-soft);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,.05);
    padding: 20px;
    z-index: 1000;
    display: none;
}

.consent-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.consent-banner p {
    margin-bottom: 0;
    color: var(--text);
    text-align: center;
}

.consent-prefs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.consent-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: var(--radius);
    background-color: var(--bg);
}

.consent-row span {
    font-weight: 400;
    font-size: 0.9em;
    color: var(--muted);
    margin-left: auto;
}

.consent-row input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 5px;
}

.consent-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.consent-reopen {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    font-size: 1.2em;
    z-index: 999;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.6em; }
    .nav-menu {
        gap: 15px;
    }
    .foot-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--bg);
        border-top: 1px solid var(--border);
        box-shadow: 0 2px 10px rgba(0,0,0,.05);
        padding: 20px 0;
        z-index: 900;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        padding: 10px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: block;
    }

    h1 { font-size: 2em; }
    .lead-sub { font-size: 1.1em; }
    .lead-tags { flex-direction: column; align-items: center; }
    .lead-actions { flex-direction: column; }
    .rank-wrap { margin: 0 -20px; } /* Allow table to spill a bit */
    .content-pros-cons {
        grid-template-columns: 1fr;
    }
    .foot-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .foot-col {
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.6em; }
    .lead-sub { font-size: 1em; }
    .big-cta {
        width: 100%;
        padding: 15px 10px;
    }
    .rank th, .rank td {
        padding: 10px;
    }
    .stat {
        min-width: 100%;
    }
    .qa-q, .qa-a {
        padding-left: 15px;
        padding-right: 15px;
    }
    .consent-banner {
        padding: 10px;
    }
    .consent-inner {
        gap: 10px;
    }
    .consent-row {
        padding: 8px 10px;
    }
    .consent-btns {
        flex-direction: column;
    }
}
