/* ==========================================================================
   SEO Pages CSS - Scoped styles for SEO content pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout & Container
   -------------------------------------------------------------------------- */

.seo-page {
    margin: 0;
    padding: 0;
}

.seo-page main {
    background: var(--background);
}

.seo-page .section {
    padding: 4rem 0;
}

.seo-page .section:first-child {
    padding-top: 6rem;
    /* account for fixed header */
}

/* --------------------------------------------------------------------------
   Typography — scaled down from index hero sizes
   -------------------------------------------------------------------------- */

.seo-page h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

@media (min-width: 640px) {
    .seo-page h1 {
        font-size: 2.125rem;
    }
}

@media (min-width: 1024px) {
    .seo-page h1 {
        font-size: 2.5rem;
    }
}

.seo-page h2 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .seo-page h2 {
        font-size: 1.5rem;
    }
}

.seo-page h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.seo-page h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.seo-page p,
.seo-page summary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.seo-page p:last-child {
    margin-bottom: 0px;
}

.seo-page li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}


.seo-page .lead {
    font-size: 0.9375rem;
    max-width: 42rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.seo-page .caption {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Section utilities
   -------------------------------------------------------------------------- */

.seo-page .center {
    text-align: center;
}

.seo-page .border-top {
    border-top: 1px solid var(--border-color);
}

.seo-page .section-soft {
    background: var(--background-secondary);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.seo-page .btn-row {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Hero Grid Layout
   -------------------------------------------------------------------------- */

.seo-page .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .seo-page .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.seo-page .hero-grid>div:last-child {
    position: relative;
    z-index: 1;
}

/* Ambient glow behind hero visual */
.seo-page .hero-grid>div:last-child::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, hsl(0 0% 9% / 0.05) 0%, transparent 65%);
    filter: blur(30px);
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Placeholder / Visual Box (hero right side)
   -------------------------------------------------------------------------- */

.seo-page .placeholder-box {
    min-height: 260px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, hsl(0 0% 99%) 0%, hsl(0 0% 96%) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 2px 0 rgba(0, 0, 0, 0.04),
        0 8px 24px -8px rgba(0, 0, 0, 0.08);
}

/* Decorative grid pattern overlay */
.seo-page .placeholder-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(hsl(0 0% 88% / 0.4) 1px, transparent 1px),
        linear-gradient(90deg, hsl(0 0% 88% / 0.4) 1px, transparent 1px);
    background-size: 28px 28px;
    border-radius: inherit;
}

/* Two brand pills shown in the box */
.seo-page .placeholder-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, hsl(0 0% 97%), transparent);
    border-radius: 0 0 17px 17px;
}

.seo-page .placeholder-box-inner {
    position: relative;
    z-index: 1;
}

.seo-page .placeholder-vs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.seo-page .placeholder-vs .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.seo-page .placeholder-vs .pill-dark {
    background: hsl(0 0% 9%);
    color: white;
}

.seo-page .placeholder-vs .pill-light {
    background: white;
    color: hsl(0 0% 9%);
    border: 1px solid var(--border-color);
}

.seo-page .placeholder-vs .vs-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

/* Stats row inside placeholder */
.seo-page .placeholder-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.seo-page .placeholder-stat {
    text-align: center;
}

.seo-page .placeholder-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.seo-page .placeholder-stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   Card Grid
   -------------------------------------------------------------------------- */

.seo-page .card-grid {
    display: grid;
    gap: 1rem;
}

.seo-page .card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-page .card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* --------------------------------------------------------------------------
   Base Card
   -------------------------------------------------------------------------- */

.seo-page .card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
}

.seo-page .muted-card {
    background: var(--background-secondary);
}

/* --------------------------------------------------------------------------
   Comparison Cards (Side-by-Side)
   -------------------------------------------------------------------------- */

/* Competitor card — subdued, uses red X icons */
.seo-page .card.muted-card {
    opacity: 0.9;
}

.seo-page .card.muted-card h3 {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* FapiHub "winner" card */
.seo-page .dark-card {
    background: hsl(0 0% 9%);
    border-color: hsl(0 0% 9%);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.25);
}

.seo-page .dark-card h3 {
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.seo-page .dark-card li,
.seo-page .dark-card p {
    color: hsl(0 0% 75%);
}

/* --------------------------------------------------------------------------
   Checklist styles
   -------------------------------------------------------------------------- */

.seo-page ul {
    margin-bottom: 1.5rem;
}

.seo-page .checklist {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    padding-left: 0;
}

/* Specific Prerequisites styling to fix "sick" padding/margins */
.seo-page .prereq-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 2rem 0;
    display: grid;
    gap: 0.375rem;
}

