.smart-demo { padding-block: calc(var(--header-size, var(--landing-header-height)) + clamp(1.25rem, 4vw, 3rem)) clamp(2rem, 7vw, 5rem); }
.smart-demo :is(.smart-intro, .smart-note) :is(h1, h2) { color: #f9f2e8; }
.smart-demo :is(.smart-intro, .smart-note) p { color: #ddd0c2; }
.smart-demo .directory-back { display: inline-flex; padding: .5rem .85rem; color: #f9f2e8; border: 1px solid #8a8173; border-radius: .65rem; text-decoration: none; }
.smart-demo .directory-back:hover { background: #34332d; }
.smart-home { overflow-wrap: anywhere; }
.smart-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin-block: 1.25rem; }
.smart-intro h1 { font-size: clamp(2.7rem, 7vw, 5.5rem); margin: 0 0 .35rem; line-height: 1; }
.smart-intro p { max-width: 62ch; margin-block: .4rem; }
.smart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.smart-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: .8rem; padding: clamp(1rem, 3vw, 1.55rem); border: 1px solid #c5d1cc; border-radius: 1rem; background: #f1f6f3; color: #18362b; }
.smart-card h2, .smart-card p { margin: 0; }
.smart-card h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.smart-kind { font-size: .88rem; font-weight: 700; }
.smart-reading { font-size: clamp(1.6rem, 5vw, 2.8rem); font-weight: 650; line-height: 1.15; }
.smart-reading small { font-size: 1rem; }
.smart-card .button.secondary { background: #fff; color: #18362b; border-color: #829d8d; }
.smart-card details { margin-top: auto; }
.smart-card details p { flex-basis: 100%; margin-block: .6rem; }
.smart-note { padding-block: 2rem; max-width: 65ch; }
.smart-demo-blocks { max-width: none; }
.smart-demo-blocks .smart-card > p { color: #18362b; }
.demo-block-card label { display: grid; gap: .2rem; width: 100%; }
.demo-block-card :is(form, input) { max-width: 100%; }
.demo-block-card input[type="range"] { min-height: 1.5rem; padding: 0; }
.smart-demo .smart-firmware .button { color: #f9f2e8; border-color: #8a8173; background: #202a25; }
.smart-demo .smart-firmware .button:hover { background: #304b3a; }
.smart-firmware .button { white-space: normal; }
.smart-mqtt-topics dd { margin: 0 0 .5rem; }
.smart-add { max-width: 32rem; }
.smart-token code, .smart-api code { overflow-wrap: anywhere; white-space: normal; }
.smart-api dd { margin: 0 0 .5rem; }
.smart-card h3 { margin: 0; }
.smart-card output { max-width: 100%; overflow-wrap: anywhere; }
.smart-config { padding-block: .8rem; margin-block: .35rem; }
.smart-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .6rem; min-width: 0; }
.smart-fields[hidden] { display: none; }
.smart-fields select, .smart-fields input { width: 100%; min-width: 0; }
.smart-fields legend { padding-inline: .35rem; }
.smart-flags { align-items: center; }
#smart-block-setup details + details { border-top: 1px solid var(--line); padding-top: .6rem; }
.smart-demo-interaction { margin-block: 1rem 2rem; }
.smart-demo-interaction > summary {
    width: fit-content; padding: .7rem 1rem; cursor: pointer;
    border: 1px solid #9a998a; border-radius: .65rem; color: #fff8ee; font-weight: 750;
}
.smart-demo-interaction[open] > summary { margin-bottom: 1rem; background: #232f29; }
.smart-intro.photo-hero { min-height: clamp(16rem, 32vw, 26rem); padding: clamp(1.25rem, 5vw, 3rem); }
