:root {
    --c-acc:      #c97b63;
    --c-acc-dark: #a85d46;
    --c-dark:     #1a1410;
    --c-bg:       #ffffff;
    --c-bg-soft:  #faf6f2;
    --c-border:   #e9e0d6;
    --c-text:     #14100d;
    --c-muted:    rgba(0,0,0,.6);
    --rhythm:     112px;
    --radius:     0px;
    --shadow:     0 4px 20px rgba(0,0,0,.06);
    --ff-h:     'DM Serif Display', system-ui, -apple-system, sans-serif;
    --ff-b:     'DM Sans', system-ui, -apple-system, sans-serif;
    --hue-shift:                8deg;
}

body {
    margin: 0;
    font-family: var(----ff-b);
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.7rem; }
p { margin-bottom: 1em; }

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

a:hover {
    text-decoration: underline;
}

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

.page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.button-acc, .intro-pill, .tbl-badge { position: relative; }
.button-acc::before, .intro-pill::before, .tbl-badge::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--c-acc); filter: hue-rotate(var(--hue-shift)); z-index: -1; border-radius: var(--radius); }
.button-acc { background: transparent; z-index: 1; }

.tbl-cmp, .featured, .step-card, .qna, .brand-hero { background: var(--c-bg); border: 1px solid var(--c-border); box-shadow: var(--shadow); border-radius: var(--radius); }

.rating { color: #f59e0b; font-size: 1.1rem; }

/* Header */
.header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
}

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