.seo-page .prereq-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.seo-page .prereq-list li::before {
    content: '•';
    position: absolute;
    left: 0.25rem;
    color: var(--text-muted);
    font-weight: 700;
}

.seo-page .checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Green check for normal cards */
.seo-page .card:not(.muted-card):not(.dark-card) .checklist li::before,
.seo-page .section-soft .card .checklist li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

/* Red X for muted (competitor) card */
.seo-page .muted-card .checklist li::before {
    content: '✕';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background: hsl(0 84% 95%);
    color: hsl(0 72% 51%);
    font-size: 0.5625rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

/* White check for dark (FapiHub) card */
.seo-page .dark-card .checklist li {
    color: hsl(0 0% 78%);
}

.seo-page .dark-card .checklist li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background: hsl(142 76% 36% / 0.2);
    color: hsl(142 76% 55%);
    font-size: 0.625rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   Link Cards (hover lift)
   -------------------------------------------------------------------------- */

.seo-page .link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.seo-page .link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: 14px 14px 0 0;
    transition: background 0.25s ease;
}

.seo-page .link-card:hover {
    border-color: hsl(0 0% 80%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.1);
}

.seo-page .link-card:hover::before {
    background: var(--gradient-primary);
}

/* --------------------------------------------------------------------------
   Pricing / Feature cards in three-col
   -------------------------------------------------------------------------- */

.seo-page .card-grid.three .card h3 {
    font-size: 1rem;
}

.seo-page .card-grid.three .card p {
    font-size: 0.875rem;
    margin-top: 0.375rem;
}

/* --------------------------------------------------------------------------
   Comparison Table
   -------------------------------------------------------------------------- */

.seo-page .table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    margin-bottom: 0.75rem;
}

.seo-page table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.seo-page thead th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--background-secondary);
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.seo-page tbody td {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.seo-page tbody tr:last-child td {
    border-bottom: none;
}

.seo-page .highlight-row {
    background: hsl(0 0% 98%);
}

.seo-page .highlight-row td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */

.seo-page .faq-list {
    display: grid;
    gap: 0.625rem;
}

.seo-page .faq-list details {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    padding: 0.875rem 1.125rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.seo-page .faq-list details:hover {
    border-color: hsl(0 0% 75%);
}

.seo-page .faq-list details[open] {
    border-color: hsl(0 0% 20%);
    box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.08);
}

.seo-page .faq-list summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    line-height: 1.4;
}

.seo-page .faq-list summary::-webkit-details-marker {
    display: none;
}

.seo-page .faq-list summary::after {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 4px;
}

.seo-page .faq-list details[open] summary::after {
    content: '';
    transform: rotate(-135deg);
}

