:root {
    color-scheme: dark;

    --bg: #090914;
    --bg-soft: #10101d;
    --surface: #141425;
    --surface-2: #19192d;
    --surface-3: #202039;

    --text: #f7f7fb;
    --muted: #a2a2ba;
    --border: #2b2b45;

    --primary: #7168ff;
    --primary-2: #9a5cff;

    --success: #46d39a;
    --warning: #f1be55;
    --danger: #ff7171;

    --shadow:
        0 20px 60px
        rgba(0,0,0,.24);
}

html[data-theme="light"] {
    color-scheme: light;

    --bg: #f8f8fc;
    --bg-soft: #f0f0f8;
    --surface: #ffffff;
    --surface-2: #f7f7fb;
    --surface-3: #ededf7;

    --text: #171725;
    --muted: #6e6e82;
    --border: #dfdfea;

    --shadow:
        0 20px 55px
        rgba(26,26,58,.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -100px,
            rgba(113,104,255,.18),
            transparent 34%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

.hidden {
    display: none !important;
}

.muted {
    color: var(--muted);
}

.topbar {
    border-bottom:
        1px solid
        rgba(128,128,160,.12);

    background:
        color-mix(
            in srgb,
            var(--bg) 86%,
            transparent
        );

    backdrop-filter:
        blur(15px);

    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-inner {
    width:
        min(
            1180px,
            calc(100% - 36px)
        );

    min-height: 70px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.035em;
    font-size: 20px;
}

.brand-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    color: white;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.build-badge {
    border:
        1px solid
        var(--border);

    border-radius: 999px;

    padding:
        7px
        10px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}

.coffee-link {
    text-decoration: none;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    padding:
        9px
        12px;

    font-size: 13px;
    font-weight: 750;

    background:
        var(--surface);
}

.icon-button {
    width: 39px;
    height: 39px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background:
        var(--surface);

    color:
        var(--text);
}

main {
    width:
        min(
            1120px,
            calc(100% - 36px)
        );

    margin:
        0 auto;
}

.hero {
    max-width: 870px;

    margin:
        90px auto 55px;

    text-align: center;
}

.eyebrow,
.section-kicker {
    color: #978fff;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.center {
    text-align: center;
}

h1 {
    margin:
        14px 0 20px;

    font-size:
        clamp(
            44px,
            7vw,
            76px
        );

    line-height: .98;
    letter-spacing: -.06em;
}

h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #7770ff,
            #ae63ff
        );

    -webkit-background-clip: text;
    color: transparent;
}

.hero-copy {
    max-width: 720px;

    margin:
        0 auto;

    color:
        var(--muted);

    font-size: 18px;
    line-height: 1.65;
}

.scanner {
    margin-top: 36px;

    padding: 18px;

    text-align: left;

    border:
        1px solid
        var(--border);

    border-radius: 20px;

    background:
        var(--surface);

    box-shadow:
        var(--shadow);
}

.scanner-label {
    display: block;

    margin-bottom: 9px;

    font-size: 13px;
    font-weight: 800;
}

.scanner-row {
    display: flex;
    gap: 10px;
}

.scanner-row input {
    flex: 1;
    min-width: 0;

    height: 55px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    padding:
        0 16px;

    background:
        var(--surface-2);

    color:
        var(--text);

    outline: none;
}

.scanner-row input:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(113,104,255,.14);
}

.primary-button {
    min-width: 180px;

    height: 55px;

    border: 0;

    border-radius: 13px;

    padding:
        0 20px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );

    color: white;

    font-weight: 900;
}

.primary-button:disabled {
    opacity: .7;
    cursor: wait;
}

.spinner {
    display: none;

    width: 16px;
    height: 16px;

    margin-left: 8px;

    border:
        2px solid
        rgba(255,255,255,.4);

    border-top-color:
        white;

    border-radius:
        50%;

    vertical-align:
        middle;

    animation:
        spin .7s linear infinite;
}

