@font-face {
  font-family: Archivo;
  src: url('/assets/archivo.woff2') format('woff2');
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f8f8;
  color: #102b3b;
  font: 16px/1.45 Archivo, Arial, sans-serif;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #168fb7;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  top: -90px;
  left: 12px;
  background: white;
  padding: 12px;
  z-index: 5;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
}

.header {
  background: #0b1c29;
  color: white;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 24px;
  letter-spacing: -1px;
  line-height: .9;
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand small {
  display: block;
  color: #61d0ee;
  font-size: 7px;
  letter-spacing: .34em;
  margin-top: 6px;
}

.back {
  font-size: 14px;
  text-decoration: none;
}

.back:hover {
  text-decoration: underline;
}

.intro {
  padding: 18px 0 0;
}

.intro h1 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -.035em;
  margin: 0;
}

.intro-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.intro-note p {
  margin: 0;
  color: #496675;
  font-size: 13px;
}

.button {
  border: 0;
  border-radius: 5px;
  padding: 9px 13px;
  font-weight: 700;
}

.button-light {
  background: #0b1c29;
  color: white;
  white-space: nowrap;
}

.workspace {
  padding: 14px 0 48px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.section-heading p {
  margin: 3px 0 0;
  color: #536c79;
  font-size: 13px;
}

.text-button {
  padding: 6px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #137b9b;
  color: #126d88;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.text-button:disabled {
  display: none;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
  gap: 18px;
  align-items: start;
}

.offer-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.offer-nav button {
  background: #e2edf0;
  color: #234c5c;
  border: 1px solid #c3d8df;
  padding: 9px 16px;
  border-radius: 5px;
  font-weight: 700;
}

.offer-nav #toggle-help {
  padding: 9px 8px;
  font-size: 14px;
  background: transparent;
  border-color: transparent;
  color: #126d88;
}

.offer-nav button[aria-pressed='true'] {
  background: #0d2939;
  color: white;
  border-color: #0d2939;
}

.result-link {
  padding: 9px;
  color: #126d88;
  font-size: 13px;
  font-weight: 700;
}

.offer {
  background: white;
  border: 1px solid #d1e1e6;
  border-radius: 7px;
  padding: 16px;
  scroll-margin-top: 16px;
}

.offer-head {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid #dce8eb;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.offer-head h3 {
  display: inline;
  font-size: 18px;
  margin: 0;
}

.offer-head p {
  display: inline;
  margin: 0 0 0 8px;
  color: #607a86;
  font-size: 13px;
}

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

.field {
  min-width: 0;
}

.field.full, .error.full, .subhead, .info {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.field input, .field select {
  width: 100%;
  min-width: 0;
  border: 1px solid #a9c1ca;
  border-radius: 5px;
  background: white;
  color: #102b3b;
  padding: 8px 10px;
  min-height: 42px;
  font-size: 16px;
}

.field input[aria-invalid='true'], .field select[aria-invalid='true'] {
  border: 2px solid #ac3c35;
}

.field .field-help {
  display: none;
}

.show-help .field .field-help {
  display: block;
}

.info summary, .valuation summary, .result-card summary {
  cursor: pointer;
  font-weight: 700;
}

.help {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #536f7c;
  margin-top: 4px;
}

.error {
  display: block;
  color: #9d2d28;
  font-size: 12px;
  font-weight: 700;
}

.error:not(:empty) {
  margin-top: 4px;
}

.optional {
  font-weight: 400;
  color: #536f7c;
}

.subhead {
  margin: 3px 0 0;
  padding-top: 10px;
  border-top: 1px solid #dce8eb;
  font-size: 15px;
}

.info, .valuation {
  border: 1px solid #c9dfe5;
  border-radius: 5px;
  padding: 9px 11px;
  font-size: 13px;
  color: #345b6a;
}

.info summary, .valuation summary {
  color: #126d88;
}

.info p {
  margin: 8px 0 0;
}

.valuation[open] summary {
  margin-bottom: 10px;
}

.results {
  position: sticky;
  top: 16px;
  background: #0d2939;
  color: #e6f3f6;
  border-radius: 7px;
  padding: 20px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #137b9b;
  margin: 0 0 6px;
}

.results .eyebrow {
  color: #78d7ed;
}

.results h2 {
  font-size: 23px;
  line-height: 1.2;
  color: white;
  margin: 0;
}

.mode-label {
  display: inline-block;
  color: #bfe7ef;
  font-size: 12px;
  margin: 8px 0 0;
  border: 1px solid #466d7d;
  border-radius: 20px;
  padding: 3px 9px;
}

.empty {
  color: #c1d8df;
  font-size: 14px;
  padding: 10px 0;
}

.empty a {
  color: #b9eaf4;
}

.comparison {
  margin-top: 14px;
  background: #c5eff4;
  color: #103d4d;
  border-radius: 5px;
  padding: 12px;
}

.comparison strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.comparison p {
  margin: 6px 0 0;
  font-size: 12px;
}

.result-card {
  padding: 15px 0 12px;
  border-bottom: 1px solid #426070;
}

.result-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: #d0e8ee;
  overflow-wrap: anywhere;
}

