/* Pitchline ideas page: four live demos */
.id-hd { padding: calc(var(--hd) + 60px) var(--pad) 40px; max-width: 980px; }
.id-hd .lbl { color: var(--patina); }
.id-hd h1 { font-size: clamp(56px, 9vw, 140px); margin: 16px 0 20px; }
.id-hd p { color: #45464A; max-width: 40em; }
.idea { position: relative; padding: clamp(60px, 7vw, 110px) var(--pad); border-top: 1px solid var(--line); }
.idea.dk { background: var(--slate); color: var(--paper); border: 0; }
.id-n { display: flex; gap: 14px; align-items: baseline; margin-bottom: 12px; }
.id-n .lbl { color: var(--patina); }
.dk .id-n .lbl { color: var(--patina-l); }
.id-t { font-size: clamp(30px, 3.4vw, 52px); margin: 0 0 12px; }
.id-p { max-width: 42em; color: #45464A; margin: 0 0 28px; }
.dk .id-p { color: #C9C4BA; }
.id-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0 0; }
.id-row .btn { color: inherit; }
.stat { font: 600 12px/1.3 var(--f-b); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; }
.stat b { font: 600 34px/1 var(--f-d); letter-spacing: 0; display: block; margin-bottom: 4px; }

/* 1 hail */
.hail-box { position: relative; aspect-ratio: 16 / 8; overflow: hidden; cursor: crosshair; background: #222; touch-action: manipulation; }
.hail-box img { width: 100%; height: 100%; object-fit: cover; }
.hail-box canvas, .hail-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hail-box svg path { fill: none; stroke: #F1EEE6; stroke-width: 2.4; stroke-linecap: round; opacity: .92; }
.hail-box svg text { fill: #F1EEE6; font: 600 13px var(--f-b); letter-spacing: .06em; }
.hail-box .sq { fill: none; stroke: #F1EEE6; stroke-width: 1.4; stroke-dasharray: 8 6; opacity: .8; }
.hail-hint { position: absolute; left: 16px; bottom: 14px; background: rgba(20, 22, 24, .7); padding: 8px 12px; color: var(--paper); }
.verdict { min-height: 1.6em; margin-top: 14px; font-size: 16px; }

/* 2 shingles laid on scroll */
.lay { height: 340vh; padding: 0; }
.lay-pin { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(260px, 30%) 1fr; gap: 4vw; align-items: center; padding: var(--hd) var(--pad) 30px; overflow: hidden; }
.lay svg { width: 100%; height: 76vh; overflow: visible; }
.lay-step { font: 700 clamp(22px, 2.2vw, 32px)/1.1 var(--f-b); font-stretch: 125%; text-transform: uppercase; min-height: 2.4em; margin: 22px 0; }
.lay .stats { display: flex; gap: 32px; }

/* 3 tear-off before/after */
.ba { position: relative; aspect-ratio: 3 / 2; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; background: #111; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-new { clip-path: inset(0 0 0 50%); }
.ba-h { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--paper); }
.ba-h span { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font: 600 10px var(--f-b); font-stretch: 125%; letter-spacing: .12em; }
.ba .tag { position: absolute; top: 16px; padding: 7px 11px; background: rgba(20, 22, 24, .72); color: var(--paper); }
.ba .tag.l { left: 16px; } .ba .tag.r { right: 16px; }
.ba .dust { position: absolute; inset: 0; pointer-events: none; }

/* 4 measure from above */
.ms { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4vw; align-items: start; }
.ms-map { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #222; }
.ms-map img { width: 100%; height: 100%; object-fit: cover; }
.ms-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ms-map .fc { fill: rgba(236, 230, 218, 0); stroke: rgba(236, 230, 218, .0); stroke-width: 2; cursor: pointer; transition: fill .35s, stroke .35s; }
.ms-map.scanned .fc { stroke: rgba(236, 230, 218, .85); }
.ms-map .fc.on { fill: rgba(157, 183, 170, .16); }
.ms-map .fc:hover, .ms-map .fc:focus-visible { fill: rgba(157, 183, 170, .38); outline: none; }
.ms-map.scanned .fc:not(.on) { stroke: rgba(236, 230, 218, .35); stroke-dasharray: 6 6; }
.ms-map .fl { fill: #F1EEE6; font: 600 26px var(--f-b); pointer-events: none; opacity: 0; text-anchor: middle; paint-order: stroke; stroke: rgba(20, 22, 24, .7); stroke-width: 3px; }
.ms-map.scanned .fl { opacity: 1; transition: opacity .5s .2s; }
.ms-map .scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #EAF2EE; box-shadow: 0 0 18px 4px rgba(200, 230, 215, .55); opacity: 0; }
.ms-side .rows { border-top: 1px solid var(--line-d); margin-top: 18px; }
.ms-side .rw { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-d); font-size: 15px; }
.mat { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.mat button { min-height: 44px; padding: 0 14px; border: 1px solid rgba(236, 230, 218, .4); background: none; color: var(--paper); font: 600 11px var(--f-b); font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.mat button.on { background: var(--paper); color: var(--ink); }
.price { font: 600 clamp(44px, 5vw, 76px)/1 var(--f-d); margin: 24px 0 6px; }
.small { font-size: 13px; color: var(--muted-d); }

@media (max-width: 860px) {
  .hail-box { aspect-ratio: 4 / 5; }
  .lay { height: 300vh; }
  .lay-pin { grid-template-columns: 1fr; align-content: start; gap: 8px; padding-top: calc(var(--hd) + 8px); }
  .lay svg { height: 52vh; }
  .lay-step { margin: 10px 0; min-height: 2.2em; font-size: 20px; }
  .ba { aspect-ratio: 4 / 5; }
  .ms { grid-template-columns: 1fr; }
  .ms-map { aspect-ratio: 1 / 1; }
}
.lay-roof { position: relative; width: 100%; aspect-ratio: 1000 / 640; max-height: 76vh; overflow: hidden; contain: paint; }
.lay-roof > div { position: absolute; left: 0; width: 100%; }
.lay-roof .osb { background: #B5A283; box-shadow: inset 0 0 0 1px #8E7D62; will-change: transform, opacity; }
.lay-roof .roll { background: repeating-linear-gradient(90deg, transparent 0 150px, rgba(60, 70, 66, .14) 150px 152px), #DAD7D0; box-shadow: inset 0 -1px 0 #B9B5AC; transform-origin: 0 0; will-change: transform; }
.lay-roof .drip { height: 7px; background: #2A2D30; }
.lay-roof .crs { overflow: hidden; will-change: transform, opacity; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.lay-roof .crs img { position: absolute; left: 0; width: 100%; max-width: none; }
.lay-roof .nails { position: absolute; inset: 0; will-change: transform, opacity; }
.lay-roof .nl { position: absolute; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #C9CED0; }
.lay-roof .ridge { background: repeating-linear-gradient(90deg, #24272A 0 32px, #111 32px 34px); box-shadow: 0 3px 0 rgba(0, 0, 0, .4); will-change: transform, opacity; }
@media (max-width: 860px) { .lay-roof { max-height: 52vh; } }

/* 1 hail v2: photo + an adjuster's panel (size, storm, count against the claim line, verdict) */
.hc-lead { max-width: 46em; font-size: 18px; }
.hc-lead b, .verdict b { color: var(--paper); font-weight: 600; }
.hc { display: grid; grid-template-columns: 1fr minmax(300px, 27%); gap: clamp(20px, 3vw, 44px); align-items: stretch; }
.hc .hail-box { aspect-ratio: 16 / 10; }
.hail-box .sq { transition: stroke .4s; }
.hail-box .sq.hot { stroke: #E3B26A; stroke-dasharray: none; stroke-width: 2.4; opacity: 1; }
.hc-side { display: flex; flex-direction: column; }
.hc-q { display: flex; align-items: center; gap: 10px; color: var(--patina-l); margin: 0 0 12px; }
.hc-q .num { width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 11px; letter-spacing: 0; }
.hc-q:not(:first-child) { margin-top: 30px; }
.hc-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hz { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 9px; min-height: 44px; background: none; border: 1px solid rgba(236, 230, 218, .28); color: var(--paper); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.hz svg { width: 38px; height: 38px; } .hz circle { fill: #EEF2F2; }
.hz b { font: 600 10.5px var(--f-b); letter-spacing: .08em; text-transform: uppercase; }
.hz span { font-size: 12px; color: var(--muted-d); }
.hz:hover { border-color: var(--paper); }
.hz.on { background: var(--paper); color: var(--ink); border-color: var(--paper); } .hz.on circle { fill: var(--ink); } .hz.on span { color: #55575A; }
.hc .id-row { margin-top: 14px; }
.hc-count { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.hc-count b { font: 500 clamp(64px, 6vw, 96px)/.9 var(--f-d); transition: color .4s; }
.hc-count span { font-size: 14px; color: var(--muted-d); }
.hc-claim .hc-count b { color: #E3B26A; }
.hc-meter { position: relative; height: 8px; margin: 16px 0 6px; background: rgba(236, 230, 218, .14); }
.hc-meter i { position: absolute; inset: 0; background: var(--patina-l); transform-origin: 0 50%; transform: scaleX(0); transition: transform .35s var(--e-out), background .4s; }
.hc-claim .hc-meter i { background: #E3B26A; }
.hc-meter span { position: absolute; left: 66.67%; top: -6px; bottom: -6px; width: 2px; background: var(--paper); }
.hc-meter span::after { content: 'Claim line · 8'; position: absolute; left: 8px; top: 18px; white-space: nowrap; font: 600 10px var(--f-b); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.hc .verdict { margin-top: 28px; font-size: 16px; line-height: 1.5; color: #C9C4BA; min-height: 4.5em; }

/* 4 measure v2: three steps on top, a drone crosses the photo, a tip once it is done */
.ms-how { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 10px 0 34px; padding: 0; border-top: 1px solid var(--line-d); }
.ms-how li { position: relative; padding: 16px 24px 0 38px; color: #C9C4BA; font-size: 15px; line-height: 1.45; }
.ms-how li + li { border-left: 1px solid var(--line-d); padding-left: 62px; }
.ms-how li + li .num { left: 24px; }
.ms-how .num { position: absolute; left: 0; top: 16px; width: 26px; height: 26px; border: 1px solid var(--patina-l); color: var(--patina-l); border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.ms-how b { color: var(--paper); font-weight: 600; }
.ms-drone { position: absolute; width: 56px; height: 56px; color: #F1EEE6; opacity: 0; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.ms-tip { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; background: var(--paper); color: var(--ink); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--e-out); pointer-events: none; }
.ms-map.done .ms-tip { opacity: 1; transform: none; }
.ms-key { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted-d); }
.ms-side .id-p b { color: var(--paper); font-weight: 600; }
.ms-pl { color: var(--patina-l); margin: 26px 0 0; }
.ms-pl + .price { margin-top: 10px; }
@media (max-width: 860px) {
  .hc { grid-template-columns: 1fr; }
  .hc .hail-box { aspect-ratio: 1 / 1; }
  .hc-lead { font-size: 16px; }
  .hc-count b { font-size: 64px; }
  .ms-how { grid-template-columns: 1fr; border-top: 0; margin-bottom: 24px; }
  .ms-how li, .ms-how li + li { border-left: 0; border-top: 1px solid var(--line-d); padding: 12px 0 12px 40px; }
  .ms-how li + li .num, .ms-how .num { left: 0; top: 12px; }
  .ms-drone { width: 40px; height: 40px; }
}
.ms-map svg.ms-drone { inset: auto; left: 20%; top: 0; width: 64px; height: 64px; }
.hc .id-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.hc .id-row .btn { justify-content: center; padding-left: 16px; padding-right: 16px; }
@media (max-width: 860px) { .ms-map svg.ms-drone { width: 44px; height: 44px; } }
@media (max-width: 860px) { .hc .id-row { grid-template-columns: 1fr; } }
.hc-note { margin-top: 10px; font-size: 12px; color: var(--mute, #6B6E72); }