.primary-button.loading .spinner {
    display:
        inline-block;
}

@keyframes spin {
    to {
        transform:
            rotate(360deg);
    }
}

.scanner-help {
    margin:
        10px 2px 0;

    color:
        var(--muted);

    font-size:
        12px;
}

.error-box {
    margin-top:
        15px;

    padding:
        13px 15px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--danger) 40%,
            var(--border)
        );

    border-radius:
        12px;

    background:
        color-mix(
            in srgb,
            var(--danger) 8%,
            var(--surface)
        );

    color:
        var(--danger);

    text-align:
        left;

    font-size:
        14px;
}

.results {
    margin-bottom:
        85px;
}

.results-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;

    margin-bottom:
        18px;
}

.results-top h2 {
    margin:
        7px 0 4px;

    font-size:
        clamp(
            25px,
            4vw,
            36px
        );

    letter-spacing:
        -.04em;
}

.results-actions {
    display: flex;
    gap: 8px;
}

.secondary-button,
.text-button,
.copy-small {
    border:
        1px solid
        var(--border);

    background:
        var(--surface-2);

    color:
        var(--text);

    border-radius:
        10px;

    padding:
        9px 12px;

    font-weight:
        750;

    font-size:
        12px;
}

.score-panel {
    display: flex;
    align-items: center;
    gap: 25px;

    padding:
        24px;

    border:
        1px solid
        var(--border);

    border-radius:
        22px;

    background:
        var(--surface);

    box-shadow:
        var(--shadow);
}

.score-circle {
    --score:
        0;

    width:
        132px;

    height:
        132px;

    flex:
        0 0 132px;

    border-radius:
        50%;

    display:
        grid;

    place-items:
        center;

    background:
        conic-gradient(
            var(--primary)
            calc(var(--score) * 1%),
            var(--surface-3)
            0
        );

    position:
        relative;
}

.score-circle::after {
    content:
        "";

    position:
        absolute;

    width:
        104px;

    height:
        104px;

    border-radius:
        50%;

    background:
        var(--surface);
}

.score-inner {
    position:
        relative;

    z-index:
        1;

    text-align:
        center;
}

.score-inner strong {
    display:
        block;

    font-size:
        34px;

    line-height:
        1;
}

.score-inner span {
    color:
        var(--muted);

    font-size:
        12px;
}

.score-content h3 {
    margin:
        10px 0 7px;

    font-size:
        27px;

    letter-spacing:
        -.04em;
}

.score-content p {
    margin:
        0;

    color:
        var(--muted);

    line-height:
        1.6;
}

.grade-badge {
    width:
        fit-content;

    padding:
        7px 10px;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        var(--surface-2);

    font-weight:
        900;
}

.summary-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap:
        12px;

    margin:
        14px 0 22px;
}

.summary-card {
    padding:
        18px;

    border:
        1px solid
        var(--border);

    border-radius:
        16px;

    background:
        var(--surface);
}

.summary-card-top {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    margin-bottom:
        8px;
}

.summary-card strong {
    font-size:
        16px;
}

.summary-card p {
    margin:
        0;

    color:
        var(--muted);

    font-size:
        13px;

    line-height:
        1.5;
}

.status-dot {
    width:
        9px;

    height:
        9px;

    border-radius:
        50%;
}

.status-dot.pass {
    background:
        var(--success);
}

.status-dot.warning {
    background:
        var(--warning);
}

.status-dot.fail {
    background:
        var(--danger);
}

.results-layout {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        280px;

    gap:
        18px;
}

.results-main {
    min-width:
        0;
}

.result-section,
.sidebar-card {
    border:
        1px solid
        var(--border);

    border-radius:
        18px;

    background:
        var(--surface);

    padding:
        20px;

    margin-bottom:
        14px;
}

.section-heading {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        17px;
}

.section-heading h3,
.sidebar-card h3 {
    margin:
        5px 0 0;

    font-size:
        19px;

    letter-spacing:
        -.025em;
}

