/* ============================================
   Solutions Page Styles
   ============================================ */

/* --- Solution Block --- */
.solution-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.solution-block.reverse {
    direction: rtl;
}

.solution-block.reverse > * {
    direction: ltr;
}

.solution-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.solution-badge.ai {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.solution-badge.edu {
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent);
    border: 1px solid rgba(8, 145, 178, 0.15);
}

.solution-badge.corp {
    background: rgba(217, 119, 6, 0.08);
    color: var(--amber);
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.solution-badge.pro {
    background: rgba(5, 150, 105, 0.08);
    color: var(--green);
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.solution-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 8px;
}

.solution-tagline {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.solution-content > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* --- Solution Features --- */
.solution-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.sf {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sf-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    color: var(--primary);
    padding: 6px;
    background: rgba(79, 70, 229, 0.06);
    border-radius: var(--radius-sm);
}

.sf strong {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.sf p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
}

/* --- Solution Metrics --- */
.solution-metrics {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 100px;
}

.metric.highlight {
    border-color: rgba(217, 119, 6, 0.25);
    background: rgba(217, 119, 6, 0.04);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.metric.highlight .metric-value {
    color: var(--amber);
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* --- Solution List --- */
.solution-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.solution-list li {
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.solution-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-1);
}

/* --- AI Demo Card --- */
.ai-demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.ai-demo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.ai-demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ai-demo-dot.green {
    background: var(--green);
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.3);
}

.ai-demo-lang {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 400;
}

.ai-demo-messages {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-msg {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 85%;
}

.ai-msg.bot {
    background: var(--surface);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-msg.user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-demo-footer {
    display: flex;
    gap: 16px;
    padding: 12px 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    justify-content: center;
}

.ai-demo-footer span {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Program Card (SWISS) --- */
.program-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.program-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.program-card-top h4 {
    font-size: 1.1rem;
}

.cert-badge {
    padding: 4px 12px;
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-modules {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.module {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.module.active {
    color: var(--text);
}

.module-check {
    font-size: 0.75rem;
    color: var(--green);
    font-weight: 700;
}

.module-check.pending {
    color: var(--text-dim);
    font-size: 0.5rem;
}

.program-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.program-progress span {
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-3);
    border-radius: 3px;
}

/* --- ROI Card --- */
.roi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.roi-card h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.roi-bar-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.roi-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.roi-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    min-width: 80px;
}

.roi-bar {
    flex: 1;
    height: 24px;
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
}

.roi-bar-inner {
    height: 100%;
    border-radius: 4px;
    transition: width 1.5s ease;
}

.roi-bar.invest .roi-bar-inner {
    background: var(--border-light);
}

.roi-bar.return .roi-bar-inner {
    background: linear-gradient(90deg, var(--amber), #f97316);
}

.roi-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 50px;
}

.roi-value.highlight {
    color: var(--amber);
    font-size: 1.1rem;
}

.roi-benefits {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.roi-benefits span {
    padding: 6px 12px;
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--amber);
}

/* --- Case Study Card --- */
.case-study-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.cs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cs-badge {
    padding: 4px 12px;
    background: rgba(5, 150, 105, 0.08);
    color: var(--green);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.cs-difficulty {
    font-size: 0.75rem;
    color: var(--amber);
    font-weight: 500;
}

.case-study-card h4 {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.case-study-card > p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cs-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cs-tags span {
    padding: 4px 10px;
    background: var(--surface);
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.cs-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.cs-action:hover {
    background: var(--bg-card-hover);
}

.cs-progress {
    font-size: 0.8rem;
    color: var(--green);
    font-weight: 500;
}

.cs-arrow {
    color: var(--green);
    font-size: 1.2rem;
}

/* --- My Safe Spaces App Badge --- */
.solution-badge.app {
    background: rgba(225, 29, 72, 0.08);
    color: var(--rose);
    border: 1px solid rgba(225, 29, 72, 0.15);
}

/* --- App Store Buttons --- */
.app-store-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid var(--border);
    background: var(--text);
    color: #fff;
}

.app-store-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: #fff;
    border-color: var(--text);
}

.app-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-store-small {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.3px;
}

.app-store-large {
    font-size: 0.95rem;
    font-weight: 600;
}

.mss-web-link {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--transition);
}

.mss-web-link:hover {
    color: var(--accent);
}

/* --- Phone Mockup --- */
.app-phone-mockup {
    display: flex;
    justify-content: center;
}

.phone-frame {
    position: relative;
    width: 280px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 0 0 1px var(--border);
}

.phone-notch {
    width: 100px;
    height: 24px;
    background: var(--bg-card);
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border: 2px solid var(--border);
    border-top: none;
}

.phone-screen {
    background: var(--bg-alt);
    border-radius: 24px;
    padding: 20px 16px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: -12px;
}

.app-screen-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-logo-mark {
    width: 28px;
    height: 28px;
    color: var(--rose);
}

.app-screen-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
}

.app-screen-status {
    margin-left: auto;
    font-size: 0.65rem;
    color: var(--green);
    font-weight: 500;
}

.app-screen-greeting {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-greeting-hi {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.app-greeting-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Mood Selector */
.app-mood-row {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.app-mood {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex: 1;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
}

.app-mood span {
    font-size: 0.6rem;
    color: var(--text-dim);
    font-weight: 500;
}

.app-mood.active {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
}

.app-mood.active span {
    color: var(--primary);
    font-weight: 600;
}

/* Quick Actions */
.app-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.app-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.app-action:hover {
    border-color: var(--border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.app-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-action-icon svg {
    width: 16px;
    height: 16px;
}

.app-action-icon.chat-icon {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
}

.app-action-icon.breathe-icon {
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent);
}

.app-action-icon.journal-icon {
    background: rgba(5, 150, 105, 0.08);
    color: var(--green);
}

.app-action-icon.sos-icon {
    background: rgba(225, 29, 72, 0.08);
    color: var(--rose);
}

.app-action span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

/* Streak Bar */
.app-streak-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 600;
}

.app-streak-dots {
    display: flex;
    gap: 4px;
}

.app-streak-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    display: inline-block;
    font-style: normal;
}

.app-streak-dots .dot.filled {
    background: var(--green);
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .solution-block,
    .solution-block.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }

    .solution-visual {
        order: -1;
    }

    .solution-metrics {
        justify-content: flex-start;
    }

    .phone-frame {
        width: 260px;
    }

    .phone-screen {
        min-height: 380px;
    }

    .app-store-buttons {
        flex-direction: column;
    }

    .app-store-btn {
        justify-content: center;
    }
}
