.home-app-preview { background: #ece9df; color: #192923; padding: 100px 0; }
.home-app-preview *, .home-app-preview *::before, .home-app-preview *::after { box-sizing: border-box; }
.home-app-preview [hidden] { display: none !important; }
.app-preview-shell { width: min(1320px, calc(100% - 96px)); margin: auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 90px; align-items: center; }
.app-preview-eyebrow { color: #9c5135; font-size: 11px; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; }
.app-preview-copy h2 { margin: 18px 0 26px; font: 400 clamp(40px, 4.4vw, 64px)/1.03 var(--serif); letter-spacing: -.045em; }
.app-preview-copy h2 em { font-weight: 400; color: #80613c; }
.app-preview-copy > p:not(.app-preview-eyebrow) { max-width: 360px; color: #5c645b; font-size: 14px; line-height: 1.8; }
.app-preview-points { display: grid; gap: 16px; padding: 22px 0 0; margin: 0; list-style: none; font-size: 12px; }
.app-preview-points li { display: flex; align-items: baseline; gap: 13px; }
.app-preview-points span { font-size: 11px; color: #9c5135; }
.app-preview-copy .app-preview-note { margin-top: 30px; font-size: 11px !important; }
.app-preview-ui { min-width: 0; padding: 28px; background: #fbfaf6; border: 1px solid #d9d9ce; border-radius: 18px; box-shadow: 0 25px 60px #1929230b; }
.app-preview-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.app-preview-brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.app-preview-brand > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #192923; color: #f5f2eb; font: 400 23px/.9 var(--serif); }
.app-preview-demo { color: #62685f; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.app-preview-greeting { margin: 30px 0 21px; }
.app-preview-greeting > p { margin: 0 0 7px; font-size: 11px; color: #62685f; }
.app-preview-greeting > h3 { margin: 0; font: 400 27px/1.2 var(--serif); letter-spacing: -.025em; }
.app-preview-tabs { display: flex; gap: 4px; padding-bottom: 17px; border-bottom: 1px solid #dddcd2; }
.app-preview-tabs button { flex: 1; min-width: 0; min-height: 44px; padding: 11px 10px; border: 0; border-radius: 7px; font: inherit; font-size: 12px; color: #62685f; background: transparent; cursor: pointer; }
.app-preview-tabs button[aria-selected="true"] { background: #192923; color: #fffdf6; }
.home-app-preview button:focus-visible { outline: 2px solid #9c5135; outline-offset: 4px; }
.app-preview-panel { min-height: 279px; padding-top: 20px; }
.app-preview-room-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.app-preview-room-head > h4 { margin: 0; font-size: 13px; font-weight: 400; }
.app-preview-room-head > span { font-size: 10px; color: #62685f; }
.app-preview-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-preview-light, .app-preview-climate { min-width: 0; padding: 17px; border: 1px solid #deded3; border-radius: 10px; background: #f4f1e9; }
.app-preview-control-icon { width: 28px; height: 28px; margin-bottom: 17px; color: #9c5135; }
.app-preview-control-icon svg { display: block; width: 26px; height: 26px; }
.app-preview-controls h5 { margin: 0 0 5px; font-size: 12px; font-weight: 400; }
.app-preview-controls p { margin: 0; font-size: 10px; color: #62685f; }
.app-preview-power { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 8px 0 0; border: 0; background: transparent; font: inherit; color: #192923; font-size: 11px; cursor: pointer; }
.app-preview-switch { position: relative; display: block; width: 34px; height: 20px; flex: 0 0 34px; border-radius: 20px; background: #b8bcb2; }
.app-preview-switch::after { content: ""; position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; border-radius: 50%; background: #fffdf6; transform: translateX(0); transition: transform .2s ease; }
.app-preview-power[aria-pressed="true"] .app-preview-switch { background: #637151; }
.app-preview-power[aria-pressed="true"] .app-preview-switch::after { transform: translateX(14px); }
.app-preview-temp { display: flex; align-items: center; justify-content: space-between; gap: 3px; margin-top: 4px; }
.app-preview-temp button { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; background: transparent; border: 0; color: #192923; font: inherit; font-size: 20px; cursor: pointer; }
.app-preview-temp button:disabled { opacity: .4; cursor: default; }
.app-preview-temp output { font-size: 17px; white-space: nowrap; }
.app-preview-always { margin: 17px 0 0; padding: 12px 0 0; border-top: 1px solid #dddcd2; color: #62685f; font-size: 10px; line-height: 1.7; }
.app-preview-always::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: #637151; }
.app-preview-scene { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 85px; padding: 18px 16px; margin-bottom: 12px; border: 1px solid #dcdcd0; border-radius: 9px; color: #192923; background: #f4f1e9; text-align: left; font: inherit; cursor: pointer; }
.app-preview-scene:hover { border-color: #9c5135; }
.app-preview-scene strong { display: block; font-size: 13px; font-weight: 500; }
.app-preview-scene small { display: block; margin-top: 7px; color: #62685f; font-size: 10px; line-height: 1.5; }
.app-preview-scene > span:last-child { color: #9c5135; font-size: 20px; }
.app-preview-panel > p { margin: 12px 0 0; color: #62685f; font-size: 10px; line-height: 1.7; }
.app-preview-log { margin: 0; padding: 0; list-style: none; max-height: 255px; overflow: auto; }
.app-preview-log li { padding: 13px 0; border-bottom: 1px solid #dddcd2; font-size: 11px; line-height: 1.6; color: #62685f; }
.app-preview-log li:first-child { color: #192923; }
.app-preview-status { min-height: 26px; margin: 11px 0 0; padding-top: 12px; border-top: 1px solid #dddcd2; color: #62685f; font-size: 10px; line-height: 1.6; }
@media (max-width: 1100px) {
  .app-preview-shell { width: calc(100% - 64px); gap: 45px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .app-preview-ui { padding: 22px; }
  .app-preview-light, .app-preview-climate { padding: 13px; }
}
@media (max-width: 800px) {
  .home-app-preview { padding: 72px 0; }
  .app-preview-shell { width: calc(100% - 40px); display: block; }
  .app-preview-copy { margin-bottom: 35px; }
  .app-preview-copy > p:not(.app-preview-eyebrow) { max-width: 480px; }
  .app-preview-ui { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 430px) {
  .app-preview-ui { padding: 18px 14px; }
  .app-preview-controls { gap: 8px; }
  .app-preview-light, .app-preview-climate { padding: 12px 9px; }
  .app-preview-temp { justify-content: center; flex-wrap: wrap; }
  .app-preview-temp output { order: -1; flex: 0 0 100%; text-align: center; padding-top: 7px; }
  .app-preview-demo { max-width: 90px; text-align: right; font-size: 8px; line-height: 1.5; }
  .app-preview-panel { min-height: 300px; }
  .app-preview-power { align-items: start; flex-wrap: wrap; padding-top: 14px; }
  .app-preview-power > span:first-child { padding-top: 3px; }
  .app-preview-control-icon { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .app-preview-switch::after { transition: none; } }

/* Independent asset failures must leave the examples readable, without controls
   that appear to work but cannot respond. */
.home-app-preview:not(.app-preview-ready) button { display: none; }
.home-app-preview:not(.app-preview-ready) [data-app-panel][hidden] { display: block !important; }
.home-app-preview:not(.app-preview-ready) .app-preview-panel { min-height: 0; }

.home-app-preview.app-preview-ready .app-preview-scene-fallback { display: none; }
.home-app-preview:not(.app-preview-ready) .app-preview-status { display: none; }
.app-proof { width: min(1320px, calc(100% - 96px)); margin: 50px auto 0; border-top: 1px solid #c4c8bb; }
.app-proof summary { display: flex; justify-content: space-between; gap: 20px; padding: 23px 0; list-style: none; font-size: 12px; cursor: pointer; }
.app-proof summary::-webkit-details-marker { display: none; }
.app-proof summary > span { font-size: 20px; line-height: 1; }
.app-proof figure { margin: 0; }
.app-proof img { border: 1px solid #292c27; border-radius: 9px; }
.app-proof figcaption { max-width: 650px; margin: 16px 0 0; color: #5c645b; font-size: 11px; line-height: 1.8; }
@media(max-width:800px) { .app-proof { width: calc(100% - 40px); margin-top: 30px; } }