.seo-page .faq-list details p {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.65;
    animation: fadeInDown 0.25s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Step Cards
   -------------------------------------------------------------------------- */

.seo-page .step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    padding: 1.125rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

.seo-page .step-number {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   Code Tabs + Panels
   -------------------------------------------------------------------------- */

.seo-page .code-tabs {
    display: flex;
    gap: 0.375rem;
    background: hsl(0 0% 13%);
    border: 1px solid hsl(0 0% 20%);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 0.625rem 1rem;
    margin: 1.5rem 0 0 0;
    position: relative;
    align-items: center;
}

.seo-page .code-tabs::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 17px 0 0 #ffbd2e, 34px 0 0 #27c93f;
    margin-right: 2.5rem;
}

.seo-page .tab-btn {
    border: none;
    background: transparent;
    color: hsl(0 0% 55%);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.seo-page .tab-btn:hover {
    color: hsl(0 0% 85%);
}

.seo-page .tab-btn.active {
    background: hsl(0 0% 22%);
    color: white;
}

.seo-page .code-panel {
    display: none;
}

.seo-page .code-panel.active {
    display: block;
}

.seo-page .code-panel pre {
    margin: 0 0 1.5rem 0 !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 0 0 10px 10px;
    background: hsl(0 0% 8%) !important;
    overflow-x: auto;
    border: 1px solid hsl(0 0% 18%);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.seo-page .copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.seo-page .copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.seo-page .copy-code-btn.copied {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.05);
}

.seo-page .copy-code-btn svg {
    width: 16px;
    height: 16px;
}

.seo-page .code-panel code {
    font-size: 0.8125rem !important;
    line-height: 1.6 !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    background: transparent !important;
    color: inherit !important;
}

/* Standalone code panel (without tabs) */
.seo-page .code-panel.active pre {
    border-radius: 10px;
    margin-top: 0.75rem !important;
}

/* Hide line numbers if prism adds them, ensure clean look */
.seo-page pre[class*="language-"] {
    margin: 1rem 0 !important;
    border-radius: 10px !important;
}

/* --------------------------------------------------------------------------
   CTA Dark Section
   -------------------------------------------------------------------------- */

.seo-page .cta-dark {
    background: hsl(0 0% 9%);
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid texture */
.seo-page .cta-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, hsl(0 0% 100% / 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.seo-page .cta-dark .container {
    position: relative;
    z-index: 1;
}

.seo-page .cta-dark h2,
.seo-page .cta-dark p {
    color: white;
}

.seo-page .cta-dark p {
    color: hsl(0 0% 65%);
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Article / Blog body
   -------------------------------------------------------------------------- */

.seo-page .article-wrap {
    max-width: 800px;
}

.seo-page .article-featured {
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.seo-page .article-wrap>.caption {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.seo-page .article-body {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.seo-page .article-body h2,
.seo-page .article-body h3 {
    margin-top: 2rem;
}

.seo-page .article-body p,
.seo-page .article-body ul,
.seo-page .article-body ol {
    margin-bottom: 1.25rem;
}

.seo-page .article-body ul,
.seo-page .article-body ol {
    padding-left: 1.5rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .seo-page .card-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .seo-page .section {
        padding: 3rem 0;
    }

    .seo-page .section:first-child {
        padding-top: 5rem;
    }

    .seo-page .card-grid.two,
    .seo-page .card-grid.three {
        grid-template-columns: 1fr;
    }

    .seo-page .placeholder-box {
        min-height: 180px;
    }
}

/* --------------------------------------------------------------------------
   2026 SEO refresh overrides
   -------------------------------------------------------------------------- */

.seo-page .container {
    max-width: 60%;
    margin: 0 auto;
    padding: 0 24px;
}

.seo-page .header .header-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 10px;
}

.seo-page .site-footer>.container {
    max-width: 1024px;
    padding: 0 1rem;
}


.seo-page .section {
    padding: 80px 0;
}

.seo-page .section:first-child {
    padding-top: 104px;
}

.seo-page h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.12;
}

.seo-page .hero-grid {
    grid-template-columns: 55% 45%;
    align-items: flex-start;
}

.seo-page .use-case-badge {
    display: inline-flex;
    align-items: center;
    background: #0a0a0a;
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.seo-page .quick-savings-card,
.seo-page .stats-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px;
}

.seo-page .quick-savings-title {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    margin-bottom: 14px;
}

.seo-page .quick-savings-highlight {
    font-size: 15px;
    color: #0a0a0a;
    font-weight: 600;
    margin: 12px 0 16px;
}

.seo-page .quick-savings-cta {
    width: 100%;
}

.seo-page .compare-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 2px;
}

.seo-page .compare-header p {
    font-size: 12px;
    color: #888;
}

.seo-page .compare-header-dark h3 {
    color: #fff;
    display: inline-flex;
    margin-right: 8px;
}

.seo-page .best-value-pill {
    display: inline-flex;
    font-size: 11px;
    color: #fff;
    background: #16a34a;
    border-radius: 20px;
    padding: 3px 10px;
    vertical-align: middle;
}

.seo-page .compare-header-dark p {
    color: #aaa;
    margin-top: 6px;
}

.seo-page .compare-divider {
    border-top: 1px solid #e5e5e5;
    margin: 14px 0 2px;
}

.seo-page .compare-divider-dark {
    border-top-color: #333;
}

.seo-page .compare-rows {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-page .compare-rows li {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.seo-page .compare-rows-fapihub li {
    border-bottom-color: #1a1a1a;
}

.seo-page .compare-rows .row-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.seo-page .compare-rows-competitor .row-icon {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.seo-page .compare-rows-fapihub .row-icon {
    color: #22c55e;
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.seo-page .row-icon-negative::before {
    content: '×';
}

.seo-page .row-icon-positive::before {
    content: '✓';
}

.seo-page .compare-rows .row-label {
    font-size: 14px;
    color: #555;
}

.seo-page .compare-rows .row-value {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    color: #0a0a0a;
}

.seo-page .compare-rows-fapihub .row-label {
    color: #aaa;
}

.seo-page .compare-rows-fapihub .row-value {
    color: #fff;
}

.seo-page .before-after-grid {
    margin-bottom: 8px;
}

.seo-page .before-panel,
.seo-page .after-panel {
    border-radius: 12px;
    padding: 20px;
}

.seo-page .before-panel {
    background: #f7f7f8;
    border: 1px solid #e5e5e5;
}

.seo-page .after-panel {
    background: linear-gradient(180deg, #f3fbf6 0%, #eef9f2 100%);
    border: 1px solid #86efac;
}

.seo-page .code-label {
    display: inline-block;
    font-size: 11px;
    border-radius: 999px;
    background: #e9e9eb;
    color: #4b5563;
    padding: 3px 10px;
    margin-bottom: 8px;
}

.seo-page .code-label.fapihub {
    background: #166534;
    color: #dcfce7;
}

.seo-page .before-panel h3,
.seo-page .after-panel h3 {
    color: #111827;
    margin-bottom: 10px;
}

.seo-page .before-panel pre,
.seo-page .after-panel pre {
    margin: 0;
    border-radius: 8px;
    border: 1px solid #1f2937;
}

.seo-page .code-tabs {
    justify-content: space-between;
    border: 1px solid hsl(var(--idx-border));
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: hsl(var(--idx-muted) / 0.5);
    padding: 0 1rem;
}

.seo-page .code-tabs::before {
    display: none;
}

.seo-page .tab-btn {
    font-size: 0.875rem;
    color: hsl(var(--idx-muted-foreground));
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.seo-page .tab-btn.active {
    background: transparent;
    color: hsl(var(--idx-primary));
    border-bottom-color: hsl(var(--idx-primary));
}

.seo-page .quick-savings-card .table-wrap {
    border: none;
    margin-bottom: 0;
    overflow-x: hidden;
}

.seo-page .quick-savings-card table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
}

.seo-page .quick-savings-card thead th,
.seo-page .quick-savings-card tbody td {
    padding: 8px 6px;
    font-size: 12px;
    white-space: normal;
    word-break: break-word;
}

.seo-page .link-card:hover {
    transform: none;
}


.seo-page .faq-list {
    max-width: 48rem;
    margin: 0 auto;
}

.seo-page .faq-list details {
    background: hsl(var(--idx-card));
    border: 1px solid hsl(var(--idx-border));
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 0;
}

.seo-page .faq-list details[open] {
    border-color: hsl(var(--idx-border));
    background: hsl(var(--idx-muted) / 0.5);
    box-shadow: none;
}

.seo-page .faq-list summary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
}

.seo-page .faq-list summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid hsl(var(--idx-muted-foreground));
    border-bottom: 2px solid hsl(var(--idx-muted-foreground));
    background: transparent;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 4px;
}

.seo-page .faq-list details[open] summary::after {
    content: '';
    transform: rotate(-135deg);
}

.seo-page .faq-list details p {
    margin-top: 0;
    padding: 0 1.5rem 1.25rem;
    border-top: none;
    color: hsl(var(--idx-muted-foreground));
}

.seo-page .stats-card .stat-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.seo-page .stats-card .stat-item:last-child {
    border-bottom: none;
}

.seo-page .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #0a0a0a;
}

.seo-page .stat-label {
    font-size: 13px;
    color: #888;
}

.seo-page .solution-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    margin-bottom: 8px;
}

.seo-page .solution-icon svg {
    width: 18px;
    height: 18px;
}

.seo-page .card-grid.four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.seo-page .pricing-plan.plan-highlight {
    border: 2px solid #0a0a0a;
}

.seo-page .plan-price {
    color: #0a0a0a;
    font-weight: 700;
    margin: 6px 0 2px;
}

.seo-page .plan-requests {
    font-weight: 500;
    color: #333;
}

.seo-page .pricing-plan .btn {
    margin-top: 10px;
    width: 100%;
}

.seo-page .blog-header-divider {
    border-bottom: 1px solid #e5e5e5;
    margin: 12px 0 48px;
}

.seo-page .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.seo-page .blog-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    transition: all 0.25s ease;
}

.seo-page .blog-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.seo-page .blog-link-card:hover {
    border-color: #aaa;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.12);
}

.seo-page .read-more-btn {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.2s ease;
}

.seo-page .blog-link-card:hover .read-more-btn {
    color: #0a0a0a;
}

.seo-page .blog-image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f4f4f4;
}

.seo-page .blog-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seo-page .blog-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: #888;
    font-size: 14px;
}

.seo-page .blog-card-content {
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.seo-page .blog-card .badge {
    font-size: 11px;
    border-radius: 20px;
    padding: 3px 10px;
    background: #0a0a0a;
    color: #fff;
    display: inline-block;
    margin-bottom: 10px;
}

.seo-page .blog-card h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seo-page .blog-card-content>p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seo-page .blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.seo-page .blog-card-footer .caption {
    margin-top: 0;
}

.seo-page pre {
    position: relative;
    background: #111111 !important;
    color: #f8f8f2 !important;
    border-radius: 8px !important;
    padding: 20px 24px 18px !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #1f2937;
    scrollbar-gutter: stable;
}

.seo-page pre::-webkit-scrollbar {
    height: 10px;
}

.seo-page pre::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 999px;
}

.seo-page pre::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
    border-radius: 999px;
    border: 2px solid #1f2937;
}

.seo-page pre::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
}

.seo-page .copy-code-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
}

