/* yesan.xyz — Mid-Century Modern Budget Tool */

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* === BASE === */
body {
    background: #FBF7F0;
    color: #2C3E50;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
.section-heading {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.625rem;
    color: #2C3E50;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* === SECTION DIVIDER === */
.section-divider {
    border: none;
    border-top: 2px dashed #D4A03C;
    max-width: 600px;
    margin: 0 auto;
}

/* === BACKGROUND GEOMETRIC SHAPES === */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.bg-circle-1 {
    width: 300px; height: 300px;
    background: #D4A03C;
    opacity: 0.06;
    top: -80px; right: -60px;
}
.bg-circle-2 {
    width: 200px; height: 200px;
    background: #6B8F4A;
    opacity: 0.05;
    bottom: -40px; left: -50px;
}
.bg-circle-3 {
    width: 250px; height: 250px;
    background: #E07A5F;
    opacity: 0.05;
    top: -60px; left: -80px;
}
.bg-circle-4 {
    width: 220px; height: 220px;
    background: #3D5A80;
    opacity: 0.05;
    top: -40px; right: -70px;
}
.bg-circle-5 {
    width: 280px; height: 280px;
    background: #D4A03C;
    opacity: 0.05;
    bottom: -80px; right: -100px;
}
.bg-rect-1 {
    width: 160px; height: 100px;
    background: #6B8F4A;
    opacity: 0.04;
    border-radius: 12px;
    top: 20px; left: -40px;
}
.bg-circle-6 {
    width: 200px; height: 200px;
    background: #E07A5F;
    opacity: 0.05;
    bottom: -50px; left: -60px;
}

/* === HERO === */
.hero {
    position: relative;
    padding: 4rem 2rem 3rem;
    overflow: hidden;
}
.hero-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.hero-text { flex: 1; }
.hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 2.25rem;
    color: #2C3E50;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}
.hero-sub {
    font-size: 1rem;
    color: #7D8B99;
    margin-bottom: 1.5rem;
    max-width: 380px;
}
.cta-btn {
    display: inline-block;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    background: #D4A03C;
    color: #FFFFFF;
    padding: 0.7rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}
.cta-btn:hover {
    background: #c08e2e;
    transform: translateY(-1px);
}
.hero-art { flex-shrink: 0; }

/* === FEATURES === */
.features {
    position: relative;
    max-width: 660px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    overflow: hidden;
}
.feature-list { margin-bottom: 1.75rem; }
.feature-item {
    display: flex;
    align-items: center;
    padding: 0.45rem 0;
    font-size: 0.95rem;
}
.diamond {
    margin-right: 0.6rem;
    font-size: 0.7rem;
}
.diamond.mustard { color: #D4A03C; }
.diamond.olive { color: #6B8F4A; }
.diamond.coral { color: #E07A5F; }

/* === BUDGET DEMO === */
.budget-demo {
    background: #FFFFFF;
    padding: 1.75rem;
    border-radius: 12px;
}
.demo-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #2C3E50;
}
.bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}
.bar-label {
    font-size: 0.85rem;
    color: #7D8B99;
    min-width: 5.5rem;
}
.bar-track {
    flex: 1;
    height: 14px;
    background: #FBF7F0;
    border-radius: 8px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 8px;
    width: 0;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mustard-bg { background: #D4A03C; }
.olive-bg { background: #6B8F4A; }
.coral-bg { background: #E07A5F; }
.blue-bg { background: #3D5A80; }
.slate-bg { background: #7D8B99; }
.bar-val {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    color: #2C3E50;
    min-width: 3.75rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* === DONUT SECTION === */
.donut-section {
    position: relative;
    max-width: 660px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    overflow: hidden;
}
.donut-panel {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    justify-content: center;
}
.donut-wrap { flex-shrink: 0; }
.donut-seg {
    transition: opacity 0.3s ease;
}
.donut-chart:hover .donut-seg { opacity: 0.5; }
.donut-chart .donut-seg:hover { opacity: 1; }
.donut-legend {}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #7D8B99;
    margin-bottom: 0.4rem;
}
.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* === TOOLS — BUDGET CALCULATOR === */
.tools-section {
    position: relative;
    max-width: 660px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    overflow: hidden;
}
.tools-intro {
    text-align: center;
    color: #7D8B99;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.calculator-panel {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
}
.dial-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.dial-label {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 5.5rem;
    color: #2C3E50;
    cursor: default;
}
.dial-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    color: #2C3E50;
    min-width: 4.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Retro Dial Slider */
.retro-dial {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 8px;
    background: #FBF7F0;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}
.retro-dial::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #D4A03C;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.retro-dial::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.retro-dial::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #D4A03C;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: grab;
}
.retro-dial.dial-olive::-webkit-slider-thumb { background: #6B8F4A; }
.retro-dial.dial-olive::-moz-range-thumb { background: #6B8F4A; }
.retro-dial.dial-coral::-webkit-slider-thumb { background: #E07A5F; }
.retro-dial.dial-coral::-moz-range-thumb { background: #E07A5F; }

.calculator-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 2px dashed #D4A03C;
}
.total-label {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #2C3E50;
}
.total-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 1.25rem;
    color: #D4A03C;
    font-variant-numeric: tabular-nums;
}

/* === SPENDING TRENDS TIMELINE === */
.timeline-section {
    max-width: 660px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}
.timeline-panel {
    background: #FFFFFF;
    padding: 1.75rem;
    border-radius: 12px;
}
.trend-chart {
    width: 100%;
    height: 140px;
    display: block;
}
.trend-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.5s ease;
}
.trend-line.animate {
    stroke-dashoffset: 0;
}
.trend-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
}
.trend-month {
    font-size: 0.75rem;
    color: #7D8B99;
    font-family: 'IBM Plex Mono', monospace;
    font-variant-numeric: tabular-nums;
}
.trend-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}
.trend-key {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #7D8B99;
}

/* === SAVINGS GOALS === */
.goals {
    position: relative;
    max-width: 660px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    overflow: hidden;
}
.goal-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.goal-card {
    background: #FFFFFF;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.goal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.goal-name {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: #2C3E50;
}
.thermometer {
    width: 18px;
    height: 90px;
    background: #FBF7F0;
    border-radius: 9px;
    margin: 0 auto 0.6rem;
    position: relative;
    overflow: hidden;
}
.thermo-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #6B8F4A;
    border-radius: 9px;
    height: 0;
    transition: height 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.thermo-fill.coral-thermo { background: #E07A5F; }
.thermo-fill.blue-thermo { background: #3D5A80; }
.goal-val {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.65rem;
    color: #7D8B99;
    display: block;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.2rem;
}
.goal-pct {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: #D4A03C;
}
.starburst {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    line-height: 1;
}
.starburst.achieved {
    animation: starPulse 2s ease-in-out infinite;
}
@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* === COMPARISON TABLE === */
.comparison-section {
    max-width: 660px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}
.comparison-panel {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}
.comp-th {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #7D8B99;
    text-align: left;
    padding: 0.9rem 1.25rem;
    background: #FBF7F0;
    border-bottom: 1px solid #E8E2D8;
}
.comp-td {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #F5F0E8;
}
.comp-cat {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding-left: 1.25rem;
    position: relative;
}
.comp-cat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
}
.mustard-row::before { background: #D4A03C; }
.olive-row::before { background: #6B8F4A; }
.coral-row::before { background: #E07A5F; }
.blue-row::before { background: #3D5A80; }
.comp-num {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #2C3E50;
}
.comp-change {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.comp-change.positive { color: #6B8F4A; }
.comp-change.negative { color: #E07A5F; }
.comp-change.neutral { color: #7D8B99; }

/* === FOOTER === */
.footer {
    background: #2C3E50;
    color: #7D8B99;
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.footer-geo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.footer-geo-circle {
    position: absolute;
    border-radius: 50%;
}
.footer-gc-1 {
    width: 200px; height: 200px;
    background: #D4A03C;
    opacity: 0.04;
    top: -80px; left: 10%;
}
.footer-gc-2 {
    width: 150px; height: 150px;
    background: #6B8F4A;
    opacity: 0.04;
    bottom: -60px; right: 15%;
}
.footer-gc-3 {
    width: 100px; height: 100px;
    background: #E07A5F;
    opacity: 0.03;
    top: 20px; right: 5%;
}
.footer-geo-rect {
    position: absolute;
}
.footer-gr-1 {
    width: 120px; height: 60px;
    background: #3D5A80;
    opacity: 0.04;
    border-radius: 8px;
    bottom: 10px; left: 5%;
}
.footer-inner {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin-bottom: 1.5rem;
}
.flink {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #7D8B99;
    text-decoration: none;
    transition: color 0.2s ease;
}
.flink:hover { color: #D4A03C; }

/* Newsletter */
.newsletter {
    margin-bottom: 1.5rem;
}
.newsletter-text {
    font-size: 0.85rem;
    color: #7D8B99;
    margin-bottom: 0.75rem;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 360px;
    margin: 0 auto;
}
.newsletter-input {
    flex: 1;
    padding: 0.55rem 0.9rem;
    border: 1px solid #3D5A80;
    border-radius: 8px;
    background: #344C64;
    color: #FFFFFF;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.newsletter-input::placeholder { color: #7D8B99; }
.newsletter-input:focus { border-color: #D4A03C; }
.newsletter-btn {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 1.25rem;
    background: #D4A03C;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.newsletter-btn:hover { background: #c08e2e; }
.newsletter-confirm {
    font-size: 0.8rem;
    color: #6B8F4A;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.footer-copy {
    font-size: 0.75rem;
    color: #596E82;
}

/* === FADE-IN ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-sub {
        max-width: 100%;
    }
    .goal-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .donut-panel {
        flex-direction: column;
    }
    .comparison-table {
        font-size: 0.8rem;
    }
    .comp-th, .comp-td {
        padding: 0.6rem 0.75rem;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .section-heading {
        font-size: 1.35rem;
    }
    .goal-cards {
        grid-template-columns: 1fr;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .dial-row {
        flex-wrap: wrap;
    }
}