.status-pill {
    padding:
        6px 9px;

    border-radius:
        999px;

    font-size:
        11px;

    font-weight:
        900;

    text-transform:
        uppercase;
}

.status-pill.pass {
    color:
        var(--success);

    background:
        color-mix(
            in srgb,
            var(--success) 10%,
            var(--surface)
        );
}

.status-pill.warning {
    color:
        var(--warning);

    background:
        color-mix(
            in srgb,
            var(--warning) 10%,
            var(--surface)
        );
}

.status-pill.fail {
    color:
        var(--danger);

    background:
        color-mix(
            in srgb,
            var(--danger) 10%,
            var(--surface)
        );
}

.detail-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap:
        10px;
}

.detail-item {
    padding:
        13px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface-2);
}

.detail-item span {
    display:
        block;

    color:
        var(--muted);

    font-size:
        11px;

    margin-bottom:
        5px;
}

.detail-item strong {
    word-break:
        break-word;

    font-size:
        14px;
}

.record-block {
    margin-top:
        14px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface-2);

    padding:
        13px;
}

.record-title {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom:
        9px;

    color:
        var(--muted);

    font-size:
        12px;
}

.record-block code {
    display:
        block;

    overflow-wrap:
        anywhere;

    color:
        var(--text);

    line-height:
        1.6;
}

.warning-list {
    margin-top:
        14px;
}

.warning-item {
    padding:
        10px 12px;

    margin-top:
        8px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--warning) 30%,
            var(--border)
        );

    border-radius:
        10px;

    background:
        color-mix(
            in srgb,
            var(--warning) 6%,
            var(--surface)
        );

    font-size:
        13px;

    line-height:
        1.5;
}

.fix-list {
    display:
        grid;

    gap:
        9px;
}

.fix-item {
    display:
        flex;

    gap:
        12px;

    align-items:
        flex-start;

    padding:
        13px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface-2);
}

.fix-points {
    flex:
        0 0 auto;

    color:
        var(--danger);

    font-weight:
        900;

    font-size:
        13px;
}

.fix-item p {
    margin:
        0;

    font-size:
        13px;

    line-height:
        1.5;
}

.good-message {
    padding:
        14px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--success) 30%,
            var(--border)
        );

    border-radius:
        12px;

    color:
        var(--success);

    background:
        color-mix(
            in srgb,
            var(--success) 7%,
            var(--surface)
        );
}

.server-list {
    display:
        grid;

    gap:
        9px;
}

.server-row {
    display:
        grid;

    grid-template-columns:
        72px
        minmax(0,1fr);

    gap:
        12px;

    padding:
        13px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface-2);
}

.server-priority {
    color:
        var(--muted);

    font-size:
        12px;
}

.server-host {
    font-weight:
        850;

    word-break:
        break-all;
}

.server-meta {
    margin-top:
        4px;

    color:
        var(--muted);

    font-size:
        12px;

    line-height:
        1.5;
}

.dns-tabs {
    display:
        flex;

    gap:
        7px;

    flex-wrap:
        wrap;

    margin-bottom:
        10px;
}

.dns-tab {
    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        var(--surface-2);

    color:
        var(--muted);

    padding:
        7px 11px;

    font-size:
        11px;

    font-weight:
        850;
}

.dns-tab.active {
    color:
        white;

    border-color:
        transparent;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-2)
        );
}

.raw-output {
    margin:
        0;

    max-height:
        330px;

    overflow:
        auto;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--bg-soft);

    padding:
        14px;

    color:
        var(--text);

    font-size:
        12px;

    line-height:
        1.6;

    white-space:
        pre-wrap;

    word-break:
        break-word;
}

.results-sidebar {
    min-width:
        0;
}

.sidebar-card {
    position:
        sticky;

    top:
        86px;
}

.sidebar-card + .sidebar-card {
    position:
        static;
}

.history-list,
.module-list {
    display:
        grid;

    gap:
        7px;

    margin:
        14px 0;
}

