@font-face {
  font-family: "TeX Gyre Heros";
  src: url("/assets/fonts/texgyreheros-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f0e6;
  --ink: #161616;
  --red: #c4121a;
  --muted: #4a463e;
  --pad: 16px;
}

@media (min-width: 768px) {
  :root { --pad: 24px; }
}

@media (min-width: 1024px) {
  :root { --pad: 32px; }
}

@media (min-width: 1440px) {
  :root { --pad: 40px; }
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "TeX Gyre Heros", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

img {
  max-width: 100%;
}

h1, h2, h3, p, li, dd, dt, address, figcaption {
  overflow-wrap: break-word;
}

h1, h2, h3, p {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

button,
input,
textarea {
  border-radius: 0;
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.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;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus {
  top: 0.5rem;
}

.shell {
  max-width: 1440px;
  margin: 0 auto;
}

.sheet > *,
.split > *,
.offer,
.estimator,
.section,
.site-header,
.site-footer,
.site-footer > *,
#tool,
#tool .instrument,
#tool .shared,
#tool .columns,
#tool .column,
#tool .field,
figure.frame {
  min-width: 0;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.75rem var(--pad);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.brand {
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-wide {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
}

.nav-wide a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav-wide a:hover,
.nav-wide a:active {
  border-bottom-color: var(--red);
}

@media (max-width: 767px) {
  .nav-wide {
    justify-content: flex-start;
    width: 100%;
  }
}

.sheet {
  display: grid;
  grid-template-columns: 1fr;
}

.offer,
.estimator,
.section {
  padding: 1.5rem var(--pad) 1.75rem;
}

@media (max-width: 1023px) {
  .estimator {
    border-top: 1px solid var(--ink);
  }
}

.kicker,
.section h2,
.estimator h2 {
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: min(16ch, 100%);
  font-size: clamp(1.7rem, 2.6vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lead {
  max-width: min(28rem, 100%);
  margin-top: 1rem;
  font-size: 1.125rem;
}

.under-action {
  max-width: min(28rem, 100%);
  margin-top: 0.75rem;
  color: var(--muted);
}

.btn-red,
.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  line-height: 1;
}

.btn-red {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.btn-red:active {
  border-color: #6d0c12;
  background: #6d0c12;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-ink:active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.btn-ink:disabled,
.btn-ink.is-loading {
  opacity: 0.45;
  cursor: not-allowed;
}

.sheet + .section,
.section + .section {
  border-top: 1px solid var(--ink);
}

@media (min-width: 1024px) {
  .sheet {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    border-bottom: 1px solid var(--ink);
  }

  .offer {
    position: sticky;
    top: 3.5rem;
    align-self: start;
    border-right: 1px solid var(--ink);
    border-bottom: 0;
  }

  .estimator {
    border-bottom: 0;
  }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem;
    align-items: start;
  }

  #scenarios .split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  #question .split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

figure.frame {
  margin: 1.1rem 0 0;
  border: 1px solid var(--ink);
}

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

.ratio-16-9 img { aspect-ratio: 16 / 9; }
.ratio-4-3 img { aspect-ratio: 4 / 3; }
.ratio-3-2 img { aspect-ratio: 3 / 2; }

figcaption {
  padding: 0.45rem 0.65rem 0.55rem;
  border-top: 1px solid var(--ink);
  font-size: 0.85rem;
}

.section p + p,
.prose p {
  margin-top: 0.85rem;
}

.input-line {
  display: grid;
  grid-template-columns: 1fr;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.input-line li {
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--ink);
}

@media (min-width: 768px) {
  .input-line { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .input-line { grid-template-columns: 1.1fr 0.9fr 1.6fr 1.5fr; }
}

.objections {
  margin: 1rem 0 0;
}

.objections div {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--ink);
}

.objections dt,
.objections dd {
  margin: 0;
}

@media (min-width: 768px) {
  .objections div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1.5rem;
    align-items: baseline;
  }
}

.question-form {
  margin-top: 1rem;
}

.form-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .span {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-form input,
.question-form textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-size: 1rem;
}

.question-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.question-form input:hover,
.question-form textarea:hover {
  border-bottom-color: var(--red);
}

.question-form input:disabled,
.question-form textarea:disabled {
  opacity: 0.45;
}

.field.is-error input,
.field.is-error textarea {
  border-bottom: 2px solid var(--red);
}

.field-error {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.form-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--red);
}

.education {
  margin-top: 1rem;
  max-width: 36rem;
}

.notice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.notice-links a {
  text-underline-offset: 0.15em;
}

.prose {
  max-width: 40rem;
}

.prose h1 {
  max-width: none;
}

.prose h2 {
  margin-top: 1.75rem;
}

.prose ul,
.prose ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.is-success h1 {
  padding-top: 0.75rem;
  border-top: 3px solid var(--red);
}

.site-footer {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem var(--pad) 2rem;
  border-top: 1px solid var(--ink);
}

.footer-groups {
  display: grid;
  gap: 1.25rem 2rem;
}

.footer-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.site-footer a {
  text-underline-offset: 0.15em;
}

.site-footer button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer address {
  display: grid;
  gap: 0.35rem;
  font-style: normal;
}

.privacy-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  max-height: 70vh;
  overflow: auto;
  padding: 1rem var(--pad) 1.25rem;
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.privacy-banner[hidden],
.privacy-banner [hidden] {
  display: none;
}

.privacy-banner h2 {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.privacy-banner p {
  max-width: 40rem;
  margin-top: 0.5rem;
}

.banner-actions,
.consent-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.consent-cats {
  flex-direction: column;
  align-items: flex-start;
}

.consent-cats label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.privacy-banner button {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--ink);
  background: transparent;
}

.privacy-banner button[data-consent="accept"] {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper);
}

.privacy-banner button:hover,
.site-footer button:hover {
  border-color: var(--red);
  color: var(--red);
}

.privacy-banner button[data-consent="accept"]:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

body.has-banner {
  padding-bottom: 42vh;
}

@media (min-width: 768px) {
  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 374px) {
  .btn-red,
  .btn-ink {
    width: 100%;
  }
}
