/* Commercial, Multifamily, Gutter and Holiday Lights measurement pages. Scoped to main content. */
.md-page main{--md-red:#db0000;--md-ink:#2c2926;--md-muted:#706b66;--md-line:#eae7e4}
.md-page main .md-lead{color:var(--md-muted);max-width:620px;margin:12px 0 0;font-size:1rem;line-height:1.6}
.md-page main .md-price-note{order:1;margin:-14px 0 22px;color:var(--md-muted);font-size:12px;line-height:1.5}

/* Feature cards */
.md-page main .md-feature-band{background:#fff}
.md-page main .md-feature-band .mp-section-heading{display:block}
.md-page main .md-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.md-page main .md-four .md-features{grid-template-columns:repeat(4,minmax(0,1fr))}
.md-page main .md-four{background:#f8f6f4}
.md-page main .md-features article{background:#fff;border:1px solid var(--md-line);border-radius:14px;padding:28px 26px 26px;box-shadow:0 10px 30px rgba(38,35,32,.05)}
.md-page main .md-features h3{font-size:1.12rem;margin:16px 0 8px;color:var(--md-ink)}
.md-page main .md-features p{margin:0;color:var(--md-muted);line-height:1.6;font-size:.95rem}
.md-page main .md-feature-icon{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#fff5f1;color:var(--md-red)}
.md-page main .md-feature-icon svg{width:24px;height:24px}

/* Mini features on the gutter page */
.md-page main .md-mini-features{display:grid;grid-template-columns:1fr 1fr;gap:22px 26px;margin-top:8px}
.md-page main .md-mini-features h3{font-size:1rem;margin:10px 0 4px;color:var(--md-ink)}
.md-page main .md-mini-features p{margin:0;font-size:.92rem;line-height:1.55;color:var(--md-muted)}
.md-page main .md-mini-features .md-feature-icon{width:38px;height:38px;border-radius:10px}
.md-page main .md-mini-features .md-feature-icon svg{width:21px;height:21px}
.md-page main .md-gutter-anatomy{background:#f8f6f4}

/* Related reports */
.md-page main .md-related-band{background:#f8f6f4}
.md-page main .md-related-band h2{margin-bottom:28px}
.md-page main .md-related{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.md-page main .md-related-card{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid var(--md-line);border-radius:14px;padding:24px;color:var(--md-ink);text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s}
.md-page main .md-related-card:hover,.md-page main .md-related-card:focus-visible{border-color:#ffe6dc;box-shadow:0 12px 30px rgba(38,35,32,.08);transform:translateY(-2px)}
.md-page main .md-related-price{color:var(--md-red);font-weight:600;font-size:1.25rem}
.md-page main .md-related-price small{font-size:.72rem;color:var(--md-muted);font-weight:400;margin-left:4px}
.md-page main .md-related-card strong{font-size:1.05rem}
.md-page main .md-related-card span:not(.md-related-price){color:var(--md-muted);font-size:.92rem;line-height:1.55}
.md-page main .md-related-card em{margin-top:auto;padding-top:8px;font-style:normal;font-weight:600;color:var(--md-red);font-size:.9rem}

/* Multifamily hero illustration */
.md-page main .md-mf-figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.md-page main .md-sheet{width:min(100%,460px);background:#fff;border:1px solid var(--md-line);border-left:8px solid var(--md-red);border-radius:12px;box-shadow:0 24px 60px rgba(38,35,32,.14);padding:22px 22px 18px}
.md-page main .md-sheet-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.md-page main .md-sheet-head strong{font-size:1rem;color:var(--md-ink)}
.md-page main .md-sheet-head span:last-child{margin-left:auto;font-size:.78rem;color:var(--md-muted);background:#f8f6f4;border-radius:999px;padding:4px 10px}
.md-page main .md-sheet-logo{width:22px;height:22px;border-radius:50%;border:3px solid var(--md-red)}
.md-page main .md-mf-plan{display:block;width:100%;height:auto;margin-bottom:14px}
.md-page main .md-mf-table{width:100%;border-collapse:collapse;font-size:.86rem;color:var(--md-ink)}
.md-page main .md-mf-table th,.md-page main .md-mf-table td{padding:8px 6px;text-align:right;border-bottom:1px solid #f3f1ef;font-weight:400}
.md-page main .md-mf-table th:first-child{text-align:left}
.md-page main .md-mf-table thead th{font-size:.72rem;letter-spacing:.04em;text-transform:uppercase;color:var(--md-muted);font-weight:600}
.md-page main .md-mf-table tfoot th,.md-page main .md-mf-table tfoot td{font-weight:700;border-bottom:0;border-top:2px solid var(--md-ink)}
.md-page main .md-bldg{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#fff5f1;color:var(--md-red);font-weight:700;font-size:.72rem;margin-right:8px}
.md-page main figcaption{font-size:.78rem;color:var(--md-muted);text-align:center}

/* Multifamily included list */
.md-page main .md-included{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:60px;align-items:center}
.md-page main .md-included .mp-checks{margin:0}

/* Holiday Lights app illustration */
.md-page main .md-hl-band{background:#fff}
.md-page main .md-hl-app{margin:0;display:flex;flex-direction:column;gap:12px;background:var(--md-red);border-radius:18px;padding:28px}
.md-page main .md-window{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 22px 50px rgba(60,0,0,.28)}
.md-page main .md-window-bar{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid var(--md-line)}
.md-page main .md-window-bar span{width:9px;height:9px;border-radius:50%;background:#e6e3e0}
.md-page main .md-window-bar strong{margin-left:8px;font-size:.85rem;color:var(--md-ink)}
.md-page main .md-window-body{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
.md-page main .md-hl-scene{display:block;width:100%;height:100%;min-height:240px;background:#201d1a}
.md-page main .md-hl-panel{padding:14px 14px 12px;font-size:.78rem;color:var(--md-ink);border-left:1px solid var(--md-line)}
.md-page main .md-hl-total{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 10px}
.md-page main .md-hl-total span{color:var(--md-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.68rem;font-weight:600}
.md-page main .md-hl-total strong{color:var(--md-red);font-size:1.15rem}
.md-page main .md-hl-toggles{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:6px}
.md-page main .md-hl-toggles li{display:flex;align-items:center;justify-content:space-between;gap:8px}
.md-page main .md-hl-toggles li span{display:flex;flex-direction:column;line-height:1.25}
.md-page main .md-hl-toggles small{color:var(--md-muted);font-size:.64rem}
.md-page main .md-hl-toggles i{flex:none;width:26px;height:15px;border-radius:999px;background:#dfdcd9;position:relative}
.md-page main .md-hl-toggles i::after{content:"";position:absolute;top:2px;left:2px;width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.md-page main .md-hl-toggles .is-on i{background:#188038}
.md-page main .md-hl-toggles .is-on i::after{left:13px}
.md-page main .md-hl-label{margin:0 0 6px;color:var(--md-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.64rem;font-weight:600}
.md-page main .md-hl-chips{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:10px}
.md-page main .md-hl-chips span{border:1px solid var(--md-line);border-radius:999px;padding:2px 7px;font-size:.66rem}
.md-page main .md-hl-chips .is-on{background:var(--md-red);border-color:var(--md-red);color:#fff;font-weight:600}
.md-page main .md-hl-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0}
.md-page main .md-hl-counts div{background:#f9f7f5;border-radius:8px;padding:6px 8px}
.md-page main .md-hl-counts dt{color:var(--md-muted);font-size:.62rem}
.md-page main .md-hl-counts dd{margin:0;font-weight:700;font-size:.95rem}
.md-page main .md-hl-app figcaption{color:#fff;opacity:.85}
@media (prefers-reduced-motion:no-preference){
  .md-page main .md-hl-bulbs circle:nth-child(odd){animation:md-twinkle 1.6s ease-in-out infinite alternate}
  @keyframes md-twinkle{from{opacity:1}to{opacity:.45}}
}

@media (max-width:900px){
  .md-page main .md-features,.md-page main .md-related,.md-page main .md-four .md-features{grid-template-columns:1fr}
  .md-page main .md-included{grid-template-columns:1fr;gap:28px}
  .md-page main .md-window-body{grid-template-columns:1fr}
  .md-page main .md-hl-panel{border-left:0;border-top:1px solid var(--md-line)}
  .md-page main .md-hl-app{padding:16px}
}
@media (max-width:560px){
  .md-page main .md-mini-features{grid-template-columns:1fr}
  .md-page main .md-sheet{padding:16px 14px}
}

/* Recorded app views (v2) */
.md-page main .md-film-band{background:#fff}
.md-page main .md-film-band .mp-section-heading{display:block}
.md-page main .md-film{margin:0;display:flex;flex-direction:column;gap:12px}
.md-page main .md-film video{display:block;width:100%;height:auto;aspect-ratio:1600/1000;border-radius:16px;border:1px solid var(--md-line);background:#f8f6f4;box-shadow:0 24px 60px rgba(38,35,32,.12)}
.md-page main .md-sample-note{order:5;margin:0 0 22px;color:var(--md-muted);font-size:12px;line-height:1.55;max-width:420px}

/* v3: square model-only recording beside its copy (Holiday Lights) */
.md-page main .md-film-split .mp-copy h2{margin-bottom:16px}
.md-page main .md-film-square{max-width:560px;width:100%;justify-self:end}
.md-page main .md-film-square video{aspect-ratio:1/1}
@media (max-width:900px){.md-page main .md-film-square{justify-self:stretch;max-width:none}}

/* v3: gutter hero pricing note sits just above the dividing line */
.md-gutters main .mp-report-hero .mp-pricing-disclaimer{margin-top:8px;padding-top:0;border-top:0;padding-bottom:12px;border-bottom:1px solid #e5e2df}
.md-gutters main .mp-report-hero .mp-pricing-disclaimer + p{margin-top:18px}

/* v5: square loops sit directly on the page: white, no card frame */
.md-page main .md-film-square video{border:0;border-radius:0;box-shadow:none;background:#fff}

/* v5: Measurements-page price block with in-place $/€ switch (gutter hero) */
.md-page main .md-currency{order:1;margin:0 0 24px;padding:0 0 8px;border-bottom:1px solid #e7e4e1}
.md-page main .md-currency .mp-domestic-prices{display:flex;gap:16px;margin:0 0 10px;padding:0;border:0}
.md-page main .md-currency .mp-price-amount{display:flex;align-items:baseline;gap:6px}
.md-page main .md-currency .mp-price-amount strong{font-size:30px}
.md-page main .md-currency .mp2-region{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;margin:0;font-size:10px;line-height:1.6;color:#827c76}
.md-page main .md-currency .mp2-currency-toggle{appearance:none;background:none;border:0;border-radius:0;padding:0;margin:0;font:inherit;font-weight:400;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.md-page main .md-currency .mp2-currency-toggle:hover{color:#4a4642}
.md-page main .md-currency .mp2-currency-toggle:focus-visible{outline:3px solid #db0000;outline-offset:3px}
@media (max-width:600px){.md-page main .md-currency .mp2-region{font-size:9px}.md-page main .md-currency .mp-price-amount strong{font-size:26px}}
.md-page main .md-currency .mp-domestic-prices>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.md-page main .md-currency .mp-domestic-prices>div>span{font-size:15px;line-height:1.4;color:#4a4642}
.md-page main .mp-report-hero .mp-inline-pricing .mp-domestic-prices{border-bottom:0!important;padding-bottom:0!important;margin-bottom:0!important}
.md-page main .mp-report-hero .mp-pricing-disclaimer{max-width:520px;margin:10px 0 24px;padding:0 0 12px;border-top:0;border-bottom:1px solid #e5e2df}
.md-page main .mp-report-hero .mp2-turnaround{display:flex;gap:7px;align-items:flex-start;max-width:520px;margin:0;padding:0;border:0;font-size:12px!important;line-height:1.45!important;color:#605b56}
.md-page main .mp-report-hero .mp2-turnaround svg{flex:0 0 14px;width:14px;height:14px;margin-top:1px;color:#89837d}
.md-page main .mp-report-hero .mp2-turnaround strong{font-weight:600;color:inherit;white-space:nowrap}
.md-page main .mp-report-hero .mp2-turnaround + .mp-report-actions{margin-top:18px}

/* v7: 3D loops as cards matching the branded-report card: light blue (the viewer films' background), 15px corners, flat */
.md-page main .md-film-square video{background:#cac6c2;border:0;border-radius:15px;box-shadow:none}

/* v8: 3D loops back on the white page (no card); price block without the region switch (Holiday) */
.md-page main .md-film-square video{background:#fff;border:0;border-radius:0;box-shadow:none}
.md-page main .md-currency.md-flat{border-bottom:0;padding-bottom:0}
.md-page main .md-currency.md-flat .mp-domestic-prices{margin-bottom:0}

/* v9: tighter vertical rhythm. Adjacent white sections share ~100px instead of ~200px. */
.md-page main .mp-tour-band .mp-tour-layout{padding-top:80px;padding-bottom:48px}
.md-page main .mp-tour-slide img{max-height:640px;width:auto;max-width:100%;margin:0 auto}
.md-page main .md-included-guarantee{padding-bottom:64px}
.md-page main .md-included-guarantee .mp-guarantee{margin:0 auto;padding-top:28px;border-top:1px solid #e9e6e3;justify-content:center}
.md-page main .md-film-band .mp-section{padding-top:72px;padding-bottom:40px}
.md-page main .md-film-square{max-width:480px}
.md-page main #branded-reports{padding-top:56px;padding-bottom:48px}
.md-page main .mp-coverage-simple{padding-top:56px;padding-bottom:72px}
.md-page main .mp-cross-band .mp-section{padding-top:64px;padding-bottom:64px}
.md-page main .mp-final{padding-top:56px;padding-bottom:60px}
.md-page main .mp-faq{padding-top:72px;padding-bottom:72px}
@media (max-width:900px){
  .md-page main .mp-tour-band .mp-tour-layout{padding-top:56px;padding-bottom:36px}
  .md-page main .md-included-guarantee{padding-bottom:48px}
  .md-page main .md-film-band .mp-section,.md-page main .mp-faq{padding-top:56px;padding-bottom:48px}
}

/* v10: 3D loop cropped to its content band (the square frames are empty white above and below the roof at every angle),
   less space 3D → Branded Reports, more breathing room around Coverage. */
.md-page main .md-film-square{max-width:560px}
.md-page main .md-film-square video{aspect-ratio:5/3;height:auto;object-fit:cover;object-position:50% 52%}
.md-page main .md-film-band .mp-section{padding-top:64px;padding-bottom:8px}
.md-page main #branded-reports{padding-top:40px}
.md-page main .mp-coverage-simple{padding-top:96px;padding-bottom:96px}
@media (max-width:900px){.md-page main .md-film-band .mp-section{padding-bottom:8px}.md-page main .mp-coverage-simple{padding-top:64px;padding-bottom:64px}}
/* v10b: 8:5 crop centred on each roof's content band (measured across every frame), ≥4% clear margin */
.md-page main .md-film-square video{aspect-ratio:8/5;object-position:50% 50%}
.md-holiday main .md-film-square video{object-position:50% 47%}
.md-commercial main .md-film-square video{object-position:50% 55%}
.md-multifamily main .md-film-square video{object-position:50% 50%}
