/* ============================================================
   OnlyDMARC – shared styles
   ============================================================ */

:root {
    --brand-purple: #7C3AED;
    --brand-cyan: #06B6D4;
    --brand-grad: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
    --bg-base: #0D1117;
    --bg-card: #161B27;
    --bg-card-2: #1C2333;
    --border: #21262D;
    --text: #E2E8F0;
    --text-muted: #8B949E;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --radius: 12px;
    --radius-lg: 20px;
}

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Always reserve the scrollbar gutter so the centred .container doesn't shift
   left/right when navigating between a tall (scrolling) page and a short one.
   No-op on overlay-scrollbar systems; prevents the ~4-6px jump on classic ones. */
html {
    scrollbar-gutter: stable;
}

body {
    background-color: var(--bg-base);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--brand-cyan);
    text-decoration: none;
}

    a:hover {
        color: #67E8F9;
    }

/* ---- Navbar ---- */
.navbar {
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-img {
    height: 36px;
    width: auto;
}

.navbar .nav-link {
    /*color: var(--text-muted) !important;*/
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem !important;
    transition: color 0.2s;
}

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: var(--text) !important;
    }

.btn-nav-cta {
    /* The general brand cyan is too light behind white 14px CTA text. Keep the
       navigation treatment, but use an AA-safe endpoint for this text-bearing control. */
    background: linear-gradient(135deg, #7C3AED 0%, #00788A 100%);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1.2rem !important;
    font-weight: 600;
    font-size: 0.88rem;
    transition: opacity 0.2s, transform 0.15s;
}

    .btn-nav-cta:hover {
        opacity: 0.88;
        transform: translateY(-1px);
    }

/* ---- Gradient text ---- */
.grad-text {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn-primary-grad {
    background: var(--brand-grad);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

    .btn-primary-grad:hover {
        opacity: 0.88;
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
        color: #fff;
    }

.btn-outline-light-custom {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

    .btn-outline-light-custom:hover {
        border-color: var(--brand-cyan);
        background: rgba(6, 182, 212, 0.08);
        color: var(--brand-cyan);
        transform: translateY(-2px);
    }

/* ---- Cards ---- */
.od-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

    .od-card:hover {
        border-color: var(--brand-purple);
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
    }

/* ---- Section spacing ---- */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

/* ---- Section labels ---- */
.section-label {
    display: inline-block;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #A78BFA;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
}

/* Decorative / non-interactive elements that carry tabindex="0" for
   programmatic access should never show a browser focus ring.
   (:focus-visible would be ideal but :focus is used here to match the
   existing pattern already applied to .page-hero-title and .h1:focus.) */
.section-label:focus,
.hero-title:focus,
.hero-sub:focus,
.stat-item:focus,
.dashboard-mockup:focus {
    outline: none;
}

/* ---- Hero ---- */
.hero {
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
}



/* ---- Dashboard mockup ---- */
.dashboard-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
}

.mockup-bar {
    background: var(--bg-card-2);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #EF4444;
}

    .mockup-dot:nth-child(2) {
        background: #F59E0B;
    }

    .mockup-dot:nth-child(3) {
        background: #22C55E;
    }

.mockup-body {
    padding: 1.25rem;
    font-size: 0.82rem;
}

.mockup-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.stat-tile {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem;
}

    .stat-tile .label {
        color: var(--text-muted);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .stat-tile .value {
        font-size: 1.4rem;
        font-weight: 700;
        margin-top: 0.15rem;
    }

        .stat-tile .value.ok {
            color: var(--success);
        }

        .stat-tile .value.warn {
            color: var(--warning);
        }

        .stat-tile .value.crit {
            color: var(--danger);
        }

.mockup-table {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.mt-head, .mt-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr 0.8fr;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.76rem;
}

.mt-head {
    background: var(--bg-card-2);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.mt-row {
    border-bottom: 1px solid rgba(33,38,45,0.5);
}

    .mt-row:last-child {
        border-bottom: none;
    }

.badge-pass {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-fail {
    background: rgba(239,68,68,0.15);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-none {
    background: rgba(139,148,158,0.1);
    color: var(--text-muted);
    border: 1px solid rgba(139,148,158,0.2);
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---- Stats bar ---- */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.stat-item {
    text-align: center;
}

    .stat-item .num {
        font-size: 2rem;
        font-weight: 800;
        /*background: var(--brand-grad);*/
        background: var(--brand-cyan);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .stat-item .desc {
        color: var(--text-muted);
        font-size: 0.875rem;
        margin-top: 0.1rem;
    }

/* ---- Feature icon ---- */
.feat-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.feat-icon-purple {
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.25);
}

.feat-icon-cyan {
    background: rgba(6,182,212,0.12);
    border: 1px solid rgba(6,182,212,0.25);
}

.feat-icon-green {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.25);
}

.feat-icon-amber {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
    padding: 5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

    .page-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 50% 80% at 50% -10%, rgba(124, 58, 237, 0.15) 0%, transparent 65%);
        pointer-events: none;
    }

.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
        outline: none;
}

.h1:focus {
    outline: none;
}

/* ---- CTA band ---- */
.cta-band {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

    .cta-band::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(124,58,237,0.1) 0%, transparent 70%);
        pointer-events: none;
    }

/* ---- Pricing ---- */
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

    .price-card.featured {
        border-color: var(--brand-purple);
        box-shadow: 0 0 0 1px var(--brand-purple), 0 20px 50px rgba(124,58,237,0.2);
        position: relative;
    }

    .price-card:not(.featured):hover {
        border-color: rgba(124,58,237,0.5);
        transform: translateY(-4px);
    }

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-grad);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    white-space: nowrap;
}

.price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
}

.price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-check {
    color: var(--brand-cyan);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.price-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

    .price-item.highlight {
        color: var(--text);
    }

/* ---- Glossary ---- */
.gloss-table {
    width: 100%;
    border-collapse: collapse;
}

    .gloss-table th {
        background: var(--bg-card-2);
        color: var(--text-muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding: 0.85rem 1.25rem;
        text-align: left;
        border-bottom: 1px solid var(--border);
    }

    .gloss-table td {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(33,38,45,0.6);
        font-size: 0.92rem;
        color: var(--text-muted);
        vertical-align: top;
    }

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

    .gloss-table tr:hover td {
        background: rgba(255,255,255,0.02);
    }

    .gloss-table td:first-child {
        font-weight: 700;
        color: var(--text);
        white-space: nowrap;
        width: 160px;
    }

.policy-tag {
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.82rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.tag-none {
    background: rgba(139,148,158,0.1);
    color: var(--text-muted);
    border: 1px solid rgba(139,148,158,0.2);
}

.tag-quar {
    background: rgba(245,158,11,0.12);
    color: var(--warning);
    border: 1px solid rgba(245,158,11,0.25);
}

.tag-reject {
    background: rgba(239,68,68,0.12);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,0.25);
}

/* ---- Compliance cards ---- */
.compliance-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 3px solid var(--brand-purple);
}

/* ---- Integration logos row ---- */
.int-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: border-color 0.2s, color 0.2s;
}

    .int-pill:hover {
        border-color: var(--brand-cyan);
        color: var(--text);
    }

/* ---- FAQ ---- */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

    .faq-item:hover {
        border-color: rgba(124,58,237,0.4);
    }

.faq-q {
    font-weight: 600;
    font-size: 0.97rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-a {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 2rem;
}

.footer-brand-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.footer-service-note {
    font-size: 0.75rem;
    padding-right: 35px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: var(--text-muted);
        font-size: 0.9rem;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: var(--text);
        }

.footer-col-head {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

/* ---- Utility ---- */
.text-muted-custom {
    color: var(--text-muted) !important;
}

.border-custom {
    border-color: var(--border) !important;
}

.bg-card {
    background: var(--bg-card);
}

.monospace {
    font-family: 'Fira Code', 'Cascadia Code', monospace;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 3rem;
    }

    .mockup-row {
        grid-template-columns: 1fr 1fr;
    }

    .mt-head, .mt-row {
        grid-template-columns: 2fr 1fr 0.8fr;
    }

        .mt-head > *:nth-child(4),
        .mt-row > *:nth-child(4),
        .mt-head > *:nth-child(5),
        .mt-row > *:nth-child(5) {
            display: none;
        }
}

/* ---- Forms ---- */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    /* Real elevation so the form reads as the focal surface (signup design pass 2026-06-28).
       Additive only — no colour/layout change. */
    box-shadow: 0 28px 70px -28px rgba(0,0,0,.65), 0 0 0 1px rgba(124,58,237,.04);
    position: relative;
}

.od-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

    .od-label .req {
        color: var(--danger);
        margin-left: 0.2rem;
    }

.od-input,
.od-textarea,
.od-select {
    display: block;
    width: 100%;
    background: var(--bg-card-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

    .od-input::placeholder,
    .od-textarea::placeholder {
        color: var(--text-muted);
        opacity: 0.7;
    }

    .od-input:hover,
    .od-textarea:hover,
    .od-select:hover {
        border-color: rgba(124, 58, 237, 0.4);
    }

    .od-input:focus,
    .od-textarea:focus,
    .od-select:focus {
        outline: none;
        border-color: var(--brand-purple);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    }

.od-textarea {
    resize: vertical;
    min-height: 130px;
}

.od-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B949E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

    .od-input.is-invalid,
    .od-textarea.is-invalid,
    .od-select.is-invalid {
        border-color: var(--danger);
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
    }

    .od-input.is-valid,
    .od-textarea.is-valid,
    .od-select.is-valid {
        border-color: var(--success);
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
    }

.form-group {
    margin-bottom: 1.25rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
/* Checkbox / Radio */
.od-check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

    .od-check-label input[type="checkbox"],
    .od-check-label input[type="radio"] {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        min-width: 18px;
        background: var(--bg-card-2);
        border: 1.5px solid var(--border);
        border-radius: 4px;
        margin-top: 2px;
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s;
        position: relative;
        flex-shrink: 0;
    }

    .od-check-label input[type="radio"] {
        border-radius: 50%;
    }

        .od-check-label input[type="checkbox"]:checked,
        .od-check-label input[type="radio"]:checked {
            background: var(--brand-purple);
            border-color: var(--brand-purple);
        }

            .od-check-label input[type="checkbox"]:checked::after {
                content: '';
                display: block;
                position: absolute;
                left: 4px;
                top: 1px;
                width: 6px;
                height: 10px;
                border: 2px solid white;
                border-top: none;
                border-left: none;
                transform: rotate(45deg);
            }

            .od-check-label input[type="radio"]:checked::after {
                content: '';
                display: block;
                position: absolute;
                width: 8px;
                height: 8px;
                background: white;
                border-radius: 50%;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }

    .od-check-label:hover input[type="checkbox"],
    .od-check-label:hover input[type="radio"] {
        border-color: var(--brand-purple);
    }
/* Plan selection cards */
.plan-option {
    position: relative;
    cursor: pointer;
}

    .plan-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.plan-option-card {
    background: var(--bg-card-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.plan-option input[type="radio"]:checked + .plan-option-card {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 1px var(--brand-purple), 0 4px 20px rgba(124,58,237,0.15);
}

.plan-option-card:hover {
    border-color: rgba(124,58,237,0.4);
}
/* Form divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 1.5rem 0;
}

    .form-divider::before,
    .form-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

/* Contact info card */
.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: border-color 0.2s;
}

    .contact-info-card:hover {
        border-color: rgba(124,58,237,0.3);
    }

/* ---- Legal / prose pages ---- */
.legal-hero {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
}

.legal-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.legal-body {
    padding: 3.5rem 0 5rem;
}

.legal-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.legal-toc-head {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 0.4rem;
}

.legal-toc a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}

    .legal-toc a:hover {
        color: var(--brand-cyan);
    }

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text);
    scroll-margin-top: 90px;
}

    .legal-content h2:first-child {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

.legal-content h3 {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.85;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--brand-cyan);
}

.legal-content strong {
    color: var(--text);
    font-weight: 600;
}

.legal-callout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand-purple);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

    .legal-callout strong {
        color: var(--text);
    }

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(124,58,237,0.5);
    }

