*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#f8fafc;
    color:#0f172a;
    font-family:Inter,system-ui,"Segoe UI",sans-serif;
    line-height:1.6;
}

a{
    color:inherit;
    text-decoration:none;
}

.container{
    width:min(1180px,calc(100% - 32px));
    margin:0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header{
    background:#ffffff;
    border-bottom:1px solid #e2e8f0;
    position:sticky;
    top:0;
    z-index:100;
}

.header-inner{
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.logo{
    color:#2563eb;
    font-size:25px;
    font-weight:900;
    line-height:1;
}

.main-nav{
    display:flex;
    align-items:center;
    gap:22px;
    color:#475569;
    font-size:15px;
    font-weight:600;
}

.main-nav a{
    white-space:nowrap;
}

.main-nav a:hover,
.main-nav a.active{
    color:#2563eb;
}

.menu-button{
    display:none;
    border:0;
    background:transparent;
    font-size:26px;
    cursor:pointer;
}


/* =========================================================
   HERO
   ========================================================= */

.tool-hero{
    padding:64px 0 36px;
    text-align:center;
}

.tool-hero .container{
    max-width:900px;
}

.hero-badge,
.section-label{
    display:inline-block;
    color:#2563eb;
    font-size:12px;
    font-weight:900;
    letter-spacing:.08em;
}

.tool-hero h1{
    margin:18px 0;
    font-size:clamp(44px,6vw,68px);
    line-height:1;
    letter-spacing:-2px;
}

.tool-hero h1 span{
    color:#2563eb;
}

.tool-hero p{
    max-width:760px;
    margin:0 auto;
    color:#64748b;
    font-size:18px;
}

.hero-note{
    margin-top:22px;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px 12px;
    color:#64748b;
    font-size:14px;
}

.hero-note strong{
    color:#0f172a;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.tool-hero + .section{
    padding-top:36px;
}

.featured-section{
    background:#ffffff;
}

.section-heading{
    margin-bottom:30px;
}

.section-heading h2{
    margin:8px 0 10px;
    font-size:clamp(30px,4vw,42px);
    line-height:1.15;
}

.section-heading p{
    margin:0;
    max-width:820px;
    color:#64748b;
}


/* =========================================================
   CALCULATOR
   ========================================================= */

.calculator-layout{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
    gap:24px;
    align-items:start;
}

.calculator-card{
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:20px;
    padding:28px;
    box-shadow:0 12px 35px rgba(15,23,42,.06);
}

.card-heading{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:24px;
}

.card-heading h2{
    margin:6px 0;
    font-size:28px;
}

.card-heading p{
    margin:0;
    color:#64748b;
}

.example-button,
.primary-button,
.secondary-button{
    border-radius:10px;
    font:inherit;
    font-weight:800;
    cursor:pointer;
}

.example-button{
    flex:0 0 auto;
    padding:10px 16px;
    border:1px solid #cbd5e1;
    background:#ffffff;
    color:#0f172a;
}

.example-button:hover{
    border-color:#2563eb;
    color:#2563eb;
}


/* =========================================================
   INPUTS
   ========================================================= */

.input-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.field{
    display:block;
    font-size:13px;
    font-weight:800;
}

.field > span{
    display:block;
    margin-bottom:7px;
}

.field small{
    display:block;
    margin-top:6px;
    color:#94a3b8;
    font-weight:600;
}

.field input,
.field select{
    width:100%;
    min-height:48px;
    padding:11px 13px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    background:#ffffff;
    color:#0f172a;
    font:inherit;
    outline:none;
}

.field input:focus,
.field select:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.1);
}

.input-prefix,
.input-suffix,
.term-input{
    display:grid;
    align-items:stretch;
}

.input-prefix{
    grid-template-columns:auto 1fr;
}

.input-suffix{
    grid-template-columns:1fr auto;
}

.term-input{
    grid-template-columns:1fr 120px;
    gap:10px;
}

.input-prefix > span,
.input-suffix > span{
    display:flex;
    align-items:center;
    padding:0 12px;
    background:#f1f5f9;
    border:1px solid #cbd5e1;
    color:#475569;
    font-size:13px;
    font-weight:800;
}

.input-prefix > span{
    border-radius:10px 0 0 10px;
    border-right:0;
}

.input-suffix > span{
    border-radius:0 10px 10px 0;
    border-left:0;
}

.input-prefix input{
    border-radius:0 10px 10px 0;
}

.input-suffix input{
    border-radius:10px 0 0 10px;
}


/* =========================================================
   WARNINGS + BUTTONS
   ========================================================= */

