/* ============================================================
   AdScore — Shared identity for secondary pages
   Aligned with index.html (light surface + brand blue #2f9dff)
   ============================================================ */

:root {
    --brand: #2f9dff;
    --brand-soft: rgba(47, 157, 255, 0.12);
    --brand-border: rgba(47, 157, 255, 0.28);
    --ink: #1e1e32;
    --muted: #6b7280;
    --muted-2: rgba(0, 0, 0, 0.45);
    --surface: #f7f8fd;
    --surface-2: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --radius-md: 20px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-soft: 0 12px 40px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 16px 48px rgba(15, 23, 42, 0.08);
    --font: 'Inter', system-ui, sans-serif;
}

html,
body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

body.adscore-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f7f8fd 0%, #f7f8fd 50%, #f7f8fd 100%) !important;
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

/* Ambient glows (subtle on light bg) */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.12;
    z-index: 0;
}

.glow-cyan {
    background: rgba(47, 157, 255, 0.35);
}

.glow-purple,
.glow-magenta,
.glow-green {
    background: rgba(47, 157, 255, 0.22);
}

/* ---------- Header (pill, same DNA as index) ---------- */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 14px 24px;
    pointer-events: none;
}

.page-nav-pill {
    pointer-events: auto;
    width: 100%;
    max-width: 920px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px 10px 20px;
    border-radius: 60px;
    background: rgba(20, 20, 30, 0.55);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.page-nav-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.page-nav-brand span {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: -0.02em;
}

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

.page-nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: color 0.2s ease, background 0.2s ease;
}

.page-nav-link:hover,
.page-nav-link:focus-visible {
    color: var(--brand);
    outline: none;
}

.page-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--brand);
    box-shadow: 0 2px 12px rgba(47, 157, 255, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(47, 157, 255, 0.4);
}

.page-nav-cta:focus-visible,
.page-nav-link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .page-header {
        padding: 10px 16px;
    }

    .page-nav-pill {
        padding: 10px 12px 10px 14px;
        border-radius: 300px;
    }

    .page-nav-brand span {
        display: none;
    }

    .page-nav-link {
        display: none;
    }
}

/* ---------- Document layout ---------- */
.document-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 120px 24px 60px;
    position: relative;
    z-index: 10;
}

.document-container.wide {
    max-width: 1000px;
}

.document-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    color: rgba(30, 30, 50, 0.78);
    font-size: 1.05rem;
    line-height: 1.7;
    box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
    .document-card {
        padding: 28px 20px;
        font-size: 0.95rem;
        border-radius: 20px;
    }

    .document-container {
        padding-top: 100px;
    }
}

.document-card h1 {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.document-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 36px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.document-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a2a45;
    margin-top: 22px;
    margin-bottom: 10px;
}

.document-card p {
    margin: 0 0 16px;
}

.document-card ul,
.document-card ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.document-card li {
    margin-bottom: 8px;
}

.document-card strong {
    color: var(--ink);
    font-weight: 600;
}

.document-card a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.document-card a:hover {
    text-decoration: underline;
}

.page-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--brand);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid var(--brand-border);
    background: var(--brand-soft);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}

.page-meta {
    color: var(--muted) !important;
    font-size: 0.95rem;
}

.text-brand {
    color: var(--brand) !important;
}

.gradient-text-brand {
    color: var(--brand);
    background: none;
    -webkit-text-fill-color: var(--brand);
}

/* Callout boxes */
.callout {
    border-radius: 14px;
    padding: 16px 18px;
    margin: 20px 0;
}

.callout-info {
    background: var(--brand-soft);
    border: 1px solid var(--brand-border);
}

.callout-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.callout-danger {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.callout-muted {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
}

/* Timeline (about) */
.timeline {
    border-left: 2px solid var(--brand-border);
    padding-left: 24px;
    margin: 32px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.timeline-year {
    font-weight: 800;
    color: var(--brand);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.timeline-title {
    font-weight: 700;
    color: var(--ink);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

/* Quote */
.page-quote {
    border-left: 4px solid var(--brand);
    padding-left: 18px;
    margin: 28px 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink);
}

/* Primary CTA button */
.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff !important;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(47, 157, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(47, 157, 255, 0.38);
}

.btn-brand:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

/* ---------- Contact page ---------- */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.contact-header p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 36px;
}

@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-border);
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    font-size: 1.35rem;
    background: var(--brand-soft);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand);
}

.contact-details h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}

.contact-details p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.contact-details a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

.contact-form-container h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 20px;
    border: none;
    padding: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 14px;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

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

/* ---------- Security page ---------- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.security-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.security-item:hover {
    transform: translateY(-2px);
    border-color: var(--brand-border);
    box-shadow: var(--shadow-soft);
}

.security-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: inline-block;
}

.zero-risk-list {
    list-style: none;
    padding: 0 !important;
}

.zero-risk-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.12);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    color: var(--ink);
}

.zero-risk-list li span {
    color: #ef4444;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1;
}

/* ---------- Footer (light, index-like) ---------- */
.page-footer {
    position: relative;
    z-index: 10;
    margin-top: 24px;
    padding: 40px 24px 28px;
    border-top: 1px solid var(--border);
    background: transparent;
}

.page-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .page-footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .page-footer-brand {
        align-items: center !important;
    }

    .page-footer-links {
        align-items: center !important;
    }
}

.page-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.page-footer-brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-footer-brand-row img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.page-footer-brand-row strong {
    font-weight: 800;
    font-size: 1rem;
    color: var(--ink);
}

.page-footer-brand p {
    margin: 0;
    color: rgba(0, 0, 0, 0.35);
    font-size: 0.8rem;
    line-height: 1.6;
    max-width: 280px;
}

.page-footer-links h4 {
    margin: 0 0 12px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.85rem;
}

.page-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.page-footer-links a {
    color: rgba(0, 0, 0, 0.45);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.page-footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 18px;
    text-align: center;
}

.page-footer-bottom p {
    margin: 0;
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.75rem;
}

/* Utility overrides for leftover dark inline accents */
.adscore-page .clonify-button-primary {
    background: var(--brand) !important;
    background-image: none !important;
    color: #fff !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 8px 24px rgba(47, 157, 255, 0.3) !important;
}