/* =====================================================================
   Tool pages (scoped to .tool-surface): tighter vertical rhythm so key
   content sits above the fold, and a full-width tool container so the
   tool no longer floats in the middle of the page. Scoped on purpose —
   these overrides must NOT bleed onto the brochure pages.
   ===================================================================== */
.tool-surface .page-hero {
    padding: 2.5rem 0 1.25rem;
}

.tool-surface .section,
.tool-surface .section-sm {
    padding: 0 0 2.5rem;
}

.tool-surface .cta-band {
    padding: 2.75rem 0;
}

/* Let the title's supporting copy use the width it has instead of wrapping
   into a narrow column. Capped for readability on ultra-wide screens. */
.tool-surface .tool-lede {
    max-width: 1024px;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* The tool container fills the page width with comfortable, resolution-aware
   gutters rather than being pinned to a narrow centred column. */
/* The tool container shares the hero's Bootstrap .container box (no extra width
   cap) so the tool fills the available width and lines up with the page title. */

/* Breadcrumb rendered as badges: a clickable "Free Tools" pill plus a distinct,
   non-interactive "current tool" pill so it's clear where you are. */
.tool-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    /* Match .section-label metrics exactly so the "Free Tools" badge is the same
       size on the /tools index (section-label) and the tool pages (breadcrumb). */
    .tool-breadcrumb .crumb {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        line-height: 1.7;
        border-radius: 50px;
        padding: 0.3rem 0.85rem;
        text-decoration: none;
    }

    /* "Free Tools" — clickable, purple (matches the section-label accent). */
    a.tool-breadcrumb-home {
        background: rgba(124, 58, 237, 0.12);
        border: 1px solid rgba(124, 58, 237, 0.3);
        color: #A78BFA;
        transition: background 0.2s, border-color 0.2s;
    }

        a.tool-breadcrumb-home:hover {
            background: rgba(124, 58, 237, 0.22);
            border-color: rgba(124, 58, 237, 0.55);
        }

    /* Current tool — distinct "you are here" pill, not a link. */
    .tool-breadcrumb-current {
        background: var(--bg-card-2);
        border: 1px solid var(--border);
        color: var(--text);
    }

    .tool-breadcrumb .sep {
        color: var(--text-muted);
        font-size: 0.7rem;
        opacity: 0.7;
    }

/* Expandable "Advanced options" — make it obvious the row is a clickable
   disclosure (bordered control + rotating chevron) instead of bare text. */
.tool-details > summary {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card-2);
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
}

    .tool-details > summary::-webkit-details-marker {
        display: none;
    }

    .tool-details > summary:hover {
        border-color: rgba(124, 58, 237, 0.45);
    }

    .tool-details > summary .summary-hint {
        font-weight: 400;
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .tool-details > summary .summary-chevron {
        margin-left: auto;
        transition: transform 0.2s;
    }

.tool-details[open] > summary .summary-chevron {
    transform: rotate(180deg);
}

/* Tool directory cards: a full-width primary CTA plus one helper line, so every
   card has the same button-then-text shape regardless of whether it takes input. */
.tool-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.tool-card-help {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
}

a.tool-card-help:hover {
    color: #A78BFA;
    text-decoration: underline;
}

/* ── Reduced-motion (WCAG 2.3.3 / signup accessibility, PDD §7.6) ──────────────
   Honour an OS-level "reduce motion" preference across the public surface: drop
   animations and transitions to near-zero. Scoped behind the media query, so it
   only affects visitors who asked for it — it can never regress default motion. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   Self-service signup design pass (2026-06-28) — additive utilities.
   Composed only from existing :root brand tokens.
   ============================================================ */

/* Canvas depth: a second cyan radial + masked grid, behind page content.
   Rendered by a single empty <div class="flow-bg"></div> placed once per page
   inside the page wrapper (see markup notes). */
.flow-bg{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;}
.flow-bg::before{content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse 55% 45% at 88% 8%,rgba(6,182,212,.10),transparent 60%);}
.flow-bg::after{content:'';position:absolute;inset:0;opacity:.5;
  background-image:linear-gradient(var(--border) 1px,transparent 1px),
                   linear-gradient(90deg,var(--border) 1px,transparent 1px);
  background-size:68px 68px;
  -webkit-mask-image:radial-gradient(ellipse 90% 60% at 50% -5%,#000,transparent 72%);
          mask-image:radial-gradient(ellipse 90% 60% at 50% -5%,#000,transparent 72%);}
.flow-page{position:relative;}                 /* page wrapper that contains .flow-bg + content */
.flow-page > .container,
.flow-page > section{position:relative;z-index:1;}

/* Two-column shell for /signup (form left, value rail right). The form column is
   pinned to 680px — the same width as .card-narrow — so the signup form card matches
   the standard auth content area (login, forgot/reset-password, check-inbox) in both
   size and left position; the trust rail absorbs the remaining container width. */
.flow-grid{display:grid;grid-template-columns:minmax(0,680px) minmax(0,1fr);gap:2rem;align-items:start;}
@media (max-width:991px){.flow-grid{grid-template-columns:1fr;gap:1.5rem;}}

/* Centered auth shell: centers the standard auth content column as a block, the way the
   bespoke login treatment did — hero, card and secondary links all share one centered
   column; text inside stays left-aligned. Scoped to containers inside the page wrapper,
   so the navbar/footer containers are unaffected.
   .auth-centered      → single-column pages (680px card + 24px container gutters).
   .auth-centered-wide → /signup (680px form + 2rem gap + 420px trust rail + gutters);
                         the existing minmax(0,1fr) rail column resolves to 420px inside
                         the capped container, keeping the form pinned at 680px. */
.auth-centered .container{max-width:704px;}
.auth-centered-wide .container{max-width:1156px;}
.auth-centered .card-narrow,
.auth-centered-wide .card-narrow{margin-inline:auto;}

/* Constrain the recovery/landing cards so they don't float in a dead zone */
.card-narrow{max-width:680px;}

/* Trust / value rail */
.trust-rail{background:linear-gradient(180deg,rgba(124,58,237,.06),rgba(6,182,212,.04));
  border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.75rem;}
.trust-item{display:flex;gap:.85rem;align-items:flex-start;padding:.7rem 0;}
.trust-item+.trust-item{border-top:1px solid var(--border);}
.trust-ico{width:34px;height:34px;min-width:34px;border-radius:9px;display:grid;place-items:center;
  background:rgba(124,58,237,.14);border:1px solid rgba(124,58,237,.3);color:#A78BFA;font-size:1rem;}
.trust-item h3{font-size:.92rem;font-weight:600;margin:0 0 .15rem;color:var(--text);}
.trust-item p{font-size:.82rem;color:var(--text-muted);margin:0;line-height:1.5;}
.rail-foot{margin-top:1.1rem;padding-top:1.1rem;border-top:1px solid var(--border);
  font-size:.82rem;color:var(--text-muted);display:flex;align-items:center;gap:.5rem;}

/* Optional-domain inset — visually demotes the optional field below the required core */
.optional-block{background:var(--bg-card-2);border:1px dashed var(--border);
  border-radius:var(--radius);padding:1rem 1.1rem;margin-top:.5rem;}
.optional-head{display:flex;align-items:center;gap:.5rem;font-size:.88rem;font-weight:600;
  color:var(--text);margin-bottom:.6rem;}
.optional-head .tag{font-weight:400;color:var(--text-muted);font-size:.8rem;}

.field-divider{height:1px;background:var(--border);margin:1.5rem 0;}

/* Show/hide-password trigger (style only; keep the existing inline-JS button + aria-pressed) */
.show-pass{background:none;border:none;color:var(--brand-cyan);font-size:.8rem;font-weight:500;
  padding:.4rem 0 0;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem;}
.show-pass:hover{color:#67E8F9;}

/* CTA sizing — full-width on mobile, fixed min-width on desktop */
.cta-submit{width:100%;}
@media (min-width:768px){.cta-submit{width:auto;min-width:220px;}}

/* Terms + CTA stacked on their own rows (no longer sharing a row) */
.terms-row{display:flex;flex-direction:column;gap:1.1rem;margin-top:1.5rem;}

/* check-inbox: primary "open your inbox" action */
.inbox-mark{width:64px;height:64px;border-radius:16px;display:grid;place-items:center;
  background:rgba(124,58,237,.12);border:1px solid rgba(124,58,237,.3);color:#A78BFA;font-size:1.8rem;}
.provider-row{display:flex;flex-wrap:wrap;gap:.6rem;}
.provider-btn{display:inline-flex;align-items:center;gap:.5rem;background:var(--bg-card-2);
  border:1.5px solid var(--border);color:var(--text);font-weight:600;border-radius:10px;
  padding:.6rem 1.1rem;font-size:.92rem;transition:border-color .2s,color .2s,transform .15s;}
.provider-btn:hover{border-color:var(--brand-cyan);color:var(--brand-cyan);transform:translateY(-2px);}
.secondary-block{margin-top:1.75rem;padding-top:1.5rem;border-top:1px solid var(--border);}

/* DMARC posture preview — the one "delight" moment */
.posture-card{background:var(--bg-card-2);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.5rem;}
.posture-row{display:flex;align-items:center;gap:1rem;padding:.75rem 0;border-bottom:1px solid var(--border);}
.posture-row:last-child{border-bottom:none;}
.posture-name{width:62px;font-weight:600;font-size:.9rem;letter-spacing:.02em;}
.posture-status{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;font-size:.88rem;}
.posture-desc{color:var(--text-muted);font-size:.8rem;margin-left:auto;text-align:right;max-width:46%;}
@media (max-width:575px){.posture-desc{display:none;}}

/* ============================================================
   SPF Checker & Generator (Phase 4) — public tool pages
   ============================================================ */

/* Dual lookup meter (U5). Reduced-motion respected via the media query below. */
.spf-meter{height:10px;border-radius:6px;background:var(--bg-card-2);border:1px solid var(--border);overflow:hidden;}
.spf-meter-fill{height:100%;border-radius:6px;transition:width .35s ease;}

/* Inline (?) glossary — keyboard/SR operable pure <details> (U5/U10). */
.spf-glossary{display:inline-block;}
.spf-glossary > summary{cursor:pointer;color:var(--brand-cyan);font-size:.85rem;list-style:none;}
.spf-glossary > summary::-webkit-details-marker{display:none;}
.spf-glossary-body{margin-top:.5rem;font-size:.82rem;color:var(--text-muted);
  background:var(--bg-base);border:1px solid var(--border);border-radius:8px;padding:.6rem .8rem;max-width:520px;}

/* Findings */
.spf-finding{padding:.75rem 0 .75rem 1rem;margin-bottom:.75rem;}
.spf-finding:last-child{margin-bottom:0;}
.spf-explain > summary{cursor:pointer;color:var(--brand-cyan);font-size:.85rem;}
.spf-checklist{margin:0;padding-left:1.2rem;}

/* Generator — provider presets */
.spf-preset-label{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:.9rem;
  background:var(--bg-card-2);border:1px solid var(--border);border-radius:8px;padding:.5rem .75rem;}
.spf-preset-label span:nth-of-type(1){flex:1;}
.spf-verbatim{background:var(--bg-base);border:1px dashed var(--border);border-radius:8px;padding:.4rem .7rem;}

/* Before/after diff tokens */
.spf-diff-block{background:var(--bg-base);border:1px solid var(--border);border-radius:8px;
  padding:.7rem 1rem;line-height:2;font-family:var(--mono,monospace);font-size:.82rem;word-break:break-all;}
.spf-diff-token{display:inline-block;padding:.05rem .35rem;border-radius:4px;margin:.1rem .15rem;}
.spf-diff-unchanged{color:var(--text-muted);}
.spf-diff-added{background:rgba(34,197,94,.15);color:var(--success);}
.spf-diff-removed{background:rgba(239,68,68,.15);color:var(--danger);text-decoration:line-through;}

@media (prefers-reduced-motion: reduce){
  .spf-meter-fill{transition:none;}
}

/* ============================================================
   Homepage (quick pass 2026-08) — evidence-first hero, attributed
   facts band, flat feature/requirement grids. Gradient is reserved
   for the primary button; headings are left-aligned.
   ============================================================ */

.home-hero {
    padding-bottom: 4.5rem;
}

.home-setup-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero sample table — honestly labelled until a real screenshot lands.
   Swap the whole .home-sample block for an <img> when available. */
.home-sample-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.69rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.home-sample-badge {
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.home-sample-table {
    border-radius: 16px;
    box-shadow: none;
}

    .home-sample-table .mockup-table {
        border: none;
        border-radius: 0;
        background: var(--bg-card);
    }

    .home-sample-table .mt-head,
    .home-sample-table .mt-row {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }

.home-sample-failure {
    background: #1A1418;
}

    .home-sample-failure .monospace {
        color: #FCA5A5;
    }

.home-sample-summary {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Attributed facts band — two dated facts with sources, denser than
   a marketing section on purpose. */
.home-facts {
    background: #10141C;
    text-align: left;
}

.home-fact {
    font-size: 1.2rem;
    line-height: 1.55;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.6rem;
    text-wrap: pretty;
    max-width: 56ch;
}

.home-source {
    font-size: 0.82rem;
    color: var(--text-muted);
}

    .home-source:hover {
        color: var(--text);
    }

.home-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

/* Left-aligned section headings */
.home-section-heading {
    max-width: 62ch;
    margin-bottom: 2.5rem;
}

    .home-section-heading h2 {
        font-size: clamp(1.75rem, 3.2vw, 2.4rem);
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -0.02em;
        margin-bottom: 0.9rem;
        text-wrap: balance;
    }

    .home-section-heading p {
        font-size: 1.05rem;
        color: var(--text-muted);
        margin-bottom: 0;
        text-wrap: pretty;
    }

/* Numbered feature grid — flat cells sharing 1px rules, no icon tiles */
.home-feature-section {
    padding-bottom: 3.5rem;
}

.home-feature-grid,
.home-requirement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.home-requirement-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.home-feature-card,
.home-requirement-card {
    background: var(--bg-card);
    padding: 1.5rem;
}

.home-card-index {
    display: block;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.69rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.home-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.home-feature-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Processing narrative + alert example */
.home-processing-section h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
    max-width: 24ch;
    text-wrap: balance;
}

.home-processing-section p,
.home-processing-section ul {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 56ch;
}

.home-processing-section ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

    .home-processing-section ul li {
        margin-bottom: 0.45rem;
    }

.home-alert-example {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--warning);
    border-radius: 0 14px 14px 0;
    padding: 1.35rem 1.5rem;
}

    .home-alert-example span {
        display: block;
        font-family: 'Fira Code', 'Cascadia Code', monospace;
        font-size: 0.69rem;
        letter-spacing: 0.08em;
        color: var(--text-muted);
        margin-bottom: 0.6rem;
    }

    .home-alert-example strong {
        display: block;
        font-size: 1.02rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .home-alert-example code {
        display: block;
        font-family: 'Fira Code', 'Cascadia Code', monospace;
        font-size: 0.8rem;
        color: var(--text-muted);
        line-height: 1.7;
    }

/* Requirements — dense reference material, date tag instead of an icon */
.home-requirements {
    padding: 3rem 0 3.5rem;
}

.home-requirement-card > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.home-requirement-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.home-requirement-card > div:first-child span {
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    white-space: nowrap;
}

.home-requirement-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.home-requirement-card a {
    font-size: 0.84rem;
    font-weight: 600;
}

/* CTA — more open than the reference sections above it */
.home-cta {
    padding: 5.5rem 0;
}

    .home-cta h2 {
        font-size: clamp(1.75rem, 3.2vw, 2.5rem);
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -0.02em;
        margin-bottom: 1rem;
        max-width: 18ch;
        text-wrap: balance;
    }

    .home-cta p {
        font-size: 1.05rem;
        line-height: 1.7;
        color: var(--text-muted);
        margin-bottom: 1.8rem;
        max-width: 52ch;
        text-wrap: pretty;
    }

        .home-cta p code {
            font-family: 'Fira Code', 'Cascadia Code', monospace;
            font-size: 0.92em;
            color: var(--text);
            background: rgba(139, 148, 158, 0.12);
            border-radius: 4px;
            padding: 0.05rem 0.3rem;
        }

.home-dns-example {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.35rem 1.4rem;
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    line-height: 1.9;
    overflow-x: auto;
}

    .home-dns-example > span {
        display: block;
        color: #7C7C8A;
    }

        .home-dns-example > span + code + span {
            margin-top: 0.9rem;
        }

    .home-dns-example code {
        display: block;
        font-family: inherit;
        font-size: inherit;
        color: var(--text);
        white-space: pre;
    }

        .home-dns-example code .dns-host {
            color: #6EE7B7;
        }
