/* ============================================================
   LANDING PAGE STYLES — static/css/landing.css
   Uses the same design tokens as design-system.css (--ds-*) so the
   marketing page and the app shell read as one product, not two.
   ============================================================ */

/* ── HERO ── */
.landing-hero {
    background: var(--ds-primary);
    color: var(--ds-text-on-dark);
    padding: 64px 0 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--ds-accent);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

.min-vh-75 {
    min-height: 55vh;
}

.hero-overline {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ds-accent-light);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
    color: var(--ds-text-on-dark);
}

.hero-highlight {
    color: var(--ds-accent-light);
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(241,245,249,0.72);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions .btn-primary {
    padding: 12px 28px;
    font-weight: 600;
    background: var(--ds-accent);
    border-color: var(--ds-accent-dark);
    color: var(--ds-text-on-accent);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-actions .btn-primary:hover {
    background: var(--ds-accent-dark);
    border-color: var(--ds-accent-dark);
    color: var(--ds-text-on-accent);
}

.hero-actions .btn-outline-light {
    padding: 12px 28px;
    font-weight: 600;
    color: rgba(241,245,249,0.85);
    border-color: rgba(255,255,255,0.3);
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

/* ── FAD CARD (hero visual) ── */
.hero-visual {
    position: relative;
}

.hero-fad-card {
    background: var(--ds-primary-dark);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.fad-card-header {
    background: rgba(0,0,0,0.2);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.fad-card-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.fad-card-dot:nth-child(1) { background: var(--ds-fail); }
.fad-card-dot:nth-child(2) { background: var(--ds-review); }
.fad-card-dot:nth-child(3) { background: var(--ds-pass); }

.fad-card-title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: rgba(241,245,249,0.55);
    font-weight: 500;
}

.fad-card-body {
    padding: 20px;
}

.fad-svg {
    width: 100%;
    height: auto;
    display: block;
}

.fad-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.fad-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(241,245,249,0.55);
}

.fad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.fad-dot--pass { background: var(--ds-pass); }
.fad-dot--marginal { background: var(--ds-review); }
.fad-dot--fail { background: var(--ds-fail); }

/* ── METRICS BAR ── */
.metrics-bar {
    background: var(--ds-surface);
    border-bottom: 1px solid var(--ds-border);
    padding: 0;
}

.metrics-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 48px;
}

.metric-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ds-primary);
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--ds-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 600;
}

.metric-divider {
    width: 1px;
    height: 36px;
    background: var(--ds-border);
}

/* ── SECTIONS (shared) ── */
.landing-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ds-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.2px;
}

.section-title--light {
    color: var(--ds-text-on-dark);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--ds-text-muted);
    line-height: 1.75;
}

.section-subtitle--light {
    color: rgba(241,245,249,0.7);
}

.section-dark {
    background: var(--ds-primary);
}

/* ── STEP CARDS (How it Works) ── */
.step-card {
    text-align: center;
    padding: 36px 24px;
    height: 100%;
    border: 1px solid var(--ds-border);
    background: var(--ds-surface);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--ds-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-card h5 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ds-primary);
}

.step-card p {
    color: var(--ds-text-muted);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ── MECHANISM CARDS (dark section) ── */
.mechanism-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.mechanism-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--ds-primary-dark);
    border: 1px solid rgba(255,255,255,0.12);
    transition: border-color 0.15s ease, background 0.15s ease;
    height: 100%;
}

.mechanism-card:hover .mechanism-card-inner {
    border-color: var(--ds-accent);
    background: var(--ds-primary-dark);
}

.mechanism-card:hover { text-decoration: none; }

.mechanism-part {
    flex-shrink: 0;
    background: rgba(232,160,32,0.15);
    color: var(--ds-accent-light);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.mechanism-name {
    flex-grow: 1;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0;
    color: rgba(241,245,249,0.92);
}

.mechanism-arrow {
    flex-shrink: 0;
    color: rgba(241,245,249,0.35);
    transition: transform 0.15s ease, color 0.15s ease;
}

.mechanism-card:hover .mechanism-arrow {
    transform: translateX(4px);
    color: var(--ds-accent);
}

/* ── CAPABILITY CARDS ── */
.capability-card {
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    padding: 28px 24px;
    height: 100%;
    transition: border-color 0.15s ease;
}

.capability-card:hover {
    border-color: var(--ds-secondary);
}

.capability-icon {
    width: 40px;
    height: 40px;
    background: var(--ds-info-bg);
    color: var(--ds-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.capability-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--ds-primary);
}

.capability-card p {
    color: var(--ds-text-muted);
    line-height: 1.65;
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* ── PERSONA CARDS ── */
.persona-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--ds-surface);
    border: 1px solid var(--ds-border);
    height: 100%;
    transition: border-color 0.15s ease;
}

.persona-card:hover {
    border-color: var(--ds-secondary);
}

.persona-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--ds-info-bg);
    color: var(--ds-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.persona-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--ds-primary);
}

.persona-card p {
    color: var(--ds-text-muted);
    line-height: 1.65;
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* ── CTA ── */
.landing-cta {
    background: var(--ds-primary);
    color: var(--ds-text-on-dark);
    padding: 80px 0;
    border-top: 2px solid var(--ds-accent);
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1rem;
    color: rgba(241,245,249,0.75);
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.landing-cta .btn-light {
    background: var(--ds-accent);
    border-color: var(--ds-accent-dark);
    color: var(--ds-text-on-accent);
    font-weight: 700;
    padding: 12px 32px;
}

.landing-cta .btn-light:hover {
    background: var(--ds-accent-dark);
}

.landing-cta .btn-outline-light {
    font-weight: 600;
    padding: 12px 32px;
    color: rgba(241,245,249,0.85);
    border-color: rgba(255,255,255,0.3);
}

.landing-cta .btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

/* ── FOOTER ── */
.landing-footer {
    background: var(--ds-primary-dark);
    color: rgba(241,245,249,0.75);
    padding: 48px 0 24px;
}

.landing-footer h6 {
    color: var(--ds-text-on-dark);
    margin-bottom: 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-desc {
    color: rgba(241,245,249,0.55);
    line-height: 1.7;
}

.footer-link {
    color: rgba(241,245,249,0.65);
    text-decoration: none;
    line-height: 2;
    transition: color 0.15s;
}

.footer-link:hover {
    color: var(--ds-accent-light);
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .metric-item {
        padding: 20px 28px;
    }

    .metric-number {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    .landing-hero {
        padding: 44px 0 56px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }

    .hero-actions .btn.me-3 {
        margin-right: 0 !important;
    }

    .metrics-row {
        flex-direction: column;
    }

    .metric-divider {
        width: 48px;
        height: 1px;
    }

    .metric-item {
        padding: 16px 0;
    }

    .landing-section {
        padding: 52px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .landing-cta {
        padding: 52px 0;
    }

    .cta-title {
        font-size: 1.6rem;
    }
}