.seo-page .step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 14px;
    font-weight: 700;
}

.seo-page .step-card h3 {
    font-size: 20px;
    font-weight: 600;
}

.seo-page .step-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* ==========================================================================
   Comparison Feature Table
   ========================================================================== */

.seo-page .comparison-table-wrapper {
    margin: 1.5rem 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    background: white;
}

.seo-page .feature-table {
    width: 100%;
    border-collapse: collapse;
}

.seo-page .feature-table th {
    padding: 0.625rem 0.875rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    background: var(--background-secondary);
}

.seo-page .feature-table td {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.seo-page .feature-table tr:last-child td {
    border-bottom: none;
}

/* Feature column */
.seo-page .feature-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--background-secondary);
}

/* Values */
.seo-page .feature-table .competitor-value {
    color: var(--text-secondary);
}

.seo-page .feature-table .fapihub-value {
    font-weight: 500;
}

.seo-page .feature-table .fapihub-header {
    color: var(--text-primary) !important;
}

.seo-page .best-value-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    background: hsl(142 76% 36%);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Icons */
.seo-page .row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
}

.seo-page .row-icon-negative {
    background: hsl(0 84% 95%);
    color: hsl(0 72% 51%);
}

.seo-page .row-icon-negative::before {
    content: '✕';
}

