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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f1e8;
    color: #352b24;
    line-height: 1.6;
}

.navbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    background: #f7f1e8;
    border-bottom: 1px solid #e3d7c8;
}

.logo {
    color: #352b24;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #78695c;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #352b24;
}

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 80px 7%;
    background: #d8c6b2;
}

.hero-content {
    max-width: 750px;
}

.eyebrow {
    color: #7f7468;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

h1 {
    font-size: clamp(48px, 7vw, 86px);
    line-height: 1;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

h1 span,
h2 span {
    color: #7f7468;
}

.hero-text {
    max-width: 520px;
    color: #695d53;
    font-size: 18px;
    margin-bottom: 35px;
}

.button,
.calculate-button {
    display: inline-block;
    border: none;
    background: #7f7468;
    color: #fffaf4;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.button:hover,
.calculate-button:hover {
    background: #695f54;
}

.calculator-section,
.how-section,
.challenges-section,
.three-pots-section {
    padding: 100px 7%;
}

.calculator-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

#savings {
    background: #e9ddcd;
}

.section-intro {
    max-width: 650px;
    margin-bottom: 45px;
}

.calculator-section .section-intro {
    margin-bottom: 0;
}

.section-intro h2 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.section-intro > p:last-child {
    color: #75685d;
}

.calculator-card {
    max-width: 700px;
    width: 100%;
    margin: 0;
    background: #fffaf4;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 15px 50px rgba(76, 57, 42, 0.08);
}

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    height: 52px;
    border: 1px solid #dccfbe;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
    background: #fcf8f2;
    color: #352b24;
    outline: none;
}

.input-group input:focus {
    border-color: #9b9184;
}

.date-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-wrapper #date {
    padding-right: 60px;
}

#calendar-button {
    position: absolute;
    right: 7px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 7px;
    background: #eadfd1;
    font-size: 17px;
    cursor: pointer;
}

#calendar-button:hover {
    background: #ddcdbb;
}

#hidden-date {
    position: absolute;
    right: 7px;
    width: 40px;
    height: 40px;
    opacity: 0;
    pointer-events: none;
}

.calculate-button {
    width: 100%;
    margin-top: 5px;
    font-size: 15px;
}

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

.result {
    background: #f0e7dc;
    padding: 20px;
    border-radius: 10px;
}

.result span,
.extra-result span,
.plan-main span,
.plan-date span {
    display: block;
    color: #806f61;
    font-size: 13px;
}

.result strong {
    display: block;
    font-size: 25px;
    margin-top: 5px;
}

#extra-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.extra-result {
    padding: 18px;
    background: #f3ebe1;
    border-radius: 10px;
}

.extra-result strong {
    display: block;
    margin-top: 5px;
}

#plan-details {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 15px;
    padding: 25px;
    background: #7f7468;
    color: #fffaf4;
    border-radius: 12px;
}

#plan-details span {
    color: #eadfd3;
}

#plan-details strong {
    display: block;
    font-size: 22px;
    margin-top: 4px;
}

#progress-container {
    margin-top: 25px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar {
    height: 12px;
    background: #dfd3c5;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: #968b7d;
    border-radius: 20px;
    transition: width 0.5s ease;
}

#milestones {
    margin-top: 30px;
}

.milestones-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.milestone-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.milestone {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f2e9df;
    border-radius: 10px;
    opacity: 0.5;
    min-height: 82px;
}

.milestone.achieved {
    opacity: 1;
    background: #e8dacc;
}

.milestone-icon {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9c8b6;
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
}

.milestone strong,
.milestone span {
    display: block;
}

.milestone span {
    color: #806f61;
    font-size: 13px;
}

#goal-message {
    margin-top: 20px;
    padding: 20px;
    background: #f0e7dc;
    border-radius: 10px;
}

#goal-message strong,
#goal-message span {
    display: block;
}

#goal-message span {
    color: #75685d;
    margin-top: 4px;
}

#goal-message.complete {
    background: #e7d8c8;
}

.how-section {
    background: #352b24;
    color: #fffaf4;
}

.how-section .section-intro p:last-child {
    color: #c9bdb2;
}

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

.step {
    padding: 30px;
    border: 1px solid #55483e;
    border-radius: 12px;
}

.step > span {
    color: #b7aa9b;
    font-weight: 700;
}

.step h3 {
    font-size: 25px;
    margin: 20px 0 10px;
}

.step p {
    color: #c9bdb2;
}

.challenges-section {
    background: #f7f1e8;
}

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

.challenge {
    background: #fffaf4;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(76, 57, 42, 0.06);
}

.challenge > span {
    color: #7f7468;
    font-weight: 700;
    font-size: 13px;
}

.challenge h3 {
    font-size: 25px;
    margin: 15px 0 10px;
}

.challenge p {
    color: #75685d;
    margin-bottom: 25px;
}

.challenge-button {
    border: none;
    background: none;
    color: #7f7468;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.challenge.completed {
    border: 2px solid #968b7d;
}


/* ==========================================
   THREE POTS
   ========================================== */

.three-pots-section {
    padding: 100px 7%;
    background: #e9ddcd;
}

.three-pots-section .section-intro {
    max-width: 650px;
    margin-bottom: 45px;
}

.three-pots-section .section-intro > p:last-child {
    color: #75685d;
}

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

.pot {
    background: #fffaf4;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(76, 57, 42, 0.06);
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.pot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.pot-number {
    color: #7f7468;
    font-size: 13px;
    font-weight: 700;
}

.pot-label {
    color: #9b8d80;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.pot h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.pot p {
    color: #75685d;
    line-height: 1.7;
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 750px) {

    .three-pots-section {
        padding: 70px 5%;
    }

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

    .pot {
        min-height: auto;
    }

}



/* ==========================================
   TIPS
   ========================================== */

#tips {
    background: #d8c6b2;
}

#tips .challenge {
    background: #fffaf4;
}


/* ==========================================
   MODAL
   ========================================== */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(53, 43, 36, 0.65);
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #fffaf4;
    padding: 45px;
    border-radius: 18px;
}

.modal-content > span {
    color: #7f7468;
    font-weight: 700;
}

.modal-content h2 {
    font-size: 38px;
    margin: 12px 0;
}

.modal-content p {
    color: #75685d;
    margin-bottom: 25px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 18px;
    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
    color: #695b50;
}


/* ==========================================
   FOOTER
   ========================================== */

footer {
    padding: 40px 7%;
    background: #29221d;
    color: #bdb1a7;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

footer strong {
    color: #fffaf4;
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 750px) {

    .navbar {
        padding: 0 5%;
    }

    nav {
        display: none;
    }

    .hero,
    .calculator-section,
    .how-section,
    .challenges-section,
    .three-pots-section {
        padding: 70px 5%;
    }

    .calculator-section {
        display: block;
    }

    .calculator-section .section-intro {
        margin-bottom: 45px;
    }

    h1 {
        letter-spacing: -2px;
    }

    .calculator-card {
        padding: 25px;
    }

    .results,
    #extra-results,
    .steps,
    .challenge-grid,
    .milestone-list,
    .three-pots-grid {
        grid-template-columns: 1fr;
    }

    #plan-details {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
    }

}
