/* Build-your-project estimator.
   Kept out of home.css deliberately: this only loads on /pricing, and
   home.css is already large enough to be a page-speed problem on its own. */

.pricing-page {
  position: relative; z-index: 2; min-height: 100vh;
  padding-top: clamp(7.5rem, 12vw, 10rem); padding-bottom: clamp(5rem, 10vw, 8rem);
  background: linear-gradient(180deg, rgba(239,234,224,0.82), rgba(239,234,224,0.96) 45%, rgba(236,230,219,1) 100%);
  color: #1c1712;
}
.pricing-page-inner { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; }
.pricing-eyebrow { margin: 0 0 1rem; font-size: 0.7rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: rgba(28,23,18,.56); }
.pricing-hero { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.pricing-page h1 {
  margin: 0; max-width: 16ch;
  font-family: var(--font-display, Montserrat, sans-serif);
  font-size: clamp(2.5rem, 5.4vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.022em;
}
.pricing-lede { max-width: 60ch; margin: 1.4rem 0 0; color: rgba(28,23,18,.72); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.78; }

/* ── layout ─────────────────────────────────────────────────────── */
.pc { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,360px); gap: clamp(1.5rem,3vw,2.6rem); align-items: start; }
.pc-main { display: flex; flex-direction: column; gap: clamp(2.2rem,4.5vw,3.4rem); min-width: 0; }
.pc-step { scroll-margin-top: 6rem; }
.pc-step[hidden] { display: none; }
.pc-step-head { margin-bottom: .5rem; }
.pc-step-head h2 { margin: 0; font-family: var(--font-display, Montserrat, sans-serif); font-size: clamp(1.35rem,2.4vw,2rem); font-weight: 800; letter-spacing: -.015em; }
.pc-step-note { margin: 0 0 1.1rem; max-width: 62ch; color: rgba(28,23,18,.66); font-size: 0.9rem; line-height: 1.7; }

/* ── step 1: intent ─────────────────────────────────────────────── */
.pc-intents { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: .7rem; margin-top: .8rem; }
.pc-intent { display: flex; flex-direction: column; gap: .35rem; padding: 1.05rem 1.1rem; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.6); border: 1px solid rgba(28,23,18,.12); border-radius: 4px; color: inherit; font: inherit;
  transition: border-color .2s ease, background .2s ease; }
