/* CleverTrust global layout styles
   Extracted from shared header/footer layouts. Keep page-specific CSS in its view until migrated deliberately. */

:root {
            --bg: #f8fafc;
            --surface: #ffffff;
            --surface-soft: #fbfdff;
            --text: #0f172a;
            --muted: #64748b;
            --line: #e5e7eb;
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --success: #059669;
            --shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
            --radius-xl: 30px;
            --radius-lg: 22px;
            --radius-md: 16px;
            --max: 1180px;
            --header-height: 74px;
        }

        * {
            box-sizing: border-box;
        }

        html, body {
            margin: 0;
            padding: 0;
        }

        body {
            font-family: Inter, Arial, sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at 15% 10%, rgba(96,165,250,0.08), transparent 30%),
                radial-gradient(circle at 85% 20%, rgba(37,99,235,0.06), transparent 35%),
                radial-gradient(circle at 50% 90%, rgba(59,130,246,0.05), transparent 40%),
                var(--bg);
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .container {
            width: min(var(--max), calc(100% - 32px));
            margin: 0 auto;
        }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 1000;
            height: var(--header-height);
            backdrop-filter: blur(14px);
            background: rgba(255,255,255,0.78);
            border-bottom: 1px solid rgba(15,23,42,0.06);
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            height: 100%;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 26px;
            min-width: 0;
        }

        .header-menu {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 22px;
            flex: 1 1 auto;
            min-width: 0;
        }

        .logo {
            display: inline-flex;
            align-items: center;
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .site-logo-image {
            display: block;
            width: auto;
            height: 46px;
            max-width: 42vw;
            object-fit: contain;
        }

        /* logo-mark elegant C */
        .logo-mark {
            font-family: Georgia, "Times New Roman", serif;
            font-style: italic;
            font-size: 1.2rem;
            width: 34px;
            height: 34px;
            border-radius: 12px;
            display: grid;
            place-items: center;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary), #60a5fa);
            color: white;
            box-shadow: 0 8px 20px rgba(37,99,235,0.22);
            flex: 0 0 34px;
        }

        .nav {
            display: flex;
            align-items: center;
            gap: 18px;
            flex-wrap: wrap;
        }

        .nav a {
            color: #334155;
            font-size: 0.92rem;
            font-weight: 600;
            transition: color 0.18s ease;
            white-space: nowrap;
        }

        .nav a:hover,
        .nav a.is-active {
            color: var(--primary);
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .mobile-nav-toggle {
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 5px;
            width: 42px;
            height: 42px;
            border: 1px solid rgba(148,163,184,0.32);
            border-radius: 8px;
            background: rgba(255,255,255,0.92);
            color: var(--text);
            cursor: pointer;
            box-shadow: 0 10px 24px rgba(15,23,42,0.06);
        }

        .mobile-nav-toggle span {
            display: block;
            width: 18px;
            height: 2px;
            border-radius: 999px;
            background: currentColor;
            transition: transform 0.18s ease, opacity 0.18s ease;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            padding: 0 14px;
            font-size: 0.85rem;
            line-height: 1;
            border-radius: 999px;
            font-weight: 600;
            transition: all 0.18s ease;
            border: 1px solid transparent;
            cursor: pointer;
            text-decoration: none;
            white-space: nowrap;
        }

        .btn-light {
            background: rgba(255,255,255,0.92);
            border-color: var(--line);
            color: #334155;
        }

        .btn-light:hover {
            background: #f8fafc;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: #fff;
            box-shadow: 0 8px 18px rgba(37,99,235,0.18);
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 24px rgba(37,99,235,0.24);
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            min-height: 32px;
            padding: 0 12px;
            border-radius: 999px;
            background: #eff6ff;
            color: #1d4ed8;
            font-size: 0.8rem;
            font-weight: 700;
            margin-bottom: 14px;
        }

        .tag,
        .pill {
            display: inline-flex;
            align-items: center;
            padding: 7px 11px;
            border-radius: 999px;
            background: #f8fafc;
            border: 1px solid var(--line);
            color: var(--muted);
            font-size: 0.85rem;
            font-weight: 600;
        }

        .muted {
            color: var(--muted);
        }

        .stars {
            color: #f59e0b;
            letter-spacing: 1px;
            font-weight: 700;
        }

        h1, h2, h3, h4, h5, h6, p {
            margin-top: 0;
        }


        /* CleverTrust shell */
        .site-header {
            background: rgba(255,255,255,0.92);
            box-shadow: 0 10px 30px rgba(15,23,42,0.05);
        }

        .logo-mark,
        .btn,
        .eyebrow,
        .tag,
        .pill {
            border-radius: 8px;
        }

        .logo-mark {
            background: #0f172a;
            box-shadow: 0 10px 22px rgba(15,23,42,0.18);
        }

        .nav a {
            position: relative;
            padding: 8px 0;
        }

        .nav a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 1px;
            height: 2px;
            border-radius: 999px;
            background: var(--primary);
            opacity: 0;
            transform: scaleX(0.55);
            transition: 0.18s ease;
        }

        .nav a:hover::after,
        .nav a.is-active::after {
            opacity: 1;
            transform: scaleX(1);
        }

        .btn-primary {
            background: #0f172a;
            box-shadow: 0 10px 22px rgba(15,23,42,0.16);
        }

        .btn-primary:hover {
            background: #1d4ed8;
        }

        /* free-start highlight */
        .header-right .btn-primary,
        .btn-start {
            position: relative;
            background: linear-gradient(135deg, #16a34a, #059669);
            color: #fff;
            border-color: rgba(255,255,255,0.16);
            box-shadow: 0 14px 30px rgba(5,150,105,0.26);
        }

        .header-right .btn-primary:hover,
        .btn-start:hover {
            background: linear-gradient(135deg, #059669, #047857);
            box-shadow: 0 18px 36px rgba(5,150,105,0.32);
        }
@media (max-width: 980px) {
            .site-header {
                height: auto;
                min-height: var(--header-height);
            }

            .header-inner {
                display: grid;
                grid-template-columns: 1fr auto;
                align-items: center;
                gap: 10px 14px;
                min-height: var(--header-height);
                height: auto;
                padding: 10px 0;
            }

            .site-logo-image {
                height: 40px;
                max-width: min(62vw, 230px);
            }

            .mobile-nav-toggle {
                display: inline-flex;
            }

            .site-header.is-menu-open .mobile-nav-toggle span:nth-child(1) {
                transform: translateY(7px) rotate(45deg);
            }

            .site-header.is-menu-open .mobile-nav-toggle span:nth-child(2) {
                opacity: 0;
            }

            .site-header.is-menu-open .mobile-nav-toggle span:nth-child(3) {
                transform: translateY(-7px) rotate(-45deg);
            }

            .header-menu {
                grid-column: 1 / -1;
                display: none;
                flex-direction: column;
                align-items: stretch;
                gap: 14px;
                margin-top: 4px;
                padding: 14px;
                border: 1px solid rgba(148,163,184,0.20);
                border-radius: 16px;
                background: rgba(255,255,255,0.98);
                box-shadow: 0 18px 34px rgba(15,23,42,0.08);
            }

            .site-header.is-menu-open .header-menu {
                display: flex;
            }

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

            .nav a {
                padding: 11px 12px;
                border-radius: 8px;
                background: #f8fafc;
            }

            .nav a::after {
                display: none;
            }

            .nav a:hover,
            .nav a.is-active {
                background: #eff6ff;
            }

            .header-right {
                width: 100%;
                justify-content: stretch;
            }

            .header-right .btn {
                flex: 1 1 0;
            }
        }

        @media (max-width: 560px) {
            .container {
                width: min(var(--max), calc(100% - 22px));
            }

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

            .header-right {
                flex-direction: column;
            }

            .header-right .btn {
                width: 100%;
            }
        }


/* Shared components: cards, forms, badges, tables */
.section,
.section-clean {
    padding: 16px 0 36px;
}

.section-head,
.section-head-clean {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-head h2,
.section-head-clean h2 {
    margin: 0 0 8px;
    color: var(--text);
    letter-spacing: -0.03em;
}

.section-head p,
.section-head-clean p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.surface-card,
.content-card,
.form-card,
.table-card {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.card-grid,
.category-grid,
.business-grid,
.review-grid,
.value-grid,
.results-grid {
    display: grid;
    gap: 18px;
}

.card-meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.rating-pill,
.status-pill,
.demo-pill,
.plan-pill,
.badge-soft {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 750;
}

.rating-pill {
    background: #ecfdf5;
    color: #166534;
}

.status-pill,
.badge-soft {
    background: #eff6ff;
    color: #1d4ed8;
}

.demo-pill,
.plan-pill {
    background: #fffbeb;
    color: #92400e;
}

.form-row,
.form-grid {
    display: grid;
    gap: 12px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea,
.input,
.select,
.textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(148,163,184,0.26);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
}

.form-field textarea,
.textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.input:focus,
.select:focus,
.textarea:focus {
    border-color: rgba(37,99,235,0.48);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}

.table-card {
    overflow-x: auto;
}

.data-table,
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.data-table td,
.compare-table th,
.compare-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
    text-align: left;
}

.data-table th,
.compare-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .section-head,
    .section-head-clean {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer and global utilities */

.site-footer {
    margin-top: 60px;
    padding: 40px 0;
    background: #0f172a;
    color: #cbd5f5;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.site-footer a {
    color: #e2e8f0;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.site-footer li {
    margin-bottom: 8px;
}

.scroll-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
    font-size: 1.35rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    background: #2563eb;
    outline: none;
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .scroll-to-top {
        right: 16px;
        bottom: 16px;
    }
}
