/* ThermaFlex page. Shared components live in neura.css. */

.tf-hero .phero-grid{align-items:center}
.tf-hero .figrow{margin-top:clamp(56px,7vw,88px)}
.tf-plant{position:relative;margin:0;border-radius:18px;overflow:hidden;aspect-ratio:5/4;background:var(--paper-2)}
.tf-plant img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(1) sepia(.18) contrast(.9) brightness(1.08)}
.tf-plant::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(242,240,234,0) 55%,rgba(242,240,234,.35));pointer-events:none}
.tf-live{position:absolute;z-index:1;left:20px;bottom:20px;width:min(300px,calc(100% - 40px));background:rgba(251,250,247,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:14px;padding:14px 16px 12px;box-shadow:0 20px 40px -24px rgba(28,28,26,.45)}
.tf-live-h{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--mute)}
.tf-live .dot{width:7px;height:7px;border-radius:50%;background:var(--acc-deep);box-shadow:0 0 0 0 rgba(222,132,79,.5);animation:ping 2.4s var(--ease) infinite}
@keyframes ping{0%{box-shadow:0 0 0 0 rgba(222,132,79,.45)}70%{box-shadow:0 0 0 8px rgba(222,132,79,0)}100%{box-shadow:0 0 0 0 rgba(222,132,79,0)}}
.tf-live dl{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;margin-top:10px}
.tf-live dt{font-size:11.5px;color:var(--mute)}
.tf-live dd{margin:2px 0 0;font-size:15px;letter-spacing:-.01em;color:var(--ink);transition:opacity .3s}
.tf-live dd.flip{opacity:0}

.tf-wide{padding:30px 30px 22px}
.tf-wide .ex-top h3{max-width:34ch;font-size:20px}
.tf-shift-h{margin-top:16px}
.tf-expert{margin-top:28px}

/* install timeline under the ramp chart */
.tf-steps{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.tf-steps li{display:grid;gap:6px;align-content:start;padding-top:14px;border-top:1px solid var(--rule)}
.tf-steps span{font-size:12.5px;color:var(--acc-ink);font-weight:500}
.tf-steps h3{font-size:17px;letter-spacing:-.012em}
.tf-steps p{font-size:14px;color:var(--ink-2);line-height:1.5}

/* case study teaser */
.tf-case{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:center;text-decoration:none}
.tf-case-img{position:relative;display:block;aspect-ratio:4/3;border-radius:18px;overflow:hidden;background:var(--panel)}
.tf-case-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.8);transition:transform .8s var(--ease)}
.tf-case:hover .tf-case-img img{transform:scale(1.03)}
.tf-case-body{display:grid;gap:18px;align-content:start}
.tf-case-h{display:block;font-size:clamp(28px,3vw,42px);line-height:1.08;letter-spacing:-.028em;font-weight:500;max-width:16ch}
.tf-case-p{display:block;font-size:16px;color:var(--ink-2);max-width:46ch;line-height:1.6}
.tf-case-figs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--ink);margin-top:6px}
.tf-case-figs>span{display:grid;gap:4px;padding:16px 16px 0 0;font-size:13px;color:var(--mute)}
.tf-case-figs>span+span{padding-left:16px;border-left:1px solid var(--rule)}
.tf-case-figs b{font-size:clamp(22px,2.2vw,30px);font-weight:450;letter-spacing:-.03em;color:var(--ink)}
.tf-case-figs>span:first-child b{color:var(--acc-fig)}

.tf-spec{margin-top:40px;max-width:820px}
.tf-faq{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:56px;align-items:start}
.tf-faq .label{display:block;margin-bottom:14px}

@media (max-width:980px){
  .tf-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tf-case,.tf-faq{grid-template-columns:minmax(0,1fr)}
  .tf-faq{gap:28px}
}
@media (max-width:600px){
  .tf-wide{padding:20px 18px 16px}
  .tf-plant{aspect-ratio:4/3.4}
  .tf-live{left:12px;bottom:12px;width:calc(100% - 24px);padding:12px 14px 10px}
  .tf-steps{grid-template-columns:minmax(0,1fr);gap:16px}
  .tf-case-figs{grid-template-columns:minmax(0,1fr) minmax(0,1fr);row-gap:16px}
  .tf-case-figs>span:nth-child(3){padding-left:0;border-left:0}
  .seg button{padding:0 11px;font-size:12.5px}
}


/* stacked logos (Johnson Controls) need more height to read at the same weight as the wide ones */
#integrations .logos img.tall{max-height:56px;max-width:124px}
@media (max-width:600px){#integrations .logos img.tall{max-height:42px;max-width:92px}}

/* phones: five logos as three over two, every row full width, one optical size */
@media (max-width:600px){
  #integrations .logos{--n:6!important}
  #integrations .logos>div{grid-column:span 2;height:76px;padding:14px}
  #integrations .logos>div:nth-child(n+4){grid-column:span 3}
  #integrations .logos img{max-height:19px;max-width:84px}
  #integrations .logos img.tall{max-height:32px;max-width:78px}
  #integrations .logos img[alt="Schneider Electric"]{max-height:26px;max-width:96px}
}

/* comfort exhibit: two figures side by side (hours outside the band, electricity saved) */
.tf-stats{display:flex;gap:clamp(24px,3vw,40px);flex:none}
.keys .k-dot{height:0;border-radius:0;background:none;border-top:2px dotted rgba(28,28,26,.55)}
#how .tf-wide .ex-foot{margin-top:-6px}
@media (max-width:600px){
  .tf-stats{gap:28px}
  .tf-stats .stat small{max-width:15ch}
}

/* phones: the comfort chart's two figures sit side by side at a quieter size, each with its caption */
@media (max-width:600px){
  .tf-wide .ex-top .stat .v{font-size:30px}
  .tf-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;padding-top:12px;border-top:1px solid var(--rule)}
  .tf-stats .stat{justify-items:start}
  .tf-stats .stat small{max-width:none;font-size:12px;text-align:left}
}
