/* "<Competitor> alternative" pages (/compare/). Visual language matches the
   niche landing pages (pages/templates/niche_landing.html). */

:root {
    --primary: #FF4500;
    --primary-dark: #D93A00;
    --black: #0D0D0D;
    --text: #1a1a1a;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg-light: #f8f9fb;
    --card: #fff;
    --yes: #16A34A;
    --yes-bg: rgba(22,163,74,.1);
    --partial: #B45309;
    --partial-bg: rgba(245,158,11,.14);
    --no: #9CA3AF;
    --no-bg: rgba(156,163,175,.14);
}

:root[data-theme="dark"] {
    --black: #F2F2F2;
    --text: #F2F2F2;
    --muted: #898C93;
    --border: #2C2F36;
    --bg-light: #15171C;
    --card: #1A1C22;
    --partial: #F59E0B;
    --no: #6B7280;
}
:root[data-theme="dark"] body { background: #0D0E12; }
:root[data-theme="dark"] .nav-bar { background: rgba(13,14,18,.95); }
:root[data-theme="dark"] .hero-eyebrow { background: var(--card); }
:root[data-theme="dark"] .cta-band { background: #15171C; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: #fff; }

/* NAV */
.nav-bar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); padding: 14px 0;
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: 'Poppins', sans-serif; font-weight: 800;
    font-size: 1.2rem; color: var(--black); text-decoration: none;
}
.nav-logo span { color: var(--primary); }
.nav-cta {
    background: var(--primary); color: #fff; padding: 9px 22px; border-radius: 8px;
    font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff; }

/* HERO */
.hero {
    background: var(--bg-light); border-bottom: 1px solid var(--border);
    padding: 72px 24px 64px; text-align: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px;
    font-size: .8rem; font-weight: 600; color: var(--primary);
    margin-bottom: 20px; letter-spacing: .03em; text-transform: uppercase;
}
.hero h1 {
    font-family: 'Poppins', sans-serif; font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2;
    color: var(--black); max-width: 820px; margin: 0 auto 20px;
}
.hero-intro {
    font-size: 1.05rem; color: var(--muted); max-width: 680px;
    margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: var(--primary); color: #fff; padding: 13px 32px; border-radius: 10px;
    font-size: 1rem; font-weight: 700; text-decoration: none;
    transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
    background: transparent; color: var(--black); border: 1.5px solid var(--border);
    padding: 13px 28px; border-radius: 10px; font-size: 1rem; font-weight: 600;
    text-decoration: none; transition: border-color .2s;
}
.btn-ghost:hover { border-color: #9ca3af; color: var(--black); }

/* SECTIONS */
.content-wrap { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.block { margin-bottom: 72px; }
.section-label {
    font-size: .78rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.section-title {
    font-family: 'Poppins', sans-serif; font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--black);
    margin-bottom: 8px; line-height: 1.3;
}
.section-subtitle { color: var(--muted); font-size: .95rem; margin-bottom: 32px; line-height: 1.6; }

/* VERDICT */
.verdict-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.verdict-card {
    background: var(--card); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 28px 24px;
}
.verdict-card.us { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,69,0,.08); }
.verdict-card h3 {
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem;
    color: var(--black); margin-bottom: 14px;
}
.verdict-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.verdict-card li { display: flex; gap: 10px; font-size: .92rem; line-height: 1.5; color: var(--text); }
.verdict-card li i { margin-top: 4px; font-size: .8rem; flex-shrink: 0; color: var(--muted); }
.verdict-card.us li i { color: var(--primary); }

/* TABLE */
.table-wrap {
    border: 1.5px solid var(--border); border-radius: 14px;
    overflow-x: auto; background: var(--card);
}
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp-table th, .cmp-table td {
    padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border);
    font-size: .9rem; vertical-align: top;
}
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table thead th {
    font-family: 'Poppins', sans-serif; font-size: .85rem; font-weight: 700;
    color: var(--black); background: var(--bg-light);
}
.cmp-table thead th.us { color: var(--primary); }
.cmp-table td:first-child { color: var(--text); font-weight: 500; width: 46%; }
.cmp-table td.us { background: rgba(255,69,0,.03); }
.cmp-status {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
    border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.cmp-status.yes { color: var(--yes); background: var(--yes-bg); }
.cmp-status.partial { color: var(--partial); background: var(--partial-bg); }
.cmp-status.no { color: var(--no); background: var(--no-bg); }
.cmp-note { display: block; margin-top: 5px; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.cmp-summary { font-size: .85rem; color: var(--muted); margin-top: 14px; line-height: 1.6; }

/* DIFFERENCES */
.diff-list { display: flex; flex-direction: column; }
.diff-item { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.diff-item:last-child { border-bottom: none; }
.diff-num {
    flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-light); border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--primary);
}
.diff-item h3 {
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem;
    color: var(--black); margin-bottom: 6px;
}
.diff-item p { font-size: .92rem; color: var(--muted); line-height: 1.65; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--card); border: 1.5px solid var(--border);
    border-radius: 12px; padding: 20px 22px;
}
.faq-item h3 { font-size: .98rem; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.faq-item p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* CARDS (index + related) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cmp-card {
    display: block; background: var(--card); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 22px; text-decoration: none; color: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.cmp-card:hover { border-color: var(--primary); box-shadow: 0 6px 24px rgba(0,0,0,.07); color: inherit; }
.cmp-card .vs { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.cmp-card h3 {
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.02rem;
    color: var(--black); margin: 6px 0 8px; line-height: 1.35;
}
.cmp-card p { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.cmp-card .more { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 700; color: var(--primary); }

/* CTA */
.cta-band { background: #0D0D0D; border-radius: 20px; padding: 56px 40px; text-align: center; }
.cta-band h2 {
    font-family: 'Poppins', sans-serif; font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 12px;
}
.cta-band p { color: rgba(255,255,255,.6); font-size: .95rem; margin-bottom: 32px; }
.cta-subtext { color: rgba(255,255,255,.4) !important; font-size: .8rem !important; margin: 14px 0 0 !important; }

.disclaimer { font-size: .78rem; color: var(--muted); line-height: 1.6; margin-top: 40px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { font-size: .85rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: .8rem; color: #9ca3af; }

.theme-toggle-fab {
    position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none; display: flex; align-items: center;
    justify-content: center; font-size: 1.1rem; box-shadow: 0 3px 10px rgba(0,0,0,.3);
    cursor: pointer; z-index: 2000;
}

@media (max-width: 640px) {
    .hero { padding: 48px 16px 40px; }
    .content-wrap { padding: 40px 16px; }
    .cta-band { padding: 40px 20px; }
    .diff-item { gap: 16px; }
    .cmp-table th, .cmp-table td { padding: 12px 14px; }
}
