* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef1ed;
    color: #172018;
}

button {
    font-family: inherit;
}

.app {
    width: 100%;
    max-width: 720px;
    min-height: 100vh;
    margin: 0 auto;
    background: #ffffff;
    padding: 28px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}


/* NAV */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: #4d8c5a;
}

.nav-progress {
    border: 0;
    background: #f1f4f1;
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}


/* HOME */

.hero {
    margin-top: 100px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #4d8c5a;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1;
    letter-spacing: -3px;
    margin: 0;
}

.hero h1 span {
    color: #4d8c5a;
}

.description {
    max-width: 520px;
    color: #6d756e;
    font-size: 18px;
    line-height: 1.6;
    margin: 25px 0 30px;
}


/* BUTTONS */

.primary-button {
    border: none;
    border-radius: 14px;
    padding: 17px 24px;
    background: #172018;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.primary-button:hover {
    transform: translateY(-2px);
}

.primary-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.full-width {
    width: 100%;
    margin-top: 20px;
}

.back-button {
    border: none;
    background: none;
    padding: 0;
    color: #697169;
    font-size: 14px;
    cursor: pointer;
}


/* QUICK STATS */

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 80px;
}

.stat-card {
    background: #f4f6f3;
    border-radius: 18px;
    padding: 20px;
}

.stat-card span {
    font-size: 22px;
}

.stat-card strong {
    display: block;
    font-size: 27px;
    margin-top: 10px;
}

.stat-card small {
    color: #7a817a;
}


/* HEADERS */

.screen-header {
    margin: 45px 0 32px;
}

.screen-header h2 {
    font-size: 36px;
    letter-spacing: -1.5px;
    margin: 0 0 8px;
}

.screen-header p:not(.eyebrow) {
    color: #707870;
    line-height: 1.5;
}


/* SELECTIONS */

.selection-section {
    margin-bottom: 28px;
}

.selection-section h3 {
    font-size: 15px;
    margin-bottom: 12px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.option-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.selection-card {
    min-height: 110px;
    border: 2px solid #e4e8e4;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    padding: 15px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.15s;
}

.selection-card:hover {
    border-color: #9dbba1;
}

.selection-card.selected {
    background: #edf7ee;
    border-color: #4d8c5a;
}

.option-icon {
    font-size: 25px;
}

.selection-card strong {
    font-size: 14px;
}

.selection-card small {
    color: #7a817a;
    font-size: 11px;
}


/* WORKOUT */

.workout-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exercise-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    border: 1px solid #e1e5e1;
    border-radius: 16px;
}

.exercise-card.completed {
    background: #edf7ee;
    border-color: #a6c3aa;
}

.exercise-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f1f4f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.exercise-info {
    flex: 1;
}

.exercise-info h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.exercise-info p {
    margin: 0;
    color: #747b74;
    font-size: 12px;
}

.complete-exercise {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #dce2dc;
    background: white;
    cursor: pointer;
}

.exercise-card.completed .complete-exercise {
    background: #4d8c5a;
    color: white;
}


/* PROGRESS */

.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.big-stat {
    background: #f4f6f3;
    border-radius: 18px;
    padding: 24px;
}

.big-stat strong {
    display: block;
    font-size: 42px;
}

.big-stat span {
    color: #707870;
    font-size: 13px;
}


/* CHART CARDS */

.chart-card {
    background: #f8faf8;
    border: 1px solid #e6eae6;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 15px;
}

.chart-header h3 {
    margin: 0 0 5px;
}

.chart-header p {
    margin: 0;
    color: #7b827b;
    font-size: 12px;
}


/* BAR CHART */

.bar-chart {
    height: 180px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
    border-bottom: 1px solid #dfe4df;
}

.bar-item {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: 8px;
}

.bar {
    width: 70%;
    max-width: 38px;
    min-height: 5px;
    border-radius: 8px 8px 2px 2px;
    background: #4d8c5a;
    transition: height 0.3s;
}

.bar-label {
    font-size: 11px;
    color: #747b74;
}


/* GOAL CHART */

.goal-chart {
    margin-top: 25px;
}

.goal-row {
    margin-bottom: 18px;
}

.goal-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 13px;
}

.goal-track {
    height: 9px;
    background: #e5e9e5;
    border-radius: 20px;
    overflow: hidden;
}

.goal-fill {
    height: 100%;
    border-radius: 20px;
    background: #4d8c5a;
}


/* FOOTER */

footer {
    max-width: 720px;
    margin: 0 auto;
    padding: 15px;
    text-align: center;
    color: #8a918a;
    background: white;
    font-size: 11px;
}


/* MOBILE */

@media (max-width: 520px) {

    .app {
        padding: 20px;
    }

    .hero {
        margin-top: 70px;
    }

    .hero h1 {
        font-size: 46px;
    }

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

    .option-grid.three {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-stats {
        margin-top: 60px;
    }
}