/* ══════════════════════════════════════════════════════
   Shared styles — App Store Manager launchpage
   ══════════════════════════════════════════════════════ */

/* ── Button system ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ea580c, #f97316, #fb923c);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(249,115,22,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249,115,22,0.45);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    border: 2px solid rgba(0,0,0,0.15);
    transition: border-color 0.25s ease, background 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-secondary:hover {
    border-color: #f97316;
    background: rgba(249,115,22,0.07);
}

/* ── Nav pill CTA ── */
.nav-pill-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #ea580c, #f97316, #fb923c);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 3px 12px rgba(249,115,22,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.nav-pill-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

/* ── Section tag pill ── */
.section-tag {
    display: inline-block;
    background: rgba(237,122,26,0.1);
    color: #f97316;
    padding: 0.2rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.85rem;
}

/* ── Gradient heading text ── */
.gradient-text {
    background: linear-gradient(135deg, #ea580c, #f97316, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Back bar (tools, articles) ── */
.back-bar {
    position: sticky;
    top: 88px;
    z-index: 40;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.625rem 0;
    margin-bottom: 0;
}
.back-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.back-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f97316;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.375rem 1rem 0.375rem 0.625rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.07);
    transition: all 0.15s ease;
}
.back-bar-link:hover {
    background: rgba(249, 115, 22, 0.14);
    border-color: #f97316;
    color: #ea580c;
    transform: translateX(-2px);
}
.back-bar-link svg {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.back-bar-link:hover svg {
    transform: translateX(-3px);
}

/* ── Scroll reveal animation ── */
.reveal { opacity:0; transform:translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ── Skip to content (accessibility) ── */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 0;
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* ── Footer ── */
.site-footer {
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 3rem 0 2rem;
    margin-top: 0;
}
.site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1e293b;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.footer-brand p {
    color: #475569;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 150ms ease;
    text-decoration: none;
}
.footer-social a:hover {
    background: #f97316;
    border-color: #f97316;
    color: white;
    transform: translateY(-3px);
}
.footer-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e293b;
    margin-bottom: 1.5rem;
}
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links a {
    color: #475569;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 150ms ease;
}
.footer-links a:hover {
    color: #f97316;
    text-decoration: none;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.footer-bottom p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}
.footer-bottom-links a {
    color: #64748b;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 150ms ease;
}
.footer-bottom-links a:hover {
    color: #475569;
}
/* ── Fade-in animation (tools) ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn { animation: fadeIn 0.4s ease both; }

/* ── Dynamic Tailwind classes (used by tool JS, not in Tailwind build) ── */
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-800 { color: #1e293b; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.divide-slate-100 > * + * { border-color: #f1f5f9; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-600 { background-color: #16a34a; }
.text-green-600 { color: #16a34a; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-500 { background-color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-500 { background-color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-brand-600 { color: #ea580c; }

/* ── App Audit score styles ── */
.score-bar-fill { transition: width 0.6s ease-out; }
.score-excellent { color: #22c55e; }
.score-good { color: #84cc16; }
.score-ok { color: #eab308; }
.score-poor { color: #f97316; }
.score-bad { color: #ef4444; }
.bar-excellent { background-color: #22c55e; }
.bar-good { background-color: #84cc16; }
.bar-ok { background-color: #eab308; }
.bar-poor { background-color: #f97316; }
.bar-bad { background-color: #ef4444; }
.issue-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8rem; color: #9ca3af; margin-top: 0.25rem; }
.issue-item::before { content: "\26A0"; flex-shrink: 0; color: #f59e0b; font-size: 0.75rem; }
@keyframes scoreReveal { 0% { opacity: 0; transform: scale(0.5); } 60% { transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }
.score-reveal { animation: scoreReveal 0.5s ease-out forwards; }
.bg-orange-50 { background-color: #fff7ed; }
.border-primaryorange { border-color: #f97316; }

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; }
    .animate-fadeIn { animation: none; }
    .score-reveal { animation: none; }
    .score-bar-fill { transition: none; }
    .btn-primary,
    .btn-secondary,
    .nav-pill-cta,
    .back-bar-link,
    .back-bar-link svg,
    .footer-social a,
    .footer-links a,
    .footer-bottom-links a { transition: none; }
    .btn-primary:hover,
    .nav-pill-cta:hover,
    .footer-social a:hover,
    .back-bar-link:hover { transform: none; }
}

/* ── Accessibility: keyboard focus rings ── */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-pill-cta:focus-visible,
.back-bar-link:focus-visible,
.footer-social a:focus-visible,
.footer-links a:focus-visible,
.footer-bottom-links a:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
