/* FONT IMPORTS */
/* @import url('https://fonts.googleapis.com/css2?family=Finlandica:ital,wght@0,400..700;1,400..700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* BODY */
body {
    font-family: "Inter", sans-serif;
    scroll-behavior: smooth;
    background-color: var(--Primary-Background);
    height: 100vh;
}

/* ACCESSIBILITY */
:focus-visible { outline: 3px solid var(--Primary-Purple); outline-offset: 2px; }
.skip-link { position: absolute; z-index: 2000; background: #fff; padding: .5rem 1rem; }
#main:focus { outline: none; }
.htmx-status { position: fixed; right: 1rem; bottom: 1rem; z-index: 2000; font-size: .9rem; }
@media (max-width: 767.98px) {
    .container, .container-fluid { padding-left: .75rem; padding-right: .75rem; }
    .table-responsive-sm, .tbl-container { overflow-x: auto; }
    h1 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* Darker muted text for AA contrast on the cream background */
.text-muted, .form-text { color: #565d66 !important; }
.text-danger { color: #b02a37 !important; }
.table-responsive { -webkit-overflow-scrolling: touch; }
img, svg { max-width: 100%; height: auto; }
/* Fixed-height box so charts never collapse on narrow screens (Chart.js fills it) */
.chart-box { position: relative; height: clamp(320px, 60vw, 460px); width: 100%; }
.chart-box.sankey-box { height: clamp(380px, 70vw, 540px); }

/* Automatic taxes replace the per-income tax rate inputs */
body.tax-auto .manual-tax { display: none; }
body:not(.tax-auto) .tax-auto-fields { display: none; }
.tax-settings { padding: 1rem 1.25rem; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 12px; background: #fcfbf9; }
@media (max-width: 767.98px) {
    /* 16px inputs stop iOS from zooming on focus; 44px targets for touch */
    .form-control, .form-select { font-size: 16px; }
    .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
    .btn-sm { min-height: 38px; }
    .nav-link, .dropdown-item { padding-top: .6rem; padding-bottom: .6rem; }
    .landing-card-icon { font-size: 52px; }
    #landing-card, #landing-card2, #landing-card3 { padding: 2rem 1rem !important; }
    .landing-card-text { padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 1rem !important; }
    .modal-dialog { margin: .5rem; }
    .modal-xl { --bs-modal-width: auto; }
    .pricing-table { min-width: 480px; }
    footer .nav { gap: .25rem .75rem; }
}

/* COLOR VARIABLES */
:root {
  --Primary-Green: #285C53;
  --Light-Green: #DFF5F1;
  --Muted-Green: #D8DDD8;
  --Primary-Orange: #EC652B;
  --Light-Orange: #FFEDDD;
  --Muted-Orange: #F5DFD2;
  --Primary-Purple: #4F378A;
  --Light-Purple: #EDE6F8;
  --Muted-Purple: #DDD1E6;
  --Primary-Berry: #B34E82;
  --Light-Berry: #FFF3FF;
  --Muted-Berry: #E8D9D9;
  --Primary-Black: #0A0A0A;
  --Light-Black: #282222;
  --Muted-Black: #727A90;
  --Primary-Background: #F3EEE8;
  --Light-Background: #FCFBF9;

  --income: #DFF5F1;
  --income-dark: #285C53;
  --income-light: #D8DDD8;
  --income-mute: #B9FC7225;
  --expenses: #FFEDDD;
  --expenses-dark: #EC652B;
  --expenses-light: #F5DFD2;
  --expenses-mute: #F5BDFB25;
  --savings: #EDE6F8;
  --savings-dark: #4F378A;
  --savings-light: #DDD1E6;
  --savings-mute: #63D8EA25;
  --personal: #FFF3FF;
  --personal-dark: #B34E82;
  --personal-light: #E8D9D9;
  --personal-mute: #FAE44D25;
  --black: #282222;
  --black-dark: #0A0A0A;
  --black-light: #4a4545;
  --black-mute: #0b0a0a1b;
  }

  /* BASE */
  .navbar-main-dropdown {
    border-radius: 8px;
    border: 1px solid #FFF;
    color: #FFF;
    font-family: Inter;
    font-size: var(--Static-Label-Large-Size, 14px);
    font-style: normal;
    font-weight: 600;
    line-height: var(--Static-Label-Large-Line-Height, 20px); /* 142.857% */
    letter-spacing: var(--Static-Label-Large-Tracking, 0.1px);
  }

  /* REUSABLE ELEMENTS */
  .btn-action-filled {
    border-radius: 8px;
    background: #4F378A;
    color: #FFF;
    font-family: Inter;
    font-size: var(--Static-Label-Large-Size, 14px);
    font-style: normal;
    font-weight: 600;
    line-height: var(--Static-Label-Large-Line-Height, 20px);
    letter-spacing: var(--Static-Label-Large-Tracking, 0.1px);
  }
  .btn-action-filled:hover {
    border-radius: 8px;
    background: #230655;
    color: #FFF;
    font-family: Inter;
    font-size: var(--Static-Label-Large-Size, 14px);
    font-style: normal;
    font-weight: 600;
    line-height: var(--Static-Label-Large-Line-Height, 20px);
    letter-spacing: var(--Static-Label-Large-Tracking, 0.1px);
  }
  .btn-action-empty {
    border-radius: 8px;
    border: 1px solid #49454F;
    color: #49454F;
    font-family: Inter;
    font-size: var(--Static-Label-Large-Size, 14px);
    font-style: normal;
    font-weight: 600;
    line-height: var(--Static-Label-Large-Line-Height, 20px);
    letter-spacing: var(--Static-Label-Large-Tracking, 0.1px);
  }
  .btn-action-empty:hover {
    border-radius: 8px; 
    border: 1px solid #49454F; 
    background: #F7F7F7; 
    font-family: Inter; 
    font-size: var(--Static-Label-Large-Size, 14px); 
    font-style: normal; 
    font-weight: 600; 
    line-height: var(--Static-Label-Large-Line-Height, 20px); 
    letter-spacing: var(--Static-Label-Large-Tracking, 0.1px);
  }
  .btn-action-empty:disabled {
    border-radius: 8px; 
    border: 1px solid #49454F; 
    background: #f0cbcb; 
    font-family: Inter; 
    font-size: var(--Static-Label-Large-Size, 14px); 
    font-style: normal; font-weight: 600; 
    line-height: var(--Static-Label-Large-Line-Height, 20px); 
    letter-spacing: var(--Static-Label-Large-Tracking, 0.1px);
  }
  #app-navbar { 
    background-color: var(--Primary-Background); 
    box-shadow: var(--sds-size-depth-0) var(--sds-size-depth-100) var(--sds-size-depth-100) var(--sds-size-depth-negative-025) var(--sds-color-black-200), var(--sds-size-depth-0) var(--sds-size-depth-100) var(--sds-size-depth-100) var(--sds-size-depth-negative-025) var(--sds-color-black-100); 
    z-index:999
  }
  .icon-personal {
    color: var(--Primary-Berry); 
    background-color: var(--Muted-Berry); 
    border-radius: 8.537px;
  }
  .icon-income {
    color: var(--Primary-Green); 
    background-color: var(--Muted-Green); 
    border-radius: 8.537px;
  }
  .icon-expenses {
    color: var(--Primary-Orange); 
    background-color: var(--Muted-Orange); 
    border-radius: 8.537px;
  }
  .icon-savings {
    color: var(--Primary-Purple); 
    background-color: var(--Muted-Purple); 
    border-radius: 8.537px;
  }

  /* LANDING PAGE */
  #landing-header {
    color: var(--Black, #0A0A0A);
    font-family: Inter;
    font-size: 64px;
    font-style: normal;
    font-weight: 700;
    line-height: 82px;
  }
  #landing-subtext {
    color: var(--Black, #0A0A0A);
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
  }
  #landing-card { 
    background: var(--Muted-Green);
    border: none;
  }
  #landing-card2 {
    background: var(--Muted-Purple);
    border: none;
  }
  #landing-card3 {
    background: var(--Muted-Orange);
    border: none;
  }
  .landing-card-header {
    color: var(--Black, #0A0A0A);
    text-align: center;
    font-family: Inter;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.24px;
  }
  .landing-card-text {
    color: var(--Black, #0A0A0A);
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
  }
  .landing-card-icon {
    text-align: center;
    font-size: 76px;
  }

  /* PRICING */
  .pricing-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 2px solid var(--Muted-Purple);
    font-family: Inter;
  }
  .pricing-table { --bs-table-bg: transparent; margin: 0; min-width: 560px; }
  .pricing-table thead th {
    font-size: 20px;
    font-weight: 600;
    padding: 16px;
    border-bottom: 2px solid var(--Muted-Purple);
  }
  .pricing-table th[scope="row"] { font-weight: 500; }
  .pricing-table td, .pricing-table th { padding: 14px 16px; vertical-align: middle; }
  .pricing-col-free { background: var(--Muted-Green) !important; width: 22%; }
  .pricing-col-premium { background: var(--Muted-Purple) !important; width: 28%; }
  thead .pricing-col-premium { background: var(--Primary-Purple) !important; color: #FFF; }
  .pricing-sub { font-size: 13px; font-weight: 400; color: var(--Light-Black); }
  thead .pricing-col-premium .pricing-sub { color: #FFF; }
  .pricing-yes { color: var(--Primary-Green); font-size: 22px; }
  .pricing-col-premium .pricing-yes { color: var(--Primary-Purple); }
  .pricing-no { color: var(--Muted-Black); font-size: 22px; }
  .pricing-table tfoot td { border-bottom: 0; }

  /* NEW PLAN */
  .nav-link-personal.active { 
    background-color: var(--Muted-Berry) !important; 
    color: black !important; 
  }
  .nav-link-income.active { 
    background-color: var(--Muted-Green) !important; 
    color: black !important; 
  }
  .nav-link-expenses.active { 
    background-color: var(--Muted-Orange) !important; 
    color: black !important; 
  }
  .nav-link-savings.active { 
    background-color: var(--Muted-Purple) !important; 
    color: black !important; 
  }
  .nav-link-tips {
    color: var(--Primary-Purple); 
    font-family: Inter; 
    font-size: 14px; 
    font-style: normal; 
    font-weight: 600; 
    line-height: 20px;
  }
  .questionnaire-nav-btn {
    border-radius: 8px; 
    border: 1px solid #49454F; 
    color: #49454F; 
    font-family: Inter; 
    font-size: var(--Static-Label-Large-Size, 14px); 
    font-style: normal; 
    font-weight: 600; 
    line-height: var(--Static-Label-Large-Line-Height, 20px); 
    letter-spacing: var(--Static-Label-Large-Tracking, 0.1px);
  }
  .questionnaire-nav-btn:hover {
    border-radius: 8px; 
    border: 1px solid #49454F; 
    background: #F7F7F7; 
    font-family: Inter; 
    font-size: var(--Static-Label-Large-Size, 14px); 
    font-style: normal; 
    font-weight: 600; 
    line-height: var(--Static-Label-Large-Line-Height, 20px); 
    letter-spacing: var(--Static-Label-Large-Tracking, 0.1px);
  }
  .questionnaire-nav-btn:disabled {
    border-radius: 8px; 
    border: 1px solid #49454F; 
    background: #f0cbcb; 
    font-family: Inter; 
    font-size: var(--Static-Label-Large-Size, 14px); 
    font-style: normal; font-weight: 600; 
    line-height: var(--Static-Label-Large-Line-Height, 20px); 
    letter-spacing: var(--Static-Label-Large-Tracking, 0.1px);
  }
  .appname {color: #FFF; font-family: Inter; font-size: 24px; font-style: normal; line-height: normal; text-decoration: none;}
  .input-name {color: var(--Black-Black-500, #727A90); font-family: Inter; font-size: 14px; font-style: normal; font-weight: 500; line-height: 20px; /* 142.857% */ letter-spacing: 0.07px;}
  .input-field {border-radius: 10px; border: 1px solid var(--Black-Black-200, #DCDEE3); background: var(--White, #FFF); color: var(--Black-Black-500, #727A90); font-family: Inter; font-size: 14px; font-style: normal; font-weight: 400; line-height: 20px; /* 142.857% */ letter-spacing: 0.07px;}
  .dashboard-input-name {color: #6E6E6E; font-family: Inter; font-size: 16px; font-style: normal; font-weight: 500; line-height: 24px; /* 150% */ letter-spacing: 0.08px;}
  .input-select {border: 1px solid var(--Black-Black-200, #DCDEE3); color: var(--Black-Black-500, #727A90); font-family: Inter; font-size: 14px; font-style: normal; font-weight: 400; line-height: 20px; /* 142.857% */ letter-spacing: 0.07px;}
  .dashboard-input-field {color: var(--Black, #0A0A0A); font-family: Inter; font-size: 32px; font-style: normal; font-weight: 600; line-height: normal; letter-spacing: 0.32px;}
  canvas {border-radius: 12px; background: var(--Light-Background);}
  .dashboard-card {background:  var(--Light-Background); border: none;}

  .form-control {height: 40px !important;}
  .form-select {height: 40px !important;}
  .action-icon {color: var(--Primary-Purple);}
  .btn-add {border-radius: 8px; color: var(--Primary-Purple); font-family: Inter; font-size: 14px; font-style: normal; font-weight: 600; line-height: 20px; /* 142.857% */}
  .btn-add:hover {border-radius: 8px; background: #F7F7F7; color: var(--Primary-Purple); font-family: Inter; font-size: 14px; font-style: normal; font-weight: 600; line-height: 20px; /* 142.857% */}
  .btn-add.active {border-radius: 8px; color: var(--Primary-Purple); font-family: Inter; font-size: 14px; font-style: normal; font-weight: 600; line-height: 20px; /* 142.857% */}
  .btn-remove {border-radius: 8px; color: red; font-family: Inter; font-size: 14px; font-style: normal; font-weight: 600; line-height: 20px; /* 142.857% */}
  .btn-remove:hover {border-radius: 8px; background: #F7F7F7; color: red; font-family: Inter; font-size: 14px; font-style: normal; font-weight: 600; line-height: 20px; /* 142.857% */}
  .btn-remove.active {border-radius: 8px; color: red; font-family: Inter; font-size: 14px; font-style: normal; font-weight: 600; line-height: 20px; /* 142.857% */}
  .btn-add:disabled
  .btn-new-plan {border-radius: 8px; background-color: var(--Primary-Purple) !important; color: #FFF; font-family: Inter; font-size: var(--Static-Label-Large-Size, 14px); font-style: normal; font-weight: 600; line-height: var(--Static-Label-Large-Line-Height, 20px); /* 142.857% */ letter-spacing: var(--Static-Label-Large-Tracking, 0.1px);}
  .back-modal {background: var(--Light-Background);}
  .dashboard-modal {background: var(--Light-Background);}
  .dashboard-modal-footer {background: var(--Light-Background) !important;}
  .btn-edit-income {background-color: var(--Muted-Green); color: var(--Primary-Black); text-align: center; font-family: Inter; font-size: var(--Static-Title-Small-Size, 14px); font-style: normal; font-weight: 500; line-height: var(--Static-Title-Small-Line-Height, 20px); /* 142.857% */ letter-spacing: var(--Static-Title-Small-Tracking, 0.1px);}
  .btn-edit-expenses {background-color: var(--Muted-Orange); color: var(--Primary-Black); text-align: center; font-family: Inter; font-size: var(--Static-Title-Small-Size, 14px); font-style: normal; font-weight: 500; line-height: var(--Static-Title-Small-Line-Height, 20px); /* 142.857% */ letter-spacing: var(--Static-Title-Small-Tracking, 0.1px);}
  .btn-edit-savings {background-color: var(--Muted-Purple); color: var(--Primary-Black); text-align: center; font-family: Inter; font-size: var(--Static-Title-Small-Size, 14px); font-style: normal; font-weight: 500; line-height: var(--Static-Title-Small-Line-Height, 20px); /* 142.857% */ letter-spacing: var(--Static-Title-Small-Tracking, 0.1px);}
  .expense-entry-header {color: var(--Black-Black-500, #727A90); font-family: Inter; font-size: 18px; font-style: normal; font-weight: 600; letter-spacing: 0.07px;}
  .expense-name {color: var(--Black-Black-500, #727A90); font-family: Inter; font-size: 18px; font-style: normal; font-weight: 600; letter-spacing: 0.07px;}
  .nav-header{color: #000; font-family: Inter; font-size: 32px; font-style: normal; font-weight: 700; line-height: normal;}
  .nav-link {color: var(--Primary-Black); text-align: center; font-family: Inter; font-size: var(--Static-Title-Small-Size, 14px); font-style: normal; font-weight: 500; line-height: var(--Static-Title-Small-Line-Height, 20px); /* 142.857% */ letter-spacing: var(--Static-Title-Small-Tracking, 0.1px);}
  .nav-link:hover {color: var(--Light-Black)}
  .nav-link:focus {color: var(--Light-Black)}
  .section-title-personal { color: var(--Primary-Black); color: #0C0D0F; font-family: Inter; font-size: 20px; font-style: normal; font-weight: 600; line-height: 28px; /* 155.556% */}
  .section-title-income { color: var(--Primary-Black); color: #0C0D0F; font-family: Inter; font-size: 20px; font-style: normal; font-weight: 600; line-height: 28px; /* 155.556% */}
  .section-title-expenses { color: var(--Primary-Black); color: #0C0D0F; font-family: Inter; font-size: 20px; font-style: normal; font-weight: 600; line-height: 28px; /* 155.556% */}
  .section-title-savings { color: var(--Primary-Black); color: #0C0D0F; font-family: Inter; font-size: 20px; font-style: normal; font-weight: 600; line-height: 28px; /* 155.556% */}
  .tip-card-personal { background-color: var(--Light-Background); border-left: 5px solid var(--Primary-Berry); border-radius: .25rem;}
  .tip-card-income { background-color: var(--Light-Background); border-left: 5px solid var(--Primary-Green); border-radius: .25rem;}
  .tip-card-expenses { background-color: var(--Light-Background); border-left: 5px solid var(--Primary-Orange); border-radius: .25rem;}
  .tip-card-savings { background-color: var(--Light-Background); border-left: 5px solid var(--Primary-Purple); border-radius: .25rem;}
  .income-entry-card {background-color: var(--Light-Background); border: 2px solid var(--Muted-Green); border-radius: .25rem;}
  .expense-entry-card {background-color: var(--Light-Background); border: 2px solid var(--Muted-Orange); border-radius: .25rem;}
  .saving-entry-card {background-color: var(--Light-Background); border: 2px solid var(--Muted-Purple); border-radius: .25rem;}
  .accordion-saving { border: 2px solid var(--Muted-Purple); border-radius: .25rem;}
  .accordion-savings-body { background-color: var(--Light-Background);}
  .accordion-button-savings { background-color: #F5F4F2 !important; color: var(--Primary-Purple) !important; font-family: Inter; font-size: 16px; font-style: normal; font-weight: 600; letter-spacing: 0.07px;}
  .accordion-income { border: 2px solid var(--Muted-Green); border-radius: .25rem;}
  .accordion-income-body { background-color: var(--Light-Background);}
  .accordion-button-income { background-color: #F5F4F2 !important; color: var(--Primary-Green) !important; font-family: Inter; font-size: 16px; font-style: normal; font-weight: 600; letter-spacing: 0.07px;}
  .accordion-expense { border: 2px solid var(--Muted-Orange); border-radius: .25rem;}
  .accordion-expenses-body { background-color: var(--Light-Background);}
  .accordion-button-expenses { background-color: #F5F4F2 !important; color: var(--Primary-Orange) !important; font-family: Inter; font-size: 16px; font-style: normal; font-weight: 600; letter-spacing: 0.07px;}
  /* .btn-success { background-color: var(--income-dark); border: none; }
  .btn-success:hover { background-color: var(--income); color: black; }
  .btn-success:focus, .btn-success:active {background-color: var(--income-dark) !important; border: none !important; box-shadow: 0 0 0 0.25rem var(--income-light) !important; color: #fff !important;}
  .btn-outline-success:hover { background-color: var(--income-dark); color: #fff !important;}
  .btn-outline-success:focus, .btn-outline-success:active {background-color: var(--income-dark) !important; border: none !important; box-shadow: 0 0 0 0.25rem var(--income-light) !important; color: #fff !important;}
  .btn-primary { background-color: var(--black); border: none; }
  .btn-primary:hover { background-color: var(--black-light); }
  .btn-primary:focus, .btn-primary:active {background-color: var(--black-dark) !important; border: none !important; box-shadow: 0 0 0 0.25rem var(--black-light) !important; color: #fff !important;}
  .btn-secondary { background-color: var(--savings-dark); border: none; }
  .btn-secondary:hover { background-color: var(--savings); color: black; }
  .btn-secondary:focus, .btn-secondary:active {background-color: var(--savings-dark) !important; border: none !important; box-shadow: 0 0 0 0.25rem var(--savings-light) !important; color: #fff !important;}
  .btn-warning { background-color: var(--personal-dark); border: none; color: #fff !important;}
  .btn-warning:hover { background-color: var(--personal); color: black !important; }
  .btn-warning:focus, .btn-warning:active {background-color: var(--personal-dark) !important; border: none !important; box-shadow: 0 0 0 0.25rem var(--personal-light) !important; color: #fff !important;} */
  /* .btn-danger { background-color: var(--expenses-dark); border: none; color: #fff !important;}
  .btn-danger:hover { background-color: var(--expenses); color: black !important; }
  .btn-danger:focus, .btn-warning:active {background-color: var(--expenses-dark) !important; border: none !important; box-shadow: 0 0 0 0.25rem var(--expenses-light) !important; color: #fff !important;} */
  #navbar-main { background-color: var(--Primary-Black); z-index:1000;}
  .dropdown-menu { position: absolute; z-index: 1050;}
  #footer { background-color: var(--Light-Black) !important; width: 100%; color: #d9d9d9; text-align: left; padding: 2.5rem 0 1.25rem; }
  #footer .footer-inner { max-width: 1100px; padding: 0 1.25rem; }
  #footer .footer-brand { color: #fff; font-size: 1.25rem; text-decoration: none; }
  #footer .footer-tagline { color: #bdbdbd; font-size: .9rem; max-width: 34ch; }
  #footer .footer-heading { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: .75rem; }
  #footer li { margin-bottom: .4rem; }
  #footer a:not(.footer-brand) { color: #d9d9d9; text-decoration: none; font-size: .9rem; }
  #footer a:not(.footer-brand):hover, #footer a:not(.footer-brand):focus-visible { color: #fff; text-decoration: underline; }
  #footer .footer-divider { border-color: rgba(255,255,255,.2); margin: 1.75rem 0 1rem; opacity: 1; }
  #footer .footer-legal { font-size: .8rem; color: #a8a8a8; }
  .site {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: minmax(0, 1fr);
  }
  .form-control:focus 
  {
    border-color: var(--black-light);
    box-shadow: inset 0 1px 1px var(--black-mute), 0 0 8px var(--black-dark);
  }
  .form-select:focus 
  {
    border-color: var(--black-light);
    box-shadow: inset 0 1px 1px var(--black-mute), 0 0 8px var(--black-dark);
  }
  /* .accordion-button::after {
    filter: brightness(0) invert(1);
  } */
  .modal-header-income { background-color: var(--Primary-Green); color: white;}
  .modal-header-expenses { background-color: var(--Primary-Orange); color: white;}
  .modal-header-savings { background-color: var(--Primary-Purple); color: white;}
  .modal-body-income { background-color: var(--Primary-Background); }
  .modal-subheader-income {background-color: var(--income); color: black;}
  .modal-body-expenses { background-color: var(--Primary-Background); }
  .modal-subheader-expenses {background-color: var(--expenses); color: black;}
  .modal-body-savings { background-color: var(--Primary-Background); }
  .modal-subheader-savings {background-color: var(--savings); color: black;}
  .modal-footer {background-color: var(--Light-Black);}

  .dashboard-card-header { background-color: var(--black); color: white}
  .dashboard-card-body-good {background-color: var(--income-mute); color: var(--income-dark);}
  .dashboard-card-body-bad {background-color: var(--expenses-mute); color: var(--expenses-dark)}
  .table-striped {--bs-table-striped-bg: rgba(0, 0, 0, 0.04);}
footer {
    padding: 20px 0;
    text-align: center;
    background: #f1f1f1;
    color: #666;
    }

.accordion-button:focus {
    box-shadow: none;
}

.form-check-input:checked {
    background-color: #0f0f0d;
    border-color: #040404;
    box-shadow: 0 0 0 0.25rem #f9f9f9; /* Green glow */
}

th {
  color: rgba(0, 0, 0, 0.87);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Inter;
  font-size: var(--font-size-0875-rem, 14px);
  font-style: normal;
  font-weight: 600;
  line-height: 24px; /* 171.429% */
  letter-spacing: 0.17px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  text-align: start;
}

td {
  color: rgba(0, 0, 0, 0.87);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Inter;
  font-size: var(--font-size-0875-rem, 14px);
  font-style: normal;
  font-weight: 400;
  line-height: 143%; /* 20.02px */
  letter-spacing: 0.17px;
}

tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12) ;
}

/* Inline field messages stay hidden until validation shows them */
.form-error-text {
  display: none;
}
.promo-banner{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.5rem 2.5rem;background:var(--bs-warning-bg-subtle,#fff3cd);color:var(--bs-warning-text-emphasis,#664d03);text-align:center;font-size:.95rem;position:relative}
.promo-banner[hidden]{display:none}
.promo-close{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);background:none;border:0;font-size:1.4rem;line-height:1;color:inherit;cursor:pointer}

#site-top{z-index:1030}
#app-navbar.sticky-top{top:var(--site-top-h,0)}
@media (max-width:575.98px){.promo-banner{font-size:.8rem;padding:.35rem 2rem}}

.feature-img{width:100%;height:auto;border-radius:1rem;box-shadow:0 .75rem 2rem rgba(40,92,83,.18)}

.faq-block{background:var(--Light-Green);border-radius:1.5rem;padding:2.5rem 1.5rem}
.faq-block .faq-accordion{max-width:800px;margin:0 auto}
.faq-accordion{--bs-accordion-border-width:0;--bs-accordion-bg:transparent}
.faq-accordion .accordion-item{background:#fff;border:1px solid var(--Muted-Green);border-radius:.75rem;margin-bottom:.6rem;overflow:hidden}
.faq-accordion .accordion-button{background:#fff;color:var(--Primary-Green);font-weight:600;box-shadow:none;padding:1rem 1.25rem}
.faq-accordion .accordion-button:not(.collapsed){background:var(--Light-Background);color:var(--Primary-Green)}
.faq-accordion .accordion-button:focus{box-shadow:0 0 0 .2rem rgba(40,92,83,.25)}
.faq-accordion .accordion-body{color:var(--Light-Black);line-height:1.6;padding:.25rem 1.25rem 1.25rem}
@media (max-width:575.98px){.faq-block{padding:1.75rem .75rem;border-radius:1.1rem}}

.plan-summary-card{background:linear-gradient(135deg,#285C53 0%,#1d4640 100%);color:#fff;border:0;border-radius:1.25rem;box-shadow:0 .75rem 2rem rgba(40,92,83,.25)}
.plan-summary-card .card-body{padding:1.75rem}
.plan-summary-eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;font-weight:600;color:rgba(255,255,255,.7)}
.plan-summary-title{font-size:1.5rem;font-weight:700;color:#fff}
.plan-kpi{background:rgba(255,255,255,.12);border-radius:.85rem;padding:.8rem .25rem}
.plan-kpi .small{color:rgba(255,255,255,.75)}
.plan-summary-primary{background:var(--Primary-Orange);color:#fff;border:0;font-weight:600}
.plan-summary-primary:hover{background:#d4571f;color:#fff}
.plan-summary-card .btn-outline-light:hover{color:var(--Primary-Green)}

@media (max-width:1199.98px){
  .step-nav{display:grid !important;grid-template-columns:1fr 1fr;gap:.25rem;width:100%;flex:0 0 100%;order:3;margin-bottom:.5rem}
  .step-nav .nav-link{white-space:nowrap;text-align:center}
}

@media (max-width:575.98px){
  .col-6 > .btn.btn-lg{padding:.5rem .65rem;font-size:.95rem;white-space:nowrap}
}

#landing-header{font-size:clamp(2rem,9vw,4rem);line-height:1.2;overflow-wrap:break-word}
@media (min-width:992px){#landing-header{font-size:64px;line-height:82px}}
