:root {
  --ground: #faf9f7;
  --surface: #fff;
  --surface-sunken: #f2f0ec;
  --ink: #14171b;
  --ink-soft: #454c55;
  --rule: #ddd9d3;
  --rule-strong: #b0a99f;
  --field-border: #8b8479;
  --accent: #0b5399;
  --accent-strong: #073b6e;
  --accent-tint: #e9f0f9;
  --below: #1a6b3c;
  --below-tint: #e6f2eb;
  --near: #4c4030;
  --near-tint: #f3efe7;
  --above: #9a3412;
  --above-tint: #fbeee8;
  --error: #9f1239;
  --error-tint: #fdeaef;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --text-meta: 1rem;
  --text-body: 1.125rem;
  --text-lead: 1.25rem;
  --text-h3: 1.1875rem;
  --text-h2: clamp(1.375rem, 1.18rem + .85vw, 1.6875rem);
  --text-h1: clamp(1.875rem, 1.45rem + 1.9vw, 2.625rem);
  --text-figure: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  --leading-tight: 1.18;
  --leading-heading: 1.25;
  --leading-body: 1.6;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
  --space-8: 3.5rem;
  --space-9: 5rem;
  --measure: 45rem;
  --gutter: clamp(1rem, .6rem + 2vw, 2rem);
  --radius: 6px;
  --radius-lg: 10px;
  --lift: 0 1px 2px #14171b0d, 0 6px 20px -6px #14171b1f;
  --target-min: 3rem;
  --button-min: 3.375rem;
  accent-color: var(--accent);
  color-scheme: light;
}

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

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

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  overflow-wrap: break-word;
  margin: 0;
}

::selection {
  color: var(--ink);
  background: #cfe0f4;
}

input, textarea {
  caret-color: var(--accent);
}

:root {
  scrollbar-color: var(--rule-strong) var(--surface-sunken);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--surface-sunken);
}

::-webkit-scrollbar-thumb {
  background: var(--rule-strong);
  border: 3px solid var(--surface-sunken);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-soft);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.figure, td.num, th.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

h1, h2, h3 {
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
  letter-spacing: -.022em;
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-heading);
  letter-spacing: -.008em;
}

p {
  text-wrap: pretty;
  margin: 0;
}

.lead {
  font-size: var(--text-lead);
  color: var(--ink-soft);
  line-height: 1.5;
}

h1 + .lead {
  margin-block-start: var(--space-4);
}

.meta {
  font-size: var(--text-meta);
  color: var(--ink-soft);
}

.prose > * + * {
  margin-block-start: var(--space-4);
}

.prose > * + h2 {
  margin-block-start: var(--space-7);
}

.prose > * + h3 {
  margin-block-start: var(--space-6);
}

.prose > h2 + *, .prose > h3 + * {
  margin-block-start: var(--space-3);
}

.prose ul, .prose ol {
  margin: 0;
  padding-inline-start: 1.4em;
}

.prose li + li {
  margin-block-start: var(--space-2);
}

a {
  color: var(--accent);
  text-underline-offset: .18em;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
}

.skip-link {
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  transform: translateY(calc(-100% - var(--space-4)));
  font-weight: 600;
  text-decoration: none;
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
}

.skip-link:focus {
  transform: none;
}

.shell {
  max-inline-size: var(--measure);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.site-header {
  border-block-end: 1px solid var(--rule);
  background: var(--surface);
}

.site-header .shell {
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-4);
  flex-wrap: wrap;
  display: flex;
}

