/* ============================================
   SEO/GEO Landing Pages — Sisteco
   Uses CSS custom properties from style.css
   ============================================ */

/* Screen reader only — visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero overrides for SEO pages */
.seo-hero {
    position: relative;
    overflow: hidden;
}

.seo-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.seo-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.seo-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--color-accent);
    top: -150px;
    right: -100px;
}

.seo-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    bottom: -200px;
    left: -100px;
    opacity: 0.08;
}

/* Video section */
.seo-video-section {
    padding: 2rem 0 3rem;
}

.video-embed-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #fff;
}

.video-embed-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}

.video-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #666;
    background: linear-gradient(135deg, #f0f0f0 0%, #fafafa 100%);
}

.video-placeholder i {
    width: 64px;
    height: 64px;
    color: var(--color-accent);
}

.video-placeholder p {
    font-size: 0.95rem;
    max-width: 300px;
    text-align: center;
}

/* Content sections */
.seo-section {
    padding: 4rem 0;
}

.seo-section--alt {
    background: #fff;
}

/* Alternate section background for nested cards */
.seo-section--alt .seo-feature-card,
.seo-section--alt .seo-stat,
.seo-section--alt .seo-col-card,
.seo-section--alt .seo-faq-item,
.seo-section--alt .docs-layer,
.seo-section--alt .docs-scoring-detail,
.seo-section--alt .docs-stack-category {
    background: var(--color-bg);
}

.seo-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    background: rgba(197, 237, 54, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.seo-content-block {
    max-width: 720px;
    margin-bottom: 3rem;
}

.seo-content-block h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.seo-content-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

/* Feature grid */
.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.seo-features-grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.seo-feature-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.seo-feature-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(197, 237, 54, 0.1);
}

.seo-feature-card--risk {
    border-color: #e5c5c5;
}

.seo-feature-card--risk:hover {
    border-color: #d4a0a0;
    box-shadow: 0 4px 20px rgba(200, 100, 100, 0.08);
}

.seo-feature-card--risk i {
    color: #c57a7a;
}

.seo-feature-icon {
    margin-bottom: 1rem;
}

.seo-feature-icon i {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.seo-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.seo-feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Score badges */
.seo-score-badge {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.seo-score-hot .seo-score-badge { color: #22c55e; }
.seo-score-warm .seo-score-badge { color: #eab308; }
.seo-score-nurture .seo-score-badge { color: #f97316; }
.seo-score-skip .seo-score-badge { color: #94a3b8; }

.seo-score-hot { border-color: #22c55e; }
.seo-score-warm { border-color: #eab308; }
.seo-score-nurture { border-color: #f97316; }
.seo-score-skip { border-color: #94a3b8; }

/* Stats grid */
.seo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.seo-stat {
    text-align: center;
    padding: 2rem 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.seo-stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.seo-stat-label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Comparison table */
.seo-comparison-table {
    overflow-x: auto;
    margin-top: 2rem;
}

.seo-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.seo-comparison-table th,
.seo-comparison-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.seo-comparison-table thead th {
    font-weight: 600;
    color: var(--color-text-main);
    background: #fff;
    position: sticky;
    top: 0;
}

.seo-comparison-table td.highlight,
.seo-comparison-table th.highlight {
    background: rgba(197, 237, 54, 0.08);
    font-weight: 600;
    color: var(--color-text-main);
}

.seo-comparison-table tbody tr:hover {
    background: rgba(197, 237, 54, 0.04);
}

/* Two-column layout */
.seo-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.seo-col-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 2rem;
}

.seo-col-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.seo-col-card h3 i {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.seo-col-card ul {
    list-style: none;
    padding: 0;
}

.seo-col-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

.seo-col-card li:last-child {
    border-bottom: none;
}

/* FAQ */
.seo-faq {
    max-width: 720px;
}

.seo-faq-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.seo-faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seo-faq-item summary::before {
    content: '+';
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.seo-faq-item[open] summary::before {
    transform: rotate(45deg);
}

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

.seo-faq-item p {
    padding: 0 1.5rem 1.25rem 3rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* ============================================
   Docs / Technical Documentation styles
   ============================================ */

.docs-hero {
    min-height: auto;
}

.docs-toc-section {
    padding: 2rem 0 0;
}

.docs-toc {
    max-width: 720px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 2rem;
}

.docs-toc h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.docs-toc ol {
    padding-left: 1.5rem;
}

.docs-toc li {
    padding: 0.4rem 0;
}

.docs-toc a {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.docs-toc a:hover {
    color: var(--color-accent-hover);
}

/* Docs content */
.docs-content {
    max-width: 800px;
}

.docs-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.docs-content h3 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.docs-content h4 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.docs-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 1rem;
}

.docs-content ul,
.docs-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.docs-content li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 0.4rem;
}

.docs-content code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: rgba(197, 237, 54, 0.1);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--color-text-main);
}

.docs-content em {
    color: #666;
    font-style: italic;
}

/* Architecture layers */
.docs-architecture {
    margin-top: 2rem;
}

.docs-layer {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.75rem 2rem;
    margin-bottom: 1rem;
}

.docs-layer h3 {
    margin-top: 0;
    font-size: 1.15rem;
}

.docs-layer p {
    font-size: 0.95rem;
}

.docs-layer ul,
.docs-layer ol {
    padding-left: 1.25rem;
}

.docs-layer li {
    font-size: 0.9rem;
}

/* Scoring detail */
.docs-scoring-detail {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 2rem;
    margin: 1.5rem 0;
}

.docs-scoring-detail h4 {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.docs-scoring-detail h4:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Classification */
.docs-classification p {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

/* Stack grid */
.docs-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.docs-stack-category {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

.docs-stack-category h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-stack-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-stack-category li {
    font-size: 0.9rem;
    padding: 0.35rem 0;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.docs-stack-category li:last-child {
    border-bottom: none;
}

/* ============================================
   Responsive
   ============================================ */

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

    .seo-features-grid,
    .seo-two-col,
    .docs-stack-grid {
        grid-template-columns: 1fr;
    }

    .seo-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-comparison-table {
        font-size: 0.85rem;
    }

    .seo-comparison-table th,
    .seo-comparison-table td {
        padding: 0.75rem;
    }

    .docs-layer {
        padding: 1.25rem;
    }

    .docs-scoring-detail {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .seo-stats-grid {
        grid-template-columns: 1fr;
    }

    .video-embed-wrapper {
        border-radius: 8px;
    }
}