.warning{
    margin-top:18px;
    padding:12px 14px;
    border:1px solid #fecaca;
    border-radius:10px;
    background:#fef2f2;
    color:#b91c1c;
    font-weight:700;
}

.calculator-actions{
    display:flex;
    gap:10px;
    margin-top:24px;
    padding-top:20px;
    border-top:1px solid #e2e8f0;
}

.primary-button{
    padding:12px 18px;
    border:1px solid #2563eb;
    background:#2563eb;
    color:#ffffff;
}

.primary-button:hover{
    background:#1d4ed8;
    border-color:#1d4ed8;
}

.secondary-button{
    padding:12px 18px;
    border:1px solid #cbd5e1;
    background:#ffffff;
    color:#0f172a;
}

.secondary-button:hover{
    border-color:#2563eb;
    color:#2563eb;
}


/* =========================================================
   RESULTS
   ========================================================= */

.results-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.result-box{
    padding:18px;
    border:1px solid #e2e8f0;
    border-radius:14px;
    background:#ffffff;
    min-width:0;
}

.result-box span{
    display:block;
    margin-bottom:6px;
    color:#64748b;
    font-size:13px;
    font-weight:700;
}

.result-box strong{
    display:block;
    font-size:25px;
    line-height:1.2;
    overflow-wrap:anywhere;
}

.result-box.featured{
    background:#eff6ff;
    border-color:#bfdbfe;
}

.result-box.featured strong{
    color:#2563eb;
}

.loan-summary{
    margin-top:16px;
    padding:18px;
    border:1px solid #e2e8f0;
    border-radius:14px;
    background:#f8fafc;
}

.loan-summary h3,
.loan-summary p{
    margin:0;
}

.loan-summary p{
    margin-top:5px;
    color:#64748b;
}


/* =========================================================
   GROWTH BREAKDOWN
   ========================================================= */

.comparison-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.comparison-card{
    padding:22px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#ffffff;
    min-width:0;
}

.comparison-card span{
    display:block;
    margin-bottom:7px;
    color:#64748b;
    font-size:13px;
    font-weight:700;
}

.comparison-card strong{
    display:block;
    font-size:24px;
    overflow-wrap:anywhere;
}


/* =========================================================
   EXAMPLE
   ========================================================= */

.example-box{
    padding:44px 46px;
    border-radius:20px;
    background:#0f172a;
    color:#ffffff;
}

.example-box h2{
    margin:10px 0 12px;
    color:#ffffff;
    font-size:34px;
}

.example-box p{
    margin:0;
    color:#cbd5e1;
}

.example-divider{
    height:1px;
    margin:28px 0;
    background:#334155;
}

.example-box strong{
    color:#ffffff;
}

.example-box p span{
    margin:0 10px;
    color:#3b82f6;
}


/* =========================================================
   FORMULA
   ========================================================= */

.formula-box{
    padding:24px;
    border:1px solid #bfdbfe;
    border-radius:16px;
    background:#eff6ff;
}

.formula-box strong{
    display:block;
    color:#1d4ed8;
    font-size:20px;
}

.formula-box p{
    margin:8px 0 0;
    color:#475569;
}


/* =========================================================
   INFORMATION CARDS
   ========================================================= */

.benefit-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}

.benefit{
    padding:22px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#ffffff;
}

.benefit > span{
    display:inline-flex;
    width:30px;
    height:30px;
    align-items:center;
    justify-content:center;
    margin-bottom:12px;
    border-radius:999px;
    background:#dcfce7;
    color:#15803d;
    font-weight:900;
}

.benefit h3{
    margin:0 0 7px;
}

.benefit p{
    margin:0;
    color:#64748b;
}


/* =========================================================
   RELATED TOOLS
   ========================================================= */

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

.category-card{
    display:flex;
    gap:16px;
    padding:22px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#ffffff;
    transition:.2s ease;
}

.category-card:hover{
    transform:translateY(-2px);
    border-color:#bfdbfe;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.category-icon{
    flex:0 0 auto;
    font-size:28px;
}

.category-card h3{
    margin:0 0 7px;
}

.category-card p{
    margin:0 0 12px;
    color:#64748b;
}