.seo-page .row-icon-positive {
    background: hsl(142 76% 55% / 0.15);
    color: hsl(142 76% 55%);
}

.seo-page .row-icon-positive::before {
    content: '✓';
}

@media (max-width: 640px) {
    .seo-page .comparison-table-wrapper {
        overflow-x: auto;
    }
    .seo-page .feature-table {
        min-width: 500px;
    }
    .seo-page .feature-table td,
    .seo-page .feature-table th {
        padding: 0.875rem 1rem;
    }
}


@media (max-width: 1024px) {
    .seo-page .card-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .seo-page .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .seo-page .container {
        padding: 0 16px;
    }

    .seo-page .section {
        padding: 48px 0;
    }

    .seo-page .section:first-child {
        padding-top: 88px;
    }

    .seo-page .hero-grid {
        grid-template-columns: 1fr;
    }

    .seo-page .card-grid.two,
    .seo-page .card-grid.three,
    .seo-page .card-grid.four,
    .seo-page .blog-grid {
        grid-template-columns: 1fr;
    }

    .seo-page .btn-row .btn {
        width: 100%;
    }

    .seo-page .quick-savings-card thead th,
    .seo-page .quick-savings-card tbody td {
        font-size: 11px;
        padding: 7px 5px;
    }

    .seo-page .article-featured {
        margin-bottom: 1.25rem;
    }

    .seo-page .article-wrap>.caption {
        margin-bottom: 1.25rem;
    }

    .seo-page .blog-card-content {
        padding: 18px 18px 16px;
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .seo-page .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Prism.js Syntax Highlighting Tokens
   -------------------------------------------------------------------------- */

.seo-page .token.comment,
.seo-page .token.prolog,
.seo-page .token.doctype,
.seo-page .token.cdata {
    color: #6a737d;
}

.seo-page .token.punctuation {
    color: #e1e4e8;
}

.seo-page .token.namespace {
    opacity: .7;
}

.seo-page .token.property,
.seo-page .token.tag,
.seo-page .token.boolean,
.seo-page .token.number,
.seo-page .token.constant,
.seo-page .token.symbol,
.seo-page .token.deleted {
    color: #79b8ff;
}

.seo-page .token.selector,
.seo-page .token.attr-name,
.seo-page .token.string,
.seo-page .token.char,
.seo-page .token.builtin,
.seo-page .token.inserted {
    color: #9ecbff;
}

.seo-page .token.operator,
.seo-page .token.entity,
.seo-page .token.url,
.seo-page .language-css .token.string,
.seo-page .style .token.string {
    color: #ffab70;
}

.seo-page .token.atrule,
.seo-page .token.attr-value,
.seo-page .token.keyword {
    color: #f97583;
}

.seo-page .token.function,
.seo-page .token.class-name {
    color: #b392f0;
}

.seo-page .token.regex,
.seo-page .token.important,
.seo-page .token.variable {
    color: #ffab70;
}