* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body, "Hanken Grotesk", sans-serif);
  background: var(--color-paper, #0b1619);
  color: #e7fbf8;
}





.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}





.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}



.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent, #0071E3);
  transition: width 0.3s ease;
}



.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
}

.container {
  max-width: 600px;
  margin: auto;
  padding: 20px;
}

h1 {
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #6E6E73;
  margin-bottom: 20px;
}

.card {
  background: var(--color-paper-2, #102126);
  padding: 20px;
  border-radius: 12px;
}

label {
  margin-top: 12px;
  display: block;
}

input[type="number"],
select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #041116;
  color: white;
  margin-top: 5px;
}

input[type="range"] {
  width: 100%;
  margin-top: 5px;
  accent-color: #0071E3;
}

.tenure-row {
  display: flex;
  gap: 10px;
}

.tenure-row input {
  flex: 2;
}

.tenure-row select {
  flex: 1;
}

button {
  margin-top: 20px;
  padding: 12px;
  width: 100%;
  background: #0071E3;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background: #14b8a6;
}

.result {
  margin-top: 20px;
  background: #041116;
  padding: 15px;
  border-radius: 8px;
}

.result span {
  font-weight: bold;
  color: #7dd3a8;
}

.amount-words {
  font-size: 13px;
  color: #6E6E73;
  margin-top: 4px;
  font-style: italic;
}

.words {
  display: block;
  font-size: 12px;
  color: #6E6E73;
  margin-top: 4px;
  font-style: italic;
}

.prepayment-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--color-rule, #1e3f46);
}

.prepayment-section h2 {
  margin: 0;
  font-size: 20px;
}

.section-description {
  color: #6E6E73;
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 12px;
}

.prepayment-impact {
  margin-top: 16px;
  padding: 14px;
  background: #041116;
  border-radius: 8px;
}

.prepayment-impact h3 {
  margin: 0 0 10px;
  color: #e7fbf8;
  font-size: 16px;
}

.prepayment-rows {
  display: grid;
  gap: 12px;
}

.prepayment-row {
  display: grid;
  grid-template-columns: 1fr 1fr 90px;
  gap: 12px;
  align-items: start;
}

.prepayment-row > div {
  display: flex;
  flex-direction: column;
}

.prepayment-row label {
  margin-top: 0;
  min-height: 42px;
  display: flex;
  align-items: flex-start;
}

.prepayment-actions {
  display: flex;
  gap: 6px;
  padding-top: 47px;
}

.add-prepayment,
.remove-prepayment {
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.add-prepayment:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.impact-summary {
  color: #1D1D1F;
  margin: 0 0 14px;
}

.impact-highlight {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.impact-highlight strong {
  color: #7dd3a8;
  font-size: 22px;
}

.impact-highlight span,
.comparison-grid span,
.comparison-grid small {
  color: #6E6E73;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.comparison-grid > div {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid var(--color-rule, #1e3f46);
}

.comparison-grid strong {
  color: #e7fbf8;
}

.comparison-grid small {
  font-size: 11px;
}

@media (max-width: 480px) {
  .prepayment-row {
    grid-template-columns: 1fr 90px;
  }

  .prepayment-row > .prepayment-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-direction: column;
    padding-top: 0;
  }

  .prepayment-row label {
    min-height: 0;
  }
}

/* Remove arrows in Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove arrows in Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}
.seo-section {
  margin-top: 40px;
  color: #1D1D1F;
}

.seo-section h2 {
  margin-top: 20px;
}

.seo-section a {
  color: #8df7ec;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(141, 247, 236, 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.seo-section a:hover,
.seo-section a:focus {
  color: #f4bd62;
  text-decoration-color: #f4bd62;
}

.footer {
  background: linear-gradient(135deg, var(--color-paper, #0b1619) 0%, var(--color-paper-2, #102126) 100%);
  border-top: 2px solid #0071E3;
  padding: 60px 40px 20px 40px;
  margin-top: 80px;
  color: #1D1D1F;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  color: #fff;
  margin: 0 0 15px 0;
  background: var(--color-accent, #0071E3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section h4 {
  font-size: 15px;
  color: #1D1D1F;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.footer-section p {
  font-size: 14px;
  color: #6E6E73;
  line-height: 1.6;
  margin: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #1D1D1F;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: #0071E3;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--color-rule, #1e3f46);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #86868B;
}

@media (max-width: 768px) {
  

  

  

  

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 15px;
    right: 15px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: linear-gradient(135deg, var(--color-paper-2, #102126) 0%, var(--color-paper, #0b1619) 100%);
    border: 1px solid var(--color-rule, #1e3f46);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }

  

  .nav-links a:hover,
  .nav-links a:focus {
    background: rgba(34, 199, 184, 0.12);
  }

  .nav-links a::after {
    display: none;
  }

  .navbar.nav-open .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-rule, #1e3f46);
    border-radius: 8px;
    background: rgba(7, 28, 32, 0.72);
    color: #1D1D1F;
    font: inherit;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle:hover,
  .menu-toggle:focus {
    background: rgba(34, 199, 184, 0.12);
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1D1D1F;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .navbar.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .footer {
    padding: 40px 20px 15px 20px;
  }

  .footer-content {
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-section h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  

  

  

  .nav-links {
    left: 10px;
    right: 10px;
  }

  

  .footer {
    padding: 30px 15px 10px 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-section h3 {
    font-size: 16px;
  }

  .footer-section h4 {
    font-size: 13px;
  }

  .footer-section p {
    font-size: 12px;
  }

  .footer-section a {
    font-size: 12px;
  }

  .footer-bottom p {
    font-size: 11px;
  }
}
