/* ═══════════════════════════════════════════════════════════════════
   SignalStrike Marketing Pages — Shared Styles
   Extends signalstrike-v2.css for public marketing pages
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Hero Overrides (marketing-specific) ─── */
.ss-hero-marketing {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px 0;
}

/* ─── Hero Split Layout (text left, visual right) ─── */
.hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr 420px;
        gap: 64px;
    }
}

.ss-hero-marketing .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* ─── Hero App Preview Window ─── */
.hero-visual {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .hero-visual {
        display: block;
    }
}

.hero-app-window {
    background: rgba(8, 13, 24, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: heroWindowFloat 8s ease-in-out infinite;
}

@keyframes heroWindowFloat {
    0%, 100% { transform: translateY(0) rotate(0.5deg); }
    50% { transform: translateY(-6px) rotate(-0.5deg); }
}

.hero-app-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-app-dots {
    display: flex;
    gap: 6px;
}

.hero-app-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.hero-app-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.hero-app-body {
    padding: 16px;
}

.hero-app-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.hero-app-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.3px;
}

.hero-app-pill-active {
    color: white;
    background: rgba(30, 136, 229, 0.3);
    border-color: rgba(30, 136, 229, 0.5);
}

.hero-app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.hero-app-table thead th {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 8px 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.hero-app-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.hero-app-table tbody td strong {
    color: white;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hero-app-table tbody tr:last-child td {
    border-bottom: none;
}

.hero-app-rank {
    color: rgba(255, 255, 255, 0.25) !important;
    font-weight: 600 !important;
    width: 24px;
}

.hero-app-score {
    display: inline-block;
    background: rgba(30, 136, 229, 0.15);
    color: #60a5fa;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 11px;
}

.hero-app-pos {
    color: #4ade80 !important;
    font-weight: 600 !important;
}

.hero-app-neg {
    color: #f87171 !important;
    font-weight: 600 !important;
}

.hero-app-badge-add {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
}

.hero-app-badge-in {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.hero-app-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-app-rebalance-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 4px;
    background: linear-gradient(135deg, #0A2463 0%, #1E88E5 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
    letter-spacing: 0.3px;
}

.ss-hero-marketing h1 {
    font-size: 3.2rem;
    margin-bottom: 24px;
}

.ss-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    max-width: 640px;
    margin-bottom: 40px;
    font-weight: 300;
}

.ss-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ss-hero-buttons .ss-btn-primary,
.ss-hero-buttons .ss-btn-white {
    padding: 14px 32px;
    font-size: 15px;
}

@media (max-width: 767px) {
    .ss-hero-marketing {
        min-height: auto;
        padding: 120px 0 60px 0;
    }

    .ss-hero-marketing h1 {
        font-size: 2.2rem;
    }

    .ss-hero-subtitle {
        font-size: 15px;
    }

    .ss-hero-buttons {
        flex-direction: column;
    }

    .ss-hero-buttons a {
        text-align: center;
    }
}

/* ─── Trust Strip (stats bar below hero) ─── */
.ss-trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-top: 40px;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .ss-trust-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .ss-trust-strip {
        grid-template-columns: repeat(5, 1fr);
    }
}

.ss-trust-item .ss-stat-value {
    color: white;
    font-size: 1.5rem;
}

.ss-trust-item.is-gold .ss-stat-value {
    color: var(--ss-gold);
}

.ss-trust-item .ss-label {
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
    display: block;
}

/* ─── Section Headers ─── */
.ss-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.ss-section-header .ss-label {
    margin-bottom: 16px;
    display: block;
}

.ss-section-header h2 {
    font-family: var(--ss-font-headline);
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--ss-text);
    margin-bottom: 16px;
    line-height: 1.15;
}

.ss-section-header p {
    font-size: 16px;
    color: var(--ss-muted);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 767px) {
    .ss-section-header h2 {
        font-size: 1.7rem;
    }
}

/* ─── Audience Fork Cards ─── */
.ss-audience-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .ss-audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ss-audience-card {
    padding: 40px;
    position: relative;
}

.ss-audience-card h3 {
    font-family: var(--ss-font-headline);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ss-text);
    margin-bottom: 20px;
}

.ss-audience-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.ss-audience-card ul li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--ss-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.ss-audience-card ul li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--ss-accent);
    border-radius: 50%;
    margin-top: 7px;
}

