*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #11233f;
  background: #ffffff;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #d6dde8;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  height: 64px;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #003580;
  text-decoration: none;
}

.hero {
  padding: 56px 24px 24px;
}
h1 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #001f4d;
}
.lede {
  font-size: 17px;
  margin: 0;
  color: #2a3b5a;
}

.content { padding: 24px 24px 64px; }

.calculator {
  border: 1px solid #c9d2e0;
  border-top: 4px solid #003580;
  padding: 28px;
  margin: 16px 0 32px;
  background: #ffffff;
}

.form { display: block; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #001f4d;
}

.field input {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #8ea0bc;
  background: #ffffff;
  color: #0a1f3d;
}
.field input:focus {
  outline: 2px solid #003580;
  outline-offset: -2px;
  border-color: #003580;
}

.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.actions { margin-top: 24px; }
.submit {
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 12px 28px;
  background: #003580;
  color: #ffffff;
  border: 1px solid #003580;
  cursor: pointer;
}
.submit:hover { background: #001f4d; border-color: #001f4d; }
.submit:focus { outline: 2px solid #003580; outline-offset: 2px; }

.results { margin-top: 28px; padding-top: 24px; border-top: 1px solid #c9d2e0; }

.empty { color: #5a6a85; font-style: italic; }

.results-title {
  font-size: 22px;
  margin: 0 0 12px;
  color: #001f4d;
}

.result-list {
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px solid #c9d2e0;
}
.result-list .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #c9d2e0;
}
.result-list dt { color: #2a3b5a; }
.result-list dd { margin: 0; font-weight: 600; color: #001f4d; }
.result-list .row.total dt { font-weight: 700; }
.result-list .row.total dd { font-weight: 700; color: #003580; }

.breakdown-title {
  margin-top: 24px;
  font-size: 18px;
  color: #001f4d;
}

.toggle {
  display: inline-block;
  margin-top: 16px;
  font: inherit;
  padding: 10px 18px;
  background: #ffffff;
  color: #003580;
  border: 1px solid #003580;
  cursor: pointer;
  font-weight: 600;
}
.toggle:hover { background: #003580; color: #ffffff; }
.toggle:focus { outline: 2px solid #003580; outline-offset: 2px; }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}
.schedule-table th, .schedule-table td {
  text-align: right;
  padding: 8px 10px;
  border-bottom: 1px solid #d8dfeb;
}
.schedule-table th:first-child, .schedule-table td:first-child {
  text-align: left;
}
.schedule-table thead th {
  background: #f0f3f8;
  border-bottom: 2px solid #003580;
  font-weight: 700;
  color: #001f4d;
}
.schedule-table tbody tr:nth-child(even) td {
  background: #f7f9fc;
}

.copy h2 {
  font-size: 26px;
  margin: 40px 0 12px;
  color: #001f4d;
  letter-spacing: -0.3px;
}
.copy p { margin: 0 0 16px; }

.site-footer {
  margin-top: 32px;
  border-top: 1px solid #d6dde8;
  background: #ffffff;
  padding: 20px 0;
  font-size: 14px;
  color: #5a6a85;
}

@media (max-width: 600px) {
  h1 { font-size: 34px; }
  .hero { padding: 40px 24px 16px; }
  .field-group { grid-template-columns: 1fr; }
  .calculator { padding: 18px; }
  .schedule-table { font-size: 13px; }
  .schedule-table th, .schedule-table td { padding: 6px 6px; }
}
