:root {
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --pace-orange: #EB9110;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #fbbf24;
    --border-color: rgba(255,255,255,0.1);
}

.back-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: var(--pace-orange);
}

.pace-logo-icon {
    height: 1.5em;
    vertical-align: middle;
    margin-left: 0.5rem;
    display: inline-block;
    margin-bottom: 0.2rem;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 400;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.logo {
    color: var(--pace-orange);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

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

.control-group {
    margin-bottom: 2rem;
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.8rem 0;
    line-height: 1.4;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: var(--card-bg);
    height: 8px;
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--pace-orange);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.result-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
}

.meter-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
}

.meter {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.meter-bg {
    fill: none;
    stroke: #334155;
    stroke-width: 8;
}

.meter-fg {
    fill: none;
    stroke: var(--pace-orange);
    stroke-width: 8;
    stroke-dasharray: 283; /* 2 * PI * 45 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease, stroke 0.5s ease;
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 800;
}

.insight {
    font-size: 1.1rem;
    line-height: 1.5;
    min-height: 3.3rem;
}