﻿
/* ===== Comparison section — copy this whole style block ===== */
#compare {
    --ink: #14211B;
    --muted: #5B6862;
    --line: #E2E8E4;
    --bg: #F6F8F7;
    --card: #FFFFFF;
    --brand: #0A6B3B;
    --brand-soft: #EAF5EF;
    --brand-line: #BFDDCB;
    --grp: #F0F3F1;
    --first-col: 220px;
    background: #fff;
    color: var(--ink);
    font-family: "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
    line-height: 1.5;
}

#compare * {
    box-sizing: border-box
}

#compare .wrap {
   /* max-width: 1120px;
    margin: 0 auto;*/
    padding: 64px 24px
}

#compare h2 {
    font-size: clamp(1.6rem,3.2vw,2.3rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 10px
}

#compare .lede {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 60ch;
    margin: 0 0 28px
}

/* toolbar */
#compare .tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 16px
}

#compare .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

#compare .chip {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s,border-color .15s,color .15s;
}

    #compare .chip:hover {
        border-color: var(--brand-line);
        background: var(--brand-soft)
    }

    #compare .chip[aria-pressed="true"] {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff
    }

    #compare .chip:focus-visible, #compare .table-box:focus-visible {
        outline: 3px solid #7CC4A0;
        outline-offset: 2px
    }

#compare .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .85rem;
    color: var(--muted)
}

    #compare .legend span {
        display: inline-flex;
        align-items: center;
        gap: 6px
    }

    #compare .legend svg {
        width: 18px;
        height: 18px;
        flex: none
    }

/* table container */
#compare .table-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius:0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#compare table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .95rem
}

#compare th, #compare td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    vertical-align: middle
}

#compare tbody tr:last-child th, #compare tbody tr:last-child td {
    border-bottom: 1px solid var(--line)
}

#compare tbody:last-of-type tr:last-child > * {
    border-bottom: 0
}

/* header row */
#compare thead th {
    background: var(--card);
    font-weight: 700;
    font-size: 1rem;
    padding: 18px 16px;
    border-bottom: 2px solid var(--line);
}

    #compare thead th span {
        display: block;
        font-weight: 500;
        font-size: .8rem;
        color: var(--muted);
        margin-top: 2px
    }

    #compare thead th:first-child {
        text-align: left;
        color: var(--muted);
        font-weight: 600;
        font-size: .85rem
    }

/* first column (feature names) */
#compare th[scope="row"] {
    text-align: left;
    font-weight: 600;
    width: var(--first-col);
    min-width: var(--first-col);
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--card);
}

#compare thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 3
}

#compare .sub {
    display: block;
    font-weight: 400;
    font-size: .8rem;
    color: var(--muted);
    margin-top: 2px
}

/* group rows */
#compare tr.grp th {
    background: var(--grp);
    text-align: left;
    font-size: .8rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: .02em;
    padding: 10px 16px;
    position: sticky;
    left: 0;
}

/* Teaminbox highlight column */
#compare .us {
    background: var(--brand-soft)
}

#compare thead th.us {
    color: var(--brand);
    background: var(--brand-soft);
    border-top: 3px solid var(--brand)
}

#compare td.us .num {
    color: var(--brand);
    font-weight: 700
}

#compare tbody tr:not(.grp):hover td, #compare tbody tr:not(.grp):hover th[scope="row"] {
    background: #FAFCFB
}

    #compare tbody tr:not(.grp):hover td.us {
        background: #E1F0E8
    }

#compare .num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap
}

#compare .ic {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle
}

#compare tbody[hidden] {
    display: none
}

#compare .source {
    font-size: .82rem;
    color: var(--muted);
    margin: 14px 0 0;
    max-width: 80ch
}

#compare .swipe-hint {
    display: none
}

