
:root {
    --bg-gradient-start: #f5f7fb;
    --bg-gradient-end: #ffffff;
    --accent: #0070c9;
    --accent-soft: rgba(0,112,201,0.1);
    --text-main: #111827;
    --text-muted: #6b7280;
    --card-border: #e5e7eb;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
}

.psl-roadmap * {
    box-sizing: border-box;
}

.psl-roadmap {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at top, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 55%);
    -webkit-font-smoothing: antialiased;
    padding: 32px 0 48px;
}

.psl-roadmap a {
    color: var(--accent);
    text-decoration: none;
}

.psl-roadmap a:hover {
    text-decoration: underline;
}

.psl-roadmap .page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px 16px;
}

/* Top navigation */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand-text {
    display: block;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.nav-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.nav-links a:hover {
    border-color: rgba(148,163,184,0.5);
    background: rgba(255,255,255,0.9);
    text-decoration: none;
}

header {
    text-align: center;
    padding: 20px 0 32px;
}

header .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(148,163,184,0.5);
    font-size: 13px;
    color: var(--text-muted);
}

header .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(249,115,22,0.25);
}

header h1 {
    margin: 18px 0 10px;
    font-size: clamp(32px, 4vw, 40px);
    letter-spacing: -0.03em;
}

header p.lead {
    margin: 0 auto;
    max-width: 640px;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

header .sub {
    margin-top: 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(209,213,219,0.9);
    backdrop-filter: blur(14px);
}

.hero-note {
    margin-top: 12px;
    font-size: 13px;
    color: #9ca3af;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.btn-primary {
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0070c9, #0f9cf5);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
    cursor: default;
}

.btn-ghost {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.85);
}

main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

section {
    background: rgba(255,255,255,0.96);
    border-radius: var(--radius-xl);
    padding: 24px 22px 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
}

section h2 {
    margin: 0 0 4px;
    font-size: 20px;
    letter-spacing: -0.02em;
}

section > p.section-intro {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Apps grid */

.apps-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
}

.apps-list {
    display: grid;
    gap: 14px;
}

.app-card {
    border-radius: 18px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(209,213,219,0.8);
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
}

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

.app-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(209,213,219,0.9);
    flex-shrink: 0;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.app-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-title {
    font-weight: 600;
    font-size: 15px;
}

.app-tagline {
    font-size: 13px;
    color: var(--text-muted);
}

.pill {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.55);
    color: #4b5563;
    background: rgba(248,250,252,0.95);
    white-space: nowrap;
}

.pill-status {
    background: rgba(250,204,21,0.08);
    border-color: rgba(250,204,21,0.7);
    color: #a16207;
}

.app-body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 14px;
}

.app-body ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.app-body li + li {
    margin-top: 4px;
}

.app-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
}

.progress-row {
    font-size: 12px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(229,231,235,0.9);
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #34d399);
}

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

.tech-tags span {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(15,23,42,0.03);
    border: 1px solid rgba(209,213,219,0.9);
}

.app-links {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
}

.app-links a {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    color: var(--text-muted);
    background: rgba(255,255,255,0.9);
    text-decoration: none;
}

.app-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Chart - main completion */

.chart-wrapper {
    background: radial-gradient(circle at top left, rgba(148,163,184,0.22), transparent 55%);
    border-radius: 20px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(209,213,219,0.85);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.chart-header h3 {
    margin: 0;
    font-size: 15px;
}

.chart-header span {
    font-size: 12px;
    color: var(--text-muted);
}

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

.chart-table th,
.chart-table td {
    padding: 6px 4px;
    text-align: left;
}

.chart-table th {
    font-weight: 500;
    color: #6b7280;
}

.chart-table tr + tr {
    border-top: 1px solid rgba(229,231,235,0.9);
}

.chart-bar-cell {
    width: 55%;
}

.chart-bar-shell {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(229,231,235,0.9);
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #22c55e);
}

.chart-status {
    white-space: nowrap;
}

/* Secondary chart (readiness breakdown) */

.chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 14px;
}

.mini-chart {
    border-radius: 16px;
    border: 1px solid rgba(209,213,219,0.9);
    background: rgba(255,255,255,0.96);
    padding: 10px 12px;
    font-size: 11px;
}

.mini-chart h4 {
    margin: 0 0 4px;
    font-size: 12px;
}

.mini-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.mini-label {
    width: 58%;
    color: var(--text-muted);
}

.mini-shell {
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: rgba(229,231,235,0.9);
    overflow: hidden;
}

.mini-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #22c55e);
}

/* Deep dive section */

.apps-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.detail-card {
    border-radius: 18px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(209,213,219,0.85);
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(209,213,219,0.9);
    flex-shrink: 0;
}

.detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.detail-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.detail-card h3 {
    margin: 6px 0 6px;
    font-size: 15px;
}

.detail-card p {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

.detail-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.detail-card li + li {
    margin-top: 4px;
}

/* Footer */

footer {
    margin-top: 36px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

footer span {
    display: block;
    margin-top: 4px;
}

/* Responsive */

@media (max-width: 880px) {
    .apps-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .apps-detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .chart-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .psl-roadmap .page {
        padding-inline: 16px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        justify-content: flex-start;
    }

    header h1 {
        font-size: 30px;
    }

    section {
        padding: 18px 16px 20px;
    }
}