.history-item {
    width:
        100%;

    text-align:
        left;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    padding:
        10px;

    background:
        var(--surface-2);

    color:
        var(--text);

    font-size:
        12px;
}

.module-item {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        12px;

    padding:
        8px 0;

    border-bottom:
        1px solid
        var(--border);

    font-size:
        12px;
}

.module-item:last-child {
    border-bottom:
        0;
}

.module-state.complete {
    color:
        var(--success);
}

.module-state.phase_2 {
    color:
        var(--muted);
}

.text-button {
    background:
        transparent;

    color:
        var(--muted);
}

.feature-intro {
    padding:
        50px 0 90px;
}

.feature-intro h2 {
    max-width:
        650px;

    margin:
        10px auto 28px;

    text-align:
        center;

    font-size:
        clamp(
            29px,
            5vw,
            46px
        );

    letter-spacing:
        -.045em;
}

.feature-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap:
        12px;
}

.feature-grid article {
    min-height:
        150px;

    padding:
        19px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        8px;

    border:
        1px solid
        var(--border);

    border-radius:
        16px;

    background:
        var(--surface);
}

.feature-grid article span {
    color:
        var(--muted);

    line-height:
        1.55;

    font-size:
        13px;
}

footer {
    border-top:
        1px solid
        var(--border);
}

.footer-inner {
    width:
        min(
            1120px,
            calc(100% - 36px)
        );

    margin:
        auto;

    padding:
        32px 0 45px;

    display:
        flex;

    justify-content:
        space-between;

    gap:
        20px;

    color:
        var(--muted);

    font-size:
        12px;
}

.footer-inner strong {
    display:
        block;

    margin-bottom:
        5px;

    color:
        var(--text);
}

.footer-links a {
    text-decoration:
        none;
}


@media (max-width: 900px) {

    .results-layout {
        grid-template-columns:
            1fr;
    }

    .results-sidebar {
        display:
            grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );

        gap:
            12px;
    }

    .sidebar-card {
        position:
            static;

        margin-bottom:
            0;
    }

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