.wordmark {
  letter-spacing: -.02em;
  color: var(--ink);
  padding-block: 2px;
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-nav {
  gap: var(--space-5);
  font-size: var(--text-meta);
  display: flex;
}

.site-footer {
  border-block-start: 1px solid var(--rule);
  background: var(--surface);
  font-size: var(--text-meta);
  color: var(--ink-soft);
  margin-block-start: var(--space-9);
}

.site-footer .shell {
  padding-block: var(--space-6) var(--space-7);
  gap: var(--space-4);
  display: grid;
}

.site-footer nav {
  gap: var(--space-2) var(--space-5);
  flex-wrap: wrap;
  display: flex;
}

main {
  padding-block-start: var(--space-7);
}

.breadcrumbs {
  font-size: var(--text-meta);
  margin-block-end: var(--space-4);
}

.breadcrumbs ol {
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.breadcrumbs li + li:before {
  content: "/";
  color: var(--rule-strong);
  margin-inline-end: var(--space-2);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--gutter) var(--space-6);
}

.field + .field {
  margin-block-start: var(--space-6);
}

.field > label, .field > .field-label {
  font-size: var(--text-body);
  margin-block-end: var(--space-2);
  font-weight: 600;
  line-height: 1.35;
  display: block;
}

.field-help {
  font-size: var(--text-meta);
  color: var(--ink-soft);
  margin-block-end: var(--space-3);
  line-height: 1.45;
  display: block;
}

.field-optional {
  color: var(--ink-soft);
  font-weight: 400;
}

input[type="text"], input[type="number"], input[type="date"], select {
  inline-size: 100%;
  min-block-size: var(--target-min);
  padding: var(--space-3) var(--space-4);
  font: inherit;
  font-size: var(--text-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
}

input.short {
  inline-size: 8ch;
  min-inline-size: 8ch;
}

input.medium {
  inline-size: 14ch;
}

input[type="date"] {
  inline-size: auto;
  min-inline-size: 11rem;
}

select {
  -webkit-appearance: menulist;
  appearance: menulist;
}

input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

input:hover, select:hover {
  border-color: var(--ink-soft);
}

.money {
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--surface);
  align-items: stretch;
  max-inline-size: 16ch;
  display: flex;
}

.money:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.money .prefix {
  padding-inline: var(--space-3);
  border-inline-end: 1px solid var(--rule);
  background: var(--surface-sunken);
  color: var(--ink-soft);
  border-start-start-radius: var(--radius);
  border-end-start-radius: var(--radius);
  align-items: center;
  font-weight: 600;
  display: flex;
}

.money input {
  background: none;
  border: 0;
  border-radius: 0;
  min-inline-size: 0;
}

.money input:focus-visible {
  outline: none;
}

.with-unit {
  align-items: center;
  gap: var(--space-3);
  display: flex;
}

.with-unit .unit {
  font-size: var(--text-body);
  color: var(--ink-soft);
}

.choices {
  gap: var(--space-2);
  border: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-inline-size: 26rem;
  margin: 0;
  padding: 0;
  display: grid;
}

@media (width >= 22rem) {
  .choices {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.choices-group legend {
  font-size: var(--text-body);
  margin-block-end: var(--space-2);
  padding: 0;
  font-weight: 600;
  line-height: 1.35;
}

.choice {
  position: relative;
}

.choice input {
  opacity: 0;
  cursor: pointer;
  block-size: 100%;
  inline-size: 100%;
  margin: 0;
  position: absolute;
  inset: 0;
}

.choice span {
  min-block-size: var(--target-min);
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  font-size: var(--text-lead);
  font-variant-numeric: tabular-nums;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  display: flex;
}

.choice input:hover + span {
  border-color: var(--ink-soft);
  background: var(--surface-sunken);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.choice input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}

.error-summary {
  border: 2px solid var(--error);
  border-radius: var(--radius-lg);
  background: var(--error-tint);
  padding: var(--space-4) var(--space-5) var(--space-5);
  margin-block-end: var(--space-6);
}

.error-summary:focus-visible {
  outline-color: var(--error);
}

.error-summary h2 {
  font-size: var(--text-h3);
  color: var(--error);
}

.error-summary ul {
  margin: var(--space-3) 0 0;
  padding-inline-start: 1.2em;
}

.error-summary a {
  color: var(--error);
  font-weight: 600;
}

.field-error {
  gap: var(--space-2);
  color: var(--error);
  font-size: var(--text-meta);
  align-items: flex-start;
  margin-block-end: var(--space-3);
  font-weight: 600;
  line-height: 1.45;
  display: flex;
}

.field-error svg {
  flex: none;
  margin-block-start: .15em;
}

.field.has-error input, .field.has-error select, .field.has-error .money {
  border-color: var(--error);
  border-width: 2px;
}

.button {
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  min-block-size: var(--button-min);
  padding: var(--space-3) var(--space-6);
  font: inherit;
  font-size: var(--text-lead);
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid #0000;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  display: inline-flex;
}

.button-primary {
  background: var(--accent);
  color: var(--surface);
  inline-size: 100%;
}

.button-primary:hover {
  background: var(--accent-strong);
  color: var(--surface);
}

.button-primary:active {
  transform: translateY(1px);
}

.button-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--field-border);
}

.button-secondary:hover {
  background: var(--surface-sunken);
  color: var(--accent-strong);
  border-color: var(--ink-soft);
}

@media (width >= 32rem) {
  .button-primary {
    inline-size: auto;
    min-inline-size: 16rem;
  }
}

.verdict {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift);
  padding: var(--space-5) var(--gutter) var(--space-6);
}