/* ─── Step Cards (How It Works) ─── */
.ss-steps-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .ss-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ss-step-card {
    padding: 32px;
    text-align: center;
}

.ss-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ss-gradient);
    color: white;
    font-family: var(--ss-font-headline);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.ss-step-card h3 {
    font-family: var(--ss-font-headline);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ss-text);
    margin-bottom: 12px;
}

.ss-step-card p {
    font-size: 14px;
    color: var(--ss-muted);
    line-height: 1.6;
    margin: 0;
}

/* ─── Feature Icon Box ─── */
.ss-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--ss-radius-card);
    background: var(--ss-gradient);
    color: white;
    font-size: 20px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.ss-icon-box-sm {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.ss-icon-box-gold {
    background: linear-gradient(135deg, #F5C518 0%, #C8960A 100%);
}

/* ─── CTA Section (gradient background) ─── */
.ss-cta-section {
    background: var(--ss-gradient);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.ss-cta-section .ss-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.ss-cta-section h2 {
    font-family: var(--ss-font-headline);
    font-weight: 700;
    font-size: 2rem;
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.ss-cta-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.ss-cta-section .ss-hero-buttons {
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* ─── Pricing Preview Grid ─── */
.ss-pricing-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .ss-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ss-pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ss-pricing-card {
    padding: 32px 28px;
    position: relative;
    text-align: center;
}

.ss-pricing-card h3 {
    font-family: var(--ss-font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--ss-text);
    margin-bottom: 8px;
}

.ss-pricing-amount {
    font-family: var(--ss-font-headline);
    font-weight: 700;
    font-size: 2rem;
    color: var(--ss-text);
    margin-bottom: 4px;
}

.ss-pricing-period {
    font-size: 13px;
    color: var(--ss-muted);
    margin-bottom: 20px;
}

.ss-pricing-card .ss-check-list {
    text-align: left;
    margin-bottom: 24px;
}

/* ─── Video Placeholder ─── */
.ss-video-placeholder {
    background: var(--ss-surface);
    border: 2px dashed var(--ss-border-strong);
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ss-video-placeholder i {
    font-size: 48px;
    color: var(--ss-muted);
    margin-bottom: 16px;
    display: block;
}

.ss-video-placeholder p {
    font-size: 15px;
    color: var(--ss-muted);
    margin: 0;
}

/* ─── Product Preview Placeholder ─── */
.ss-product-preview {
    background: var(--ss-surface);
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 36, 99, 0.08);
}

.ss-product-preview-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--ss-surface-alt);
    border-bottom: 1px solid var(--ss-border);
}

.ss-product-preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ss-product-preview-body {
    padding: 40px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ss-muted);
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT SHOWCASE — Tabbed feature tour on landing.html
   Premium, on-brand. Gold-accent active tabs (#C8960A flat — never
   gradient gold per BRAND-GUIDELINES.md). Smooth fade transitions
   between screenshots so the eye is never jarred. Auto-rotates at
   6s with hover-pause; respects prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════ */

.ss-showcase-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0 0 28px 0;
    padding: 0 12px;
}

.ss-showcase-tab {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ss-muted, #828796);
    background: transparent;
    border: 1.5px solid var(--ss-border, rgba(10, 36, 99, 0.09));
    border-radius: 4px;
    padding: 9px 18px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.ss-showcase-tab:hover {
    color: var(--ss-text, #0f1923);
    border-color: rgba(200, 150, 10, 0.45);
    background: rgba(200, 150, 10, 0.04);
}

.ss-showcase-tab.active {
    color: #8B5E04;                                /* gold-shadow text on gold tint */
    border-color: #C8960A;                         /* gold-mid solid (flat per brand) */
    background: rgba(200, 150, 10, 0.10);          /* --color-gold-soft */
    box-shadow: 0 0 0 3px rgba(200, 150, 10, 0.06);
}

.ss-showcase-tab:focus-visible {
    outline: 2px solid #C8960A;
    outline-offset: 2px;
}

/* The browser-window frame containing the screenshot stage */
.ss-showcase-frame {
    max-width: 1080px;
    margin: 0 auto;
    transition: box-shadow 0.25s ease;
}

.ss-showcase-frame:hover {
    box-shadow: 0 28px 80px rgba(10, 36, 99, 0.14);
}

.ss-showcase-url {
    margin-left: 12px;
    font-size: 11px;
    color: var(--ss-sub, #a8aab8);
    font-family: 'DM Sans', system-ui, sans-serif;
    letter-spacing: 0.2px;
    transition: color 0.25s ease;
}

/* The "stage" — all screenshots stack absolutely, only .active is visible.
   Cross-fades smoothly via opacity.
   Stage aspect-ratio is DYNAMIC per active screenshot (set via the
   --showcase-aspect CSS variable that JS updates from each image's
   data-aspect attribute). This way:
     • object-fit: contain doesn't letterbox (stage matches image shape)
     • No cropping happens (every screenshot displays whole)
     • The frame "morphs" smoothly between tabs with the aspect-ratio
       transition, which feels intentional and premium rather than fixed
   Range across the 12 screenshots: 1.08 (Performance card) to 3.68
   (AI Insights wide band). Default 2.04 matches the most common shape
   (~7 of 12 screenshots cluster around 2.04). */
.ss-showcase-stage {
    position: relative;
    width: 100%;
    aspect-ratio: var(--showcase-aspect, 2.04);
    max-height: 720px;                /* safety cap — prevents very-tall (square) screenshots from dominating the viewport */
    background: var(--ss-surface, #ffffff);
    overflow: hidden;
    transition: aspect-ratio 0.45s cubic-bezier(.4, 0, .2, 1);
}

.ss-showcase-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;              /* whole image visible — stage matches its aspect, so no letterbox */
    object-position: center;
    opacity: 0;
    transform: scale(1.005);
    transition: opacity 0.42s ease, transform 0.6s ease;
    pointer-events: none;
}

.ss-showcase-img.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Caption strip beneath the frame */
.ss-showcase-caption-wrap {
    max-width: 760px;
    margin: 22px auto 0 auto;
    text-align: center;
}

.ss-showcase-caption {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ss-text, #0f1923);
    margin: 0;
    transition: opacity 0.3s ease;
}

/* Mobile — keep tabs scrollable single-row, scale frame */
@media (max-width: 720px) {
    .ss-showcase-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding: 4px 16px 12px 16px;
        scrollbar-width: thin;
    }
    .ss-showcase-tab {
        font-size: 11px;
        padding: 8px 14px;
        flex-shrink: 0;
    }
    .ss-showcase-stage {
        /* On mobile, dynamic per-image aspect would make tall screenshots dominate
           the screen. Cap with max-height so even the square Performance shot
           stays readable without scrolling past it. */
        max-height: 520px;
    }
    .ss-showcase-url {
        font-size: 10px;
    }
    .ss-showcase-caption {
        font-size: 14px;
    }
}

/* Honor reduced-motion preference — disable transitions */
@media (prefers-reduced-motion: reduce) {
    .ss-showcase-img,
    .ss-showcase-caption,
    .ss-showcase-frame,
    .ss-showcase-tab {
        transition: none;
    }
    .ss-showcase-img {
        transform: none;
    }
}

/* ─── Coming Soon Badge ─── */
.ss-coming-soon {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 3px;
    background: var(--ss-gold);
    color: #0f1923;
}

/* ─── Two-Column Content ─── */
.ss-two-col {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .ss-two-col {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* ─── Page-Specific Hero Variants ─── */
.ss-hero-compact {
    min-height: auto;
    padding: 140px 0 60px 0;
}

@media (max-width: 767px) {
    .ss-hero-compact {
        padding: 120px 0 48px 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Explainer Video Toggle + Container
   ═══════════════════════════════════════════════════════════════════ */

.ss-video-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}

.ss-toggle-btn {
    padding: 10px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--ss-border-strong, rgba(10,36,99,0.18));
    background: transparent;
    color: var(--ss-muted, #828796);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ss-toggle-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.ss-toggle-btn:last-child {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.ss-toggle-btn.active {
    background: var(--ss-accent, #0A2463);
    color: #fff;
    border-color: var(--ss-accent, #0A2463);
}

.ss-toggle-btn:hover:not(.active) {
    background: rgba(10, 36, 99, 0.05);
    color: var(--ss-text, #0f1923);
}

.ss-video-container {
    max-width: 960px;
    margin: 0 auto;
}

.ss-video-container video {
    width: 100%;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    transition: opacity 0.3s ease;
}

@media (max-width: 767px) {
    .ss-toggle-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .ss-video-container {
        margin: 0 -16px;
    }

    .ss-video-container video {
        border-radius: 0;
    }
}
