/* Footer is intentionally always dark regardless of theme */
/* ═══ FOOTER 2028 — DESIGN TOKENS ═══ */
.mc-footer {
    --ft-serif: 'Instrument Serif', Georgia, serif;
    --ft-sans: 'Inter', -apple-system, sans-serif;
    --ft-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --ft-mint: #6fcf97; --ft-mint-deep: #52c785;
    --ft-bg: #0f172a;
    --ft-text-1: #e2e8f0; --ft-text-2: #94a3b8; --ft-text-3: #64748b;
    --ft-border: rgba(111,207,151,0.12);
    --ft-transition: 200ms ease;
    font-family: var(--ft-sans);
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(180deg, var(--ft-bg) 0%, #0a0f1a 100%);
    color: var(--ft-text-2);
    padding: 0;
    margin-top: 4rem;
    position: relative;
}

/* Top mint bar */
.mc-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ft-mint), var(--ft-mint-deep), var(--ft-mint));
}

.ft-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.5rem 0;
}

/* ─── GRID ─── */
/* 4-column footer grid */
.ft-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Upgrade link pulse */
.ft-link-upgrade {
    color: #6fcf97 !important;
    font-weight: 600;
}
.ft-link-upgrade::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #6fcf97;
    border-radius: 50%;
    margin-right: 8px;
    animation: upgradePulse 2s ease-in-out infinite;
}
@keyframes upgradePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
    .ft-link-upgrade::before {
        animation: none;
    }
}

/* ─── COLUMN ─── */
.ft-col-title {
    font-family: var(--ft-serif);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--ft-mint);
    margin: 0 0 0.75rem;
}

.ft-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ft-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3125rem 0;
    color: var(--ft-text-2);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color var(--ft-transition), transform var(--ft-transition);
}

.ft-link:hover {
    color: var(--ft-mint);
    transform: translateX(3px);
}

.ft-link svg {
    width: 14px;
    height: 14px;
    color: var(--ft-text-3);
    flex-shrink: 0;
    transition: color var(--ft-transition);
}

.ft-link:hover svg {
    color: var(--ft-mint);
}

/* External link indicator */
.ft-link[target="_blank"][rel~="noopener"]::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' x2='21' y1='14' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 0.125rem;
    opacity: 0.5;
}

/* ─── BOTTOM BAR ─── */
.ft-bottom {
    border-top: 1px solid var(--ft-border);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 960px;
    margin: 0 auto;
}

.ft-legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ft-legal-link {
    color: var(--ft-text-3);
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color var(--ft-transition);
}

.ft-legal-link:hover {
    color: var(--ft-mint);
}

.ft-copy {
    font-size: 0.6875rem;
    color: var(--ft-text-3);
    font-weight: 500;
}

.ft-social-icon {
    display: inline-flex;
    color: #6fcf97;
    transition: color var(--ft-transition);
}
.ft-social-icon:hover {
    color: #5ab883;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
    .ft-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .ft-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ft-inner {
        padding: 2.5rem 1.25rem 0;
    }
    .ft-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 1.25rem;
    }
    .ft-legal {
        justify-content: center;
    }
    .ft-link {
        padding: 0.5rem 0;
        min-height: 44px;
    }
}

/* ─── PRINT ─── */
@media print {
    .mc-footer { display: none !important; }
}

/* ─── FOOTER ACCORDION (MOBILE ONLY) ─── */
.ft-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
}
.ft-chevron {
    display: none;
}

@media (max-width: 768px) {
    .ft-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 0;
    }
    .ft-section:last-child {
        border-bottom: none;
    }
    .ft-section-toggle {
        cursor: pointer;
        padding: 0.875rem 0;
        -webkit-tap-highlight-color: transparent;
    }
    .ft-section-toggle:active { opacity: 0.7; }
    .ft-chevron {
        display: block;
        color: #64748b;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }
    .ft-section.open .ft-chevron {
        transform: rotate(180deg);
    }
    .ft-section-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }
    .ft-section.open .ft-section-links {
        max-height: 500px;
        opacity: 1;
        padding-bottom: 0.75rem;
    }
    .ft-section-toggle .ft-col-title {
        margin: 0;
        padding: 0;
    }
    /* Hide duplicate bottom link bar on mobile */
    .ft-legal { display: none; }
}