.verdict[data-verdict="below"] {
  background: var(--below-tint);
  border-color: color-mix(in srgb, var(--below) 25%, transparent);
}

.verdict[data-verdict="near"] {
  background: var(--near-tint);
  border-color: color-mix(in srgb, var(--near) 22%, transparent);
}

.verdict[data-verdict="above"] {
  background: var(--above-tint);
  border-color: color-mix(in srgb, var(--above) 25%, transparent);
}

.verdict-head {
  gap: var(--space-3);
  align-items: flex-start;
  display: flex;
}

.verdict-icon {
  border-radius: 999px;
  flex: none;
  justify-content: center;
  align-items: center;
  block-size: 2.25rem;
  inline-size: 2.25rem;
  margin-block-start: .1em;
  display: flex;
}

[data-verdict="below"] .verdict-icon {
  background: var(--below);
  color: var(--surface);
}

[data-verdict="near"] .verdict-icon {
  background: var(--near);
  color: var(--surface);
}

[data-verdict="above"] .verdict-icon {
  background: var(--above);
  color: var(--surface);
}

.verdict h1 {
  font-size: var(--text-h1);
}

.verdict-detail {
  font-size: var(--text-lead);
  margin-block-start: var(--space-4);
  line-height: 1.45;
}

.comparison {
  gap: var(--space-5);
  margin-block-start: var(--space-6);
  display: grid;
}

.compare-row {
  gap: var(--space-2);
  display: grid;
}

.compare-label {
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  flex-wrap: wrap;
  display: flex;
}

.compare-label .name {
  font-weight: 600;
}

.compare-label .value {
  font-size: var(--text-figure);
  letter-spacing: -.02em;
  padding-block-end: .05em;
  font-weight: 700;
  line-height: 1.2;
}

.compare-label .unit {
  font-size: var(--text-meta);
  color: var(--ink-soft);
  letter-spacing: 0;
  font-weight: 600;
}

.bar {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 3px;
  block-size: .875rem;
}

.bar > span {
  background: var(--ink-soft);
  transform-origin: 0;
  border-radius: 3px;
  block-size: 100%;
  display: block;
}

.compare-row[data-role="yours"][data-verdict="below"] .bar > span {
  background: var(--below);
}

.compare-row[data-role="yours"][data-verdict="near"] .bar > span {
  background: var(--near);
}

.compare-row[data-role="yours"][data-verdict="above"] .bar > span {
  background: var(--above);
}

@media (prefers-reduced-motion: no-preference) {
  .bar > span {
    animation: .62s cubic-bezier(.16, 1, .3, 1) both draw;
  }

  .compare-row[data-role="yours"] .bar > span {
    animation-delay: 90ms;
  }

  @keyframes draw {
    from {
      transform: scaleX(0);
    }

    to {
      transform: scaleX(1);
    }
  }
}

