/* Inspections */
.inspections.main {
  min-height: 0;
  padding-top: 0;
}

/* Compare table: fixed layout so three columns fit at 360px */
.compare__lead {
  max-width: 34rem;
  margin-bottom: var(--space-lg);
  color: var(--muted);
}

.compare__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}

.compare__col-label {
  width: 44%;
}

.compare__caption {
  padding-bottom: var(--space-sm);
  text-align: left;
}

.compare__table thead th {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  padding: 0.75rem 0.35rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  background-color: var(--ink);
  text-align: left;
  vertical-align: bottom;
}

.compare__plan {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.compare__price {
  display: block;
  margin-top: 0.25rem;
  font-size: max(0.75rem, var(--text-xs));
  line-height: 1.3;
  color: var(--muted);
}

.compare__flag {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--signal);
}

.compare__group {
  padding: var(--space-md) 0.35rem var(--space-2xs) 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-align: left;
  text-transform: uppercase;
  color: var(--signal);
}

.compare__label {
  padding: 0.7rem 0.5rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}

.compare__note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.compare__cell {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.compare__icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.compare__icon--no {
  color: var(--muted);
}

/* Narrow phones: keep "Premium" and "Recommended" on one line each */
@media (max-width: 400px) {
  .compare__col-label {
    width: 40%;
  }

  .compare__plan {
    font-size: var(--text-base);
  }

  .compare__flag {
    font-size: 0.68rem;
    letter-spacing: 0;
  }

  .compare__table thead th:nth-child(3) {
    padding-inline: 0.35rem;
  }
}

@media (max-width: 340px) {
  .compare__flag {
    font-size: 0.62rem;
  }
}

/* Premium column: tinted and outlined */
.compare__table :is(th, td):nth-child(3) {
  border-inline: 1px solid var(--signal);
  background-image: linear-gradient(rgb(43 196 242 / 0.06), rgb(43 196 242 / 0.06));
}

.compare__table thead th:nth-child(3) {
  padding-inline: 0.5rem;
  border-top: 1px solid var(--signal);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.compare__table tfoot td:nth-child(3) {
  border-bottom: 1px solid var(--signal);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.compare__table tbody td:nth-child(3) .compare__icon--yes {
  color: var(--signal);
}

.compare__table tfoot td {
  padding: var(--space-sm) 0.25rem var(--space-md) 0;
}

.compare__table tfoot td:nth-child(3) {
  padding-inline: 0.5rem;
}

.compare__cta {
  width: 100%;
  padding-inline: 0.5rem;
}

.compare__cta-full {
  display: none;
}

.compare__note-line {
  margin-top: var(--space-md);
  color: var(--muted);
  font-size: var(--text-sm);
}

@media (min-width: 640px) {
  .compare__table {
    font-size: var(--text-base);
  }

  .compare__col-label {
    width: 46%;
  }

  .compare__cta-short {
    display: none;
  }

  .compare__cta-full {
    display: inline;
  }

  .compare__table thead th {
    padding-block: 1.25rem 1rem;
  }

  .compare__label {
    padding-block: 0.9rem;
  }

  .compare__cell {
    padding-block: 0.9rem;
  }
}

@media (min-width: 900px) {
  .compare__table thead th:nth-child(3) {
    padding-inline: var(--space-md);
  }

  .compare__table tfoot td:nth-child(3) {
    padding-inline: var(--space-md);
  }
}

/* Narrow container or large text: each row becomes a small card, nothing is clipped */
.compare__wrap,
.pricer__table-wrap {
  container-type: inline-size;
}

@container (max-width: 14em) {
  .compare__table,
  .compare__table :is(thead, tbody, tfoot, tr, th, td) {
    display: block;
  }

  .compare__table thead th {
    position: static;
    padding: var(--space-xs) 0;
  }

  .compare__table thead th:first-child,
  .compare__table td:empty {
    display: none;
  }

  .compare__table :is(th, td):nth-child(3) {
    border-inline: 0;
    background-image: none;
  }

  .compare__table thead th:nth-child(3),
  .compare__table tfoot td:nth-child(3) {
    padding-inline: 0;
    border: 0;
    border-radius: 0;
  }

  .compare__table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--space-xs);
    border-bottom: 1px solid var(--line);
  }

  .compare__table tbody :is(th, td) {
    border-bottom: 0;
  }

  .compare__table tbody :is(th):first-child {
    grid-column: 1 / -1;
  }

  .compare__table .compare__cell {
    padding-block: 0.25rem 0.7rem;
    text-align: left;
  }

  .compare__cell::before {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--muted);
  }

  .compare__cell:nth-of-type(1)::before {
    content: "Standard";
  }

  .compare__cell:nth-of-type(2)::before {
    content: "Premium";
  }

  .compare__table tfoot td {
    padding: var(--space-xs) 0;
  }
}

