:root {
    --c-acc: #6b8e5a;
    --c-acc-dark: #4f6e41;
    --c-dark: #1c2018;
    --c-bg: #fbfaf5;
    --c-bg-soft: #f0eee3;
    --c-border: #d8d4c0;
    --c-text: #1c1f17;
    --c-muted: rgba(0,0,0,.55);
    --rhythm: 96px;
    --radius: 20px;
    --shadow: 0 4px 24px rgba(28,32,24,.08);
    --ff-h: 'DM Serif Display', serif;
    --ff-b: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-h);
    margin-top: var(--rhythm);
    margin-bottom: calc(var(--rhythm) / 2);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.25rem;
}

.page-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

header.header-wrap {
    background: var(--c-bg-soft);
    border-bottom: 1px solid var(--c-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-main {
    font-family: var(--ff-h);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-acc);
    text-decoration: none;
    display: inline-block;
}

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

.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--c-text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

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

.burger-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger-toggle span {
    width: 25px;
    height: 3px;
    background: var(--c-text);
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .burger-toggle {
        display: flex;
    }

    .header-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--c-bg-soft);
        padding: 20px;
        border-bottom: 1px solid var(--c-border);
    }

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

main {
    padding: var(--rhythm) 0;
}

section {
    padding: var(--rhythm) 0;
    border-bottom: 1px solid var(--c-border);
}

section:last-child {
    border-bottom: none;
}

.hero-section {
    background: linear-gradient(135deg, var(--c-acc-dark), var(--c-acc));
    color: white;
    text-align: center;
    padding: calc(var(--rhythm) * 1.5) 0;
}

.hero-section h1 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-chips {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
}

.btn-primary,
.btn-outline,
.btn-cta {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--c-acc);
    color: white;
}

.btn-primary:hover {
    background: var(--c-acc-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    border: 2px solid var(--c-acc);
    color: var(--c-acc);
    background: transparent;
}

.btn-outline:hover {
    background: var(--c-acc);
    color: white;
}

.btn-cta {
    background: var(--c-acc);
    color: white;
    font-size: 0.95rem;
    padding: 10px 20px;
}

.btn-cta:hover {
    background: var(--c-acc-dark);
}

.comparison-section h2,
.methodology-section h2,
.faq-section h2,
.cta-section h2,
.editors-pick-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

table.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
}

table.comparison-table thead {
    background: var(--c-bg-soft);
    border-bottom: 2px solid var(--c-border);
}

table.comparison-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--c-text);
    font-family: var(--ff-h);
}

table.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid var(--c-border);
}

table.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

table.comparison-table tbody tr:hover {
    background: var(--c-bg-soft);
}

.app-link {
    color: var(--c-acc);
    text-decoration: none;
    font-weight: 600;
}

.app-link:hover {
    text-decoration: underline;
}

.rating {
    color: var(--c-acc);
    font-weight: 600;
}

.rating-hero {
    font-size: 2rem;
    color: var(--c-acc);
    margin: 20px 0;
    font-weight: 600;
}

.byline {
    color: var(--c-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.brand-header {
    background: var(--c-bg-soft);
    padding: 20px;
    border-radius: var(--radius);
    margin: 30px 0;
    text-align: center;
    border: 1px solid var(--c-border);
}

.brand-header img {
    margin-bottom: 10px;
}

.brand-header p {
    margin: 0;
}

.brand-header a {
    color: var(--c-acc);
    text-decoration: none;
}

.brand-header a:hover {
    text-decoration: underline;
}

.editors-pick-card {
    background: linear-gradient(135deg, var(--c-bg-soft), var(--c-bg));
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.pick-badge {
    display: inline-block;
    background: var(--c-acc);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.editors-pick-card h3 {
    margin-top: 0;
}

.pick-bullets {
    list-style: none;
    margin: 20px 0;
}

.pick-bullets li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.pick-bullets li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--c-acc);
    font-weight: bold;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.method-card {
    background: var(--c-bg-soft);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    text-align: center;
}

.method-num {
    font-size: 2.5rem;
    color: var(--c-acc);
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--ff-h);
}

.method-card h3 {
    margin-top: 0;
}

.faq-list {
    margin: 30px 0;
}

.faq-item {
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--c-text);
    font-family: var(--ff-b);
}

.faq-question:hover {
    color: var(--c-acc);
}

.faq-question i {
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 16px 16px;
    color: var(--c-muted);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.pros,
.cons {
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
}

.pros {
    background: rgba(107, 142, 90, 0.05);
}

.cons {
    background: rgba(200, 100, 100, 0.05);
}

.pros h3,
.cons h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pros ul,
.cons ul {
    list-style: none;
    padding: 0;
}

.pros li,
.cons li {
    padding: 8px 0;
}

.scoring-table {
    margin: 30px 0;
}

.scoring-table table {
    width: 100%;
    border-collapse: collapse;
}

.scoring-table td {
    padding: 12px;
    border-bottom: 1px solid var(--c-border);
}

.scoring-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--c-acc);
}

.cta-button {
    text-align: center;
    margin: 40px 0;
}

.alternatives {
    margin: 30px 0;
}

.alt-cards,
.alt-cards ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.alt-card {
    background: var(--c-bg-soft);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
}

.alt-card h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alt-card a {
    color: var(--c-acc);
    text-decoration: none;
}

.alt-card a:hover {
    text-decoration: underline;
}

.inline-logo {
    display: inline;
    margin-right: 4px;
}

.risk-section {
    background: var(--c-bg-soft);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    margin: 30px 0;
    color: var(--c-muted);
    font-size: 0.95rem;
}

footer.footer-section {
    background: var(--c-dark);
    color: #fff;
    padding: var(--rhythm) 0;
    margin-top: var(--rhythm);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-top: 0;
    color: #fff;
    font-family: var(--ff-h);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin: 10px 0;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--c-border);
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 100%;
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-top: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 10px 20px;
    border: 1px solid var(--c-border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-buttons button:hover {
    background: var(--c-bg-soft);
}

.cookie-prefs {
    margin-top: 15px;
    padding: 15px;
    background: var(--c-bg-soft);
    border-radius: 6px;
}

.cookie-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.cookie-row input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-reopen-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--c-acc);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: var(--shadow);
}

.breadcrumb {
    padding: 20px 0;
    color: var(--c-muted);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--c-acc);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.divider {
    margin: 0 8px;
}

.guides-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.guide-card {
    background: var(--c-bg-soft);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow);
}

.guide-card h3 {
    margin-top: 0;
}

.guide-card a {
    color: var(--c-acc);
    text-decoration: none;
    font-weight: 600;
}

.guide-card a:hover {
    text-decoration: underline;
}

.error-section {
    text-align: center;
    padding: var(--rhythm) 0;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }
    
    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
    }

    table.comparison-table {
        font-size: 0.9rem;
    }

    table.comparison-table th,
    table.comparison-table td {
        padding: 10px;
    }

    .editors-pick-card {
        padding: 20px;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        padding: 15px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100%;
    }
}
