/* live report demo */
.report { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: 0 20px 48px rgba(51,51,51,.10); }
.esx { margin-left: auto; background: var(--brand); color: var(--paper); font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: var(--r-sm); }
.facet { opacity: 0; animation: pop .34s ease forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .facet { animation: none; opacity: 1; } }
.note { font-size: 13px; color: var(--ink-3); }
/* ------------------------------------------- five-stage tab strip */
.stage5 { margin-top: 44px; }
.stab-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.stab {
  position: relative; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); padding: 0 22px 18px 0; display: flex; flex-direction: column;
  align-items: flex-start; gap: 0;
}
.stile {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(51,51,51,.055); color: var(--ink-3);
  transition: background .22s, color .22s;
}
.stile svg { width: 21px; height: 21px; }
.stab[aria-selected="true"] .stile { background: var(--brand); color: var(--paper); }
.stab-t { margin-top: 14px; min-height: 42px; font-size: 17px; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; color: var(--ink-3); transition: color .22s; }
.stab[aria-selected="true"] .stab-t { color: var(--ink); }
.stab-d { margin-top: 5px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.sbar { position: absolute; left: 0; right: 22px; bottom: 0; height: 2.5px; background: rgba(51,51,51,.11); border-radius: 2px; overflow: hidden; }
.sbar i { display: block; height: 100%; width: 0; background: var(--brand); }
.stab[aria-selected="true"] .sbar { background: rgba(110,4,189,.16); }
.stab[aria-selected="true"] .sbar i { animation: sfill 6800ms linear forwards; }
.stage5.paused .sbar i { animation-play-state: paused; }
.stage5.paused .stab[aria-selected="true"] .sbar i { width: 100%; animation: none; }
@keyframes sfill { to { width: 100%; } }
.stab-s, .stab-cap { display: none; }
.stab-cap { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.stab-cap b { font-weight: 600; color: var(--ink); }
/* phones: all five tabs fit on one row as icons with a one-word label, so nothing hides off screen */
@container pg (max-width: 640px) {
  .stage5 .stab-row { gap: 6px; }
  .stage5 .stab { align-items: center; text-align: center; padding: 0 0 12px; }
  .stage5 .stab-t { display: none; }
  .stage5 .stab-s { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: color .22s; }
  .stage5 .stab[aria-selected="true"] .stab-s { color: var(--ink); }
  .stage5 .sbar { left: 4px; right: 4px; }
  .stage5 .stab-cap { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .stab[aria-selected="true"] .sbar i { animation: none; width: 100%; } }
.screen {
  margin-top: 30px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: 0 20px 52px rgba(51,51,51,.10);
  overflow: hidden; display: flex; flex-direction: column; min-height: 440px;
}
.screen-top { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 48px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
#screen-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-chip { flex: none; white-space: nowrap; margin-left: auto; font-family: var(--sans); font-weight: 600; font-size: 11.5px; color: var(--brand-deep); background: var(--brand-tint); padding: 5px 10px; border-radius: var(--r-full); }
.screen-body { padding: 20px; flex: 1; }
.panel { animation: rise .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }
@container pg (max-width: 1000px) {
  .stab { padding-right: 14px; }
  .stab-t { min-height: 0; font-size: 15.5px; }
  .stab-d { display: none; }
  .sbar { right: 14px; }
  .stab-cap { display: block; }
  .stab-cap b { display: none; }

  .screen { min-height: 0; }
}
@container pg (max-width: 560px) {

  .screen-body { padding: 14px; }
}
/* product screenshots in the five-stage strip */
.screen-body.shots { padding: 0; }
.pshot { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 620px; overflow: hidden; background: #f4f2ee; }
.pshot img { display: block; }
.pshot img.fill { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pshot.pshot-sm img.fill { object-fit: contain; object-position: center top; padding: 3% 11% 0; }   /* Contract: shown smaller, not zoomed to fill */
.pshot.fade img { -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
/* ---- instant measurement scene ---- */
.pshot.ms { display: block; padding: 0; background: #1b1420; position: relative; }
.ms .aerial { position: absolute; inset: 0; display: block; }
.ms .mf { fill: #6e04bd; fill-opacity: 0; transition: fill-opacity .55s ease;
  transition-delay: calc(var(--i) * 70ms + 420ms); }
.ms.play .mf { fill-opacity: .34; }
.ms .ml { fill: none; stroke: #c9a0f0; stroke-width: 4; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .75s ease;
  transition-delay: calc(var(--i) * 70ms + 360ms); }
.ms.play .ml { stroke-dashoffset: 0; }
.msaddr { position: absolute; left: 3.2%; top: 5%; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.95); border-radius: 999px; padding: 9px 16px;
  box-shadow: 0 2px 6px rgba(20,12,26,.18), 0 14px 32px rgba(20,12,26,.22);
  font-size: 13.5px; font-weight: 500; color: var(--ink); max-width: 62%; }
.msaddr svg { width: 14px; height: 14px; flex: none; color: var(--ink-3); }
.msaddr-t { white-space: nowrap; overflow: hidden; }
.mscaret { width: 1.5px; height: 15px; background: var(--brand); flex: none; opacity: 0; }
.ms.play .mscaret { animation: mscar 1s steps(2) 6; }
@keyframes mscar { 0%,49% { opacity: 1 } 50%,100% { opacity: 0 } }
.msread { position: absolute; right: 3.4%; bottom: 7%; width: 40%; min-width: 210px; max-width: 310px;
  background: rgba(255,255,255,.97); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(20,12,26,.16), 0 20px 46px rgba(20,12,26,.26);
  opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
  transition-delay: .55s; }
.ms.play .msread { opacity: 1; transform: translateY(0); }
.msread-h { margin: 0 0 10px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink); }
.msclock { margin-left: auto; background: var(--brand-tint); color: var(--brand-deep);
  border-radius: 999px; padding: 2px 9px; font-size: 11.5px; }
.msread dl { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.msro { display: flex; align-items: baseline; gap: 10px;
  opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease;
  transition-delay: calc(var(--n) * 90ms + .9s); }
.ms.play .msro { opacity: 1; transform: translateY(0); }
.msro dt { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.msro dd { margin: 0 0 0 auto; font-size: 13px; font-weight: 600; color: var(--ink); }
.msnum { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .msaddr { font-size: 11px; padding: 7px 12px; max-width: 72%; }
  .msread { width: 48%; min-width: 0; padding: 10px 11px; }
  .msread-h { font-size: 11.5px; } .msro dt, .msro dd { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms .mf { fill-opacity: .34; } .ms .ml { stroke-dashoffset: 0; }
  .ms .msread, .ms .msro { opacity: 1; transform: none; }
  .ms .mscaret { display: none; }
}
/* ---- roof report: fanned pages + esx chip ---- */
.pshot.doc-fan { display: block; padding: 0; background: #f4f2ee; }
.doc-fan .dpage {
  position: absolute; top: 9%; height: 76%; width: auto; border-radius: 8px; background: #fff;
  box-shadow: 0 1px 2px rgba(51,51,51,.08), 0 18px 44px rgba(51,51,51,.18);
  opacity: 0; transform: translateY(26px) rotate(0deg) scale(.96);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.doc-fan .d-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-fan .d-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,12,26,.18), rgba(20,12,26,.42)); }
.doc-fan .dpage { top: 6%; height: 86%; }
.doc-fan .d-cover { left: 18%; z-index: 1; }
.doc-fan .d-summary { left: 44%; top: 3%; z-index: 2; }
.doc-fan.play .d-cover { opacity: 1; transform: translateY(0) rotate(-7deg) scale(1); transition-delay: .05s; }
.doc-fan.play .d-summary { opacity: 1; transform: translateY(0) rotate(4deg) scale(1); transition-delay: .18s; }
.doc-fan .esx {
  position: absolute; left: 50%; bottom: 6%; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 11px 15px; min-width: 290px; max-width: 86%;
  box-shadow: 0 2px 6px rgba(51,51,51,.08), 0 18px 40px rgba(51,51,51,.18);
  opacity: 0; transform: translate(-50%, 18px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.doc-fan.play .esx { opacity: 1; transform: translate(-50%, 0); transition-delay: .75s; }
.esx-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-tint); display: grid; place-items: center; flex: none; }
.esx-ic svg { width: 16px; height: 16px; color: var(--brand); }
.esx-t { min-width: 0; }
.esx-t b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esx-t span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.esx-ok { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; flex: none; }
.esx-ok svg { width: 12px; height: 12px; color: #fff; }
@media (max-width: 720px) {
  .doc-fan .esx { min-width: 0; padding: 9px 12px; gap: 9px; }
  .esx-t b { font-size: 12.5px; } .esx-t span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .doc-fan .dpage, .doc-fan .esx { transition: none; opacity: 1; transform: none; }
  .doc-fan .d-cover { transform: rotate(-7deg); } .doc-fan .d-summary { transform: rotate(4deg); }
  .doc-fan .esx { transform: translate(-50%, 0); }
}
/* ---- proposal: the homeowner picks a shingle and sees it on their own roof. The roof is re-tinted
   with a per-channel gain (swatch mean / Midnight mean) inside the two measured roof planes, as in
   Aritro's AllInOne.astro visualizer; it walks through the colors while in view until someone picks one. ---- */
.pshot.pv { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; padding: 24px; background: #fff; }
.pv-list { display: flex; flex-direction: column; min-height: 0; }
.pv-h { margin: 2px 0 14px; font: 600 20px var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.pv-opts { display: grid; gap: 8px; min-height: 0; overflow: auto; }
.pv-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; text-align: left; font-family: var(--sans);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.pv-opt:hover { border-color: var(--line-2); }
.pv-opt img { flex: none; width: 38px; height: 38px; border-radius: 8px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pv-opt b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.pv-opt i { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); }
.pv-opt[aria-pressed="true"] { border-color: var(--brand); background: rgba(110,4,189,.05); box-shadow: inset 0 0 0 1px var(--brand); }
.pv-view { position: relative; overflow: hidden; border-radius: 18px; background: #2b2b2b; }
.pv-house { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-tint { opacity: 0; transition: opacity .7s cubic-bezier(.77,0,.175,1); }
.pv-tint.on { opacity: 1; }
.pv-chip { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(20,16,24,.72); color: #fff; font-size: 12.5px; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pv-cap { position: absolute; left: 14px; bottom: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(20,16,24,.6); color: #fff; font-size: 12px; }
@container pg (max-width: 760px) {
  .pshot.pv { display: flex; flex-direction: column; padding: 0; aspect-ratio: auto; max-height: none; }
  .pv-view { position: relative; inset: auto; aspect-ratio: 740 / 470; border-radius: 0; }
  .pv-cap, .pv-h, .pv-opt span { display: none; }
  .pv-list { order: 2; padding: 10px; }
  .pv-opts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; background: #f4f2ee; border-radius: 999px; }
  .pv-opt:first-child { margin-left: auto; } .pv-opt:last-child { margin-right: auto; }
  .pv-opt { width: auto; padding: 2px; border: 0; background: none; border-radius: 999px; box-shadow: none; }
  .pv-opt[aria-pressed="true"] { background: none; box-shadow: 0 0 0 2px var(--brand); }
  .pv-opt img { width: 28px; height: 28px; border-radius: 999px; }
}
@media (prefers-reduced-motion: reduce) { .pv-tint { transition: none; } }
/* ---- CRM dashboard ---- */
.pshot.crm { display: block; padding: 0; background: #f6f5f3; }
.crmapp { display: flex; height: 100%; font-size: 11px; color: var(--ink); }
.cside { width: 16%; min-width: 120px; background: #fff; border-right: 1px solid #ecebe7; padding: 12px 10px; display: flex; flex-direction: column; gap: 14px; }
.cbrand img { height: 15px; width: auto; display: block; }
.cnav { display: flex; flex-direction: column; gap: 2px; }
.cnav-i { padding: 6px 8px; border-radius: 7px; color: var(--ink-2); font-size: 10.5px; font-weight: 500; }
.cnav-i.is-on { background: #f1f0ec; color: var(--ink); border: 1px solid #e6e4df; }
.cmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ctop { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid #ecebe7; background: #fff; }
.ccrumb { font-size: 10.5px; color: var(--ink-2); }
.cav { margin-left: auto; width: 17px; height: 17px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 9px; display: grid; place-items: center; }
.chead { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px 9px; }
.chead h4 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.chead p { margin: 2px 0 0; font-size: 10px; color: var(--ink-3); }
.cbtn { margin-left: auto; background: var(--brand); color: #fff; font-size: 10px; font-weight: 600; padding: 6px 11px; border-radius: 7px; white-space: nowrap; }
.ctools { display: flex; align-items: center; gap: 8px; padding: 0 14px 11px; }
.csearch { flex: 1; min-width: 0; background: #fff; border: 1px solid #e6e4df; border-radius: 7px; padding: 6px 9px; font-size: 10px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cseg { display: inline-flex; background: #fff; border: 1px solid #e6e4df; border-radius: 7px; padding: 2px; flex: none; }
.cseg i { font-style: normal; font-size: 10px; padding: 4px 9px; border-radius: 5px; color: var(--ink-3); }
.cseg i.on { background: #f1f0ec; color: var(--ink); font-weight: 600; }
.cfilter { font-size: 10px; color: var(--ink-2); white-space: nowrap; flex: none; }
.kb { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 14px 14px; min-height: 0; }
.kcol { background: #edece8; border-radius: 9px; padding: 8px; display: flex; flex-direction: column; min-width: 0; }
.kch { margin: 0 0 7px; display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: var(--ink-2); }
.kdot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.kcount { margin-left: auto; font-size: 9px; color: var(--ink-3); background: #fff; border-radius: 999px; padding: 1px 6px; }
.kfil { width: 10px; height: 10px; color: var(--ink-3); flex: none; }
.kdots { color: var(--ink-3); letter-spacing: 1px; font-size: 9px; }
.kcards { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.kjob { background: #fff; border: 1px solid #eceae5; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(51,51,51,.05); }
.kjt { margin: 0; display: flex; align-items: center; gap: 5px; padding: 7px 8px 5px; font-size: 9.5px; color: var(--ink); }
.kjt b { font-size: 10px; font-weight: 700; }
.kdim { color: var(--ink-3); }
.kbox { width: 9px; height: 9px; border: 1.2px solid var(--line-2); border-radius: 2px; flex: none; }
.kdays { margin-left: auto; background: #f1f0ec; border-radius: 999px; padding: 1px 6px; color: var(--ink-3); font-size: 9px; white-space: nowrap; }
.kjm { display: flex; align-items: flex-start; gap: 7px; padding: 0 8px 5px; min-width: 0; }
.kthumb { width: 24px; height: 24px; border-radius: 5px; object-fit: cover; flex: none; }
.kjw { min-width: 0; display: block; }
.kaddr { display: block; font-size: 10px; font-weight: 600; line-height: 1.25; }
.kwho { display: block; font-size: 9.5px; color: var(--ink-3); margin-top: 1px; }
.ktagadd { margin: 0; padding: 0 8px 6px; font-size: 9px; color: var(--ink-3); }
.kjf { margin: 0; display: flex; align-items: center; gap: 5px; padding: 5px 8px; background: #faf9f7; border-top: 1px solid #f0efeb; font-size: 9px; color: var(--ink-3); }
.krep { background: #f1f0ec; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.kdate, .ktag { white-space: nowrap; }
.ktag { background: #f1f0ec; border-radius: 4px; padding: 1px 5px; }
.kout { width: 9px; height: 9px; margin-left: auto; flex: none; }
.kjob.is-moving { position: relative; z-index: 5; box-shadow: 0 10px 26px rgba(51,51,51,.2); }
@media (max-width: 860px) {
  .crmapp { font-size: 10px; }
  .cside { display: none; }
  .kb { grid-template-columns: repeat(2, 1fr); }
  .kcol:nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
  .pshot.crm { aspect-ratio: auto; max-height: none; }
  .crmapp { height: auto; }
  .kjf .ktag { display: none; }
}
