/* /lead-services/pricing/ (layout d). Page-only pieces: ladder layout, included list, estimator card. */
.pr-ladder { display: grid; gap: var(--s7); align-items: start; }
.pr-ladder__intro > * + * { margin-top: var(--s4); }
.pricesheet th.pr-right { text-align: right; }
.pr-incl { margin-top: var(--s6) !important; padding: var(--s5); border-radius: var(--r-lg); background: var(--bg-soft); }
.pr-incl h3 { font-size: 1.2rem; }
.pr-incl ul { margin-top: var(--s3); display: grid; gap: var(--s3); }
.pr-incl li { position: relative; padding-left: 30px; }
.pr-incl li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--em-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.pr-incl .muted { margin-top: var(--s4); font-size: var(--fs-sm); }
.price--quote a { font-weight: 700; }
@media (min-width: 1100px) {
  .pr-ladder { grid-template-columns: 6fr 5fr; gap: var(--s8); }
  .pr-ladder .pricesheet { position: sticky; top: calc(var(--hdr-h) + 32px); }
}

/* estimator (needs JS, so it is hidden without it) */
html:not(.js) .pr-est-sec { display: none; }
.pr-est { display: grid; gap: var(--s6); align-items: start; }
.pr-est__copy > * + * { margin-top: var(--s4); }
.pr-est__card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: var(--s5); display: grid; }
.pr-est__card > .field:first-child { margin-top: 0; }
.pr-est__rooms { border: 0; padding: 0; margin: var(--s5) 0 0; min-width: 0; }
.pr-est__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
.pr-est__grid .field { margin-top: var(--s3); }
.pr-est__grid .field > label { font-weight: 500; color: var(--muted); font-size: .92rem; }
.pr-est__out { display: grid; gap: 2px; margin: var(--s5) 0 var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--em-900); color: var(--on-dark-muted); }
.pr-est__label { font-size: .85rem; font-weight: 600; color: var(--gold-200); }
.pr-est__total { font: 700 2.2rem/1.1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.pr-est__note { font-size: .92rem; }
@media (min-width: 768px) { .pr-est__card { padding: var(--s6); } .pr-est__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pr-est { grid-template-columns: 5fr 6fr; gap: var(--s8); align-items: center; } }

.pr-src { margin-top: var(--s5); }
/* second table: on wide screens the row title is a link; on phones the title is the fold button and the link moves into the row body */
.pr-phone { display: none; }
@media (max-width: 767px) {
  .pr-wide { display: none; }
  span.pr-phone { display: block; }
  a.pr-more { display: flex; align-items: center; width: fit-content; min-height: 44px; font-weight: 600; }
  .page-pricing .tbl--stack tbody th { padding-block: 0; }
  /* closed row = title + starting point on one line, so the whole table fits a 375x667 screen with a row open */
  .page-pricing .tbl--stack td:last-child { padding-top: 6px; }
  .page-pricing .tbl--stack td:last-child::before { display: inline; margin: 0 8px 0 0; }
  /* closed row: the starting point gets the same space below as above, so it does not sit on the divider or the card edge */
  .page-pricing .tbl--stack .fold-on tr:not(.is-open) td:last-child { padding-bottom: 6px; }

  .pr-ladder { gap: var(--gap-block); }
  .pr-incl { margin-top: var(--gap-block) !important; padding: var(--card-pad-sm); }
  .pr-incl h3 { font-size: var(--fs-h4); }
  .pr-incl ul { gap: 8px; }
  .pr-incl li { padding-left: 26px; font-size: var(--fs-body-sm); line-height: 1.5; }
  .pr-incl li::before { width: 18px; height: 18px; background-size: 18px; }
  .pr-incl .muted { margin-top: 12px; font-size: var(--fs-compact); }

  .pr-est { gap: var(--gap-block); }
  .pr-est__card { padding: var(--card-pad-sm); }
  .pr-est__card > .field:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .pr-est__card > .field:first-child > label { margin: 0; }
  .pr-est__card > .field:first-child > select { flex: none; width: 104px; }
  .pr-est__rooms { margin-top: 16px; }
  .pr-est__rooms .field__label { margin-bottom: 0; padding: 0; }
  .pr-est__grid { column-gap: 12px; }
  .pr-est__grid .field { margin-top: 8px; }
  .pr-est__grid .field > label { font-size: var(--fs-compact); }
  .pr-est__out { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; margin: 16px 0 12px; padding: 12px var(--card-pad-sm); }
  .pr-est__label { font-size: var(--fs-compact); }
  .pr-est__total { font-size: var(--fs-h2); }
  .pr-est__note { grid-column: 1 / -1; font-size: var(--fs-compact); line-height: 1.45; }
  .pr-src { margin-top: var(--gap-head); }
}
/* short screens (320x480): the estimator with two units fits between the header and the action bar */
@media (max-width: 767px) and (max-height: 560px) {
  .pr-est__rooms { margin-top: 12px; }
  .pr-est__grid .field { margin-top: 6px; }
  .pr-est__out { margin: 10px 0; }
}

/* estimator picture: a row of houses that follows the picks */
.pr-street { display: flex; align-items: flex-end; gap: 6px; margin-top: var(--s6); min-height: 210px; }
.pr-lot { flex: 0 1 112px; display: grid; justify-items: stretch; }
.pr-lot em { padding-top: 8px; border-top: 3px solid var(--em-900); text-align: center; font: 700 1.05rem/1 var(--font-display); font-style: normal; color: var(--em-900); }
.pr-house { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 34px 12px 0; background: var(--em-700);
  clip-path: polygon(0 26px, 50% 0, 100% 26px, 100% 100%, 0 100%); transition: height .35s var(--ease, ease); color: #fff; }
.pr-lot:nth-child(2) .pr-house { background: var(--em-800); } .pr-lot:nth-child(3) .pr-house { background: #2f6b47; } .pr-lot:nth-child(4) .pr-house { background: var(--em-900); }
.pr-house--0, .pr-house--1 { height: 130px; } .pr-house--2 { height: 160px; } .pr-house--3 { height: 196px; }
.pr-house__wins { display: grid; grid-template-columns: repeat(2, 22px); gap: 8px; justify-content: center; margin-bottom: 10px; }
.pr-house--0 .pr-house__wins, .pr-house--1 .pr-house__wins { grid-template-columns: 22px; }
.pr-house__wins i { width: 22px; height: 26px; border-radius: 3px 3px 0 0; background: var(--gold-200); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12); }
.pr-house--0 .pr-house__wins i { background: var(--gold-wash); }
.pr-house__door { width: 22px; height: 32px; border-radius: 11px 11px 0 0; background: rgba(0, 0, 0, .28); }
@media (prefers-reduced-motion: reduce) { .pr-house { transition: none; } }
@media (max-width: 767px) {
  .pr-street { min-height: 150px; margin-top: var(--gap-stack); }
  .pr-lot { flex-basis: 76px; }
  .pr-house { padding: 26px 6px 0; clip-path: polygon(0 18px, 50% 0, 100% 18px, 100% 100%, 0 100%); }
  .pr-house--0, .pr-house--1 { height: 96px; } .pr-house--2 { height: 118px; } .pr-house--3 { height: 142px; }
  .pr-house__wins { grid-template-columns: repeat(2, 16px); gap: 6px; margin-bottom: 6px; }
  .pr-house--0 .pr-house__wins, .pr-house--1 .pr-house__wins { grid-template-columns: 16px; }
  .pr-house__wins i { width: 16px; height: 18px; }
  .pr-house__door { width: 16px; height: 22px; }
  .pr-lot em { font-size: .95rem; }
}
.pr-lot--empty .pr-house { background: rgba(0, 60, 24, .07) !important; }
.pr-lot--empty em { color: rgba(0, 48, 12, .4); font: 600 .85rem/1 var(--font-body); border-top-color: rgba(0, 48, 12, .15); }
