/* SpiderFoot.app — light product interface */
:root {
    --sf-brand: #6d50e6;
    --sf-brand-strong: #593cc5;
    --sf-brand-soft: #f4f1ff;
    --sf-ink: #17151d;
    --sf-muted: #686471;
    --sf-canvas: #fcfcfd;
    --sf-surface: #ffffff;
    --sf-line: #e8e6ee;
    --sf-success: #079669;
    --sf-warning: #b7791f;
    --sf-danger: #dc3645;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--sf-canvas);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--sf-ink);
    background: var(--sf-canvas);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    color: var(--sf-ink);
    background: #ddd4ff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f4f8;
}

::-webkit-scrollbar-thumb {
    border: 2px solid #f5f4f8;
    border-radius: 999px;
    background: #bbb6c8;
}

::-webkit-scrollbar-thumb:hover {
    background: #938ca2;
}

.bg-dot-pattern {
    background-image: radial-gradient(circle, rgba(109, 80, 230, 0.14) 1px, transparent 1.2px);
    background-size: 22px 22px;
}

.bg-diagonal-pattern {
    background-image: repeating-linear-gradient(
        135deg,
        rgba(109, 80, 230, 0.035) 0,
        rgba(109, 80, 230, 0.035) 1px,
        transparent 1px,
        transparent 13px
    );
}

/* Compatibility for legacy markup while templates transition to the new system. */
.bg-grid-pattern {
    background-image: radial-gradient(circle, rgba(109, 80, 230, 0.12) 1px, transparent 1.2px);
    background-size: 24px 24px;
}

.nav-link {
    position: relative;
    padding: 0.4rem 0;
    transition: color 180ms ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--sf-brand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

#site-nav {
    transition: box-shadow 180ms ease, background-color 180ms ease;
}

#site-nav.shadow-lg {
    box-shadow: 0 10px 32px rgba(35, 27, 64, 0.08);
}

#mobile-menu.active {
    display: block;
}

.feature-card,
.result-card,
.card-inner {
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover,
.result-card:hover .card-inner {
    transform: translateY(-3px);
}

.editorial-card {
    border: 1px solid var(--sf-line);
    border-radius: 1.25rem;
    background: var(--sf-surface);
    box-shadow: 0 8px 24px rgba(35, 27, 64, 0.045);
}

.soft-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ded7ff;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    color: var(--sf-brand-strong);
    background: var(--sf-brand-soft);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    border: 1px solid var(--sf-brand);
    border-radius: 0.85rem;
    padding: 0.75rem 1.25rem;
    color: #fff;
    background: var(--sf-brand);
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(109, 80, 230, 0.18);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.btn-primary:hover {
    background: var(--sf-brand-strong);
    box-shadow: 0 12px 28px rgba(109, 80, 230, 0.24);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.search-type-tab {
    cursor: pointer;
    user-select: none;
}

input,
textarea,
select,
button,
a {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #9b82ff !important;
    box-shadow: 0 0 0 4px rgba(109, 80, 230, 0.1) !important;
}

*:focus-visible {
    outline: 3px solid rgba(109, 80, 230, 0.32);
    outline-offset: 2px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e6ee;
    border-top-color: var(--sf-brand);
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

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

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.result-item,
.animate-slideIn {
    animation: slideInUp 320ms ease both;
}

#results-list {
    animation: fadeIn 260ms ease both;
}

.favicon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.favicon-img {
    width: 22px;
    height: 22px;
    border: 1px solid var(--sf-line);
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
}

.default-favicon-icon {
    color: var(--sf-brand);
    font-size: 16px;
}

.prose-policy {
    color: #474350;
    font-size: 0.98rem;
    line-height: 1.82;
}

.prose-policy h2 {
    margin: 2.5rem 0 0.85rem;
    color: var(--sf-ink);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 750;
    letter-spacing: -0.025em;
}

.prose-policy h3 {
    margin: 1.6rem 0 0.55rem;
    color: var(--sf-ink);
    font-size: 1rem;
    font-weight: 700;
}

.prose-policy p + p,
.prose-policy ul + p,
.prose-policy p + ul {
    margin-top: 0.85rem;
}

.prose-policy ul {
    list-style: disc;
    padding-left: 1.35rem;
}

.prose-policy li + li {
    margin-top: 0.45rem;
}

.prose-policy a {
    color: var(--sf-brand-strong);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 767px) {
    .prose-policy {
        font-size: 0.94rem;
        line-height: 1.75;
    }
}

@media print {
    nav,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
