/* ============================================
   MERIDIAN — PM Tool Comparison & Guide
   Shared Styles
   ============================================ */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-deep: #0b0b10;
    --bg-primary: #0f0f16;
    --bg-elevated: #16161f;
    --bg-card: #1a1a25;
    --bg-card-hover: #1f1f2c;
    --text-primary: #eaeaf0;
    --text-secondary: #9090a8;
    --text-muted: #606078;
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.12);
    --accent-soft: rgba(245, 158, 11, 0.7);
    --green: #10b981;
    --green-soft: rgba(16, 185, 129, 0.12);
    --red: #ef4444;
    --red-soft: rgba(239, 68, 68, 0.1);
    --blue: #3b82f6;
    --blue-soft: rgba(59, 130, 246, 0.1);
    --border: rgba(255,255,255,0.06);
    --border-accent: rgba(245, 158, 11, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 2px 20px rgba(0,0,0,0.3);
    --max-width: 1140px;
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   NAV
   ============================================ */
.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    padding: 0.9rem 1.5rem;
    background: rgba(11, 11, 16, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-brand .brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links .nav-cta {
    background: var(--accent);
    color: #0b0b10;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background var(--transition), transform var(--transition);
}
.nav-links .nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: #0b0b10;
}
.btn-primary:hover { background: var(--accent-hover); color: #0b0b10; transform: translateY(-1px); }
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 5rem 0; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 700px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: all var(--transition);
}
.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

/* ============================================
   TOOL CARDS (used on landing + compare)
   ============================================ */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.tool-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.tool-card .tool-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.tool-card .tool-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}
.tool-card .tool-name {
    font-size: 1.15rem;
    font-weight: 600;
}
.tool-card .tool-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.tool-card .tool-price {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.tool-card .tool-price strong {
    color: var(--accent);
    font-size: 1.15rem;
}
.tool-card .tool-best-for {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
}
.tool-card .tool-best-for strong { color: var(--text-primary); }
.tool-card .tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
}

/* AI Badge */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.ai-badge.ai-strong { background: var(--green-soft); color: var(--green); }
.ai-badge.ai-growing { background: var(--blue-soft); color: var(--blue); }
.ai-badge.ai-emerging { background: var(--accent-glow); color: var(--accent); }

/* ============================================
   PRICING TABLES
   ============================================ */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.9rem;
}
.pricing-table th {
    background: var(--bg-elevated);
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.pricing-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: rgba(255,255,255,0.02); }
.pricing-table .price-highlight { color: var(--accent); font-weight: 600; }

/* ============================================
   PROS / CONS
   ============================================ */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pros-list, .cons-list { list-style: none; }
.pros-list li, .cons-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.pros-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--green);
}
.cons-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--red);
}

/* ============================================
   VERDICT / RATING
   ============================================ */
.verdict-box {
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 2rem;
}
.verdict-box h3 { color: var(--accent); margin-bottom: 0.75rem; }

.rating-bar {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.35rem 0;
}
.rating-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--accent);
    transition: width 0.6s ease;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    list-style: none;
}
.footer-links a { font-size: 0.85rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(245, 158, 11, 0.06) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    text-align: center;
    margin: 2rem 0;
}
.cta-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}
.cta-banner p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs span { color: var(--text-muted); }

/* ============================================
   COMPARISON TABLE (compare page)
   ============================================ */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.compare-table th {
    background: var(--bg-elevated);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 60px;
    z-index: 10;
}
.compare-table th:last-child { border-right: none; }
.compare-table th:first-child { text-align: left; }
.compare-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    vertical-align: top;
}
.compare-table td:last-child { border-right: none; }
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-width: 160px;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,0.015); }
.compare-table tr:hover td:first-child { background: rgba(255,255,255,0.03); }
.compare-table .check { color: var(--green); }
.compare-table .cross { color: var(--red); }
.compare-table .partial { color: var(--accent); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .pros-cons { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 11, 16, 0.98);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    section { padding: 3.5rem 0; }
    .section-title { font-size: 1.6rem; }
    .cta-banner { padding: 2.5rem 1.5rem; }
    .cta-banner h2 { font-size: 1.4rem; }
    .compare-table { font-size: 0.8rem; }
    .compare-table th, .compare-table td { padding: 0.6rem 0.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .site-nav { padding: 0.8rem 1rem; }
}

/* ============================================
   UTILITY
   ============================================ */
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