/* Checks: sticky intro beside the accordion */
.checks__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
}

.checks__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: start;
  gap: var(--space-sm);
}

.checks__intro > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.checks__intro p:not(.label) {
  max-width: 24rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .checks__layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--space-2xl);
    align-items: start;
  }

  .checks__intro {
    position: sticky;
    top: calc(var(--header-h) + var(--space-lg));
  }
}

/* After the inspection: vertical on phones, staggered on desktop */
.timeline {
  position: relative;
}

.timeline__line {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.4rem;
  width: 1px;
  background: var(--signal);
  transform-origin: top;
}

.timeline__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  margin: 0;
  padding-left: var(--space-lg);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  align-content: start;
  gap: var(--space-2xs);
}

.timeline__dot {
  position: absolute;
  top: 0.2rem;
  left: calc(0.1rem - var(--space-lg));
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--signal);
}

.timeline__title {
  font-size: var(--text-xl);
  line-height: 1.1;
}

.timeline__item p:not(.timeline__tag) {
  max-width: 24rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .timeline {
    padding-top: var(--space-lg);
  }

  .timeline__line {
    top: 0.3rem;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
    transform-origin: left;
  }

  .timeline__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
    padding-left: 0;
  }

  .timeline__item {
    --lift: 0px;
    margin-top: var(--lift);
  }

  .timeline__item:nth-child(even) {
    --lift: var(--space-xl);
  }

  .timeline__dot {
    top: calc(-1 * (var(--space-lg) + var(--lift)) + 0.0rem);
    left: 0;
  }
}

/* Negotiation: the page's light section */
.negotiate__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.negotiate__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: var(--space-md);
}

.negotiate__title {
  max-width: 12em;
  font-size: clamp(2.2rem, 1.4rem + 4.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.negotiate__copy p:not(.label) {
  max-width: 30rem;
  color: #2b333b;
}

.estimate {
  width: min(24rem, 100%);
  padding: var(--space-md);
  border: 1px solid #cfcabf;
  border-radius: var(--radius-lg);
  background: #fbfaf6;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.25);
  color: var(--paper-ink);
  font-size: var(--text-sm);
}

.estimate__head,
.estimate__row,
.estimate__total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.estimate__head {
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid #dcd8cf;
}

.estimate__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.estimate__tag {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--paper-ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.estimate__rows {
  margin: 0;
}

.estimate__row {
  overflow-wrap: anywhere;
  padding-block: 0.65rem;
  border-bottom: 1px solid #ebe8e0;
}

.estimate__amount {
  font-family: var(--font-mono);
  color: #4a535d;
}

.estimate__total {
  padding-top: 0.8rem;
  font-weight: 600;
}

@media (min-width: 900px) {
  .negotiate__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-2xl);
  }

  .negotiate__figure {
    justify-self: end;
  }
}

/* Honest limits: calm, narrow, plain */
.limits {
  border-top: 1px solid var(--line);
}

.limits__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
}

.limits__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-sm);
}

.limits__title {
  max-width: 14ch;
  font-size: var(--text-2xl);
  line-height: 1;
  letter-spacing: -0.035em;
}

.limits__list {
  max-width: 36rem;
  margin: 0;
}

.limits__list li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  padding-block: var(--space-sm);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.limits__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.limits__list li::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--signal);
}

@media (min-width: 900px) {
  .limits__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-2xl);
    align-items: start;
  }
}