@media (max-width: 700px) {

    .hero {
        margin-top:
            55px;
    }

    .scanner-row {
        flex-direction:
            column;
    }

    .primary-button {
        width:
            100%;
    }

    .results-top {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .score-panel {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .summary-grid,
    .detail-grid {
        grid-template-columns:
            1fr;
    }

    .results-sidebar {
        grid-template-columns:
            1fr;
    }

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

    .footer-inner {
        flex-direction:
            column;
    }
}


@media (max-width: 480px) {

    .coffee-link,
    .build-badge {
        display:
            none;
    }

    .topbar-inner,
    main,
    .footer-inner {
        width:
            min(
                100% - 24px,
                1120px
            );
    }

    h1 {
        font-size:
            43px;
    }

    .score-circle {
        width:
            112px;

        height:
            112px;

        flex-basis:
            112px;
    }

    .score-circle::after {
        width:
            88px;

        height:
            88px;
    }

    .results-actions {
        width:
            100%;
    }

    .results-actions button {
        flex:
            1;
    }
}

/* =========================================================
   PHASE 2B — DKIM + SMTP/TLS
   ========================================================= */

.status-dot.unknown {
    background:
        var(--muted);
}

.status-pill.unknown {
    color:
        var(--muted);

    background:
        var(--surface-2);
}

.info-message {
    margin-top:
        14px;

    padding:
        12px 13px;

    border:
        1px solid
        var(--border);

    border-radius:
        11px;

    background:
        var(--surface-2);

    color:
        var(--muted);

    font-size:
        13px;

    line-height:
        1.55;
}

.dkim-list,
.smtp-server-list {
    display:
        grid;

    gap:
        10px;

    margin-top:
        14px;
}

.dkim-item,
.smtp-server-card {
    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface-2);

    padding:
        14px;
}

.dkim-item-top,
.smtp-server-top {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        12px;

    margin-bottom:
        9px;
}

.dkim-selector,
.smtp-host {
    font-weight:
        850;

    word-break:
        break-all;
}

.dkim-meta,
.smtp-meta {
    color:
        var(--muted);

    font-size:
        12px;

    line-height:
        1.55;
}

.dkim-record {
    margin-top:
        10px;

    padding:
        10px;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        var(--bg-soft);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size:
        11px;

    line-height:
        1.55;

    overflow-wrap:
        anywhere;
}

.smtp-capabilities {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        6px;

    margin-top:
        10px;
}

.capability-chip {
    padding:
        5px 7px;

    border:
        1px solid
        var(--border);

    border-radius:
        999px;

    color:
        var(--muted);

    font-size:
        10px;

    font-weight:
        750;
}

.tls-details {
    margin-top:
        10px;

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap:
        8px;
}

.tls-detail {
    padding:
        9px;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        var(--bg-soft);

    font-size:
        11px;
}

.tls-detail span {
    display:
        block;

    margin-bottom:
        3px;

    color:
        var(--muted);
}

@media (max-width:700px) {

    .tls-details {
        grid-template-columns:
            1fr;
    }
}

/* =========================================================
   PHASE 3B — rDNS + DNSSEC + reputation
   ========================================================= */

.status-dot.neutral,
.status-pill.neutral {
    color:
        var(--muted);
}

.status-dot.neutral {
    background:
        var(--muted);
}

.status-pill.neutral {
    background:
        var(--surface-2);
}

.status-dot.provider_required {
    background:
        var(--muted);
}

.status-pill.provider_required {
    color:
        var(--muted);

    background:
        var(--surface-2);
}

.rdns-list,
.dnssec-records,
.blacklist-list {
    display:
        grid;

    gap:
        9px;

    margin-top:
        14px;
}

.rdns-item,
.dnssec-record,
.blacklist-item {
    padding:
        13px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface-2);
}

.rdns-item-top,
.blacklist-item-top {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        12px;
}

.rdns-ip {
    font-weight:
        850;

    word-break:
        break-all;
}

.rdns-meta,
.blacklist-meta {
    margin-top:
        5px;

    color:
        var(--muted);

    font-size:
        12px;

    line-height:
        1.55;

    word-break:
        break-word;
}

.dnssec-record {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size:
        11px;

    line-height:
        1.55;

    overflow-wrap:
        anywhere;
}

.security-state {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;

    font-size:
        11px;

    font-weight:
        850;
}

.security-state.good {
    color:
        var(--success);
}

.security-state.warn {
    color:
        var(--warning);
}

.security-state.muted {
    color:
        var(--muted);
}

/* =========================================================
   PHASE 4B — BIMI + MTA-STS + TLS-RPT
   ========================================================= */

.policy-card {
    margin-top:
        14px;

    padding:
        14px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface-2);
}

.policy-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap:
        9px;
}

.policy-item {
    padding:
        10px;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    background:
        var(--bg-soft);
}

.policy-item span {
    display:
        block;

    color:
        var(--muted);

    font-size:
        11px;

    margin-bottom:
        4px;
}

.policy-item strong {
    font-size:
        13px;

    word-break:
        break-word;
}

.url-value {
    word-break:
        break-all;
}

@media (max-width:700px) {

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

/* =========================================================
   PHASE 5B — DANE + CAA + transport readiness
   ========================================================= */

.transport-score-wrap {
    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    margin-bottom:
        15px;

    padding:
        14px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface-2);
}

.transport-score {
    width:
        72px;

    height:
        72px;

    flex:
        0 0 72px;

    display:
        grid;

    place-items:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        50%;

    background:
        var(--bg-soft);

    font-size:
        20px;

    font-weight:
        900;
}

.transport-checks,
.dane-list,
.caa-list {
    display:
        grid;

    gap:
        9px;

    margin-top:
        14px;
}

