@font-face {
  font-family: Bricolage;
  src: url('/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fffbef;
  --card: #fff;
  --ink: #1d211e;
  --muted: #54564c;
  --line: #d8d6c9;
  --amber: #ffc94a;
  --wash: #fff1c9;
  --clay: #e8632b;
  --head: Bricolage, 'Arial Black', Arial, sans-serif;
  --body: Inter, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
:where(a, button, input, summary, select):focus-visible {
  outline: 3px solid #155e87;
  outline-offset: 3px;
}
:where(h1, h2, h3, p) {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  top: 10px;
  left: 12px;
  padding: 10px;
  background: white;
  z-index: 5;
}
.shell {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
}
.topbar {
  border-bottom: 1px solid var(--line);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 12px;
}
.wordmark,
.footer-brand {
  font: 800 1.38rem/1 var(--head);
  letter-spacing: -0.045em;
  text-decoration: none;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  min-height: 44px;
  padding-block: 12px;
}
.wordmark span {
  width: 0.26em;
  height: 0.26em;
  background: var(--clay);
  border-radius: 50%;
  margin-left: 0.09em;
}
.utility-link,
.edit-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.86rem;
  font-weight: 650;
  min-height: 44px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4.2vw, 60px) 0 clamp(20px, 3vw, 38px);
}
.intro h1 {
  font: 800 clamp(2.5rem, 5.2vw, 4.5rem) / 1 var(--head);
  letter-spacing: -0.063em;
  max-width: 16em;
  text-wrap: balance;
}
.underline {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.underline::after {
  content: '';
  position: absolute;
  left: -1%;
  right: 0;
  bottom: 4%;
  height: 0.14em;
  border-radius: 65% 65% 30% 40%;
  background: var(--amber);
  transform: rotate(-1deg);
  z-index: -1;
}
.intro p {
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  color: var(--muted);
  margin-top: 14px;
  max-width: 42em;
}
.house {
  width: clamp(125px, 15vw, 178px);
  height: auto;
  flex: none;
}
.house path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.house .fill-ink {
  fill: var(--ink);
  stroke: none;
}
.house .fill-amber {
  fill: var(--amber);
}
.house .fill-paper {
  fill: white;
}
.modebar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.switch {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  padding: 3px;
  background: white;
  border: 1px solid var(--ink);
  border-radius: 12px;
  flex: none;
}
.switch button {
  padding: 0 14px;
  min-height: 39px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 650;
}
.switch button[aria-pressed='true'] {
  background: var(--ink);
  color: white;
}
.switch button:not([aria-pressed='true']):hover {
  background: var(--wash);
}
.modebar p,
.intro-note,
.editor-header p,
.field-help,
.how p,
.result-caption,
.empty-price {
  color: var(--muted);
}
.modebar p {
  font-size: 0.9rem;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(245px, 30%);
  column-gap: clamp(20px, 3vw, 42px);
  align-items: start;
  margin-block: 30px 44px;
}
.results,
.editor {
  min-width: 0;
}
h2 {
  font: 800 clamp(1.45rem, 2.1vw, 1.9rem) / 1.13 var(--head);
  letter-spacing: -0.04em;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.edit-link {
  display: none;
}
.intro-note {
  font-size: 0.95rem;
  margin: 0.4rem 0 1.1rem;
}
.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.option {
  min-width: 0;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}
.option-top {
  padding: 15px 14px 14px;
}
.option h3 {
  margin: 0;
  font: 800 clamp(1.02rem, 1.5vw, 1.19rem) / 1.18 var(--head);
  letter-spacing: -0.025em;
}
.net-label {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}
.card-totals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 3px 8px;
  margin: 10px 0 0;
  font-size: 0.81rem;
  line-height: 1.35;
}
.card-totals dt {
  color: var(--muted);
}
.card-totals dd {
  margin: 0;
  max-width: 12em;
  text-align: right;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.result-value {
  margin: 2px 0 0;
  font: 800 clamp(1.4rem, 2.5vw, 2.16rem) / 1.04 var(--head);
  letter-spacing: -0.052em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.result-caption {
  margin-top: 4px;
  font-size: 0.83rem;
}
.empty-price {
  display: block;
  line-height: 1.35;
  margin-top: 6px;
  font-size: 0.78rem;
}
.option details {
  border-top: 1px solid var(--line);
}
.option summary,
.how summary,
.tools-panel summary,
.extra summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  font-weight: 600;
  line-height: 1.3;
}
summary::-webkit-details-marker {
  display: none;
}
.option summary {
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 0.82rem;
}
.option summary::after,
.how summary::after,
.tools-panel summary::after,
.extra summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.14rem;
  line-height: 1;
}
details[open] > summary::after {
  content: '−';
}
.option details dl {
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0;
  padding: 0 14px 12px;
}
.option details dl div {
  padding: 7px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 10px;
  border-top: 1px solid var(--line);
}
.option details dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 630;
}
.option details .total {
  font-weight: 700;
}
.thresholds {
  background: var(--wash);
  border-left: 4px solid var(--amber);
  border-radius: 0 10px 10px 0;
  margin: 16px 0 0;
  padding: 13px 16px;
  line-height: 1.45;
}
.thresholds p + p {
  margin-top: 7px;
}
.thresholds p {
  font-size: 0.94rem;
}
.how {
  border-block: 1px solid var(--line);
  margin-top: 20px;
  padding: 0 2px;
}
.how summary {
  min-height: 50px;
  font-size: 0.95rem;
}
.how p {
  font-size: 0.9rem;
  margin: 0 0 12px;
  max-width: 65ch;
}
.editor {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 19px;
  box-shadow: 0 3px 0 #e4dfce;
}
.editor-header p {
  font-size: 0.87rem;
  margin: 5px 0 14px;
}
.fields {
  display: grid;
  gap: 13px;
}
.field label {
  display: block;
  font-weight: 620;
  font-size: 0.89rem;
  line-height: 1.35;
  margin-bottom: 5px;
}
#offer-context {
  overflow-wrap: anywhere;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  background: #fff;
  border: 1px solid #898b81;
  border-radius: 8px;
  padding-inline: 10px;
}
.input-wrap:focus-within {
  border-color: var(--ink);
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
.input-wrap:has([aria-invalid='true']) {
  border-color: #a52a19;
  background: #fff9f7;
}
.input-wrap span {
  font-size: 0.86rem;
  color: var(--muted);
}
.input-wrap input {
  order: 1;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  outline: 0;
  background: transparent;
  border: 0;
  font: 500 1rem/1.3 var(--body);
  font-variant-numeric: tabular-nums;
}
.input-wrap input::placeholder {
  color: #66695e;
  font-weight: 400;
}
.input-wrap .after {
  order: 2;
}
.field-help,
.field-error {
  font-size: 0.8rem;
  line-height: 1.38;
  margin-top: 5px;
}
.field-error,
.error {
  color: #922919;
}
select {
  width: 100%;
  min-height: 44px;
  background: white;
  padding: 0.5rem;
  border: 1px solid #898b81;
  border-radius: 8px;
}
.quote-type {
  margin-bottom: 8px;
}
.extra {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.extra + .extra {
  margin-top: 0;
}
.extra summary {
  padding-block: 10px;
  font-size: 0.88rem;
}
.extra .fields {
  padding-bottom: 14px;
}
/* Guided entry shows a single editable price while the comparison stays available. */
.step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 600;
}
.step-heading progress {
  width: 65px;
  height: 6px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line);
  accent-color: var(--amber);
}
.step-heading progress::-webkit-progress-bar { background: var(--line); }
.step-heading progress::-webkit-progress-value { background: var(--amber); }
.step-heading progress::-moz-progress-bar { background: var(--amber); }
.step-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.step-actions button {
  min-height: 46px;
  padding: 7px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  background: white;
  font-weight: 650;
}
.step-actions #step-next { flex: 1; background: var(--ink); color: white; }
.step-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; }
.step-links button {
  background: transparent;
  border: 0;
  padding: 0 2px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: .2em;
  font-size: .87rem;
}
.mobile-results {
  display: none;
}
#service-status[data-active] {
  margin: 18px 0;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