.callout {
  gap: var(--space-2) var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  grid-template-columns: auto 1fr;
  display: grid;
}

.callout[data-tone="estimate"] {
  background: var(--near-tint);
  border-color: color-mix(in srgb, var(--near) 22%, transparent);
}

.callout > svg {
  color: var(--ink-soft);
  flex: none;
  margin-block-start: .2em;
}

.callout h2, .callout h3 {
  font-size: var(--text-h3);
}

.callout > div > * + * {
  margin-block-start: var(--space-2);
}

.table-scroll {
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  inline-size: 100%;
  font-size: var(--text-meta);
}

caption {
  text-align: start;
  color: var(--ink-soft);
  padding-block-end: var(--space-3);
  font-weight: 600;
}

th, td {
  text-align: start;
  padding-block: var(--space-3);
  padding-inline: var(--space-5) 0;
  border-block-end: 1px solid var(--rule);
  vertical-align: baseline;
}

th:first-child, td:first-child {
  padding-inline-start: 0;
}

thead th {
  border-block-end: 1px solid var(--rule-strong);
  vertical-align: bottom;
  font-weight: 700;
}

tbody tr:last-child th, tbody tr:last-child td {
  border-block-end: 0;
}

.num {
  text-align: end;
}

td.num {
  white-space: nowrap;
}

tbody th:first-letter {
  text-transform: uppercase;
}

.prose-cell {
  text-wrap: pretty;
  font-weight: 400;
}

.stamp {
  align-items: baseline;
  gap: var(--space-1) var(--space-3);
  border-block-start: 1px solid var(--rule);
  font-size: var(--text-meta);
  color: var(--ink-soft);
  flex-wrap: wrap;
  margin-block-start: var(--space-5);
  padding-block-start: var(--space-4);
  display: flex;
}

.section {
  margin-block-start: var(--space-8);
}

.section > h2 + .lead, .section-divider > h2 + .lead {
  margin-block-start: var(--space-3);
}

.section > .lead + *, .section-divider > .lead + * {
  margin-block-start: var(--space-5);
}

.section-divider {
  border-block-start: 1px solid var(--rule);
  margin-block-start: var(--space-8);
  padding-block-start: var(--space-7);
}