.header-logo {
    font-family: var(--ff-h);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--c-dark);
    text-decoration: none;
    flex-shrink: 0;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-link {
    color: var(--c-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

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

.header-burger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.header-burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--c-text);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hero */
.intro {
    text-align: center;
    padding-top: calc(var(--rhythm) / 2);
    padding-bottom: calc(var(--rhythm) / 2);
}

.intro-pill {
    display: inline-block;
    background: var(--c-acc);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px; /* Effectively pill-shaped */
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.intro h1 {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.intro .subtitle {
    font-size: 1.3rem;
    color: var(--c-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.intro-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.button-acc {
    color: white;
}

.button-acc:hover {
    filter: brightness(1.1);
    text-decoration: none;
}

.button-out {
    border-color: var(--c-acc);
    color: var(--c-acc);
    background: transparent;
}

.button-out:hover {
    background: var(--c-acc);
    color: white;
    text-decoration: none;
}

.button-large {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.intro-chips {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.intro-chips .intro-pill {
    background: var(--c-bg-soft);
    color: var(--c-dark);
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--c-border);
}

.intro-chips .intro-pill .fa-solid {
    color: var(--c-acc);
    margin-right: 0.5rem;
}

/* Trust Bar - not in use for current homepage_block_order */


/* Comparison Table */
.tbl-wrap {
    overflow-x: auto;
    padding-top: calc(var(--rhythm) / 2);
    padding-bottom: calc(var(--rhythm) / 2);
}

.tbl-cmp {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* To prevent collapse on smaller screens */
}

.tbl-cmp th, .tbl-cmp td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

.tbl-cmp th {
    background: var(--c-bg-soft);
    font-weight: 600;
    color: var(--c-dark);
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
}

.tbl-cmp td {
    background: var(--c-bg);
}

.tbl-name {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--c-dark);
    white-space: nowrap;
}

.tbl-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.tbl-name a {
    color: var(--c-dark);
    text-decoration: none;
}

.tbl-name a:hover {
    color: var(--c-acc);
    text-decoration: underline;
}

.tbl-name .tbl-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: var(--c-acc);
    border-radius: 9999px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Editor's Pick */
.featured {
    padding: calc(var(--rhythm) / 2);
    margin-bottom: calc(var(--rhythm) / 2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-content {
    max-width: 800px;
    text-align: center;
}

.featured h2 {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.featured .tbl-badge {
    margin: 0 auto 1rem auto;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

.featured p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--c-muted);
}

.featured ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    display: inline-block; /* to center the ul */
}

.featured ul li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--c-text);
}

.featured ul li .fa-solid {
    color: var(--c-acc);
    margin-right: 0.8rem;
}

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

.step-card {
    padding: 2rem;
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--c-acc);
    color: white;
    font-family: var(--ff-h);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

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

/* Guides Teaser - Not in use for current homepage_block_order */


/* FAQ */
.qna {
    margin-bottom: 1rem;
}

.qna-q { width: 100%; background: none; border: none; padding: 1.25rem 0; text-align: left; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--c-border); font-family: var(--ff-b); color: var(--c-text); }
.qna-q::after { content: '\2b'; font-size: 1.5rem; transition: transform 0.2s; }
.qna.is-open .qna-q::after { transform: rotate(45deg); }
.qna-a { padding: 1.5rem 0; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s ease, opacity 0.3s ease; }
.qna.is-open .qna-a { max-height: 1000px; opacity: 1; }


/* CTA Section */
.cta-section {
    text-align: center;
    padding-top: calc(var(--rhythm) / 2);
    padding-bottom: calc(var(--rhythm) / 2);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--c-muted);
    margin-bottom: 2rem;
}

/* Risk Strip */
.risk-band {
    background: var(--c-dark);
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.95rem;
}

.risk-band .fa-solid {
    color: #ffcc00; /* Warning color */
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: var(--c-dark);
    padding-top: calc(var(--rhythm) / 2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer .page-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-family: var(--ff-h);
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer p {
    max-width: 600px;
    margin-bottom: 1rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

/* Cookie Banner */
.ck {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--c-dark);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.ck .page-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ck p {
    margin: 0;
    flex-grow: 1;
}

.ck-btns {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.ck-btns .button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.ck-prefs {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.ck-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.ck-row label {
    font-size: 0.9rem;
}

.ck-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--c-acc);
}

.ck-prefs .button-acc {
    width: 100%;
    margin-top: 1rem;
}

.ck-reopen {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    background: var(--c-dark);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
}


/* Responsive */
@media (max-width: 1024px) {
    .intro h1 {
        font-size: 3rem;
    }
    .intro .subtitle {
        font-size: 1.15rem;
    }
    .tbl-cmp th, .tbl-cmp td {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--c-bg);
        border-top: 1px solid var(--c-border);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 90;
    }

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

    .header-link {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--c-bg-soft);
    }

    .header-burger {
        display: flex;
    }

    .intro h1 {
        font-size: 2.2rem;
    }

    .intro .subtitle {
        font-size: 1rem;
    }

    .intro-cta {
        flex-direction: column;
    }

    .button-large {
        width: 100%;
    }

    .featured h2 {
        font-size: 2rem;
    }

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

    .qna-q {
        font-size: 1rem;
        padding: 1rem 0;
    }

    .qna-a {
        padding: 1rem 0;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

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

    /* Table responsive behavior */
    .tbl-cmp, .table-container {
        display: block;
        width: 100%;
    }

    .tbl-cmp thead {
        display: none;
    }

    .tbl-cmp tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--c-border);
        border-radius: var(--radius);
        overflow: hidden;
    }

    .tbl-cmp td {
        display: block;
        text-align: right;
        padding: 0.75rem 1rem;
        border-bottom: none; /* remove inner cell borders */
    }

    .tbl-cmp td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        text-transform: uppercase;
        margin-right: 1rem;
        color: var(--c-muted);
        font-size: 0.9rem;
    }

    .tbl-cmp td:last-child {
        border-bottom: none;
    }

    .tbl-name {
        justify-content: flex-end;
    }
    .tbl-name a {
        flex-grow: 1;
        text-align: right;
    }
    .tbl-name .tbl-badge {
        margin-left: 0.5rem;
    }

    .tbl-logo {
        position: absolute;
        left: 1rem;
        top: 1rem;
    }

    .tbl-cmp td:first-child {
        padding-left: 50px; /* Space for logo in card view */
        position: relative;
    }

    .review-bullets ul {
        text-align: left;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}