.category-card span{
    color:#2563eb;
    font-weight:800;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-section{
    display:grid;
    gap:12px;
}

.faq-section details{
    border:1px solid #e2e8f0;
    border-radius:14px;
    background:#ffffff;
    padding:0 18px;
}

.faq-section summary{
    padding:18px 0;
    cursor:pointer;
    font-weight:800;
}

.faq-section details p{
    margin:0;
    padding:0 0 18px;
    color:#64748b;
}

.faq-section details[open]{
    border-color:#bfdbfe;
}


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

.footer{
    padding:54px 0 28px;
    background:#0f172a;
    color:#cbd5e1;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr 1fr;
    gap:30px;
}

.footer-brand{
    color:#ffffff;
    font-size:24px;
    font-weight:900;
}

.footer h4{
    margin:0 0 12px;
    color:#ffffff;
}

.footer a{
    display:block;
    margin:7px 0;
    color:#cbd5e1;
}

.footer a:hover{
    color:#ffffff;
}

.footer p{
    color:#94a3b8;
}

.copyright{
    margin-top:28px;
    padding-top:20px;
    border-top:1px solid #334155;
    color:#94a3b8;
    font-size:14px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:1000px){

    .main-nav{
        gap:14px;
        font-size:14px;
    }

    .calculator-layout{
        grid-template-columns:1fr;
    }

    .benefit-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .category-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .footer-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}


@media(max-width:760px){

    .menu-button{
        display:block;
    }

    .main-nav{
        display:none;
        position:absolute;
        top:72px;
        left:0;
        right:0;
        flex-direction:column;
        align-items:flex-start;
        gap:0;
        padding:14px 16px;
        background:#ffffff;
        border-bottom:1px solid #e2e8f0;
    }

    .main-nav.open{
        display:flex;
    }

    .main-nav a{
        width:100%;
        padding:10px 0;
    }

    .tool-hero{
        padding:48px 0 30px;
    }

    .tool-hero h1{
        font-size:44px;
    }

    .section{
        padding:52px 0;
    }

    .calculator-card{
        padding:22px;
    }

    .card-heading{
        flex-direction:column;
    }

    .input-grid,
    .results-grid,
    .comparison-grid,
    .benefit-grid,
    .category-grid{
        grid-template-columns:1fr;
    }

    .term-input{
        grid-template-columns:1fr 110px;
    }

    .calculator-actions{
        flex-direction:column;
    }

    .primary-button,
    .secondary-button{
        width:100%;
    }

    .example-box{
        padding:30px 24px;
    }

    .example-box h2{
        font-size:28px;
    }

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


@media(max-width:480px){

    .container{
        width:min(100% - 24px,1180px);
    }

    .tool-hero h1{
        font-size:38px;
        letter-spacing:-1px;
    }

    .term-input{
        grid-template-columns:1fr;
    }

    .example-box p span{
        display:none;
    }

    .result-box strong,
    .comparison-card strong{
        font-size:22px;
    }
}
/* ===== UNDERSTANDING COMPOUND INTEREST RESULTS ===== */

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

.compound-results-grid .benefit {
    height: 100%;
}

.compound-results-note {
    margin-top: 22px;
    padding: 20px 24px;

    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-left: 4px solid #2563eb;
    border-radius: 14px;
}

.compound-results-note p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.compound-results-note strong {
    color: #0f172a;
}

@media (max-width: 640px) {

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

    .compound-results-note {
        padding: 18px 20px;
    }
}
/* ===== COMPOUND PAGE SPACING & BALANCE ===== */

/* Give major sections more breathing room */
.section {
    padding-top: 64px;
    padding-bottom: 64px;
}

/* Keep headings from feeling too close to the content below */
.section-heading {
    margin-bottom: 28px;
}

/* ===== UNDERSTANDING RESULTS ===== */

.compound-results-grid {
    gap: 18px;
    margin-top: 24px;
}

.compound-results-grid .benefit {
    padding: 22px 20px;
}

.compound-results-grid .benefit h3 {
    margin-bottom: 8px;
}

.compound-results-grid .benefit p {
    line-height: 1.6;
}

.compound-results-note {
    margin-top: 18px;
}


/* ===== EXAMPLE BOX — LIGHTER VISUAL WEIGHT ===== */

.example-box {
    padding: 30px 32px;
    border-radius: 18px;
}

.example-box h2 {
    margin-top: 8px;
    margin-bottom: 12px;
}

.example-box p {
    line-height: 1.65;
}


/* ===== COMPOUND INTEREST FORMULA ===== */

.formula-box {
    margin-top: 24px;
    padding: 20px 24px;

    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-left: 4px solid #2563eb;
    border-radius: 14px;

    box-shadow: none;
}

.formula-box strong {
    display: block;
    margin-bottom: 8px;

    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.formula-box p {
    margin: 0;

    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}


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

@media (max-width: 640px) {

    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .compound-results-grid .benefit {
        padding: 20px 18px;
    }

    .example-box {
        padding: 24px 20px;
    }

    .formula-box {
        padding: 18px 20px;
    }
}