body {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f4f6f8;
    color: #222;
}

h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

h2 {
    margin-top: 35px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

input {
    width: 200px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

button {
    padding: 12px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    background-color: #222;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
}

.results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.card h3 {
    margin-top: 0;
    font-size: 18px;
}

.card p {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 0;
}

#chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 280px;
    padding: 25px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 20px;
}

.profit-bar {
    flex: 1;
    background-color: #444;
    color: white;
    min-height: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 8px 5px;
    border-radius: 6px 6px 0 0;
    font-size: 12px;
    text-align: center;
    white-space: pre-line;
}

.profit-bar.best {
    background-color: #2e7d32;
}

.hero {
    margin-bottom: 40px;
}

.eyebrow {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 10px;
}

.hero h1 {
    margin-bottom: 12px;
}

.subtitle {
    font-size: 18px;
    color: #666;
    max-width: 650px;
    line-height: 1.5;
}

.section-description {
    color: #666;
    margin-top: -20px;
    margin-bottom: 20px;
}

.profit-card {
    border: 2px solid #2e7d32;
}

.break-even-card {
    border: 2px solid #555;
}

.settings-panel {
    background-color: white;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
}

.input-group input {
    width: auto;
    margin-bottom: 0;
}

.info-section {
    background-color: white;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 10px;
    line-height: 1.6;
    margin-top: 20px;
}

.info-section h3 {
    margin-top: 25px;
    margin-bottom: 5px;
}

.info-section h3:first-child {
    margin-top: 0;
}

.methodology-note {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 14px;
}

@media (max-width: 700px) {
    body {
        padding: 20px;
    }

    .settings-panel {
        grid-template-columns: 1fr;
    }

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

    #chart {
        gap: 6px;
        padding: 15px;
    }

    .profit-bar {
        font-size: 10px;
        padding: 5px 2px;
    }
}