.transport-check,
.dane-item,
.caa-item {
    padding:
        12px;

    border:
        1px solid
        var(--border);

    border-radius:
        11px;

    background:
        var(--surface-2);
}

.transport-check-top,
.dane-item-top,
.caa-item-top {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        12px;
}

.transport-check-name,
.dane-host,
.caa-tag {
    font-weight:
        850;
}

.transport-check-message,
.dane-meta,
.caa-meta {
    margin-top:
        5px;

    color:
        var(--muted);

    font-size:
        12px;

    line-height:
        1.55;

    word-break:
        break-word;
}

.tlsa-record {
    margin-top:
        8px;

    padding:
        9px;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        var(--bg-soft);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size:
        11px;

    line-height:
        1.5;

    overflow-wrap:
        anywhere;
}

/* =========================================================
   PHASE 7B — Sender compliance
   ========================================================= */

.compliance-platform-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap:
        10px;

    margin-bottom:
        14px;
}

.compliance-platform-card {
    padding:
        16px;

    border:
        1px solid
        var(--border);

    border-radius:
        13px;

    background:
        var(--surface-2);
}

.compliance-platform-name {
    color:
        var(--muted);

    font-size:
        11px;

    font-weight:
        850;

    text-transform:
        uppercase;

    letter-spacing:
        .05em;
}

.compliance-score {
    margin:
        6px 0;

    font-size:
        26px;

    font-weight:
        950;
}

.compliance-check-list {
    display:
        grid;

    gap:
        8px;

    margin-top:
        14px;
}

.compliance-check-item {
    padding:
        11px;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    background:
        var(--surface-2);
}

.compliance-check-head {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        10px;
}

.compliance-check-name {
    font-size:
        12px;

    font-weight:
        850;
}

.compliance-check-detail {
    margin-top:
        5px;

    color:
        var(--muted);

    font-size:
        11px;

    line-height:
        1.5;

    overflow-wrap:
        anywhere;
}

@media (max-width:700px) {

    .compliance-platform-grid {
        grid-template-columns:
            1fr;
    }
}

/* =========================================================
   Dedicated DNS generator pages
   ========================================================= */

.dedicated-generator-intro {
    max-width:
        760px;

    margin:
        12px auto 22px;

    color:
        var(--muted);

    line-height:
        1.65;

    text-align:
        center;
}

/* =========================================================
   PHASE 7B — Gmail/Yahoo sender compliance
   ========================================================= */

.compliance-scope-note {
    display:
        flex;

    flex-direction:
        column;

    gap:
        5px;

    margin-bottom:
        14px;

    padding:
        13px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface-2);
}

.compliance-scope-note span {
    color:
        var(--muted);

    font-size:
        12px;

    line-height:
        1.55;
}

.compliance-overview {
    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap:
        9px;

    margin-bottom:
        14px;
}

.compliance-stat {
    padding:
        12px;

    border:
        1px solid
        var(--border);

    border-radius:
        11px;

    background:
        var(--surface-2);
}

.compliance-stat span {
    display:
        block;

    color:
        var(--muted);

    font-size:
        11px;

    margin-bottom:
        5px;
}

.compliance-stat strong {
    font-size:
        18px;
}

.provider-compliance-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap:
        12px;

    margin-top:
        14px;
}

.provider-compliance-card {
    padding:
        14px;

    border:
        1px solid
        var(--border);

    border-radius:
        14px;

    background:
        var(--surface-2);
}

.provider-compliance-title {
    font-size:
        17px;

    font-weight:
        900;
}

.provider-compliance-summary {
    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap:
        7px;

    margin-top:
        12px;
}

.provider-mini-stat {
    padding:
        8px;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        var(--bg-soft);

    text-align:
        center;
}

.provider-mini-stat span {
    display:
        block;

    color:
        var(--muted);

    font-size:
        9px;
}

.provider-mini-stat strong {
    display:
        block;

    margin-top:
        3px;

    font-size:
        13px;
}