/* ===== Mobile ===== */
@media (max-width:760px) {
    #compare {
        --first-col: 132px
    }

        #compare .wrap {
            padding: 40px 0
        }

        #compare h2, #compare .lede, #compare .legend, #compare .source {
            padding: 0 16px
        }

        #compare .lede {
            font-size: .98rem;
            margin-bottom: 20px
        }

        #compare .tools {
            flex-direction: column;
            align-items: stretch;
            gap: 12px
        }
        /* chips scroll sideways in one line */
        #compare .chips {
            flex-wrap: nowrap;
            overflow-x: auto;
            padding: 2px 16px 6px;
            scrollbar-width: none
        }

            #compare .chips::-webkit-scrollbar {
                display: none
            }

        #compare .chip {
            padding: 8px 14px;
            font-size: .85rem
        }

        #compare .legend {
            gap: 12px;
            font-size: .8rem
        }

        #compare .swipe-hint {
            display: block;
            font-size: .8rem;
            color: var(--muted);
            padding: 0 16px;
            margin: 0 0 8px
        }

        #compare .table-box {
            border-radius: 0;
            border-left: 0;
            border-right: 0
        }

        #compare table {
            min-width: 560px;
            font-size: .85rem
        }

        #compare th, #compare td {
            padding: 12px 8px
        }

        #compare thead th {
            padding: 14px 8px;
            font-size: .88rem
        }

            #compare thead th span {
                font-size: .72rem
            }

        #compare th[scope="row"] {
            padding-left: 16px;
            box-shadow: 4px 0 6px -4px rgba(20,33,27,.18)
        }

        #compare thead th:first-child {
            padding-left: 16px;
            box-shadow: 4px 0 6px -4px rgba(20,33,27,.18)
        }

        #compare tr.grp th {
            padding-left: 16px
        }

        #compare .sub {
            font-size: .72rem
        }

        #compare .ic {
            width: 20px;
            height: 20px
        }
}

@media (prefers-reduced-motion:reduce) {
    #compare .chip {
        transition: none
    }
}

/* ---------- FAQ accordion ---------- */
.faq {
    --faq-ink: #14302a; /* headings, questions */
    --faq-body: #3f544e; /* answers */
    --faq-line: #d5e0dc; /* dividers */
    --faq-accent: #0f7a5c; /* icon, focus, open state */
    --faq-tint: #eef5f2; /* hover / open background */
    --faq-bg: #ffffff;
   /* font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--faq-bg);*/
    color: var(--faq-ink);
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 20px;
}

    .faq h2 {
        font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
        font-weight: 600;
        letter-spacing: -0.02em;
        line-height: 1.15;
        margin: 0 0 28px;
    }

.faq-list {
    border-top: 1px solid var(--faq-line);
}

    .faq-list details {
        border-bottom: 1px solid var(--faq-line);
        transition: background-color .2s ease;
    }

        .faq-list details[open] {
            background: var(--faq-tint);
        }

    .faq-list summary {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 20px 16px;
        font-size: 1.0625rem;
        font-weight: 500;
        line-height: 1.4;
        cursor: pointer;
        border-radius: 6px;
        transition: background-color .2s ease;
    }

        .faq-list summary::-webkit-details-marker {
            display: none;
        }

        .faq-list summary:hover {
            background: var(--faq-tint);
        }

        .faq-list summary:focus-visible {
            outline: 2px solid var(--faq-accent);
            outline-offset: -2px;
        }

    /* + turns into × when open */
    .faq-list .plus {
        flex: none;
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 1.5px solid var(--faq-line);
        color: var(--faq-accent);
        font-size: 1.25rem;
        font-weight: 400;
        line-height: 1;
        transition: transform .3s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
    }

    .faq-list details[open] .plus {
        transform: rotate(45deg);
        background: var(--faq-accent);
        border-color: var(--faq-accent);
        color: #fff;
    }

    .faq-list p {
        margin: 0;
        padding: 0 62px 22px 16px;
        color: var(--faq-body);
        font-size: 1rem;
        line-height: 1.65;
        max-width: 65ch;
    }

@media (max-width: 520px) {
    .faq {
        padding: 48px 16px;
    }

    .faq-list summary {
        padding: 18px 12px;
        font-size: 1rem;
    }

    .faq-list p {
        padding: 0 12px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-list details, .faq-list summary, .faq-list .plus {
        transition: none;
    }
}
