/* cards.css: the design-build feature-card kit (Wren pass 2, 2026-11-15; Eric: more screens, cards that
   hold up alone at full frame for the v6 reels). Owns layout only: the title row (.fc-h: label and glyph
   left, status chip right), the status chips (.fc-chip), the lot-and-footprint plan in the floor-area tile
   (.fp), the phase legend under the build-time track (.phl), the live estimate with its budget ring and
   line items in the finish panel (.est), the kept/new legend under the remodel (.rm-legend), the ticking
   checklist in the process panel and the star row on review cards (.stars). Loaded after tiles.css and
   before glass.css, which owns every surface. Never add a backdrop-filter here. */

/* ---------- Title row: label and glyph left, chip right ---------- */
.fc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.fc-h .tile__k, .fc-h .ppanel__k { display: inline-flex; align-items: center; gap: 7px; min-width: 0; margin: 0; }
.fc-i { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: #ecb886; }
.fc-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 9px; border-radius: 999px;
  font: 500 .68rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums;
  color: #e9ece6; background: rgb(241 240 234 / .08); box-shadow: inset 0 0 0 1px rgb(241 240 234 / .15); text-shadow: none;
}
.fc-chip--acc { color: #f3cfa6; background: rgb(228 166 108 / .14); box-shadow: inset 0 0 0 1px rgb(228 166 108 / .36); }
.fc-chip b { font-weight: 600; }
.tile .fc-h .tile__k { white-space: nowrap; }
/* the spec tiles over the stage: wide enough for label, glyph and chip on one line (titles and big
   numbers then share a baseline across the row); the glyph steps out in the narrow 640 to 719 band */
@media (min-width: 960px) { .tiles { max-width: 680px; } }
@media (min-width: 640px) and (max-width: 719px) { .tiles .fc-i { display: none; } }
.config__hd { margin-bottom: 10px; }
.config__hd .tile__k { font-size: .76rem; }

/* ---------- Floor area: the lot and footprint plan ---------- */
.fp { width: 100%; height: auto; max-height: 56px; margin-top: auto; overflow: visible; }
.fp__lot { fill: rgb(241 240 234 / .04); stroke: rgb(241 240 234 / .35); stroke-width: 1; stroke-dasharray: 3 3; }
.fp__tree { fill: none; stroke: rgb(241 240 234 / .3); stroke-width: 1; }
.fp__body { fill: rgb(241 240 234 / .22); stroke: rgb(241 240 234 / .5); stroke-width: 1; }
.fp__wing { fill: #e4a66c; stroke: #e4a66c; stroke-width: 1; transform-origin: 52px 29px; transform: scaleX(var(--w, 1)); transition: transform .7s var(--ease); }
.fp__deck { fill: rgb(228 166 108 / .35); }
.fp__n { font: 500 7px var(--display); fill: rgb(241 240 234 / .88); letter-spacing: .06em; }
.tiles.armed:not(.seen) .fp__wing { transform: scaleX(0); }

/* ---------- Build time: phase legend under the track ---------- */
.phl { display: grid; grid-template-columns: 4fr 10fr 10fr 10fr; gap: 2px; margin-top: 2px; }
.phl i { display: flex; flex-direction: column; min-width: 0; font-style: normal; }
.phl em { font: 400 .6rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; font-style: normal; color: var(--fg-ink-2); overflow: hidden; text-overflow: clip; white-space: nowrap; }
.phl b { font: 500 .8rem/1 var(--display); font-variant-numeric: tabular-nums; margin-top: 3px; color: var(--fg-ink); }
.phl i:first-child em { font-size: .52rem; }

/* ---------- Finish panel: the live estimate ---------- */
.est {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "ring main" "lines lines"; column-gap: 14px; row-gap: 12px;
  align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgb(241 240 234 / .14);
}
.est__ring {
  grid-area: ring; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; align-content: center; position: relative;
  background: conic-gradient(#e4a66c 0 calc(var(--a) * 1%), #94a083 0 calc(var(--b) * 1%), rgb(241 240 234 / .22) 0);
  transition: background .4s var(--ease);
}
.est__ring::before { content: ""; position: absolute; inset: 9px; border-radius: inherit; background: rgb(22 31 27 / .92); }
.est__ring b, .est__ring small { position: relative; line-height: 1; }
.est__ring b { font: 500 1.25rem/1 var(--display); color: #f1f0ea; }
.est__ring small { font: italic 400 .72rem/1 var(--text); color: #d3dbd5; margin-top: 2px; }
.est__main { grid-area: main; display: grid; gap: 4px; min-width: 0; }
.est__k { font: 400 .72rem/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #ecb886; }
.est__v { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 500 2.2rem/1 var(--display); font-variant-numeric: tabular-nums; color: #f1f0ea; }
.est__v b { font-weight: inherit; }
.est__n { white-space: nowrap; }
.est__d {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font: 500 .68rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase;
  color: #e9ece6; background: rgb(241 240 234 / .08); box-shadow: inset 0 0 0 1px rgb(241 240 234 / .15); text-shadow: none;
}
.est__d.is-up { color: #f3cfa6; background: rgb(228 166 108 / .14); box-shadow: inset 0 0 0 1px rgb(228 166 108 / .36); }
.est__lines { grid-area: lines; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.est__lines li { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center; font: 400 .72rem/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #d3dbd5; min-width: 0; }
.est__lines li b { grid-column: 1 / -1; font: 500 1.15rem/1 var(--display); font-variant-numeric: tabular-nums; color: #f1f0ea; margin-top: 4px; letter-spacing: 0; }
.est__lines i { width: 8px; height: 8px; border-radius: 2px; background: rgb(241 240 234 / .22); }
.est__lines .l1 { background: #e4a66c; }
.est__lines .l2 { background: #94a083; }

/* ---------- Remodel: what stayed and what is new ---------- */
.rm-foot { display: grid; gap: 12px; margin-top: 14px; }
.rm-foot .caption { margin-top: 0; }
.rm-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-legend .fc-chip { min-height: 30px; text-transform: none; letter-spacing: .03em; font-size: .78rem; }
.rm-legend i { width: 8px; height: 8px; border-radius: 50%; background: #94a083; }
.rm-legend i.new { background: #e4a66c; }
@media (min-width: 900px) { .rm-foot { grid-template-columns: auto 1fr; align-items: center; gap: 24px; } }

/* ---------- Process panel: a chip in the title row and a checklist that ticks in ---------- */
.ppanel .fc-h { margin-bottom: 2px; }
.ppanel.fg .ppanel__list li::before { /* specificity matches the plain-square rule in tiles.css */
  content: ""; width: 16px; height: 16px; border-radius: 4px; transform: translateY(2px);
  background: rgb(228 166 108 / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.6' fill='none' stroke='%23e4a66c' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow: inset 0 0 0 1px rgb(228 166 108 / .5);
}
.ppanel.is-in .ppanel__list li::before { animation: tick-in .4s var(--ease) both; }
.ppanel.is-in .ppanel__list li:nth-child(2)::before { animation-delay: .25s; }
.ppanel.is-in .ppanel__list li:nth-child(3)::before { animation-delay: .5s; }
@keyframes tick-in { from { background-size: 0 0; } to { background-size: 16px 16px; } }

/* ---------- Review cards: five stars and a chip above the quote ---------- */
.stars { display: flex; align-items: center; gap: 3px; margin-bottom: -6px; }
.stars svg { width: 15px; height: 15px; fill: #e4a66c; }
.stars .fc-chip { margin-left: auto; }
.quote.fg blockquote p::before { margin-top: 2px; }

@media (max-width: 639px) {
  .est { grid-template-columns: 64px minmax(0, 1fr); }
  .est__ring { width: 64px; height: 64px; }
  .est__v { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ppanel.is-in .ppanel__list li::before { animation: none; }
  .fp__wing { transition: none; }
}