[data-theme="dark"] .ft-chevron { color: #64748b; }

/* ═══ BETA FEEDBACK ═══ */
.beta-fb-wrapper {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9990;
    font-family: 'Inter', sans-serif;
}

.beta-fb-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #4a5568);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 200ms ease;
}
.beta-fb-trigger:hover {
    border-color: #6fcf97;
    color: #6fcf97;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}
.beta-fb-trigger[aria-expanded="true"] {
    display: none;
}

.beta-fb-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 340px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 1.25rem;
    animation: betaFbSlideUp 250ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes betaFbSlideUp {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.beta-fb-header {
    position: relative;
    margin-bottom: 1rem;
    padding-right: 24px;
}
.beta-fb-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.125rem;
    color: var(--text-primary, #1a1a2e);
}
.beta-fb-subtitle {
    font-size: 0.6875rem;
    color: var(--text-tertiary, #718096);
    margin-top: 2px;
    line-height: 1.3;
}
.beta-fb-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-quaternary, #a0aec0);
    border-radius: 4px;
    transition: color 150ms ease;
}
.beta-fb-close:hover { color: var(--text-primary, #1a1a2e); }

.beta-fb-mood {
    margin-bottom: 0.75rem;
}
.beta-fb-mood-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-tertiary, #718096);
    display: block;
    margin-bottom: 6px;
}
.beta-fb-mood-options {
    display: flex;
    gap: 8px;
}
.beta-fb-mood-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border: 1.5px solid var(--border-subtle, #e2e8f0);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    color: var(--text-tertiary, #718096);
    font-size: 0.625rem;
    font-weight: 600;
    transition: all 150ms ease;
}
.beta-fb-mood-btn:hover {
    border-color: #6fcf97;
    color: #6fcf97;
}
.beta-fb-mood-btn.mood-selected {
    border-color: #6fcf97;
    background: rgba(111,207,151,0.06);
    color: #6fcf97;
}

.beta-fb-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.75rem;
}
.beta-fb-cat-btn {
    padding: 4px 10px;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-tertiary, #718096);
    transition: all 150ms ease;
}
.beta-fb-cat-btn:hover {
    border-color: var(--text-secondary, #4a5568);
    color: var(--text-secondary, #4a5568);
}
.beta-fb-cat-btn.beta-fb-cat-active {
    border-color: #6fcf97;
    background: rgba(111,207,151,0.06);
    color: #6fcf97;
}

.beta-fb-field {
    margin-bottom: 0.75rem;
}
.beta-fb-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border-subtle, #e2e8f0);
    border-radius: 10px;
    background: var(--bg-secondary, #f7fafc);
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-primary, #1a1a2e);
    resize: vertical;
    min-height: 70px;
    transition: border-color 150ms ease;
    box-sizing: border-box;
}
.beta-fb-textarea:focus {
    outline: none;
    border-color: #6fcf97;
    box-shadow: 0 0 0 3px rgba(111,207,151,0.1);
}
.beta-fb-textarea::placeholder {
    color: var(--text-quaternary, #a0aec0);
}
.beta-fb-email {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--border-subtle, #e2e8f0);
    border-radius: 8px;
    background: var(--bg-secondary, #f7fafc);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-primary, #1a1a2e);
    box-sizing: border-box;
}
.beta-fb-email:focus {
    outline: none;
    border-color: #6fcf97;
}

.beta-fb-submit {
    width: 100%;
    padding: 10px;
    background: #6fcf97;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: all 150ms ease;
}
.beta-fb-submit:hover {
    background: #56b280;
    transform: translateY(-1px);
}
.beta-fb-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.beta-fb-success {
    text-align: center;
    padding: 1.5rem 0.5rem;
}
.beta-fb-success-text {
    font-size: 0.8125rem;
    color: var(--text-secondary, #4a5568);
    margin-top: 8px;
    line-height: 1.4;
}

[data-theme="dark"] .beta-fb-trigger {
    background: var(--bg-primary, #1a1a2e);
    border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .beta-fb-panel {
    background: var(--bg-primary, #1a1a2e);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
[data-theme="dark"] .beta-fb-textarea,
[data-theme="dark"] .beta-fb-email {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

@media (max-width: 480px) {
    .beta-fb-wrapper {
        bottom: 0.5rem;
        right: 0.5rem;
    }
    .beta-fb-panel {
        width: calc(100vw - 1rem);
        max-width: 340px;
    }
    .beta-fb-trigger span {
        display: none;
    }
    .beta-fb-trigger {
        padding: 10px;
        border-radius: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .beta-fb-panel { animation: none; }
    .beta-fb-trigger { transition: none; }
}

@media print {
    .beta-fb-wrapper { display: none !important; }
}

/* ═══ TRUSTPILOT BADGE ═══ */
.tp-badge{display:inline-flex;align-items:center;gap:0.5rem;text-decoration:none;transition:opacity 0.2s}
.tp-badge:hover{opacity:0.85}
.tp-badge-score{font-family:'JetBrains Mono','SF Mono',monospace;font-size:0.9375rem;font-weight:800;color:#1f2937}
[data-theme="dark"] .tp-badge-score{color:#f1f5f9}
.tp-badge-stars{display:flex;gap:2px}
.tp-badge-star{width:20px;height:20px;background:#00b67a;display:flex;align-items:center;justify-content:center;border-radius:2px}
.tp-badge-star svg{width:12px;height:12px;fill:#fff}
.tp-badge-text{font-family:'Inter',sans-serif;font-size:0.75rem;color:#64748b;font-weight:600}
.tp-badge-text span{color:#00b67a;font-weight:700}
.tp-badge-logo{height:16px;opacity:0.7}
.tp-badge-sm .tp-badge-star{width:16px;height:16px}
.tp-badge-sm .tp-badge-star svg{width:10px;height:10px}
.tp-badge-sm .tp-badge-score{font-size:0.8125rem}
.tp-badge-sm .tp-badge-text{font-size:0.6875rem}