.compliance-check-list {
    display:
        grid;

    gap:
        8px;

    margin-top:
        12px;
}

.compliance-check-item {
    padding:
        11px;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    background:
        var(--bg-soft);
}

.compliance-check-top {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        10px;
}

.compliance-check-name {
    font-size:
        12px;

    font-weight:
        850;

    text-transform:
        uppercase;
}

.compliance-check-message {
    margin-top:
        5px;

    color:
        var(--muted);

    font-size:
        11px;

    line-height:
        1.5;
}

.compliance-evidence {
    margin-top:
        5px;

    color:
        var(--muted);

    font-size:
        10px;

    text-transform:
        uppercase;

    letter-spacing:
        .04em;
}

.compliance-sources {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        7px;

    margin-top:
        12px;
}

.compliance-source-link {
    display:
        inline-flex;

    align-items:
        center;

    padding:
        7px 10px;

    border:
        1px solid
        var(--border);

    border-radius:
        999px;

    background:
        var(--surface-2);

    font-size:
        11px;

    text-decoration:
        none;
}

@media (max-width:800px) {

    .provider-compliance-grid {
        grid-template-columns:
            1fr;
    }

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

/* =========================================================
   PHASE 7B — sender compliance
   ========================================================= */

.compliance-explainer {
    display:
        flex;

    flex-direction:
        column;

    gap:
        4px;

    padding:
        13px;

    margin-bottom:
        14px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface-2);
}

.compliance-explainer strong {
    font-size:
        13px;
}

.compliance-explainer span {
    color:
        var(--muted);

    font-size:
        12px;

    line-height:
        1.55;
}

.compliance-platform-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap:
        12px;
}

.compliance-platform-card {
    padding:
        15px;

    border:
        1px solid
        var(--border);

    border-radius:
        14px;

    background:
        var(--surface-2);
}

.compliance-platform-head {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        12px;
}

.compliance-platform-head > div:first-child {
    display:
        flex;

    flex-direction:
        column;

    gap:
        4px;
}

.compliance-provider {
    color:
        var(--muted);

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        .12em;
}

.compliance-platform-head strong {
    font-size:
        17px;
}

.compliance-percent {
    min-width:
        70px;

    text-align:
        right;

    font-size:
        23px;

    font-weight:
        900;
}

.compliance-meta {
    margin-top:
        10px;

    color:
        var(--muted);

    font-size:
        11px;

    line-height:
        1.55;
}

.compliance-rule-list {
    display:
        grid;

    gap:
        7px;

    margin-top:
        12px;
}

.compliance-rule {
    display:
        grid;

    grid-template-columns:
        76px
        minmax(0,1fr);

    gap:
        9px;

    align-items:
        start;

    padding:
        9px;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    background:
        var(--bg-soft);
}

.compliance-rule-state {
    font-size:
        10px;

    font-weight:
        900;

    text-transform:
        uppercase;
}

.compliance-rule-state.pass {
    color:
        var(--success);
}

.compliance-rule-state.warning,
.compliance-rule-state.fail {
    color:
        var(--warning);
}

.compliance-rule-state.unknown,
.compliance-rule-state.neutral {
    color:
        var(--muted);
}

.compliance-rule-body strong {
    display:
        block;

    font-size:
        12px;

    line-height:
        1.4;
}

.compliance-rule-body span {
    display:
        block;

    margin-top:
        3px;

    color:
        var(--muted);

    font-size:
        11px;

    line-height:
        1.45;
}

.compliance-footer-card {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        12px;

    margin-top:
        12px;

    padding:
        13px;

    border:
        1px solid
        var(--border);

    border-radius:
        12px;

    background:
        var(--surface-2);
}

.compliance-footer-card > div {
    display:
        flex;

    flex-direction:
        column;

    gap:
        3px;
}

.compliance-footer-card span {
    color:
        var(--muted);

    font-size:
        11px;
}

.compliance-footer-card strong {
    font-size:
        20px;
}

