:root {
    --primary: #1e4b69;
    --accent: rgb(70, 180, 200);
    --bg: #f5f7fa;
    --basic: #95a5a6;
    --pro: #2980b9;
    --enterprise: #8e44ad;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: #333;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 960px;
    width: 100%;
}

h1 {
    color: var(--primary);
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.panel-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 16px;
    text-align: center;
}

.strategies {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.strategy-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
    border: 2px solid #eee;
    transition: all 0.25s;
    cursor: default;
}

.strategy-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(70, 180, 200, 0.15);
}

.strategy-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 46px;
    text-align: center;
}

.strategy-info {
    flex: 1;
}

.strategy-name {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.strategy-desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.4;
}

.strategy-tags {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.tag.pro { background: #e8f8f0; color: #27ae60; }
.tag.con { background: #fdf0e8; color: #e67e22; }

.tiers {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tier-card {
    padding: 16px;
    border-radius: 10px;
    border: 2px solid #eee;
    cursor: pointer;
    transition: all 0.25s;
}

.tier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.tier-card.active {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.tier-card.basic { border-left: 4px solid var(--basic); }
.tier-card.basic.active { border-color: var(--basic); background: #f7f8f8; }
.tier-card.pro { border-left: 4px solid var(--pro); }
.tier-card.pro.active { border-color: var(--pro); background: #f0f5fa; }
.tier-card.enterprise { border-left: 4px solid var(--enterprise); }
.tier-card.enterprise.active { border-color: var(--enterprise); background: #f5f0fa; }

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

.tier-name {
    font-weight: 700;
    font-size: 1rem;
}

.tier-name.basic { color: var(--basic); }
.tier-name.pro { color: var(--pro); }
.tier-name.enterprise { color: var(--enterprise); }

.tier-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: white;
}

.tier-badge.basic { background: var(--basic); }
.tier-badge.pro { background: var(--pro); }
.tier-badge.enterprise { background: var(--enterprise); }

.tier-metrics {
    display: flex;
    gap: 20px;
}

.tier-metric {
    text-align: center;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.metric-label {
    font-size: 0.72rem;
    color: #888;
    cursor: help;
}

.detail-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-height: 80px;
}

.detail-placeholder {
    color: #aaa;
    text-align: center;
    font-style: italic;
}

.detail-content {
    display: none;
}

.detail-content.visible {
    display: block;
}

.detail-title {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-section h4 {
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: #555;
    padding-left: 16px;
    position: relative;
}

.detail-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.tooltip {
    position: fixed;
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    max-width: 280px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

.tooltip.visible {
    opacity: 1;
}

@media (max-width: 700px) {
    .panels {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .tier-metrics {
        gap: 12px;
    }
}
