body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fffdf9;
  color: #333;
}

/* Container for max-width on large screens */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 30px;
  background-color: #fdfdfd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 32px; /* adjust text size here */
  font-weight: bold;
  color: #045d56;
  gap: 12px;
}

.logo img {
  height: 50px; /* Reduced height to save more space */
  width: auto;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2vw 8vw;
  gap: clamp(16px, 4vw, 48px);
  flex-wrap: wrap;
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 48px);
  flex-wrap: wrap;
  width: 100%;
}

.text {
  flex: 1;
  min-width: 300px;
  text-align: center;
  margin: 0 auto; 
}

.text h1 {
  font-size: clamp(28px, 6vw, 48px);
  color: #045d56;
  text-align: center;
}

.desktop-title {
  display: block;
}

.mobile-title {
  display: none;
}

.text p {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  margin-top: clamp(8px, 2vw, 16px);
  max-width: clamp(260px, 90vw, 900px);
  color: #444;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.buttons {
  margin-top: 30px;
}

.btn {
  padding: 0 clamp(16px, 4vw, 32px);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  text-decoration: none;
  margin-right: clamp(8px, 2vw, 20px);
  border-radius: clamp(4px, 1vw, 10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: 60px;
  box-sizing: border-box;
  letter-spacing: 0.5px;
}

.btn.green {
  background-color: #045d56;
  color: #fff;
}

.btn.outline {
  border: 2px solid #045d56;
  color: #045d56;
}

.puppy-container {
  position: relative; /* anchor for the coin */
  display: inline-block;
  width: clamp(135px, 27vw, 280px); /* reduced width to make image smaller */
}

.puppy-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive display logic - Default: Show desktop image */
.desktop-image {
  display: block;
}

.mobile-card {
  display: none !important;
}

/* Global box-sizing */
* { 
  box-sizing: border-box; 
}

/* CRED-style card */
.cred-card {
  position: relative;
  flex: 0 0 auto;          /* don't shrink in flex parents */
  width: clamp(320px, 92vw, 440px);
  max-width: 100%;
  margin: 16px auto;
  border-radius: 16px;
  background: #171717;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-icon {
  padding: 8px;
  border-radius: 12px;
  background: #262626;
  color: rgba(255, 255, 255, 0.8);
}

.header-text {
  display: flex;
  flex-direction: column;
}

.month-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.month-name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
}

.header-right {
  text-align: right;
}