@media (max-width:760px) {

    .compliance-platform-grid {
        grid-template-columns:
            1fr;
    }

    .compliance-footer-card {
        align-items:
            stretch;

        flex-direction:
            column;
    }

    .compliance-footer-card .secondary-button {
        width:
            100%;

        text-align:
            center;
    }
}


/* ==========================================================
   FMC_TOOL_DIRECTORY_V1
   Production 24-tool homepage directory
   ========================================================== */

.tools-directory {
    padding:
        64px
        0
        96px;
}

.tools-directory-copy {
    width:
        min(
            720px,
            100%
        );

    margin:
        -10px
        auto
        42px;

    color:
        var(--muted);

    text-align:
        center;

    line-height:
        1.7;

    font-size:
        15px;
}

.tool-group {
    margin-top:
        42px;
}

.tool-group:first-of-type {
    margin-top:
        0;
}

.tool-group-heading {
    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-end;

    gap:
        16px;

    margin-bottom:
        16px;

    padding-bottom:
        12px;

    border-bottom:
        1px solid
        var(--border);
}

.tool-group-heading h3 {
    margin:
        0;

    font-size:
        clamp(
            20px,
            2.4vw,
            27px
        );

    letter-spacing:
        -.025em;
}

.tool-group-heading span {
    color:
        var(--muted);

    font-size:
        12px;

    font-weight:
        800;
}

.tool-directory-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap:
        14px;
}

.tool-directory-card {
    min-width:
        0;

    min-height:
        178px;

    padding:
        20px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        10px;

    border:
        1px solid
        var(--border);

    border-radius:
        17px;

    background:
        var(--surface);

    color:
        var(--text);

    text-decoration:
        none;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.tool-directory-card:hover {
    transform:
        translateY(-3px);

    border-color:
        color-mix(
            in srgb,
            var(--primary) 55%,
            var(--border)
        );

    background:
        var(--surface-2);
}

.tool-directory-card strong {
    font-size:
        16px;

    line-height:
        1.35;
}

.tool-directory-card span {
    flex:
        1;

    color:
        var(--muted);

    font-size:
        13px;

    line-height:
        1.55;

    overflow-wrap:
        anywhere;
}

.tool-directory-card em {
    margin-top:
        auto;

    color:
        var(--primary-2);

    font-size:
        12px;

    font-style:
        normal;

    font-weight:
        850;
}

@media (max-width: 1000px) {

    .tool-directory-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0,1fr)
            );
    }
}

@media (max-width: 820px) {

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

    .tools-directory {
        padding-bottom:
            72px;
    }
}

@media (max-width: 700px) {

    .topbar-inner {
        min-height:
            62px;
    }

    .brand {
        font-size:
            17px;
    }

    .brand-mark {
        width:
            31px;

        height:
            31px;
    }

    .top-actions {
        gap:
            7px;
    }

    .coffee-link {
        padding:
            8px
            10px;

        font-size:
            12px;
    }

    .hero {
        margin-top:
            42px;
    }

    .scanner {
        padding:
            16px;
    }

    .tool-group-heading {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            5px;
    }
}

@media (max-width: 560px) {

    .tool-directory-grid {
        grid-template-columns:
            1fr;
    }

    .tool-directory-card {
        min-height:
            0;
    }

    .tools-directory {
        padding:
            48px
            0
            64px;
    }

    .tools-directory-copy {
        margin-bottom:
            32px;

        font-size:
            14px;
    }
}

@media (max-width: 420px) {

    .topbar-inner,
    main,
    .footer-inner {
        width:
            calc(100% - 20px);
    }

    .brand {
        gap:
            7px;
    }

    .brand span:last-child {
        font-size:
            16px;
    }

    .coffee-link {
        display:
            none;
    }

    .icon-button {
        width:
            36px;

        height:
            36px;
    }

    h1 {
        font-size:
            clamp(
                38px,
                12vw,
                48px
            );
    }
}