.result-assumptions {
  color: #bdd9e0;
  font-size: 12px;
  line-height: 1.4;
}

.result-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-primary span {
  display: block;
  font-size: 12px;
  color: #b1cbd3;
}

.result-primary strong {
  display: block;
  color: white;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.result-primary small {
  color: #bad4dc;
  font-size: 11px;
}

.result-card details {
  margin-top: 12px;
}

.result-card summary {
  color: #99ddeb;
  font-size: 13px;
}

.breakdown {
  margin: 10px 0 0;
  font-size: 13px;
}

.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}

.breakdown dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.result-action {
  background: transparent;
  border: 1px solid #7ab3c4;
  color: #def7fc;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.result-foot {
  font-size: 12px;
  line-height: 1.5;
  color: #aec8d0;
  margin: 16px 0 0;
}

.mobile-summary {
  display: none;
}

.learn {
  border-top: 1px solid #cbdde3;
  padding: 35px 0 50px;
}

.learn h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.learn-grid article {
  border-top: 2px solid #6cb7c9;
  padding-top: 12px;
}

.learn-grid h3 {
  font-size: 17px;
  margin: 6px 0;
}

.learn-grid p {
  font-size: 14px;
  color: #496675;
}

.sources {
  border-top: 1px solid #cbdde3;
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
}

.sources a {
  color: #106b8a;
}

footer {
  background: #0b1c29;
  color: #c2d2db;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.print-heading, .print-empty {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.fallback {
  margin: 16px 0 40px;
  padding: 20px;
  border: 1px solid #b9d5dd;
  background: white;
  border-radius: 6px;
}

.fallback a {
  color: #126d88;
}

#resultado {
  scroll-margin-top: 16px;
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .results {
    position: static;
  }
  .mobile-summary {
    display: block;
    background: #0d2939;
    color: white;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }
  .mobile-summary-title {
    font-size: 12px;
    color: #bfe7ef;
  }
  .mobile-summary-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .mobile-summary-values span {
    display: block;
    color: #b1cbd3;
    font-size: 12px;
  }
  .mobile-summary-values strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .mobile-summary a {
    display: inline-block;
    color: #b9eaf4;
    font-size: 12px;
    font-weight: 700;
    margin-top: 3px;
  }
  .mobile-summary p {
    margin: 3px 0;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .header-inner {
    min-height: 50px;
  }
  .brand {
    font-size: 22px;
  }
  .brand img {
    width: 26px;
    height: 26px;
  }
  .back {
    font-size: 12px;
  }
  .intro {
    padding-top: 12px;
  }
  .intro h1 {
    font-size: 25px;
  }
  .intro-note {
    margin-top: 6px;
  }
  .intro-note p {
    font-size: 12px;
  }
  .button {
    font-size: 14px;
    padding: 8px;
  }
  .workspace {
    padding-top: 10px;
  }
  .section-heading {
    gap: 8px;
    align-items: start;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .text-button {
    white-space: normal;
    text-align: right;
    min-height: 44px;
    font-size: 14px;
  }
  .offer {
    padding: 12px;
  }
  .offer-nav button[data-go] {
    flex: 1;
  }
  .offer-nav .result-link {
    display: none;
  }
  .result-link {
    font-size: 12px;
  }
  .field-grid {
    gap: 9px;
  }
  .learn-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 340px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field.full, .subhead, .info {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .mobile-summary {
    display: none !important;
  }
}