.pc-intent:hover { border-color: rgba(28,23,18,.3); }
.pc-intent.is-on { border-color: #1f6b5c; background: rgba(31,107,92,.09); }
.pc-intent:focus-visible, .pc-base:focus-visible, .pc-care:focus-visible { outline: 2px solid #1f6b5c; outline-offset: 2px; }
.pc-intent-label { font-weight: 700; font-size: 1rem; }
.pc-intent-hint { font-size: .8rem; color: rgba(28,23,18,.62); line-height: 1.5; }

/* ── step 2: base ───────────────────────────────────────────────── */
.pc-bases { display: grid; grid-template-columns: repeat(auto-fit,minmax(215px,1fr)); gap: .8rem; }
.pc-base { display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.6); border: 1px solid rgba(28,23,18,.12); border-radius: 4px; color: inherit; font: inherit;
  transition: border-color .2s ease, background .2s ease; }
.pc-base:hover { border-color: rgba(28,23,18,.3); }
.pc-base.is-on { border-color: #1f6b5c; background: rgba(31,107,92,.09); }
.pc-base-name { font-family: var(--font-display, Montserrat, sans-serif); font-weight: 800; font-size: 1rem; }
.pc-base-price { font-weight: 800; font-size: 1rem; color: #1f6b5c; }
.pc-base-blurb { font-size: 0.8rem; color: rgba(28,23,18,.7); line-height: 1.55; }
.pc-base-weeks { font-size: 0.7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(28,23,18,.5); }
.pc-base-list { margin: .5rem 0 0; padding-left: 1rem; font-size: 0.8rem; color: rgba(28,23,18,.7); line-height: 1.7; }

/* ── step 3: add-ons ────────────────────────────────────────────── */
.pc-group + .pc-group { margin-top: 1.9rem; }
.pc-group-title { margin: 0 0 .3rem; font-size: 0.7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: rgba(28,23,18,.56); }
.pc-group-note { margin: 0 0 .8rem; font-size: 0.8rem; color: rgba(28,23,18,.6); }
.pc-items { display: flex; flex-direction: column; gap: .45rem; }
.pc-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; cursor: pointer;
  background: rgba(255,255,255,.52); border: 1px solid rgba(28,23,18,.11); border-radius: 4px;
  transition: border-color .18s ease, background .18s ease; }
.pc-item:hover { border-color: rgba(28,23,18,.28); }
.pc-item.is-on { border-color: #1f6b5c; background: rgba(31,107,92,.09); }
.pc-item.is-included { cursor: default; opacity: .62; }
.pc-item-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.pc-item-name { font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.pc-item-blurb { font-size: .8rem; color: rgba(28,23,18,.62); line-height: 1.5; }
.pc-est { padding: .1rem .34rem; border: 1px solid rgba(28,23,18,.2); border-radius: 3px; font-size: 0.7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: rgba(28,23,18,.5); }
.pc-item-side { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.pc-item-price { font-weight: 800; font-size: .9rem; white-space: nowrap; }
.pc-item-price small { font-weight: 600; color: rgba(28,23,18,.55); }
.pc-included { font-size: 0.7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #1f6b5c; }
.pc-qty { display: inline-flex; align-items: center; gap: .1rem; border: 1px solid rgba(28,23,18,.2); border-radius: 99px; overflow: hidden; }
.pc-qty button { width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; font-size: 1rem; line-height: 1; color: inherit; }
.pc-qty button:hover { background: rgba(28,23,18,.08); }
.pc-qty span { min-width: 22px; text-align: center; font-weight: 800; font-size: 0.8rem; }

/* ── step 4: care ───────────────────────────────────────────────── */
.pc-cares { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: .7rem; }
.pc-care { display: flex; flex-direction: column; gap: .35rem; padding: 1.05rem 1.1rem; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.6); border: 1px solid rgba(28,23,18,.12); border-radius: 4px; color: inherit; font: inherit;
  transition: border-color .2s ease, background .2s ease; }
.pc-care:hover { border-color: rgba(28,23,18,.3); }
.pc-care.is-on { border-color: #1f6b5c; background: rgba(31,107,92,.09); }
.pc-care-name { font-weight: 800; font-size: 1rem; }
.pc-care-price { font-weight: 800; color: #1f6b5c; font-size: 1rem; }
.pc-care-price small { font-size: .7rem; font-weight: 700; }
.pc-care-blurb { font-size: .8rem; color: rgba(28,23,18,.65); line-height: 1.55; }

/* ── step 5: market comparison ──────────────────────────────────── */
.pc-compare { display: flex; flex-direction: column; gap: .9rem; }
.pc-compare-empty { margin: 0; font-size: 0.9rem; color: rgba(28,23,18,.55); font-style: italic; }
.pc-compare-row { display: grid; grid-template-columns: minmax(130px,190px) minmax(0,1fr) auto; gap: .9rem; align-items: center;
  padding: .8rem 0; border-bottom: 1px solid rgba(28,23,18,.1); }
.pc-compare-row.is-mine { border-bottom: 2px solid #1f6b5c; }
.pc-compare-label { font-weight: 700; font-size: .9rem; }
.pc-compare-row.is-mine .pc-compare-label { color: #1f6b5c; font-weight: 800; }
.pc-compare-bar { height: 9px; background: rgba(28,23,18,.09); border-radius: 99px; overflow: hidden; }
.pc-compare-bar span { display: block; height: 100%; background: rgba(28,23,18,.34); }
.pc-compare-row.is-mine .pc-compare-bar span { background: #1f6b5c; }
.pc-compare-price { font-weight: 800; font-size: 0.9rem; white-space: nowrap; }
.pc-compare-note { grid-column: 1 / -1; margin: .2rem 0 0; font-size: 0.8rem; color: rgba(28,23,18,.62); line-height: 1.6; }

/* ── estimate panel ─────────────────────────────────────────────── */
.pc-summary { position: sticky; top: 5.5rem; }
.pc-summary-inner { display: flex; flex-direction: column; gap: .8rem; padding: 1.3rem; background: #1c1712; color: #f1eee4; border-radius: 5px; }
.pc-summary-kicker { margin: 0; font-size: 0.7rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; color: rgba(241,238,228,.5); }
.pc-summary-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; max-height: 260px; overflow-y: auto; }
.pc-summary-lines li { display: flex; justify-content: space-between; gap: .8rem; font-size: 0.8rem; line-height: 1.45; padding-bottom: .45rem; border-bottom: 1px solid rgba(255,255,255,.09); }
.pc-summary-lines li span:last-child { white-space: nowrap; font-weight: 700; }
.pc-summary-empty { color: rgba(241,238,228,.45); font-style: italic; }
.pc-summary-total { padding-top: .3rem; }
.pc-summary-total-label { font-size: 0.7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(241,238,228,.5); }
.pc-total { font-family: var(--font-display, Montserrat, sans-serif); font-size: clamp(1.6rem,2.6vw,2rem); font-weight: 800; line-height: 1.15; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.pc-total span { color: rgba(241,238,228,.45); font-weight: 500; }
.pc-total-zero { color: rgba(241,238,228,.35); }
.pc-summary-monthly { display: block; margin-top: .25rem; font-size: 0.8rem; color: #a9cdbb; font-weight: 700; }
.pc-cta { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: 0 1.1rem; margin-top: .4rem;
  background: #7fc4ad; color: #14100c; font-weight: 800; font-size: 0.9rem; text-decoration: none; border-radius: 4px; transition: background .2s ease; }
.pc-cta:hover { background: #a9cdbb; }
.pc-cta[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.pc-reset { padding: .5rem; background: transparent; border: 1px solid rgba(255,255,255,.16); color: rgba(241,238,228,.75); border-radius: 4px; cursor: pointer; font: inherit; font-size: 0.8rem; }
.pc-reset:hover { border-color: rgba(255,255,255,.34); }
.pc-summary-fine { margin: .2rem 0 0; font-size: 0.7rem; line-height: 1.6; color: rgba(241,238,228,.5); }

/* ── faq ────────────────────────────────────────────────────────── */
.pricing-faq { margin-top: clamp(3.5rem,7vw,5.5rem); padding-top: clamp(2rem,4vw,3rem); border-top: 1px solid rgba(28,23,18,.13); }
.pricing-faq h2 { margin: 0 0 1.6rem; font-family: var(--font-display, Montserrat, sans-serif); font-size: clamp(1.6rem,2.6vw,2rem); font-weight: 800; letter-spacing: -.015em; }
.pricing-faq-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: 1.6rem 2.2rem; }
.pricing-faq-grid h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 800; }
.pricing-faq-grid p { margin: 0; font-size: 0.9rem; line-height: 1.72; color: rgba(28,23,18,.72); }

@media (max-width: 900px) {
  .pc { grid-template-columns: 1fr; }
  .pc-summary { position: static; order: -1; }
  .pc-summary-lines { max-height: 170px; }
  .pc-compare-row { grid-template-columns: 1fr auto; }
  .pc-compare-bar { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-intent, .pc-base, .pc-item, .pc-care, .pc-cta { transition: none; }
}
