/* Pricing page: intro, the two estimators, factors list, compare table, steps. FAQ and the estimate band are shared. */

.pricing-intro__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); }
.pricing-intro h1 { max-width: 16ch; }
.pricing-intro__text { max-width: 760px; }

/* Estimators */
.estimator__inner { display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 44px); padding-bottom: clamp(64px, 8vw, 104px); }
.estimator__inner--padded { padding-top: clamp(64px, 8vw, 104px); }
.tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tier {
  appearance: none; cursor: pointer; height: 44px; padding: 0 20px;
  border: 1.5px solid var(--line-hover); border-radius: var(--radius-pill); background: transparent; color: var(--ink);
  font-size: 16px; font-weight: 600; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tier:hover { border-color: var(--ink); }
.tier:active { transform: scale(.98); }
.tier[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.estimator__card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center;
  width: 100%; max-width: 1180px; align-self: center; padding: clamp(28px, 3vw, 44px); border-radius: 24px;
}
.estimator__card--white { background: var(--white); }
.estimator__card--page { background: var(--bg); }
.estimator__svg { display: block; width: 100%; height: auto; max-width: 520px; justify-self: center; }
.estimator__drawing { width: 100%; max-width: 520px; justify-self: center; min-width: 0; }
.estimator__drawing [hidden] { display: none; }
.estimator__result { display: flex; flex-direction: column; min-width: 0; }
.est-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.est-row__swatch { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(21, 41, 30, .35); align-self: center; }
.est-row__label { display: flex; flex-direction: column; gap: 2px; }
.est-row__name { font-size: 17px; font-weight: 600; color: var(--ink); }
.est-row__sub { font-size: 14px; color: var(--text); }
.est-row__value { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.est-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0 0; border-top: 2px solid var(--ink); }
.est-total__label { font-size: 17px; font-weight: 600; color: var(--ink); }
.est-total__value { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.est-note { margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.est-note--partial { margin-top: 4px; }
.est-carry { align-self: flex-start; margin-top: 18px; }
.estimator__footnote { align-self: center; max-width: 760px; text-align: center; font-size: 15px; line-height: 1.55; color: var(--text); text-wrap: pretty; }

.estimator__result--exterior { gap: 18px; }
.est-type { display: flex; flex-direction: column; gap: 6px; }
.est-type__note { font-size: 15.5px; line-height: 1.5; color: var(--text); }
.est-range { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.est-range__label { font-size: 17px; font-weight: 600; color: var(--ink); }
.est-range__value { font-family: var(--font-display); font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.est-range__heavy { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.est-range__heavy[hidden] { display: none; }
.est-range__sub { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.est-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.est-list__item { display: flex; gap: 10px; align-items: flex-start; }
.est-list__item svg { display: block; flex: none; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.est-list__item--no svg { stroke: #8a5a1f; stroke-width: 2.2; }
.est-switch {
  appearance: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border: 1.5px solid rgba(21, 41, 30, .18); border-radius: 14px; background: var(--white); text-align: left; color: var(--ink);
}
.est-switch:hover { border-color: var(--ink); }
.est-switch__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.est-switch__title { font-size: 15.5px; font-weight: 600; }
.est-switch__sub { font-size: 14px; color: var(--text); }
.est-switch__track { position: relative; flex: none; width: 44px; height: 24px; border-radius: var(--radius-pill); background: rgba(21, 41, 30, .25); transition: background-color .2s ease; }
.est-switch__knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: var(--radius-pill); background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.est-switch[aria-checked="true"] .est-switch__track { background: var(--accent); }
.est-switch[aria-checked="true"] .est-switch__knob { transform: translateX(20px); }

/* What moves the price */
.factors__list { margin: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.factor { display: grid; grid-template-columns: 56px minmax(140px, 1fr) minmax(0, 2fr); gap: 18px 24px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.factor__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); background: var(--panel); color: var(--accent); }
.factor__icon svg { display: block; }
.factor__title { font-size: 18px; font-weight: 600; color: var(--ink); padding-top: 14px; }
.factor__text { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--text); padding-top: 14px; text-wrap: pretty; }
@media (max-width: 719.98px) {
  .factor { grid-template-columns: 56px minmax(0, 1fr); }
  .factor__text { grid-column: 2; padding-top: 0; }
}

/* Compare quotes */
.compare__inner { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.compare__table { width: 100%; max-width: 1100px; align-self: center; border-collapse: collapse; }
.compare__table th, .compare__table td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-top: 1px solid var(--line); }
.compare__table thead th { padding-top: 0; border-top: 0; border-bottom: 1px solid var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare__table thead th:nth-child(3) { color: var(--accent); }
.compare__table tbody th { width: 22%; font-size: 17px; font-weight: 600; color: var(--ink); }
.compare__table td { width: 39%; font-size: 16px; line-height: 1.55; color: var(--text); }
.compare__table td > span { display: inline-block; vertical-align: top; max-width: calc(100% - 30px); }
.compare__table td svg { display: inline-block; vertical-align: top; margin: 4px 12px 0 0; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.compare__vague svg { stroke: #8a5a1f; }
.compare__hemlock { color: var(--ink); }
@media (max-width: 719.98px) {
  .compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare__table tr { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
  .compare__table th, .compare__table td { display: block; width: auto; padding: 6px 0; border: 0; }
  .compare__table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}

/* How to get your exact price */
.price-steps__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(36px, 4.5vw, 56px); padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.price-steps__list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(28px, 3.4vw, 48px); }
.price-step { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.price-step__mark { display: flex; align-items: center; gap: 12px; }
.price-step__icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); background: var(--panel); color: var(--accent); }
.price-step__icon svg { display: block; }
.price-step__number { font-family: var(--font-display); font-size: 20px; color: var(--gold); }
.price-step__title { font-family: var(--font-body); font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.price-step__text { font-size: 16.5px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.price-steps__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 28px; }

/* Popcorn ceiling removal add-on (id="popcorn"): cards shared with the service page (main.css), link to its worked examples */
.popcorn { scroll-margin-top: 96px; }
.popcorn__main { display: flex; flex-direction: column; gap: 24px; }
.popcorn__main .arrow-link { align-self: flex-start; }