.link-list {
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.link-list li + li {
  border-block-start: 1px solid var(--rule);
}

.link-list a {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-block-size: var(--target-min);
  padding-block: var(--space-3);
  font-weight: 600;
  text-decoration: none;
  display: flex;
}

.link-list a:hover {
  text-decoration: underline 2px;
}

.link-list a svg {
  color: var(--rule-strong);
  flex: none;
}

.link-list a:hover svg {
  color: var(--accent-strong);
}

.visually-hidden {
  clip-path: inset(50%);
  white-space: nowrap;
  block-size: 1px;
  inline-size: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.form-heading {
  border-block-end: 1px solid var(--rule);
  margin-block-end: var(--space-5);
  padding-block-end: var(--space-4);
}

.choices-group {
  border: 0;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
}

.choices-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (width >= 22rem) {
  .choices-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.choices-wide .choice span {
  font-size: var(--text-body);
}

.field-conditional[hidden] {
  display: none;
}

.form-submit {
  border-block-start: 1px solid var(--rule);
  margin-block-start: var(--space-7);
  padding-block-start: var(--space-5);
}

.verdict-word {
  letter-spacing: .02em;
  margin-block-end: var(--space-1);
  font-weight: 700;
}

[data-verdict="below"] .verdict-word {
  color: var(--below);
}

[data-verdict="near"] .verdict-word {
  color: var(--near);
}

[data-verdict="above"] .verdict-word {
  color: var(--above);
}

.w-0 {
  width: 0;
}

.w-2 {
  width: 2%;
}

.w-3 {
  width: 3%;
}

.w-4 {
  width: 4%;
}

.w-5 {
  width: 5%;
}

.w-6 {
  width: 6%;
}

.w-7 {
  width: 7%;
}

.w-8 {
  width: 8%;
}

.w-9 {
  width: 9%;
}

.w-10 {
  width: 10%;
}

.w-11 {
  width: 11%;
}

.w-12 {
  width: 12%;
}

.w-13 {
  width: 13%;
}

.w-14 {
  width: 14%;
}

.w-15 {
  width: 15%;
}

.w-16 {
  width: 16%;
}

.w-17 {
  width: 17%;
}

.w-18 {
  width: 18%;
}

.w-19 {
  width: 19%;
}

.w-20 {
  width: 20%;
}

.w-21 {
  width: 21%;
}

.w-22 {
  width: 22%;
}

.w-23 {
  width: 23%;
}

.w-24 {
  width: 24%;
}

.w-25 {
  width: 25%;
}

.w-26 {
  width: 26%;
}

.w-27 {
  width: 27%;
}

.w-28 {
  width: 28%;
}

.w-29 {
  width: 29%;
}

.w-30 {
  width: 30%;
}

.w-31 {
  width: 31%;
}

.w-32 {
  width: 32%;
}

.w-33 {
  width: 33%;
}

.w-34 {
  width: 34%;
}

.w-35 {
  width: 35%;
}

.w-36 {
  width: 36%;
}

.w-37 {
  width: 37%;
}

.w-38 {
  width: 38%;
}

.w-39 {
  width: 39%;
}

.w-40 {
  width: 40%;
}

.w-41 {
  width: 41%;
}

.w-42 {
  width: 42%;
}

.w-43 {
  width: 43%;
}

.w-44 {
  width: 44%;
}

.w-45 {
  width: 45%;
}

.w-46 {
  width: 46%;
}

.w-47 {
  width: 47%;
}

.w-48 {
  width: 48%;
}

.w-49 {
  width: 49%;
}

.w-50 {
  width: 50%;
}

.w-51 {
  width: 51%;
}

.w-52 {
  width: 52%;
}

.w-53 {
  width: 53%;
}

.w-54 {
  width: 54%;
}

.w-55 {
  width: 55%;
}

.w-56 {
  width: 56%;
}

.w-57 {
  width: 57%;
}

.w-58 {
  width: 58%;
}

.w-59 {
  width: 59%;
}

.w-60 {
  width: 60%;
}

.w-61 {
  width: 61%;
}

.w-62 {
  width: 62%;
}

.w-63 {
  width: 63%;
}

.w-64 {
  width: 64%;
}

.w-65 {
  width: 65%;
}

.w-66 {
  width: 66%;
}

.w-67 {
  width: 67%;
}

.w-68 {
  width: 68%;
}

.w-69 {
  width: 69%;
}

.w-70 {
  width: 70%;
}

.w-71 {
  width: 71%;
}

.w-72 {
  width: 72%;
}

.w-73 {
  width: 73%;
}

.w-74 {
  width: 74%;
}

.w-75 {
  width: 75%;
}

.w-76 {
  width: 76%;
}

.w-77 {
  width: 77%;
}

.w-78 {
  width: 78%;
}

.w-79 {
  width: 79%;
}

.w-80 {
  width: 80%;
}

.w-81 {
  width: 81%;
}

.w-82 {
  width: 82%;
}

.w-83 {
  width: 83%;
}

.w-84 {
  width: 84%;
}

.w-85 {
  width: 85%;
}

.w-86 {
  width: 86%;
}

.w-87 {
  width: 87%;
}

.w-88 {
  width: 88%;
}

.w-89 {
  width: 89%;
}

.w-90 {
  width: 90%;
}

.w-91 {
  width: 91%;
}

.w-92 {
  width: 92%;
}

.w-93 {
  width: 93%;
}

.w-94 {
  width: 94%;
}

.w-95 {
  width: 95%;
}

.w-96 {
  width: 96%;
}

.w-97 {
  width: 97%;
}

.w-98 {
  width: 98%;
}

.w-99 {
  width: 99%;
}

.w-100 {
  width: 100%;
}