.spend-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.spend-amount {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.budget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.budget-amount {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.progress-container {
  margin-bottom: 16px;
}

.progress-bar {
  height: 8px;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #045d56, #033c3a);
  border-radius: 9999px;
  width: 74%;
  animation: progressFill 0.8s ease-out;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 74%; }
}

.progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.remaining {
  font-variant-numeric: tabular-nums;
}

.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.btn-secondary {
  flex: 1 1 auto;
  white-space: nowrap;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-primary {
  flex: 1 1 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  background: #045d56;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: #033c3a;
}

.btn-primary:active {
  transform: scale(0.98);
}

.action-buttons svg { 
  flex: 0 0 auto; 
}

.reminder-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9999px;
  background: #045d56;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  animation: badgeAppear 0.4s ease-out 0.4s both;
}

@keyframes badgeAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.reminder-popup {
  margin-top: 16px;
  border-radius: 16px;
  background: #f0f9f8;
  padding: 12px;
  color: #045d56;
  animation: popupAppear 0.4s ease-out 0.6s both;
}

@keyframes popupAppear {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.popup-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.popup-bold {
  font-weight: 600;
}

.dismiss-btn {
  margin-left: 8px;
  border-radius: 8px;
  background: white;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  color: #045d56;
  border: 1px solid #a8d5d0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dismiss-btn:hover {
  background: #f0f9f8;
}

/* Hide popup initially */
.reminder-popup.hidden {
  display: none;
}

/* Treemap card styling */
.desktop-feature-image {
  display: block;
}

.mobile-feature-card {
  display: none;
}

.budget-cards-container.mobile-feature-card {
  display: none;
}

.treemap-card {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  background: #171717;
  padding: 16px;
  padding-bottom: 12px;       /* slightly tighten bottom padding */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  box-sizing: border-box;
  height: auto;               /* never fill parent's height */
  align-self: flex-start;     /* opt out of flex stretching if any */
}

.treemap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.treemap-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.treemap-icon {
  padding: 8px;
  border-radius: 12px;
  background: #262626;
  color: rgba(255, 255, 255, 0.8);
}

.treemap-header-text {
  display: flex;
  flex-direction: column;
}

.treemap-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.treemap-month {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
}

.treemap-header-right {
  text-align: right;
}

.treemap-total-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.treemap-total-amount {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.treemap-container {
  position: relative;
  width: 100%;
  /* use width-responsive height */
  height: clamp(200px, 45vw, 300px);   /* tweak middle % to taste */
  aspect-ratio: auto;                  /* ensure we honor height above */
  background: #0a0a0a;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 8px;
}

.treemap-rect {
  position: absolute;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  box-sizing: border-box;
}

.treemap-label {
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  margin-bottom: 2px;
}

.treemap-value {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.treemap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0; /* tidy legend so it doesn't push the card taller than needed */
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px; /* slightly tighter padding */
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile responsive adjustments for CRED card */
@media (max-width: 768px) {
  /* Switch display logic for mobile */
  .desktop-image {
    display: none !important;
  }
  
  .mobile-card {
    display: block !important;
  }

  /* Switch display logic for feature images */
  .desktop-feature-image {
    display: none !important;
  }
  
  .mobile-feature-card {
    display: block !important;
  }
  
  /* Let the card breathe - override puppy-container constraints */
  .puppy-container {
    display: block;       /* not inline-block */
    width: 100%;          /* stop constraining width */
    max-width: none;
  }

  .cred-card.mobile-card {
    width: min(92vw, 440px);
    max-width: 100%;
    margin: 16px auto;    /* center it */
    padding: 16px;
    border-radius: 12px;
  }
  
  .spend-amount {
    font-size: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .btn-secondary,
  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Allow the popup to wrap so buttons don't push out */
  .reminder-popup .popup-content {
    flex-wrap: wrap;
  }
  .dismiss-btn {
    margin-left: 0;       /* no overflow on narrow widths */
  }

  /* Fix feature-image width constraints for mobile */
  .feature-image {
    width: 100% !important;
    max-width: none !important;
  }

  /* Ensure treemap card matches other feature cards width */
  .treemap-card {
    width: 100%;
    max-width: 100%;
  }

  /* Treemap mobile adjustments - now uses responsive height */
  /* .treemap-container height is now responsive via clamp() above */

  .treemap-label {
    font-size: 10px;
  }

  .treemap-value {
    font-size: 9px;
  }

  .treemap-legend {
    gap: 6px;
  }

  .legend-item {
    font-size: 10px;
    padding: 3px 6px;
  }

  .legend-color {
    width: 10px;
    height: 10px;
  }
}

.coin-animation {
  position: absolute;
  top: clamp(54%, 5vw, 74%); /* 🧪 tweak as needed */
  left: clamp(32%, 5vw, 53%); /* 🧪 tweak as needed */
  width: clamp(120px, 4vw, 320px); /* responsive coin size */
  height: auto;
  z-index: 10;
  pointer-events: none;
}


.features {
  display: flex;
  gap: clamp(20px, 5vw, 60px);
  padding: clamp(30px, 6vw, 80px) clamp(20px, 5vw, 60px);
  background-color: #f3fefb;
  flex-wrap: wrap;
}

.features .container {
  display: flex;
  gap: clamp(20px, 5vw, 60px);
  flex-wrap: wrap;
  width: 100%;
}

.feature {
  flex: 1 1 clamp(250px, 45%, 400px); /* adaptive width */;
  min-width: 250px;
}

.feature h3 {
  font-size: clamp(18px, 3vw, 24px);
  color: #045d56;
}
.feature p {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
}
.product-features {
  padding: 8vw 8vw 6vw 8vw;
  background-color: #fefdf7;
  overflow: hidden;
}

.product-features .container {
  width: 100%;
}

.features-scroll-container {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-snap-type: x mandatory;
}

.features-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.feature-card {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  flex: 0 0 100%;
  width: 100%;
  padding: 20px;
  scroll-snap-align: start;
  box-sizing: border-box;
  position: relative;
}

.feature-image {
  flex: 0 0 auto;
  width: clamp(135px, 27vw, 280px);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.feature-content {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.feature-content h2 {
  font-size: clamp(28px, 6vw, 48px);
  color: #045d56;
  margin-bottom: 16px;
}

.feature-content h3 {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  color: #444;
  max-width: clamp(260px, 90vw, 700px);
  margin: 0 auto;
  text-align: center;
}

.scroll-indicator {
  margin-top: 20px;
  text-align: center;
  opacity: 0.7;
}

.scroll-text {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: #045d56;
  border: none;
  border-radius: 0;
  width: 64px;
  height: 64px;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.nav-arrow:hover {
  background: none;
  transform: translateY(-50%) scale(1.1);
  color: #033c3a;
}

.next-arrow {
  top: 10px;
  right: 20px;
}

.prev-arrow {
  top: 10px;
  right: 20px;
}


.reminder-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6vw 8vw;
  gap: clamp(16px, 4vw, 48px);
  flex-wrap: wrap;
  background-color: #fefdf7;
}

.reminder-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 48px);
  flex-wrap: wrap;
  width: 100%;
}

.reminder-section .text {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.reminder-section .text h2 {
  font-size: clamp(28px, 6vw, 48px);
  color: #045d56;
  text-align: center;
}

.reminder-section .text h3 {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  margin-top: clamp(8px, 2vw, 16px);
  max-width: clamp(260px, 90vw, 700px);
  color: #444;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.phone-visual {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
}

.phone-visual img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.testimonials {
  background-color: #fefdf7;
  padding: 60px 40px;
  text-align: center;
}

.testimonials .container {
  width: 100%;
}

.testimonials h2 {
  font-size: 3rem;
  color: #257e6a;
  margin-bottom: 40px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: #257e6a;
  color: white;
  padding: 20px;
  border-radius: 25px;
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 1.1rem;
}

.testimonial-card .icon {
  width: 24px;
  height: 24px;
  align-self: flex-end;
  margin-top: 10px;
}

.contact-section {
  padding: 60px 20px;
  background-color: #fdfaf5;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.contact-text {
  flex: 1;
  text-align: center;
  font-size: 1.2rem;
}

.contact-text h2 {
  font-size: 2.5rem;
  color: #045d56;
  margin-bottom: 20px;
}

.contact-text a {
  color: #045d56;
  text-decoration: none;
  font-weight: bold;
}

.contact-image img {
  max-width: 280px;
  height: auto;
  object-fit: cover;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.modal-content {
  background-color: #ffffff;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  margin: auto;
  box-sizing: border-box;
}

.modal-content h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #045d56;
  text-align: center;
}

.modal-content label {
  display: block;
  margin-bottom: 6px;
  margin-top: 16px;
  font-weight: 500;
  color: #333;
}

.modal-content input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.modal-content button {
  background-color: #045d56;
  color: white;
  padding: 12px;
  margin-top: 16px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-content button:hover {
  background-color: #033c3a;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}

.success-message {
  text-align: center;
  padding: 40px 20px;
  color: #045d56;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  background-color: #f0f9f8;
  border-radius: 12px;
  margin-top: 20px;
  border: 2px solid #045d56;
}

.success-message.hidden {
  display: none;
}

/* Hamburger button styles */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

.site-footer {
  text-align: center;
  padding: 20px;
  background-color: #f3f3f3;
  font-size: 14px;
  color: #555;
}

.site-footer .footer-links a {
  color: #555;
  text-decoration: none;
  margin: 0 10px;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-content {
  padding: 1rem;
}

.blog-content h2 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 0.5rem 0;
}

.blog-content p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  color: #27ae60;
  font-weight: bold;
  text-decoration: none;
}


/* Mobile styles */
@media (max-width: 768px) {
  .coin-animation {
    top: 55%;
    left: 33%;
    width: 60px;
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 6px 20px;
  }

  .navbar .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #045d56;
    order: 2; /* Push hamburger to the right */
  }

  .logo {
    order: 1; /* Keep logo on the left */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Below navbar */
    right: 0;  /* Align to the right */
    width: 80%; /* Not full screen */
    left: auto;
    background-color: #fdfdfd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
    border-radius: 0 0 0 12px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }

  .nav-links a {
    padding: 10px 20px;
  }

  /* Adjust arrow sizes for mobile */
  .nav-arrow {
    width: 48px;
    height: 48px;
    font-size: 24px;
    background: none;
    color: #045d56;
    border: none;
    border-radius: 0;
    font-weight: bold;
  }

  /* Mobile button height */
  .btn {
    height: 60px;
    font-size: clamp(36px, 5vw, 44px); /* Larger mobile button */
    padding: 0 clamp(20px, 5vw, 36px);
  }

  /* Mobile modal adjustments */
  .modal-content {
    width: 90%;
    max-width: 320px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin: 0 auto !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  }

  /* Ensure modal stays within viewport */
  .modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    padding: 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6); /* backdrop */
  }

  .modal-content input,
  .modal-content button {
    width: 100%;
    box-sizing: border-box;
  }



  .nav-arrow:hover {
    background: none;
    transform: translateY(-50%) scale(1.05);
    color: #033c3a;
  }
}

.nav-links li {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    width: 100%;
}

.nav-links a {
    display: block;
    width: 100%;
    text-align: left;
    font-weight: 500;
    color: #333;
    white-space: nowrap; /* 👈 prevents "Contact Us" from breaking into 2 lines */
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: block;
    font-size: clamp(56px, 12vw, 96px); /* 50% larger than original clamp(28px, 6vw, 48px) */
  }

  .text p {
    display: none;
  }

  .puppy-and-coin {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .puppy-image {
    max-width: 180px;
    height: auto;
  }

  .text {
    width: 90%;
  }

  .buttons {
    display: flex;
    justify-content: center;
  }
}

/* Extra mobile breakpoint for very small screens */
@media (max-width: 480px) {
  .logo {
    font-size: 24px;
  }

  .logo img {
    height: 40px;
  }

  .text h1 {
    font-size: 22px;
  }

  .text p {
    font-size: 16px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 16px;
    margin-right: 8px;
  }

  .testimonial-card {
    font-size: 1rem;
    padding: 16px;
  }

  .blog-thumbnail {
    height: 150px;
  }

  .feature-card {
    flex-direction: column;
    text-align: center;
  }

  .feature-image {
    margin-bottom: 16px;
  }

  .nav-links {
    width: 90%;
  }

  .hero-section {
    padding: 16px;
  }

  .features {
    padding: 40px 20px;
  }

  .product-features {
    padding: 60px 20px 40px 20px;
  }

  .reminder-section {
    padding: 40px 20px;
  }

  .contact-section {
    padding: 40px 16px;
  }

  /* Even smaller arrows for very small screens */
  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Budget Cards Styling */
.budget-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.budget-setup-card {
  width: 100%;
  border-radius: 16px;
  background: #171717;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  box-sizing: border-box;
}

.budget-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.budget-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.budget-icon {
  padding: 8px;
  border-radius: 12px;
  background: #262626;
  color: rgba(255, 255, 255, 0.8);
}

.budget-header-text {
  display: flex;
  flex-direction: column;
}

.budget-month-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.budget-month-name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
}

.budget-header-right {
  text-align: right;
}

.budget-target-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.budget-target-amount {
  font-size: 20px;
  font-weight: 600;
  color: white;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.budget-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.budget-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.budget-currency {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
}

.budget-amount-input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

.budget-amount-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.budget-steppers {
  display: flex;
  gap: 4px;
}

.budget-stepper-btn {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.budget-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.budget-stepper-btn:active {
  transform: scale(0.99);
}

.budget-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #045d56;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.budget-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #045d56;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.budget-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.budget-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  background: #045d56;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.budget-save-btn:hover {
  background: #033c3a;
}

.budget-save-btn:active {
  transform: scale(0.99);
}

.budget-saved-toast {
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  padding: 8px 12px;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 12px;
  text-align: center;
}

/* Category Budget Card */
.category-budget-card {
  width: 100%;
  border-radius: 16px;
  background: #171717;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, sans-serif;
  box-sizing: border-box;
}

.category-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.category-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-icon {
  padding: 8px;
  border-radius: 12px;
  background: #262626;
  color: rgba(255, 255, 255, 0.8);
}

.category-header-text {
  display: flex;
  flex-direction: column;
}

.category-month-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.category-month-name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
}

.category-header-right {
  text-align: right;
}

.category-total-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.category-total-amount {
  font-size: 20px;
  font-weight: 600;
  color: white;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.category-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-select {
  min-width: 144px;
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  font-size: 14px;
  color: white;
  outline: none;
}

.category-select:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.category-select option {
  background: #1f2937;
  color: white;
}

.category-amount-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-currency {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
}

.category-amount-input {
  width: 112px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  outline: none;
}

.category-amount-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.category-steppers {
  display: flex;
}

.category-stepper-btn {
  margin-left: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-stepper-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.category-stepper-btn:active {
  transform: scale(0.99);
}

.category-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.category-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #045d56;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #045d56;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.category-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-reset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.category-reset-btn:active {
  transform: scale(0.99);
}

.category-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  background: #045d56;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-save-btn:hover {
  background: #033c3a;
}

.category-save-btn:active {
  transform: scale(0.99);
}

.category-saved-toast {
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.1);
  padding: 8px 12px;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 12px;
  text-align: center;
}

/* ✅ Unify card widths on mobile and avoid parent shrink */
@media (max-width: 768px) {
  /* Give both cards the same width model as the spend card */
  .cred-card.mobile-card,
  .treemap-card.mobile-feature-card,
  .budget-cards-container.mobile-feature-card {
    width: min(92vw, 440px);
    max-width: 100%;
    margin: 16px auto; /* center */
  }

  /* Stop the feature wrapper from stealing horizontal space */
  .product-features { padding-left: 0; padding-right: 0; }
  .features-scroll-container { padding-left: 0; padding-right: 0; }
  .feature-card { padding-left: 0; padding-right: 0; }

  /* On mobile, make the wrapper a normal block so it doesn't impose height */
  .feature-image {
    display: block;           /* was flex in your overrides */
    flex: 0 0 auto;           /* don't try to grow/shrink vertically */
    width: 100% !important;
    max-width: none !important;
  }

  /* Make sure legend wraps nicely and never pushes width */
  .treemap-legend { flex-wrap: wrap; }

  /* Show budget cards on mobile */
  .budget-cards-container.mobile-feature-card {
    display: flex !important;
  }
}

/* Desktop: Ensure mobile feature cards are hidden */
@media (min-width: 769px) {
  .mobile-feature-card {
    display: none !important;
  }
  
  .desktop-feature-image {
    display: block !important;
  }
}

/* Feature Headers - Removed as text is now inline with images */

/* Social Links */
.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link.linkedin {
  background: #0077b5;
  color: white;
}

.social-link.linkedin:hover {
  background: #005885;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.social-link.instagram {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  color: white;
}

.social-link.instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(188, 24, 136, 0.3);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Mobile social links */
@media (max-width: 768px) {
  .social-links {
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
  }
  
  .social-link {
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #045d56;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(4, 93, 86, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.scroll-to-top:hover {
  background: #033c3a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 93, 86, 0.4);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
  
  /* Mobile adjustments for feature headers - removed as text is now inline */
}