#service-status button {
  padding: 5px 10px;
  border: 1px solid var(--ink);
  background: white;
  border-radius: 6px;
  margin-left: 8px;
}
#comparison,
#numbers,
#how-it-works {
  scroll-margin-top: 16px;
}
.footer {
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-brand {
  font-size: 1rem;
  color: var(--ink);
}
@media (max-width: 940px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(235px, 32%);
    gap: 20px;
  }
  .option-top {
    padding: 13px 10px;
  }
  .option summary {
    padding-inline: 10px;
  }
  .option h3 {
    min-height: 2.4em;
  }
  .editor {
    padding: 15px;
  }
}
@media (max-width: 765px) {
  .masthead {
    min-height: 54px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin: 18px 0 28px;
  }
  .house {
    width: 95px;
  }
  .section-head .edit-link {
    display: inline-flex;
    white-space: nowrap;
  }
  .intro-note {
    margin: 0.12rem 0 0.85rem;
  }
  .options {
    gap: 6px;
  }
  .option h3 {
    min-height: 0;
  }
  .editor {
    padding: 17px;
  }
  .editor-header p {
    margin-bottom: 16px;
  }
  .mobile-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    border: 1.5px solid var(--ink);
    background: var(--amber);
    border-radius: 24px;
    font-weight: 700;
    margin-top: 13px;
  }
}
@media (max-width: 570px) {
  .intro {
    padding: 25px 0 19px;
    gap: 8px;
  }
  .intro h1 {
    /* The viewport cap keeps the headline on screen when text is enlarged. */
    font-size: min(clamp(2.28rem, 8vw, 2.8rem), 12vw);
  }
  .intro p {
    margin-top: 9px;
    line-height: 1.42;
  }
  .house {
    display: none;
  }
  .modebar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
  }
  .modebar p {
    font-size: 0.82rem;
  }
  .options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .option {
    border-radius: 11px;
  }
  .option-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    grid-template-rows: auto auto;
    column-gap: 9px;
    padding: 8px 12px;
  }
  .option h3 {
    align-self: end;
    font-size: 1.08rem;
  }
  .result-value {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    text-align: right;
    margin: 0;
    font-size: 1.62rem;
  }
  .net-label {
    grid-column: 2;
    grid-row: 2;
    margin: 1px 0 0;
    text-align: right;
  }
  .result-caption {
    grid-column: 1;
    grid-row: 2;
  }
  .range-only {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 2px;
  }
  .range-only h3 {
    grid-area: 1 / 1;
  }
  .range-only .result-caption {
    grid-area: 1 / 2;
    text-align: right;
  }
  .range-only .net-label {
    grid-area: 2 / 1;
    align-self: baseline;
    text-align: left;
  }
  .range-only .result-value {
    grid-area: 2 / 2;
    align-self: baseline;
    font-size: clamp(1rem, 4.6vw, 1.35rem);
  }
  .card-totals {
    grid-column: 1 / -1;
    gap: 1px 8px;
    margin-top: 6px;
    font-size: 0.8rem;
  }
  .empty-price {
    grid-column: 1 / -1;
  }
  .result-caption,
  .empty-price {
    margin-top: 1px;
    font-size: 0.79rem;
  }
  .option summary {
    padding: 5px 12px;
    min-height: 32px;
  }
  .option details dl {
    padding-inline: 12px;
  }
  .thresholds {
    padding: 10px 12px;
    margin-top: 12px;
  }
  .how {
    margin-top: 14px;
  }
  .footer {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .input-wrap {
    transition:
      background-color 0.12s,
      border-color 0.12s;
  }
}

.intro-note.needs-payoff {
  margin-top: 8px;
  padding: 9px 12px;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: var(--wash);
  color: var(--ink);
  font-weight: 600;
}
.intro h1 {
  overflow-wrap: break-word;
}
.section-head {
  flex-wrap: wrap;
}

#seller-pages:not([hidden]) { display: flex; flex-wrap: wrap; gap: 1rem; }
